aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx')
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/CHANGELOG.md59
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/LICENSE39
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/README.md37
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/extra_stylesheet.css506
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/favicon.icobin0 -> 26694 bytes
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/footer.html13
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/header.html68
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/index.html9
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/layout.xml187
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/nordic_small.pngbin0 -> 13183 bytes
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/drv_supp_matrix.dox42
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/generate_html_doc.bat2
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/generate_html_doc.sh2
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/main_page.dox86
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf51_series.dox46
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf52810.dox54
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf52832.dox64
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf52840.dox68
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrfx.doxyfile1892
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrfx_api.dox71
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrf_bitmask.h156
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_adc.h281
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_clock.h223
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_comp.h247
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_gpiote.h423
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_i2s.h254
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_lpcomp.h150
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_pdm.h214
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_power.h382
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_power_clock.h90
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_ppi.h327
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_pwm.h497
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_qdec.h186
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_qspi.h297
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_rng.h126
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_rtc.h369
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_saadc.h326
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_spi.h273
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_spim.h396
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_spis.h250
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_swi.h222
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_systick.h135
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_timer.h413
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_twi.h368
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_twim.h408
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_twis.h405
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_uart.h365
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_uarte.h363
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_wdt.h156
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/nrfx_common.h269
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/nrfx_errors.h82
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_adc.c324
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_clock.c381
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_comp.c211
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_gpiote.c826
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_i2s.c420
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_lpcomp.c174
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_pdm.c370
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_power.c306
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_power_clock.c52
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_ppi.c534
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_pwm.c515
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_qdec.c201
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_qspi.c337
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_rng.c122
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_rtc.c348
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_saadc.c639
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_spi.c441
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_spim.c688
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_spis.c494
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_swi.c412
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_systick.c170
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_timer.c330
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_twi.c723
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_twim.c664
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_twis.c834
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_uart.c649
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_uarte.c583
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_wdt.c153
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/prs/nrfx_prs.c166
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/prs/nrfx_prs.h140
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_adc.h348
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_clock.h400
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_comp.h509
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_ecb.c93
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_ecb.h97
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_egu.h389
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_gpio.h785
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_gpiote.h428
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_i2s.h557
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_lpcomp.h412
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_nvmc.c133
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_nvmc.h119
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_pdm.h387
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_power.h1057
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_ppi.h481
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_pwm.h694
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_qdec.h495
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_qspi.h778
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_rng.h274
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_rtc.h330
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_saadc.h615
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_spi.h369
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_spim.h736
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_spis.h571
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_systick.h190
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_temp.h88
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_timer.h634
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_twi.h451
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_twim.h522
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_twis.h702
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_uart.h526
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_uarte.h579
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_usbd.h1391
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_wdt.h333
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf51.s259
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf52.s369
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf52810.s349
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf52840.s381
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/compiler_abstraction.h155
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf51.S298
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf52.S404
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf52810.S394
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf52840.S410
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf51.s311
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf52.s457
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf52810.s407
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf52840.s487
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nRFxxx.h21
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf.h102
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51.h1202
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51.svd20978
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51422_peripherals.h165
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51801_peripherals.h165
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51801_xxab.ld13
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51802_peripherals.h165
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51822_peripherals.h166
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51824_peripherals.h166
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_bitfields.h6140
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_common.ld170
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_deprecated.h455
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_peripherals.h164
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_to_nrf52.h963
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_to_nrf52810.h532
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_to_nrf52840.h578
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_xxaa.ld13
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_xxab.ld13
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_xxac.ld13
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52.h2100
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52.svd42723
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810.h1588
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810.svd31726
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810_bitfields.h10257
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810_peripherals.h218
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810_xxaa.ld13
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52832_peripherals.h285
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52832_xxab.ld13
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840.h2488
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840.svd51571
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840_bitfields.h16915
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840_peripherals.h310
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840_xxaa.ld13
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_bitfields.h12663
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_common.ld170
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_name_change.h81
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_to_nrf52810.h105
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_to_nrf52840.h105
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_xxaa.ld13
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf_common.ld168
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf_peripherals.h72
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nRF_Startup.s148
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf51_Vectors.s329
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf52810_Vectors.s369
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf52840_Vectors.s515
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf52_Vectors.s458
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/startup_config.h60
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf51.c143
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf51.h61
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52.c373
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52.h61
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52810.c416
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52810.h61
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52840.c288
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52840.h61
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/nrfx.h49
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_coredep.h171
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs.h56
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf51.h136
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf52810.h141
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf52832.h192
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf52840.h208
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF51/nrfx_config.h1563
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF52810/nrfx_config.h2070
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF52832/nrfx_config.h2869
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF52840/nrfx_config.h2964
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nrfx_glue.h204
-rw-r--r--thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nrfx_log.h144
197 files changed, 265150 insertions, 0 deletions
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/CHANGELOG.md b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/CHANGELOG.md
new file mode 100644
index 0000000..fe4f2b9
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/CHANGELOG.md
@@ -0,0 +1,59 @@
+# Changelog
+All notable changes to this project are documented in this file.
+
+## [1.0.0] - 2018-03-21
+### Added
+- Added the NRFX_WAIT_FOR macro to improve the time-out functionality in QSPI and SAADC drivers.
+- Added glue layer macros for checking and modifying the pending status of interrupts.
+- Added new enumeration values for interrupts and events in the UARTE HAL.
+- Implemented workarounds for nRF52 anomalies 192 and 201 in the CLOCK driver.
+- Implemented workaround for nRF52840 anomaly 122 in the QSPI driver.
+- Implemented workaround for nRF52840 anomaly 198 in the SPIM driver.
+
+### Changed
+- Updated MDK to 8.16.0.
+- Extended input pin configuration in the GPIOTE driver.
+- Unified the way of checking if a required event handler was provided. Now, all drivers do it with assertions.
+- Changed the RNG bias correction configuration option to be enabled by default.
+- Refactored the ADC driver and HAL.
+- Corrected assertions in the TIMER driver to make it usable in debug version with PPI.
+- Improved buffer handling in the I2S driver. The API of the driver has been sligthly modified.
+- Enhanced SPIS driver API: added the "p_context" parameter, allowed NULL pointers for zero-length buffers.
+
+### Fixed
+- Fixed result value casting in the TEMP HAL.
+- Fixed types of conversion result and buffer size in the ADC HAL and driver.
+- Fixed time-out in the SAADC driver in abort function.
+
+## [0.8.0] - 2017-12-20
+### Added
+- Added XIP support in the QSPI driver.
+- Implemented Errata 132 in the CLOCK driver.
+- Added function for checking if a TIMER instance is enabled.
+- Added extended SPIM support.
+
+### Changed
+- Updated MDK to 8.15.0. Introduced Segger Embedded Studio startup files.
+- Updated drivers: COMP, PWM, QDEC, SAADC, SPIS, TIMER, TWI, TWIS.
+- Changed the type used for transfer lengths to 'size_t' in drivers: SPI, SPIM, SPIS, TWI, TWIM, TWIS, UART, UARTE. Introduced checking of EasyDMA transfers limits.
+- Updated HALs: COMP, NVMC, UART, UARTE, USBD.
+- Updated template files and documentation of configuration options.
+
+### Fixed
+- Fixed TWI and TWIM drivers so that they now support GPIOs from all ports.
+- Fixed definitions related to compare channels in the TIMER HAL.
+
+### Removed
+- Removed the possibility of passing NULL instead of configuration to get default settings during drivers initialization.
+- Removed support for UART1 and PRS box #5.
+
+## [0.7.0] - 2017-10-20
+### Added
+- This CHANGELOG.md file.
+- README.md file with simple description and explanations.
+- HAL for: ADC, CLOCK, COMP, ECB, EGU, GPIO, GPIOTE, I2S, LPCOMP, NVMC, PDM, POWER, PPI, PWM, QDEC, QSPI, RNG, RTC, SAADC, SPI, SPIM, SPIS, ARM(R) SysTick, TEMP, TIMER, TWI, TWIM, TWIS, UART, UARTE, USBD, WDT.
+- Drivers for: ADC, CLOCK, COMP, GPIOTE, I2S, LPCOMP, PDM, POWER, PWM, QDEC, QSPI, RNG, RTC, SAADC, SPI, SPIM, SPIS, ARM(R) SysTick, TIMER, TWI, TWIM, TWIS, UART, UARTE, WDT.
+- Allocators for: PPI, SWI/EGU.
+- MDK in version 8.14.0.
+- Offline documentation for every added driver and simple integration description.
+- Template integration files.
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/LICENSE b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/LICENSE
new file mode 100644
index 0000000..1e45b06
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/LICENSE
@@ -0,0 +1,39 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/README.md b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/README.md
new file mode 100644
index 0000000..2bbfc75
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/README.md
@@ -0,0 +1,37 @@
+# nrfx
+
+## Overview
+
+nrfx is an extract from the nRF5 SDK that contains solely the drivers for
+peripherals present in Nordic SoCs, for convenience complemented with the MDK
+package containing required structures and bitfields definitions, startup
+files etc.
+
+## Supported SoCs
+
+* nRF51 Series
+* nRF52810
+* nRF52832
+* nRF52840
+
+## Directories
+
+```
+ .
+ ├── doc # Project documentation files
+ ├── drivers # nrfx drivers files
+ │ └── include # nrfx drivers headers
+ │ └── src # nrfx drivers sources
+ ├── hal # Hardware Access Layer files
+ ├── mdk # Nordic MDK files
+ ├── soc # Nordic SoC related files
+ └── templates # Templates of nrfx integration files
+```
+
+## Generating documentation
+
+nrfx documentation is availabe in the `doc\html` folder of the release package.
+
+You can also generate documentation yourself from the source code. To do it, install doxygen
+and run one of the scripts: `generate_html_doc.bat` or `generate_html_doc.sh`. Generated
+documentation will be stored in the `doc\html` directory. Use `index.html` to open it.
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/extra_stylesheet.css b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/extra_stylesheet.css
new file mode 100644
index 0000000..3b53f26
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/extra_stylesheet.css
@@ -0,0 +1,506 @@
+.appliesto {background-color:#3D578C;color:#fff}
+
+div.header
+{
+ background-image:none;
+ background-color: #FFF;
+ border-bottom: 0px;
+}
+
+body, table, div, p, dl {
+ font-size: 16px;
+ font-family: Open Sans, Calibri, Arial, Sans-Serif;
+ color: #474747;
+ line-height: 20px;
+
+}
+
+a.code {
+ color: #1c99c7;
+}
+
+a.el {
+ font-weight: normal;
+}
+
+.contents a:visited, a:visited.code {
+ color: #16779a;
+}
+
+.title {
+ font-size: 1.34em
+}
+
+h1 {
+ font-size: 1.25em
+}
+
+h2 {
+ font-size: 1.15em
+}
+
+h3 {
+ font-size: 1.05em
+}
+
+h4 {
+ font-size: 1em
+}
+
+table.memberdecls, table.directory, table.memname {
+ margin:0px;
+ border:0px;
+ -moz-box-shadow: 0 0px 0px #d1d1d1;
+ -webkit-box-shadow: 0 0px 0px #d1d1d1;
+ box-shadow: 0 0px 0px #d1d1d1;
+}
+
+table.memberdecls tr {
+ padding-left:0px;
+}
+
+table.memberdecls tr:hover td, table.memname tr:hover td {
+ background: inherit;
+}
+
+table.directory tr.even, table.directory tr.odd {
+ background: inherit;
+}
+
+table.memberdecls td, table.directory td, table.directory td.desc {
+ border:0px;
+ padding: 2px 0px 0px;
+}
+
+table.memberdecls td.memSeparator {
+ background-color:#inherit;
+ padding:2px;
+ border-bottom: 1px dotted #DEE4F0;
+}
+
+.mdescLeft, .mdescRight,
+.memItemLeft, .memItemRight,
+.memTemplItemLeft, .memTemplItemRight, .memTemplParams {
+ background-color: inherit;
+}
+
+div.levels {
+ display:none;
+}
+
+table.retval {
+border:#ccc 1px solid;
+}
+
+
+table.memname td, table.params td, table.retval td {
+padding:5px;
+border:0px;
+}
+
+div.fragment div.line {
+font-size: 14px;
+line-height:18px;
+}
+
+table.fieldtable, table.params, table.retval {
+ -moz-box-shadow: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+table.fieldtable th {
+ border:none;
+ border-bottom:1px solid #A8B8D9;
+}
+
+table.blank, table.blank tr th, table.blank tr td {
+ border:none;
+ -moz-box-shadow: none;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+
+table.blank tr:hover td {
+ background: #ffffff;
+}
+
+
+#projectlogo
+{
+ text-align: left;
+ vertical-align: middle;
+ border-collapse: separate;
+}
+
+#projectname
+{
+ font-size: 40px;
+ font-family: Open Sans, Calibri, Arial, Sans-Serif;
+ margin: 0px;
+ padding: 2px 0px;
+}
+
+#projectbrief
+{
+ font-size: 30px;
+ margin: 0px;
+ padding: 0px;
+}
+
+#titlearea
+{
+ border-bottom: 1px solid #e0e0e0;
+}
+
+.label a, .item a
+{
+ border-bottom: none;
+
+}
+
+#nav-tree {
+ background-image: none;
+ background-color: #FAFAFA;
+}
+
+div.contents {
+ margin-left: 30px;
+ margin-right: 30px;
+
+}
+
+div.header {
+ margin-left: 20px;
+}
+
+table td.doclinks a {
+ font-size: 12px;
+ font-style: italic;
+ color: #e97c25;
+ border: 1px solid #e97c25;
+ padding: 2px 5px;
+ text-decoration: none;
+}
+
+table td.docselected a {
+ background: #e97c25;
+ color: #fff;
+}
+
+table td.doclinkintro {
+ font-size: 12px;
+ font-style: italic;
+}
+
+
+/* nordic.css */
+.p {
+ margin-top: .3em;
+}
+
+/* fix for table spacing */
+td p.p {
+ margin: 0em;
+ padding: 0px;
+}
+dt.line_sep {
+ border-top: solid #c9c9c9 1px;
+ padding-top: 5px;
+
+}
+
+a
+{
+ color: #1c99c7;
+ text-decoration: none;
+ border-bottom: 1px #e5e5e5 solid;
+
+}
+
+a:visited
+{
+ color: #16779a;
+}
+a:hover
+{
+ color: #none;
+ text-decoration: underline;
+ border: none;
+}
+
+a:active
+{
+
+}
+
+ul.ul {
+ margin-top: 4px;
+ margin-bottom: 10px;
+}
+
+
+a[href*='.pdf'] {
+background:transparent url(./pdf.png) center left no-repeat;
+padding-left:22px;
+line-height:18px;
+}
+
+
+a[href*='.zip'] {
+background:transparent url(./zip_s.png) center left no-repeat;
+padding-left:22px;
+line-height:18px;
+}
+
+a[href*='.exe'] {
+background:transparent url(./execute_s.png) center left no-repeat;
+padding-left:22px;
+line-height:18px;
+}
+
+a[href*='.msi'] {
+background:transparent url(./msi_s.png) center left no-repeat;
+padding-left:22px;
+line-height:18px;
+}
+
+table a:link {
+ color: #1c99c7;
+ text-decoration: none;
+ border-bottom: 1px #e5e5e5 solid;
+}
+table a:visited {
+ color: #16779a;
+}
+table a:active,
+table a:hover {
+ color: #none;
+ text-decoration: underline;
+ border: none;
+}
+table {
+ font-family:Calibri, Arial, Sans-Serif;
+ color:#474747;
+ font-size:16px;
+ margin-left: auto;
+ margin-right: auto;
+ border:#ccc 1px solid;
+
+
+ -moz-box-shadow: 0 1px 2px #d1d1d1;
+ -webkit-box-shadow: 0 1px 2px #d1d1d1;
+ box-shadow: 0 1px 2px #d1d1d1;
+}
+table th {
+ color: #000;
+ font-size: 18px;
+ font-weight: bold;
+ text-align: left;
+ padding:10px 15px 10px 10px;
+ border-top:1px solid #7eceed;
+ border-bottom:1px solid #7eceed;
+ border-right:1px solid #7eceed;
+ border-left:1px solid #7eceed;
+
+ background: #7eceed;
+ background: -webkit-gradient(linear, left top, left bottom, from(#7eceed), to(#7eceed));
+ background: -moz-linear-gradient(top, #7eceed, #7eceed);
+}
+
+table th.center {
+ text-align: center;
+}
+table tr {
+ text-align: left;
+
+}
+table td {
+ padding:5px 5px 5px 10px;
+ border-top: 1px solid #ffffff;
+ border-bottom:1px solid #e0e0e0;
+ border-left: 1px solid #e0e0e0;
+ border-right: 1px solid #e0e0e0;
+
+}
+table tr:hover td {
+ background: #ebebeb;
+ background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#f0f0f0));
+ background: -moz-linear-gradient(top, #f2f2f2, #f0f0f0);
+}
+
+
+
+
+img {
+ border: 0;
+ margin-left: auto;
+ margin-right: auto;
+ max-width:100%;
+}
+
+
+/* make svg files scale in IE. compatible with Dita OT v2.0
+img:not(.png) {
+ width: 100%;
+ margin-left: auto;
+ margin-right: auto;
+}
+*/
+
+
+/* make svg files scale in IE */
+embed.image:not(.png):not(.gif):not(.jpg) {
+ width: 100%;
+ margin-left: auto;
+ margin-right: auto;
+ margin-bottom: 15px;
+}
+
+svg {
+ position: absolute;
+ top: 0;
+ left: 0;
+
+}
+
+caption {
+ caption-side: bottom;
+ text-align: center;
+ font-size: 100%;
+ font-weight: bold;
+ margin-top: 15px;
+ margin-bottom: 35px;
+
+ }
+
+figdesc {
+ caption-side: bottom;
+ text-align: center;
+ font-size: 100%;
+ font-weight: bold;
+ margin-top: 15px;
+ margin-bottom: 20px;
+
+ }
+
+/* to get figure captions to appear below the image and center */
+
+div.fig {
+ display: table;
+ width: 100%;
+ margin-top: 10px;
+ margin-bottom: 55px;
+}
+
+div.fig span.figcap {
+ display:table-footer-group;
+ text-align:center;
+ font-size: 100%;
+ font-weight: bold;
+ margin-top: 10px;
+ margin-bottom: 20px;
+ font-style: normal;
+}
+div.fig div.imagecenter {
+ display:table-row-group;
+}
+
+
+/* fix to hide borders in image maps (Chrome only) */
+img.map, map area{
+ outline: none;
+}
+
+
+/* fix placement of <sup>&reg;</sup> */
+sup {
+ line-height: 1em;
+}
+
+.sdkversion span {
+ font-size: 12px;
+ font-style: italic;
+ color: #e97c25;
+ border: 1px solid #e97c25;
+ padding: 2px 5px;
+}
+
+.sdkversion {
+ text-align: right;
+}
+
+.whichSDs span,.whichnRF span {
+ font-size: 12px;
+ font-style: italic;
+ color: #e97c25;
+ border: 1px solid #e97c25;
+ padding: 2px 5px;
+ }
+
+.whichSDs.nRF52 span,.whichnRF.nRF52 span {
+ color: #e97c25;
+ border-color: #e97c25;
+}
+
+.whichSDs.nRF52840 span,.whichnRF.nRF52840 span {
+ color: #0081B7;
+ border-color: #0081B7;
+}
+
+.whichSDs.nRF51 span,.whichnRF.nRF51 span {
+ color: #7f7f7f;
+ border-color: #7f7f7f;
+}
+
+div.whichnRF {
+ padding-bottom: 5px;
+}
+
+span.whichnRF{
+ font-size: 12px;
+ font-style: italic;
+ color: #e97c25;
+ border: 1px solid #e97c25;
+ padding: 2px 5px;
+}
+
+span.whichnRF.nRF52 {
+ color: #e97c25;
+ border-color: #e97c25;
+}
+
+span.whichnRF.nRF52840 {
+ color: #0081B7;
+ border-color: #0081B7;
+}
+
+span.whichnRF.nRF51 {
+ color: #7f7f7f;
+ border-color: #7f7f7f;
+}
+
+.orange {
+ color: #e97c25;
+}
+
+hr {
+ margin-top:20px;
+ border-top:1px solid #8EA7B0;
+}
+
+
+.directory td.entry {
+ white-space: normal;
+ width:50%;
+}
+
+/* overrides */
+.topicfooter {
+ text-align: right;
+// margin-top: 1px;
+ padding-right: 10px;
+ box-shadow: inset 0px 1px 0px 0px #e0e0e0;
+ font-size: 13px;
+}
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/favicon.ico b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/favicon.ico
new file mode 100644
index 0000000..0bd6cc0
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/favicon.ico
Binary files differ
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/footer.html b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/footer.html
new file mode 100644
index 0000000..0dbc698
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/footer.html
@@ -0,0 +1,13 @@
+<div id="nav-path" class="topicfooter">
+<a href="mailto:docfeedback@nordicsemi.no?subject=Documentation%20feedback" id="maillink">Documentation feedback</a> | <a href="https://devzone.nordicsemi.com/questions/" target="_blank">Developer Zone</a> | <a href="http://response.nordicsemi.com/subscribe-to-our-newsletters" target="_blank">Subscribe</a> | Updated <span id="date"/>
+
+<script>
+var date = new Date("$date" + " UTC");
+document.getElementById("date").innerHTML = date.toJSON().slice(0, 10);
+var url=window.location.href.split("?")[0];
+var filename=url.substring(url.lastIndexOf('/')+1);
+document.getElementById("maillink").href = "mailto:docfeedback@nordicsemi.no?subject=Documentation%20feedback"+decodeURIComponent("%26")+"body=File%20name%3A%20"+encodeURIComponent(filename);
+</script>
+</div>
+</body>
+</html>
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/header.html b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/header.html
new file mode 100644
index 0000000..cb24f2b
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/header.html
@@ -0,0 +1,68 @@
+<!-- HTML header for doxygen 1.8.3.1-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen $doxygenversion"/>
+<!--BEGIN PROJECT_NAME--><title>$projectname $projectnumber: $title</title><!--END PROJECT_NAME-->
+<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
+<link href="$relpath^tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="$relpath^jquery.js"></script>
+<script type="text/javascript" src="$relpath^dynsections.js"></script>
+$treeview
+$search
+$mathjax
+<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" />
+$extrastylesheet
+<link href="$relpath^nordic.css" rel="stylesheet" type="text/css" />
+<link rel="Shortcut icon" href="./favicon.ico" type="image/x-icon" />
+</head>
+<body>
+
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+
+<!--BEGIN TITLEAREA-->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0" width="100%" class="blank">
+ <tbody>
+ <tr style="height: 56px;">
+ <!--BEGIN PROJECT_LOGO-->
+ <td id="projectlogo"><img alt="Nordic Semiconductor" src="$relpath^$projectlogo"/></td>
+ <!--END PROJECT_LOGO-->
+ <!--BEGIN PROJECT_NAME-->
+ <td style="padding-left: 0.5em;">
+ <div id="projectname">$projectname
+ <!--BEGIN PROJECT_NUMBER-->&#160;<span id="projectnumber">$projectnumber</span><!--END PROJECT_NUMBER-->
+ </div>
+ <!--BEGIN PROJECT_BRIEF--><div id="projectbrief">$projectbrief</div><!--END PROJECT_BRIEF-->
+ </td>
+ <!--END PROJECT_NAME-->
+ <!--BEGIN !PROJECT_NAME-->
+ <!--BEGIN PROJECT_BRIEF-->
+ <td style="padding-left: 0.5em;">
+ <div id="projectbrief">$projectbrief</div>
+ </td>
+ <!--END PROJECT_BRIEF-->
+ <!--END !PROJECT_NAME-->
+ <!--BEGIN DISABLE_INDEX-->
+ <!--BEGIN SEARCHENGINE-->
+ <td>$searchbox</td>
+ <!--END SEARCHENGINE-->
+ <!--END DISABLE_INDEX-->
+ </tr>
+ </tbody>
+</table>
+<script>
+var url=window.location.href.split("/").reverse()[1];
+var validLinks= ["nrf5","s132","s140","s212","s332"];
+var index;
+for (index = 0; index < validLinks.length; ++index) {
+ if ( url.indexOf(validLinks[index]) !== -1 ) {
+ document.getElementById(validLinks[index]).setAttribute('class', 'doclinks docselected');
+ };
+};
+</script>
+</div>
+<!--END TITLEAREA-->
+<!-- end header part -->
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/index.html b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/index.html
new file mode 100644
index 0000000..f62e2f1
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/index.html
@@ -0,0 +1,9 @@
+<html>
+ <head>
+
+ <script type="text/javascript">
+ window.location="nrf5/index.html";
+ </script>
+
+ </head>
+</html>
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/layout.xml b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/layout.xml
new file mode 100644
index 0000000..3bd29b7
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/layout.xml
@@ -0,0 +1,187 @@
+<doxygenlayout version="1.0">
+ <!-- Navigation index tabs for HTML output -->
+ <navindex>
+ <tab type="mainpage" visible="yes" title="Home"/>
+ <tab type="pages" visible="yes" title="" intro=""/>
+ <tab type="modules" visible="yes" title="API Reference" intro=""/>
+ <tab type="namespaces" visible="no" title="">
+ <tab type="namespacelist" visible="yes" title="" intro=""/>
+ <tab type="namespacemembers" visible="yes" title="" intro=""/>
+ </tab>
+ <tab type="usergroup" visible="yes" title="Data Structures">
+ <tab type="classlist" visible="yes" title="" intro=""/>
+ <tab type="classindex" visible="$ALPHABETICAL_INDEX" title=""/>
+ <tab type="hierarchy" visible="no" title="" intro=""/>
+ <tab type="classmembers" visible="yes" title="" intro=""/>
+ </tab>
+ <tab type="files" visible="no" title="">
+ <tab type="filelist" visible="yes" title="" intro=""/>
+ <tab type="globals" visible="yes" title="" intro=""/>
+ </tab>
+ <tab type="examples" visible="yes" title="Source" intro=""/>
+ </navindex>
+
+ <!-- Layout definition for a class page -->
+ <class>
+ <briefdescription visible="yes"/>
+ <includes visible="$SHOW_INCLUDE_FILES"/>
+ <inheritancegraph visible="$CLASS_GRAPH"/>
+ <collaborationgraph visible="$COLLABORATION_GRAPH"/>
+ <memberdecl>
+ <nestedclasses visible="yes" title=""/>
+ <publictypes title=""/>
+ <publicslots title=""/>
+ <signals title=""/>
+ <publicmethods title=""/>
+ <publicstaticmethods title=""/>
+ <publicattributes title=""/>
+ <publicstaticattributes title=""/>
+ <protectedtypes title=""/>
+ <protectedslots title=""/>
+ <protectedmethods title=""/>
+ <protectedstaticmethods title=""/>
+ <protectedattributes title=""/>
+ <protectedstaticattributes title=""/>
+ <packagetypes title=""/>
+ <packagemethods title=""/>
+ <packagestaticmethods title=""/>
+ <packageattributes title=""/>
+ <packagestaticattributes title=""/>
+ <properties title=""/>
+ <events title=""/>
+ <privatetypes title=""/>
+ <privateslots title=""/>
+ <privatemethods title=""/>
+ <privatestaticmethods title=""/>
+ <privateattributes title=""/>
+ <privatestaticattributes title=""/>
+ <friends title=""/>
+ <related title="" subtitle=""/>
+ <membergroups visible="yes"/>
+ </memberdecl>
+ <detaileddescription title=""/>
+ <memberdef>
+ <inlineclasses title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <constructors title=""/>
+ <functions title=""/>
+ <related title=""/>
+ <variables title=""/>
+ <properties title=""/>
+ <events title=""/>
+ </memberdef>
+ <allmemberslink visible="yes"/>
+ <usedfiles visible="$SHOW_USED_FILES"/>
+ <authorsection visible="yes"/>
+ </class>
+
+ <!-- Layout definition for a namespace page -->
+ <namespace>
+ <briefdescription visible="yes"/>
+ <memberdecl>
+ <nestednamespaces visible="yes" title=""/>
+ <classes visible="yes" title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <functions title=""/>
+ <variables title=""/>
+ <membergroups visible="yes"/>
+ </memberdecl>
+ <detaileddescription title=""/>
+ <memberdef>
+ <inlineclasses title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <functions title=""/>
+ <variables title=""/>
+ </memberdef>
+ <authorsection visible="yes"/>
+ </namespace>
+
+ <!-- Layout definition for a file page -->
+ <file>
+ <briefdescription visible="yes"/>
+ <includes visible="$SHOW_INCLUDE_FILES"/>
+ <includegraph visible="$INCLUDE_GRAPH"/>
+ <includedbygraph visible="$INCLUDED_BY_GRAPH"/>
+ <sourcelink visible="yes"/>
+ <memberdecl>
+ <classes visible="yes" title=""/>
+ <namespaces visible="yes" title=""/>
+ <defines title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <functions title=""/>
+ <variables title=""/>
+ <membergroups visible="yes"/>
+ </memberdecl>
+ <detaileddescription title=""/>
+ <memberdef>
+ <inlineclasses title=""/>
+ <defines title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <functions title=""/>
+ <variables title=""/>
+ </memberdef>
+ <authorsection/>
+ </file>
+
+ <!-- Layout definition for a group page -->
+ <group>
+ <briefdescription visible="yes"/>
+ <groupgraph visible="$GROUP_GRAPHS"/>
+ <memberdecl>
+ <nestedgroups visible="yes" title=""/>
+ <dirs visible="yes" title=""/>
+ <files visible="yes" title=""/>
+ <namespaces visible="yes" title=""/>
+ <classes visible="yes" title=""/>
+ <defines title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <enumvalues title=""/>
+ <functions title=""/>
+ <variables title=""/>
+ <signals title=""/>
+ <publicslots title=""/>
+ <protectedslots title=""/>
+ <privateslots title=""/>
+ <events title=""/>
+ <properties title=""/>
+ <friends title=""/>
+ <membergroups visible="yes"/>
+ </memberdecl>
+ <detaileddescription title=""/>
+ <memberdef>
+ <pagedocs/>
+ <inlineclasses title=""/>
+ <defines title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <enumvalues title=""/>
+ <functions title=""/>
+ <variables title=""/>
+ <signals title=""/>
+ <publicslots title=""/>
+ <protectedslots title=""/>
+ <privateslots title=""/>
+ <events title=""/>
+ <properties title=""/>
+ <friends title=""/>
+ </memberdef>
+ <authorsection visible="yes"/>
+ </group>
+
+ <!-- Layout definition for a directory page -->
+ <directory>
+ <briefdescription visible="yes"/>
+ <directorygraph visible="yes"/>
+ <memberdecl>
+ <dirs visible="yes"/>
+ <files visible="yes"/>
+ </memberdecl>
+ <detaileddescription title=""/>
+ </directory>
+</doxygenlayout>
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/nordic_small.png b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/nordic_small.png
new file mode 100644
index 0000000..7b6a313
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/buildfiles/nordic_small.png
Binary files differ
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/drv_supp_matrix.dox b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/drv_supp_matrix.dox
new file mode 100644
index 0000000..453e5df
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/drv_supp_matrix.dox
@@ -0,0 +1,42 @@
+/**
+@page nrfx_drv_supp_matrix Driver Support Matrix
+This matrix shows which drivers are supported by particular Nordic SoCs.
+@{
+
+Driver | nRF51 Series | nRF52810 | nRF52832 | nRF52840 |
+-----------------|--------------|--------------| -------------| -------------|
+@ref nrf_adc |@tagGreenTick |@tagRedCross |@tagRedCross |@tagRedCross |
+@ref nrf_clock |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_comp |@tagRedCross |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_ecb |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_gpio |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_gpiote |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_i2s |@tagRedCross |@tagRedCross |@tagGreenTick |@tagGreenTick |
+@ref nrf_lpcomp |@tagGreenTick |@tagRedCross |@tagGreenTick |@tagGreenTick |
+@ref nrf_nvmc |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_pdm |@tagRedCross |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_power |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_ppi |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_pwm |@tagRedCross |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_qdec |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_qspi |@tagRedCross |@tagRedCross |@tagRedCross |@tagGreenTick |
+@ref nrf_rng |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_rtc |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_saadc |@tagRedCross |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_spi |@tagGreenTick |@tagRedCross |@tagGreenTick |@tagGreenTick |
+@ref nrf_spim |@tagRedCross |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_spis |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_systick |@tagRedCross |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_swi_egu |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_temp |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_timer |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_twi |@tagGreenTick |@tagRedCross |@tagGreenTick |@tagGreenTick |
+@ref nrf_twim |@tagRedCross |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_twis |@tagRedCross |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_uart |@tagGreenTick |@tagRedCross |@tagGreenTick |@tagGreenTick |
+@ref nrf_uarte |@tagRedCross |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+@ref nrf_usbd |@tagRedCross |@tagRedCross |@tagRedCross |@tagGreenTick |
+@ref nrf_wdt |@tagGreenTick |@tagGreenTick |@tagGreenTick |@tagGreenTick |
+
+@}
+*/
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/generate_html_doc.bat b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/generate_html_doc.bat
new file mode 100644
index 0000000..f63b3e7
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/generate_html_doc.bat
@@ -0,0 +1,2 @@
+del html\*.* /Q
+doxygen nrfx.doxyfile
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/generate_html_doc.sh b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/generate_html_doc.sh
new file mode 100644
index 0000000..9cc608c
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/generate_html_doc.sh
@@ -0,0 +1,2 @@
+rm -rf html
+doxygen nrfx.doxyfile
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/main_page.dox b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/main_page.dox
new file mode 100644
index 0000000..5213dd6
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/main_page.dox
@@ -0,0 +1,86 @@
+/**
+@mainpage Introduction
+
+@em nrfx is an extract from the nRF5 SDK that contains solely the drivers for
+peripherals present in Nordic SoCs, for convenience complemented with the MDK
+package containing required structures and bitfields definitions, startup
+files etc.
+
+Refer to the @ref nrfx_drv_supp_matrix to check which drivers are suitable
+for a given SoC.
+
+@section nrfx_integration Integration
+
+The purpose of @em nrfx is to make it possible to use the same set of peripheral
+drivers in various environments, from RTOSes to bare metal applications.
+Hence, for a given host environment, a light integration layer must be provided
+that implements certain specific routines, like interrupt management, critical
+sections, assertions, or logging. This is done by filling a predefined set of
+macros with proper implementations (or keeping some empty if desired) in files
+named:
+- @ref nrfx_glue
+- @ref nrfx_log
+
+Templates of these files are provided
+in the <a href="../../templates/">templates</a> subfolder. Their customized
+versions can be placed in any location within the host environment that the
+used compiler can access via include paths.
+
+In addition, the following locations should be specified as include paths
+([nrfx] stands for the @em nrfx root folder location):
+@code
+[nrfx]/
+[nrfx]/drivers/include
+[nrfx]/mdk
+@endcode
+
+@section nrfx_irq_handlers IRQ handlers
+
+The IRQ handlers in all drivers are implemented as ordinary API functions
+named "nrfx_*_irq_handler". They can be bound to some structures or called in
+a specific way according to the requirements of the host environment.
+To install the handlers in the standard MDK way, you must only add the following
+line to the @ref nrfx_glue file:
+
+@code
+#include <soc/nrfx_irqs.h>
+@endcode
+
+This will cause the preprocessor to properly rename all the IRQ handler
+functions so that the linker could install them in the vector table.
+
+@section nrfx_configuration Configuration
+
+The drivers use both dynamic (run time) and static (compile time) configuration.
+
+Dynamic configuration is done by specifying desired options in configuration
+structures passed to the drivers during their initialization.
+Refer to the API reference for a given driver to see the members of its
+configuration structure.
+
+Static configuration allows enabling and disabling (excluding their code from
+compilation) particular drivers or in some cases their specific features,
+defining default parameters for dynamic configuration, parametrization of
+logging in particular drivers. It is done by specifying desired values of macros
+in a file named:
+
+- nrfx_config.h
+
+This file, similarly to the integration files mentioned above, can be placed
+in any suitable location within the host environment.
+The <a href="../../templates/">templates</a> subfolder contains templates of
+configuration files for all currently supported Nordic SoCs placed in respective
+subfolders.
+Refer to the "driver configuration" section in the API reference for a given
+driver for more information regarding configuration options available for it.
+
+@section nrfx_additional_reqs Additional requirements
+
+Nordic SoCs are based on ARM® Cortex™-M series processors. Before you can
+start developing with @em nrfx, you must add the CMSIS header files to include
+paths during the compilation process. Download these files from the following
+website:
+
+- <a href="https://github.com/ARM-software/CMSIS"> ARM® CMSIS repository</a>
+(CMSIS/Include directory)
+*/
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf51_series.dox b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf51_series.dox
new file mode 100644
index 0000000..a38c8e6
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf51_series.dox
@@ -0,0 +1,46 @@
+/**
+@page nrf51_series_drivers nRF51 Series Drivers
+@{
+
+@ref nrf_adc
+
+@ref nrf_clock
+
+@ref nrf_ecb
+
+@ref nrf_gpio
+
+@ref nrf_gpiote
+
+@ref nrf_lpcomp
+
+@ref nrf_nvmc
+
+@ref nrf_power
+
+@ref nrf_ppi
+
+@ref nrf_qdec
+
+@ref nrf_rng
+
+@ref nrf_rtc
+
+@ref nrf_spi
+
+@ref nrf_spis
+
+@ref nrf_swi_egu
+
+@ref nrf_temp
+
+@ref nrf_timer
+
+@ref nrf_twi
+
+@ref nrf_uart
+
+@ref nrf_wdt
+
+@}
+*/
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf52810.dox b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf52810.dox
new file mode 100644
index 0000000..60f4384
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf52810.dox
@@ -0,0 +1,54 @@
+/**
+@page nrf52810_drivers nRF52810 Drivers
+@{
+
+@ref nrf_clock
+
+@ref nrf_comp
+
+@ref nrf_ecb
+
+@ref nrf_gpio
+
+@ref nrf_gpiote
+
+@ref nrf_nvmc
+
+@ref nrf_pdm
+
+@ref nrf_power
+
+@ref nrf_ppi
+
+@ref nrf_pwm
+
+@ref nrf_qdec
+
+@ref nrf_rng
+
+@ref nrf_rtc
+
+@ref nrf_saadc
+
+@ref nrf_spim
+
+@ref nrf_spis
+
+@ref nrf_systick
+
+@ref nrf_swi_egu
+
+@ref nrf_temp
+
+@ref nrf_timer
+
+@ref nrf_twim
+
+@ref nrf_twis
+
+@ref nrf_uarte
+
+@ref nrf_wdt
+
+@}
+*/
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf52832.dox b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf52832.dox
new file mode 100644
index 0000000..dcd89bf
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf52832.dox
@@ -0,0 +1,64 @@
+/**
+@page nrf52832_drivers nRF52832 Drivers
+@{
+
+@ref nrf_clock
+
+@ref nrf_comp
+
+@ref nrf_ecb
+
+@ref nrf_gpio
+
+@ref nrf_gpiote
+
+@ref nrf_i2s
+
+@ref nrf_lpcomp
+
+@ref nrf_nvmc
+
+@ref nrf_pdm
+
+@ref nrf_power
+
+@ref nrf_ppi
+
+@ref nrf_pwm
+
+@ref nrf_qdec
+
+@ref nrf_rng
+
+@ref nrf_rtc
+
+@ref nrf_saadc
+
+@ref nrf_spi
+
+@ref nrf_spim
+
+@ref nrf_spis
+
+@ref nrf_systick
+
+@ref nrf_swi_egu
+
+@ref nrf_temp
+
+@ref nrf_timer
+
+@ref nrf_twi
+
+@ref nrf_twim
+
+@ref nrf_twis
+
+@ref nrf_uart
+
+@ref nrf_uarte
+
+@ref nrf_wdt
+
+@}
+*/
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf52840.dox b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf52840.dox
new file mode 100644
index 0000000..754be45
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrf52840.dox
@@ -0,0 +1,68 @@
+/**
+@page nrf52840_drivers nRF52840 Drivers
+@{
+
+@ref nrf_clock
+
+@ref nrf_comp
+
+@ref nrf_ecb
+
+@ref nrf_gpio
+
+@ref nrf_gpiote
+
+@ref nrf_i2s
+
+@ref nrf_lpcomp
+
+@ref nrf_nvmc
+
+@ref nrf_pdm
+
+@ref nrf_power
+
+@ref nrf_ppi
+
+@ref nrf_pwm
+
+@ref nrf_qdec
+
+@ref nrf_qspi
+
+@ref nrf_rng
+
+@ref nrf_rtc
+
+@ref nrf_saadc
+
+@ref nrf_spi
+
+@ref nrf_spim
+
+@ref nrf_spis
+
+@ref nrf_systick
+
+@ref nrf_swi_egu
+
+@ref nrf_temp
+
+@ref nrf_timer
+
+@ref nrf_twi
+
+@ref nrf_twim
+
+@ref nrf_twis
+
+@ref nrf_uart
+
+@ref nrf_uarte
+
+@ref nrf_usbd
+
+@ref nrf_wdt
+
+@}
+*/
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrfx.doxyfile b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrfx.doxyfile
new file mode 100644
index 0000000..c27f457
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrfx.doxyfile
@@ -0,0 +1,1892 @@
+# Doxyfile 1.8.3.1
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project.
+#
+# All text after a hash (#) is considered a comment and will be ignored.
+# The format is:
+# TAG = value [value, ...]
+# For lists items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ").
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file
+# that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
+# http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+DOXYFILE_ENCODING = UTF-8
+
+# The PROJECT_NAME tag is a single word (or sequence of words) that should
+# identify the project. Note that if you do not use Doxywizard you need
+# to put quotes around the project name if it contains spaces.
+
+PROJECT_NAME = "nrfx"
+### EDIT THIS ###
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+# This could be handy for archiving the generated documentation or
+# if some version control system is used.
+
+PROJECT_NUMBER = "0.8"
+### EDIT THIS ###
+
+# Using the PROJECT_BRIEF tag one can provide an optional one line description
+# for a project that appears at the top of each page and should give viewer
+# a quick idea about the purpose of the project. Keep the description short.
+
+PROJECT_BRIEF =
+
+# With the PROJECT_LOGO tag one can specify an logo or icon that is
+# included in the documentation. The maximum height of the logo should not
+# exceed 55 pixels and the maximum width should not exceed 200 pixels.
+# Doxygen will copy the logo to the output directory.
+
+PROJECT_LOGO = buildfiles/nordic_small.png
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+# base path where the generated documentation will be put.
+# If a relative path is entered, it will be relative to the location
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY =
+### EDIT THIS ###
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+# 4096 sub-directories (in 2 levels) under the output directory of each output
+# format and will distribute the generated files over these directories.
+# Enabling this option can be useful when feeding doxygen a huge amount of
+# source files, where putting all generated files in the same directory would
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# The default language is English, other supported languages are:
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
+# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
+# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
+# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak,
+# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+
+OUTPUT_LANGUAGE = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+# include brief member descriptions after the members that are listed in
+# the file and class documentation (similar to JavaDoc).
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+# the brief description of a member or function before the detailed description.
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator
+# that is used to form the text in various listings. Each string
+# in this list, if found as the leading text of the brief description, will be
+# stripped from the text and the result after processing the whole list, is
+# used as the annotated text. Otherwise, the brief description is used as-is.
+# If left blank, the following values are used ("$name" is automatically
+# replaced with the name of the entity): "The $name class" "The $name widget"
+# "The $name file" "is" "provides" "specifies" "contains"
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF =
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# Doxygen will generate a detailed section even if there is only a brief
+# description.
+
+ALWAYS_DETAILED_SEC = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+# path before files name in the file list and in the header files. If set
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES = YES
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+# can be used to strip a user-defined part of the path. Stripping is
+# only done if one of the specified strings matches the left-hand part of
+# the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the
+# path to strip. Note that you specify absolute paths here, but also
+# relative paths, which will be relative from the directory where doxygen is
+# started.
+
+STRIP_FROM_PATH = ..
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+# the path mentioned in the documentation of a class, which tells
+# the reader which header file to include in order to use a class.
+# If left blank only the name of the header file containing the class
+# definition is used. Otherwise one should specify the include paths that
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+# (but less readable) file names. This can be useful if your file system
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+# will interpret the first line (until the first dot) of a JavaDoc-style
+# comment as the brief description. If set to NO, the JavaDoc
+# comments will behave just like regular Qt-style comments
+# (thus requiring an explicit @brief command for a brief description.)
+
+JAVADOC_AUTOBRIEF = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
+# interpret the first line (until the first dot) of a Qt-style
+# comment as the brief description. If set to NO, the comments
+# will behave just like regular Qt-style comments (thus requiring
+# an explicit \brief command for a brief description.)
+
+QT_AUTOBRIEF = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+# comments) as a brief description. This used to be the default behaviour.
+# The new default is to treat a multi-line C++ comment block as a detailed
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+# member inherits the documentation from any documented member that it
+# re-implements.
+
+INHERIT_DOCS = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
+# a new page for each member. If set to NO, the documentation of a member will
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE = 4
+
+# This tag can be used to specify a number of aliases that acts
+# as commands in the documentation. An alias has the form "name=value".
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+# put the command \sideeffect (or @sideeffect) in the documentation, which
+# will result in a user-defined paragraph with heading "Side Effects:".
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES = \
+tagGreenTick="@htmlonly<CENTER><font color="green">✔</font></CENTER>@endhtmlonly" \
+tagRedCross="@htmlonly<CENTER><font color="red">✖</font></CENTER>@endhtmlonly" \
+linkProductSpecification52="[nRF52840 Product Specification](http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/chips/nrf52840_ps.html) or [nRF52832 Product Specification](http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/chips/nrf52832_ps.html)" \
+
+
+# This tag can be used to specify a number of word-keyword mappings (TCL only).
+# A mapping has the form "name=value". For example adding
+# "class=itcl::class" will allow you to use the command class in the
+# itcl::class meaning.
+
+TCL_SUBST =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+# sources only. Doxygen will then generate output that is more tailored for C.
+# For instance, some of the names that are used will be different. The list
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C = YES
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
+# sources only. Doxygen will then generate output that is more tailored for
+# Java. For instance, namespaces will be presented as packages, qualified
+# scopes will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources only. Doxygen will then generate output that is more tailored for
+# Fortran.
+
+OPTIMIZE_FOR_FORTRAN = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for
+# VHDL.
+
+OPTIMIZE_OUTPUT_VHDL = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it
+# parses. With this tag you can assign which parser to use for a given
+# extension. Doxygen has a built-in mapping, but you can override or extend it
+# using this tag. The format is ext=language, where ext is a file extension,
+# and language is one of the parsers supported by doxygen: IDL, Java,
+# Javascript, CSharp, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL, C,
+# C++. For instance to make doxygen treat .inc files as Fortran files (default
+# is PHP), and .f files as C (default is Fortran), use: inc=Fortran f=C. Note
+# that for custom extensions you also need to set FILE_PATTERNS otherwise the
+# files are not read by doxygen.
+
+EXTENSION_MAPPING =
+
+# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all
+# comments according to the Markdown format, which allows for more readable
+# documentation. See http://daringfireball.net/projects/markdown/ for details.
+# The output of markdown processing is further processed by doxygen, so you
+# can mix doxygen, HTML, and XML commands with Markdown formatting.
+# Disable only in case of backward compatibilities issues.
+
+MARKDOWN_SUPPORT = YES
+
+# When enabled doxygen tries to link words that correspond to documented classes,
+# or namespaces to their corresponding documentation. Such a link can be
+# prevented in individual cases by by putting a % sign in front of the word or
+# globally by setting AUTOLINK_SUPPORT to NO.
+
+AUTOLINK_SUPPORT = YES
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should
+# set this tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+# func(std::string) {}). This also makes the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+
+CPP_CLI_SUPPORT = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
+# Doxygen will parse them like normal C++ but will assume all classes use public
+# instead of private inheritance when no explicit protection keyword is present.
+
+SIP_SUPPORT = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate
+# getter and setter methods for a property. Setting this option to YES (the
+# default) will make doxygen replace the get and set methods by a property in
+# the documentation. This will only work if the methods are indeed getting or
+# setting a simple type. If this is not the case, or you want to show the
+# methods anyway, you should set this option to NO.
+
+IDL_PROPERTY_SUPPORT = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+# the same type (for instance a group of public functions) to be put as a
+# subgroup of that type (e.g. under the Public Functions section). Set it to
+# NO to prevent subgrouping. Alternatively, this can be done per class using
+# the \nosubgrouping command.
+
+SUBGROUPING = YES
+
+# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and
+# unions are shown inside the group in which they are included (e.g. using
+# @ingroup) instead of on a separate page (for HTML and Man pages) or
+# section (for LaTeX and RTF).
+
+INLINE_GROUPED_CLASSES = NO
+
+# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and
+# unions with only public data fields will be shown inline in the documentation
+# of the scope in which they are defined (i.e. file, namespace, or group
+# documentation), provided this scope is documented. If set to NO (the default),
+# structs, classes, and unions are shown on a separate page (for HTML and Man
+# pages) or section (for LaTeX and RTF).
+
+INLINE_SIMPLE_STRUCTS = NO
+
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
+# is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically
+# be useful for C code in case the coding convention dictates that all compound
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+
+TYPEDEF_HIDES_STRUCT = NO
+
+# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
+# determine which symbols to keep in memory and which to flush to disk.
+# When the cache is full, less often used symbols will be written to disk.
+# For small to medium size projects (<1000 input files) the default value is
+# probably good enough. For larger projects a too small cache size can cause
+# doxygen to be busy swapping symbols to and from disk most of the time
+# causing a significant performance penalty.
+# If the system has enough physical memory increasing the cache will improve the
+# performance by keeping more symbols in memory. Note that the value works on
+# a logarithmic scale so increasing the size by one will roughly double the
+# memory usage. The cache size is given by this formula:
+# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
+# corresponding to a cache size of 2^16 = 65536 symbols.
+
+SYMBOL_CACHE_SIZE = 0
+
+# Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be
+# set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given
+# their name and scope. Since this can be an expensive process and often the
+# same symbol appear multiple times in the code, doxygen keeps a cache of
+# pre-resolved symbols. If the cache is too small doxygen will become slower.
+# If the cache is too large, memory is wasted. The cache size is given by this
+# formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0,
+# corresponding to a cache size of 2^16 = 65536 symbols.
+
+LOOKUP_CACHE_SIZE = 0
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available.
+# Private class members and static file members will be hidden unless
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL = NO
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+# will be included in the documentation.
+
+EXTRACT_PRIVATE = NO
+
+# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal
+# scope will be included in the documentation.
+
+EXTRACT_PACKAGE = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file
+# will be included in the documentation.
+
+EXTRACT_STATIC = YES
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+# defined locally in source files will be included in the documentation.
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES = YES
+
+# This flag is only useful for Objective-C code. When set to YES local
+# methods, which are defined in the implementation section but not in
+# the interface are included in the documentation.
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base
+# name of the file that contains the anonymous namespace. By default
+# anonymous namespaces are hidden.
+
+EXTRACT_ANON_NSPACES = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+# undocumented members of documented classes, files or namespaces.
+# If set to NO (the default) these members will be included in the
+# various overviews, but no documentation section is generated.
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy.
+# If set to NO (the default) these classes will be included in the various
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+# friend (class|struct|union) declarations.
+# If set to NO (the default) these declarations will be included in the
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+# documentation blocks found inside the body of a function.
+# If set to NO (the default) these blocks will be appended to the
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS = NO
+
+# The INTERNAL_DOCS tag determines if documentation
+# that is typed after a \internal command is included. If the tag is set
+# to NO (the default) then the documentation will be excluded.
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+# file names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES = NO
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+# will show members with their full class and namespace scopes in the
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+# will put a list of the files that are included by a file in the documentation
+# of that file.
+
+SHOW_INCLUDE_FILES = YES
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen
+# will list include files with double quotes in the documentation
+# rather than with sharp brackets.
+
+FORCE_LOCAL_INCLUDES = NO
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+# is inserted in the documentation for inline members.
+
+INLINE_INFO = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+# will sort the (detailed) documentation of file and class members
+# alphabetically by member name. If set to NO the members will appear in
+# declaration order.
+
+SORT_MEMBER_DOCS = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+# brief documentation of file, namespace and class members alphabetically
+# by member name. If set to NO (the default) the members will appear in
+# declaration order.
+
+SORT_BRIEF_DOCS = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen
+# will sort the (brief and detailed) documentation of class members so that
+# constructors and destructors are listed first. If set to NO (the default)
+# the constructors will appear in the respective orders defined by
+# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS.
+# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO
+# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
+# hierarchy of group names into alphabetical order. If set to NO (the default)
+# the group names will appear in their defined order.
+
+SORT_GROUP_NAMES = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+# sorted by fully-qualified names, including namespaces. If set to
+# NO (the default), the class list will be sorted only by class name,
+# not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME = NO
+
+# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to
+# do proper type resolution of all parameters of a function it will reject a
+# match between the prototype and the implementation of a member function even
+# if there is only one candidate or it is obvious which candidate to choose
+# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen
+# will still accept a match between prototype and implementation in such cases.
+
+STRICT_PROTO_MATCHING = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or
+# disable (NO) the todo list. This list is created by putting \todo
+# commands in the documentation.
+
+GENERATE_TODOLIST = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or
+# disable (NO) the test list. This list is created by putting \test
+# commands in the documentation.
+
+GENERATE_TESTLIST = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or
+# disable (NO) the bug list. This list is created by putting \bug
+# commands in the documentation.
+
+GENERATE_BUGLIST = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+# disable (NO) the deprecated list. This list is created by putting
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST = YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional
+# documentation sections, marked by \if section-label ... \endif
+# and \cond section-label ... \endcond blocks.
+
+ENABLED_SECTIONS = NRF52 NRF52840
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+# the initial value of a variable or macro consists of for it to appear in
+# the documentation. If the initializer consists of more lines than specified
+# here it will be hidden. Use a value of 0 to hide initializers completely.
+# The appearance of the initializer of individual variables and macros in the
+# documentation can be controlled using \showinitializer or \hideinitializer
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+# at the bottom of the documentation of classes and structs. If set to YES the
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES = YES
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
+# This will remove the Files entry from the Quick Index and from the
+# Folder Tree View (if specified). The default is YES.
+
+SHOW_FILES = NO
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
+# Namespaces page.
+# This will remove the Namespaces entry from the Quick Index
+# and from the Folder Tree View (if specified). The default is YES.
+
+SHOW_NAMESPACES = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command <command> <input-file>, where <command> is the value of
+# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
+# provided by doxygen. Whatever the program writes to standard output
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER =
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
+# by doxygen. The layout file controls the global structure of the generated
+# output files in an output format independent way. To create the layout file
+# that represents doxygen's defaults, run doxygen with the -l option.
+# You can optionally specify a file name after the option, if omitted
+# DoxygenLayout.xml will be used as the name of the layout file.
+
+LAYOUT_FILE = buildfiles/layout.xml
+
+# The CITE_BIB_FILES tag can be used to specify one or more bib files
+# containing the references data. This must be a list of .bib files. The
+# .bib extension is automatically appended if omitted. Using this command
+# requires the bibtex tool to be installed. See also
+# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style
+# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this
+# feature you need bibtex and perl available in the search path. Do not use
+# file names with spaces, bibtex cannot handle them.
+
+CITE_BIB_FILES =
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET = YES
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated by doxygen. Possible values are YES and NO. If left blank
+# NO is used.
+
+WARNINGS = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED = NO
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some
+# parameters in a documented function, or documenting parameters that
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR = YES
+
+# The WARN_NO_PARAMDOC option can be enabled to get warnings for
+# functions that are documented, but have no documentation for their parameters
+# or return value. If set to NO (the default) doxygen will only warn about
+# wrong or incomplete parameter documentation, but not about the absence of
+# documentation.
+
+WARN_NO_PARAMDOC = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that
+# doxygen can produce. The string should contain the $file, $line, and $text
+# tags, which will be replaced by the file and line number from which the
+# warning originated and the warning text. Optionally the format may contain
+# $version, which will be replaced by the version of the file (if it could
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning
+# and error messages should be written. If left blank the output is written
+# to stderr.
+
+WARN_LOGFILE = warnings_nrfx.txt
+### EDIT THIS ###
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain
+# documented source files. You may enter file names like "myfile.cpp" or
+# directories like "/usr/src/myproject". Separate the files or directories
+# with spaces.
+
+INPUT = ../drivers \
+ ../hal \
+ ../soc \
+ ../templates \
+ config_dox \
+ .
+
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+# also the default input encoding. Doxygen uses libiconv (or the iconv built
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
+# the list of possible encodings.
+
+INPUT_ENCODING = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank the following patterns are tested:
+# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh
+# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py
+# *.f90 *.f *.for *.vhd *.vhdl
+
+FILE_PATTERNS = *.h *.dox
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+# should be searched for input files as well. Possible values are YES and NO.
+# If left blank NO is used.
+
+RECURSIVE = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should be
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+# Note that relative paths are relative to the directory from which doxygen is
+# run.
+
+EXCLUDE = # DO NOT ADD ANYTHING HERE - DEFINED IN SEPARATE FILE
+
+# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
+# directories that are symbolic links (a Unix file system feature) are excluded
+# from the input.
+
+EXCLUDE_SYMLINKS = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories. Note that the wildcards are matched
+# against the file with absolute path, so to exclude all test directories
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS =
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or
+# directories that contain example code fragments that are included (see
+# the \include command).
+
+EXAMPLE_PATH = # DO NOT ADD ANYTHING HERE - DEFINED IN SEPARATE FILE
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank all files are included.
+
+EXAMPLE_PATTERNS =
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude
+# commands irrespective of the value of the RECURSIVE tag.
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or
+# directories that contain image that are included in the documentation (see
+# the \image command).
+
+IMAGE_PATH =
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command <filter> <input-file>, where <filter>
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
+# input file. Doxygen will then use the output that the filter program writes
+# to standard output.
+# If FILTER_PATTERNS is specified, this tag will be
+# ignored.
+
+INPUT_FILTER =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis.
+# Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match.
+# The filters are a list of the form:
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+# info on how filters are used. If FILTER_PATTERNS is empty or if
+# non of the patterns match the file name, INPUT_FILTER is applied.
+
+FILTER_PATTERNS =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will be used to filter the input files when producing source
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES = NO
+
+# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
+# pattern. A pattern will override the setting for FILTER_PATTERN (if any)
+# and it is also possible to disable source filtering for a specific pattern
+# using *.ext= (so without naming a filter). This option only has effect when
+# FILTER_SOURCE_FILES is enabled.
+
+FILTER_SOURCE_PATTERNS =
+
+# If the USE_MD_FILE_AS_MAINPAGE tag refers to the name of a markdown file that
+# is part of the input, its contents will be placed on the main page (index.html).
+# This can be useful if you have a project on for instance GitHub and want reuse
+# the introduction page also for the doxygen output.
+
+USE_MDFILE_AS_MAINPAGE =
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+# be generated. Documented entities will be cross-referenced with these sources.
+# Note: To get rid of all source code in the generated output, make sure also
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER = NO
+
+# Setting the INLINE_SOURCES tag to YES will include the body
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+# doxygen to hide any special comment blocks from generated source code
+# fragments. Normal C, C++ and Fortran comments will always remain visible.
+
+STRIP_CODE_COMMENTS = NO
+
+# If the REFERENCED_BY_RELATION tag is set to YES
+# then for each documented function all documented
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = NO
+
+# If the REFERENCES_RELATION tag is set to YES
+# then for each documented function all documented entities
+# called/used by that function will be listed.
+
+REFERENCES_RELATION = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
+# link to the source code.
+# Otherwise they will link to the documentation.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code
+# will point to the HTML generated by the htags(1) tool instead of doxygen
+# built-in source browser. The htags tool is part of GNU's global source
+# tagging system (see http://www.gnu.org/software/global/global.html). You
+# will need version 4.8.6 or higher.
+
+USE_HTAGS = NO
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
+# will generate a verbatim copy of the header file for each class for
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
+# of all compounds will be generated. Enable this if the project
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX = NO
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX = 5
+
+# In case all classes in a project start with a common prefix, all
+# classes will be put under the same header in the alphabetical index.
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX =
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
+# generate HTML output.
+
+GENERATE_HTML = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT = html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION = .html
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard header. Note that when using a custom header you are responsible
+# for the proper inclusion of any scripts and style sheets that doxygen
+# needs, which is dependent on the configuration options used.
+# It is advised to generate a default header using "doxygen -w html
+# header.html footer.html stylesheet.css YourConfigFile" and then modify
+# that header. Note that the header is subject to change so you typically
+# have to redo this when upgrading to a newer version of doxygen or when
+# changing the value of configuration settings such as GENERATE_TREEVIEW!
+
+HTML_HEADER = buildfiles/header.html
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard footer.
+
+HTML_FOOTER = buildfiles/footer.html
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+# style sheet that is used by each HTML page. It can be used to
+# fine-tune the look of the HTML output. If left blank doxygen will
+# generate a default style sheet. Note that it is recommended to use
+# HTML_EXTRA_STYLESHEET instead of this one, as it is more robust and this
+# tag will in the future become obsolete.
+
+HTML_STYLESHEET =
+
+# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional
+# user-defined cascading style sheet that is included after the standard
+# style sheets created by doxygen. Using this option one can overrule
+# certain style aspects. This is preferred over using HTML_STYLESHEET
+# since it does not replace the standard style sheet and is therefor more
+# robust against future updates. Doxygen will copy the style sheet file to
+# the output directory.
+
+HTML_EXTRA_STYLESHEET = buildfiles/extra_stylesheet.css
+
+# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
+# other source files which should be copied to the HTML output directory. Note
+# that these files will be copied to the base HTML output directory. Use the
+# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
+# files. In the HTML_STYLESHEET file, use the file name only. Also note that
+# the files will be copied as-is; there are no commands or markers available.
+
+HTML_EXTRA_FILES = buildfiles/favicon.ico
+
+# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output.
+# Doxygen will adjust the colors in the style sheet and background images
+# according to this color. Hue is specified as an angle on a colorwheel,
+# see http://en.wikipedia.org/wiki/Hue for more information.
+# For instance the value 0 represents red, 60 is yellow, 120 is green,
+# 180 is cyan, 240 is blue, 300 purple, and 360 is red again.
+# The allowed range is 0 to 359.
+
+HTML_COLORSTYLE_HUE = 196
+
+# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of
+# the colors in the HTML output. For a value of 0 the output will use
+# grayscales only. A value of 255 will produce the most vivid colors.
+
+HTML_COLORSTYLE_SAT = 46
+
+# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to
+# the luminance component of the colors in the HTML output. Values below
+# 100 gradually make the output lighter, whereas values above 100 make
+# the output darker. The value divided by 100 is the actual gamma applied,
+# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2,
+# and 100 does not change the gamma.
+
+HTML_COLORSTYLE_GAMMA = 92
+
+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
+# page will contain the date and time when the page was generated. Setting
+# this to NO can help when comparing the output of multiple runs.
+
+HTML_TIMESTAMP = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+# documentation will contain sections that can be hidden and shown after the
+# page has loaded.
+
+HTML_DYNAMIC_SECTIONS = NO
+
+# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of
+# entries shown in the various tree structured indices initially; the user
+# can expand and collapse entries dynamically later on. Doxygen will expand
+# the tree to such a level that at most the specified number of entries are
+# visible (unless a fully collapsed tree already exceeds this amount).
+# So setting the number of entries 1 will produce a full collapsed tree by
+# default. 0 is a special value representing an infinite number of entries
+# and will result in a full expanded tree by default.
+
+HTML_INDEX_NUM_ENTRIES = 100
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files
+# will be generated that can be used as input for Apple's Xcode 3
+# integrated development environment, introduced with OSX 10.5 (Leopard).
+# To create a documentation set, doxygen will generate a Makefile in the
+# HTML output directory. Running make will produce the docset in that
+# directory and running "make install" will install the docset in
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
+# it at startup.
+# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
+# for more information.
+
+GENERATE_DOCSET = NO
+
+# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
+# feed. A documentation feed provides an umbrella under which multiple
+# documentation sets from a single provider (such as a company or product suite)
+# can be grouped.
+
+DOCSET_FEEDNAME = "Doxygen generated docs"
+
+# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
+# should uniquely identify the documentation set bundle. This should be a
+# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
+# will append .docset to the name.
+
+DOCSET_BUNDLE_ID = org.doxygen.Project
+
+# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely
+# identify the documentation publisher. This should be a reverse domain-name
+# style string, e.g. com.mycompany.MyDocSet.documentation.
+
+DOCSET_PUBLISHER_ID = org.doxygen.Publisher
+
+# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher.
+
+DOCSET_PUBLISHER_NAME = Publisher
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files
+# will be generated that can be used as input for tools like the
+# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
+# be used to specify the file name of the resulting .chm file. You
+# can add a path in front of the file if the result should not be
+# written to the html output directory.
+
+CHM_FILE =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
+# be used to specify the location (absolute path including file name) of
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+# controls if a separate .chi index file is generated (YES) or that
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING
+# is used to encode HtmlHelp index (hhk), content (hhc) and project file
+# content.
+
+CHM_INDEX_ENCODING =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
+# controls whether a binary table of contents is generated (YES) or a
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND = NO
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
+# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated
+# that can be used as input for Qt's qhelpgenerator to generate a
+# Qt Compressed Help (.qch) of the generated HTML documentation.
+
+GENERATE_QHP = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
+# be used to specify the file name of the resulting .qch file.
+# The path specified is relative to the HTML output folder.
+
+QCH_FILE =
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#namespace
+
+QHP_NAMESPACE = org.doxygen.Project
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#virtual-folders
+
+QHP_VIRTUAL_FOLDER = doc
+
+# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to
+# add. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#custom-filters
+
+QHP_CUST_FILTER_NAME =
+
+# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the
+# custom filter to add. For more information please see
+# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">
+# Qt Help Project / Custom Filters</a>.
+
+QHP_CUST_FILTER_ATTRS =
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
+# project's
+# filter section matches.
+# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">
+# Qt Help Project / Filter Attributes</a>.
+
+QHP_SECT_FILTER_ATTRS =
+
+# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
+# be used to specify the location of Qt's qhelpgenerator.
+# If non-empty doxygen will try to run qhelpgenerator on the generated
+# .qhp file.
+
+QHG_LOCATION =
+
+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files
+# will be generated, which together with the HTML files, form an Eclipse help
+# plugin. To install this plugin and make it available under the help contents
+# menu in Eclipse, the contents of the directory containing the HTML and XML
+# files needs to be copied into the plugins directory of eclipse. The name of
+# the directory within the plugins directory should be the same as
+# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before
+# the help appears.
+
+GENERATE_ECLIPSEHELP = YES
+
+# A unique identifier for the eclipse help plugin. When installing the plugin
+# the directory name containing the HTML and XML files should also have
+# this name.
+
+ECLIPSE_DOC_ID = com.nordic.infocenter.nrfx
+### EDIT THIS ###
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs)
+# at top of each HTML page. The value NO (the default) enables the index and
+# the value YES disables it. Since the tabs have the same information as the
+# navigation tree you can set this option to NO if you already set
+# GENERATE_TREEVIEW to YES.
+
+DISABLE_INDEX = YES
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
+# structure should be generated to display hierarchical information.
+# If the tag value is set to YES, a side panel will be generated
+# containing a tree-like index structure (just like the one that
+# is generated for HTML Help). For this to work a browser that supports
+# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser).
+# Windows users are probably better off using the HTML help feature.
+# Since the tree basically has the same information as the tab index you
+# could consider to set DISABLE_INDEX to NO when enabling this option.
+
+GENERATE_TREEVIEW = YES
+
+# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values
+# (range [0,1..20]) that doxygen will group on one line in the generated HTML
+# documentation. Note that a value of 0 will completely suppress the enum
+# values from appearing in the overview section.
+
+ENUM_VALUES_PER_LINE = 1
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+# used to set the initial width (in pixels) of the frame in which the tree
+# is shown.
+
+TREEVIEW_WIDTH = 250
+
+# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open
+# links to external symbols imported via tag files in a separate window.
+
+EXT_LINKS_IN_WINDOW = NO
+
+# Use this tag to change the font size of Latex formulas included
+# as images in the HTML documentation. The default is 10. Note that
+# when you change the font size after a successful doxygen run you need
+# to manually remove any form_*.png images from the HTML output directory
+# to force them to be regenerated.
+
+FORMULA_FONTSIZE = 10
+
+# Use the FORMULA_TRANPARENT tag to determine whether or not the images
+# generated for formulas are transparent PNGs. Transparent PNGs are
+# not supported properly for IE 6.0, but are supported on all modern browsers.
+# Note that when changing this option you need to delete any form_*.png files
+# in the HTML output before the changes have effect.
+
+FORMULA_TRANSPARENT = YES
+
+# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax
+# (see http://www.mathjax.org) which uses client side Javascript for the
+# rendering instead of using prerendered bitmaps. Use this if you do not
+# have LaTeX installed or if you want to formulas look prettier in the HTML
+# output. When enabled you may also need to install MathJax separately and
+# configure the path to it using the MATHJAX_RELPATH option.
+
+USE_MATHJAX = NO
+
+# When MathJax is enabled you can set the default output format to be used for
+# thA MathJax output. Supported types are HTML-CSS, NativeMML (i.e. MathML) and
+# SVG. The default value is HTML-CSS, which is slower, but has the best
+# compatibility.
+
+MATHJAX_FORMAT = HTML-CSS
+
+# When MathJax is enabled you need to specify the location relative to the
+# HTML output directory using the MATHJAX_RELPATH option. The destination
+# directory should contain the MathJax.js script. For instance, if the mathjax
+# directory is located at the same level as the HTML output directory, then
+# MATHJAX_RELPATH should be ../mathjax. The default value points to
+# the MathJax Content Delivery Network so you can quickly see the result without
+# installing MathJax.
+# However, it is strongly recommended to install a local
+# copy of MathJax from http://www.mathjax.org before deployment.
+
+MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
+
+# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension
+# names that should be enabled during MathJax rendering.
+
+MATHJAX_EXTENSIONS =
+
+# When the SEARCHENGINE tag is enabled doxygen will generate a search box
+# for the HTML output. The underlying search engine uses javascript
+# and DHTML and should work on any modern browser. Note that when using
+# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets
+# (GENERATE_DOCSET) there is already a search function so this one should
+# typically be disabled. For large projects the javascript based search engine
+# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
+
+SEARCHENGINE =
+
+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
+# implemented using a web server instead of a web client using Javascript.
+# There are two flavours of web server based search depending on the
+# EXTERNAL_SEARCH setting. When disabled, doxygen will generate a PHP script for
+# searching and an index file used by the script. When EXTERNAL_SEARCH is
+# enabled the indexing and searching needs to be provided by external tools.
+# See the manual for details.
+
+SERVER_BASED_SEARCH = NO
+
+# When EXTERNAL_SEARCH is enabled doxygen will no longer generate the PHP
+# script for searching. Instead the search results are written to an XML file
+# which needs to be processed by an external indexer. Doxygen will invoke an
+# external search engine pointed to by the SEARCHENGINE_URL option to obtain
+# the search results. Doxygen ships with an example indexer (doxyindexer) and
+# search engine (doxysearch.cgi) which are based on the open source search engine
+# library Xapian. See the manual for configuration details.
+
+EXTERNAL_SEARCH = NO
+
+# The SEARCHENGINE_URL should point to a search engine hosted by a web server
+# which will returned the search results when EXTERNAL_SEARCH is enabled.
+# Doxygen ships with an example search engine (doxysearch) which is based on
+# the open source search engine library Xapian. See the manual for configuration
+# details.
+
+SEARCHENGINE_URL =
+
+# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
+# search data is written to a file for indexing by an external tool. With the
+# SEARCHDATA_FILE tag the name of this file can be specified.
+
+SEARCHDATA_FILE = searchdata.xml
+
+# When SERVER_BASED_SEARCH AND EXTERNAL_SEARCH are both enabled the
+# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
+# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
+# projects and redirect the results back to the right project.
+
+EXTERNAL_SEARCH_ID =
+
+# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
+# projects other than the one defined by this configuration file, but that are
+# all added to the same external search index. Each project needs to have a
+# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id
+# of to a relative location where the documentation can be found.
+# The format is: EXTRA_SEARCH_MAPPINGS = id1=loc1 id2=loc2 ...
+
+EXTRA_SEARCH_MAPPINGS =
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
+# generate Latex output.
+
+GENERATE_LATEX = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked. If left blank `latex' will be used as the default command name.
+# Note that when enabling USE_PDFLATEX this option is only used for
+# generating bitmaps for formulas in the HTML output, but not in the
+# Makefile that is written to the output directory.
+
+LATEX_CMD_NAME = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
+# generate index for LaTeX. If left blank `makeindex' will be used as the
+# default command name.
+
+MAKEINDEX_CMD_NAME = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
+# LaTeX documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_LATEX = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used
+# by the printer. Possible values are: a4, letter, legal and
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE = a4
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES =
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
+# the generated latex document. The header should contain everything until
+# the first chapter. If it is left blank doxygen will generate a
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER =
+
+# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for
+# the generated latex document. The footer should contain everything after
+# the last chapter. If it is left blank doxygen will generate a
+# standard footer. Notice: only use this tag if you know what you are doing!
+
+LATEX_FOOTER =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will
+# contain links (just like the HTML output) instead of page references
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS = YES
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
+# plain latex in the generated Makefile. Set this option to YES to get a
+# higher quality PDF documentation.
+
+USE_PDFLATEX = YES
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
+# command to the generated LaTeX files. This will instruct LaTeX to keep
+# running if errors occur, instead of asking the user for help.
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not
+# include the index chapters (such as File Index, Compound Index, etc.)
+# in the output.
+
+LATEX_HIDE_INDICES = NO
+
+# If LATEX_SOURCE_CODE is set to YES then doxygen will include
+# source code with syntax highlighting in the LaTeX output.
+# Note that which sources are shown also depends on other settings
+# such as SOURCE_BROWSER.
+
+LATEX_SOURCE_CODE = NO
+
+# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
+# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See
+# http://en.wikipedia.org/wiki/BibTeX for more info.
+
+LATEX_BIB_STYLE = plain
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
+# The RTF output is optimized for Word 97 and may not look very pretty with
+# other RTF readers or editors.
+
+GENERATE_RTF = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
+# RTF documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_RTF = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
+# will contain hyperlink fields. The RTF file will
+# contain links (just like the HTML output) instead of page references.
+# This makes the output suitable for online browsing using WORD or other
+# programs which support those fields.
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS = NO
+
+# Load style sheet definitions from file. Syntax is similar to doxygen's
+# config file, i.e. a series of assignments. You only have to provide
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE =
+
+# Set optional variables used in the generation of an rtf document.
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
+# generate man pages
+
+GENERATE_MAN = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT = man
+
+# The MAN_EXTENSION tag determines the extension that is added to
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
+# then it will generate one additional man file for each entity
+# documented in the real man page(s). These additional files
+# only source the real man page, but without them the man command
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will
+# generate an XML file that captures the structure of
+# the code including all documentation.
+
+GENERATE_XML = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT = xml
+
+# The XML_SCHEMA tag can be used to specify an XML schema,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_SCHEMA =
+
+# The XML_DTD tag can be used to specify an XML DTD,
+# which can be used by a validating XML parser to check the
+# syntax of the XML files.
+
+XML_DTD =
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+# dump the program listings (including syntax highlighting
+# and cross-referencing information) to the XML output. Note that
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING = YES
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
+# generate an AutoGen Definitions (see autogen.sf.net) file
+# that captures the structure of the code including all
+# documentation. Note that this feature is still experimental
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will
+# generate a Perl module file that captures the structure of
+# the code including all documentation. Note that this
+# feature is still experimental and incomplete at the
+# moment.
+
+GENERATE_PERLMOD = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+# nicely formatted so it can be parsed by a human reader.
+# This is useful
+# if you want to understand what is going on.
+# On the other hand, if this
+# tag is set to NO the size of the Perl module output will be much smaller
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY = YES
+
+# The names of the make variables in the generated doxyrules.make file
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
+# This is useful so different doxyrules.make files included by the same
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
+# evaluate all C-preprocessor directives found in the sources and include
+# files.
+
+ENABLE_PREPROCESSING = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
+# names in the source code. If set to NO (the default) only conditional
+# compilation will be performed. Macro expansion can be done in a controlled
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION = YES
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
+# then the macro expansion is limited to the macros specified with the
+# PREDEFINED and EXPAND_AS_DEFINED tags.
+
+EXPAND_ONLY_PREDEF = NO
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+# pointed to by INCLUDE_PATH will be searched when a #include is found.
+
+SEARCH_INCLUDES = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by
+# the preprocessor.
+
+INCLUDE_PATH =
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will
+# be used.
+
+INCLUDE_FILE_PATTERNS =
+
+# The PREDEFINED tag can be used to specify one or more macro names that
+# are defined before the preprocessor is started (similar to the -D option of
+# gcc). The argument of the tag is a list of macros of the form: name
+# or name=definition (no spaces). If the definition and the = are
+# omitted =1 is assumed. To prevent a macro definition from being
+# undefined via #undef or recursively expanded use the := operator
+# instead of the = operator.
+
+PREDEFINED = SUPPRESS_INLINE_IMPLEMENTATION __NRFX_DOXYGEN__ \
+ CONFIG_PURGE_ENABLED == 1 \
+ CONFIG_DISASSOCIATE_ENABLED == 1 \
+ CONFIG_GTS_ENABLED == 1 \
+ CONFIG_ORPHAN_ENABLED == 1 \
+ CONFIG_RXE_ENABLED == 1 \
+ CONFIG_START_ENABLED == 1 \
+ CONFIG_SYNC_ENABLED == 1 \
+ CONFIG_PANID_CONFLICT_ENABLED == 1 \
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+# this tag can be used to specify a list of macro names that should be expanded.
+# The macro definition that is found in the sources will be used.
+# Use the PREDEFINED tag if you want to use a different macro definition that
+# overrules the definition found in the source code.
+
+EXPAND_AS_DEFINED =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+# doxygen's preprocessor will remove all references to function-like macros
+# that are alone on a line, have an all uppercase name, and do not end with a
+# semicolon, because these will confuse the parser if not removed.
+
+SKIP_FUNCTION_MACROS = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles. For each
+# tag file the location of the external documentation should be added. The
+# format of a tag file without this location is as follows:
+#
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+#
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where "loc1" and "loc2" can be relative or absolute paths
+# or URLs. Note that each tag file must have a unique name (where the name does
+# NOT include the path). If a tag file is not located in the directory in which
+# doxygen is run, you must also specify the path to the tagfile here.
+
+TAGFILES =
+### EDIT THIS ###
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE =
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed
+# in the class index. If set to NO only the inherited external classes
+# will be listed.
+
+ALLEXTERNALS = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will
+# be listed.
+
+EXTERNAL_GROUPS = NO
+
+# The PERL_PATH should be the absolute path and name of the perl script
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+# or super classes. Setting the tag to NO turns the diagrams off. Note that
+# this option also works with HAVE_DOT disabled, but it is recommended to
+# install and use dot, since it yields more powerful graphs.
+
+CLASS_DIAGRAMS = YES
+
+# You can define message sequence charts within doxygen comments using the \msc
+# command. Doxygen will then run the mscgen tool (see
+# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where
+# the mscgen tool resides. If left empty the tool is assumed to be found in the
+# default search path.
+
+MSCGEN_PATH =
+
+# If set to YES, the inheritance and collaboration graphs will hide
+# inheritance and usage relations if the target is undocumented
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz, a graph visualization
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT = NO
+
+# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is
+# allowed to run in parallel. When set to 0 (the default) doxygen will
+# base this on the number of processors available in the system. You can set it
+# explicitly to a value larger than 0 to get control over the balance
+# between CPU load and processing speed.
+
+DOT_NUM_THREADS = 0
+
+# By default doxygen will use the Helvetica font for all dot files that
+# doxygen generates. When you want a differently looking font you can specify
+# the font name using DOT_FONTNAME. You need to make sure dot is able to find
+# the font, which can be done by putting it in a standard location or by setting
+# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the
+# directory containing the font.
+
+DOT_FONTNAME = Helvetica
+
+# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
+# The default size is 10pt.
+
+DOT_FONTSIZE = 10
+
+# By default doxygen will tell dot to use the Helvetica font.
+# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to
+# set the path where dot can find it.
+
+DOT_FONTPATH =
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect inheritance relations. Setting this tag to YES will force the
+# CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH = YES
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect implementation dependencies (inheritance, containment, and
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH = YES
+
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for groups, showing the direct groups dependencies
+
+GROUP_GRAPHS = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+
+UML_LOOK = NO
+
+# If the UML_LOOK tag is enabled, the fields and methods are shown inside
+# the class node. If there are many fields or methods and many nodes the
+# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS
+# threshold limits the number of items for each type to make the size more
+# managable. Set this to 0 for no limit. Note that the threshold may be
+# exceeded by 50% before the limit is enforced.
+
+UML_LIMIT_NUM_FIELDS = 10
+
+# If set to YES, the inheritance and collaboration graphs will show the
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS = NO
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
+# tags are set to YES then doxygen will generate a graph for each documented
+# file showing the direct and indirect include dependencies of the file with
+# other documented files.
+
+INCLUDE_GRAPH = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
+# documented header file showing the documented files that directly or
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH = YES
+
+# If the CALL_GRAPH and HAVE_DOT options are set to YES then
+# doxygen will generate a call dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable call graphs
+# for selected functions only using the \callgraph command.
+
+CALL_GRAPH = NO
+
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
+# doxygen will generate a caller dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable caller
+# graphs for selected functions only using the \callergraph command.
+
+CALLER_GRAPH = NO
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+# will generate a graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY = YES
+
+# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES
+# then doxygen will show the dependencies a directory has on other directories
+# in a graphical way. The dependency relations are determined by the #include
+# relations between the files in the directories.
+
+DIRECTORY_GRAPH = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot. Possible values are svg, png, jpg, or gif.
+# If left blank png will be used. If you choose svg you need to set
+# HTML_FILE_EXTENSION to xhtml in order to make the SVG files
+# visible in IE 9+ (other browsers do not have this requirement).
+
+DOT_IMAGE_FORMAT = svg
+
+# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
+# enable generation of interactive SVG images that allow zooming and panning.
+# Note that this requires a modern browser other than Internet Explorer.
+# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you
+# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files
+# visible. Older versions of IE do not have SVG support.
+
+INTERACTIVE_SVG = NO
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found in the path.
+
+DOT_PATH =
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the
+# \dotfile command).
+
+DOTFILE_DIRS =
+
+# The MSCFILE_DIRS tag can be used to specify one or more directories that
+# contain msc files that are included in the documentation (see the
+# \mscfile command).
+
+MSCFILE_DIRS =
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+# nodes that will be shown in the graph. If the number of nodes in a graph
+# becomes larger than this value, doxygen will truncate the graph, which is
+# visualized by representing a node as a red box. Note that doxygen if the
+# number of direct children of the root node in a graph is already larger than
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
+# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+
+DOT_GRAPH_MAX_NODES = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
+# graphs generated by dot. A depth value of 3 means that only nodes reachable
+# from the root by following a path via at most 3 edges will be shown. Nodes
+# that lay further from the root node will be omitted. Note that setting this
+# option to 1 or 2 may greatly reduce the computation time needed for large
+# code bases. Also note that the size of a graph can be further restricted by
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+
+MAX_DOT_GRAPH_DEPTH = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, because dot on Windows does not
+# seem to support this out of the box. Warning: Depending on the platform used,
+# enabling this option may lead to badly anti-aliased labels on the edges of
+# a graph (i.e. they become hard to read).
+
+DOT_TRANSPARENT = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10)
+# support this, this feature is disabled by default.
+
+DOT_MULTI_TARGETS = NO
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
+# generate a legend page explaining the meaning of the various boxes and
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
+# remove the intermediate dot files that are used to generate
+# the various graphs.
+
+DOT_CLEANUP = YES
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrfx_api.dox b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrfx_api.dox
new file mode 100644
index 0000000..1e85b35
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/doc/nrfx_api.dox
@@ -0,0 +1,71 @@
+/**
+@defgroup nrfx_drivers Drivers
+@{
+@brief List of all drivers available in nrfx.
+@defgroup nrf_adc ADC
+
+@defgroup nrf_clock CLOCK
+
+@defgroup nrf_comp COMP
+
+@defgroup nrf_ecb ECB
+
+@defgroup nrf_gpio GPIO
+
+@defgroup nrf_gpiote GPIOTE
+
+@defgroup nrf_i2s I2S
+
+@defgroup nrf_lpcomp LPCOMP
+
+@defgroup nrf_nvmc NVMC
+
+@defgroup nrf_pdm PDM
+
+@defgroup nrf_power POWER
+
+@defgroup nrf_ppi PPI
+
+@defgroup nrf_pwm PWM
+
+@defgroup nrf_qdec QDEC
+
+@defgroup nrf_qspi QSPI
+
+@defgroup nrf_rng RNG
+
+@defgroup nrf_rtc RTC
+
+@defgroup nrf_saadc SAADC
+
+@defgroup nrf_spi SPI
+
+@defgroup nrf_spim SPIM
+
+@defgroup nrf_spis SPIS
+
+@defgroup nrf_systick Cortex-M Systick
+
+@defgroup nrf_swi_egu SWI/EGU
+
+@defgroup nrf_temp TEMP
+
+@defgroup nrf_timer TIMER
+
+@defgroup nrf_twi TWI
+
+@defgroup nrf_twim TWIM
+
+@defgroup nrf_twis TWIS
+
+@defgroup nrf_uart UART
+
+@defgroup nrf_uarte UARTE
+
+@defgroup nrf_usbd USBD
+
+@defgroup nrf_wdt WDT
+@}
+
+@defgroup nrfx nrfx API
+*/
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrf_bitmask.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrf_bitmask.h
new file mode 100644
index 0000000..8f2ac36
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrf_bitmask.h
@@ -0,0 +1,156 @@
+/**
+ * Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_BITMASK_H
+#define NRF_BITMASK_H
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_bitmask Bitmask module
+ * @{
+ * @ingroup nrfx
+ * @brief Bitmask managing module.
+ */
+
+#define BITMASK_BYTE_GET(abs_bit) ((abs_bit)/8)
+#define BITMASK_RELBIT_GET(abs_bit) ((abs_bit) & 0x00000007)
+
+/**
+ * Function for checking if bit in the multi-byte bit mask is set.
+ *
+ * @param bit Bit index.
+ * @param p_mask A pointer to mask with bit fields.
+ *
+ * @return 0 if bit is not set, positive value otherwise.
+ */
+__STATIC_INLINE uint32_t nrf_bitmask_bit_is_set(uint32_t bit, void const * p_mask)
+{
+ uint8_t const * p_mask8 = (uint8_t const *)p_mask;
+ uint32_t byte_idx = BITMASK_BYTE_GET(bit);
+ bit = BITMASK_RELBIT_GET(bit);
+ return (1 << bit) & p_mask8[byte_idx];
+}
+
+/**
+ * Function for setting a bit in the multi-byte bit mask.
+ *
+ * @param bit Bit index.
+ * @param p_mask A pointer to mask with bit fields.
+ */
+__STATIC_INLINE void nrf_bitmask_bit_set(uint32_t bit, void * p_mask)
+{
+ uint8_t * p_mask8 = (uint8_t *)p_mask;
+ uint32_t byte_idx = BITMASK_BYTE_GET(bit);
+ bit = BITMASK_RELBIT_GET(bit);
+ p_mask8[byte_idx] |= (1 << bit);
+}
+
+/**
+ * Function for clearing a bit in the multi-byte bit mask.
+ *
+ * @param bit Bit index.
+ * @param p_mask A pointer to mask with bit fields.
+ */
+__STATIC_INLINE void nrf_bitmask_bit_clear(uint32_t bit, void * p_mask)
+{
+ uint8_t * p_mask8 = (uint8_t *)p_mask;
+ uint32_t byte_idx = BITMASK_BYTE_GET(bit);
+ bit = BITMASK_RELBIT_GET(bit);
+ p_mask8[byte_idx] &= ~(1 << bit);
+}
+
+/**
+ * Function for performing bitwise OR operation on two multi-byte bit masks.
+ *
+ * @param p_mask1 A pointer to the first bit mask.
+ * @param p_mask2 A pointer to the second bit mask.
+ * @param p_out_mask A pointer to the output bit mask.
+ * @param length Length of output mask in bytes.
+ */
+__STATIC_INLINE void nrf_bitmask_masks_or(void const * p_mask1,
+ void const * p_mask2,
+ void * p_out_mask,
+ uint32_t length)
+{
+ uint8_t const * p_mask8_1 = (uint8_t const *)p_mask1;
+ uint8_t const * p_mask8_2 = (uint8_t const *)p_mask2;
+ uint8_t * p_mask8_out = (uint8_t *)p_out_mask;
+ uint32_t i;
+ for (i = 0; i < length; i++)
+ {
+ p_mask8_out[i] = p_mask8_1[i] | p_mask8_2[i];
+ }
+}
+
+/**
+ * Function for performing bitwise AND operation on two multi-byte bit masks.
+ *
+ * @param p_mask1 A pointer to the first bit mask.
+ * @param p_mask2 A pointer to the second bit mask.
+ * @param p_out_mask A pointer to the output bit mask.
+ * @param length Length of output mask in bytes.
+ */
+__STATIC_INLINE void nrf_bitmask_masks_and(void const * p_mask1,
+ void const * p_mask2,
+ void * p_out_mask,
+ uint32_t length)
+{
+ uint8_t const * p_mask8_1 = (uint8_t const *)p_mask1;
+ uint8_t const * p_mask8_2 = (uint8_t const *)p_mask2;
+ uint8_t * p_mask8_out = (uint8_t *)p_out_mask;
+ uint32_t i;
+ for (i = 0; i < length; i++)
+ {
+ p_mask8_out[i] = p_mask8_1[i] & p_mask8_2[i];
+ }
+}
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_BITMASK_H
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_adc.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_adc.h
new file mode 100644
index 0000000..e28d52a
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_adc.h
@@ -0,0 +1,281 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_ADC_H__
+#define NRFX_ADC_H__
+
+#include <nrfx.h>
+#include <hal/nrf_adc.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_adc ADC driver
+ * @{
+ * @ingroup nrf_adc
+ * @brief Analog-to-Digital Converter (ADC) peripheral driver.
+ */
+
+/**
+ * @brief Driver event types.
+ */
+typedef enum
+{
+ NRFX_ADC_EVT_DONE, ///< Event generated when the buffer is filled with samples.
+ NRFX_ADC_EVT_SAMPLE, ///< Event generated when the requested channel is sampled.
+} nrfx_adc_evt_type_t;
+
+/**
+ * @brief Analog-to-digital converter driver DONE event.
+ */
+typedef struct
+{
+ nrf_adc_value_t * p_buffer; ///< Pointer to the buffer with converted samples.
+ uint16_t size; ///< Number of samples in the buffer.
+} nrfx_adc_done_evt_t;
+
+/**
+ * @brief Analog-to-digital converter driver SAMPLE event.
+ */
+typedef struct
+{
+ nrf_adc_value_t sample; ///< Converted sample.
+} nrfx_adc_sample_evt_t;
+
+/**
+ * @brief Analog-to-digital converter driver event.
+ */
+typedef struct
+{
+ nrfx_adc_evt_type_t type; ///< Event type.
+ union
+ {
+ nrfx_adc_done_evt_t done; ///< Data for DONE event.
+ nrfx_adc_sample_evt_t sample; ///< Data for SAMPLE event.
+ } data;
+} nrfx_adc_evt_t;
+
+/**@brief Macro for initializing the ADC channel with the default configuration. */
+#define NRFX_ADC_DEFAULT_CHANNEL(analog_input) \
+ { \
+ NULL, \
+ { \
+ .resolution = NRF_ADC_CONFIG_RES_10BIT, \
+ .scaling = NRF_ADC_CONFIG_SCALING_INPUT_FULL_SCALE, \
+ .reference = NRF_ADC_CONFIG_REF_VBG, \
+ .input = (analog_input), \
+ .extref = NRF_ADC_CONFIG_EXTREFSEL_NONE \
+ } \
+ }
+
+// Forward declaration of the nrfx_adc_channel_t type.
+typedef struct nrfx_adc_channel_s nrfx_adc_channel_t;
+
+/**
+ * @brief ADC channel.
+ *
+ * This structure is defined by the user and used by the driver. Therefore, it should
+ * not be defined on the stack as a local variable.
+ */
+struct nrfx_adc_channel_s
+{
+ nrfx_adc_channel_t * p_next; ///< Pointer to the next enabled channel (for internal use).
+ nrf_adc_config_t config; ///< ADC configuration for the current channel.
+};
+
+/**
+ * @brief ADC configuration.
+ */
+typedef struct
+{
+ uint8_t interrupt_priority; ///< Priority of ADC interrupt.
+} nrfx_adc_config_t;
+
+/** @brief ADC default configuration. */
+#define NRFX_ADC_DEFAULT_CONFIG \
+{ \
+ .interrupt_priority = NRFX_ADC_CONFIG_IRQ_PRIORITY \
+}
+
+/**
+ * @brief User event handler prototype.
+ *
+ * This function is called when the requested number of samples has been processed.
+ *
+ * @param p_event Event.
+ */
+typedef void (*nrfx_adc_event_handler_t)(nrfx_adc_evt_t const * p_event);
+
+/**
+ * @brief Function for initializing the ADC.
+ *
+ * If a valid event handler is provided, the driver is initialized in non-blocking mode.
+ * If event_handler is NULL, the driver works in blocking mode.
+ *
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] event_handler Event handler provided by the user.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver is already initialized.
+ */
+nrfx_err_t nrfx_adc_init(nrfx_adc_config_t const * p_config,
+ nrfx_adc_event_handler_t event_handler);
+
+/**
+ * @brief Function for uninitializing the ADC.
+ *
+ * This function stops all ongoing conversions and disables all channels.
+ */
+void nrfx_adc_uninit(void);
+
+/**
+ * @brief Function for enabling an ADC channel.
+ *
+ * This function configures and enables the channel. When @ref nrfx_adc_buffer_convert is
+ * called, all channels that have been enabled with this function are sampled.
+ *
+ * @note The channel instance variable @p p_channel is used by the driver as an item
+ * in a list. Therefore, it cannot be an automatic variable that is located on the stack.
+ */
+void nrfx_adc_channel_enable(nrfx_adc_channel_t * const p_channel);
+
+/**
+ * @brief Function for disabling an ADC channel.
+ */
+void nrfx_adc_channel_disable(nrfx_adc_channel_t * const p_channel);
+
+/**
+ * @brief Function for starting ADC sampling.
+ *
+ * This function triggers single ADC sampling. If more than one channel is enabled, the driver
+ * emulates scanning and all channels are sampled in the order they were enabled.
+ */
+void nrfx_adc_sample(void);
+
+/**
+ * @brief Function for executing a single ADC conversion.
+ *
+ * This function selects the desired input and starts a single conversion. If a valid pointer
+ * is provided for the result, the function blocks until the conversion is completed. Otherwise, the
+ * function returns when the conversion is started, and the result is provided in an event (driver
+ * must be initialized in non-blocking mode, otherwise an assertion will fail). The function will
+ * fail if ADC is busy. The channel does not need to be enabled to perform a single conversion.
+ *
+ * @param[in] p_channel Channel.
+ * @param[out] p_value Pointer to the location where the result should be placed. Unless NULL is
+ * provided, the function is blocking.
+ *
+ * @retval NRFX_SUCCESS If conversion was successful.
+ * @retval NRFX_ERROR_BUSY If the ADC driver is busy.
+ */
+nrfx_err_t nrfx_adc_sample_convert(nrfx_adc_channel_t const * const p_channel,
+ nrf_adc_value_t * p_value);
+
+/**
+ * @brief Function for converting data to the buffer.
+ *
+ * If the driver is initialized in non-blocking mode, this function returns when the first
+ * conversion is set up. When the buffer is filled, the application is notified by the event
+ * handler. If the driver is initialized in blocking mode, the function returns when the buffer is
+ * filled.
+ *
+ * Conversion is done on all enabled channels, but it is not triggered by this
+ * function. This function will prepare the ADC for sampling and then
+ * wait for the SAMPLE task. Sampling can be triggered manually by the @ref
+ * nrfx_adc_sample function or by PPI using the @ref NRF_ADC_TASK_START task.
+ *
+ * @note If more than one channel is enabled, the function emulates scanning, and
+ * a single START task will trigger conversion on all enabled channels. For example:
+ * If 3 channels are enabled and the user requests 6 samples, the completion event
+ * handler will be called after 2 START tasks.
+ *
+ * @note The application must adjust the sampling frequency. The maximum frequency
+ * depends on the sampling timer and the maximum latency of the ADC interrupt. If
+ * an interrupt is not handled before the next sampling is triggered, the sample
+ * will be lost.
+ *
+ * @param[in] buffer Result buffer.
+ * @param[in] size Buffer size in samples.
+ *
+ * @retval NRFX_SUCCESS If conversion was successful.
+ * @retval NRFX_ERROR_BUSY If the driver is busy.
+ */
+nrfx_err_t nrfx_adc_buffer_convert(nrf_adc_value_t * buffer, uint16_t size);
+
+/**
+ * @brief Function for retrieving the ADC state.
+ *
+ * @retval true If the ADC is busy.
+ * @retval false If the ADC is ready.
+ */
+bool nrfx_adc_is_busy(void);
+
+/**
+ * @brief Function for getting the address of the ADC START task.
+ *
+ * This function is used to get the address of the START task, which can be used to trigger ADC
+ * conversion.
+ *
+ * @return Start task address.
+ */
+__STATIC_INLINE uint32_t nrfx_adc_start_task_get(void);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE uint32_t nrfx_adc_start_task_get(void)
+{
+ return nrf_adc_task_address_get(NRF_ADC_TASK_START);
+}
+
+#endif
+
+
+void nrfx_adc_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_ADC_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_clock.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_clock.h
new file mode 100644
index 0000000..8a5e184
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_clock.h
@@ -0,0 +1,223 @@
+/**
+ * Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_CLOCK_H__
+#define NRFX_CLOCK_H__
+
+#include <nrfx.h>
+#include <hal/nrf_clock.h>
+#include <nrfx_power_clock.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_clock CLOCK driver
+ * @{
+ * @ingroup nrf_clock
+ * @brief CLOCK peripheral driver.
+ */
+
+/**
+ * @brief Clock events.
+ */
+typedef enum
+{
+ NRFX_CLOCK_EVT_HFCLK_STARTED, ///< HFCLK has been started.
+ NRFX_CLOCK_EVT_LFCLK_STARTED, ///< LFCLK has been started.
+ NRFX_CLOCK_EVT_CTTO, ///< Calibration timeout.
+ NRFX_CLOCK_EVT_CAL_DONE ///< Calibration has been done.
+} nrfx_clock_evt_type_t;
+
+/**
+ * @brief Clock event handler.
+ *
+ * @param[in] event Event.
+ */
+typedef void (*nrfx_clock_event_handler_t)(nrfx_clock_evt_type_t event);
+
+/**
+ * @brief Function for initializing internal structures in the nrfx_clock module.
+ *
+ * After initialization, the module is in power off state (clocks are not started).
+ *
+ * @param[in] event_handler Event handler provided by the user.
+ * Must not be NULL.
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_ALREADY_INITIALIZED If the driver was already initialized.
+ */
+nrfx_err_t nrfx_clock_init(nrfx_clock_event_handler_t event_handler);
+
+/**
+ * @brief Function for enabling interrupts in the clock module.
+ */
+void nrfx_clock_enable(void);
+
+/**
+ * @brief Function for disabling interrupts in the clock module.
+ */
+void nrfx_clock_disable(void);
+
+/**
+ * @brief Function for uninitializing the clock module.
+ */
+void nrfx_clock_uninit(void);
+
+/**
+ * @brief Function for starting the LFCLK.
+ */
+void nrfx_clock_lfclk_start(void);
+
+/**
+ * @brief Function for stoping the LFCLK.
+ */
+void nrfx_clock_lfclk_stop(void);
+
+/**
+ * @brief Function for checking the LFCLK state.
+ *
+ * @retval true If the LFCLK is running.
+ * @retval false If the LFCLK is not running.
+ */
+__STATIC_INLINE bool nrfx_clock_lfclk_is_running(void);
+
+/**
+ * @brief Function for starting the high-accuracy source HFCLK.
+ */
+void nrfx_clock_hfclk_start(void);
+
+/**
+ * @brief Function for stoping external high-accuracy source HFCLK.
+ */
+void nrfx_clock_hfclk_stop(void);
+
+/**
+ * @brief Function for checking the HFCLK state.
+ *
+ * @retval true If the HFCLK is running (XTAL source).
+ * @retval false If the HFCLK is not running.
+ */
+__STATIC_INLINE bool nrfx_clock_hfclk_is_running(void);
+
+/**
+ * @brief Function for starting calibration of internal LFCLK.
+ *
+ * This function starts the calibration process. The process cannot be aborted. LFCLK and HFCLK
+ * must be running before this function is called.
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the low-frequency of high-frequency clock is off.
+ * @retval NRFX_ERROR_BUSY If calibration is in progress.
+ */
+nrfx_err_t nrfx_clock_calibration_start(void);
+
+/**
+ * @brief Function for checking if calibration is in progress.
+ *
+ * This function indicates that the system is in calibration phase.
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_BUSY If calibration is in progress.
+ */
+nrfx_err_t nrfx_clock_is_calibrating(void);
+
+/**
+ * @brief Function for starting calibration timer.
+ * @param interval Time after which the CTTO event and interrupt will be generated (in 0.25 s units).
+ */
+void nrfx_clock_calibration_timer_start(uint8_t interval);
+
+/**
+ * @brief Function for stoping calibration timer.
+ */
+void nrfx_clock_calibration_timer_stop(void);
+
+/**@brief Function for returning a requested task address for the clock driver module.
+ *
+ * @param[in] task One of the peripheral tasks.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrfx_clock_ppi_task_addr(nrf_clock_task_t task);
+
+/**@brief Function for returning a requested event address for the clock driver module.
+ *
+ * @param[in] event One of the peripheral events.
+ *
+ * @return Event address.
+ */
+__STATIC_INLINE uint32_t nrfx_clock_ppi_event_addr(nrf_clock_event_t event);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+__STATIC_INLINE uint32_t nrfx_clock_ppi_task_addr(nrf_clock_task_t task)
+{
+ return nrf_clock_task_address_get(task);
+}
+
+__STATIC_INLINE uint32_t nrfx_clock_ppi_event_addr(nrf_clock_event_t event)
+{
+ return nrf_clock_event_address_get(event);
+}
+
+__STATIC_INLINE bool nrfx_clock_hfclk_is_running(void)
+{
+ return nrf_clock_hf_is_running(NRF_CLOCK_HFCLK_HIGH_ACCURACY);
+}
+
+__STATIC_INLINE bool nrfx_clock_lfclk_is_running(void)
+{
+ return nrf_clock_lf_is_running();
+}
+#endif //SUPPRESS_INLINE_IMPLEMENTATION
+
+
+void nrfx_clock_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_CLOCK_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_comp.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_comp.h
new file mode 100644
index 0000000..8b4ee44
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_comp.h
@@ -0,0 +1,247 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_COMP_H__
+#define NRFX_COMP_H__
+
+#include <nrfx.h>
+#include <hal/nrf_comp.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_comp COMP driver
+ * @{
+ * @ingroup nrf_comp
+ * @brief Comparator (COMP) peripheral driver.
+ */
+
+/**
+ * @brief Macro to convert the threshold voltage to an integer value
+ * (needed by the COMP_TH register).
+ *
+ * @param[in] vol Voltage to be changed to COMP_TH register value. This value
+ * must not be smaller than reference voltage divided by 64.
+ * @param[in] ref Reference voltage.
+ */
+#define NRFX_VOLTAGE_THRESHOLD_TO_INT(vol, ref) \
+ (uint8_t)(((vol) > ((ref) / 64)) ? (NRFX_ROUNDED_DIV((vol) * 64,(ref)) - 1) : 0)
+
+/**
+ * @brief COMP event handler function type.
+ * @param[in] event COMP event.
+ */
+typedef void (* nrfx_comp_event_handler_t)(nrf_comp_event_t event);
+
+/** @brief COMP shortcut masks. */
+typedef enum
+{
+ NRFX_COMP_SHORT_STOP_AFTER_CROSS_EVT = COMP_SHORTS_CROSS_STOP_Msk, /*!< Shortcut between the CROSS event and the STOP task. */
+ NRFX_COMP_SHORT_STOP_AFTER_UP_EVT = COMP_SHORTS_UP_STOP_Msk, /*!< Shortcut between the UP event and the STOP task. */
+ NRFX_COMP_SHORT_STOP_AFTER_DOWN_EVT = COMP_SHORTS_DOWN_STOP_Msk /*!< Shortcut between the DOWN event and the STOP task. */
+} nrfx_comp_short_mask_t;
+
+/** @brief COMP events masks. */
+typedef enum
+{
+ NRFX_COMP_EVT_EN_CROSS_MASK = COMP_INTENSET_CROSS_Msk, /*!< CROSS event (generated after VIN+ == VIN-). */
+ NRFX_COMP_EVT_EN_UP_MASK = COMP_INTENSET_UP_Msk, /*!< UP event (generated when VIN+ crosses VIN- while increasing). */
+ NRFX_COMP_EVT_EN_DOWN_MASK = COMP_INTENSET_DOWN_Msk, /*!< DOWN event (generated when VIN+ crosses VIN- while decreasing). */
+ NRFX_COMP_EVT_EN_READY_MASK = COMP_INTENSET_READY_Msk /*!< READY event (generated when the module is ready). */
+} nrfx_comp_evt_en_mask_t;
+
+/** @brief COMP configuration. */
+typedef struct
+{
+ nrf_comp_ref_t reference; /**< Reference selection. */
+ nrf_comp_ext_ref_t ext_ref; /**< External analog reference selection. */
+ nrf_comp_main_mode_t main_mode; /**< Main operation mode. */
+ nrf_comp_th_t threshold; /**< Structure holding THDOWN and THUP values needed by the COMP_TH register. */
+ nrf_comp_sp_mode_t speed_mode; /**< Speed and power mode. */
+ nrf_comp_hyst_t hyst; /**< Comparator hysteresis.*/
+#if defined (COMP_ISOURCE_ISOURCE_Msk) || defined (__NRFX_DOXYGEN__)
+ nrf_isource_t isource; /**< Current source selected on analog input. */
+#endif
+ nrf_comp_input_t input; /**< Input to be monitored. */
+ uint8_t interrupt_priority; /**< Interrupt priority. */
+} nrfx_comp_config_t;
+
+/** @brief COMP threshold default configuration. */
+#define NRFX_COMP_CONFIG_TH \
+{ \
+ .th_down = NRFX_VOLTAGE_THRESHOLD_TO_INT(0.5, 1.8), \
+ .th_up = NRFX_VOLTAGE_THRESHOLD_TO_INT(1.5, 1.8) \
+}
+
+/** @brief COMP driver default configuration including the COMP HAL configuration. */
+#if defined (COMP_ISOURCE_ISOURCE_Msk) || defined (__NRFX_DOXYGEN__)
+#define NRFX_COMP_DEFAULT_CONFIG(_input) \
+{ \
+ .reference = (nrf_comp_ref_t)NRFX_COMP_CONFIG_REF, \
+ .main_mode = (nrf_comp_main_mode_t)NRFX_COMP_CONFIG_MAIN_MODE, \
+ .threshold = NRFX_COMP_CONFIG_TH, \
+ .speed_mode = (nrf_comp_sp_mode_t)NRFX_COMP_CONFIG_SPEED_MODE, \
+ .hyst = (nrf_comp_hyst_t)NRFX_COMP_CONFIG_HYST, \
+ .isource = (nrf_isource_t)NRFX_COMP_CONFIG_ISOURCE, \
+ .input = (nrf_comp_input_t)_input, \
+ .interrupt_priority = NRFX_COMP_CONFIG_IRQ_PRIORITY \
+}
+#else
+#define NRFX_COMP_DEFAULT_CONFIG(_input) \
+{ \
+ .reference = (nrf_comp_ref_t)NRFX_COMP_CONFIG_REF, \
+ .main_mode = (nrf_comp_main_mode_t)NRFX_COMP_CONFIG_MAIN_MODE, \
+ .threshold = NRFX_COMP_CONFIG_TH, \
+ .speed_mode = (nrf_comp_sp_mode_t)NRFX_COMP_CONFIG_SPEED_MODE, \
+ .hyst = (nrf_comp_hyst_t)NRFX_COMP_CONFIG_HYST, \
+ .input = (nrf_comp_input_t)_input, \
+ .interrupt_priority = NRFX_COMP_CONFIG_IRQ_PRIORITY \
+}
+#endif
+
+/**
+ * @brief Function for initializing the COMP driver.
+ *
+ * This function initializes the COMP driver, but does not enable the peripheral or any interrupts.
+ * To start the driver, call the function @ref nrfx_comp_start() after initialization.
+ *
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] event_handler Event handler provided by the user.
+ * Must not be NULL.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver has already been initialized.
+ * @retval NRFX_ERROR_BUSY If the LPCOMP peripheral is already in use.
+ * This is possible only if @ref nrfx_prs module
+ * is enabled.
+ */
+nrfx_err_t nrfx_comp_init(nrfx_comp_config_t const * p_config,
+ nrfx_comp_event_handler_t event_handler);
+
+
+/**
+ * @brief Function for uninitializing the COMP driver.
+ *
+ * This function uninitializes the COMP driver. The COMP peripheral and
+ * its interrupts are disabled, and local variables are cleaned. After this call, you must
+ * initialize the driver again by calling nrfx_comp_init() if you want to use it.
+ *
+ * @sa nrfx_comp_stop()
+ */
+void nrfx_comp_uninit(void);
+
+/**
+ * @brief Function for setting the analog input.
+ *
+ * @param[in] psel COMP analog pin selection.
+ */
+void nrfx_comp_pin_select(nrf_comp_input_t psel);
+
+/**
+ * @brief Function for starting the COMP peripheral and interrupts.
+ *
+ * Before calling this function, the driver must be initialized. This function
+ * enables the COMP peripheral and its interrupts.
+ *
+ * @param[in] comp_evt_en_mask Mask of events to be enabled. This parameter should be built as
+ * 'or' of elements from @ref nrfx_comp_evt_en_mask_t.
+ * @param[in] comp_shorts_mask Mask of shorts to be enabled. This parameter should be built as
+ * 'or' of elements from @ref nrfx_comp_short_mask_t.
+ *
+ * @sa nrfx_comp_init()
+ *
+ */
+void nrfx_comp_start(uint32_t comp_evt_en_mask, uint32_t comp_shorts_mask);
+
+/**@brief Function for stopping the COMP peripheral.
+ *
+ * Before calling this function, the driver must be enabled. This function disables the COMP
+ * peripheral and its interrupts.
+ *
+ * @sa nrfx_comp_uninit()
+ *
+ */
+void nrfx_comp_stop(void);
+
+/**
+ * @brief Function for copying the current state of the comparator result to the RESULT register.
+ *
+ * @retval 0 If the input voltage is below the threshold (VIN+ < VIN-).
+ * @retval 1 If the input voltage is above the threshold (VIN+ > VIN-).
+ */
+uint32_t nrfx_comp_sample(void);
+
+/**
+ * @brief Function for getting the address of a COMP task.
+ *
+ * @param[in] task COMP task.
+ *
+ * @return Address of the given COMP task.
+ */
+__STATIC_INLINE uint32_t nrfx_comp_task_address_get(nrf_comp_task_t task)
+{
+ return (uint32_t)nrf_comp_task_address_get(task);
+}
+
+/**
+ * @brief Function for getting the address of a COMP event.
+ *
+ * @param[in] event COMP event.
+ *
+ * @return Address of the given COMP event.
+ */
+__STATIC_INLINE uint32_t nrfx_comp_event_address_get(nrf_comp_event_t event)
+{
+ return (uint32_t)nrf_comp_event_address_get(event);
+}
+
+
+void nrfx_comp_irq_handler(void);
+
+
+/** @} **/
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_COMP_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_gpiote.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_gpiote.h
new file mode 100644
index 0000000..ee79e6d
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_gpiote.h
@@ -0,0 +1,423 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_GPIOTE_H__
+#define NRFX_GPIOTE_H__
+
+#include <nrfx.h>
+#include <hal/nrf_gpiote.h>
+#include <hal/nrf_gpio.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_gpiote GPIOTE driver
+ * @{
+ * @ingroup nrf_gpiote
+ * @brief GPIOTE peripheral driver.
+ */
+
+/**@brief Input pin configuration. */
+typedef struct
+{
+ nrf_gpiote_polarity_t sense; /**< Transition that triggers interrupt. */
+ nrf_gpio_pin_pull_t pull; /**< Pulling mode. */
+ bool is_watcher : 1; /**< True when the input pin is tracking an output pin. */
+ bool hi_accuracy : 1; /**< True when high accuracy (IN_EVENT) is used. */
+ bool skip_gpio_setup : 1; /**< Do not change GPIO configuration */
+} nrfx_gpiote_in_config_t;
+
+/**@brief Macro for configuring a pin to use a GPIO IN or PORT EVENT to detect low-to-high transition.
+ * @details Set hi_accu to true to use IN_EVENT. */
+#define NRFX_GPIOTE_CONFIG_IN_SENSE_LOTOHI(hi_accu) \
+ { \
+ .is_watcher = false, \
+ .hi_accuracy = hi_accu, \
+ .pull = NRF_GPIO_PIN_NOPULL, \
+ .sense = NRF_GPIOTE_POLARITY_LOTOHI, \
+ }
+
+/**@brief Macro for configuring a pin to use a GPIO IN or PORT EVENT to detect high-to-low transition.
+ * @details Set hi_accu to true to use IN_EVENT. */
+#define NRFX_GPIOTE_CONFIG_IN_SENSE_HITOLO(hi_accu) \
+ { \
+ .is_watcher = false, \
+ .hi_accuracy = hi_accu, \
+ .pull = NRF_GPIO_PIN_NOPULL, \
+ .sense = NRF_GPIOTE_POLARITY_HITOLO, \
+ }
+
+/**@brief Macro for configuring a pin to use a GPIO IN or PORT EVENT to detect any change on the pin.
+ * @details Set hi_accu to true to use IN_EVENT.*/
+#define NRFX_GPIOTE_CONFIG_IN_SENSE_TOGGLE(hi_accu) \
+ { \
+ .is_watcher = false, \
+ .hi_accuracy = hi_accu, \
+ .pull = NRF_GPIO_PIN_NOPULL, \
+ .sense = NRF_GPIOTE_POLARITY_TOGGLE, \
+ }
+
+/**@brief Macro for configuring a pin to use a GPIO IN or PORT EVENT to detect low-to-high transition.
+ * @details Set hi_accu to true to use IN_EVENT.
+ * @note This macro prepares configuration that skips GPIO setup. */
+#define NRFX_GPIOTE_RAW_CONFIG_IN_SENSE_LOTOHI(hi_accu) \
+ { \
+ .is_watcher = false, \
+ .hi_accuracy = hi_accu, \
+ .pull = NRF_GPIO_PIN_NOPULL, \
+ .sense = NRF_GPIOTE_POLARITY_LOTOHI, \
+ .skip_gpio_setup = true, \
+ }
+
+/**@brief Macro for configuring a pin to use a GPIO IN or PORT EVENT to detect high-to-low transition.
+ * @details Set hi_accu to true to use IN_EVENT.
+ * @note This macro prepares configuration that skips GPIO setup. */
+#define NRFX_GPIOTE_RAW_CONFIG_IN_SENSE_HITOLO(hi_accu) \
+ { \
+ .is_watcher = false, \
+ .hi_accuracy = hi_accu, \
+ .pull = NRF_GPIO_PIN_NOPULL, \
+ .sense = NRF_GPIOTE_POLARITY_HITOLO, \
+ .skip_gpio_setup = true, \
+ }
+
+/**@brief Macro for configuring a pin to use a GPIO IN or PORT EVENT to detect any change on the pin.
+ * @details Set hi_accu to true to use IN_EVENT.
+ * @note This macro prepares configuration that skips GPIO setup. */
+#define NRFX_GPIOTE_RAW_CONFIG_IN_SENSE_TOGGLE(hi_accu) \
+ { \
+ .is_watcher = false, \
+ .hi_accuracy = hi_accu, \
+ .pull = NRF_GPIO_PIN_NOPULL, \
+ .sense = NRF_GPIOTE_POLARITY_TOGGLE, \
+ .skip_gpio_setup = true, \
+ }
+
+
+/**@brief Output pin configuration. */
+typedef struct
+{
+ nrf_gpiote_polarity_t action; /**< Configuration of the pin task. */
+ nrf_gpiote_outinit_t init_state; /**< Initial state of the output pin. */
+ bool task_pin; /**< True if the pin is controlled by a GPIOTE task. */
+} nrfx_gpiote_out_config_t;
+
+/**@brief Macro for configuring a pin to use as output. GPIOTE is not used for the pin. */
+#define NRFX_GPIOTE_CONFIG_OUT_SIMPLE(init_high) \
+ { \
+ .init_state = init_high ? NRF_GPIOTE_INITIAL_VALUE_HIGH : NRF_GPIOTE_INITIAL_VALUE_LOW, \
+ .task_pin = false, \
+ }
+
+/**@brief Macro for configuring a pin to use the GPIO OUT TASK to change the state from high to low.
+ * @details The task will clear the pin. Therefore, the pin is set initially. */
+#define NRFX_GPIOTE_CONFIG_OUT_TASK_LOW \
+ { \
+ .init_state = NRF_GPIOTE_INITIAL_VALUE_HIGH, \
+ .task_pin = true, \
+ .action = NRF_GPIOTE_POLARITY_HITOLO, \
+ }
+
+/**@brief Macro for configuring a pin to use the GPIO OUT TASK to change the state from low to high.
+ * @details The task will set the pin. Therefore, the pin is cleared initially. */
+#define NRFX_GPIOTE_CONFIG_OUT_TASK_HIGH \
+ { \
+ .init_state = NRF_GPIOTE_INITIAL_VALUE_LOW, \
+ .task_pin = true, \
+ .action = NRF_GPIOTE_POLARITY_LOTOHI, \
+ }
+
+/**@brief Macro for configuring a pin to use the GPIO OUT TASK to toggle the pin state.
+ * @details The initial pin state must be provided. */
+#define NRFX_GPIOTE_CONFIG_OUT_TASK_TOGGLE(init_high) \
+ { \
+ .init_state = init_high ? NRF_GPIOTE_INITIAL_VALUE_HIGH : NRF_GPIOTE_INITIAL_VALUE_LOW, \
+ .task_pin = true, \
+ .action = NRF_GPIOTE_POLARITY_TOGGLE, \
+ }
+
+/** @brief Pin. */
+typedef uint32_t nrfx_gpiote_pin_t;
+
+/**
+ * @brief Pin event handler prototype.
+ *
+ * @param pin Pin that triggered this event.
+ * @param action Action that lead to triggering this event.
+ */
+typedef void (*nrfx_gpiote_evt_handler_t)(nrfx_gpiote_pin_t pin, nrf_gpiote_polarity_t action);
+
+/**
+ * @brief Function for initializing the GPIOTE module.
+ *
+ * @details Only static configuration is supported to prevent the shared
+ * resource being customized by the initiator.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver was already initialized.
+ */
+nrfx_err_t nrfx_gpiote_init(void);
+
+/**
+ * @brief Function for checking if the GPIOTE module is initialized.
+ *
+ * @details The GPIOTE module is a shared module. Therefore, you should check if
+ * the module is already initialized and skip initialization if it is.
+ *
+ * @retval true If the module is already initialized.
+ * @retval false If the module is not initialized.
+ */
+bool nrfx_gpiote_is_init(void);
+
+/**
+ * @brief Function for uninitializing the GPIOTE module.
+ */
+void nrfx_gpiote_uninit(void);
+
+/**
+ * @brief Function for initializing a GPIOTE output pin.
+ * @details The output pin can be controlled by the CPU or by PPI. The initial
+ * configuration specifies which mode is used. If PPI mode is used, the driver
+ * attempts to allocate one of the available GPIOTE channels. If no channel is
+ * available, an error is returned.
+ *
+ * @param[in] pin Pin.
+ * @param[in] p_config Initial configuration.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver is not initialized or the pin is already used.
+ * @retval NRFX_ERROR_NO_MEM If no GPIOTE channel is available.
+ */
+nrfx_err_t nrfx_gpiote_out_init(nrfx_gpiote_pin_t pin,
+ nrfx_gpiote_out_config_t const * p_config);
+
+/**
+ * @brief Function for uninitializing a GPIOTE output pin.
+ * @details The driver frees the GPIOTE channel if the output pin was using one.
+ *
+ * @param[in] pin Pin.
+ */
+void nrfx_gpiote_out_uninit(nrfx_gpiote_pin_t pin);
+
+/**
+ * @brief Function for setting a GPIOTE output pin.
+ *
+ * @param[in] pin Pin.
+ */
+void nrfx_gpiote_out_set(nrfx_gpiote_pin_t pin);
+
+/**
+ * @brief Function for clearing a GPIOTE output pin.
+ *
+ * @param[in] pin Pin.
+ */
+void nrfx_gpiote_out_clear(nrfx_gpiote_pin_t pin);
+
+/**
+ * @brief Function for toggling a GPIOTE output pin.
+ *
+ * @param[in] pin Pin.
+ */
+void nrfx_gpiote_out_toggle(nrfx_gpiote_pin_t pin);
+
+/**
+ * @brief Function for enabling a GPIOTE output pin task.
+ *
+ * @param[in] pin Pin.
+ */
+void nrfx_gpiote_out_task_enable(nrfx_gpiote_pin_t pin);
+
+/**
+ * @brief Function for disabling a GPIOTE output pin task.
+ *
+ * @param[in] pin Pin.
+ */
+void nrfx_gpiote_out_task_disable(nrfx_gpiote_pin_t pin);
+
+/**
+ * @brief Function for getting the address of a configurable GPIOTE task.
+ *
+ * @param[in] pin Pin.
+ *
+ * @return Address of OUT task.
+ */
+uint32_t nrfx_gpiote_out_task_addr_get(nrfx_gpiote_pin_t pin);
+
+#if defined(GPIOTE_FEATURE_SET_PRESENT) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Function for getting the address of a configurable GPIOTE task.
+ *
+ * @param[in] pin Pin.
+ *
+ * @return Address of SET task.
+ */
+uint32_t nrfx_gpiote_set_task_addr_get(nrfx_gpiote_pin_t pin);
+#endif // defined(GPIOTE_FEATURE_SET_PRESENT) || defined(__NRFX_DOXYGEN__)
+
+#if defined(GPIOTE_FEATURE_CLR_PRESENT) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Function for getting the address of a configurable GPIOTE task.
+ *
+ * @param[in] pin Pin.
+ *
+ * @return Address of CLR task.
+ */
+uint32_t nrfx_gpiote_clr_task_addr_get(nrfx_gpiote_pin_t pin);
+#endif // defined(GPIOTE_FEATURE_CLR_PRESENT) || defined(__NRFX_DOXYGEN__)
+
+/**
+ * @brief Function for initializing a GPIOTE input pin.
+ * @details The input pin can act in two ways:
+ * - lower accuracy but low power (high frequency clock not needed)
+ * - higher accuracy (high frequency clock required)
+ *
+ * The initial configuration specifies which mode is used.
+ * If high-accuracy mode is used, the driver attempts to allocate one
+ * of the available GPIOTE channels. If no channel is
+ * available, an error is returned.
+ * In low accuracy mode SENSE feature is used. In this case only one active pin
+ * can be detected at a time. It can be worked around by setting all of the used
+ * low accuracy pins to toggle mode.
+ * For more information about SENSE functionality, refer to Product Specification.
+ *
+ * @param[in] pin Pin.
+ * @param[in] p_config Initial configuration.
+ * @param[in] evt_handler User function to be called when the configured transition occurs.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver is not initialized or the pin is already used.
+ * @retval NRFX_ERROR_NO_MEM If no GPIOTE channel is available.
+ */
+nrfx_err_t nrfx_gpiote_in_init(nrfx_gpiote_pin_t pin,
+ nrfx_gpiote_in_config_t const * p_config,
+ nrfx_gpiote_evt_handler_t evt_handler);
+
+/**
+ * @brief Function for uninitializing a GPIOTE input pin.
+ * @details The driver frees the GPIOTE channel if the input pin was using one.
+ *
+ * @param[in] pin Pin.
+ */
+void nrfx_gpiote_in_uninit(nrfx_gpiote_pin_t pin);
+
+/**
+ * @brief Function for enabling sensing of a GPIOTE input pin.
+ *
+ * @details If the input pin is configured as high-accuracy pin, the function
+ * enables an IN_EVENT. Otherwise, the function enables the GPIO sense mechanism.
+ * Note that a PORT event is shared between multiple pins, therefore the
+ * interrupt is always enabled.
+ *
+ * @param[in] pin Pin.
+ * @param[in] int_enable True to enable the interrupt. Always valid for a high-accuracy pin.
+ */
+void nrfx_gpiote_in_event_enable(nrfx_gpiote_pin_t pin, bool int_enable);
+
+/**
+ * @brief Function for disabling a GPIOTE input pin.
+ *
+ * @param[in] pin Pin.
+ */
+void nrfx_gpiote_in_event_disable(nrfx_gpiote_pin_t pin);
+
+/**
+ * @brief Function for checking if a GPIOTE input pin is set.
+ *
+ * @param[in] pin Pin.
+ *
+ * @retval true If the input pin is set.
+ * @retval false If the input pin is not set.
+ */
+bool nrfx_gpiote_in_is_set(nrfx_gpiote_pin_t pin);
+
+/**
+ * @brief Function for getting the address of a GPIOTE input pin event.
+ * @details If the pin is configured to use low-accuracy mode, the address of the PORT event is returned.
+ *
+ * @param[in] pin Pin.
+ */
+uint32_t nrfx_gpiote_in_event_addr_get(nrfx_gpiote_pin_t pin);
+
+/**
+ * @brief Function for forcing a specific state on the pin configured as task.
+ *
+ * @param[in] pin Pin.
+ * @param[in] state Pin state.
+ */
+void nrfx_gpiote_out_task_force(nrfx_gpiote_pin_t pin, uint8_t state);
+
+/**
+ * @brief Function for triggering the task OUT manually.
+ *
+ * @param[in] pin Pin.
+ */
+void nrfx_gpiote_out_task_trigger(nrfx_gpiote_pin_t pin);
+
+#if defined(GPIOTE_FEATURE_SET_PRESENT) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Function for triggering the task SET manually.
+ *
+ * @param[in] pin Pin.
+ */
+void nrfx_gpiote_set_task_trigger(nrfx_gpiote_pin_t pin);
+#endif // defined(GPIOTE_FEATURE_SET_PRESENT) || defined(__NRFX_DOXYGEN__)
+
+#if defined(GPIOTE_FEATURE_CLR_PRESENT) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Function for triggering the task CLR manually.
+ *
+ * @param[in] pin Pin.
+ */
+void nrfx_gpiote_clr_task_trigger(nrfx_gpiote_pin_t pin);
+#endif // defined(GPIOTE_FEATURE_CLR_PRESENT) || defined(__NRFX_DOXYGEN__)
+
+
+void nrfx_gpiote_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_GPIOTE_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_i2s.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_i2s.h
new file mode 100644
index 0000000..f64fa21
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_i2s.h
@@ -0,0 +1,254 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_I2S_H__
+#define NRFX_I2S_H__
+
+#include <nrfx.h>
+#include <hal/nrf_i2s.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_i2s I2S driver
+ * @{
+ * @ingroup nrf_i2s
+ * @brief Inter-IC Sound (I2S) peripheral driver.
+ */
+
+
+/**
+ * @brief This value can be provided instead of a pin number for the signals
+ * SDOUT, SDIN, and MCK to specify that a given signal is not used
+ * and therefore does not need to be connected to a pin.
+ */
+#define NRFX_I2S_PIN_NOT_USED 0xFF
+
+/** @brief I2S driver configuration structure. */
+typedef struct
+{
+ uint8_t sck_pin; ///< SCK pin number.
+ uint8_t lrck_pin; ///< LRCK pin number.
+ uint8_t mck_pin; ///< MCK pin number.
+ /**< Optional. Use @ref NRFX_I2S_PIN_NOT_USED
+ * if this signal is not needed. */
+ uint8_t sdout_pin; ///< SDOUT pin number.
+ /**< Optional. Use @ref NRFX_I2S_PIN_NOT_USED
+ * if this signal is not needed. */
+ uint8_t sdin_pin; ///< SDIN pin number.
+ /**< Optional. Use @ref NRFX_I2S_PIN_NOT_USED
+ * if this signal is not needed. */
+ uint8_t irq_priority; ///< Interrupt priority.
+
+ nrf_i2s_mode_t mode; ///< Mode of operation.
+ nrf_i2s_format_t format; ///< Frame format.
+ nrf_i2s_align_t alignment; ///< Alignment of sample within a frame.
+ nrf_i2s_swidth_t sample_width; ///< Sample width.
+ nrf_i2s_channels_t channels; ///< Enabled channels.
+ nrf_i2s_mck_t mck_setup; ///< Master clock setup.
+ nrf_i2s_ratio_t ratio; ///< MCK/LRCK ratio.
+} nrfx_i2s_config_t;
+
+/** @brief I2S driver buffers structure. */
+typedef struct
+{
+ uint32_t * p_rx_buffer;
+ uint32_t const * p_tx_buffer;
+} nrfx_i2s_buffers_t;
+
+/**
+ * @brief I2S driver default configuration.
+ */
+#define NRFX_I2S_DEFAULT_CONFIG \
+{ \
+ .sck_pin = NRFX_I2S_CONFIG_SCK_PIN, \
+ .lrck_pin = NRFX_I2S_CONFIG_LRCK_PIN, \
+ .mck_pin = NRFX_I2S_CONFIG_MCK_PIN, \
+ .sdout_pin = NRFX_I2S_CONFIG_SDOUT_PIN, \
+ .sdin_pin = NRFX_I2S_CONFIG_SDIN_PIN, \
+ .irq_priority = NRFX_I2S_CONFIG_IRQ_PRIORITY, \
+ .mode = (nrf_i2s_mode_t)NRFX_I2S_CONFIG_MASTER, \
+ .format = (nrf_i2s_format_t)NRFX_I2S_CONFIG_FORMAT, \
+ .alignment = (nrf_i2s_align_t)NRFX_I2S_CONFIG_ALIGN, \
+ .sample_width = (nrf_i2s_swidth_t)NRFX_I2S_CONFIG_SWIDTH, \
+ .channels = (nrf_i2s_channels_t)NRFX_I2S_CONFIG_CHANNELS, \
+ .mck_setup = (nrf_i2s_mck_t)NRFX_I2S_CONFIG_MCK_SETUP, \
+ .ratio = (nrf_i2s_ratio_t)NRFX_I2S_CONFIG_RATIO, \
+}
+
+
+#define NRFX_I2S_STATUS_NEXT_BUFFERS_NEEDED (1UL << 0)
+ /**< The application should provide buffers that are to be used in the next
+ * part of the transfer. A call to @ref nrfx_i2s_next_buffers_set should
+ * be done before the currently used buffers are completely processed
+ * (i.e. the time remaining for supplying the next buffers depends on
+ * the used size of the buffers). */
+
+/**
+ * @brief I2S driver data handler type.
+ *
+ * A data handling function of this type must be specified during initialization
+ * of the driver. The driver will call this function when it finishes using
+ * buffers passed to it by the application, and when it needs to be provided
+ * with buffers for the next part of the transfer.
+ *
+ * @note The @c p_released pointer passed to this function is temporary and
+ * will be invalid after the function returns, hence it cannot be stored
+ * and used later. If needed, the pointed content (i.e. buffers pointers)
+ * should be copied instead.
+ *
+ * @param[in] p_released Pointer to a structure with pointers to buffers
+ * passed previously to the driver that will no longer
+ * be access by it (they can be now safely released or
+ * used for another purpose, in particular for a next
+ * part of the transfer).
+ * This pointer will be NULL if the application did not
+ * supply the buffers for the next part of the transfer
+ * (via a call to @ref nrfx_i2s_next_buffers_set) since
+ * the previous time the data handler signaled such need.
+ * This means that data corruption occurred (the previous
+ * buffers are used for the second time) and no buffers
+ * can be released at the moment.
+ * Both pointers in this structure are NULL when the
+ * handler is called for the first time after a transfer
+ * is started, because no data has been transferred yet
+ * at this point. In all successive calls the pointers
+ * specify what has been sent (TX) and what has been
+ * received (RX) in the part of transfer that has just
+ * been completed (provided that a given direction is
+ * enabled, see @ref nrfx_i2s_start).
+ * @param[in] status Bit field describing the current status of the transfer.
+ * It can be 0 or a combination of the following flags:
+ * - @ref NRFX_I2S_STATUS_NEXT_BUFFERS_NEEDED
+ */
+typedef void (* nrfx_i2s_data_handler_t)(nrfx_i2s_buffers_t const * p_released,
+ uint32_t status);
+
+
+/**
+ * @brief Function for initializing the I2S driver.
+ *
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] handler Data handler provided by the user. Must not be NULL.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver was already initialized.
+ * @retval NRFX_ERROR_INVALID_PARAM If the requested combination of configuration
+ * options is not allowed by the I2S peripheral.
+ */
+nrfx_err_t nrfx_i2s_init(nrfx_i2s_config_t const * p_config,
+ nrfx_i2s_data_handler_t handler);
+
+/** @brief Function for uninitializing the I2S driver. */
+void nrfx_i2s_uninit(void);
+
+/**
+ * @brief Function for starting the continuous I2S transfer.
+ *
+ * The I2S data transfer can be performed in one of three modes: RX (reception)
+ * only, TX (transmission) only, or in both directions simultaneously.
+ * The mode is selected by specifying a proper buffer for a given direction
+ * in the call to this function or by passing NULL instead if this direction
+ * should be disabled.
+ *
+ * The length of the buffer (which is a common value for RX and TX if both
+ * directions are enabled) is specified in 32-bit words. One 32-bit memory
+ * word can either contain four 8-bit samples, two 16-bit samples, or one
+ * right-aligned 24-bit sample sign-extended to a 32-bit value.
+ * For a detailed memory mapping for different supported configurations,
+ * see the @linkProductSpecification52.
+ *
+ * @note Peripherals using EasyDMA (including I2S) require the transfer buffers
+ * to be placed in the Data RAM region. If this condition is not met,
+ * this function will fail with the error code NRFX_ERROR_INVALID_ADDR.
+ *
+ * @param[in] p_initial_buffers Pointer to a structure specifying the buffers
+ * to be used in the initial part of the transfer
+ * (buffers for all consecutive parts are provided
+ * through the data handler).
+ * @param[in] buffer_size Size of the buffers (in 32-bit words).
+ * Must not be 0.
+ * @param[in] flags Transfer options (0 for default settings).
+ * Currently, no additional flags are available.
+ *
+ * @retval NRFX_SUCCESS If the operation was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If a transfer was already started or
+ * the driver has not been initialized.
+ * @retval NRFX_ERROR_INVALID_ADDR If the provided buffers are not placed
+ * in the Data RAM region.
+ */
+nrfx_err_t nrfx_i2s_start(nrfx_i2s_buffers_t const * p_initial_buffers,
+ uint16_t buffer_size,
+ uint8_t flags);
+
+/**
+ * @brief Function for supplying the buffers to be used in the next part of
+ * the transfer.
+ *
+ * The application should call this function when the data handler receives
+ * @ref NRFX_I2S_STATUS_NEXT_BUFFERS_NEEDED in the @c status parameter.
+ * The call can be done immediately from the data handler function or later,
+ * but it has to be done before the I2S peripheral finishes processing the
+ * buffers supplied previously. Otherwise, data corruption will occur.
+ *
+ * @sa nrfx_i2s_data_handler_t
+ *
+ * @retval NRFX_SUCCESS If the operation was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the buffers were already supplied or
+ * the peripheral is currently being stopped.
+ */
+nrfx_err_t nrfx_i2s_next_buffers_set(nrfx_i2s_buffers_t const * p_buffers);
+
+/** @brief Function for stopping the I2S transfer. */
+void nrfx_i2s_stop(void);
+
+/** @} */
+
+
+void nrfx_i2s_irq_handler(void);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_I2S_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_lpcomp.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_lpcomp.h
new file mode 100644
index 0000000..f6744a3
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_lpcomp.h
@@ -0,0 +1,150 @@
+/**
+ * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_LPCOMP_H__
+#define NRFX_LPCOMP_H__
+
+#include <nrfx.h>
+#include <hal/nrf_lpcomp.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_lpcomp LPCOMP driver
+ * @{
+ * @ingroup nrf_lpcomp
+ * @brief Low Power Comparator (LPCOMP) peripheral driver.
+ */
+
+/**
+ * @brief LPCOMP event handler function type.
+ * @param[in] event LPCOMP event.
+ */
+typedef void (* nrfx_lpcomp_event_handler_t)(nrf_lpcomp_event_t event);
+
+/** @brief LPCOMP configuration. */
+typedef struct
+{
+ nrf_lpcomp_config_t hal; /**< LPCOMP HAL configuration. */
+ nrf_lpcomp_input_t input; /**< Input to be monitored. */
+ uint8_t interrupt_priority; /**< LPCOMP interrupt priority. */
+} nrfx_lpcomp_config_t;
+
+/** @brief LPCOMP driver default configuration including the LPCOMP HAL configuration. */
+#ifdef NRF52_SERIES
+#define NRFX_LPCOMP_DEFAULT_CONFIG \
+ { \
+ .hal = { (nrf_lpcomp_ref_t)NRFX_LPCOMP_CONFIG_REFERENCE , \
+ (nrf_lpcomp_detect_t)NRFX_LPCOMP_CONFIG_DETECTION, \
+ (nrf_lpcomp_hysteresis_t)NRFX_LPCOMP_CONFIG_HYST }, \
+ .input = (nrf_lpcomp_input_t)NRFX_LPCOMP_CONFIG_INPUT, \
+ .interrupt_priority = NRFX_LPCOMP_CONFIG_IRQ_PRIORITY \
+ }
+#else
+#define NRFX_LPCOMP_DEFAULT_CONFIG \
+ { \
+ .hal = { (nrf_lpcomp_ref_t)NRFX_LPCOMP_CONFIG_REFERENCE , \
+ (nrf_lpcomp_detect_t)NRFX_LPCOMP_CONFIG_DETECTION }, \
+ .input = (nrf_lpcomp_input_t)NRFX_LPCOMP_CONFIG_INPUT, \
+ .interrupt_priority = NRFX_LPCOMP_CONFIG_IRQ_PRIORITY \
+ }
+#endif
+
+/**
+ * @brief Function for initializing the LPCOMP driver.
+ *
+ * This function initializes the LPCOMP driver, but does not enable the peripheral or any interrupts.
+ * To start the driver, call the function nrfx_lpcomp_enable() after initialization.
+ *
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] event_handler Event handler provided by the user.
+ * Must not be NULL.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver has already been initialized.
+ * @retval NRFX_ERROR_BUSY If the COMP peripheral is already in use.
+ * This is possible only if @ref nrfx_prs module
+ * is enabled.
+ */
+nrfx_err_t nrfx_lpcomp_init(nrfx_lpcomp_config_t const * p_config,
+ nrfx_lpcomp_event_handler_t event_handler);
+
+/**
+ * @brief Function for uninitializing the LCOMP driver.
+ *
+ * This function uninitializes the LPCOMP driver. The LPCOMP peripheral and
+ * its interrupts are disabled, and local variables are cleaned. After this call, you must
+ * initialize the driver again by calling nrfx_lpcomp_init() if you want to use it.
+ *
+ * @sa nrfx_lpcomp_disable()
+ * @sa nrfx_lpcomp_init()
+ */
+void nrfx_lpcomp_uninit(void);
+
+/**@brief Function for enabling the LPCOMP peripheral and interrupts.
+ *
+ * Before calling this function, the driver must be initialized. This function
+ * enables the LPCOMP peripheral and its interrupts.
+ *
+ * @sa nrfx_lpcomp_disable()
+ */
+void nrfx_lpcomp_enable(void);
+
+/**@brief Function for disabling the LPCOMP peripheral.
+ *
+ * Before calling this function, the driver must be initialized. This function disables the LPCOMP
+ * peripheral and its interrupts.
+ *
+ * @sa nrfx_lpcomp_enable()
+ */
+void nrfx_lpcomp_disable(void);
+
+
+void nrfx_lpcomp_irq_handler(void);
+
+/** @} **/
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_LPCOMP_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_pdm.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_pdm.h
new file mode 100644
index 0000000..f2201c9
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_pdm.h
@@ -0,0 +1,214 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_PDM_H__
+#define NRFX_PDM_H__
+
+#include <nrfx.h>
+#include <hal/nrf_pdm.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_pdm PDM driver
+ * @{
+ * @ingroup nrf_pdm
+ * @brief Pulse Density Modulation (PDM) peripheral driver.
+ */
+
+
+#define NRFX_PDM_MAX_BUFFER_SIZE 32767
+
+
+/**
+ * @brief PDM error type.
+ */
+typedef enum
+{
+ NRFX_PDM_NO_ERROR = 0,
+ NRFX_PDM_ERROR_OVERFLOW = 1
+} nrfx_pdm_error_t;
+
+/**
+ * @brief PDM event structure.
+ */
+typedef struct
+{
+ bool buffer_requested; ///< Buffer request flag.
+ int16_t * buffer_released; ///< Pointer to the released buffer. Can be NULL.
+ nrfx_pdm_error_t error; ///< Error type.
+} nrfx_pdm_evt_t;
+
+/**
+ * @brief PDM interface driver configuration structure.
+ */
+typedef struct
+{
+ nrf_pdm_mode_t mode; ///< Interface operation mode.
+ nrf_pdm_edge_t edge; ///< Sampling mode.
+ uint8_t pin_clk; ///< CLK pin.
+ uint8_t pin_din; ///< DIN pin.
+ nrf_pdm_freq_t clock_freq; ///< Clock frequency.
+ nrf_pdm_gain_t gain_l; ///< Left channel gain.
+ nrf_pdm_gain_t gain_r; ///< Right channel gain.
+ uint8_t interrupt_priority; ///< Interrupt priority.
+} nrfx_pdm_config_t;
+
+/**
+ * @brief Macro for setting @ref nrfx_pdm_config_t to default settings
+ * in single ended mode.
+ *
+ * @param _pin_clk CLK output pin.
+ * @param _pin_din DIN input pin.
+ */
+#define NRFX_PDM_DEFAULT_CONFIG(_pin_clk, _pin_din) \
+{ \
+ .mode = (nrf_pdm_mode_t)NRFX_PDM_CONFIG_MODE, \
+ .edge = (nrf_pdm_edge_t)NRFX_PDM_CONFIG_EDGE, \
+ .pin_clk = _pin_clk, \
+ .pin_din = _pin_din, \
+ .clock_freq = (nrf_pdm_freq_t)NRFX_PDM_CONFIG_CLOCK_FREQ, \
+ .gain_l = NRF_PDM_GAIN_DEFAULT, \
+ .gain_r = NRF_PDM_GAIN_DEFAULT, \
+ .interrupt_priority = NRFX_PDM_CONFIG_IRQ_PRIORITY \
+}
+
+/**
+ * @brief Handler for PDM interface ready events.
+ *
+ * This event handler is called on a buffer request, an error or when a buffer
+ * is full and ready to be processed.
+ *
+ * @param[in] p_evt Pointer to the PDM event structure.
+ */
+typedef void (*nrfx_pdm_event_handler_t)(nrfx_pdm_evt_t const * const p_evt);
+
+
+/**
+ * @brief Function for initializing the PDM interface.
+ *
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] event_handler Event handler provided by the user. Cannot be NULL.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver is already initialized.
+ * @retval NRFX_ERROR_INVALID_PARAM If invalid configuration was specified.
+ */
+nrfx_err_t nrfx_pdm_init(nrfx_pdm_config_t const * p_config,
+ nrfx_pdm_event_handler_t event_handler);
+
+/**
+ * @brief Function for uninitializing the PDM interface.
+ *
+ * This function stops PDM sampling, if it is in progress.
+ */
+void nrfx_pdm_uninit(void);
+
+/**
+ * @brief Function for getting the address of a PDM interface task.
+ *
+ * @param[in] task Task.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrfx_pdm_task_address_get(nrf_pdm_task_t task)
+{
+ return nrf_pdm_task_address_get(task);
+}
+
+/**
+ * @brief Function for getting the state of the PDM interface.
+ *
+ * @retval true If the PDM interface is enabled.
+ * @retval false If the PDM interface is disabled.
+ */
+__STATIC_INLINE bool nrfx_pdm_enable_check(void)
+{
+ return nrf_pdm_enable_check();
+}
+
+/**
+ * @brief Function for starting PDM sampling.
+ *
+ * @retval NRFX_SUCCESS If sampling was started successfully or was already in progress.
+ * @retval NRFX_ERROR_BUSY If a previous start/stop operation is in progress.
+ */
+nrfx_err_t nrfx_pdm_start(void);
+
+/**
+ * @brief Function for stopping PDM sampling.
+ *
+ * When this function is called, the PDM interface is stopped after finishing
+ * the current frame.
+ * The event handler function might be called once more after calling this function.
+ *
+ * @retval NRFX_SUCCESS If sampling was stopped successfully or was already stopped before.
+ * @retval NRFX_ERROR_BUSY If a previous start/stop operation is in progress.
+ */
+nrfx_err_t nrfx_pdm_stop(void);
+
+/**
+ * @brief Function for supplying the sample buffer.
+ *
+ * Call this function after every buffer request event.
+ *
+ * @param[in] buffer Pointer to the receive buffer. Cannot be NULL.
+ * @param[in] buffer_length Length of the receive buffer in 16-bit words.
+ *
+ * @retval NRFX_SUCCESS If the buffer was applied successfully.
+ * @retval NRFX_ERROR_BUSY If the buffer was already supplied or the peripheral is currently being stopped.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver was not initialized.
+ * @retval NRFX_ERROR_INVALID_PARAM If invalid parameters were provided.
+ */
+nrfx_err_t nrfx_pdm_buffer_set(int16_t * buffer, uint16_t buffer_length);
+
+
+void nrfx_pdm_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_PDM_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_power.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_power.h
new file mode 100644
index 0000000..c7bac84
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_power.h
@@ -0,0 +1,382 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_POWER_H__
+#define NRFX_POWER_H__
+
+#include <nrfx.h>
+#include <hal/nrf_power.h>
+#include <nrfx_power_clock.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_power POWER driver
+ * @{
+ * @ingroup nrf_power
+ * @brief POWER peripheral driver.
+ */
+
+/**
+ * @brief Power mode possible configurations
+ */
+typedef enum
+{
+ NRFX_POWER_MODE_CONSTLAT, /**< Constant latency mode */
+ NRFX_POWER_MODE_LOWPWR /**< Low power mode */
+}nrfx_power_mode_t;
+
+#if NRF_POWER_HAS_SLEEPEVT || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Events from power system
+ */
+typedef enum
+{
+ NRFX_POWER_SLEEP_EVT_ENTER, /**< CPU entered WFI/WFE sleep
+ *
+ * Keep in mind that if this interrupt is enabled,
+ * it means that CPU was waken up just after WFI by this interrupt.
+ */
+ NRFX_POWER_SLEEP_EVT_EXIT /**< CPU exited WFI/WFE sleep */
+}nrfx_power_sleep_evt_t;
+#endif /* NRF_POWER_HAS_SLEEPEVT */
+
+#if NRF_POWER_HAS_USBREG || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Events from USB power system
+ */
+typedef enum
+{
+ NRFX_POWER_USB_EVT_DETECTED, /**< USB power detected on the connector (plugged in). */
+ NRFX_POWER_USB_EVT_REMOVED, /**< USB power removed from the connector. */
+ NRFX_POWER_USB_EVT_READY /**< USB power regulator ready. */
+}nrfx_power_usb_evt_t;
+
+/**
+ * @brief USB power state
+ *
+ * The single enumerator that holds all data about current state of USB
+ * related POWER.
+ *
+ * Organized this way that higher power state has higher numeric value
+ */
+typedef enum
+{
+ NRFX_POWER_USB_STATE_DISCONNECTED, /**< No power on USB lines detected */
+ NRFX_POWER_USB_STATE_CONNECTED, /**< The USB power is detected, but USB power regulator is not ready */
+ NRFX_POWER_USB_STATE_READY /**< From the power point of view USB is ready for working */
+}nrfx_power_usb_state_t;
+#endif /* NRF_POWER_HAS_USBREG */
+
+/**
+ * @name Callback types
+ *
+ * Defined types of callback functions
+ * @{
+ */
+/**
+ * @brief Event handler for power failure warning
+ */
+typedef void (*nrfx_power_pofwarn_event_handler_t)(void);
+
+#if NRF_POWER_HAS_SLEEPEVT || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Event handler for entering/exiting sleep
+ *
+ * @param event Event type
+ */
+typedef void (*nrfx_power_sleep_event_handler_t)(nrfx_power_sleep_evt_t event);
+#endif
+
+#if NRF_POWER_HAS_USBREG || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Event handler for USB related power events
+ *
+ * @param event Event type
+ */
+typedef void (*nrfx_power_usb_event_handler_t)(nrfx_power_usb_evt_t event);
+#endif
+/** @} */
+
+/**
+ * @brief General power configuration
+ *
+ * Parameters required to initialize power driver.
+ */
+typedef struct
+{
+ /**
+ * @brief Enable main DCDC regulator
+ *
+ * This bit only informs the driver that elements for DCDC regulator
+ * are installed and regulator can be used.
+ * The regulator would be enabled or disabled automatically
+ * by the hardware, basing on current power requirement.
+ */
+ bool dcdcen:1;
+
+#if NRF_POWER_HAS_VDDH || defined(__NRFX_DOXYGEN__)
+ /**
+ * @brief Enable HV DCDC regulator
+ *
+ * This bit only informs the driver that elements for DCDC regulator
+ * are installed and regulator can be used.
+ * The regulator would be enabled or disabled automatically
+ * by the hardware, basing on current power requirement.
+ */
+ bool dcdcenhv: 1;
+#endif
+}nrfx_power_config_t;
+
+/**
+ * @brief The configuration for power failure comparator
+ *
+ * Configuration used to enable and configure power failure comparator
+ */
+typedef struct
+{
+ nrfx_power_pofwarn_event_handler_t handler; //!< Event handler
+ nrf_power_pof_thr_t thr; //!< Threshold for power failure detection
+#if NRF_POWER_HAS_VDDH || defined(__NRFX_DOXYGEN__)
+ nrf_power_pof_thrvddh_t thrvddh; //!< Threshold for power failure detection on VDDH pin
+#endif
+}nrfx_power_pofwarn_config_t;
+
+#if NRF_POWER_HAS_SLEEPEVT || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief The configuration of sleep event processing
+ *
+ * Configuration used to enable and configure sleep event handling
+ */
+typedef struct
+{
+ nrfx_power_sleep_event_handler_t handler; //!< Event handler
+ bool en_enter:1; //!< Enable event on sleep entering
+ bool en_exit :1; //!< Enable event on sleep exiting
+}nrfx_power_sleepevt_config_t;
+#endif
+
+#if NRF_POWER_HAS_USBREG || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief The configuration of USB related power events
+ *
+ * Configuration used to enable and configure USB power event handling
+ */
+typedef struct
+{
+ nrfx_power_usb_event_handler_t handler; //!< Event processing
+}nrfx_power_usbevt_config_t;
+#endif /* NRF_POWER_HAS_USBREG */
+
+/**
+ * @brief Function for getting the handler of the power failure comparator.
+ * @return Handler of the power failure comparator.
+ */
+nrfx_power_pofwarn_event_handler_t nrfx_power_pof_handler_get(void);
+
+#if NRF_POWER_HAS_USBREG || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Function for getting the handler of the USB power.
+ * @return Handler of the USB power.
+ */
+nrfx_power_usb_event_handler_t nrfx_power_usb_handler_get(void);
+#endif
+
+/**
+ * @brief Initialize power module driver
+ *
+ * Enabled power module driver would process all the interrupts from power system.
+ *
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ *
+ * @retval NRFX_SUCCESS Successfully initialized.
+ * @retval NRFX_ERROR_ALREADY_INITIALIZED Module was already initialized.
+ */
+nrfx_err_t nrfx_power_init(nrfx_power_config_t const * p_config);
+
+/**
+ * @brief Unintialize power module driver
+ *
+ * Disables all the interrupt handling in the module.
+ *
+ * @sa nrfx_power_init
+ */
+void nrfx_power_uninit(void);
+
+/**
+ * @brief Initialize power failure comparator
+ *
+ * Configures the power failure comparator. This function does not setup and enable it.
+ * Those steps can be done with functions @ref nrfx_power_pof_enable and @ref nrfx_power_pof_disable
+ * or with Softdevice API (when Softdevice is using).
+ *
+ * @param[in] p_config Configuration with values and event handler.
+ * If event handler is set to NULL, interrupt would be disabled.
+ */
+void nrfx_power_pof_init(nrfx_power_pofwarn_config_t const * p_config);
+
+/**
+ * @brief Enable power failure comparator
+ * Sets and enables interrupt of the power failure comparator. This functions cannot be using
+ * when Softdevice is enabled. If event handler set in init function is set to NULL, interrupt
+ * would be disabled.
+ *
+ * @param[in] p_config Configuration with values and event handler.
+ */
+void nrfx_power_pof_enable(nrfx_power_pofwarn_config_t const * p_config);
+
+/**
+ * @brief Disable the power failure comparator
+ *
+ * Disables the power failure comparator interrupt.
+ */
+void nrfx_power_pof_disable(void);
+
+/**
+ * @brief Clear the power failure comparator settings
+ *
+ * Clears the settings of the power failure comparator.
+ */
+void nrfx_power_pof_uninit(void);
+
+#if NRF_POWER_HAS_SLEEPEVT || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Initialize sleep entering and exiting events processing
+ *
+ * Configures and setups the sleep event processing.
+ *
+ * @param[in] p_config Configuration with values and event handler.
+ *
+ * @sa nrfx_power_sleepevt_uninit
+ *
+ */
+void nrfx_power_sleepevt_init(nrfx_power_sleepevt_config_t const * p_config);
+
+/**
+ * @brief Enable sleep entering and exiting events processing
+ *
+ * @param[in] p_config Configuration with values and event handler.
+ */
+void nrfx_power_sleepevt_enable(nrfx_power_sleepevt_config_t const * p_config);
+
+/**
+ * @brief Disable sleep entering and exiting events processing
+ */
+void nrfx_power_sleepevt_disable(void);
+
+/**
+ * @brief Uninitialize sleep entering and exiting events processing
+ *
+ * @sa nrfx_power_sleepevt_init
+ */
+void nrfx_power_sleepevt_uninit(void);
+#endif /* NRF_POWER_HAS_SLEEPEVT */
+
+#if NRF_POWER_HAS_USBREG || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Initialize USB power event processing
+ *
+ * Configures and setups the USB power event processing.
+ *
+ * @param[in] p_config Configuration with values and event handler.
+ *
+ * @sa nrfx_power_usbevt_uninit
+ */
+void nrfx_power_usbevt_init(nrfx_power_usbevt_config_t const * p_config);
+
+/**
+ * @brief Enable USB power event processing
+ */
+void nrfx_power_usbevt_enable(void);
+
+/**
+ * @brief Disable USB power event processing
+ */
+void nrfx_power_usbevt_disable(void);
+
+/**
+ * @brief Uninitalize USB power event processing
+ *
+ * @sa nrfx_power_usbevt_init
+ */
+void nrfx_power_usbevt_uninit(void);
+
+/**
+ * @brief Get the status of USB power
+ *
+ * @return Current USB power status
+ */
+__STATIC_INLINE nrfx_power_usb_state_t nrfx_power_usbstatus_get(void);
+
+#endif /* NRF_POWER_HAS_USBREG */
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+#if NRF_POWER_HAS_USBREG
+__STATIC_INLINE nrfx_power_usb_state_t nrfx_power_usbstatus_get(void)
+{
+ uint32_t status = nrf_power_usbregstatus_get();
+ if(0 == (status & NRF_POWER_USBREGSTATUS_VBUSDETECT_MASK))
+ {
+ return NRFX_POWER_USB_STATE_DISCONNECTED;
+ }
+ if(0 == (status & NRF_POWER_USBREGSTATUS_OUTPUTRDY_MASK))
+ {
+ return NRFX_POWER_USB_STATE_CONNECTED;
+ }
+ return NRFX_POWER_USB_STATE_READY;
+}
+#endif /* NRF_POWER_HAS_USBREG */
+
+#endif /* SUPPRESS_INLINE_IMPLEMENTATION */
+
+
+void nrfx_power_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NRFX_POWER_H__ */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_power_clock.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_power_clock.h
new file mode 100644
index 0000000..c63dbcf
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_power_clock.h
@@ -0,0 +1,90 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_POWER_CLOCK_H__
+#define NRFX_POWER_CLOCK_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+__STATIC_INLINE void nrfx_power_clock_irq_init(void);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+__STATIC_INLINE void nrfx_power_clock_irq_init(void)
+{
+ uint8_t priority;
+#if NRFX_CHECK(NRFX_POWER_ENABLED) && NRFX_CHECK(NRFX_CLOCK_ENABLED)
+ #if NRFX_POWER_CONFIG_IRQ_PRIORITY != NRFX_CLOCK_CONFIG_IRQ_PRIORITY
+ #error "IRQ priority for POWER and CLOCK have to be the same. Check <nrfx_config.h>."
+ #endif
+ priority = NRFX_POWER_CONFIG_IRQ_PRIORITY;
+#elif NRFX_CHECK(NRFX_POWER_ENABLED)
+ priority = NRFX_POWER_CONFIG_IRQ_PRIORITY;
+#elif NRFX_CHECK(NRFX_CLOCK_ENABLED)
+ priority = NRFX_CLOCK_CONFIG_IRQ_PRIORITY;
+#endif
+
+ if (!NRFX_IRQ_IS_ENABLED(POWER_CLOCK_IRQn))
+ {
+ NRFX_IRQ_PRIORITY_SET(POWER_CLOCK_IRQn, priority);
+ NRFX_IRQ_ENABLE(POWER_CLOCK_IRQn);
+ }
+}
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+
+#if NRFX_CHECK(NRFX_POWER_ENABLED) && NRFX_CHECK(NRFX_CLOCK_ENABLED)
+void nrfx_power_clock_irq_handler(void);
+#elif NRFX_CHECK(NRFX_POWER_ENABLED)
+#define nrfx_power_irq_handler nrfx_power_clock_irq_handler
+#elif NRFX_CHECK(NRFX_CLOCK_ENABLED)
+#define nrfx_clock_irq_handler nrfx_power_clock_irq_handler
+#endif
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_POWER_CLOCK_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_ppi.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_ppi.h
new file mode 100644
index 0000000..f7b9b24
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_ppi.h
@@ -0,0 +1,327 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_PPI_H__
+#define NRFX_PPI_H__
+
+#include <nrfx.h>
+#include <hal/nrf_ppi.h>
+
+/**
+ * @defgroup nrfx_ppi PPI allocator
+ * @{
+ * @ingroup nrf_ppi
+ * @brief Programmable Peripheral Interconnect (PPI) allocator.
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef NRFX_PPI_CHANNELS_USED
+#define NRFX_PPI_CHANNELS_USED 0
+#endif
+
+#ifndef NRFX_PPI_GROUPS_USED
+#define NRFX_PPI_GROUPS_USED 0
+#endif
+
+#if PPI_CH_NUM > 16
+#define NRFX_PPI_ALL_APP_CHANNELS_MASK ((uint32_t)0xFFFFFFFFuL & ~(NRFX_PPI_CHANNELS_USED)) /**< All PPI channels available to the application. */
+#define NRFX_PPI_PROG_APP_CHANNELS_MASK ((uint32_t)0x000FFFFFuL & ~(NRFX_PPI_CHANNELS_USED)) /**< Programmable PPI channels available to the application. */
+#else
+#define NRFX_PPI_ALL_APP_CHANNELS_MASK ((uint32_t)0xFFF0FFFFuL & ~(NRFX_PPI_CHANNELS_USED)) /**< All PPI channels available to the application. */
+#define NRFX_PPI_PROG_APP_CHANNELS_MASK ((uint32_t)0x0000FFFFuL & ~(NRFX_PPI_CHANNELS_USED)) /**< Programmable PPI channels available to the application. */
+#endif
+
+#define NRFX_PPI_ALL_APP_GROUPS_MASK (((1uL << PPI_GROUP_NUM) - 1) & ~(NRFX_PPI_GROUPS_USED)) /**< All PPI groups available to the application. */
+
+/**
+ * @brief Function for uninitializing the PPI module.
+ *
+ * This function disables all channels and clears the channel groups.
+ */
+void nrfx_ppi_free_all(void);
+
+/**
+ * @brief Function for allocating a PPI channel.
+ * @details This function allocates the first unused PPI channel.
+ *
+ * @param[out] p_channel Pointer to the PPI channel that has been allocated.
+ *
+ * @retval NRFX_SUCCESS If the channel was successfully allocated.
+ * @retval NRFX_ERROR_NO_MEM If there is no available channel to be used.
+ */
+nrfx_err_t nrfx_ppi_channel_alloc(nrf_ppi_channel_t * p_channel);
+
+/**
+ * @brief Function for freeing a PPI channel.
+ * @details This function also disables the chosen channel.
+ *
+ * @param[in] channel PPI channel to be freed.
+ *
+ * @retval NRFX_SUCCESS If the channel was successfully freed.
+ * @retval NRFX_ERROR_INVALID_PARAM If the channel is not user-configurable.
+ */
+nrfx_err_t nrfx_ppi_channel_free(nrf_ppi_channel_t channel);
+
+/**
+ * @brief Function for assigning task and event endpoints to the PPI channel.
+ *
+ * @param[in] channel PPI channel to be assigned endpoints.
+ * @param[in] eep Event endpoint address.
+ * @param[in] tep Task endpoint address.
+ *
+ * @retval NRFX_SUCCESS If the channel was successfully assigned.
+ * @retval NRFX_ERROR_INVALID_STATE If the channel is not allocated for the user.
+ * @retval NRFX_ERROR_INVALID_PARAM If the channel is not user-configurable.
+ */
+nrfx_err_t nrfx_ppi_channel_assign(nrf_ppi_channel_t channel, uint32_t eep, uint32_t tep);
+
+/**
+ * @brief Function for assigning or clearing fork endpoint to the PPI channel.
+ *
+ * @param[in] channel PPI channel to be assigned endpoints.
+ * @param[in] fork_tep Fork task endpoint address or 0 to clear.
+ *
+ * @retval NRFX_SUCCESS If the channel was successfully assigned.
+ * @retval NRFX_ERROR_INVALID_STATE If the channel is not allocated for the user.
+ * @retval NRFX_ERROR_INVALID_PARAM If the channel is not user-configurable.
+ * @retval NRFX_ERROR_NOT_SUPPORTED If function is not supported.
+ */
+nrfx_err_t nrfx_ppi_channel_fork_assign(nrf_ppi_channel_t channel, uint32_t fork_tep);
+
+/**
+ * @brief Function for enabling a PPI channel.
+ *
+ * @param[in] channel PPI channel to be enabled.
+ *
+ * @retval NRFX_SUCCESS If the channel was successfully enabled.
+ * @retval NRFX_ERROR_INVALID_STATE If the user-configurable channel is not allocated.
+ * @retval NRFX_ERROR_INVALID_PARAM If the channel cannot be enabled by the user.
+ */
+nrfx_err_t nrfx_ppi_channel_enable(nrf_ppi_channel_t channel);
+
+/**
+ * @brief Function for disabling a PPI channel.
+ *
+ * @param[in] channel PPI channel to be disabled.
+ *
+ * @retval NRFX_SUCCESS If the channel was successfully disabled.
+ * @retval NRFX_ERROR_INVALID_STATE If the user-configurable channel is not allocated.
+ * @retval NRFX_ERROR_INVALID_PARAM If the channel cannot be disabled by the user.
+ */
+nrfx_err_t nrfx_ppi_channel_disable(nrf_ppi_channel_t channel);
+
+/**
+ * @brief Function for allocating a PPI channel group.
+ * @details This function allocates the first unused PPI group.
+ *
+ * @param[out] p_group Pointer to the PPI channel group that has been allocated.
+ *
+ * @retval NRFX_SUCCESS If the channel group was successfully allocated.
+ * @retval NRFX_ERROR_NO_MEM If there is no available channel group to be used.
+ */
+nrfx_err_t nrfx_ppi_group_alloc(nrf_ppi_channel_group_t * p_group);
+
+/**
+ * @brief Function for freeing a PPI channel group.
+ * @details This function also disables the chosen group.
+ *
+ * @param[in] group PPI channel group to be freed.
+ *
+ * @retval NRFX_SUCCESS If the channel group was successfully freed.
+ * @retval NRFX_ERROR_INVALID_PARAM If the channel group is not user-configurable.
+ */
+nrfx_err_t nrfx_ppi_group_free(nrf_ppi_channel_group_t group);
+
+/**
+ * @brief Compute a channel mask for NRF_PPI registers.
+ *
+ * @param[in] channel Channel number to transform to a mask.
+ *
+ * @retval Channel mask.
+ */
+__STATIC_INLINE uint32_t nrfx_ppi_channel_to_mask(nrf_ppi_channel_t channel)
+{
+ return (1uL << (uint32_t) channel);
+}
+
+/**
+ * @brief Function for including multiple PPI channels in a channel group.
+ *
+ * @param[in] channel_mask PPI channels to be added.
+ * @param[in] group Channel group in which to include the channels.
+ *
+ * @retval NRFX_SUCCESS If the channels was successfully included.
+ * @retval NRFX_ERROR_INVALID_PARAM If group is not an application group or channels are not an
+ * application channels.
+ * @retval NRFX_ERROR_INVALID_STATE If group is not an allocated group.
+ */
+nrfx_err_t nrfx_ppi_channels_include_in_group(uint32_t channel_mask,
+ nrf_ppi_channel_group_t group);
+
+/**
+ * @brief Function for including a PPI channel in a channel group.
+ *
+ * @param[in] channel PPI channel to be added.
+ * @param[in] group Channel group in which to include the channel.
+ *
+ * @retval NRFX_SUCCESS If the channel was successfully included.
+ * @retval NRFX_ERROR_INVALID_PARAM If group is not an application group or channel is not an
+ * application channel.
+ * @retval NRFX_ERROR_INVALID_STATE If group is not an allocated group.
+ */
+__STATIC_INLINE nrfx_err_t nrfx_ppi_channel_include_in_group(nrf_ppi_channel_t channel,
+ nrf_ppi_channel_group_t group)
+{
+ return nrfx_ppi_channels_include_in_group(nrfx_ppi_channel_to_mask(channel), group);
+}
+
+/**
+ * @brief Function for removing multiple PPI channels from a channel group.
+ *
+ * @param[in] channel_mask PPI channels to be removed.
+ * @param[in] group Channel group from which to remove the channels.
+ *
+ * @retval NRFX_SUCCESS If the channel was successfully removed.
+ * @retval NRFX_ERROR_INVALID_PARAM If group is not an application group or channels are not an
+ * application channels.
+ * @retval NRFX_ERROR_INVALID_STATE If group is not an allocated group.
+ */
+nrfx_err_t nrfx_ppi_channels_remove_from_group(uint32_t channel_mask,
+ nrf_ppi_channel_group_t group);
+
+/**
+ * @brief Function for removing a PPI channel from a channel group.
+ *
+ * @param[in] channel PPI channel to be removed.
+ * @param[in] group Channel group from which to remove the channel.
+ *
+ * @retval NRFX_SUCCESS If the channel was successfully removed.
+ * @retval NRFX_ERROR_INVALID_PARAM If group is not an application group or channel is not an
+ * application channel.
+ * @retval NRFX_ERROR_INVALID_STATE If group is not an allocated group.
+ */
+__STATIC_INLINE nrfx_err_t nrfx_ppi_channel_remove_from_group(nrf_ppi_channel_t channel,
+ nrf_ppi_channel_group_t group)
+{
+ return nrfx_ppi_channels_remove_from_group(nrfx_ppi_channel_to_mask(channel), group);
+}
+
+/**
+ * @brief Function for clearing a PPI channel group.
+ *
+ * @param[in] group Channel group to be cleared.
+ *
+ * @retval NRFX_SUCCESS If the group was successfully cleared.
+ * @retval NRFX_ERROR_INVALID_PARAM If group is not an application group.
+ * @retval NRFX_ERROR_INVALID_STATE If group is not an allocated group.
+ */
+__STATIC_INLINE nrfx_err_t nrfx_ppi_group_clear(nrf_ppi_channel_group_t group)
+{
+ return nrfx_ppi_channels_remove_from_group(NRFX_PPI_ALL_APP_CHANNELS_MASK, group);
+}
+
+/**
+ * @brief Function for enabling a PPI channel group.
+ *
+ * @param[in] group Channel group to be enabled.
+ *
+ * @retval NRFX_SUCCESS If the group was successfully enabled.
+ * @retval NRFX_ERROR_INVALID_PARAM If group is not an application group.
+ * @retval NRFX_ERROR_INVALID_STATE If group is not an allocated group.
+ */
+nrfx_err_t nrfx_ppi_group_enable(nrf_ppi_channel_group_t group);
+
+/**
+ * @brief Function for disabling a PPI channel group.
+ *
+ * @param[in] group Channel group to be disabled.
+ *
+ * @retval NRFX_SUCCESS If the group was successfully disabled.
+ * @retval NRFX_ERROR_INVALID_PARAM If group is not an application group.
+ * @retval NRFX_ERROR_INVALID_STATE If group is not an allocated group.
+ */
+nrfx_err_t nrfx_ppi_group_disable(nrf_ppi_channel_group_t group);
+
+/**
+ * @brief Function for getting the address of a PPI task.
+ *
+ * @param[in] task Task.
+ *
+ * @retval Task address.
+ */
+__STATIC_INLINE uint32_t nrfx_ppi_task_addr_get(nrf_ppi_task_t task)
+{
+ return (uint32_t) nrf_ppi_task_address_get(task);
+}
+
+/**
+ * @brief Function for getting the address of a PPI group enable task.
+ *
+ * @param[in] group PPI channel group
+ *
+ * @retval Task address.
+ */
+__STATIC_INLINE uint32_t nrfx_ppi_task_addr_group_enable_get(nrf_ppi_channel_group_t group)
+{
+ return (uint32_t) nrf_ppi_task_group_enable_address_get(group);
+}
+
+/**
+ * @brief Function for getting the address of a PPI group enable task.
+ *
+ * @param[in] group PPI channel group
+ *
+ * @retval Task address.
+ */
+__STATIC_INLINE uint32_t nrfx_ppi_task_addr_group_disable_get(nrf_ppi_channel_group_t group)
+{
+ return (uint32_t) nrf_ppi_task_group_disable_address_get(group);
+}
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_PPI_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_pwm.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_pwm.h
new file mode 100644
index 0000000..c4c15dd
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_pwm.h
@@ -0,0 +1,497 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_PWM_H__
+#define NRFX_PWM_H__
+
+#include <nrfx.h>
+#include <hal/nrf_pwm.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_pwm PWM driver
+ * @{
+ * @ingroup nrf_pwm
+ * @brief Pulse Width Modulation (PWM) peripheral driver.
+ */
+
+/**
+ * @brief PWM driver instance data structure.
+ */
+typedef struct
+{
+ NRF_PWM_Type * p_registers; ///< Pointer to the structure with PWM peripheral instance registers.
+ uint8_t drv_inst_idx; ///< Driver instance index.
+} nrfx_pwm_t;
+
+/**
+ * @brief Macro for creating a PWM driver instance.
+ */
+#define NRFX_PWM_INSTANCE(id) \
+{ \
+ .p_registers = NRFX_CONCAT_2(NRF_PWM, id), \
+ .drv_inst_idx = NRFX_CONCAT_3(NRFX_PWM, id, _INST_IDX), \
+}
+
+enum {
+#if NRFX_CHECK(NRFX_PWM0_ENABLED)
+ NRFX_PWM0_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_PWM1_ENABLED)
+ NRFX_PWM1_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_PWM2_ENABLED)
+ NRFX_PWM2_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_PWM3_ENABLED)
+ NRFX_PWM3_INST_IDX,
+#endif
+ NRFX_PWM_ENABLED_COUNT
+};
+
+/**
+ * @brief This value can be provided instead of a pin number for any channel
+ * to specify that its output is not used and therefore does not need
+ * to be connected to a pin.
+ */
+#define NRFX_PWM_PIN_NOT_USED 0xFF
+
+/**
+ * @brief This value can be added to a pin number to inverse its polarity
+ * (set idle state = 1).
+ */
+#define NRFX_PWM_PIN_INVERTED 0x80
+
+/**
+ * @brief PWM driver configuration structure.
+ */
+typedef struct
+{
+ uint8_t output_pins[NRF_PWM_CHANNEL_COUNT]; ///< Pin numbers for individual output channels (optional).
+ /**< Use @ref NRFX_PWM_PIN_NOT_USED
+ * if a given output channel is not needed. */
+ uint8_t irq_priority; ///< Interrupt priority.
+ nrf_pwm_clk_t base_clock; ///< Base clock frequency.
+ nrf_pwm_mode_t count_mode; ///< Operating mode of the pulse generator counter.
+ uint16_t top_value; ///< Value up to which the pulse generator counter counts.
+ nrf_pwm_dec_load_t load_mode; ///< Mode of loading sequence data from RAM.
+ nrf_pwm_dec_step_t step_mode; ///< Mode of advancing the active sequence.
+} nrfx_pwm_config_t;
+
+/**
+ * @brief PWM driver default configuration.
+ */
+#define NRFX_PWM_DEFAULT_CONFIG \
+{ \
+ .output_pins = { NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN, \
+ NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN, \
+ NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN, \
+ NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN }, \
+ .irq_priority = NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY, \
+ .base_clock = (nrf_pwm_clk_t)NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK, \
+ .count_mode = (nrf_pwm_mode_t)NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE, \
+ .top_value = NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE, \
+ .load_mode = (nrf_pwm_dec_load_t)NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE, \
+ .step_mode = (nrf_pwm_dec_step_t)NRFX_PWM_DEFAULT_CONFIG_STEP_MODE, \
+}
+
+
+/**
+ * @brief PWM flags providing additional playback options.
+ */
+typedef enum
+{
+ NRFX_PWM_FLAG_STOP = 0x01, /**< When the requested playback is finished,
+ the peripheral should be stopped.
+ @note The STOP task is triggered when
+ the last value of the final sequence is
+ loaded from RAM, and the peripheral stops
+ at the end of the current PWM period.
+ For sequences with configured repeating
+ of duty cycle values, this might result in
+ less than the requested number of repeats
+ of the last value. */
+ NRFX_PWM_FLAG_LOOP = 0x02, /**< When the requested playback is finished,
+ it should be started from the beginning.
+ This flag is ignored if used together
+ with @ref NRFX_PWM_FLAG_STOP.
+ @note The playback restart is done via a
+ shortcut configured in the PWM peripheral.
+ This shortcut triggers the proper starting
+ task when the final value of previous
+ playback is read from RAM and applied to
+ the pulse generator counter.
+ When this mechanism is used together with
+ the @ref NRF_PWM_STEP_TRIGGERED mode,
+ the playback restart will occur right
+ after switching to the final value (this
+ final value will be played only once). */
+ NRFX_PWM_FLAG_SIGNAL_END_SEQ0 = 0x04, /**< The event handler should be
+ called when the last value
+ from sequence 0 is loaded. */
+ NRFX_PWM_FLAG_SIGNAL_END_SEQ1 = 0x08, /**< The event handler should be
+ called when the last value
+ from sequence 1 is loaded. */
+ NRFX_PWM_FLAG_NO_EVT_FINISHED = 0x10, /**< The playback finished event
+ (enabled by default) should be
+ suppressed. */
+ NRFX_PWM_FLAG_START_VIA_TASK = 0x80, /**< The playback should not be
+ started directly by the called
+ function. Instead, the function
+ should only prepare it and
+ return the address of the task
+ to be triggered to start the
+ playback. */
+} nrfx_pwm_flag_t;
+
+
+/**
+ * @brief PWM driver event type.
+ */
+typedef enum
+{
+ NRFX_PWM_EVT_FINISHED, ///< Sequence playback finished.
+ NRFX_PWM_EVT_END_SEQ0, /**< End of sequence 0 reached. Its data can be
+ safely modified now. */
+ NRFX_PWM_EVT_END_SEQ1, /**< End of sequence 1 reached. Its data can be
+ safely modified now. */
+ NRFX_PWM_EVT_STOPPED, ///< The PWM peripheral has been stopped.
+} nrfx_pwm_evt_type_t;
+
+/**
+ * @brief PWM driver event handler type.
+ */
+typedef void (* nrfx_pwm_handler_t)(nrfx_pwm_evt_type_t event_type);
+
+
+/**
+ * @brief Function for initializing the PWM driver.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ *
+ * @param[in] handler Event handler provided by the user. If NULL is passed
+ * instead, event notifications are not done and PWM
+ * interrupts are disabled.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver was already initialized.
+ */
+nrfx_err_t nrfx_pwm_init(nrfx_pwm_t const * const p_instance,
+ nrfx_pwm_config_t const * p_config,
+ nrfx_pwm_handler_t handler);
+
+/**
+ * @brief Function for uninitializing the PWM driver.
+ *
+ * If any sequence playback is in progress, it is stopped immediately.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_pwm_uninit(nrfx_pwm_t const * const p_instance);
+
+/**
+ * @brief Function for starting a single sequence playback.
+ *
+ * To take advantage of the looping mechanism in the PWM peripheral, both
+ * sequences must be used (single sequence can be played back only once by
+ * the peripheral). Therefore, the provided sequence is internally set and
+ * played back as both sequence 0 and sequence 1. Consequently, if end of
+ * sequence notifications are required, events for both sequences should be
+ * used (that means that both the @ref NRFX_PWM_FLAG_SIGNAL_END_SEQ0 flag
+ * and the @ref NRFX_PWM_FLAG_SIGNAL_END_SEQ1 flag should be specified and
+ * the @ref NRFX_PWM_EVT_END_SEQ0 event and the @ref NRFX_PWM_EVT_END_SEQ1
+ * event should be handled in the same way).
+ *
+ * Use the @ref NRFX_PWM_FLAG_START_VIA_TASK flag if you want the playback
+ * to be only prepared by this function, and you want to start it later by
+ * triggering a task (using PPI for instance). The function will then return
+ * the address of the task to be triggered.
+ *
+ * @note The array containing the duty cycle values for the specified sequence
+ * must be in RAM and cannot be allocated on stack.
+ * For detailed information, see @ref nrf_pwm_sequence_t.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_sequence Sequence to be played back.
+ * @param[in] playback_count Number of playbacks to be performed (must not be 0).
+ * @param[in] flags Additional options. Pass any combination of
+ * @ref nrfx_pwm_flag_t "playback flags", or 0
+ * for default settings.
+ *
+ * @return Address of the task to be triggered to start the playback if the @ref
+ * NRFX_PWM_FLAG_START_VIA_TASK flag was used, 0 otherwise.
+ */
+uint32_t nrfx_pwm_simple_playback(nrfx_pwm_t const * const p_instance,
+ nrf_pwm_sequence_t const * p_sequence,
+ uint16_t playback_count,
+ uint32_t flags);
+
+/**
+ * @brief Function for starting a two-sequence playback.
+ *
+ * Use the @ref NRFX_PWM_FLAG_START_VIA_TASK flag if you want the playback
+ * to be only prepared by this function, and you want to start it later by
+ * triggering a task (using PPI for instance). The function will then return
+ * the address of the task to be triggered.
+ *
+ * @note The array containing the duty cycle values for the specified sequence
+ * must be in RAM and cannot be allocated on stack.
+ * For detailed information, see @ref nrf_pwm_sequence_t.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_sequence_0 First sequence to be played back.
+ * @param[in] p_sequence_1 Second sequence to be played back.
+ * @param[in] playback_count Number of playbacks to be performed (must not be 0).
+ * @param[in] flags Additional options. Pass any combination of
+ * @ref nrfx_pwm_flag_t "playback flags", or 0
+ * for default settings.
+ *
+ * @return Address of the task to be triggered to start the playback if the @ref
+ * NRFX_PWM_FLAG_START_VIA_TASK flag was used, 0 otherwise.
+ */
+uint32_t nrfx_pwm_complex_playback(nrfx_pwm_t const * const p_instance,
+ nrf_pwm_sequence_t const * p_sequence_0,
+ nrf_pwm_sequence_t const * p_sequence_1,
+ uint16_t playback_count,
+ uint32_t flags);
+
+/**
+ * @brief Function for advancing the active sequence.
+ *
+ * This function only applies to @ref NRF_PWM_STEP_TRIGGERED mode.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+__STATIC_INLINE void nrfx_pwm_step(nrfx_pwm_t const * const p_instance);
+
+/**
+ * @brief Function for stopping the sequence playback.
+ *
+ * The playback is stopped at the end of the current PWM period.
+ * This means that if the active sequence is configured to repeat each duty
+ * cycle value for a certain number of PWM periods, the last played value
+ * might appear on the output less times than requested.
+ *
+ * @note This function can be instructed to wait until the playback is stopped
+ * (by setting @p wait_until_stopped to true). Note that, depending on
+ * the length of the PMW period, this might take a significant amount of
+ * time. Alternatively, the @ref nrfx_pwm_is_stopped function can be
+ * used to poll the status, or the @ref NRFX_PWM_EVT_STOPPED event can
+ * be used to get the notification when the playback is stopped, provided
+ * the event handler is defined.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] wait_until_stopped If true, the function will not return until
+ * the playback is stopped.
+ *
+ * @retval true If the PWM peripheral is stopped.
+ * @retval false If the PWM peripheral is not stopped.
+ */
+bool nrfx_pwm_stop(nrfx_pwm_t const * const p_instance,
+ bool wait_until_stopped);
+
+/**
+ * @brief Function for checking the status of the PWM peripheral.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval true If the PWM peripheral is stopped.
+ * @retval false If the PWM peripheral is not stopped.
+ */
+bool nrfx_pwm_is_stopped(nrfx_pwm_t const * const p_instance);
+
+/**
+ * @brief Function for updating the sequence data during playback.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] seq_id Identifier of the sequence (0 or 1).
+ * @param[in] p_sequence Pointer to the new sequence definition.
+ */
+__STATIC_INLINE void nrfx_pwm_sequence_update(
+ nrfx_pwm_t const * const p_instance,
+ uint8_t seq_id,
+ nrf_pwm_sequence_t const * p_sequence);
+
+/**
+ * @brief Function for updating the pointer to the duty cycle values
+ * in the specified sequence during playback.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] seq_id Identifier of the sequence (0 or 1).
+ * @param[in] values New pointer to the duty cycle values.
+ */
+__STATIC_INLINE void nrfx_pwm_sequence_values_update(nrfx_pwm_t const * const p_instance,
+ uint8_t seq_id,
+ nrf_pwm_values_t values);
+
+/**
+ * @brief Function for updating the number of duty cycle values
+ * in the specified sequence during playback.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] seq_id Identifier of the sequence (0 or 1).
+ * @param[in] length New number of the duty cycle values.
+ */
+__STATIC_INLINE void nrfx_pwm_sequence_length_update(nrfx_pwm_t const * const p_instance,
+ uint8_t seq_id,
+ uint16_t length);
+
+/**
+ * @brief Function for updating the number of repeats for duty cycle values
+ * in specified sequence during playback.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] seq_id Identifier of the sequence (0 or 1).
+ * @param[in] repeats New number of repeats.
+ */
+__STATIC_INLINE void nrfx_pwm_sequence_repeats_update(nrfx_pwm_t const * const p_instance,
+ uint8_t seq_id,
+ uint32_t repeats);
+
+/**
+ * @brief Function for updating the additional delay after the specified
+ * sequence during playback.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] seq_id Identifier of the sequence (0 or 1).
+ * @param[in] end_delay New end delay value (in PWM periods).
+ */
+__STATIC_INLINE void nrfx_pwm_sequence_end_delay_update(nrfx_pwm_t const * const p_instance,
+ uint8_t seq_id,
+ uint32_t end_delay);
+
+/**
+ * @brief Function for returning the address of a specified PWM task that can
+ * be used in PPI module.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] task Requested task.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrfx_pwm_task_address_get(nrfx_pwm_t const * const p_instance,
+ nrf_pwm_task_t task);
+
+/**@brief Function for returning the address of a specified PWM event that can
+ * be used in PPI module.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] event Requested event.
+ *
+ * @return Event address.
+ */
+__STATIC_INLINE uint32_t nrfx_pwm_event_address_get(nrfx_pwm_t const * const p_instance,
+ nrf_pwm_event_t event);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrfx_pwm_step(nrfx_pwm_t const * const p_instance)
+{
+ nrf_pwm_task_trigger(p_instance->p_registers, NRF_PWM_TASK_NEXTSTEP);
+}
+
+__STATIC_INLINE void nrfx_pwm_sequence_update(nrfx_pwm_t const * const p_instance,
+ uint8_t seq_id,
+ nrf_pwm_sequence_t const * p_sequence)
+{
+ nrf_pwm_sequence_set(p_instance->p_registers, seq_id, p_sequence);
+}
+
+__STATIC_INLINE void nrfx_pwm_sequence_values_update(nrfx_pwm_t const * const p_instance,
+ uint8_t seq_id,
+ nrf_pwm_values_t values)
+{
+ nrf_pwm_seq_ptr_set(p_instance->p_registers, seq_id, values.p_raw);
+}
+
+__STATIC_INLINE void nrfx_pwm_sequence_length_update(nrfx_pwm_t const * const p_instance,
+ uint8_t seq_id,
+ uint16_t length)
+{
+ nrf_pwm_seq_cnt_set(p_instance->p_registers, seq_id, length);
+}
+
+__STATIC_INLINE void nrfx_pwm_sequence_repeats_update(nrfx_pwm_t const * const p_instance,
+ uint8_t seq_id,
+ uint32_t repeats)
+{
+ nrf_pwm_seq_refresh_set(p_instance->p_registers, seq_id, repeats);
+}
+
+__STATIC_INLINE void nrfx_pwm_sequence_end_delay_update(nrfx_pwm_t const * const p_instance,
+ uint8_t seq_id,
+ uint32_t end_delay)
+{
+ nrf_pwm_seq_end_delay_set(p_instance->p_registers, seq_id, end_delay);
+}
+
+__STATIC_INLINE uint32_t nrfx_pwm_task_address_get(nrfx_pwm_t const * const p_instance,
+ nrf_pwm_task_t task)
+{
+ return nrf_pwm_task_address_get(p_instance->p_registers, task);
+}
+
+__STATIC_INLINE uint32_t nrfx_pwm_event_address_get(nrfx_pwm_t const * const p_instance,
+ nrf_pwm_event_t event)
+{
+ return nrf_pwm_event_address_get(p_instance->p_registers, event);
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+
+void nrfx_pwm_0_irq_handler(void);
+void nrfx_pwm_1_irq_handler(void);
+void nrfx_pwm_2_irq_handler(void);
+void nrfx_pwm_3_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_PWM_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_qdec.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_qdec.h
new file mode 100644
index 0000000..9f636d5
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_qdec.h
@@ -0,0 +1,186 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_QDEC_H__
+#define NRFX_QDEC_H__
+
+#include <nrfx.h>
+#include <hal/nrf_qdec.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_qdec QDEC driver
+ * @{
+ * @ingroup nrf_qdec
+ * @brief Quadrature Decoder (QDEC) peripheral driver.
+ */
+
+/**@brief QDEC configuration structure.*/
+typedef struct
+{
+ nrf_qdec_reportper_t reportper; /**< Report period in samples. */
+ nrf_qdec_sampleper_t sampleper; /**< Sampling period in microseconds. */
+ uint32_t psela; /**< Pin number for A input. */
+ uint32_t pselb; /**< Pin number for B input. */
+ uint32_t pselled; /**< Pin number for LED output. */
+ uint32_t ledpre; /**< Time (in microseconds) how long LED is switched on before sampling. */
+ nrf_qdec_ledpol_t ledpol; /**< Active LED polarity. */
+ bool dbfen; /**< State of debouncing filter. */
+ bool sample_inten; /**< Enabling sample ready interrupt. */
+ uint8_t interrupt_priority; /**< QDEC interrupt priority. */
+} nrfx_qdec_config_t;
+
+/**@brief QDEC default configuration. */
+#define NRFX_QDEC_DEFAULT_CONFIG \
+ { \
+ .reportper = (nrf_qdec_reportper_t)NRFX_QDEC_CONFIG_REPORTPER, \
+ .sampleper = (nrf_qdec_sampleper_t)NRFX_QDEC_CONFIG_SAMPLEPER, \
+ .psela = NRFX_QDEC_CONFIG_PIO_A, \
+ .pselb = NRFX_QDEC_CONFIG_PIO_B, \
+ .pselled = NRFX_QDEC_CONFIG_PIO_LED, \
+ .ledpre = NRFX_QDEC_CONFIG_LEDPRE, \
+ .ledpol = (nrf_qdec_ledpol_t)NRFX_QDEC_CONFIG_LEDPOL, \
+ .interrupt_priority = NRFX_QDEC_CONFIG_IRQ_PRIORITY, \
+ .dbfen = NRFX_QDEC_CONFIG_DBFEN, \
+ .sample_inten = NRFX_QDEC_CONFIG_SAMPLE_INTEN \
+ }
+
+/**@brief QDEC sample event data.*/
+typedef struct
+{
+ int8_t value; /**< Sample value. */
+} nrfx_qdec_sample_data_evt_t;
+
+/**@brief QDEC report event data.*/
+typedef struct
+{
+ int16_t acc; /**< Accumulated transitions. */
+ uint16_t accdbl; /**< Accumulated double transitions. */
+} nrfx_qdec_report_data_evt_t;
+
+/**@brief QDEC event handler structure. */
+typedef struct
+{
+ nrf_qdec_event_t type;
+ union
+ {
+ nrfx_qdec_sample_data_evt_t sample; /**< Sample event data. */
+ nrfx_qdec_report_data_evt_t report; /**< Report event data. */
+ } data;
+} nrfx_qdec_event_t;
+
+/**@brief QDEC event handler.
+ * @param[in] event QDEC event structure.
+ */
+typedef void (*nrfx_qdec_event_handler_t)(nrfx_qdec_event_t event);
+
+/**@brief Function for initializing QDEC.
+ *
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] event_handler Event handler provided by the user.
+ * Must not be NULL.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If QDEC was already initialized.
+ */
+nrfx_err_t nrfx_qdec_init(nrfx_qdec_config_t const * p_config,
+ nrfx_qdec_event_handler_t event_handler);
+
+/**@brief Function for uninitializing QDEC.
+ * @note Function asserts if module is uninitialized.
+ */
+void nrfx_qdec_uninit(void);
+
+/**@brief Function for enabling QDEC.
+ * @note Function asserts if module is uninitialized or enabled.
+ */
+void nrfx_qdec_enable(void);
+
+/**@brief Function for disabling QDEC.
+ * @note Function asserts if module is uninitialized or disabled.
+ */
+void nrfx_qdec_disable(void);
+
+/**@brief Function for reading accumulated transitions QDEC.
+ * @note Function asserts if module is not enabled.
+ * @note Accumulators are cleared after reading.
+ *
+ * @param[out] p_acc Pointer to store accumulated transitions.
+ * @param[out] p_accdbl Pointer to store accumulated double transitions.
+ */
+void nrfx_qdec_accumulators_read(int16_t * p_acc, int16_t * p_accdbl);
+
+/**
+ * @brief Function for returning the address of a specific QDEC task.
+ *
+ * @param task QDEC task.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrfx_qdec_task_address_get(nrf_qdec_task_t task)
+{
+ return (uint32_t)nrf_qdec_task_address_get(task);
+}
+
+/**
+ * @brief Function for returning the address of a specific QDEC event.
+ *
+ * @param event QDEC event.
+ *
+ * @return Event address.
+ */
+__STATIC_INLINE uint32_t nrfx_qdec_event_address_get(nrf_qdec_event_t event)
+{
+ return (uint32_t)nrf_qdec_event_address_get(event);
+}
+
+
+void nrfx_qdec_irq_handler(void);
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_QDEC_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_qspi.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_qspi.h
new file mode 100644
index 0000000..6f19f10
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_qspi.h
@@ -0,0 +1,297 @@
+/**
+ * Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_QSPI_H__
+#define NRFX_QSPI_H__
+
+#include <nrfx.h>
+#include <hal/nrf_qspi.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_qspi QSPI driver
+ * @{
+ * @ingroup nrf_qspi
+ * @brief Quad Serial Peripheral Interface (QSPI) peripheral driver.
+ */
+
+/**
+ * @brief QSPI driver instance configuration structure.
+ */
+typedef struct
+{
+ uint32_t xip_offset; /**< Address offset into the external memory for Execute in Place operation. */
+ nrf_qspi_pins_t pins; /**< Pins configuration structure. */
+ nrf_qspi_prot_conf_t prot_if; /**< Protocol layer interface configuration structure. */
+ nrf_qspi_phy_conf_t phy_if; /**< Physical layer interface configuration structure. */
+ uint8_t irq_priority; /**< Interrupt priority. */
+} nrfx_qspi_config_t;
+
+/**
+ * @brief QSPI instance default configuration.
+ */
+#define NRFX_QSPI_DEFAULT_CONFIG \
+{ \
+ .xip_offset = NRFX_QSPI_CONFIG_XIP_OFFSET, \
+ .pins = { \
+ .sck_pin = NRFX_QSPI_PIN_SCK, \
+ .csn_pin = NRFX_QSPI_PIN_CSN, \
+ .io0_pin = NRFX_QSPI_PIN_IO0, \
+ .io1_pin = NRFX_QSPI_PIN_IO1, \
+ .io2_pin = NRFX_QSPI_PIN_IO2, \
+ .io3_pin = NRFX_QSPI_PIN_IO3, \
+ }, \
+ .irq_priority = (uint8_t)NRFX_QSPI_CONFIG_IRQ_PRIORITY, \
+ .prot_if = { \
+ .readoc = (nrf_qspi_readoc_t)NRFX_QSPI_CONFIG_READOC, \
+ .writeoc = (nrf_qspi_writeoc_t)NRFX_QSPI_CONFIG_WRITEOC, \
+ .addrmode = (nrf_qspi_addrmode_t)NRFX_QSPI_CONFIG_ADDRMODE, \
+ .dpmconfig = false, \
+ }, \
+ .phy_if = { \
+ .sck_freq = (nrf_qspi_frequency_t)NRFX_QSPI_CONFIG_FREQUENCY, \
+ .sck_delay = (uint8_t)NRFX_QSPI_CONFIG_SCK_DELAY, \
+ .spi_mode = (nrf_qspi_spi_mode_t)NRFX_QSPI_CONFIG_MODE, \
+ .dpmen = false \
+ }, \
+}
+
+/**
+ * @brief QSPI custom instruction helper with default configuration.
+ */
+#define NRFX_QSPI_DEFAULT_CINSTR(opc, len) \
+{ \
+ .opcode = (opc), \
+ .length = (len), \
+ .io2_level = false, \
+ .io3_level = false, \
+ .wipwait = false, \
+ .wren = false \
+}
+
+/**
+ * @brief QSPI master driver event types, passed to the handler routine provided
+ * during initialization.
+ */
+typedef enum
+{
+ NRFX_QSPI_EVENT_DONE, /**< Transfer done. */
+} nrfx_qspi_evt_t;
+
+/**
+ * @brief QSPI driver event handler type.
+ */
+typedef void (*nrfx_qspi_handler_t)(nrfx_qspi_evt_t event, void * p_context);
+
+/**
+ * @brief Function for initializing the QSPI driver instance.
+ *
+ * This function configures the peripheral and its interrupts and activates it. During the
+ * activation process, the internal clocks are started and the QSPI peripheral tries to read
+ * the status byte to read the busy bit. Reading the status byte is done in a simple poll and wait
+ * mechanism.
+ * If the busy bit is 1, this indicates issues with the external memory device. As a result,
+ * @ref nrfx_qspi_init returns NRFX_ERROR_TIMEOUT.
+ *
+ * In case of issues:
+ * - Check the connection.
+ * - Make sure that the memory device does not perform other operations like erasing or writing.
+ * - Check if there is a short circuit.
+ *
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] handler Event handler provided by the user. If NULL, transfers
+ * will be performed in blocking mode.
+ * @param[in] p_context Pointer to context. Use in interrupt handler.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_TIMEOUT If the peripheral cannot connect with external memory.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver was already initialized.
+ * @retval NRFX_ERROR_INVALID_PARAM If the pin configuration was incorrect.
+ */
+nrfx_err_t nrfx_qspi_init(nrfx_qspi_config_t const * p_config,
+ nrfx_qspi_handler_t handler,
+ void * p_context);
+
+/**
+ * @brief Function for uninitializing the QSPI driver instance.
+ */
+void nrfx_qspi_uninit(void);
+
+/**
+ * @brief Function for reading data from QSPI memory.
+ *
+ * Write, read, and erase operations check memory device busy state before starting the operation.
+ * If the memory is busy, the resulting action depends on the mode in which the read operation is used:
+ * - blocking mode (without handler) - a delay occurs until the last operation still runs and
+ * until operation data is still being read.
+ * - interrupt mode (with handler) - event emission occurs after the last operation
+ * and reading of data are finished.
+ *
+ * @param[out] p_rx_buffer Pointer to the receive buffer.
+ * @param[in] rx_buffer_length Size of the data to read.
+ * @param[in] src_address Address in memory to read from.
+ *
+ * @retval NRFX_SUCCESS If the operation was successful (blocking mode) or operation
+ * was commissioned (handler mode).
+ * @retval NRFX_ERROR_BUSY If the driver currently handles another operation.
+ * @retval NRFX_ERROR_INVALID_ADDR If the provided buffer is not placed in the Data RAM region.
+ */
+nrfx_err_t nrfx_qspi_read(void * p_rx_buffer,
+ size_t rx_buffer_length,
+ uint32_t src_address);
+
+/**
+ * @brief Function for writing data to QSPI memory.
+ *
+ * Write, read, and erase operations check memory device busy state before starting the operation.
+ * If the memory is busy, the resulting action depends on the mode in which the write operation is used:
+ * - blocking mode (without handler) - a delay occurs until the last operation still runs and
+ * until operation data is still being sent.
+ * - interrupt mode (with handler) - event emission occurs after the last operation
+ * and sending of operation data are finished.
+ * To manually control operation execution in the memory device, use @ref nrfx_qspi_mem_busy_check
+ * after executing the write function.
+ * Remember that an incoming event signalizes only that data was sent to the memory device and the periheral
+ * before the write operation checked if memory was busy.
+ *
+ * @param[in] p_tx_buffer Pointer to the writing buffer.
+ * @param[in] tx_buffer_length Size of the data to write.
+ * @param[in] dst_address Address in memory to write to.
+ *
+ * @retval NRFX_SUCCESS If the operation was successful (blocking mode) or operation
+ * was commissioned (handler mode).
+ * @retval NRFX_ERROR_BUSY If the driver currently handles other operation.
+ * @retval NRFX_ERROR_INVALID_ADDR If the provided buffer is not placed in the Data RAM region.
+ */
+nrfx_err_t nrfx_qspi_write(void const * p_tx_buffer,
+ size_t tx_buffer_length,
+ uint32_t dst_address);
+
+/**
+ * @brief Function for starting erasing of one memory block - 4KB, 64KB, or the whole chip.
+ *
+ * Write, read, and erase operations check memory device busy state before starting the operation.
+ * If the memory is busy, the resulting action depends on the mode in which the erase operation is used:
+ * - blocking mode (without handler) - a delay occurs until the last operation still runs and
+ * until operation data is still being sent.
+ * - interrupt mode (with handler) - event emission occurs after the last operation
+ * and sending of operation data are finished.
+ * To manually control operation execution in the memory device, use @ref nrfx_qspi_mem_busy_check
+ * after executing the erase function.
+ * Remember that an incoming event signalizes only that data was sent to the memory device and the periheral
+ * before the erase operation checked if memory was busy.
+ *
+ * @param[in] length Size of data to erase. See @ref nrf_qspi_erase_len_t.
+ * @param[in] start_address Memory address to start erasing. If chip erase is performed, address
+ * field is ommited.
+ *
+ * @retval NRFX_SUCCESS If the operation was successful (blocking mode) or operation
+ * was commissioned (handler mode).
+ * @retval NRFX_ERROR_BUSY If the driver currently handles another operation.
+ */
+nrfx_err_t nrfx_qspi_erase(nrf_qspi_erase_len_t length,
+ uint32_t start_address);
+
+/**
+ * @brief Function for starting an erase operation of the whole chip.
+ *
+ * @retval NRFX_SUCCESS If the operation was successful (blocking mode) or operation
+ * was commissioned (handler mode).
+ * @retval NRFX_ERROR_BUSY If the driver currently handles another operation.
+ */
+nrfx_err_t nrfx_qspi_chip_erase(void);
+
+/**
+ * @brief Function for getting the current driver status and status byte of memory device with
+ * testing WIP (write in progress) bit.
+ *
+ * @retval NRFX_SUCCESS If the driver and memory are ready to handle a new operation.
+ * @retval NRFX_ERROR_BUSY If the driver or memory currently handle another operation.
+ */
+nrfx_err_t nrfx_qspi_mem_busy_check(void);
+
+/**
+ * @brief Function for sending operation code, sending data, and receiving data from the memory device.
+ *
+ * Use this function to transfer configuration data to memory and to receive data from memory.
+ * Pointers can be addresses from flash memory.
+ * This function is a synchronous function and should be used only if necessary.
+ *
+ * @param[in] p_config Pointer to the structure with opcode and transfer configuration.
+ * @param[in] p_tx_buffer Pointer to the array with data to send. Can be NULL if only opcode is transmitted.
+ * @param[out] p_rx_buffer Pointer to the array for data to receive. Can be NULL if there is nothing to receive.
+ *
+ * @retval NRFX_SUCCESS If the operation was successful.
+ * @retval NRFX_ERROR_TIMEOUT If the external memory is busy or there are connection issues.
+ * @retval NRFX_ERROR_BUSY If the driver currently handles other operation.
+ */
+nrfx_err_t nrfx_qspi_cinstr_xfer(nrf_qspi_cinstr_conf_t const * p_config,
+ void const * p_tx_buffer,
+ void * p_rx_buffer);
+/**
+ * @brief Function for sending operation code and data to the memory device with simpler configuration.
+ *
+ * Use this function to transfer configuration data to memory and to receive data from memory.
+ * This function is a synchronous function and should be used only if necessary.
+ *
+ * @param[in] opcode Operation code. Sending first.
+ * @param[in] length Length of the data to send and opcode. See @ref nrf_qspi_cinstr_len_t.
+ * @param[in] p_tx_buffer Pointer to input data array.
+ *
+ * @retval NRFX_SUCCESS If the operation was successful.
+ * @retval NRFX_ERROR_BUSY If the driver currently handles another operation.
+ */
+nrfx_err_t nrfx_qspi_cinstr_quick_send(uint8_t opcode,
+ nrf_qspi_cinstr_len_t length,
+ void const * p_tx_buffer);
+
+
+void nrfx_qspi_irq_handler(void);
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_QSPI_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_rng.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_rng.h
new file mode 100644
index 0000000..431f872
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_rng.h
@@ -0,0 +1,126 @@
+/**
+ * Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+#ifndef NRFX_RNG_H__
+#define NRFX_RNG_H__
+
+#include <nrfx.h>
+#include <hal/nrf_rng.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_rng RNG driver
+ * @{
+ * @ingroup nrf_rng
+ * @brief Random Number Generator (RNG) peripheral driver.
+ */
+
+/**
+ * @brief Struct for RNG configuration.
+ */
+typedef struct
+{
+ bool error_correction : 1; /**< Error correction flag. */
+ uint8_t interrupt_priority; /**< interrupt priority */
+} nrfx_rng_config_t;
+
+/**
+ * @brief RNG default configuration.
+ * Basic usage:
+ * @code
+ * nrfx_rng_config_t config = NRFX_RNG_DEFAULT_CONFIG;
+ * if (nrfx_rng_init(&config, handler)
+ * { ...
+ * @endcode
+ */
+#define NRFX_RNG_DEFAULT_CONFIG \
+ { \
+ .error_correction = NRFX_RNG_CONFIG_ERROR_CORRECTION, \
+ .interrupt_priority = NRFX_RNG_CONFIG_IRQ_PRIORITY, \
+ }
+
+/**
+ * @brief RNG driver event handler type.
+ */
+typedef void (* nrfx_rng_evt_handler_t)(uint8_t rng_data);
+
+/**
+ * @brief Function for initializing the nrfx_rng module.
+ *
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] handler Event handler provided by the user. Must not be NULL.
+ *
+ * @retval NRFX_SUCCESS Driver was successfully initialized.
+ * @retval NRFX_ERROR_ALREADY_INITIALIZED Driver was already initialized.
+ */
+nrfx_err_t nrfx_rng_init(nrfx_rng_config_t const * p_config, nrfx_rng_evt_handler_t handler);
+
+/**
+ * @brief Function for starting the random value generation.
+ *
+ * Function enables interrupts in perihperal and start them.
+ */
+void nrfx_rng_start(void);
+
+/**
+ * @brief Function for stoping the random value generation.
+ *
+ * Function disables interrupts in perihperal and stop generation of new random values.
+ */
+void nrfx_rng_stop(void);
+
+/**
+ * @brief Function for uninitializing the nrfx_rng module.
+ */
+void nrfx_rng_uninit(void);
+
+
+void nrfx_rng_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_RNG_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_rtc.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_rtc.h
new file mode 100644
index 0000000..aec1b7d
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_rtc.h
@@ -0,0 +1,369 @@
+/**
+ * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_RTC_H__
+#define NRFX_RTC_H__
+
+#include <nrfx.h>
+#include <hal/nrf_rtc.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_rtc RTC driver
+ * @{
+ * @ingroup nrf_rtc
+ * @brief Real Timer Counter (RTC) peripheral driver.
+ */
+
+/**@brief Macro to convert microseconds into ticks. */
+#define NRFX_RTC_US_TO_TICKS(us,freq) (((us) * (freq)) / 1000000U)
+
+/**@brief RTC driver interrupt types. */
+typedef enum
+{
+ NRFX_RTC_INT_COMPARE0 = 0, /**< Interrupt from COMPARE0 event. */
+ NRFX_RTC_INT_COMPARE1 = 1, /**< Interrupt from COMPARE1 event. */
+ NRFX_RTC_INT_COMPARE2 = 2, /**< Interrupt from COMPARE2 event. */
+ NRFX_RTC_INT_COMPARE3 = 3, /**< Interrupt from COMPARE3 event. */
+ NRFX_RTC_INT_TICK = 4, /**< Interrupt from TICK event. */
+ NRFX_RTC_INT_OVERFLOW = 5 /**< Interrupt from OVERFLOW event. */
+} nrfx_rtc_int_type_t;
+
+/**@brief RTC driver instance structure. */
+typedef struct
+{
+ NRF_RTC_Type * p_reg; /**< Pointer to instance register set. */
+ IRQn_Type irq; /**< Instance IRQ ID. */
+ uint8_t instance_id; /**< Instance index. */
+ uint8_t cc_channel_count; /**< Number of capture/compare channels. */
+} nrfx_rtc_t;
+
+/**@brief Macro for creating RTC driver instance.*/
+#define NRFX_RTC_INSTANCE(id) \
+{ \
+ .p_reg = NRFX_CONCAT_2(NRF_RTC, id), \
+ .irq = NRFX_CONCAT_3(RTC, id, _IRQn), \
+ .instance_id = NRFX_CONCAT_3(NRFX_RTC, id, _INST_IDX), \
+ .cc_channel_count = NRF_RTC_CC_CHANNEL_COUNT(id), \
+}
+
+enum {
+#if NRFX_CHECK(NRFX_RTC0_ENABLED)
+ NRFX_RTC0_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_RTC1_ENABLED)
+ NRFX_RTC1_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_RTC2_ENABLED)
+ NRFX_RTC2_INST_IDX,
+#endif
+ NRFX_RTC_ENABLED_COUNT
+};
+
+/**@brief RTC driver instance configuration structure. */
+typedef struct
+{
+ uint16_t prescaler; /**< Prescaler. */
+ uint8_t interrupt_priority; /**< Interrupt priority. */
+ uint8_t tick_latency; /**< Maximum length of interrupt handler in ticks (max 7.7 ms). */
+ bool reliable; /**< Reliable mode flag. */
+} nrfx_rtc_config_t;
+
+/**@brief RTC instance default configuration. */
+#define NRFX_RTC_DEFAULT_CONFIG \
+{ \
+ .prescaler = RTC_FREQ_TO_PRESCALER(NRFX_RTC_DEFAULT_CONFIG_FREQUENCY), \
+ .interrupt_priority = NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY, \
+ .reliable = NRFX_RTC_DEFAULT_CONFIG_RELIABLE, \
+ .tick_latency = NRFX_RTC_US_TO_TICKS(NRFX_RTC_MAXIMUM_LATENCY_US, \
+ NRFX_RTC_DEFAULT_CONFIG_FREQUENCY), \
+}
+
+/**@brief RTC driver instance handler type. */
+typedef void (*nrfx_rtc_handler_t)(nrfx_rtc_int_type_t int_type);
+
+/**@brief Function for initializing the RTC driver instance.
+ *
+ * After initialization, the instance is in power off state.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] handler Event handler provided by the user.
+ * Must not be NULL.
+ *
+ * @retval NRFX_SUCCESS If successfully initialized.
+ * @retval NRFX_ERROR_INVALID_STATE If the instance is already initialized.
+ */
+nrfx_err_t nrfx_rtc_init(nrfx_rtc_t const * const p_instance,
+ nrfx_rtc_config_t const * p_config,
+ nrfx_rtc_handler_t handler);
+
+/**@brief Function for uninitializing the RTC driver instance.
+ *
+ * After uninitialization, the instance is in idle state. The hardware should return to the state
+ * before initialization. The function asserts if the instance is in idle state.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_rtc_uninit(nrfx_rtc_t const * const p_instance);
+
+/**@brief Function for enabling the RTC driver instance.
+ *
+ * @note Function asserts if instance is enabled.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_rtc_enable(nrfx_rtc_t const * const p_instance);
+
+/**@brief Function for disabling the RTC driver instance.
+ *
+ * @note Function asserts if instance is disabled.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_rtc_disable(nrfx_rtc_t const * const p_instance);
+
+/**@brief Function for setting a compare channel.
+ *
+ * The function asserts if the instance is not initialized or if the channel parameter is
+ * wrong. The function powers on the instance if the instance was in power off state.
+ *
+ * The driver is not entering a critical section when configuring RTC, which means that it can be
+ * preempted for a certain amount of time. When the driver was preempted and the value to be set
+ * is short in time, there is a risk that the driver sets a compare value that is
+ * behind. If RTCn_CONFIG_RELIABLE is 1 for the given instance, the Reliable mode handles that case.
+ * However, to detect if the requested value is behind, this mode makes the following assumptions:
+ * - The maximum preemption time in ticks (8 - bit value) is known and is less than 7.7 ms
+ * (for prescaler = 0, RTC frequency 32 kHz).
+ * - The requested absolute compare value is not bigger than (0x00FFFFFF) - tick_latency. It is
+ * the user's responsibility to ensure that.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] channel One of the instance's channels.
+ * @param[in] val Absolute value to be set in the compare register.
+ * @param[in] enable_irq True to enable the interrupt. False to disable the interrupt.
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_TIMEOUT If the compare was not set because the request value is behind the current counter
+ * value. This error can only be reported if RTCn_CONFIG_RELIABLE = 1.
+ */
+nrfx_err_t nrfx_rtc_cc_set(nrfx_rtc_t const * const p_instance,
+ uint32_t channel,
+ uint32_t val,
+ bool enable_irq);
+
+/**@brief Function for disabling a channel.
+ *
+ * This function disables channel events and channel interrupts. The function asserts if the instance is not
+ * initialized or if the channel parameter is wrong.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] channel One of the instance's channels.
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_TIMEOUT If an interrupt was pending on the requested channel.
+ */
+nrfx_err_t nrfx_rtc_cc_disable(nrfx_rtc_t const * const p_instance, uint32_t channel);
+
+/**@brief Function for enabling tick.
+ *
+ * This function enables the tick event and optionally the interrupt. The function asserts if the instance is not
+ * powered on.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] enable_irq True to enable the interrupt. False to disable the interrupt.
+ */
+void nrfx_rtc_tick_enable(nrfx_rtc_t const * const p_instance, bool enable_irq);
+
+/**@brief Function for disabling tick.
+ *
+ * This function disables the tick event and interrupt.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_rtc_tick_disable(nrfx_rtc_t const * const p_instance);
+
+/**@brief Function for enabling overflow.
+ *
+ * This function enables the overflow event and optionally the interrupt. The function asserts if the instance is
+ * not powered on.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] enable_irq True to enable the interrupt. False to disable the interrupt.
+ */
+void nrfx_rtc_overflow_enable(nrfx_rtc_t const * const p_instance, bool enable_irq);
+
+/**@brief Function for disabling overflow.
+ *
+ * This function disables the overflow event and interrupt.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_rtc_overflow_disable(nrfx_rtc_t const * const p_instance);
+
+/**@brief Function for getting the maximum relative ticks value that can be set in the compare channel.
+ *
+ * When a stack (for example SoftDevice) is used and it occupies high priority interrupts,
+ * the application code can be interrupted at any moment for a certain period of time.
+ * If Reliable mode is enabled, the provided maximum latency is taken into account
+ * and the return value is smaller than the RTC counter resolution.
+ * If Reliable mode is disabled, the return value equals the counter resolution.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval ticks Maximum ticks value.
+ */
+uint32_t nrfx_rtc_max_ticks_get(nrfx_rtc_t const * const p_instance);
+
+/**@brief Function for disabling all instance interrupts.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_mask Pointer to the location where the mask is filled.
+ */
+__STATIC_INLINE void nrfx_rtc_int_disable(nrfx_rtc_t const * const p_instance,
+ uint32_t * p_mask);
+
+/**@brief Function for enabling instance interrupts.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] mask Mask of interrupts to enable.
+ */
+__STATIC_INLINE void nrfx_rtc_int_enable(nrfx_rtc_t const * const p_instance, uint32_t mask);
+
+/**@brief Function for retrieving the current counter value.
+ *
+ * This function asserts if the instance is not powered on or if p_val is NULL.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval value Counter value.
+ */
+__STATIC_INLINE uint32_t nrfx_rtc_counter_get(nrfx_rtc_t const * const p_instance);
+
+/**@brief Function for clearing the counter value.
+ *
+ * This function asserts if the instance is not powered on.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+__STATIC_INLINE void nrfx_rtc_counter_clear(nrfx_rtc_t const * const p_instance);
+
+/**@brief Function for returning a requested task address for the RTC driver instance.
+ *
+ * This function asserts if the output pointer is NULL. The task address can be used by the PPI module.
+ *
+ * @param[in] p_instance Pointer to the instance.
+ * @param[in] task One of the peripheral tasks.
+ *
+ * @retval Address of task register.
+ */
+__STATIC_INLINE uint32_t nrfx_rtc_task_address_get(nrfx_rtc_t const * const p_instance,
+ nrf_rtc_task_t task);
+
+/**@brief Function for returning a requested event address for the RTC driver instance.
+ *
+ * This function asserts if the output pointer is NULL. The event address can be used by the PPI module.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] event One of the peripheral events.
+ *
+ * @retval Address of event register.
+ */
+__STATIC_INLINE uint32_t nrfx_rtc_event_address_get(nrfx_rtc_t const * const p_instance,
+ nrf_rtc_event_t event);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrfx_rtc_int_disable(nrfx_rtc_t const * const p_instance,
+ uint32_t * p_mask)
+{
+ *p_mask = nrf_rtc_int_get(p_instance->p_reg);
+ nrf_rtc_int_disable(p_instance->p_reg, NRF_RTC_INT_TICK_MASK |
+ NRF_RTC_INT_OVERFLOW_MASK |
+ NRF_RTC_INT_COMPARE0_MASK |
+ NRF_RTC_INT_COMPARE1_MASK |
+ NRF_RTC_INT_COMPARE2_MASK |
+ NRF_RTC_INT_COMPARE3_MASK);
+}
+
+__STATIC_INLINE void nrfx_rtc_int_enable(nrfx_rtc_t const * const p_instance, uint32_t mask)
+{
+ nrf_rtc_int_enable(p_instance->p_reg, mask);
+}
+
+__STATIC_INLINE uint32_t nrfx_rtc_counter_get(nrfx_rtc_t const * const p_instance)
+{
+ return nrf_rtc_counter_get(p_instance->p_reg);
+}
+
+__STATIC_INLINE void nrfx_rtc_counter_clear(nrfx_rtc_t const * const p_instance)
+{
+ nrf_rtc_task_trigger(p_instance->p_reg, NRF_RTC_TASK_CLEAR);
+}
+
+__STATIC_INLINE uint32_t nrfx_rtc_task_address_get(nrfx_rtc_t const * const p_instance,
+ nrf_rtc_task_t task)
+{
+ return nrf_rtc_task_address_get(p_instance->p_reg, task);
+}
+
+__STATIC_INLINE uint32_t nrfx_rtc_event_address_get(nrfx_rtc_t const * const p_instance,
+ nrf_rtc_event_t event)
+{
+ return nrf_rtc_event_address_get(p_instance->p_reg, event);
+}
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+
+void nrfx_rtc_0_irq_handler(void);
+void nrfx_rtc_1_irq_handler(void);
+void nrfx_rtc_2_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_RTC_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_saadc.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_saadc.h
new file mode 100644
index 0000000..76532d4
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_saadc.h
@@ -0,0 +1,326 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_SAADC_H__
+#define NRFX_SAADC_H__
+
+#include <nrfx.h>
+#include <hal/nrf_saadc.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_saadc SAADC driver
+ * @{
+ * @ingroup nrf_saadc
+ * @brief Successive Approximation Analog-to-Digital Converter (SAADC) peripheral driver.
+ */
+
+/**
+ * @brief Value that should be set as high limit to disable limit detection.
+ */
+#define NRFX_SAADC_LIMITH_DISABLED (2047)
+/**
+ * @brief Value that should be set as low limit to disable limit detection.
+ */
+#define NRFX_SAADC_LIMITL_DISABLED (-2048)
+
+/**
+ * @brief Macro for setting @ref nrfx_saadc_config_t to default settings.
+ */
+#define NRFX_SAADC_DEFAULT_CONFIG \
+{ \
+ .resolution = (nrf_saadc_resolution_t)NRFX_SAADC_CONFIG_RESOLUTION, \
+ .oversample = (nrf_saadc_oversample_t)NRFX_SAADC_CONFIG_OVERSAMPLE, \
+ .interrupt_priority = NRFX_SAADC_CONFIG_IRQ_PRIORITY, \
+ .low_power_mode = NRFX_SAADC_CONFIG_LP_MODE \
+}
+
+/**
+ * @brief Macro for setting @ref nrf_saadc_channel_config_t to default settings
+ * in single ended mode.
+ *
+ * @param PIN_P Analog input.
+ */
+#define NRFX_SAADC_DEFAULT_CHANNEL_CONFIG_SE(PIN_P) \
+{ \
+ .resistor_p = NRF_SAADC_RESISTOR_DISABLED, \
+ .resistor_n = NRF_SAADC_RESISTOR_DISABLED, \
+ .gain = NRF_SAADC_GAIN1_6, \
+ .reference = NRF_SAADC_REFERENCE_INTERNAL, \
+ .acq_time = NRF_SAADC_ACQTIME_10US, \
+ .mode = NRF_SAADC_MODE_SINGLE_ENDED, \
+ .burst = NRF_SAADC_BURST_DISABLED, \
+ .pin_p = (nrf_saadc_input_t)(PIN_P), \
+ .pin_n = NRF_SAADC_INPUT_DISABLED \
+}
+
+/**
+ * @brief Macro for setting @ref nrf_saadc_channel_config_t to default settings
+ * in differential mode.
+ *
+ * @param PIN_P Positive analog input.
+ * @param PIN_N Negative analog input.
+ */
+#define NRFX_SAADC_DEFAULT_CHANNEL_CONFIG_DIFFERENTIAL(PIN_P, PIN_N) \
+{ \
+ .resistor_p = NRF_SAADC_RESISTOR_DISABLED, \
+ .resistor_n = NRF_SAADC_RESISTOR_DISABLED, \
+ .gain = NRF_SAADC_GAIN1_6, \
+ .reference = NRF_SAADC_REFERENCE_INTERNAL, \
+ .acq_time = NRF_SAADC_ACQTIME_10US, \
+ .mode = NRF_SAADC_MODE_DIFFERENTIAL, \
+ .pin_p = (nrf_saadc_input_t)(PIN_P), \
+ .pin_n = (nrf_saadc_input_t)(PIN_N) \
+}
+
+/**
+ * @brief Analog-to-digital converter driver configuration structure.
+ */
+typedef struct
+{
+ nrf_saadc_resolution_t resolution; ///< Resolution configuration.
+ nrf_saadc_oversample_t oversample; ///< Oversampling configuration.
+ uint8_t interrupt_priority; ///< Interrupt priority.
+ bool low_power_mode; ///< Indicates if low power mode is active.
+} nrfx_saadc_config_t;
+
+/**
+ * @brief Driver event types.
+ */
+typedef enum
+{
+ NRFX_SAADC_EVT_DONE, ///< Event generated when the buffer is filled with samples.
+ NRFX_SAADC_EVT_LIMIT, ///< Event generated after one of the limits is reached.
+ NRFX_SAADC_EVT_CALIBRATEDONE ///< Event generated when the calibration is complete.
+} nrfx_saadc_evt_type_t;
+
+/**
+ * @brief Analog-to-digital converter driver done event data.
+ */
+typedef struct
+{
+ nrf_saadc_value_t * p_buffer; ///< Pointer to buffer with converted samples.
+ uint16_t size; ///< Number of samples in the buffer.
+} nrfx_saadc_done_evt_t;
+
+/**
+ * @brief Analog-to-digital converter driver limit event data.
+ */
+typedef struct
+{
+ uint8_t channel; ///< Channel on which the limit was detected.
+ nrf_saadc_limit_t limit_type; ///< Type of limit detected.
+} nrfx_saadc_limit_evt_t;
+
+/**
+ * @brief Analog-to-digital converter driver event structure.
+ */
+typedef struct
+{
+ nrfx_saadc_evt_type_t type; ///< Event type.
+ union
+ {
+ nrfx_saadc_done_evt_t done; ///< Data for @ref NRFX_SAADC_EVT_DONE event.
+ nrfx_saadc_limit_evt_t limit; ///< Data for @ref NRFX_SAADC_EVT_LIMIT event.
+ } data;
+} nrfx_saadc_evt_t;
+
+/**
+ * @brief ADC event handler.
+ *
+ * @param[in] p_event Pointer to an ADC event. The event structure is allocated on
+ * the stack, so it is valid only within the context of
+ * the event handler.
+ */
+typedef void (* nrfx_saadc_event_handler_t)(nrfx_saadc_evt_t const * p_event);
+
+/**
+ * @brief Function for initializing the SAADC.
+ *
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] event_handler Event handler provided by the user.
+ * Must not be NULL.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver is already initialized.
+ */
+nrfx_err_t nrfx_saadc_init(nrfx_saadc_config_t const * p_config,
+ nrfx_saadc_event_handler_t event_handler);
+
+/**
+ * @brief Function for uninitializing the SAADC.
+ *
+ * This function stops all ongoing conversions and disables all channels.
+ */
+void nrfx_saadc_uninit(void);
+
+
+/**
+ * @brief Function for getting the address of a SAMPLE SAADC task.
+ *
+ * @return Task address.
+ */
+uint32_t nrfx_saadc_sample_task_get(void);
+
+/**
+ * @brief Function for initializing an SAADC channel.
+ *
+ * This function configures and enables the channel.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the ADC was not initialized.
+ * @retval NRFX_ERROR_NO_MEM If the specified channel was already allocated.
+ */
+nrfx_err_t nrfx_saadc_channel_init(uint8_t channel,
+ nrf_saadc_channel_config_t const * const p_config);
+
+
+/**
+ * @brief Function for uninitializing an SAADC channel.
+ *
+ * @retval NRFX_SUCCESS If uninitialization was successful.
+ * @retval NRFX_ERROR_BUSY If the ADC is busy.
+ */
+nrfx_err_t nrfx_saadc_channel_uninit(uint8_t channel);
+
+/**
+ * @brief Function for starting SAADC sampling.
+ *
+ * @retval NRFX_SUCCESS If ADC sampling was triggered.
+ * @retval NRFX_ERROR_INVALID_STATE If ADC is in idle state.
+ */
+nrfx_err_t nrfx_saadc_sample(void);
+
+/**
+ * @brief Blocking function for executing a single ADC conversion.
+ *
+ * This function selects the desired input, starts a single conversion,
+ * waits for it to finish, and returns the result.
+ *
+ * The function will fail if ADC is busy.
+ *
+ * @param[in] channel Channel.
+ * @param[out] p_value Pointer to the location where the result should be placed.
+ *
+ * @retval NRFX_SUCCESS If conversion was successful.
+ * @retval NRFX_ERROR_BUSY If the ADC driver is busy.
+ */
+nrfx_err_t nrfx_saadc_sample_convert(uint8_t channel, nrf_saadc_value_t * p_value);
+
+/**
+ * @brief Function for issuing conversion of data to the buffer.
+ *
+ * This function is non-blocking. The application is notified about filling the buffer by the event
+ * handler. Conversion will be done on all enabled channels. If the ADC is in idle state, the
+ * function will set up Easy DMA for the conversion. The ADC will be ready for sampling and wait for
+ * the SAMPLE task. It can be triggered manually by the @ref nrfx_saadc_sample function or by PPI
+ * using the @ref NRF_SAADC_TASK_SAMPLE task. If one buffer is already set and the conversion is
+ * ongoing, calling this function will result in queuing the given buffer. The driver will start
+ * filling the issued buffer when the first one is completed. If the function is called again before
+ * the first buffer is filled or calibration is in progress, it will return with error.
+ *
+ * @param[in] buffer Result buffer.
+ * @param[in] size Buffer size in words.
+ *
+ * @retval NRFX_SUCCESS If conversion was successful.
+ * @retval NRFX_ERROR_BUSY If the driver already has two buffers set or calibration is in progress.
+ */
+nrfx_err_t nrfx_saadc_buffer_convert(nrf_saadc_value_t * buffer, uint16_t size);
+
+/**
+ * @brief Function for triggering the ADC offset calibration.
+ *
+ * This function is non-blocking. The application is notified about completion by the event handler.
+ * Calibration will also trigger DONE and RESULTDONE events.
+ *
+ * The function will fail if ADC is busy or calibration is already in progress.
+ *
+ * @retval NRFX_SUCCESS If calibration was started successfully.
+ * @retval NRFX_ERROR_BUSY If the ADC driver is busy.
+ */
+nrfx_err_t nrfx_saadc_calibrate_offset(void);
+
+/**
+ * @brief Function for retrieving the SAADC state.
+ *
+ * @retval true If the ADC is busy.
+ * @retval false If the ADC is ready.
+ */
+bool nrfx_saadc_is_busy(void);
+
+/**
+ * @brief Function for aborting ongoing and buffered conversions.
+ * @note @ref NRFX_SAADC_EVT_DONE event will be generated if there is a conversion in progress.
+ * Event will contain number of words in the sample buffer.
+ */
+void nrfx_saadc_abort(void);
+
+/**
+ * @brief Function for setting the SAADC channel limits.
+ * When limits are enabled and the result exceeds the defined bounds, the limit handler
+ * function is called.
+ *
+ * @param[in] channel SAADC channel number.
+ * @param[in] limit_low Lower limit (valid values from @ref NRFX_SAADC_LIMITL_DISABLED to
+ * @ref NRFX_SAADC_LIMITH_DISABLED). Conversion results below this value will
+ * trigger the handler function. Set to @ref NRFX_SAADC_LIMITL_DISABLED
+ * to disable this limit.
+ * @param[in] limit_high Upper limit (valid values from @ref NRFX_SAADC_LIMITL_DISABLED to
+ * @ref NRFX_SAADC_LIMITH_DISABLED). Conversion results above this value will
+ * trigger the handler function. Set to @ref NRFX_SAADC_LIMITH_DISABLED
+ * to disable this limit.
+ */
+void nrfx_saadc_limits_set(uint8_t channel, int16_t limit_low, int16_t limit_high);
+
+
+void nrfx_saadc_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_SAADC_H__
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_spi.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_spi.h
new file mode 100644
index 0000000..edd10bc
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_spi.h
@@ -0,0 +1,273 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_SPI_H__
+#define NRFX_SPI_H__
+
+#include <nrfx.h>
+#include <hal/nrf_spi.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_spi SPI driver
+ * @{
+ * @ingroup nrf_spi
+ * @brief SPI peripheral driver.
+ */
+
+/**
+ * @brief SPI master driver instance data structure.
+ */
+typedef struct
+{
+ NRF_SPI_Type * p_reg; ///< Pointer to a structure with SPI registers.
+ uint8_t drv_inst_idx; ///< Driver instance index.
+} nrfx_spi_t;
+
+enum {
+#if NRFX_CHECK(NRFX_SPI0_ENABLED)
+ NRFX_SPI0_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_SPI1_ENABLED)
+ NRFX_SPI1_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_SPI2_ENABLED)
+ NRFX_SPI2_INST_IDX,
+#endif
+ NRFX_SPI_ENABLED_COUNT
+};
+
+/**
+ * @brief Macro for creating an SPI master driver instance.
+ */
+#define NRFX_SPI_INSTANCE(id) \
+{ \
+ .p_reg = NRFX_CONCAT_2(NRF_SPI, id), \
+ .drv_inst_idx = NRFX_CONCAT_3(NRFX_SPI, id, _INST_IDX), \
+}
+
+/**
+ * @brief This value can be provided instead of a pin number for signals MOSI,
+ * MISO, and Slave Select to specify that the given signal is not used and
+ * therefore does not need to be connected to a pin.
+ */
+#define NRFX_SPI_PIN_NOT_USED 0xFF
+
+/**
+ * @brief SPI master driver instance configuration structure.
+ */
+typedef struct
+{
+ uint8_t sck_pin; ///< SCK pin number.
+ uint8_t mosi_pin; ///< MOSI pin number (optional).
+ /**< Set to @ref NRFX_SPI_PIN_NOT_USED
+ * if this signal is not needed. */
+ uint8_t miso_pin; ///< MISO pin number (optional).
+ /**< Set to @ref NRFX_SPI_PIN_NOT_USED
+ * if this signal is not needed. */
+ uint8_t ss_pin; ///< Slave Select pin number (optional).
+ /**< Set to @ref NRFX_SPI_PIN_NOT_USED
+ * if this signal is not needed. The driver
+ * supports only active low for this signal.
+ * If the signal should be active high,
+ * it must be controlled externally. */
+ uint8_t irq_priority; ///< Interrupt priority.
+ uint8_t orc; ///< Over-run character.
+ /**< This character is used when all bytes from the TX buffer are sent,
+ but the transfer continues due to RX. */
+ nrf_spi_frequency_t frequency; ///< SPI frequency.
+ nrf_spi_mode_t mode; ///< SPI mode.
+ nrf_spi_bit_order_t bit_order; ///< SPI bit order.
+} nrfx_spi_config_t;
+
+/**
+ * @brief SPI master instance default configuration.
+ */
+#define NRFX_SPI_DEFAULT_CONFIG \
+{ \
+ .sck_pin = NRFX_SPI_PIN_NOT_USED, \
+ .mosi_pin = NRFX_SPI_PIN_NOT_USED, \
+ .miso_pin = NRFX_SPI_PIN_NOT_USED, \
+ .ss_pin = NRFX_SPI_PIN_NOT_USED, \
+ .irq_priority = NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY, \
+ .orc = 0xFF, \
+ .frequency = NRF_SPI_FREQ_4M, \
+ .mode = NRF_SPI_MODE_0, \
+ .bit_order = NRF_SPI_BIT_ORDER_MSB_FIRST, \
+}
+
+/**
+ * @brief Single transfer descriptor structure.
+ */
+typedef struct
+{
+ uint8_t const * p_tx_buffer; ///< Pointer to TX buffer.
+ size_t tx_length; ///< TX buffer length.
+ uint8_t * p_rx_buffer; ///< Pointer to RX buffer.
+ size_t rx_length; ///< RX buffer length.
+} nrfx_spi_xfer_desc_t;
+
+/**
+ * @brief Macro for setting up single transfer descriptor.
+ *
+ * This macro is for internal use only.
+ */
+#define NRFX_SPI_SINGLE_XFER(p_tx, tx_len, p_rx, rx_len) \
+ { \
+ .p_tx_buffer = (uint8_t const *)(p_tx), \
+ .tx_length = (tx_len), \
+ .p_rx_buffer = (p_rx), \
+ .rx_length = (rx_len), \
+ }
+
+/**
+ * @brief Macro for setting duplex TX RX transfer.
+ */
+#define NRFX_SPI_XFER_TRX(p_tx_buf, tx_length, p_rx_buf, rx_length) \
+ NRFX_SPI_SINGLE_XFER(p_tx_buf, tx_length, p_rx_buf, rx_length)
+
+/**
+ * @brief Macro for setting TX transfer.
+ */
+#define NRFX_SPI_XFER_TX(p_buf, length) \
+ NRFX_SPI_SINGLE_XFER(p_buf, length, NULL, 0)
+
+/**
+ * @brief Macro for setting RX transfer.
+ */
+#define NRFX_SPI_XFER_RX(p_buf, length) \
+ NRFX_SPI_SINGLE_XFER(NULL, 0, p_buf, length)
+
+/**
+ * @brief SPI master driver event types, passed to the handler routine provided
+ * during initialization.
+ */
+typedef enum
+{
+ NRFX_SPI_EVENT_DONE, ///< Transfer done.
+} nrfx_spi_evt_type_t;
+
+typedef struct
+{
+ nrfx_spi_evt_type_t type; ///< Event type.
+ nrfx_spi_xfer_desc_t xfer_desc; ///< Transfer details.
+} nrfx_spi_evt_t;
+
+/**
+ * @brief SPI master driver event handler type.
+ */
+typedef void (* nrfx_spi_evt_handler_t)(nrfx_spi_evt_t const * p_event,
+ void * p_context);
+
+/**
+ * @brief Function for initializing the SPI master driver instance.
+ *
+ * This function configures and enables the specified peripheral.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ *
+ * @param handler Event handler provided by the user. If NULL, transfers
+ * will be performed in blocking mode.
+ * @param p_context Context passed to event handler.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver was already initialized.
+ * @retval NRFX_ERROR_BUSY If some other peripheral with the same
+ * instance ID is already in use. This is
+ * possible only if @ref nrfx_prs module
+ * is enabled.
+ */
+nrfx_err_t nrfx_spi_init(nrfx_spi_t const * const p_instance,
+ nrfx_spi_config_t const * p_config,
+ nrfx_spi_evt_handler_t handler,
+ void * p_context);
+
+/**
+ * @brief Function for uninitializing the SPI master driver instance.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_spi_uninit(nrfx_spi_t const * const p_instance);
+
+/**
+ * @brief Function for starting the SPI data transfer.
+ *
+ * If an event handler was provided in the @ref nrfx_spi_init call, this function
+ * returns immediately and the handler is called when the transfer is done.
+ * Otherwise, the transfer is performed in blocking mode, which means that this function
+ * returns when the transfer is finished.
+ *
+ * @param p_instance Pointer to the driver instance structure.
+ * @param p_xfer_desc Pointer to the transfer descriptor.
+ * @param flags Transfer options (0 for default settings).
+ * Currently, no additional flags are available.
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_BUSY If the driver is not ready for a new transfer.
+ * @retval NRFX_ERROR_NOT_SUPPORTED If the provided parameters are not supported.
+ */
+nrfx_err_t nrfx_spi_xfer(nrfx_spi_t const * const p_instance,
+ nrfx_spi_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags);
+
+/**
+ * @brief Function for aborting ongoing transfer.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_spi_abort(nrfx_spi_t const * p_instance);
+
+
+void nrfx_spi_0_irq_handler(void);
+void nrfx_spi_1_irq_handler(void);
+void nrfx_spi_2_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_SPI_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_spim.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_spim.h
new file mode 100644
index 0000000..3490f11
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_spim.h
@@ -0,0 +1,396 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_SPIM_H__
+#define NRFX_SPIM_H__
+
+#include <nrfx.h>
+#include <hal/nrf_spim.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_spim SPIM driver
+ * @{
+ * @ingroup nrf_spim
+ * @brief SPIM peripheral driver.
+ */
+
+/**
+ * @brief SPIM master driver instance data structure.
+ */
+typedef struct
+{
+ NRF_SPIM_Type * p_reg; ///< Pointer to a structure with SPIM registers.
+ uint8_t drv_inst_idx; ///< Driver instance index.
+} nrfx_spim_t;
+
+enum {
+#if NRFX_CHECK(NRFX_SPIM0_ENABLED)
+ NRFX_SPIM0_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_SPIM1_ENABLED)
+ NRFX_SPIM1_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_SPIM2_ENABLED)
+ NRFX_SPIM2_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_SPIM3_ENABLED)
+ NRFX_SPIM3_INST_IDX,
+#endif
+ NRFX_SPIM_ENABLED_COUNT
+};
+
+/**
+ * @brief Macro for creating an SPIM master driver instance.
+ */
+#define NRFX_SPIM_INSTANCE(id) \
+{ \
+ .p_reg = NRFX_CONCAT_2(NRF_SPIM, id), \
+ .drv_inst_idx = NRFX_CONCAT_3(NRFX_SPIM, id, _INST_IDX), \
+}
+
+/**
+ * @brief This value can be provided instead of a pin number for signals MOSI,
+ * MISO, and Slave Select to specify that the given signal is not used and
+ * therefore does not need to be connected to a pin.
+ */
+#define NRFX_SPIM_PIN_NOT_USED 0xFF
+
+/**
+ * @brief SPIM master driver instance configuration structure.
+ */
+typedef struct
+{
+ uint8_t sck_pin; ///< SCK pin number.
+ uint8_t mosi_pin; ///< MOSI pin number (optional).
+ /**< Set to @ref NRFX_SPIM_PIN_NOT_USED
+ * if this signal is not needed. */
+ uint8_t miso_pin; ///< MISO pin number (optional).
+ /**< Set to @ref NRFX_SPIM_PIN_NOT_USED
+ * if this signal is not needed. */
+ uint8_t ss_pin; ///< Slave Select pin number (optional).
+ /**< Set to @ref NRFX_SPIM_PIN_NOT_USED
+ * if this signal is not needed. */
+ bool ss_active_high; ///< Polarity of the Slave Select pin during transmission.
+ uint8_t irq_priority; ///< Interrupt priority.
+ uint8_t orc; ///< Over-run character.
+ /**< This character is used when all bytes from the TX buffer are sent,
+ but the transfer continues due to RX. */
+ nrf_spim_frequency_t frequency; ///< SPI frequency.
+ nrf_spim_mode_t mode; ///< SPI mode.
+ nrf_spim_bit_order_t bit_order; ///< SPI bit order.
+#if NRFX_CHECK(NRFX_SPIM_EXTENDED_ENABLED) || defined(__NRFX_DOXYGEN__)
+ uint8_t dcx_pin; ///< D/CX pin number (optional).
+ uint8_t rx_delay; ///< Sample delay for input serial data on MISO.
+ /**< The value specifies the delay, in number of 64 MHz clock cycles
+ * (15.625 ns), from the the sampling edge of SCK (leading edge for
+ * CONFIG.CPHA = 0, trailing edge for CONFIG.CPHA = 1) until
+ * the input serial data is sampled.*/
+ bool use_hw_ss; ///< Indication to use software or hardware controlled Slave Select pin.
+ uint8_t ss_duration; ///< Slave Select duration before and after transmission.
+ /**< Minimum duration between the edge of CSN and the edge of SCK and minimum
+ * duration of CSN must stay inactive between transactions.
+ * The value is specified in number of 64 MHz clock cycles (15.625 ns).
+ * Supported only for hardware controlled Slave Select.*/
+#endif
+} nrfx_spim_config_t;
+
+#if NRFX_CHECK(NRFX_SPIM_EXTENDED_ENABLED) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief SPIM master instance extended default configuration.
+ */
+ #define NRFX_SPIM_DEFAULT_EXTENDED_CONFIG \
+ .dcx_pin = NRFX_SPIM_PIN_NOT_USED, \
+ .rx_delay = 0x00, \
+ .ss_duration = 0x00, \
+ .use_hw_ss = false,
+#else
+ #define NRFX_SPIM_DEFAULT_EXTENDED_CONFIG
+#endif
+
+/**
+ * @brief SPIM master instance default configuration.
+ */
+#define NRFX_SPIM_DEFAULT_CONFIG \
+{ \
+ .sck_pin = NRFX_SPIM_PIN_NOT_USED, \
+ .mosi_pin = NRFX_SPIM_PIN_NOT_USED, \
+ .miso_pin = NRFX_SPIM_PIN_NOT_USED, \
+ .ss_pin = NRFX_SPIM_PIN_NOT_USED, \
+ .ss_active_high = false, \
+ .irq_priority = NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY, \
+ .orc = 0xFF, \
+ .frequency = NRF_SPIM_FREQ_4M, \
+ .mode = NRF_SPIM_MODE_0, \
+ .bit_order = NRF_SPIM_BIT_ORDER_MSB_FIRST, \
+ NRFX_SPIM_DEFAULT_EXTENDED_CONFIG \
+}
+
+#define NRFX_SPIM_FLAG_TX_POSTINC (1UL << 0) /**< TX buffer address incremented after transfer. */
+#define NRFX_SPIM_FLAG_RX_POSTINC (1UL << 1) /**< RX buffer address incremented after transfer. */
+#define NRFX_SPIM_FLAG_NO_XFER_EVT_HANDLER (1UL << 2) /**< Interrupt after each transfer is suppressed, and the event handler is not called. */
+#define NRFX_SPIM_FLAG_HOLD_XFER (1UL << 3) /**< Set up the transfer but do not start it. */
+#define NRFX_SPIM_FLAG_REPEATED_XFER (1UL << 4) /**< Flag indicating that the transfer will be executed multiple times. */
+
+/**
+ * @brief Single transfer descriptor structure.
+ */
+typedef struct
+{
+ uint8_t const * p_tx_buffer; ///< Pointer to TX buffer.
+ size_t tx_length; ///< TX buffer length.
+ uint8_t * p_rx_buffer; ///< Pointer to RX buffer.
+ size_t rx_length; ///< RX buffer length.
+} nrfx_spim_xfer_desc_t;
+
+/**
+ * @brief Macro for setting up single transfer descriptor.
+ *
+ * This macro is for internal use only.
+ */
+#define NRFX_SPIM_SINGLE_XFER(p_tx, tx_len, p_rx, rx_len) \
+ { \
+ .p_tx_buffer = (uint8_t const *)(p_tx), \
+ .tx_length = (tx_len), \
+ .p_rx_buffer = (p_rx), \
+ .rx_length = (rx_len), \
+ }
+
+/**
+ * @brief Macro for setting duplex TX RX transfer.
+ */
+#define NRFX_SPIM_XFER_TRX(p_tx_buf, tx_length, p_rx_buf, rx_length) \
+ NRFX_SPIM_SINGLE_XFER(p_tx_buf, tx_length, p_rx_buf, rx_length)
+
+/**
+ * @brief Macro for setting TX transfer.
+ */
+#define NRFX_SPIM_XFER_TX(p_buf, length) \
+ NRFX_SPIM_SINGLE_XFER(p_buf, length, NULL, 0)
+
+/**
+ * @brief Macro for setting RX transfer.
+ */
+#define NRFX_SPIM_XFER_RX(p_buf, length) \
+ NRFX_SPIM_SINGLE_XFER(NULL, 0, p_buf, length)
+
+/**
+ * @brief SPIM master driver event types, passed to the handler routine provided
+ * during initialization.
+ */
+typedef enum
+{
+ NRFX_SPIM_EVENT_DONE, ///< Transfer done.
+} nrfx_spim_evt_type_t;
+
+typedef struct
+{
+ nrfx_spim_evt_type_t type; ///< Event type.
+ nrfx_spim_xfer_desc_t xfer_desc; ///< Transfer details.
+} nrfx_spim_evt_t;
+
+/**
+ * @brief SPIM master driver event handler type.
+ */
+typedef void (* nrfx_spim_evt_handler_t)(nrfx_spim_evt_t const * p_event,
+ void * p_context);
+
+/**
+ * @brief Function for initializing the SPI master driver instance.
+ *
+ * This function configures and enables the specified peripheral.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ *
+ * @param handler Event handler provided by the user. If NULL, transfers
+ * will be performed in blocking mode.
+ * @param p_context Context passed to event handler.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver was already initialized.
+ * @retval NRFX_ERROR_BUSY If some other peripheral with the same
+ * instance ID is already in use. This is
+ * possible only if @ref nrfx_prs module
+ * is enabled.
+ * @retval NRFX_ERROR_NOT_SUPPORTED If requested configuration is not supported
+ * by the SPIM instance.
+ */
+nrfx_err_t nrfx_spim_init(nrfx_spim_t const * const p_instance,
+ nrfx_spim_config_t const * p_config,
+ nrfx_spim_evt_handler_t handler,
+ void * p_context);
+
+/**
+ * @brief Function for uninitializing the SPI master driver instance.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_spim_uninit(nrfx_spim_t const * const p_instance);
+
+/**
+ * @brief Function for starting the SPI data transfer.
+ *
+ * Additional options are provided using the @c flags parameter:
+ *
+ * - @ref NRFX_SPIM_FLAG_TX_POSTINC and @ref NRFX_SPIM_FLAG_RX_POSTINC<span></span>:
+ * Post-incrementation of buffer addresses. Supported only by SPIM.
+ * - @ref NRFX_SPIM_FLAG_HOLD_XFER<span></span>: Driver is not starting the transfer. Use this
+ * flag if the transfer is triggered externally by PPI. Supported only by SPIM. Use
+ * @ref nrfx_spim_start_task_get to get the address of the start task.
+ * - @ref NRFX_SPIM_FLAG_NO_XFER_EVT_HANDLER<span></span>: No user event handler after transfer
+ * completion. This also means no interrupt at the end of the transfer. Supported only by SPIM.
+ * If @ref NRFX_SPIM_FLAG_NO_XFER_EVT_HANDLER is used, the driver does not set the instance into
+ * busy state, so you must ensure that the next transfers are set up when SPIM is not active.
+ * @ref nrfx_spim_end_event_get function can be used to detect end of transfer. Option can be used
+ * together with @ref NRFX_SPIM_FLAG_REPEATED_XFER to prepare a sequence of SPI transfers
+ * without interruptions.
+ * - @ref NRFX_SPIM_FLAG_REPEATED_XFER<span></span>: Prepare for repeated transfers. You can set
+ * up a number of transfers that will be triggered externally (for example by PPI). An example is
+ * a TXRX transfer with the options @ref NRFX_SPIM_FLAG_RX_POSTINC,
+ * @ref NRFX_SPIM_FLAG_NO_XFER_EVT_HANDLER, and @ref NRFX_SPIM_FLAG_REPEATED_XFER. After the
+ * transfer is set up, a set of transfers can be triggered by PPI that will read, for example,
+ * the same register of an external component and put it into a RAM buffer without any interrupts.
+ * @ref nrfx_spim_end_event_get can be used to get the address of the END event, which can be
+ * used to count the number of transfers. If @ref NRFX_SPIM_FLAG_REPEATED_XFER is used,
+ * the driver does not set the instance into busy state, so you must ensure that the next
+ * transfers are set up when SPIM is not active. Supported only by SPIM.
+ *
+ * @note Peripherals using EasyDMA (including SPIM) require the transfer buffers
+ * to be placed in the Data RAM region. If this condition is not met,
+ * this function will fail with the error code NRFX_ERROR_INVALID_ADDR.
+ *
+ * @param p_instance Pointer to the driver instance structure.
+ * @param p_xfer_desc Pointer to the transfer descriptor.
+ * @param flags Transfer options (0 for default settings).
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_BUSY If the driver is not ready for a new transfer.
+ * @retval NRFX_ERROR_NOT_SUPPORTED If the provided parameters are not supported.
+ * @retval NRFX_ERROR_INVALID_ADDR If the provided buffers are not placed in the Data
+ * RAM region.
+ */
+nrfx_err_t nrfx_spim_xfer(nrfx_spim_t const * const p_instance,
+ nrfx_spim_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags);
+
+#if NRFX_CHECK(NRFX_SPIM_EXTENDED_ENABLED) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Function for starting the SPI data transfer with DCX control.
+ *
+ * See @ref nrfx_spim_xfer for description of additional options of transfer
+ * provided by the @c flags parameter.
+ *
+ * @note Peripherals that use EasyDMA (including SPIM) require the transfer buffers
+ * to be placed in the Data RAM region. If this condition is not met,
+ * this function will fail with the error code NRFX_ERROR_INVALID_ADDR.
+ *
+ * @param p_instance Pointer to the driver instance structure.
+ * @param p_xfer_desc Pointer to the transfer descriptor.
+ * @param flags Transfer options (0 for default settings).
+ * @param cmd_length Length of the command bytes preceding the data
+ * bytes. The DCX line will be low during transmission
+ * of command bytes and high during transmission of data bytes.
+ * Maximum value available for dividing the transmitted bytes
+ * into command bytes and data bytes is @ref NRF_SPIM_DCX_CNT_ALL_CMD - 1.
+ * The @ref NRF_SPIM_DCX_CNT_ALL_CMD value passed as the
+ * @c cmd_length parameter causes all transmitted bytes
+ * to be marked as command bytes.
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_BUSY If the driver is not ready for a new transfer.
+ * @retval NRFX_ERROR_NOT_SUPPORTED If the provided parameters are not supported.
+ * @retval NRFX_ERROR_INVALID_ADDR If the provided buffers are not placed in the Data
+ * RAM region.
+ */
+nrfx_err_t nrfx_spim_xfer_dcx(nrfx_spim_t const * const p_instance,
+ nrfx_spim_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags,
+ uint8_t cmd_length);
+#endif
+
+/**
+ * @brief Function for returning the address of a SPIM start task.
+ *
+ * This function should be used if @ref nrfx_spim_xfer was called with the flag @ref NRFX_SPIM_FLAG_HOLD_XFER.
+ * In that case, the transfer is not started by the driver, but it must be started externally by PPI.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @return Start task address.
+ */
+uint32_t nrfx_spim_start_task_get(nrfx_spim_t const * p_instance);
+
+/**
+ * @brief Function for returning the address of a END SPIM event.
+ *
+ * The END event can be used to detect the end of a transfer
+ * if the @ref NRFX_SPIM_FLAG_NO_XFER_EVT_HANDLER option is used.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @return END event address.
+ */
+uint32_t nrfx_spim_end_event_get(nrfx_spim_t const * p_instance);
+
+/**
+ * @brief Function for aborting ongoing transfer.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_spim_abort(nrfx_spim_t const * p_instance);
+
+
+void nrfx_spim_0_irq_handler(void);
+void nrfx_spim_1_irq_handler(void);
+void nrfx_spim_2_irq_handler(void);
+void nrfx_spim_3_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_SPIM_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_spis.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_spis.h
new file mode 100644
index 0000000..b16b29f
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_spis.h
@@ -0,0 +1,250 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_SPIS_H__
+#define NRFX_SPIS_H__
+
+#include <nrfx.h>
+#include <hal/nrf_spis.h>
+#include <hal/nrf_gpio.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_spis SPI slave driver
+ * @{
+ * @ingroup nrf_spis
+ * @brief SPI Slave peripheral driver.
+ */
+
+/** @brief SPI slave driver instance data structure. */
+typedef struct
+{
+ NRF_SPIS_Type * p_reg; //!< Pointer to a structure with SPIS registers.
+ uint8_t drv_inst_idx; //!< Driver instance index.
+} nrfx_spis_t;
+
+enum {
+#if NRFX_CHECK(NRFX_SPIS0_ENABLED)
+ NRFX_SPIS0_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_SPIS1_ENABLED)
+ NRFX_SPIS1_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_SPIS2_ENABLED)
+ NRFX_SPIS2_INST_IDX,
+#endif
+ NRFX_SPIS_ENABLED_COUNT
+};
+
+/** @brief Macro for creating an SPI slave driver instance. */
+#define NRFX_SPIS_INSTANCE(id) \
+{ \
+ .p_reg = NRFX_CONCAT_2(NRF_SPIS, id), \
+ .drv_inst_idx = NRFX_CONCAT_3(NRFX_SPIS, id, _INST_IDX), \
+}
+
+/**
+ * @brief This value can be provided instead of a pin number for the signals MOSI
+ * and MISO to specify that the given signal is not used and therefore
+ * does not need to be connected to a pin.
+ */
+#define NRFX_SPIS_PIN_NOT_USED 0xFF
+
+/** @brief Default pull-up configuration of the SPI CS. */
+#define NRFX_SPIS_DEFAULT_CSN_PULLUP NRF_GPIO_PIN_NOPULL
+/** @brief Default drive configuration of the SPI MISO. */
+#define NRFX_SPIS_DEFAULT_MISO_DRIVE NRF_GPIO_PIN_S0S1
+
+/** @brief SPI slave driver event types. */
+typedef enum
+{
+ NRFX_SPIS_BUFFERS_SET_DONE, //!< Memory buffer set event. Memory buffers have been set successfully to the SPI slave device, and SPI transaction can be done.
+ NRFX_SPIS_XFER_DONE, //!< SPI transaction event. SPI transaction has been completed.
+ NRFX_SPIS_EVT_TYPE_MAX //!< Enumeration upper bound.
+} nrfx_spis_evt_type_t;
+
+/** @brief SPI slave driver event structure. */
+typedef struct
+{
+ nrfx_spis_evt_type_t evt_type; //!< Type of the event.
+ size_t rx_amount; //!< Number of bytes received in the last transaction. This parameter is only valid for @ref NRFX_SPIS_XFER_DONE events.
+ size_t tx_amount; //!< Number of bytes transmitted in the last transaction. This parameter is only valid for @ref NRFX_SPIS_XFER_DONE events.
+} nrfx_spis_evt_t;
+
+/** @brief SPI slave instance default configuration. */
+#define NRFX_SPIS_DEFAULT_CONFIG \
+{ \
+ .sck_pin = NRFX_SPIS_PIN_NOT_USED, \
+ .mosi_pin = NRFX_SPIS_PIN_NOT_USED, \
+ .miso_pin = NRFX_SPIS_PIN_NOT_USED, \
+ .csn_pin = NRFX_SPIS_PIN_NOT_USED, \
+ .mode = NRF_SPIS_MODE_0, \
+ .bit_order = NRF_SPIS_BIT_ORDER_MSB_FIRST, \
+ .csn_pullup = NRFX_SPIS_DEFAULT_CSN_PULLUP, \
+ .miso_drive = NRFX_SPIS_DEFAULT_MISO_DRIVE, \
+ .def = NRFX_SPIS_DEFAULT_DEF, \
+ .orc = NRFX_SPIS_DEFAULT_ORC, \
+ .irq_priority = NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY, \
+}
+
+/** @brief SPI peripheral device configuration data. */
+typedef struct
+{
+ uint32_t miso_pin; //!< SPI MISO pin (optional).
+ /**< Set @ref NRFX_SPIS_PIN_NOT_USED
+ * if this signal is not needed. */
+ uint32_t mosi_pin; //!< SPI MOSI pin (optional).
+ /**< Set @ref NRFX_SPIS_PIN_NOT_USED
+ * if this signal is not needed. */
+ uint32_t sck_pin; //!< SPI SCK pin.
+ uint32_t csn_pin; //!< SPI CSN pin.
+ nrf_spis_mode_t mode; //!< SPI mode.
+ nrf_spis_bit_order_t bit_order; //!< SPI transaction bit order.
+ nrf_gpio_pin_pull_t csn_pullup; //!< CSN pin pull-up configuration.
+ nrf_gpio_pin_drive_t miso_drive; //!< MISO pin drive configuration.
+ uint8_t def; //!< Character clocked out in case of an ignored transaction.
+ uint8_t orc; //!< Character clocked out after an over-read of the transmit buffer.
+ uint8_t irq_priority; //!< Interrupt priority.
+} nrfx_spis_config_t;
+
+
+/**
+ * @brief SPI slave driver event handler type.
+ *
+ * @param[in] p_event Pointer to the event structure. The structure is
+ * allocated on the stack so it is valid only until
+ * the event handler returns.
+ * @param[in] p_context Context set on initialization.
+ */
+typedef void (*nrfx_spis_event_handler_t)(nrfx_spis_evt_t const * p_event,
+ void * p_context);
+
+/**
+ * @brief Function for initializing the SPI slave driver instance.
+ *
+ * @note When the nRF52 Anomaly 109 workaround for SPIS is enabled, this function
+ * initializes the GPIOTE driver as well, and uses one of GPIOTE channels
+ * to detect falling edges on CSN pin.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] event_handler Function to be called by the SPI slave driver upon event.
+ * Must not be NULL.
+ * @param[in] p_context Context passed to the event handler.
+ *
+ * @retval NRFX_SUCCESS If the initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the instance is already initialized.
+ * @retval NRFX_ERROR_INVALID_PARAM If an invalid parameter is supplied.
+ * @retval NRFX_ERROR_BUSY If some other peripheral with the same
+ * instance ID is already in use. This is
+ * possible only if @ref nrfx_prs module
+ * is enabled.
+ * @retval NRFX_ERROR_INTERNAL GPIOTE channel for detecting falling edges
+ * on CSN pin cannot be initialized. Possible
+ * only when using nRF52 Anomaly 109 workaround.
+ */
+nrfx_err_t nrfx_spis_init(nrfx_spis_t const * const p_instance,
+ nrfx_spis_config_t const * p_config,
+ nrfx_spis_event_handler_t event_handler,
+ void * p_context);
+
+/**
+ * @brief Function for uninitializing the SPI slave driver instance.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_spis_uninit(nrfx_spis_t const * const p_instance);
+
+/**
+ * @brief Function for preparing the SPI slave instance for a single SPI transaction.
+ *
+ * This function prepares the SPI slave device to be ready for a single SPI transaction. It configures
+ * the SPI slave device to use the memory supplied with the function call in SPI transactions.
+ *
+ * When either the memory buffer configuration or the SPI transaction has been
+ * completed, the event callback function will be called with the appropriate event
+ * @ref nrfx_spis_evt_type_t. Note that the callback function can be called before returning from
+ * this function, because it is called from the SPI slave interrupt context.
+ *
+ * @note This function can be called from the callback function context.
+ *
+ * @note Client applications must call this function after every @ref NRFX_SPIS_XFER_DONE event if
+ * the SPI slave driver should be prepared for a possible new SPI transaction.
+ *
+ * @note Peripherals using EasyDMA (including SPIS) require the transfer buffers
+ * to be placed in the Data RAM region. If this condition is not met,
+ * this function will fail with the error code NRFX_ERROR_INVALID_ADDR.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_tx_buffer Pointer to the TX buffer. Can be NULL when the buffer length is zero.
+ * @param[in] p_rx_buffer Pointer to the RX buffer. Can be NULL when the buffer length is zero.
+ * @param[in] tx_buffer_length Length of the TX buffer in bytes.
+ * @param[in] rx_buffer_length Length of the RX buffer in bytes.
+ *
+ * @retval NRFX_SUCCESS If the operation was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the operation failed because the SPI slave device is in an incorrect state.
+ * @retval NRFX_ERROR_INVALID_ADDR If the provided buffers are not placed in the Data
+ * RAM region.
+ * @retval NRFX_ERROR_INVALID_LENGTH If provided lengths exceed the EasyDMA limits for the peripheral.
+ * @retval NRFX_ERROR_INTERNAL If the operation failed because of an internal error.
+ */
+nrfx_err_t nrfx_spis_buffers_set(nrfx_spis_t const * const p_instance,
+ uint8_t const * p_tx_buffer,
+ size_t tx_buffer_length,
+ uint8_t * p_rx_buffer,
+ size_t rx_buffer_length);
+
+
+void nrfx_spis_0_irq_handler(void);
+void nrfx_spis_1_irq_handler(void);
+void nrfx_spis_2_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_SPIS_H__
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_swi.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_swi.h
new file mode 100644
index 0000000..92416ae
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_swi.h
@@ -0,0 +1,222 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_SWI_H__
+#define NRFX_SWI_H__
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_EGU_ENABLED)
+#include <hal/nrf_egu.h>
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_swi SWI driver
+ * @{
+ * @ingroup nrf_swi_egu
+ *
+ * @brief Driver for managing software interrupts (SWI).
+ */
+
+/** @brief SWI instance. */
+typedef uint8_t nrfx_swi_t;
+
+/**
+ * @brief SWI user flags.
+ *
+ * User flags are set during the SWI trigger and passed to the callback function as an argument.
+ */
+typedef uint16_t nrfx_swi_flags_t;
+
+/** @brief Unallocated instance value. */
+#define NRFX_SWI_UNALLOCATED ((nrfx_swi_t)0xFFuL)
+
+/** @brief Default SWI priority. */
+#define NRFX_SWI_DEFAULT_PRIORITY APP_IRQ_PRIORITY_LOWEST
+
+/**
+ * @brief SWI handler function.
+ *
+ * @param swi SWI instance.
+ * @param flags User flags.
+ */
+typedef void (*nrfx_swi_handler_t)(nrfx_swi_t swi, nrfx_swi_flags_t flags);
+
+
+/**
+ * @brief Function for allocating the first unused SWI instance and setting a handler.
+ *
+ * @param[out] p_swi Points to a place where the allocated SWI instance
+ * number is to be stored.
+ * @param[in] event_handler Event handler function.
+ * If NULL, no interrupt will be enabled.
+ * It can be NULL only if the EGU driver is enabled.
+ * For classic SWI, it must be a valid handler pointer.
+ * @param[in] irq_priority Interrupt priority.
+ *
+ * @retval NRFX_SUCCESS If the SWI was successfully allocated.
+ * @retval NRFX_ERROR_NO_MEM If there is no available SWI to be used.
+ */
+nrfx_err_t nrfx_swi_alloc(nrfx_swi_t * p_swi,
+ nrfx_swi_handler_t event_handler,
+ uint32_t irq_priority);
+
+/**
+ * @brief Function for freeing a previously allocated SWI.
+ *
+ * @param[in,out] p_swi SWI instance to free. The value is changed to
+ * @ref NRFX_SWI_UNALLOCATED on success.
+ */
+void nrfx_swi_free(nrfx_swi_t * p_swi);
+
+/** @brief Function for freeing all allocated SWIs. */
+void nrfx_swi_all_free(void);
+
+/**
+ * @brief Function for triggering the SWI.
+ *
+ * @param[in] swi SWI to trigger.
+ * @param[in] flag_number Number of user flag to trigger.
+ */
+void nrfx_swi_trigger(nrfx_swi_t swi,
+ uint8_t flag_number);
+
+/**
+ * @brief Function for checking if the specified SWI is currently allocated.
+ *
+ * @param[in] swi SWI instance.
+ *
+ * @retval true If the SWI instance is allocated.
+ * @retval false Otherwise.
+ */
+bool nrfx_swi_is_allocated(nrfx_swi_t swi);
+
+#if NRFX_CHECK(NRFX_EGU_ENABLED) || defined(__NRFX_DOXYGEN__)
+
+/**
+ * @brief Function for returning the base address of the EGU peripheral
+ * associated with the specified SWI instance.
+ *
+ * @param[in] swi SWI instance.
+ *
+ * @returns EGU base address or NULL if the specified SWI instance number
+ * is too high.
+ */
+__STATIC_INLINE NRF_EGU_Type * nrfx_swi_egu_instance_get(nrfx_swi_t swi)
+{
+#if (EGU_COUNT < SWI_COUNT)
+ if (swi >= EGU_COUNT)
+ {
+ return NULL;
+ }
+#endif
+ uint32_t offset = ((uint32_t)swi) * (NRF_EGU1_BASE - NRF_EGU0_BASE);
+ return (NRF_EGU_Type *)(NRF_EGU0_BASE + offset);
+}
+
+/**
+ * @brief Function for returning the EGU trigger task address.
+ *
+ * @param[in] swi SWI instance.
+ * @param[in] channel Number of the EGU channel.
+ *
+ * @returns Address of EGU trigger task.
+ */
+__STATIC_INLINE uint32_t nrfx_swi_task_trigger_address_get(nrfx_swi_t swi,
+ uint8_t channel)
+{
+ NRFX_ASSERT(nrfx_swi_is_allocated(swi));
+
+ NRF_EGU_Type * p_egu = nrfx_swi_egu_instance_get(swi);
+#if (EGU_COUNT < SWI_COUNT)
+ if (p_egu == NULL)
+ {
+ return 0;
+ }
+#endif
+
+ return (uint32_t)nrf_egu_task_trigger_address_get(p_egu, channel);
+}
+
+/**
+ * @brief Function for returning the EGU triggered event address.
+ *
+ * @param[in] swi SWI instance.
+ * @param[in] channel Number of the EGU channel.
+ *
+ * @returns Address of EGU triggered event.
+ */
+__STATIC_INLINE uint32_t nrfx_swi_event_triggered_address_get(nrfx_swi_t swi,
+ uint8_t channel)
+{
+ NRFX_ASSERT(nrfx_swi_is_allocated(swi));
+
+ NRF_EGU_Type * p_egu = nrfx_swi_egu_instance_get(swi);
+#if (EGU_COUNT < SWI_COUNT)
+ if (p_egu == NULL)
+ {
+ return 0;
+ }
+#endif
+
+ return (uint32_t)nrf_egu_event_triggered_address_get(p_egu, channel);
+}
+
+#endif // NRFX_CHECK(NRFX_EGU_ENABLED) || defined(__NRFX_DOXYGEN__)
+
+
+void nrfx_swi_0_irq_handler(void);
+void nrfx_swi_1_irq_handler(void);
+void nrfx_swi_2_irq_handler(void);
+void nrfx_swi_3_irq_handler(void);
+void nrfx_swi_4_irq_handler(void);
+void nrfx_swi_5_irq_handler(void);
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_SWI_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_systick.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_systick.h
new file mode 100644
index 0000000..1629074
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_systick.h
@@ -0,0 +1,135 @@
+/**
+ * Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_SYSTICK_H__
+#define NRFX_SYSTICK_H__
+
+#include <nrfx.h>
+#include <hal/nrf_systick.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_systick ARM(R) SysTick driver
+ * @{
+ * @ingroup nrf_systick
+ *
+ * @brief ARM(R) SysTick driver.
+ *
+ * This driver configures ARM(R) SysTick as a free-running timer.
+ * This timer is used to generate delays and pool for timeouts.
+ * Only relatively short timeouts are supported.
+ * The SysTick works on 64MHz and is 24-bits wide.
+ * It means that it overflows around 4 times per second and around 250&nbsp;ms
+ * would be the highest supported time in the library.
+ * But it would be really hard to detect if overflow was generated without
+ * using interrupts. For safety we would limit the maximum delay range by half.
+ */
+
+/**
+ * @brief The value type that holds the SysTick state
+ *
+ * This variable is used to count the requested timeout.
+ * @sa nrfx_systick_get
+ */
+typedef struct {
+ uint32_t time; //!< Registered time value
+} nrfx_systick_state_t;
+
+/**
+ * @brief Configure and start the timer
+ *
+ * Function configures SysTick as a free-running timer without interrupt.
+ */
+void nrfx_systick_init(void);
+
+/**
+ * @brief Get current SysTick state
+ *
+ * Function gets current state of the SysTick timer.
+ * It can be used to check time-out by @ref nrfx_systick_test.
+ *
+ * @param[out] p_state The pointer to the state variable to be filled
+ */
+void nrfx_systick_get(nrfx_systick_state_t * p_state);
+
+/**
+ * @brief Test if specified time is up in relation to remembered state
+ *
+ * @param[in] p_state Remembered state set by @ref nrfx_systick_get
+ * @param[in] us Required time-out.
+ *
+ * @retval true If current time is higher than specified state plus given time-out.
+ * @retval false If current time is lower than specified state plus given time-out
+ */
+bool nrfx_systick_test(nrfx_systick_state_t const * p_state, uint32_t us);
+
+/**
+ * @brief Blocking delay in CPU ticks
+ *
+ * @param[in] ticks Number of CPU ticks to delay.
+ */
+void nrfx_systick_delay_ticks(uint32_t ticks);
+
+/**
+ * @brief Blocking delay in us
+ *
+ * @param[in] us Number of microseconds to delay.
+ */
+void nrfx_systick_delay_us(uint32_t us);
+
+/**
+ * @brief Blocking delay in ms
+ *
+ * This delay function removes the limits of the highest possible delay value.
+ *
+ * @param[in] ms Number of milliseconds to delay.
+ */
+void nrfx_systick_delay_ms(uint32_t ms);
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NRFX_SYSTICK_H__ */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_timer.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_timer.h
new file mode 100644
index 0000000..b493f23
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_timer.h
@@ -0,0 +1,413 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_TIMER_H__
+#define NRFX_TIMER_H__
+
+#include <nrfx.h>
+#include <hal/nrf_timer.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_timer Timer driver
+ * @{
+ * @ingroup nrf_timer
+ * @brief TIMER peripheral driver.
+ */
+
+/**
+ * @brief Timer driver instance data structure.
+ */
+typedef struct
+{
+ NRF_TIMER_Type * p_reg; ///< Pointer to the structure with TIMER peripheral instance registers.
+ uint8_t instance_id; ///< Driver instance index.
+ uint8_t cc_channel_count; ///< Number of capture/compare channels.
+} nrfx_timer_t;
+
+/**
+ * @brief Macro for creating a timer driver instance.
+ */
+#define NRFX_TIMER_INSTANCE(id) \
+{ \
+ .p_reg = NRFX_CONCAT_2(NRF_TIMER, id), \
+ .instance_id = NRFX_CONCAT_3(NRFX_TIMER, id, _INST_IDX), \
+ .cc_channel_count = NRF_TIMER_CC_CHANNEL_COUNT(id), \
+}
+
+enum {
+#if NRFX_CHECK(NRFX_TIMER0_ENABLED)
+ NRFX_TIMER0_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_TIMER1_ENABLED)
+ NRFX_TIMER1_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_TIMER2_ENABLED)
+ NRFX_TIMER2_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_TIMER3_ENABLED)
+ NRFX_TIMER3_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_TIMER4_ENABLED)
+ NRFX_TIMER4_INST_IDX,
+#endif
+ NRFX_TIMER_ENABLED_COUNT
+};
+
+/**
+ * @brief Timer driver instance configuration structure.
+ */
+typedef struct
+{
+ nrf_timer_frequency_t frequency; ///< Frequency.
+ nrf_timer_mode_t mode; ///< Mode of operation.
+ nrf_timer_bit_width_t bit_width; ///< Bit width.
+ uint8_t interrupt_priority; ///< Interrupt priority.
+ void * p_context; ///< Context passed to interrupt handler.
+} nrfx_timer_config_t;
+
+/**
+ * @brief Timer driver instance default configuration.
+ */
+#define NRFX_TIMER_DEFAULT_CONFIG \
+{ \
+ .frequency = (nrf_timer_frequency_t)NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY,\
+ .mode = (nrf_timer_mode_t)NRFX_TIMER_DEFAULT_CONFIG_MODE, \
+ .bit_width = (nrf_timer_bit_width_t)NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH,\
+ .interrupt_priority = NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY, \
+ .p_context = NULL \
+}
+
+/**
+ * @brief Timer driver event handler type.
+ *
+ * @param[in] event_type Timer event.
+ * @param[in] p_context General purpose parameter set during initialization of
+ * the timer. This parameter can be used to pass
+ * additional information to the handler function, for
+ * example, the timer ID.
+ */
+typedef void (* nrfx_timer_event_handler_t)(nrf_timer_event_t event_type,
+ void * p_context);
+
+/**
+ * @brief Function for initializing the timer.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] timer_event_handler Event handler provided by the user.
+ * Must not be NULL.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the instance is already initialized.
+ */
+nrfx_err_t nrfx_timer_init(nrfx_timer_t const * const p_instance,
+ nrfx_timer_config_t const * p_config,
+ nrfx_timer_event_handler_t timer_event_handler);
+
+/**
+ * @brief Function for uninitializing the timer.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_timer_uninit(nrfx_timer_t const * const p_instance);
+
+/**
+ * @brief Function for turning on the timer.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_timer_enable(nrfx_timer_t const * const p_instance);
+
+/**
+ * @brief Function for turning off the timer.
+ *
+ * Note that the timer will allow to enter the lowest possible SYSTEM_ON state
+ * only after this function is called.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_timer_disable(nrfx_timer_t const * const p_instance);
+
+/**
+ * @brief Function for checking the timer state.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @return True if timer is enabled, false otherwise.
+ */
+bool nrfx_timer_is_enabled(nrfx_timer_t const * const p_instance);
+
+/**
+ * @brief Function for pausing the timer.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_timer_pause(nrfx_timer_t const * const p_instance);
+
+/**
+ * @brief Function for resuming the timer.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_timer_resume(nrfx_timer_t const * const p_instance);
+
+/**
+ * @brief Function for clearing the timer.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_timer_clear(nrfx_timer_t const * const p_instance);
+
+/**
+ * @brief Function for incrementing the timer.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_timer_increment(nrfx_timer_t const * const p_instance);
+
+/**
+ * @brief Function for returning the address of a specific timer task.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] timer_task Timer task.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrfx_timer_task_address_get(nrfx_timer_t const * const p_instance,
+ nrf_timer_task_t timer_task);
+
+/**
+ * @brief Function for returning the address of a specific timer capture task.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] channel Capture channel number.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrfx_timer_capture_task_address_get(nrfx_timer_t const * const p_instance,
+ uint32_t channel);
+
+/**
+ * @brief Function for returning the address of a specific timer event.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] timer_event Timer event.
+ *
+ * @return Event address.
+ */
+__STATIC_INLINE uint32_t nrfx_timer_event_address_get(nrfx_timer_t const * const p_instance,
+ nrf_timer_event_t timer_event);
+
+/**
+ * @brief Function for returning the address of a specific timer compare event.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] channel Compare channel number.
+ *
+ * @return Event address.
+ */
+__STATIC_INLINE uint32_t nrfx_timer_compare_event_address_get(nrfx_timer_t const * const p_instance,
+ uint32_t channel);
+
+/**
+ * @brief Function for capturing the timer value.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] cc_channel Capture channel number.
+ *
+ * @return Captured value.
+ */
+uint32_t nrfx_timer_capture(nrfx_timer_t const * const p_instance,
+ nrf_timer_cc_channel_t cc_channel);
+
+/**
+ * @brief Function for returning the capture value from a specific channel.
+ *
+ * Use this function to read channel values when PPI is used for capturing.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] cc_channel Capture channel number.
+ *
+ * @return Captured value.
+ */
+__STATIC_INLINE uint32_t nrfx_timer_capture_get(nrfx_timer_t const * const p_instance,
+ nrf_timer_cc_channel_t cc_channel);
+
+/**
+ * @brief Function for setting the timer channel in compare mode.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] cc_channel Compare channel number.
+ * @param[in] cc_value Compare value.
+ * @param[in] enable_int Enable or disable the interrupt for the compare channel.
+ */
+void nrfx_timer_compare(nrfx_timer_t const * const p_instance,
+ nrf_timer_cc_channel_t cc_channel,
+ uint32_t cc_value,
+ bool enable_int);
+
+/**
+ * @brief Function for setting the timer channel in extended compare mode.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] cc_channel Compare channel number.
+ * @param[in] cc_value Compare value.
+ * @param[in] timer_short_mask Shortcut between the compare event on the channel
+ * and the timer task (STOP or CLEAR).
+ * @param[in] enable_int Enable or disable the interrupt for the compare
+ * channel.
+ */
+void nrfx_timer_extended_compare(nrfx_timer_t const * const p_instance,
+ nrf_timer_cc_channel_t cc_channel,
+ uint32_t cc_value,
+ nrf_timer_short_mask_t timer_short_mask,
+ bool enable_int);
+
+/**
+ * @brief Function for converting time in microseconds to timer ticks.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] time_us Time in microseconds.
+ *
+ * @return Number of ticks.
+ */
+__STATIC_INLINE uint32_t nrfx_timer_us_to_ticks(nrfx_timer_t const * const p_instance,
+ uint32_t time_us);
+
+/**
+ * @brief Function for converting time in milliseconds to timer ticks.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] time_ms Time in milliseconds.
+ *
+ * @return Number of ticks.
+ */
+__STATIC_INLINE uint32_t nrfx_timer_ms_to_ticks(nrfx_timer_t const * const p_instance,
+ uint32_t time_ms);
+
+/**
+ * @brief Function for enabling timer compare interrupt.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] channel Compare channel.
+ */
+void nrfx_timer_compare_int_enable(nrfx_timer_t const * const p_instance,
+ uint32_t channel);
+
+/**
+ * @brief Function for disabling timer compare interrupt.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] channel Compare channel.
+ */
+void nrfx_timer_compare_int_disable(nrfx_timer_t const * const p_instance,
+ uint32_t channel);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE uint32_t nrfx_timer_task_address_get(nrfx_timer_t const * const p_instance,
+ nrf_timer_task_t timer_task)
+{
+ return (uint32_t)nrf_timer_task_address_get(p_instance->p_reg, timer_task);
+}
+
+__STATIC_INLINE uint32_t nrfx_timer_capture_task_address_get(nrfx_timer_t const * const p_instance,
+ uint32_t channel)
+{
+ NRFX_ASSERT(channel < p_instance->cc_channel_count);
+ return (uint32_t)nrf_timer_task_address_get(p_instance->p_reg,
+ nrf_timer_capture_task_get(channel));
+}
+
+__STATIC_INLINE uint32_t nrfx_timer_event_address_get(nrfx_timer_t const * const p_instance,
+ nrf_timer_event_t timer_event)
+{
+ return (uint32_t)nrf_timer_event_address_get(p_instance->p_reg, timer_event);
+}
+
+__STATIC_INLINE uint32_t nrfx_timer_compare_event_address_get(nrfx_timer_t const * const p_instance,
+ uint32_t channel)
+{
+ NRFX_ASSERT(channel < p_instance->cc_channel_count);
+ return (uint32_t)nrf_timer_event_address_get(p_instance->p_reg,
+ nrf_timer_compare_event_get(channel));
+}
+
+__STATIC_INLINE uint32_t nrfx_timer_capture_get(nrfx_timer_t const * const p_instance,
+ nrf_timer_cc_channel_t cc_channel)
+{
+ return nrf_timer_cc_read(p_instance->p_reg, cc_channel);
+}
+
+__STATIC_INLINE uint32_t nrfx_timer_us_to_ticks(nrfx_timer_t const * const p_instance,
+ uint32_t timer_us)
+{
+ return nrf_timer_us_to_ticks(timer_us, nrf_timer_frequency_get(p_instance->p_reg));
+}
+
+__STATIC_INLINE uint32_t nrfx_timer_ms_to_ticks(nrfx_timer_t const * const p_instance,
+ uint32_t timer_ms)
+{
+ return nrf_timer_ms_to_ticks(timer_ms, nrf_timer_frequency_get(p_instance->p_reg));
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+
+void nrfx_timer_0_irq_handler(void);
+void nrfx_timer_1_irq_handler(void);
+void nrfx_timer_2_irq_handler(void);
+void nrfx_timer_3_irq_handler(void);
+void nrfx_timer_4_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_TIMER_H__
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_twi.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_twi.h
new file mode 100644
index 0000000..c5b8590
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_twi.h
@@ -0,0 +1,368 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_TWI_H__
+#define NRFX_TWI_H__
+
+#include <nrfx.h>
+#include <hal/nrf_twi.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_twi TWI driver
+ * @{
+ * @ingroup nrf_twi
+ * @brief TWI peripheral driver.
+ */
+
+/**
+ * @brief Structure for the TWI master driver instance.
+ */
+typedef struct
+{
+ NRF_TWI_Type * p_twi; ///< Pointer to a structure with TWI registers.
+ uint8_t drv_inst_idx; ///< Driver instance index.
+} nrfx_twi_t;
+
+/**
+ * @brief Macro for creating a TWI master driver instance.
+ */
+#define NRFX_TWI_INSTANCE(id) \
+{ \
+ .p_twi = NRFX_CONCAT_2(NRF_TWI, id), \
+ .drv_inst_idx = NRFX_CONCAT_3(NRFX_TWI, id, _INST_IDX), \
+}
+
+enum {
+#if NRFX_CHECK(NRFX_TWI0_ENABLED)
+ NRFX_TWI0_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_TWI1_ENABLED)
+ NRFX_TWI1_INST_IDX,
+#endif
+ NRFX_TWI_ENABLED_COUNT
+};
+
+/**
+ * @brief Structure for the TWI master driver instance configuration.
+ */
+typedef struct
+{
+ uint32_t scl; ///< SCL pin number.
+ uint32_t sda; ///< SDA pin number.
+ nrf_twi_frequency_t frequency; ///< TWI frequency.
+ uint8_t interrupt_priority; ///< Interrupt priority.
+ bool hold_bus_uninit; ///< Hold pull up state on gpio pins after uninit.
+} nrfx_twi_config_t;
+
+/**
+ * @brief TWI master driver instance default configuration.
+ */
+#define NRFX_TWI_DEFAULT_CONFIG \
+{ \
+ .frequency = (nrf_twi_frequency_t)NRFX_TWI_DEFAULT_CONFIG_FREQUENCY, \
+ .scl = 31, \
+ .sda = 31, \
+ .interrupt_priority = NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY, \
+ .hold_bus_uninit = NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT, \
+}
+
+#define NRFX_TWI_FLAG_NO_XFER_EVT_HANDLER (1UL << 2) /**< Interrupt after each transfer is suppressed, and the event handler is not called. */
+#define NRFX_TWI_FLAG_TX_NO_STOP (1UL << 5) /**< Flag indicating that the TX transfer will not end with a stop condition. */
+
+/**
+ * @brief TWI master driver event types.
+ */
+typedef enum
+{
+ NRFX_TWI_EVT_DONE, ///< Transfer completed event.
+ NRFX_TWI_EVT_ADDRESS_NACK, ///< Error event: NACK received after sending the address.
+ NRFX_TWI_EVT_DATA_NACK ///< Error event: NACK received after sending a data byte.
+} nrfx_twi_evt_type_t;
+
+/**
+ * @brief TWI master driver transfer types.
+ */
+typedef enum
+{
+ NRFX_TWI_XFER_TX, ///< TX transfer.
+ NRFX_TWI_XFER_RX, ///< RX transfer.
+ NRFX_TWI_XFER_TXRX, ///< TX transfer followed by RX transfer with repeated start.
+ NRFX_TWI_XFER_TXTX ///< TX transfer followed by TX transfer with repeated start.
+} nrfx_twi_xfer_type_t;
+
+/**
+ * @brief Structure for a TWI transfer descriptor.
+ */
+typedef struct
+{
+ nrfx_twi_xfer_type_t type; ///< Type of transfer.
+ uint8_t address; ///< Slave address.
+ size_t primary_length; ///< Number of bytes transferred.
+ size_t secondary_length; ///< Number of bytes transferred.
+ uint8_t * p_primary_buf; ///< Pointer to transferred data.
+ uint8_t * p_secondary_buf; ///< Pointer to transferred data.
+} nrfx_twi_xfer_desc_t;
+
+
+/**@brief Macro for setting the TX transfer descriptor. */
+#define NRFX_TWI_XFER_DESC_TX(addr, p_data, length) \
+ { \
+ .type = NRFX_TWI_XFER_TX, \
+ .address = addr, \
+ .primary_length = length, \
+ .p_primary_buf = p_data, \
+ }
+
+/**@brief Macro for setting the RX transfer descriptor. */
+#define NRFX_TWI_XFER_DESC_RX(addr, p_data, length) \
+ { \
+ .type = NRFX_TWI_XFER_RX, \
+ .address = addr, \
+ .primary_length = length, \
+ .p_primary_buf = p_data, \
+ }
+
+/**@brief Macro for setting the TXRX transfer descriptor. */
+#define NRFX_TWI_XFER_DESC_TXRX(addr, p_tx, tx_len, p_rx, rx_len) \
+ { \
+ .type = NRFX_TWI_XFER_TXRX, \
+ .address = addr, \
+ .primary_length = tx_len, \
+ .secondary_length = rx_len, \
+ .p_primary_buf = p_tx, \
+ .p_secondary_buf = p_rx, \
+ }
+
+/**@brief Macro for setting the TXTX transfer descriptor. */
+#define NRFX_TWI_XFER_DESC_TXTX(addr, p_tx, tx_len, p_tx2, tx_len2) \
+ { \
+ .type = NRFX_TWI_XFER_TXTX, \
+ .address = addr, \
+ .primary_length = tx_len, \
+ .secondary_length = tx_len2, \
+ .p_primary_buf = p_tx, \
+ .p_secondary_buf = p_tx2, \
+ }
+
+/**
+ * @brief Structure for a TWI event.
+ */
+typedef struct
+{
+ nrfx_twi_evt_type_t type; ///< Event type.
+ nrfx_twi_xfer_desc_t xfer_desc; ///< Transfer details.
+} nrfx_twi_evt_t;
+
+/**
+ * @brief TWI event handler prototype.
+ */
+typedef void (* nrfx_twi_evt_handler_t)(nrfx_twi_evt_t const * p_event,
+ void * p_context);
+
+/**
+ * @brief Function for initializing the TWI driver instance.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] event_handler Event handler provided by the user. If NULL, blocking mode is enabled.
+ * @param[in] p_context Context passed to event handler.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver is in invalid state.
+ * @retval NRFX_ERROR_BUSY If some other peripheral with the same
+ * instance ID is already in use. This is
+ * possible only if @ref nrfx_prs module
+ * is enabled.
+ */
+nrfx_err_t nrfx_twi_init(nrfx_twi_t const * p_instance,
+ nrfx_twi_config_t const * p_config,
+ nrfx_twi_evt_handler_t event_handler,
+ void * p_context);
+
+/**
+ * @brief Function for uninitializing the TWI instance.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_twi_uninit(nrfx_twi_t const * p_instance);
+
+/**
+ * @brief Function for enabling the TWI instance.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_twi_enable(nrfx_twi_t const * p_instance);
+
+/**
+ * @brief Function for disabling the TWI instance.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_twi_disable(nrfx_twi_t const * p_instance);
+
+/**
+ * @brief Function for sending data to a TWI slave.
+ *
+ * The transmission will be stopped when an error occurs. If a transfer is ongoing,
+ * the function returns the error code @ref NRFX_ERROR_BUSY.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] address Address of a specific slave device (only 7 LSB).
+ * @param[in] p_data Pointer to a transmit buffer.
+ * @param[in] length Number of bytes to send.
+ * @param[in] no_stop If set, the stop condition is not generated on the bus
+ * after the transfer has completed successfully (allowing
+ * for a repeated start in the next transfer).
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_BUSY If the driver is not ready for a new transfer.
+ * @retval NRFX_ERROR_INTERNAL If an error was detected by hardware.
+ * @retval NRFX_ERROR_DRV_TWI_ERR_ANACK If NACK received after sending the address in polling mode.
+ * @retval NRFX_ERROR_DRV_TWI_ERR_DNACK If NACK received after sending a data byte in polling mode.
+ */
+nrfx_err_t nrfx_twi_tx(nrfx_twi_t const * p_instance,
+ uint8_t address,
+ uint8_t const * p_data,
+ size_t length,
+ bool no_stop);
+
+/**
+ * @brief Function for reading data from a TWI slave.
+ *
+ * The transmission will be stopped when an error occurs. If a transfer is ongoing,
+ * the function returns the error code @ref NRFX_ERROR_BUSY.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] address Address of a specific slave device (only 7 LSB).
+ * @param[in] p_data Pointer to a receive buffer.
+ * @param[in] length Number of bytes to be received.
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_BUSY If the driver is not ready for a new transfer.
+ * @retval NRFX_ERROR_INTERNAL If an error was detected by hardware.
+ * @retval NRFX_ERROR_DRV_TWI_ERR_OVERRUN If the unread data was replaced by new data
+ * @retval NRFX_ERROR_DRV_TWI_ERR_ANACK If NACK received after sending the address in polling mode.
+ * @retval NRFX_ERROR_DRV_TWI_ERR_DNACK If NACK received after sending a data byte in polling mode.
+ */
+nrfx_err_t nrfx_twi_rx(nrfx_twi_t const * p_instance,
+ uint8_t address,
+ uint8_t * p_data,
+ size_t length);
+
+/**
+ * @brief Function for preparing a TWI transfer.
+ *
+ * The following transfer types can be configured (@ref nrfx_twi_xfer_desc_t::type):
+ * - @ref NRFX_TWI_XFER_TXRX<span></span>: Write operation followed by a read operation (without STOP condition in between).
+ * - @ref NRFX_TWI_XFER_TXTX<span></span>: Write operation followed by a write operation (without STOP condition in between).
+ * - @ref NRFX_TWI_XFER_TX<span></span>: Write operation (with or without STOP condition).
+ * - @ref NRFX_TWI_XFER_RX<span></span>: Read operation (with STOP condition).
+ *
+ * @note TXRX and TXTX transfers are supported only in non-blocking mode.
+ *
+ * Additional options are provided using the flags parameter:
+ * - @ref NRFX_TWI_FLAG_NO_XFER_EVT_HANDLER<span></span>: No user event handler after transfer completion. In most cases, this also means no interrupt at the end of the transfer.
+ * - @ref NRFX_TWI_FLAG_TX_NO_STOP<span></span>: No stop condition after TX transfer.
+ *
+ * @note
+ * Some flag combinations are invalid:
+ * - @ref NRFX_TWI_FLAG_TX_NO_STOP with @ref nrfx_twi_xfer_desc_t::type different than @ref NRFX_TWI_XFER_TX
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_xfer_desc Pointer to the transfer descriptor.
+ * @param[in] flags Transfer options (0 for default settings).
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_BUSY If the driver is not ready for a new transfer.
+ * @retval NRFX_ERROR_NOT_SUPPORTED If the provided parameters are not supported.
+ * @retval NRFX_ERROR_INTERNAL If an error was detected by hardware.
+ * @retval NRFX_ERROR_DRV_TWI_ERR_OVERRUN If the unread data was replaced by new data (TXRX and RX)
+ * @retval NRFX_ERROR_DRV_TWI_ERR_ANACK If NACK received after sending the address.
+ * @retval NRFX_ERROR_DRV_TWI_ERR_DNACK If NACK received after sending a data byte.
+ */
+nrfx_err_t nrfx_twi_xfer(nrfx_twi_t const * p_instance,
+ nrfx_twi_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags);
+
+/**
+ * @brief Function for checking the TWI driver state.
+ *
+ * @param[in] p_instance TWI instance.
+ *
+ * @retval true If the TWI driver is currently busy performing a transfer.
+ * @retval false If the TWI driver is ready for a new transfer.
+ */
+bool nrfx_twi_is_busy(nrfx_twi_t const * p_instance);
+
+/**
+ * @brief Function for getting the transferred data count.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @return Data count.
+ */
+size_t nrfx_twi_data_count_get(nrfx_twi_t const * const p_instance);
+
+/**
+ * @brief Function for returning the address of a STOPPED TWI event.
+ *
+ * A STOPPED event can be used to detect the end of a transfer if the @ref NRFX_TWI_FLAG_NO_XFER_EVT_HANDLER
+ * option is used.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @return STOPPED event address.
+ */
+uint32_t nrfx_twi_stopped_event_get(nrfx_twi_t const * p_instance);
+
+void nrfx_twi_0_irq_handler(void);
+void nrfx_twi_1_irq_handler(void);
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_TWI_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_twim.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_twim.h
new file mode 100644
index 0000000..0b1be22
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_twim.h
@@ -0,0 +1,408 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_TWIM_H__
+#define NRFX_TWIM_H__
+
+#include <nrfx.h>
+#include <hal/nrf_twim.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_twim TWIM driver
+ * @{
+ * @ingroup nrf_twim
+ * @brief TWIM peripheral driver.
+ */
+
+/**
+ * @brief Structure for the TWI master driver instance.
+ */
+typedef struct
+{
+ NRF_TWIM_Type * p_twim; ///< Pointer to a structure with TWIM registers.
+ uint8_t drv_inst_idx; ///< Driver instance index.
+} nrfx_twim_t;
+
+/**
+ * @brief Macro for creating a TWI master driver instance.
+ */
+#define NRFX_TWIM_INSTANCE(id) \
+{ \
+ .p_twim = NRFX_CONCAT_2(NRF_TWIM, id), \
+ .drv_inst_idx = NRFX_CONCAT_3(NRFX_TWIM, id, _INST_IDX), \
+}
+
+enum {
+#if NRFX_CHECK(NRFX_TWIM0_ENABLED)
+ NRFX_TWIM0_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_TWIM1_ENABLED)
+ NRFX_TWIM1_INST_IDX,
+#endif
+ NRFX_TWIM_ENABLED_COUNT
+};
+
+/**
+ * @brief Structure for the TWI master driver instance configuration.
+ */
+typedef struct
+{
+ uint32_t scl; ///< SCL pin number.
+ uint32_t sda; ///< SDA pin number.
+ nrf_twim_frequency_t frequency; ///< TWIM frequency.
+ uint8_t interrupt_priority; ///< Interrupt priority.
+ bool hold_bus_uninit; ///< Hold pull up state on gpio pins after uninit.
+} nrfx_twim_config_t;
+
+/**
+ * @brief TWI master driver instance default configuration.
+ */
+#define NRFX_TWIM_DEFAULT_CONFIG \
+{ \
+ .frequency = (nrf_twim_frequency_t)NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY, \
+ .scl = 31, \
+ .sda = 31, \
+ .interrupt_priority = NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY, \
+ .hold_bus_uninit = NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT, \
+}
+
+#define NRFX_TWIM_FLAG_TX_POSTINC (1UL << 0) /**< TX buffer address incremented after transfer. */
+#define NRFX_TWIM_FLAG_RX_POSTINC (1UL << 1) /**< RX buffer address incremented after transfer. */
+#define NRFX_TWIM_FLAG_NO_XFER_EVT_HANDLER (1UL << 2) /**< Interrupt after each transfer is suppressed, and the event handler is not called. */
+#define NRFX_TWIM_FLAG_HOLD_XFER (1UL << 3) /**< Set up the transfer but do not start it. */
+#define NRFX_TWIM_FLAG_REPEATED_XFER (1UL << 4) /**< Flag indicating that the transfer will be executed multiple times. */
+#define NRFX_TWIM_FLAG_TX_NO_STOP (1UL << 5) /**< Flag indicating that the TX transfer will not end with a stop condition. */
+
+/**
+ * @brief TWI master driver event types.
+ */
+typedef enum
+{
+ NRFX_TWIM_EVT_DONE, ///< Transfer completed event.
+ NRFX_TWIM_EVT_ADDRESS_NACK, ///< Error event: NACK received after sending the address.
+ NRFX_TWIM_EVT_DATA_NACK ///< Error event: NACK received after sending a data byte.
+} nrfx_twim_evt_type_t;
+
+/**
+ * @brief TWI master driver transfer types.
+ */
+typedef enum
+{
+ NRFX_TWIM_XFER_TX, ///< TX transfer.
+ NRFX_TWIM_XFER_RX, ///< RX transfer.
+ NRFX_TWIM_XFER_TXRX, ///< TX transfer followed by RX transfer with repeated start.
+ NRFX_TWIM_XFER_TXTX ///< TX transfer followed by TX transfer with repeated start.
+} nrfx_twim_xfer_type_t;
+
+/**
+ * @brief Structure for a TWI transfer descriptor.
+ */
+typedef struct
+{
+ nrfx_twim_xfer_type_t type; ///< Type of transfer.
+ uint8_t address; ///< Slave address.
+ size_t primary_length; ///< Number of bytes transferred.
+ size_t secondary_length; ///< Number of bytes transferred.
+ uint8_t * p_primary_buf; ///< Pointer to transferred data.
+ uint8_t * p_secondary_buf; ///< Pointer to transferred data.
+} nrfx_twim_xfer_desc_t;
+
+
+/**@brief Macro for setting the TX transfer descriptor. */
+#define NRFX_TWIM_XFER_DESC_TX(addr, p_data, length) \
+ { \
+ .type = NRFX_TWIM_XFER_TX, \
+ .address = addr, \
+ .primary_length = length, \
+ .p_primary_buf = p_data, \
+ }
+
+/**@brief Macro for setting the RX transfer descriptor. */
+#define NRFX_TWIM_XFER_DESC_RX(addr, p_data, length) \
+ { \
+ .type = NRFX_TWIM_XFER_RX, \
+ .address = addr, \
+ .primary_length = length, \
+ .p_primary_buf = p_data, \
+ }
+
+/**@brief Macro for setting the TXRX transfer descriptor. */
+#define NRFX_TWIM_XFER_DESC_TXRX(addr, p_tx, tx_len, p_rx, rx_len) \
+ { \
+ .type = NRFX_TWIM_XFER_TXRX, \
+ .address = addr, \
+ .primary_length = tx_len, \
+ .secondary_length = rx_len, \
+ .p_primary_buf = p_tx, \
+ .p_secondary_buf = p_rx, \
+ }
+
+/**@brief Macro for setting the TXTX transfer descriptor. */
+#define NRFX_TWIM_XFER_DESC_TXTX(addr, p_tx, tx_len, p_tx2, tx_len2) \
+ { \
+ .type = NRFX_TWIM_XFER_TXTX, \
+ .address = addr, \
+ .primary_length = tx_len, \
+ .secondary_length = tx_len2, \
+ .p_primary_buf = p_tx, \
+ .p_secondary_buf = p_tx2, \
+ }
+
+/**
+ * @brief Structure for a TWI event.
+ */
+typedef struct
+{
+ nrfx_twim_evt_type_t type; ///< Event type.
+ nrfx_twim_xfer_desc_t xfer_desc; ///< Transfer details.
+} nrfx_twim_evt_t;
+
+/**
+ * @brief TWI event handler prototype.
+ */
+typedef void (* nrfx_twim_evt_handler_t)(nrfx_twim_evt_t const * p_event,
+ void * p_context);
+
+/**
+ * @brief Function for initializing the TWI driver instance.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] event_handler Event handler provided by the user. If NULL, blocking mode is enabled.
+ * @param[in] p_context Context passed to event handler.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver is in invalid state.
+ * @retval NRFX_ERROR_BUSY If some other peripheral with the same
+ * instance ID is already in use. This is
+ * possible only if @ref nrfx_prs module
+ * is enabled.
+ */
+nrfx_err_t nrfx_twim_init(nrfx_twim_t const * p_instance,
+ nrfx_twim_config_t const * p_config,
+ nrfx_twim_evt_handler_t event_handler,
+ void * p_context);
+
+/**
+ * @brief Function for uninitializing the TWI instance.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_twim_uninit(nrfx_twim_t const * p_instance);
+
+/**
+ * @brief Function for enabling the TWI instance.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_twim_enable(nrfx_twim_t const * p_instance);
+
+/**
+ * @brief Function for disabling the TWI instance.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_twim_disable(nrfx_twim_t const * p_instance);
+
+/**
+ * @brief Function for sending data to a TWI slave.
+ *
+ * The transmission will be stopped when an error occurs. If a transfer is ongoing,
+ * the function returns the error code @ref NRFX_ERROR_BUSY.
+ *
+ * @note Peripherals using EasyDMA (including TWIM) require the transfer buffers
+ * to be placed in the Data RAM region. If this condition is not met,
+ * this function will fail with the error code NRFX_ERROR_INVALID_ADDR.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] address Address of a specific slave device (only 7 LSB).
+ * @param[in] p_data Pointer to a transmit buffer.
+ * @param[in] length Number of bytes to send. Maximum possible length is
+ * dependent on the used SoC (see the MAXCNT register
+ * description in the Product Specification). The driver
+ * checks it with assertion.
+ * @param[in] no_stop If set, the stop condition is not generated on the bus
+ * after the transfer has completed successfully (allowing
+ * for a repeated start in the next transfer).
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_BUSY If the driver is not ready for a new transfer.
+ * @retval NRFX_ERROR_INTERNAL If an error was detected by hardware.
+ * @retval NRFX_ERROR_INVALID_ADDR If the provided buffer is not placed in the Data RAM region.
+ * @retval NRFX_ERROR_DRV_TWI_ERR_ANACK If NACK received after sending the address in polling mode.
+ * @retval NRFX_ERROR_DRV_TWI_ERR_DNACK If NACK received after sending a data byte in polling mode.
+ */
+nrfx_err_t nrfx_twim_tx(nrfx_twim_t const * p_instance,
+ uint8_t address,
+ uint8_t const * p_data,
+ size_t length,
+ bool no_stop);
+
+/**
+ * @brief Function for reading data from a TWI slave.
+ *
+ * The transmission will be stopped when an error occurs. If a transfer is ongoing,
+ * the function returns the error code @ref NRFX_ERROR_BUSY.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] address Address of a specific slave device (only 7 LSB).
+ * @param[in] p_data Pointer to a receive buffer.
+ * @param[in] length Number of bytes to be received. Maximum possible length
+ * is dependent on the used SoC (see the MAXCNT register
+ * description in the Product Specification). The driver
+ * checks it with assertion.
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_BUSY If the driver is not ready for a new transfer.
+ * @retval NRFX_ERROR_INTERNAL If an error was detected by hardware.
+ * @retval NRFX_ERROR_DRV_TWI_ERR_ANACK If NACK received after sending the address in polling mode.
+ * @retval NRFX_ERROR_DRV_TWI_ERR_DNACK If NACK received after sending a data byte in polling mode.
+ */
+nrfx_err_t nrfx_twim_rx(nrfx_twim_t const * p_instance,
+ uint8_t address,
+ uint8_t * p_data,
+ size_t length);
+
+/**
+ * @brief Function for preparing a TWI transfer.
+ *
+ * The following transfer types can be configured (@ref nrfx_twim_xfer_desc_t::type):
+ * - @ref NRFX_TWIM_XFER_TXRX<span></span>: Write operation followed by a read operation (without STOP condition in between).
+ * - @ref NRFX_TWIM_XFER_TXTX<span></span>: Write operation followed by a write operation (without STOP condition in between).
+ * - @ref NRFX_TWIM_XFER_TX<span></span>: Write operation (with or without STOP condition).
+ * - @ref NRFX_TWIM_XFER_RX<span></span>: Read operation (with STOP condition).
+ *
+ * @note TXRX and TXTX transfers are supported only in non-blocking mode.
+ *
+ * Additional options are provided using the flags parameter:
+ * - @ref NRFX_TWIM_FLAG_TX_POSTINC and @ref NRFX_TWIM_FLAG_RX_POSTINC<span></span>: Post-incrementation of buffer addresses. Supported only by TWIM.
+ * - @ref NRFX_TWIM_FLAG_NO_XFER_EVT_HANDLER<span></span>: No user event handler after transfer completion. In most cases, this also means no interrupt at the end of the transfer.
+ * - @ref NRFX_TWIM_FLAG_HOLD_XFER<span></span>: Driver is not starting the transfer. Use this flag if the transfer is triggered externally by PPI. Supported only by TWIM.
+ * Use @ref nrfx_twim_start_task_get to get the address of the start task.
+ * - @ref NRFX_TWIM_FLAG_REPEATED_XFER<span></span>: Prepare for repeated transfers. You can set up a number of transfers that will be triggered externally (for example by PPI).
+ * An example is a TXRX transfer with the options @ref NRFX_TWIM_FLAG_RX_POSTINC, @ref NRFX_TWIM_FLAG_NO_XFER_EVT_HANDLER, and @ref NRFX_TWIM_FLAG_REPEATED_XFER.
+ * After the transfer is set up, a set of transfers can be triggered by PPI that will read, for example, the same register of an
+ * external component and put it into a RAM buffer without any interrupts. @ref nrfx_twim_stopped_event_get can be used to get the
+ * address of the STOPPED event, which can be used to count the number of transfers. If @ref NRFX_TWIM_FLAG_REPEATED_XFER is used,
+ * the driver does not set the driver instance into busy state, so you must ensure that the next transfers are set up
+ * when TWIM is not active. Supported only by TWIM.
+ * - @ref NRFX_TWIM_FLAG_TX_NO_STOP<span></span>: No stop condition after TX transfer.
+ *
+ * @note
+ * Some flag combinations are invalid:
+ * - @ref NRFX_TWIM_FLAG_TX_NO_STOP with @ref nrfx_twim_xfer_desc_t::type different than @ref NRFX_TWIM_XFER_TX
+ * - @ref NRFX_TWIM_FLAG_REPEATED_XFER with @ref nrfx_twim_xfer_desc_t::type set to @ref NRFX_TWIM_XFER_TXTX
+ *
+ * If @ref nrfx_twim_xfer_desc_t::type is set to @ref NRFX_TWIM_XFER_TX and the @ref NRFX_TWIM_FLAG_TX_NO_STOP and @ref NRFX_TWIM_FLAG_REPEATED_XFER
+ * flags are set, two tasks must be used to trigger a transfer: TASKS_RESUME followed by TASKS_STARTTX. If no stop condition is generated,
+ * TWIM is in SUSPENDED state. Therefore, it must be resumed before the transfer can be started.
+ *
+ * @note Peripherals using EasyDMA (including TWIM) require the transfer buffers
+ * to be placed in the Data RAM region. If this condition is not met,
+ * this function will fail with the error code NRFX_ERROR_INVALID_ADDR.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_xfer_desc Pointer to the transfer descriptor.
+ * @param[in] flags Transfer options (0 for default settings).
+ *
+ * @retval NRFX_SUCCESS If the procedure was successful.
+ * @retval NRFX_ERROR_BUSY If the driver is not ready for a new transfer.
+ * @retval NRFX_ERROR_NOT_SUPPORTED If the provided parameters are not supported.
+ * @retval NRFX_ERROR_INTERNAL If an error was detected by hardware.
+ * @retval NRFX_ERROR_INVALID_ADDR If the provided buffers are not placed in the Data RAM region.
+ * @retval NRFX_ERROR_DRV_TWI_ERR_ANACK If NACK received after sending the address.
+ * @retval NRFX_ERROR_DRV_TWI_ERR_DNACK If NACK received after sending a data byte.
+ */
+nrfx_err_t nrfx_twim_xfer(nrfx_twim_t const * p_instance,
+ nrfx_twim_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags);
+
+/**
+ * @brief Function for checking the TWI driver state.
+ *
+ * @param[in] p_instance TWI instance.
+ *
+ * @retval true If the TWI driver is currently busy performing a transfer.
+ * @retval false If the TWI driver is ready for a new transfer.
+ */
+bool nrfx_twim_is_busy(nrfx_twim_t const * p_instance);
+
+
+/**
+ * @brief Function for returning the address of a TWIM start task.
+ *
+ * This function should be used if @ref nrfx_twim_xfer was called with the flag @ref NRFX_TWIM_FLAG_HOLD_XFER.
+ * In that case, the transfer is not started by the driver, but it must be started externally by PPI.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] xfer_type Transfer type used in the last call of the @ref nrfx_twim_xfer function.
+ *
+ * @return Start task address (TX or RX) depending on the value of xfer_type.
+ */
+uint32_t nrfx_twim_start_task_get(nrfx_twim_t const * p_instance, nrfx_twim_xfer_type_t xfer_type);
+
+/**
+ * @brief Function for returning the address of a STOPPED TWIM event.
+ *
+ * A STOPPED event can be used to detect the end of a transfer if the @ref NRFX_TWIM_FLAG_NO_XFER_EVT_HANDLER
+ * option is used.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @return STOPPED event address.
+ */
+uint32_t nrfx_twim_stopped_event_get(nrfx_twim_t const * p_instance);
+
+
+void nrfx_twim_0_irq_handler(void);
+void nrfx_twim_1_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_TWIM_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_twis.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_twis.h
new file mode 100644
index 0000000..5630868
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_twis.h
@@ -0,0 +1,405 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_TWIS_H__
+#define NRFX_TWIS_H__
+
+#include <nrfx.h>
+#include <hal/nrf_twis.h>
+#include <hal/nrf_gpio.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_twis TWIS driver
+ * @{
+ * @ingroup nrf_twis
+ * @brief Two Wire Slave interface (TWIS) peripheral driver.
+ */
+
+/**
+ * @brief TWIS driver instance data structure.
+ */
+typedef struct
+{
+ NRF_TWIS_Type * p_reg; ///< Pointer to a structure with TWIS registers.
+ uint8_t drv_inst_idx; ///< Driver instance index.
+} nrfx_twis_t;
+
+enum {
+#if NRFX_CHECK(NRFX_TWIS0_ENABLED)
+ NRFX_TWIS0_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_TWIS1_ENABLED)
+ NRFX_TWIS1_INST_IDX,
+#endif
+ NRFX_TWIS_ENABLED_COUNT
+};
+
+/**
+ * @brief Macro for creating a TWIS driver instance.
+ */
+#define NRFX_TWIS_INSTANCE(id) \
+{ \
+ .p_reg = NRFX_CONCAT_2(NRF_TWIS, id), \
+ .drv_inst_idx = NRFX_CONCAT_3(NRFX_TWIS, id, _INST_IDX), \
+}
+
+/**
+ * @brief Event callback function event definitions.
+ */
+typedef enum
+{
+ NRFX_TWIS_EVT_READ_REQ, ///< Read request detected.
+ /**< If there is no buffer prepared, buf_req flag in the even will be set.
+ Call then @ref nrfx_twis_tx_prepare to give parameters for buffer.
+ */
+ NRFX_TWIS_EVT_READ_DONE, ///< Read request has finished - free any data.
+ NRFX_TWIS_EVT_READ_ERROR, ///< Read request finished with error.
+ NRFX_TWIS_EVT_WRITE_REQ, ///< Write request detected.
+ /**< If there is no buffer prepared, buf_req flag in the even will be set.
+ Call then @ref nrfx_twis_rx_prepare to give parameters for buffer.
+ */
+ NRFX_TWIS_EVT_WRITE_DONE, ///< Write request has finished - process data.
+ NRFX_TWIS_EVT_WRITE_ERROR, ///< Write request finished with error.
+ NRFX_TWIS_EVT_GENERAL_ERROR ///< Error that happens not inside WRITE or READ transaction.
+} nrfx_twis_evt_type_t;
+
+/**
+ * @brief Possible error sources.
+ *
+ * This is flag enum - values from this enum can be connected using logical or operator.
+ * @note
+ * We could use directly @ref nrf_twis_error_t. Error type enum is redefined here because
+ * of possible future extension (eg. supporting timeouts and synchronous mode).
+ */
+typedef enum
+{
+ NRFX_TWIS_ERROR_OVERFLOW = NRF_TWIS_ERROR_OVERFLOW, /**< RX buffer overflow detected, and prevented. */
+ NRFX_TWIS_ERROR_DATA_NACK = NRF_TWIS_ERROR_DATA_NACK, /**< NACK sent after receiving a data byte. */
+ NRFX_TWIS_ERROR_OVERREAD = NRF_TWIS_ERROR_OVERREAD, /**< TX buffer over-read detected, and prevented. */
+ NRFX_TWIS_ERROR_UNEXPECTED_EVENT = 1 << 8 /**< Unexpected event detected by state machine. */
+} nrfx_twis_error_t;
+
+/**
+ * @brief TWIS driver event structure.
+ */
+typedef struct
+{
+ nrfx_twis_evt_type_t type; ///< Event type.
+ union
+ {
+ bool buf_req; ///< Flag for @ref NRFX_TWIS_EVT_READ_REQ and @ref NRFX_TWIS_EVT_WRITE_REQ.
+ /**< Information if transmission buffer requires to be prepared. */
+ uint32_t tx_amount; ///< Data for @ref NRFX_TWIS_EVT_READ_DONE.
+ uint32_t rx_amount; ///< Data for @ref NRFX_TWIS_EVT_WRITE_DONE.
+ uint32_t error; ///< Data for @ref NRFX_TWIS_EVT_GENERAL_ERROR.
+ } data;
+} nrfx_twis_evt_t;
+
+/**
+ * @brief TWI slave event callback function type.
+ *
+ * @param[in] p_event Event information structure.
+ */
+typedef void (*nrfx_twis_event_handler_t)(nrfx_twis_evt_t const * p_event);
+
+/**
+ * @brief Structure for TWIS configuration.
+ */
+typedef struct
+{
+ uint32_t addr[2]; //!< Set addresses that this slave should respond. Set 0 to disable.
+ uint32_t scl; //!< SCL pin number.
+ uint32_t sda; //!< SDA pin number.
+ nrf_gpio_pin_pull_t scl_pull; //!< SCL pin pull.
+ nrf_gpio_pin_pull_t sda_pull; //!< SDA pin pull.
+ uint8_t interrupt_priority; //!< The priority of interrupt for the module to set.
+} nrfx_twis_config_t;
+
+/**
+ * @brief Generate default configuration for TWIS driver instance.
+ */
+#define NRFX_TWIS_DEFAULT_CONFIG \
+{ \
+ .addr = { NRFX_TWIS_DEFAULT_CONFIG_ADDR0, \
+ NRFX_TWIS_DEFAULT_CONFIG_ADDR1 }, \
+ .scl = 31, \
+ .scl_pull = (nrf_gpio_pin_pull_t)NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL, \
+ .sda = 31, \
+ .sda_pull = (nrf_gpio_pin_pull_t)NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL, \
+ .interrupt_priority = NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY \
+}
+
+/**
+ * @brief Function for initializing the TWIS driver instance.
+ *
+ * Function initializes and enables TWIS driver.
+ * @attention After driver initialization enable it by @ref nrfx_twis_enable.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @attention @em p_instance has to be global object.
+ * It would be used by interrupts so make it sure that object
+ * would not be destroyed when function is leaving.
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] event_handler Event handler provided by the user.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If the driver is already initialized.
+ * @retval NRFX_ERROR_BUSY If some other peripheral with the same
+ * instance ID is already in use. This is
+ * possible only if NRFX_PRS_ENABLED
+ * is set to a value other than zero.
+ */
+nrfx_err_t nrfx_twis_init(nrfx_twis_t const * p_instance,
+ nrfx_twis_config_t const * p_config,
+ nrfx_twis_event_handler_t event_handler);
+
+/**
+ * @brief Function for uninitializing the TWIS driver instance.
+ *
+ * Function initializes the peripheral and resets all registers to default values.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @note
+ * It is safe to call nrfx_twis_uninit even before initialization.
+ * Actually @ref nrfx_twis_init function calls this function to
+ * make sure that TWIS state is known.
+ * @note
+ * If TWIS driver was in uninitialized state before calling this function,
+ * selected pins would not be reset to default configuration.
+ */
+void nrfx_twis_uninit(nrfx_twis_t const * p_instance);
+
+/**
+ * @brief Enable TWIS instance.
+ *
+ * This function enables TWIS instance.
+ * Function defined if there is needs for dynamically enabling and disabling the peripheral.
+ * Use @ref nrfx_twis_enable and @ref nrfx_twis_disable functions.
+ * They do not change any configuration registers.
+ *
+ * @param p_instance Pointer to the driver instance structure.
+ */
+void nrfx_twis_enable(nrfx_twis_t const * p_instance);
+
+/**
+ * @brief Disable TWIS instance.
+ *
+ * Disabling TWIS instance gives possibility to turn off the TWIS while
+ * holding configuration done by @ref nrfx_twis_init.
+ *
+ * @param p_instance Pointer to the driver instance structure.
+ */
+void nrfx_twis_disable(nrfx_twis_t const * p_instance);
+
+/**
+ * @brief Get and clear last error flags.
+ *
+ * Function gets information about errors.
+ * This is also the only possibility to exit from error substate of the internal state machine.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @return Error flags defined in @ref nrfx_twis_error_t.
+ * @attention
+ * This function clears error state and flags.
+ */
+uint32_t nrfx_twis_error_get_and_clear(nrfx_twis_t const * p_instance);
+
+
+/**
+ * @brief Prepare data for sending.
+ *
+ * This function should be used in response for @ref NRFX_TWIS_EVT_READ_REQ event.
+ *
+ * @note Peripherals using EasyDMA (including TWIS) require the transfer buffers
+ * to be placed in the Data RAM region. If this condition is not met,
+ * this function will fail with the error code NRFX_ERROR_INVALID_ADDR.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_buf Transmission buffer.
+ * @attention Transmission buffer has to be placed in RAM.
+ * @param size Maximum number of bytes that master may read from buffer given.
+ *
+ * @retval NRFX_SUCCESS Preparation finished properly.
+ * @retval NRFX_ERROR_INVALID_ADDR Given @em p_buf is not placed inside the RAM.
+ * @retval NRFX_ERROR_INVALID_LENGTH Wrong value in @em size parameter.
+ * @retval NRFX_ERROR_INVALID_STATE Module not initialized or not enabled.
+ */
+nrfx_err_t nrfx_twis_tx_prepare(nrfx_twis_t const * p_instance,
+ void const * p_buf,
+ size_t size);
+
+/**
+ * @brief Get number of transmitted bytes.
+ *
+ * Function returns number of bytes sent.
+ * This function may be called after @ref NRFX_TWIS_EVT_READ_DONE or @ref NRFX_TWIS_EVT_READ_ERROR events.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @return Number of bytes sent.
+ */
+__STATIC_INLINE size_t nrfx_twis_tx_amount(nrfx_twis_t const * p_instance);
+
+/**
+ * @brief Prepare data for receiving
+ *
+ * This function should be used in response for @ref NRFX_TWIS_EVT_WRITE_REQ event.
+ *
+ * @note Peripherals using EasyDMA (including TWIS) require the transfer buffers
+ * to be placed in the Data RAM region. If this condition is not met,
+ * this function will fail with the error code NRFX_ERROR_INVALID_ADDR.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_buf Buffer that would be filled with received data.
+ * @attention Receiving buffer has to be placed in RAM.
+ * @param size Size of the buffer (maximum amount of data to receive).
+ *
+ * @retval NRFX_SUCCESS Preparation finished properly.
+ * @retval NRFX_ERROR_INVALID_ADDR Given @em p_buf is not placed inside the RAM.
+ * @retval NRFX_ERROR_INVALID_LENGTH Wrong value in @em size parameter.
+ * @retval NRFX_ERROR_INVALID_STATE Module not initialized or not enabled.
+ */
+nrfx_err_t nrfx_twis_rx_prepare(nrfx_twis_t const * p_instance,
+ void * p_buf,
+ size_t size);
+
+/**
+ * @brief Get number of received bytes.
+ *
+ * Function returns number of bytes received.
+ * This function may be called after @ref NRFX_TWIS_EVT_WRITE_DONE or @ref NRFX_TWIS_EVT_WRITE_ERROR events.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @return Number of bytes received.
+ */
+__STATIC_INLINE size_t nrfx_twis_rx_amount(nrfx_twis_t const * p_instance);
+
+/**
+ * @brief Function checks if driver is busy right now.
+ *
+ * Actual driver substate is tested.
+ * If driver is in any other state than IDLE or ERROR this function returns true.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval true Driver is in state other than ERROR or IDLE.
+ * @retval false There is no transmission pending.
+ */
+bool nrfx_twis_is_busy(nrfx_twis_t const * p_instance);
+
+/**
+ * @brief Function checks if driver is waiting for tx buffer.
+ *
+ * If this function returns true, it means that driver is stalled expecting
+ * of the @ref nrfx_twis_tx_prepare function call.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval true Driver waits for @ref nrfx_twis_tx_prepare.
+ * @retval false Driver is not in the state where it waits for preparing tx buffer.
+ */
+bool nrfx_twis_is_waiting_tx_buff(nrfx_twis_t const * p_instance);
+
+/**
+ * @brief Function checks if driver is waiting for rx buffer.
+ *
+ * If this function returns true, it means that driver is staled expecting
+ * of the @ref nrfx_twis_rx_prepare function call.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval true Driver waits for @ref nrfx_twis_rx_prepare.
+ * @retval false Driver is not in the state where it waits for preparing rx buffer.
+ */
+bool nrfx_twis_is_waiting_rx_buff(nrfx_twis_t const * p_instance);
+
+/**
+ * @brief Check if driver is sending data.
+ *
+ * If this function returns true, it means that there is ongoing output transmission.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval true There is ongoing output transmission.
+ * @retval false Driver is in other state.
+ */
+bool nrfx_twis_is_pending_tx(nrfx_twis_t const * p_instance);
+
+/**
+ * @brief Check if driver is receiving data.
+ *
+ * If this function returns true, it means that there is ongoing input transmission.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval true There is ongoing input transmission.
+ * @retval false Driver is in other state.
+ */
+bool nrfx_twis_is_pending_rx(nrfx_twis_t const * p_instance);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+__STATIC_INLINE size_t nrfx_twis_tx_amount(nrfx_twis_t const * p_instance)
+{
+ return nrf_twis_tx_amount_get(p_instance->p_reg);
+}
+
+__STATIC_INLINE size_t nrfx_twis_rx_amount(nrfx_twis_t const * p_instance)
+{
+ return nrf_twis_rx_amount_get(p_instance->p_reg);
+}
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+
+void nrfx_twis_0_irq_handler(void);
+void nrfx_twis_1_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_TWIS_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_uart.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_uart.h
new file mode 100644
index 0000000..d55beb7
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_uart.h
@@ -0,0 +1,365 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_UART_H__
+#define NRFX_UART_H__
+
+#include <nrfx.h>
+#include <hal/nrf_uart.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_uart UART driver
+ * @{
+ * @ingroup nrf_uart
+ * @brief UART peripheral driver.
+ */
+
+/**
+ * @brief UART driver instance data structure.
+ */
+typedef struct
+{
+ NRF_UART_Type * p_reg; ///< Pointer to a structure with UART registers.
+ uint8_t drv_inst_idx; ///< Driver instance index.
+} nrfx_uart_t;
+
+enum {
+#if NRFX_CHECK(NRFX_UART0_ENABLED)
+ NRFX_UART0_INST_IDX,
+#endif
+ NRFX_UART_ENABLED_COUNT
+};
+
+/**
+ * @brief Macro for creating a UART driver instance.
+ */
+#define NRFX_UART_INSTANCE(id) \
+{ \
+ .p_reg = NRFX_CONCAT_2(NRF_UART, id), \
+ .drv_inst_idx = NRFX_CONCAT_3(NRFX_UART, id, _INST_IDX), \
+}
+
+/**
+ * @brief Types of UART driver events.
+ */
+typedef enum
+{
+ NRFX_UART_EVT_TX_DONE, ///< Requested TX transfer completed.
+ NRFX_UART_EVT_RX_DONE, ///< Requested RX transfer completed.
+ NRFX_UART_EVT_ERROR, ///< Error reported by UART peripheral.
+} nrfx_uart_evt_type_t;
+
+/**
+ * @brief Structure for UART configuration.
+ */
+typedef struct
+{
+ uint32_t pseltxd; ///< TXD pin number.
+ uint32_t pselrxd; ///< RXD pin number.
+ uint32_t pselcts; ///< CTS pin number.
+ uint32_t pselrts; ///< RTS pin number.
+ void * p_context; ///< Context passed to interrupt handler.
+ nrf_uart_hwfc_t hwfc; ///< Flow control configuration.
+ nrf_uart_parity_t parity; ///< Parity configuration.
+ nrf_uart_baudrate_t baudrate; ///< Baudrate.
+ uint8_t interrupt_priority; ///< Interrupt priority.
+} nrfx_uart_config_t;
+
+/**
+ * @brief UART default configuration.
+ */
+#define NRFX_UART_DEFAULT_CONFIG \
+{ \
+ .pseltxd = NRF_UART_PSEL_DISCONNECTED, \
+ .pselrxd = NRF_UART_PSEL_DISCONNECTED, \
+ .pselcts = NRF_UART_PSEL_DISCONNECTED, \
+ .pselrts = NRF_UART_PSEL_DISCONNECTED, \
+ .p_context = NULL, \
+ .hwfc = (nrf_uart_hwfc_t)NRFX_UART_DEFAULT_CONFIG_HWFC, \
+ .parity = (nrf_uart_parity_t)NRFX_UART_DEFAULT_CONFIG_PARITY, \
+ .baudrate = (nrf_uart_baudrate_t)NRFX_UART_DEFAULT_CONFIG_BAUDRATE, \
+ .interrupt_priority = NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY, \
+}
+
+/**
+ * @brief Structure for UART transfer completion event.
+ */
+typedef struct
+{
+ uint8_t * p_data; ///< Pointer to memory used for transfer.
+ uint32_t bytes; ///< Number of bytes transfered.
+} nrfx_uart_xfer_evt_t;
+
+/**
+ * @brief Structure for UART error event.
+ */
+typedef struct
+{
+ nrfx_uart_xfer_evt_t rxtx; ///< Transfer details includes number of bytes transferred.
+ uint32_t error_mask; ///< Mask of error flags that generated the event.
+} nrfx_uart_error_evt_t;
+
+/**
+ * @brief Structure for UART event.
+ */
+typedef struct
+{
+ nrfx_uart_evt_type_t type; ///< Event type.
+ union
+ {
+ nrfx_uart_xfer_evt_t rxtx; ///< Data provided for transfer completion events.
+ nrfx_uart_error_evt_t error; ///< Data provided for error event.
+ } data;
+} nrfx_uart_event_t;
+
+/**
+ * @brief UART interrupt event handler.
+ *
+ * @param[in] p_event Pointer to event structure. Event is allocated on the stack so it is available
+ * only within the context of the event handler.
+ * @param[in] p_context Context passed to interrupt handler, set on initialization.
+ */
+typedef void (*nrfx_uart_event_handler_t)(nrfx_uart_event_t const * p_event,
+ void * p_context);
+
+/**
+ * @brief Function for initializing the UART driver.
+ *
+ * This function configures and enables UART. After this function GPIO pins are controlled by UART.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] event_handler Event handler provided by the user. If not provided driver works in
+ * blocking mode.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If driver is already initialized.
+ * @retval NRFX_ERROR_BUSY If some other peripheral with the same
+ * instance ID is already in use. This is
+ * possible only if @ref nrfx_prs module
+ * is enabled.
+ */
+nrfx_err_t nrfx_uart_init(nrfx_uart_t const * p_instance,
+ nrfx_uart_config_t const * p_config,
+ nrfx_uart_event_handler_t event_handler);
+
+/**
+ * @brief Function for uninitializing the UART driver.
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_uart_uninit(nrfx_uart_t const * p_instance);
+
+/**
+ * @brief Function for getting the address of a specific UART task.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] task Task.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrfx_uart_task_address_get(nrfx_uart_t const * p_instance,
+ nrf_uart_task_t task);
+
+/**
+ * @brief Function for getting the address of a specific UART event.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] event Event.
+ *
+ * @return Event address.
+ */
+__STATIC_INLINE uint32_t nrfx_uart_event_address_get(nrfx_uart_t const * p_instance,
+ nrf_uart_event_t event);
+
+/**
+ * @brief Function for sending data over UART.
+ *
+ * If an event handler was provided in nrfx_uart_init() call, this function
+ * returns immediately and the handler is called when the transfer is done.
+ * Otherwise, the transfer is performed in blocking mode, i.e. this function
+ * returns when the transfer is finished. Blocking mode is not using interrupt
+ * so there is no context switching inside the function.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_data Pointer to data.
+ * @param[in] length Number of bytes to send.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_BUSY If driver is already transferring.
+ * @retval NRFX_ERROR_FORBIDDEN If the transfer was aborted from a different context
+ * (blocking mode only).
+ */
+nrfx_err_t nrfx_uart_tx(nrfx_uart_t const * p_instance,
+ uint8_t const * p_data,
+ size_t length);
+
+/**
+ * @brief Function for checking if UART is currently transmitting.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval true If UART is transmitting.
+ * @retval false If UART is not transmitting.
+ */
+bool nrfx_uart_tx_in_progress(nrfx_uart_t const * p_instance);
+
+/**
+ * @brief Function for aborting any ongoing transmission.
+ * @note @ref NRFX_UART_EVT_TX_DONE event will be generated in non-blocking mode.
+ * It will contain number of bytes sent until abort was called. The event
+ * handler will be called from the function context.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_uart_tx_abort(nrfx_uart_t const * p_instance);
+
+/**
+ * @brief Function for receiving data over UART.
+ *
+ * If an event handler was provided in the nrfx_uart_init() call, this function
+ * returns immediately and the handler is called when the transfer is done.
+ * Otherwise, the transfer is performed in blocking mode, i.e. this function
+ * returns when the transfer is finished. Blocking mode is not using interrupt so
+ * there is no context switching inside the function.
+ * The receive buffer pointer is double buffered in non-blocking mode. The secondary
+ * buffer can be set immediately after starting the transfer and will be filled
+ * when the primary buffer is full. The double buffering feature allows
+ * receiving data continuously.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_data Pointer to data.
+ * @param[in] length Number of bytes to receive.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_BUSY If the driver is already receiving
+ * (and the secondary buffer has already been set
+ * in non-blocking mode).
+ * @retval NRFX_ERROR_FORBIDDEN If the transfer was aborted from a different context
+ * (blocking mode only, also see @ref nrfx_uart_rx_disable).
+ * @retval NRFX_ERROR_INTERNAL If UART peripheral reported an error.
+ */
+nrfx_err_t nrfx_uart_rx(nrfx_uart_t const * p_instance,
+ uint8_t * p_data,
+ size_t length);
+
+
+
+/**
+ * @brief Function for testing the receiver state in blocking mode.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval true If the receiver has at least one byte of data to get.
+ * @retval false If the receiver is empty.
+ */
+bool nrfx_uart_rx_ready(nrfx_uart_t const * p_instance);
+
+/**
+ * @brief Function for enabling the receiver.
+ *
+ * UART has a 6-byte-long RX FIFO and it is used to store incoming data. If a user does not call the
+ * UART receive function before the FIFO is filled, an overrun error will appear. The receiver must be
+ * explicitly closed by the user @sa nrfx_uart_rx_disable.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_uart_rx_enable(nrfx_uart_t const * p_instance);
+
+/**
+ * @brief Function for disabling the receiver.
+ *
+ * This function must be called to close the receiver after it has been explicitly enabled by
+ * @sa nrfx_uart_rx_enable.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_uart_rx_disable(nrfx_uart_t const * p_instance);
+
+/**
+ * @brief Function for aborting any ongoing reception.
+ * @note @ref NRFX_UART_EVT_TX_DONE event will be generated in non-blocking mode.
+ * It will contain number of bytes received until abort was called. The event
+ * handler will be called from the UART interrupt context.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_uart_rx_abort(nrfx_uart_t const * p_instance);
+
+/**
+ * @brief Function for reading error source mask. Mask contains values from @ref nrf_uart_error_mask_t.
+ * @note Function should be used in blocking mode only. In case of non-blocking mode, an error event is
+ * generated. Function clears error sources after reading.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval Mask of reported errors.
+ */
+uint32_t nrfx_uart_errorsrc_get(nrfx_uart_t const * p_instance);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+__STATIC_INLINE uint32_t nrfx_uart_task_address_get(nrfx_uart_t const * p_instance,
+ nrf_uart_task_t task)
+{
+ return nrf_uart_task_address_get(p_instance->p_reg, task);
+}
+
+__STATIC_INLINE uint32_t nrfx_uart_event_address_get(nrfx_uart_t const * p_instance,
+ nrf_uart_event_t event)
+{
+ return nrf_uart_event_address_get(p_instance->p_reg, event);
+}
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+
+void nrfx_uart_0_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_UART_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_uarte.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_uarte.h
new file mode 100644
index 0000000..e5deec0
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_uarte.h
@@ -0,0 +1,363 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_UARTE_H__
+#define NRFX_UARTE_H__
+
+#include <nrfx.h>
+#include <hal/nrf_uarte.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_uarte UARTE driver
+ * @{
+ * @ingroup nrf_uarte
+ * @brief UARTE peripheral driver.
+ */
+
+/**
+ * @brief Structure for the UARTE driver instance.
+ */
+typedef struct
+{
+ NRF_UARTE_Type * p_reg; ///< Pointer to a structure with UARTE registers.
+ uint8_t drv_inst_idx; ///< Driver instance index.
+} nrfx_uarte_t;
+
+enum {
+#if NRFX_CHECK(NRFX_UARTE0_ENABLED)
+ NRFX_UARTE0_INST_IDX,
+#endif
+#if NRFX_CHECK(NRFX_UARTE1_ENABLED)
+ NRFX_UARTE1_INST_IDX,
+#endif
+ NRFX_UARTE_ENABLED_COUNT
+};
+
+/**
+ * @brief Macro for creating a UARTE driver instance.
+ */
+#define NRFX_UARTE_INSTANCE(id) \
+{ \
+ .p_reg = NRFX_CONCAT_2(NRF_UARTE, id), \
+ .drv_inst_idx = NRFX_CONCAT_3(NRFX_UARTE, id, _INST_IDX), \
+}
+
+/**
+ * @brief Types of UARTE driver events.
+ */
+typedef enum
+{
+ NRFX_UARTE_EVT_TX_DONE, ///< Requested TX transfer completed.
+ NRFX_UARTE_EVT_RX_DONE, ///< Requested RX transfer completed.
+ NRFX_UARTE_EVT_ERROR, ///< Error reported by UART peripheral.
+} nrfx_uarte_evt_type_t;
+
+/**
+ * @brief Structure for UARTE configuration.
+ */
+typedef struct
+{
+ uint32_t pseltxd; ///< TXD pin number.
+ uint32_t pselrxd; ///< RXD pin number.
+ uint32_t pselcts; ///< CTS pin number.
+ uint32_t pselrts; ///< RTS pin number.
+ void * p_context; ///< Context passed to interrupt handler.
+ nrf_uarte_hwfc_t hwfc; ///< Flow control configuration.
+ nrf_uarte_parity_t parity; ///< Parity configuration.
+ nrf_uarte_baudrate_t baudrate; ///< Baudrate.
+ uint8_t interrupt_priority; ///< Interrupt priority.
+} nrfx_uarte_config_t;
+
+/**
+ * @brief UARTE default configuration.
+ */
+#define NRFX_UARTE_DEFAULT_CONFIG \
+{ \
+ .pseltxd = NRF_UARTE_PSEL_DISCONNECTED, \
+ .pselrxd = NRF_UARTE_PSEL_DISCONNECTED, \
+ .pselcts = NRF_UARTE_PSEL_DISCONNECTED, \
+ .pselrts = NRF_UARTE_PSEL_DISCONNECTED, \
+ .p_context = NULL, \
+ .hwfc = (nrf_uarte_hwfc_t)NRFX_UARTE_DEFAULT_CONFIG_HWFC, \
+ .parity = (nrf_uarte_parity_t)NRFX_UARTE_DEFAULT_CONFIG_PARITY, \
+ .baudrate = (nrf_uarte_baudrate_t)NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE, \
+ .interrupt_priority = NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY, \
+}
+
+/**
+ * @brief Structure for UARTE transfer completion event.
+ */
+typedef struct
+{
+ uint8_t * p_data; ///< Pointer to memory used for transfer.
+ uint8_t bytes; ///< Number of bytes transfered.
+} nrfx_uarte_xfer_evt_t;
+
+/**
+ * @brief Structure for UARTE error event.
+ */
+typedef struct
+{
+ nrfx_uarte_xfer_evt_t rxtx; ///< Transfer details includes number of bytes transferred.
+ uint32_t error_mask; ///< Mask of error flags that generated the event.
+} nrfx_uarte_error_evt_t;
+
+/**
+ * @brief Structure for UARTE event.
+ */
+typedef struct
+{
+ nrfx_uarte_evt_type_t type; ///< Event type.
+ union
+ {
+ nrfx_uarte_xfer_evt_t rxtx; ///< Data provided for transfer completion events.
+ nrfx_uarte_error_evt_t error; ///< Data provided for error event.
+ } data;
+} nrfx_uarte_event_t;
+
+/**
+ * @brief UARTE interrupt event handler.
+ *
+ * @param[in] p_event Pointer to event structure. Event is allocated on the stack so it is available
+ * only within the context of the event handler.
+ * @param[in] p_context Context passed to interrupt handler, set on initialization.
+ */
+typedef void (*nrfx_uarte_event_handler_t)(nrfx_uarte_event_t const * p_event,
+ void * p_context);
+
+/**
+ * @brief Function for initializing the UARTE driver.
+ *
+ * This function configures and enables UARTE. After this function GPIO pins are controlled by UARTE.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] event_handler Event handler provided by the user. If not provided driver works in
+ * blocking mode.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_INVALID_STATE If driver is already initialized.
+ * @retval NRFX_ERROR_BUSY If some other peripheral with the same
+ * instance ID is already in use. This is
+ * possible only if @ref nrfx_prs module
+ * is enabled.
+ */
+nrfx_err_t nrfx_uarte_init(nrfx_uarte_t const * p_instance,
+ nrfx_uarte_config_t const * p_config,
+ nrfx_uarte_event_handler_t event_handler);
+
+/**
+ * @brief Function for uninitializing the UARTE driver.
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_uarte_uninit(nrfx_uarte_t const * p_instance);
+
+/**
+ * @brief Function for getting the address of a specific UARTE task.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] task Task.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrfx_uarte_task_address_get(nrfx_uarte_t const * p_instance,
+ nrf_uarte_task_t task);
+
+/**
+ * @brief Function for getting the address of a specific UARTE event.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] event Event.
+ *
+ * @return Event address.
+ */
+__STATIC_INLINE uint32_t nrfx_uarte_event_address_get(nrfx_uarte_t const * p_instance,
+ nrf_uarte_event_t event);
+
+/**
+ * @brief Function for sending data over UARTE.
+ *
+ * If an event handler was provided in nrfx_uarte_init() call, this function
+ * returns immediately and the handler is called when the transfer is done.
+ * Otherwise, the transfer is performed in blocking mode, i.e. this function
+ * returns when the transfer is finished. Blocking mode is not using interrupt
+ * so there is no context switching inside the function.
+ *
+ * @note Peripherals using EasyDMA (including UARTE) require the transfer buffers
+ * to be placed in the Data RAM region. If this condition is not met,
+ * this function will fail with the error code NRFX_ERROR_INVALID_ADDR.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_data Pointer to data.
+ * @param[in] length Number of bytes to send. Maximum possible length is
+ * dependent on the used SoC (see the MAXCNT register
+ * description in the Product Specification). The driver
+ * checks it with assertion.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_BUSY If driver is already transferring.
+ * @retval NRFX_ERROR_FORBIDDEN If the transfer was aborted from a different context
+ * (blocking mode only).
+ * @retval NRFX_ERROR_INVALID_ADDR If p_data does not point to RAM buffer.
+ */
+nrfx_err_t nrfx_uarte_tx(nrfx_uarte_t const * p_instance,
+ uint8_t const * p_data,
+ size_t length);
+
+/**
+ * @brief Function for checking if UARTE is currently transmitting.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval true If UARTE is transmitting.
+ * @retval false If UARTE is not transmitting.
+ */
+bool nrfx_uarte_tx_in_progress(nrfx_uarte_t const * p_instance);
+
+/**
+ * @brief Function for aborting any ongoing transmission.
+ * @note @ref NRFX_UARTE_EVT_TX_DONE event will be generated in non-blocking mode.
+ * It will contain number of bytes sent until abort was called. The event
+ * handler will be called from UARTE interrupt context.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_uarte_tx_abort(nrfx_uarte_t const * p_instance);
+
+/**
+ * @brief Function for receiving data over UARTE.
+ *
+ * If an event handler was provided in the nrfx_uarte_init() call, this function
+ * returns immediately and the handler is called when the transfer is done.
+ * Otherwise, the transfer is performed in blocking mode, i.e. this function
+ * returns when the transfer is finished. Blocking mode is not using interrupt so
+ * there is no context switching inside the function.
+ * The receive buffer pointer is double buffered in non-blocking mode. The secondary
+ * buffer can be set immediately after starting the transfer and will be filled
+ * when the primary buffer is full. The double buffering feature allows
+ * receiving data continuously.
+ *
+ * @note Peripherals using EasyDMA (including UARTE) require the transfer buffers
+ * to be placed in the Data RAM region. If this condition is not met,
+ * this function will fail with the error code NRFX_ERROR_INVALID_ADDR.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ * @param[in] p_data Pointer to data.
+ * @param[in] length Number of bytes to receive. Maximum possible length is
+ * dependent on the used SoC (see the MAXCNT register
+ * description in the Product Specification). The driver
+ * checks it with assertion.
+ *
+ * @retval NRFX_SUCCESS If initialization was successful.
+ * @retval NRFX_ERROR_BUSY If the driver is already receiving
+ * (and the secondary buffer has already been set
+ * in non-blocking mode).
+ * @retval NRFX_ERROR_FORBIDDEN If the transfer was aborted from a different context
+ * (blocking mode only).
+ * @retval NRFX_ERROR_INTERNAL If UARTE peripheral reported an error.
+ * @retval NRFX_ERROR_INVALID_ADDR If p_data does not point to RAM buffer.
+ */
+nrfx_err_t nrfx_uarte_rx(nrfx_uarte_t const * p_instance,
+ uint8_t * p_data,
+ size_t length);
+
+
+
+/**
+ * @brief Function for testing the receiver state in blocking mode.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval true If the receiver has at least one byte of data to get.
+ * @retval false If the receiver is empty.
+ */
+bool nrfx_uarte_rx_ready(nrfx_uarte_t const * p_instance);
+
+/**
+ * @brief Function for aborting any ongoing reception.
+ * @note @ref NRFX_UARTE_EVT_RX_DONE event will be generated in non-blocking mode.
+ * It will contain number of bytes received until abort was called. The event
+ * handler will be called from UARTE interrupt context.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ */
+void nrfx_uarte_rx_abort(nrfx_uarte_t const * p_instance);
+
+/**
+ * @brief Function for reading error source mask. Mask contains values from @ref nrf_uarte_error_mask_t.
+ * @note Function should be used in blocking mode only. In case of non-blocking mode, an error event is
+ * generated. Function clears error sources after reading.
+ *
+ * @param[in] p_instance Pointer to the driver instance structure.
+ *
+ * @retval Mask of reported errors.
+ */
+uint32_t nrfx_uarte_errorsrc_get(nrfx_uarte_t const * p_instance);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+__STATIC_INLINE uint32_t nrfx_uarte_task_address_get(nrfx_uarte_t const * p_instance,
+ nrf_uarte_task_t task)
+{
+ return nrf_uarte_task_address_get(p_instance->p_reg, task);
+}
+
+__STATIC_INLINE uint32_t nrfx_uarte_event_address_get(nrfx_uarte_t const * p_instance,
+ nrf_uarte_event_t event)
+{
+ return nrf_uarte_event_address_get(p_instance->p_reg, event);
+}
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+
+void nrfx_uarte_0_irq_handler(void);
+void nrfx_uarte_1_irq_handler(void);
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_UARTE_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_wdt.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_wdt.h
new file mode 100644
index 0000000..be98a38
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/include/nrfx_wdt.h
@@ -0,0 +1,156 @@
+/**
+ * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_WDT_H__
+#define NRFX_WDT_H__
+
+#include <nrfx.h>
+#include <hal/nrf_wdt.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_wdt WDT driver
+ * @{
+ * @ingroup nrf_wdt
+ * @brief Watchdog Timer (WDT) peripheral driver.
+ */
+
+/**@brief Struct for WDT initialization. */
+typedef struct
+{
+ nrf_wdt_behaviour_t behaviour; /**< WDT behaviour when CPU in sleep/halt mode. */
+ uint32_t reload_value; /**< WDT reload value in ms. */
+ uint8_t interrupt_priority; /**< WDT interrupt priority */
+} nrfx_wdt_config_t;
+
+/**@brief WDT event handler function type. */
+typedef void (*nrfx_wdt_event_handler_t)(void);
+
+/**@brief WDT channel id type. */
+typedef nrf_wdt_rr_register_t nrfx_wdt_channel_id;
+
+#define NRFX_WDT_DEAFULT_CONFIG \
+ { \
+ .behaviour = (nrf_wdt_behaviour_t)NRFX_WDT_CONFIG_BEHAVIOUR, \
+ .reload_value = NRFX_WDT_CONFIG_RELOAD_VALUE, \
+ .interrupt_priority = NRFX_WDT_CONFIG_IRQ_PRIORITY, \
+ }
+/**
+ * @brief This function initializes watchdog.
+ *
+ * @param[in] p_config Pointer to the structure with initial configuration.
+ * @param[in] wdt_event_handler Event handler provided by the user.
+ * Must not be NULL.
+ *
+ * @return NRFX_SUCCESS on success, otherwise an error code.
+ */
+nrfx_err_t nrfx_wdt_init(nrfx_wdt_config_t const * p_config,
+ nrfx_wdt_event_handler_t wdt_event_handler);
+
+/**
+ * @brief This function allocate watchdog channel.
+ *
+ * @note This function can not be called after nrfx_wdt_start(void).
+ *
+ * @param[out] p_channel_id ID of granted channel.
+ *
+ * @return NRFX_SUCCESS on success, otherwise an error code.
+ */
+nrfx_err_t nrfx_wdt_channel_alloc(nrfx_wdt_channel_id * p_channel_id);
+
+/**
+ * @brief This function starts watchdog.
+ *
+ * @note After calling this function the watchdog is started, so the user needs to feed all allocated
+ * watchdog channels to avoid reset. At least one watchdog channel has to be allocated.
+ */
+void nrfx_wdt_enable(void);
+
+/**
+ * @brief This function feeds the watchdog.
+ *
+ * @details Function feeds all allocated watchdog channels.
+ */
+void nrfx_wdt_feed(void);
+
+/**
+ * @brief This function feeds the invidual watchdog channel.
+ *
+ * @param[in] channel_id ID of watchdog channel.
+ */
+void nrfx_wdt_channel_feed(nrfx_wdt_channel_id channel_id);
+
+/**@brief Function for returning a requested task address for the wdt driver module.
+ *
+ * @param[in] task One of the peripheral tasks.
+ *
+ * @retval Task address.
+ */
+__STATIC_INLINE uint32_t nrfx_wdt_ppi_task_addr(nrf_wdt_task_t task)
+{
+ return nrf_wdt_task_address_get(task);
+}
+
+/**@brief Function for returning a requested event address for the wdt driver module.
+ *
+ * @param[in] event One of the peripheral events.
+ *
+ * @retval Event address
+ */
+__STATIC_INLINE uint32_t nrfx_wdt_ppi_event_addr(nrf_wdt_event_t event)
+{
+ return nrf_wdt_event_address_get(event);
+}
+
+
+void nrfx_wdt_irq_handler(void);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/nrfx_common.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/nrfx_common.h
new file mode 100644
index 0000000..3b47ac2
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/nrfx_common.h
@@ -0,0 +1,269 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_COMMON_H__
+#define NRFX_COMMON_H__
+
+#include <stdint.h>
+#include <stddef.h>
+#include <stdbool.h>
+
+#include <nrf.h>
+#include <nrf_peripherals.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_common Common module
+ * @{
+ * @ingroup nrfx
+ * @brief Common module.
+ */
+
+/**
+ * @brief Macro for checking if the specified identifier is defined and it has
+ * a non-zero value.
+ *
+ * Normally, preprocessors treat all undefined identifiers as having the value
+ * zero. However, some tools, like static code analyzers, may issue a warning
+ * when such identifier is evaluated. This macro gives the possibility to suppress
+ * such warnings only in places where this macro is used for evaluation, not in
+ * the whole analyzed code.
+ */
+#define NRFX_CHECK(module_enabled) (module_enabled)
+
+/**
+ * @brief Macro for concatenating two tokens in macro expansion.
+ *
+ * @note This macro is expanded in two steps so that tokens given as macros
+ * themselves are fully expanded before they are merged.
+ *
+ * @param p1 First token.
+ * @param p2 Second token.
+ *
+ * @return The two tokens merged into one, unless they cannot together form
+ * a valid token (in such case, the preprocessor issues a warning and
+ * does not perform the concatenation).
+ *
+ * @sa NRFX_CONCAT_3
+ */
+#define NRFX_CONCAT_2(p1, p2) NRFX_CONCAT_2_(p1, p2)
+/**
+ * @brief Internal macro used by @ref NRFX_CONCAT_2 to perform the expansion
+ * in two steps.
+ */
+#define NRFX_CONCAT_2_(p1, p2) p1 ## p2
+
+/**
+ * @brief Macro for concatenating three tokens in macro expansion.
+ *
+ * @note This macro is expanded in two steps so that tokens given as macros
+ * themselves are fully expanded before they are merged.
+ *
+ * @param p1 First token.
+ * @param p2 Second token.
+ * @param p3 Third token.
+ *
+ * @return The three tokens merged into one, unless they cannot together form
+ * a valid token (in such case, the preprocessor issues a warning and
+ * does not perform the concatenation).
+ *
+ * @sa NRFX_CONCAT_2
+ */
+#define NRFX_CONCAT_3(p1, p2, p3) NRFX_CONCAT_3_(p1, p2, p3)
+/**
+ * @brief Internal macro used by @ref NRFX_CONCAT_3 to perform the expansion
+ * in two steps.
+ */
+#define NRFX_CONCAT_3_(p1, p2, p3) p1 ## p2 ## p3
+
+/**@brief Macro for performing rounded integer division (as opposed to
+ * truncating the result).
+ *
+ * @param a Numerator.
+ * @param b Denominator.
+ *
+ * @return Rounded (integer) result of dividing @c a by @c b.
+ */
+#define NRFX_ROUNDED_DIV(a, b) (((a) + ((b) / 2)) / (b))
+
+/**@brief Macro for checking if given lengths of EasyDMA transfers do not exceed
+ * the limit of the specified peripheral.
+ *
+ * @param peripheral Peripheral to check the lengths against.
+ * @param length1 First length to be checked.
+ * @param length2 Second length to be checked (pass 0 if not needed).
+ *
+ * @return
+ */
+#define NRFX_EASYDMA_LENGTH_VALIDATE(peripheral, length1, length2) \
+ (((length1) < (1U << NRFX_CONCAT_2(peripheral, _EASYDMA_MAXCNT_SIZE))) && \
+ ((length2) < (1U << NRFX_CONCAT_2(peripheral, _EASYDMA_MAXCNT_SIZE))))
+
+/**@brief Macro for waiting until condition is met.
+ *
+ * @param[in] condition Condition to meet.
+ * @param[in] attempts Maximum number of condition checks. Must not be 0.
+ * @param[in] delay_us Delay between consecutive checks, in microseconds.
+ * @param[out] result Boolean variable to store the result of the wait process.
+ * Set to true if the condition is met or false otherwise.
+ */
+#define NRFX_WAIT_FOR(condition, attempts, delay_us, result) \
+do { \
+ result = false; \
+ uint32_t remaining_attempts = (attempts); \
+ do { \
+ if (condition) \
+ { \
+ result = true; \
+ break; \
+ } \
+ NRFX_DELAY_US(delay_us); \
+ } while (--remaining_attempts); \
+} while(0)
+
+/**
+ * @brief IRQ handler type.
+ */
+typedef void (* nrfx_irq_handler_t)(void);
+
+/**
+ * @brief Driver state.
+ */
+typedef enum
+{
+ NRFX_DRV_STATE_UNINITIALIZED, ///< Uninitialized.
+ NRFX_DRV_STATE_INITIALIZED, ///< Initialized but powered off.
+ NRFX_DRV_STATE_POWERED_ON, ///< Initialized and powered on.
+} nrfx_drv_state_t;
+
+
+/**
+ * @brief Function for checking if an object is placed in the Data RAM region.
+ *
+ * Several peripherals (the ones using EasyDMA) require the transfer buffers
+ * to be placed in the Data RAM region. This function can be used to check if
+ * this condition is met.
+ *
+ * @param[in] p_object Pointer to an object whose location is to be checked.
+ *
+ * @retval true If the pointed object is located in the Data RAM region.
+ * @retval false Otherwise.
+ */
+__STATIC_INLINE bool nrfx_is_in_ram(void const * p_object);
+
+/**
+ * @brief Function for getting the interrupt number for a specific peripheral.
+ *
+ * @param[in] p_reg Peripheral base pointer.
+ *
+ * @return Interrupt number associated with the pointed peripheral.
+ */
+__STATIC_INLINE IRQn_Type nrfx_get_irq_number(void const * p_reg);
+
+/**
+ * @brief Function for converting an INTEN register bit position to the
+ * corresponding event identifier.
+ *
+ * The event identifier is the offset between the event register address and
+ * the peripheral base address, and is equal (thus, can be directly cast) to
+ * the corresponding value of the enumerated type from HAL (nrf_*_event_t).
+
+ * @param bit INTEN register bit position.
+ *
+ * @return Event identifier.
+ *
+ * @sa nrfx_event_to_bitpos
+ */
+__STATIC_INLINE uint32_t nrfx_bitpos_to_event(uint32_t bit);
+
+/**
+ * @brief Function for converting an event identifier to the corresponding
+ * INTEN register bit position.
+ *
+ * The event identifier is the offset between the event register address and
+ * the peripheral base address, and is equal (thus, can be directly cast) to
+ * the corresponding value of the enumerated type from HAL (nrf_*_event_t).
+ *
+ * @param event Event identifier.
+ *
+ * @return INTEN register bit position.
+ *
+ * @sa nrfx_bitpos_to_event
+ */
+__STATIC_INLINE uint32_t nrfx_event_to_bitpos(uint32_t event);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE bool nrfx_is_in_ram(void const * p_object)
+{
+ return ((((uint32_t)p_object) & 0xE0000000u) == 0x20000000u);
+}
+
+__STATIC_INLINE IRQn_Type nrfx_get_irq_number(void const * p_reg)
+{
+ uint8_t irq_number = (uint8_t)(((uint32_t)p_reg) >> 12u);
+ return (IRQn_Type)irq_number;
+}
+
+__STATIC_INLINE uint32_t nrfx_bitpos_to_event(uint32_t bit)
+{
+ static const uint32_t event_reg_offset = 0x100u;
+ return event_reg_offset + (bit * sizeof(uint32_t));
+}
+
+__STATIC_INLINE uint32_t nrfx_event_to_bitpos(uint32_t event)
+{
+ static const uint32_t event_reg_offset = 0x100u;
+ return (event - event_reg_offset) / sizeof(uint32_t);
+}
+
+#endif
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_COMMON_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/nrfx_errors.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/nrfx_errors.h
new file mode 100644
index 0000000..f900be8
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/nrfx_errors.h
@@ -0,0 +1,82 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_ERRORS_H__
+#define NRFX_ERRORS_H__
+
+#if !NRFX_CHECK(NRFX_CUSTOM_ERROR_CODES)
+
+/**
+ * @defgroup nrfx_error_codes Global Error Codes
+ * @{
+ * @ingroup nrfx
+ *
+ * @brief Global error codes definitions.
+ */
+
+#define NRFX_ERROR_BASE_NUM 0x0BAD0000
+#define NRFX_ERROR_DRIVERS_BASE_NUM (NRFX_ERROR_BASE_NUM + 0x10000)
+
+/** @brief Enumerated type for error codes. */
+typedef enum {
+ NRFX_SUCCESS = (NRFX_ERROR_BASE_NUM + 0), ///< Operation performed successfully.
+ NRFX_ERROR_INTERNAL = (NRFX_ERROR_BASE_NUM + 1), ///< Internal error.
+ NRFX_ERROR_NO_MEM = (NRFX_ERROR_BASE_NUM + 2), ///< No memory for operation.
+ NRFX_ERROR_NOT_SUPPORTED = (NRFX_ERROR_BASE_NUM + 3), ///< Not supported.
+ NRFX_ERROR_INVALID_PARAM = (NRFX_ERROR_BASE_NUM + 4), ///< Invalid parameter.
+ NRFX_ERROR_INVALID_STATE = (NRFX_ERROR_BASE_NUM + 5), ///< Invalid state, operation disallowed in this state.
+ NRFX_ERROR_INVALID_LENGTH = (NRFX_ERROR_BASE_NUM + 6), ///< Invalid length.
+ NRFX_ERROR_TIMEOUT = (NRFX_ERROR_BASE_NUM + 7), ///< Operation timed out.
+ NRFX_ERROR_FORBIDDEN = (NRFX_ERROR_BASE_NUM + 8), ///< Operation is forbidden.
+ NRFX_ERROR_NULL = (NRFX_ERROR_BASE_NUM + 9), ///< Null pointer.
+ NRFX_ERROR_INVALID_ADDR = (NRFX_ERROR_BASE_NUM + 10), ///< Bad memory address.
+ NRFX_ERROR_BUSY = (NRFX_ERROR_BASE_NUM + 11), ///< Busy.
+ NRFX_ERROR_ALREADY_INITIALIZED = (NRFX_ERROR_BASE_NUM + 12), ///< Module already initialized.
+
+ NRFX_ERROR_DRV_TWI_ERR_OVERRUN = (NRFX_ERROR_DRIVERS_BASE_NUM + 0), ///< TWI error: Overrun.
+ NRFX_ERROR_DRV_TWI_ERR_ANACK = (NRFX_ERROR_DRIVERS_BASE_NUM + 1), ///< TWI error: Address not acknowledged.
+ NRFX_ERROR_DRV_TWI_ERR_DNACK = (NRFX_ERROR_DRIVERS_BASE_NUM + 2) ///< TWI error: Data not acknowledged.
+} nrfx_err_t;
+
+/** @} */
+
+#endif // !NRFX_CHECK(NRFX_CUSTOM_ERROR_CODES)
+
+#endif // NRFX_ERRORS_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_adc.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_adc.c
new file mode 100644
index 0000000..cbe51fa
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_adc.c
@@ -0,0 +1,324 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_ADC_ENABLED)
+
+#include <nrfx_adc.h>
+
+#define NRFX_LOG_MODULE ADC
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) (event == NRF_ADC_EVENT_END ? "NRF_ADC_EVENT_END" : "UNKNOWN EVENT")
+
+typedef struct
+{
+ nrfx_adc_event_handler_t event_handler;
+ nrfx_adc_channel_t * p_head;
+ nrfx_adc_channel_t * p_current_conv;
+ nrf_adc_value_t * p_buffer;
+ uint16_t size;
+ uint16_t idx;
+ nrfx_drv_state_t state;
+} adc_cb_t;
+
+static adc_cb_t m_cb;
+
+nrfx_err_t nrfx_adc_init(nrfx_adc_config_t const * p_config,
+ nrfx_adc_event_handler_t event_handler)
+{
+ NRFX_ASSERT(p_config);
+ nrfx_err_t err_code;
+
+ if (m_cb.state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ nrf_adc_event_clear(NRF_ADC_EVENT_END);
+ if (event_handler)
+ {
+ NRFX_IRQ_PRIORITY_SET(ADC_IRQn, p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(ADC_IRQn);
+ }
+ m_cb.event_handler = event_handler;
+ m_cb.state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_adc_uninit(void)
+{
+ m_cb.p_head = NULL;
+ NRFX_IRQ_DISABLE(ADC_IRQn);
+ nrf_adc_int_disable(NRF_ADC_INT_END_MASK);
+ nrf_adc_task_trigger(NRF_ADC_TASK_STOP);
+
+ m_cb.state = NRFX_DRV_STATE_UNINITIALIZED;
+}
+
+void nrfx_adc_channel_enable(nrfx_adc_channel_t * const p_channel)
+{
+ NRFX_ASSERT(!nrfx_adc_is_busy());
+
+ p_channel->p_next = NULL;
+ if (m_cb.p_head == NULL)
+ {
+ m_cb.p_head = p_channel;
+ }
+ else
+ {
+ nrfx_adc_channel_t * p_curr_channel = m_cb.p_head;
+ while (p_curr_channel->p_next != NULL)
+ {
+ NRFX_ASSERT(p_channel != p_curr_channel);
+ p_curr_channel = p_curr_channel->p_next;
+ }
+ p_curr_channel->p_next = p_channel;
+ }
+
+ NRFX_LOG_INFO("Enabled.");
+}
+
+void nrfx_adc_channel_disable(nrfx_adc_channel_t * const p_channel)
+{
+ NRFX_ASSERT(m_cb.p_head);
+ NRFX_ASSERT(!nrfx_adc_is_busy());
+
+ nrfx_adc_channel_t * p_curr_channel = m_cb.p_head;
+ nrfx_adc_channel_t * p_prev_channel = NULL;
+ while (p_curr_channel != p_channel)
+ {
+ p_prev_channel = p_curr_channel;
+ p_curr_channel = p_curr_channel->p_next;
+ NRFX_ASSERT(p_curr_channel != NULL);
+ }
+ if (p_prev_channel)
+ {
+ p_prev_channel->p_next = p_curr_channel->p_next;
+ }
+ else
+ {
+ m_cb.p_head = p_curr_channel->p_next;
+ }
+
+ NRFX_LOG_INFO("Disabled.");
+}
+
+void nrfx_adc_sample(void)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(!nrf_adc_busy_check());
+ nrf_adc_task_trigger(NRF_ADC_TASK_START);
+}
+
+nrfx_err_t nrfx_adc_sample_convert(nrfx_adc_channel_t const * const p_channel,
+ nrf_adc_value_t * p_value)
+{
+ nrfx_err_t err_code;
+
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+ if (m_cb.state == NRFX_DRV_STATE_POWERED_ON)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ else
+ {
+ m_cb.state = NRFX_DRV_STATE_POWERED_ON;
+
+ nrf_adc_init(&p_channel->config);
+ nrf_adc_enable();
+ nrf_adc_int_disable(NRF_ADC_INT_END_MASK);
+ nrf_adc_task_trigger(NRF_ADC_TASK_START);
+ if (p_value)
+ {
+ while (!nrf_adc_event_check(NRF_ADC_EVENT_END)) {}
+ nrf_adc_event_clear(NRF_ADC_EVENT_END);
+ *p_value = (nrf_adc_value_t)nrf_adc_result_get();
+ nrf_adc_disable();
+
+ m_cb.state = NRFX_DRV_STATE_INITIALIZED;
+ }
+ else
+ {
+ NRFX_ASSERT(m_cb.event_handler);
+ m_cb.p_buffer = NULL;
+ nrf_adc_int_enable(NRF_ADC_INT_END_MASK);
+ }
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+}
+
+static bool adc_sample_process()
+{
+ nrf_adc_event_clear(NRF_ADC_EVENT_END);
+ nrf_adc_disable();
+ m_cb.p_buffer[m_cb.idx] = (nrf_adc_value_t)nrf_adc_result_get();
+ m_cb.idx++;
+ if (m_cb.idx < m_cb.size)
+ {
+ bool task_trigger = false;
+ if (m_cb.p_current_conv->p_next == NULL)
+ {
+ m_cb.p_current_conv = m_cb.p_head;
+ }
+ else
+ {
+ m_cb.p_current_conv = m_cb.p_current_conv->p_next;
+ task_trigger = true;
+ }
+ nrf_adc_init(&m_cb.p_current_conv->config);
+ nrf_adc_enable();
+ if (task_trigger)
+ {
+ nrf_adc_task_trigger(NRF_ADC_TASK_START);
+ }
+ return false;
+ }
+ else
+ {
+ return true;
+ }
+}
+
+nrfx_err_t nrfx_adc_buffer_convert(nrf_adc_value_t * buffer, uint16_t size)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ nrfx_err_t err_code;
+
+ NRFX_LOG_INFO("Number of samples requested to convert: %d.", size);
+
+ if (m_cb.state == NRFX_DRV_STATE_POWERED_ON)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ else
+ {
+ m_cb.state = NRFX_DRV_STATE_POWERED_ON;
+ m_cb.p_current_conv = m_cb.p_head;
+ m_cb.size = size;
+ m_cb.idx = 0;
+ m_cb.p_buffer = buffer;
+ nrf_adc_init(&m_cb.p_current_conv->config);
+ nrf_adc_event_clear(NRF_ADC_EVENT_END);
+ nrf_adc_enable();
+ if (m_cb.event_handler)
+ {
+ nrf_adc_int_enable(NRF_ADC_INT_END_MASK);
+ }
+ else
+ {
+ while (1)
+ {
+ while (!nrf_adc_event_check(NRF_ADC_EVENT_END)){}
+
+ if (adc_sample_process())
+ {
+ m_cb.state = NRFX_DRV_STATE_INITIALIZED;
+ break;
+ }
+ }
+ }
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+}
+
+bool nrfx_adc_is_busy(void)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+ return (m_cb.state == NRFX_DRV_STATE_POWERED_ON) ? true : false;
+}
+
+void nrfx_adc_irq_handler(void)
+{
+ if (m_cb.p_buffer == NULL)
+ {
+ nrf_adc_event_clear(NRF_ADC_EVENT_END);
+ NRFX_LOG_DEBUG("Event: %s.",NRFX_LOG_ERROR_STRING_GET(NRF_ADC_EVENT_END));
+ nrf_adc_int_disable(NRF_ADC_INT_END_MASK);
+ nrf_adc_disable();
+ nrfx_adc_evt_t evt;
+ evt.type = NRFX_ADC_EVT_SAMPLE;
+ evt.data.sample.sample = (nrf_adc_value_t)nrf_adc_result_get();
+ NRFX_LOG_DEBUG("ADC data:");
+ NRFX_LOG_HEXDUMP_DEBUG((uint8_t *)(&evt.data.sample.sample), sizeof(nrf_adc_value_t));
+ m_cb.state = NRFX_DRV_STATE_INITIALIZED;
+ m_cb.event_handler(&evt);
+ }
+ else if (adc_sample_process())
+ {
+ NRFX_LOG_DEBUG("Event: %s.", NRFX_LOG_ERROR_STRING_GET(NRF_ADC_EVENT_END));
+ nrf_adc_int_disable(NRF_ADC_INT_END_MASK);
+ nrfx_adc_evt_t evt;
+ evt.type = NRFX_ADC_EVT_DONE;
+ evt.data.done.p_buffer = m_cb.p_buffer;
+ evt.data.done.size = m_cb.size;
+ m_cb.state = NRFX_DRV_STATE_INITIALIZED;
+ NRFX_LOG_DEBUG("ADC data:");
+ NRFX_LOG_HEXDUMP_DEBUG((uint8_t *)m_cb.p_buffer, m_cb.size * sizeof(nrf_adc_value_t));
+ m_cb.event_handler(&evt);
+ }
+}
+
+#endif // NRFX_CHECK(NRFX_ADC_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_clock.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_clock.c
new file mode 100644
index 0000000..8e1d14e
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_clock.c
@@ -0,0 +1,381 @@
+/**
+ * Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_CLOCK_ENABLED)
+
+#include <nrfx_clock.h>
+
+#define NRFX_LOG_MODULE CLOCK
+#include <nrfx_log.h>
+
+#if NRFX_CHECK(NRFX_POWER_ENABLED)
+extern bool nrfx_power_irq_enabled;
+#endif
+
+#define EVT_TO_STR(event) \
+ (event == NRF_CLOCK_EVENT_HFCLKSTARTED ? "NRF_CLOCK_EVENT_HFCLKSTARTED" : \
+ (event == NRF_CLOCK_EVENT_LFCLKSTARTED ? "NRF_CLOCK_EVENT_LFCLKSTARTED" : \
+ (event == NRF_CLOCK_EVENT_DONE ? "NRF_CLOCK_EVENT_DONE" : \
+ (event == NRF_CLOCK_EVENT_CTTO ? "NRF_CLOCK_EVENT_CTTO" : \
+ "UNKNOWN EVENT"))))
+
+
+/*lint -save -e652 */
+#define NRF_CLOCK_LFCLK_RC CLOCK_LFCLKSRC_SRC_RC
+#define NRF_CLOCK_LFCLK_Xtal CLOCK_LFCLKSRC_SRC_Xtal
+#define NRF_CLOCK_LFCLK_Synth CLOCK_LFCLKSRC_SRC_Synth
+/*lint -restore */
+
+#if (NRFX_CLOCK_CONFIG_LF_SRC == NRF_CLOCK_LFCLK_RC)
+#define CALIBRATION_SUPPORT 1
+#else
+#define CALIBRATION_SUPPORT 0
+#endif
+
+#if defined(NRF52810_XXAA) || \
+ defined(NRF52832_XXAA) || defined(NRF52832_XXAB) || \
+ defined(NRF52840_XXAA)
+// Enable workaround for nRF52 anomaly 192 (LFRC oscillator frequency is wrong
+// after calibration, exceeding 500 ppm).
+#define USE_WORKAROUND_FOR_ANOMALY_192
+
+// Enable workaround for nRF52 anomaly 201 (EVENTS_HFCLKSTARTED might be generated twice).
+#define USE_WORKAROUND_FOR_ANOMALY_201
+#endif
+
+typedef enum
+{
+ CAL_STATE_IDLE,
+ CAL_STATE_CAL
+} nrfx_clock_cal_state_t;
+
+/**@brief CLOCK control block. */
+typedef struct
+{
+ nrfx_clock_event_handler_t event_handler;
+ bool module_initialized; /*< Indicate the state of module */
+#if defined(USE_WORKAROUND_FOR_ANOMALY_201)
+ bool hfclk_started; /*< Anomaly 201 workaround. */
+#endif
+
+#if CALIBRATION_SUPPORT
+ volatile nrfx_clock_cal_state_t cal_state;
+#endif // CALIBRATION_SUPPORT
+} nrfx_clock_cb_t;
+
+static nrfx_clock_cb_t m_clock_cb;
+
+/**
+ * This variable is used to check whether common POWER_CLOCK common interrupt
+ * should be disabled or not if @ref nrfx_power tries to disable the interrupt.
+ */
+#if NRFX_CHECK(NRFX_POWER_ENABLED)
+bool nrfx_clock_irq_enabled;
+#endif
+
+#if defined(NRF52832_XXAA) || defined(NRF52832_XXAB)
+
+// ANOMALY 132 - LFCLK needs to avoid frame from 66us to 138us after LFCLK stop. This solution
+// applies delay of 138us before starting LFCLK.
+#define ANOMALY_132_REQ_DELAY_US 138UL
+
+// nRF52832 is clocked with 64MHz.
+#define ANOMALY_132_NRF52832_FREQ_MHZ 64UL
+
+// Convert time to cycles.
+#define ANOMALY_132_DELAY_CYCLES (ANOMALY_132_REQ_DELAY_US * ANOMALY_132_NRF52832_FREQ_MHZ)
+
+/**
+ * @brief Function for applying delay of 138us before starting LFCLK.
+ */
+static void nrfx_clock_anomaly_132(void)
+{
+ uint32_t cyccnt_inital;
+ uint32_t core_debug;
+ uint32_t dwt_ctrl;
+
+ // Preserve DEMCR register to do not influence into its configuration. Enable the trace and
+ // debug blocks. It is required to read and write data to DWT block.
+ core_debug = CoreDebug->DEMCR;
+ CoreDebug->DEMCR = core_debug | CoreDebug_DEMCR_TRCENA_Msk;
+
+ // Preserve CTRL register in DWT block to do not influence into its configuration. Make sure
+ // that cycle counter is enabled.
+ dwt_ctrl = DWT->CTRL;
+ DWT->CTRL = dwt_ctrl | DWT_CTRL_CYCCNTENA_Msk;
+
+ // Store start value of cycle counter.
+ cyccnt_inital = DWT->CYCCNT;
+
+ // Delay required time.
+ while ((DWT->CYCCNT - cyccnt_inital) < ANOMALY_132_DELAY_CYCLES)
+ {}
+
+ // Restore preserved registers.
+ DWT->CTRL = dwt_ctrl;
+ CoreDebug->DEMCR = core_debug;
+}
+
+#endif // defined(NRF52832_XXAA) || defined(NRF52832_XXAB)
+
+nrfx_err_t nrfx_clock_init(nrfx_clock_event_handler_t event_handler)
+{
+ NRFX_ASSERT(event_handler);
+
+ nrfx_err_t err_code = NRFX_SUCCESS;
+ if (m_clock_cb.module_initialized)
+ {
+ err_code = NRFX_ERROR_ALREADY_INITIALIZED;
+ }
+ else
+ {
+#if CALIBRATION_SUPPORT
+ m_clock_cb.cal_state = CAL_STATE_IDLE;
+#endif
+ m_clock_cb.event_handler = event_handler;
+ m_clock_cb.module_initialized = true;
+#if defined(USE_WORKAROUND_FOR_ANOMALY_201)
+ m_clock_cb.hfclk_started = false;
+#endif
+ }
+
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_clock_enable(void)
+{
+ NRFX_ASSERT(m_clock_cb.module_initialized);
+ nrfx_power_clock_irq_init();
+ nrf_clock_lf_src_set((nrf_clock_lfclk_t)NRFX_CLOCK_CONFIG_LF_SRC);
+
+#if NRFX_CHECK(NRFX_POWER_ENABLED)
+ nrfx_clock_irq_enabled = true;
+#endif
+
+ NRFX_LOG_INFO("Module enabled.");
+}
+
+void nrfx_clock_disable(void)
+{
+ NRFX_ASSERT(m_clock_cb.module_initialized);
+#if NRFX_CHECK(NRFX_POWER_ENABLED)
+ NRFX_ASSERT(nrfx_clock_irq_enabled);
+ if (!nrfx_power_irq_enabled)
+#endif
+ {
+ NRFX_IRQ_DISABLE(POWER_CLOCK_IRQn);
+ }
+ nrf_clock_int_disable(CLOCK_INTENSET_HFCLKSTARTED_Msk |
+ CLOCK_INTENSET_LFCLKSTARTED_Msk |
+ CLOCK_INTENSET_DONE_Msk |
+ CLOCK_INTENSET_CTTO_Msk);
+#if NRFX_CHECK(NRFX_POWER_ENABLED)
+ nrfx_clock_irq_enabled = false;
+#endif
+ NRFX_LOG_INFO("Module disabled.");
+}
+
+void nrfx_clock_uninit(void)
+{
+ NRFX_ASSERT(m_clock_cb.module_initialized);
+ nrfx_clock_lfclk_stop();
+ nrfx_clock_hfclk_stop();
+ m_clock_cb.module_initialized = false;
+ NRFX_LOG_INFO("Uninitialized.");
+}
+
+void nrfx_clock_lfclk_start(void)
+{
+ NRFX_ASSERT(m_clock_cb.module_initialized);
+ nrf_clock_event_clear(NRF_CLOCK_EVENT_LFCLKSTARTED);
+ nrf_clock_int_enable(NRF_CLOCK_INT_LF_STARTED_MASK);
+
+#if defined(NRF52832_XXAA) || defined(NRF52832_XXAB)
+ nrfx_clock_anomaly_132();
+#endif
+
+ nrf_clock_task_trigger(NRF_CLOCK_TASK_LFCLKSTART);
+}
+
+void nrfx_clock_lfclk_stop(void)
+{
+ NRFX_ASSERT(m_clock_cb.module_initialized);
+ nrf_clock_task_trigger(NRF_CLOCK_TASK_LFCLKSTOP);
+ while (nrf_clock_lf_is_running())
+ {}
+}
+
+void nrfx_clock_hfclk_start(void)
+{
+ NRFX_ASSERT(m_clock_cb.module_initialized);
+ nrf_clock_event_clear(NRF_CLOCK_EVENT_HFCLKSTARTED);
+ nrf_clock_int_enable(NRF_CLOCK_INT_HF_STARTED_MASK);
+ nrf_clock_task_trigger(NRF_CLOCK_TASK_HFCLKSTART);
+}
+
+void nrfx_clock_hfclk_stop(void)
+{
+ NRFX_ASSERT(m_clock_cb.module_initialized);
+ nrf_clock_task_trigger(NRF_CLOCK_TASK_HFCLKSTOP);
+ while (nrf_clock_hf_is_running(NRF_CLOCK_HFCLK_HIGH_ACCURACY))
+ {}
+#if defined(USE_WORKAROUND_FOR_ANOMALY_201)
+ m_clock_cb.hfclk_started = false;
+#endif
+}
+
+nrfx_err_t nrfx_clock_calibration_start(void)
+{
+ nrfx_err_t err_code = NRFX_SUCCESS;
+#if CALIBRATION_SUPPORT
+ if (nrfx_clock_hfclk_is_running() == false)
+ {
+ return NRFX_ERROR_INVALID_STATE;
+ }
+
+ if (nrfx_clock_lfclk_is_running() == false)
+ {
+ return NRFX_ERROR_INVALID_STATE;
+ }
+
+ if (m_clock_cb.cal_state == CAL_STATE_IDLE)
+ {
+ nrf_clock_event_clear(NRF_CLOCK_EVENT_DONE);
+ nrf_clock_int_enable(NRF_CLOCK_INT_DONE_MASK);
+ m_clock_cb.cal_state = CAL_STATE_CAL;
+#if defined(USE_WORKAROUND_FOR_ANOMALY_192)
+ *(volatile uint32_t *)0x40000C34 = 0x00000002;
+#endif
+ nrf_clock_task_trigger(NRF_CLOCK_TASK_CAL);
+ }
+ else
+ {
+ err_code = NRFX_ERROR_BUSY;
+ }
+#endif // CALIBRATION_SUPPORT
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+nrfx_err_t nrfx_clock_is_calibrating(void)
+{
+#if CALIBRATION_SUPPORT
+ if (m_clock_cb.cal_state == CAL_STATE_CAL)
+ {
+ return NRFX_ERROR_BUSY;
+ }
+#endif
+ return NRFX_SUCCESS;
+}
+
+void nrfx_clock_calibration_timer_start(uint8_t interval)
+{
+ nrf_clock_cal_timer_timeout_set(interval);
+ nrf_clock_event_clear(NRF_CLOCK_EVENT_CTTO);
+ nrf_clock_int_enable(NRF_CLOCK_INT_CTTO_MASK);
+ nrf_clock_task_trigger(NRF_CLOCK_TASK_CTSTART);
+}
+
+void nrfx_clock_calibration_timer_stop(void)
+{
+ nrf_clock_int_disable(NRF_CLOCK_INT_CTTO_MASK);
+ nrf_clock_task_trigger(NRF_CLOCK_TASK_CTSTOP);
+}
+
+void nrfx_clock_irq_handler(void)
+{
+ if (nrf_clock_event_check(NRF_CLOCK_EVENT_HFCLKSTARTED))
+ {
+ nrf_clock_event_clear(NRF_CLOCK_EVENT_HFCLKSTARTED);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_CLOCK_EVENT_HFCLKSTARTED));
+ nrf_clock_int_disable(NRF_CLOCK_INT_HF_STARTED_MASK);
+
+#if defined(USE_WORKAROUND_FOR_ANOMALY_201)
+ if (!m_clock_cb.hfclk_started)
+ {
+ m_clock_cb.hfclk_started = true;
+ m_clock_cb.event_handler(NRFX_CLOCK_EVT_HFCLK_STARTED);
+ }
+#else
+ m_clock_cb.event_handler(NRFX_CLOCK_EVT_HFCLK_STARTED);
+#endif
+ }
+ if (nrf_clock_event_check(NRF_CLOCK_EVENT_LFCLKSTARTED))
+ {
+ nrf_clock_event_clear(NRF_CLOCK_EVENT_LFCLKSTARTED);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_CLOCK_EVENT_LFCLKSTARTED));
+ nrf_clock_int_disable(NRF_CLOCK_INT_LF_STARTED_MASK);
+
+ m_clock_cb.event_handler(NRFX_CLOCK_EVT_LFCLK_STARTED);
+ }
+#if CALIBRATION_SUPPORT
+ if (nrf_clock_event_check(NRF_CLOCK_EVENT_CTTO))
+ {
+ nrf_clock_event_clear(NRF_CLOCK_EVENT_CTTO);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_CLOCK_EVENT_CTTO));
+ nrf_clock_int_disable(NRF_CLOCK_INT_CTTO_MASK);
+
+ m_clock_cb.event_handler(NRFX_CLOCK_EVT_CTTO);
+ }
+
+ if (nrf_clock_event_check(NRF_CLOCK_EVENT_DONE))
+ {
+#if defined(USE_WORKAROUND_FOR_ANOMALY_192)
+ *(volatile uint32_t *)0x40000C34 = 0x00000000;
+#endif
+ nrf_clock_event_clear(NRF_CLOCK_EVENT_DONE);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_CLOCK_EVENT_DONE));
+ nrf_clock_int_disable(NRF_CLOCK_INT_DONE_MASK);
+ m_clock_cb.cal_state = CAL_STATE_IDLE;
+ m_clock_cb.event_handler(NRFX_CLOCK_EVT_CAL_DONE);
+ }
+#endif // CALIBRATION_SUPPORT
+}
+
+#undef NRF_CLOCK_LFCLK_RC
+#undef NRF_CLOCK_LFCLK_Xtal
+#undef NRF_CLOCK_LFCLK_Synth
+
+#endif // NRFX_CHECK(NRFX_CLOCK_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_comp.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_comp.c
new file mode 100644
index 0000000..63572d5
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_comp.c
@@ -0,0 +1,211 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_COMP_ENABLED)
+
+#include <nrfx_comp.h>
+#include "prs/nrfx_prs.h"
+
+#define NRFX_LOG_MODULE COMP
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRF_COMP_EVENT_READY ? "NRF_COMP_EVENT_READY" : \
+ (event == NRF_COMP_EVENT_DOWN ? "NRF_COMP_EVENT_DOWN" : \
+ (event == NRF_COMP_EVENT_UP ? "NRF_COMP_EVENT_UP" : \
+ (event == NRF_COMP_EVENT_CROSS ? "NRF_COMP_EVENT_CROSS" : \
+ "UNKNOWN ERROR"))))
+
+
+static nrfx_comp_event_handler_t m_comp_event_handler = NULL;
+static nrfx_drv_state_t m_state = NRFX_DRV_STATE_UNINITIALIZED;
+
+static void comp_execute_handler(nrf_comp_event_t event, uint32_t event_mask)
+{
+ if (nrf_comp_event_check(event) && nrf_comp_int_enable_check(event_mask))
+ {
+ nrf_comp_event_clear(event);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(event));
+
+ m_comp_event_handler(event);
+ }
+}
+
+void nrfx_comp_irq_handler(void)
+{
+ comp_execute_handler(NRF_COMP_EVENT_READY, COMP_INTENSET_READY_Msk);
+ comp_execute_handler(NRF_COMP_EVENT_DOWN, COMP_INTENSET_DOWN_Msk);
+ comp_execute_handler(NRF_COMP_EVENT_UP, COMP_INTENSET_UP_Msk);
+ comp_execute_handler(NRF_COMP_EVENT_CROSS, COMP_INTENSET_CROSS_Msk);
+}
+
+
+nrfx_err_t nrfx_comp_init(nrfx_comp_config_t const * p_config,
+ nrfx_comp_event_handler_t event_handler)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(event_handler);
+ nrfx_err_t err_code;
+
+ if (m_state != NRFX_DRV_STATE_UNINITIALIZED)
+ { // COMP driver is already initialized
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ m_comp_event_handler = event_handler;
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ if (nrfx_prs_acquire(NRF_COMP, nrfx_comp_irq_handler) != NRFX_SUCCESS)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+#endif
+
+ nrf_comp_task_trigger(NRF_COMP_TASK_STOP);
+ nrf_comp_enable();
+
+ // Clear events to be sure there are no leftovers.
+ nrf_comp_event_clear(NRF_COMP_EVENT_READY);
+ nrf_comp_event_clear(NRF_COMP_EVENT_DOWN);
+ nrf_comp_event_clear(NRF_COMP_EVENT_UP);
+ nrf_comp_event_clear(NRF_COMP_EVENT_CROSS);
+
+ nrf_comp_ref_set(p_config->reference);
+
+ //If external source is chosen, write to appropriate register.
+ if (p_config->reference == COMP_REFSEL_REFSEL_ARef)
+ {
+ nrf_comp_ext_ref_set(p_config->ext_ref);
+ }
+
+ nrf_comp_th_set(p_config->threshold);
+ nrf_comp_main_mode_set(p_config->main_mode);
+ nrf_comp_speed_mode_set(p_config->speed_mode);
+ nrf_comp_hysteresis_set(p_config->hyst);
+#if defined (COMP_ISOURCE_ISOURCE_Msk)
+ nrf_comp_isource_set(p_config->isource);
+#endif
+ nrf_comp_shorts_disable(NRFX_COMP_SHORT_STOP_AFTER_CROSS_EVT |
+ NRFX_COMP_SHORT_STOP_AFTER_UP_EVT |
+ NRFX_COMP_SHORT_STOP_AFTER_DOWN_EVT);
+ nrf_comp_int_disable(COMP_INTENCLR_CROSS_Msk |
+ COMP_INTENCLR_UP_Msk |
+ COMP_INTENCLR_DOWN_Msk |
+ COMP_INTENCLR_READY_Msk);
+
+ nrf_comp_input_select(p_config->input);
+
+ NRFX_IRQ_PRIORITY_SET(COMP_LPCOMP_IRQn, p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(COMP_LPCOMP_IRQn);
+
+ m_state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_comp_uninit(void)
+{
+ NRFX_ASSERT(m_state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_IRQ_DISABLE(COMP_LPCOMP_IRQn);
+ nrf_comp_disable();
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ nrfx_prs_release(NRF_COMP);
+#endif
+ m_state = NRFX_DRV_STATE_UNINITIALIZED;
+ m_comp_event_handler = NULL;
+ NRFX_LOG_INFO("Uninitialized.");
+}
+
+void nrfx_comp_pin_select(nrf_comp_input_t psel)
+{
+ bool comp_enable_state = nrf_comp_enable_check();
+ nrf_comp_task_trigger(NRF_COMP_TASK_STOP);
+ if (m_state == NRFX_DRV_STATE_POWERED_ON)
+ {
+ m_state = NRFX_DRV_STATE_INITIALIZED;
+ }
+ nrf_comp_disable();
+ nrf_comp_input_select(psel);
+ if (comp_enable_state == true)
+ {
+ nrf_comp_enable();
+ }
+}
+
+void nrfx_comp_start(uint32_t comp_int_mask, uint32_t comp_shorts_mask)
+{
+ NRFX_ASSERT(m_state == NRFX_DRV_STATE_INITIALIZED);
+ nrf_comp_int_enable(comp_int_mask);
+ nrf_comp_shorts_enable(comp_shorts_mask);
+ nrf_comp_task_trigger(NRF_COMP_TASK_START);
+ m_state = NRFX_DRV_STATE_POWERED_ON;
+ NRFX_LOG_INFO("Enabled.");
+}
+
+void nrfx_comp_stop(void)
+{
+ NRFX_ASSERT(m_state == NRFX_DRV_STATE_POWERED_ON);
+ nrf_comp_shorts_disable(UINT32_MAX);
+ nrf_comp_int_disable(UINT32_MAX);
+ nrf_comp_task_trigger(NRF_COMP_TASK_STOP);
+ m_state = NRFX_DRV_STATE_INITIALIZED;
+ NRFX_LOG_INFO("Disabled.");
+}
+
+uint32_t nrfx_comp_sample()
+{
+ NRFX_ASSERT(m_state == NRFX_DRV_STATE_POWERED_ON);
+ nrf_comp_task_trigger(NRF_COMP_TASK_SAMPLE);
+ return nrf_comp_result_get();
+}
+
+#endif // NRFX_CHECK(NRFX_COMP_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_gpiote.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_gpiote.c
new file mode 100644
index 0000000..8412b60
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_gpiote.c
@@ -0,0 +1,826 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_GPIOTE_ENABLED)
+
+#include <nrfx_gpiote.h>
+#include "nrf_bitmask.h"
+#include <string.h>
+
+#define NRFX_LOG_MODULE GPIOTE
+#include <nrfx_log.h>
+
+
+#define FORBIDDEN_HANDLER_ADDRESS ((nrfx_gpiote_evt_handler_t)UINT32_MAX)
+#define PIN_NOT_USED (-1)
+#define PIN_USED (-2)
+#define NO_CHANNELS (-1)
+#define SENSE_FIELD_POS (6)
+#define SENSE_FIELD_MASK (0xC0)
+
+/**
+ * @brief Macro for converting task-event index to an address of an event register.
+ *
+ * Macro utilizes the fact that registers are grouped together in ascending order.
+ */
+#define TE_IDX_TO_EVENT_ADDR(idx) (nrf_gpiote_events_t)((uint32_t)NRF_GPIOTE_EVENTS_IN_0 + \
+ (sizeof(uint32_t) * (idx)))
+
+/**
+ * @brief Macro for converting task-event index of OUT task to an address of a task register.
+ *
+ * Macro utilizes the fact that registers are grouped together in ascending order.
+ */
+#define TE_OUT_IDX_TO_TASK_ADDR(idx) (nrf_gpiote_tasks_t)((uint32_t)NRF_GPIOTE_TASKS_OUT_0 + \
+ (sizeof(uint32_t) * (idx)))
+
+#if defined(GPIOTE_FEATURE_SET_PRESENT) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Macro for converting task-event index of SET task to an address of a task register.
+ *
+ * Macro utilizes the fact that registers are grouped together in ascending order.
+ */
+#define TE_SET_IDX_TO_TASK_ADDR(idx) (nrf_gpiote_tasks_t)((uint32_t)NRF_GPIOTE_TASKS_SET_0 + \
+ (sizeof(uint32_t) * (idx)))
+
+#endif // defined(GPIOTE_FEATURE_SET_PRESENT) || defined(__NRFX_DOXYGEN__)
+
+#if defined(GPIOTE_FEATURE_CLR_PRESENT) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Macro for converting task-event index of CLR task to an address of a task register.
+ *
+ * Macro utilizes the fact that registers are grouped together in ascending order.
+ */
+#define TE_CLR_IDX_TO_TASK_ADDR(idx) (nrf_gpiote_tasks_t)((uint32_t)NRF_GPIOTE_TASKS_CLR_0 + \
+ (sizeof(uint32_t) * (idx)))
+
+#endif // defined(GPIOTE_FEATURE_CLR_PRESENT) || defined(__NRFX_DOXYGEN__)
+
+/*lint -save -e571*/ /* Suppress "Warning 571: Suspicious cast" */
+typedef struct
+{
+ nrfx_gpiote_evt_handler_t handlers[GPIOTE_CH_NUM + NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS];
+ int8_t pin_assignments[NUMBER_OF_PINS];
+ int8_t port_handlers_pins[NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS];
+ uint8_t configured_pins[((NUMBER_OF_PINS)+7) / 8];
+ nrfx_drv_state_t state;
+} gpiote_control_block_t;
+
+static gpiote_control_block_t m_cb;
+
+__STATIC_INLINE bool pin_in_use(uint32_t pin)
+{
+ return (m_cb.pin_assignments[pin] != PIN_NOT_USED);
+}
+
+
+__STATIC_INLINE bool pin_in_use_as_non_task_out(uint32_t pin)
+{
+ return (m_cb.pin_assignments[pin] == PIN_USED);
+}
+
+
+__STATIC_INLINE bool pin_in_use_by_te(uint32_t pin)
+{
+ return (m_cb.pin_assignments[pin] >= 0 && m_cb.pin_assignments[pin] < GPIOTE_CH_NUM) ?
+ true : false;
+}
+
+
+__STATIC_INLINE bool pin_in_use_by_port(uint32_t pin)
+{
+ return (m_cb.pin_assignments[pin] >= GPIOTE_CH_NUM);
+}
+
+
+__STATIC_INLINE bool pin_in_use_by_gpiote(uint32_t pin)
+{
+ return (m_cb.pin_assignments[pin] >= 0);
+}
+
+
+__STATIC_INLINE void pin_in_use_by_te_set(uint32_t pin,
+ uint32_t channel_id,
+ nrfx_gpiote_evt_handler_t handler,
+ bool is_channel)
+{
+ m_cb.pin_assignments[pin] = channel_id;
+ m_cb.handlers[channel_id] = handler;
+ if (!is_channel)
+ {
+ m_cb.port_handlers_pins[channel_id - GPIOTE_CH_NUM] = (int8_t)pin;
+ }
+}
+
+
+__STATIC_INLINE void pin_in_use_set(uint32_t pin)
+{
+ m_cb.pin_assignments[pin] = PIN_USED;
+}
+
+
+__STATIC_INLINE void pin_in_use_clear(uint32_t pin)
+{
+ m_cb.pin_assignments[pin] = PIN_NOT_USED;
+}
+
+
+__STATIC_INLINE void pin_configured_set(uint32_t pin)
+{
+ nrf_bitmask_bit_set(pin, m_cb.configured_pins);
+}
+
+__STATIC_INLINE void pin_configured_clear(uint32_t pin)
+{
+ nrf_bitmask_bit_clear(pin, m_cb.configured_pins);
+}
+
+__STATIC_INLINE bool pin_configured_check(uint32_t pin)
+{
+ return 0 != nrf_bitmask_bit_is_set(pin, m_cb.configured_pins);
+}
+
+__STATIC_INLINE int8_t channel_port_get(uint32_t pin)
+{
+ return m_cb.pin_assignments[pin];
+}
+
+
+__STATIC_INLINE nrfx_gpiote_evt_handler_t channel_handler_get(uint32_t channel)
+{
+ return m_cb.handlers[channel];
+}
+
+
+static int8_t channel_port_alloc(uint32_t pin, nrfx_gpiote_evt_handler_t handler, bool channel)
+{
+ int8_t channel_id = NO_CHANNELS;
+ uint32_t i;
+
+ uint32_t start_idx = channel ? 0 : GPIOTE_CH_NUM;
+ uint32_t end_idx =
+ channel ? GPIOTE_CH_NUM : (GPIOTE_CH_NUM + NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS);
+
+ // critical section
+
+ for (i = start_idx; i < end_idx; i++)
+ {
+ if (m_cb.handlers[i] == FORBIDDEN_HANDLER_ADDRESS)
+ {
+ pin_in_use_by_te_set(pin, i, handler, channel);
+ channel_id = i;
+ break;
+ }
+ }
+ // critical section
+ return channel_id;
+}
+
+
+static void channel_free(uint8_t channel_id)
+{
+ m_cb.handlers[channel_id] = FORBIDDEN_HANDLER_ADDRESS;
+ if (channel_id >= GPIOTE_CH_NUM)
+ {
+ m_cb.port_handlers_pins[channel_id - GPIOTE_CH_NUM] = (int8_t)PIN_NOT_USED;
+ }
+}
+
+
+nrfx_err_t nrfx_gpiote_init(void)
+{
+ nrfx_err_t err_code;
+
+ if (m_cb.state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ uint8_t i;
+
+ for (i = 0; i < NUMBER_OF_PINS; i++)
+ {
+ pin_in_use_clear(i);
+ }
+
+ for (i = 0; i < (GPIOTE_CH_NUM + NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS); i++)
+ {
+ channel_free(i);
+ }
+
+ memset(m_cb.configured_pins, 0, sizeof(m_cb.configured_pins));
+
+ NRFX_IRQ_PRIORITY_SET(GPIOTE_IRQn, NRFX_GPIOTE_CONFIG_IRQ_PRIORITY);
+ NRFX_IRQ_ENABLE(GPIOTE_IRQn);
+ nrf_gpiote_event_clear(NRF_GPIOTE_EVENTS_PORT);
+ nrf_gpiote_int_enable(GPIOTE_INTENSET_PORT_Msk);
+ m_cb.state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+bool nrfx_gpiote_is_init(void)
+{
+ return (m_cb.state != NRFX_DRV_STATE_UNINITIALIZED) ? true : false;
+}
+
+
+void nrfx_gpiote_uninit(void)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ uint32_t i;
+
+ for (i = 0; i < NUMBER_OF_PINS; i++)
+ {
+ if (pin_in_use_as_non_task_out(i))
+ {
+ nrfx_gpiote_out_uninit(i);
+ }
+ else if ( pin_in_use_by_gpiote(i))
+ {
+ /* Disable gpiote_in is having the same effect on out pin as gpiote_out_uninit on
+ * so it can be called on all pins used by GPIOTE.
+ */
+ nrfx_gpiote_in_uninit(i);
+ }
+ }
+ m_cb.state = NRFX_DRV_STATE_UNINITIALIZED;
+ NRFX_LOG_INFO("Uninitialized.");
+}
+
+
+nrfx_err_t nrfx_gpiote_out_init(nrfx_gpiote_pin_t pin,
+ nrfx_gpiote_out_config_t const * p_config)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(m_cb.state == NRFX_DRV_STATE_INITIALIZED);
+ NRFX_ASSERT(p_config);
+
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (pin_in_use(pin))
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ }
+ else
+ {
+ if (p_config->task_pin)
+ {
+ int8_t channel = channel_port_alloc(pin, NULL, true);
+
+ if (channel != NO_CHANNELS)
+ {
+ nrf_gpiote_task_configure((uint32_t)channel,
+ pin,
+ p_config->action,
+ p_config->init_state);
+ }
+ else
+ {
+ err_code = NRFX_ERROR_NO_MEM;
+ }
+ }
+ else
+ {
+ pin_in_use_set(pin);
+ }
+
+ if (err_code == NRFX_SUCCESS)
+ {
+ if (p_config->init_state == NRF_GPIOTE_INITIAL_VALUE_HIGH)
+ {
+ nrf_gpio_pin_set(pin);
+ }
+ else
+ {
+ nrf_gpio_pin_clear(pin);
+ }
+
+ nrf_gpio_cfg_output(pin);
+ pin_configured_set(pin);
+ }
+ }
+
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+void nrfx_gpiote_out_uninit(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use(pin));
+
+ if (pin_in_use_by_te(pin))
+ {
+ channel_free((uint8_t)channel_port_get(pin));
+ nrf_gpiote_te_default((uint32_t)channel_port_get(pin));
+ }
+ pin_in_use_clear(pin);
+
+ if (pin_configured_check(pin))
+ {
+ nrf_gpio_cfg_default(pin);
+ pin_configured_clear(pin);
+ }
+}
+
+
+void nrfx_gpiote_out_set(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use(pin));
+ NRFX_ASSERT(!pin_in_use_by_te(pin));
+
+ nrf_gpio_pin_set(pin);
+}
+
+
+void nrfx_gpiote_out_clear(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use(pin));
+ NRFX_ASSERT(!pin_in_use_by_te(pin));
+
+ nrf_gpio_pin_clear(pin);
+}
+
+
+void nrfx_gpiote_out_toggle(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use(pin));
+ NRFX_ASSERT(!pin_in_use_by_te(pin));
+
+ nrf_gpio_pin_toggle(pin);
+}
+
+
+void nrfx_gpiote_out_task_enable(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use(pin));
+ NRFX_ASSERT(pin_in_use_by_te(pin));
+
+ nrf_gpiote_task_enable((uint32_t)m_cb.pin_assignments[pin]);
+}
+
+
+void nrfx_gpiote_out_task_disable(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use(pin));
+ NRFX_ASSERT(pin_in_use_by_te(pin));
+
+ nrf_gpiote_task_disable((uint32_t)m_cb.pin_assignments[pin]);
+}
+
+
+uint32_t nrfx_gpiote_out_task_addr_get(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use_by_te(pin));
+
+ nrf_gpiote_tasks_t task = TE_OUT_IDX_TO_TASK_ADDR((uint32_t)channel_port_get(pin));
+ return nrf_gpiote_task_addr_get(task);
+}
+
+
+#if defined(GPIOTE_FEATURE_SET_PRESENT)
+uint32_t nrfx_gpiote_set_task_addr_get(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use_by_te(pin));
+
+ nrf_gpiote_tasks_t task = TE_SET_IDX_TO_TASK_ADDR((uint32_t)channel_port_get(pin));
+ return nrf_gpiote_task_addr_get(task);
+}
+
+
+#endif // defined(GPIOTE_FEATURE_SET_PRESENT)
+
+#if defined(GPIOTE_FEATURE_CLR_PRESENT)
+uint32_t nrfx_gpiote_clr_task_addr_get(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use_by_te(pin));
+
+ nrf_gpiote_tasks_t task = TE_CLR_IDX_TO_TASK_ADDR((uint32_t)channel_port_get(pin));
+ return nrf_gpiote_task_addr_get(task);
+}
+
+
+#endif // defined(GPIOTE_FEATURE_CLR_PRESENT)
+
+void nrfx_gpiote_out_task_force(nrfx_gpiote_pin_t pin, uint8_t state)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use(pin));
+ NRFX_ASSERT(pin_in_use_by_te(pin));
+
+ nrf_gpiote_outinit_t init_val =
+ state ? NRF_GPIOTE_INITIAL_VALUE_HIGH : NRF_GPIOTE_INITIAL_VALUE_LOW;
+ nrf_gpiote_task_force((uint32_t)m_cb.pin_assignments[pin], init_val);
+}
+
+
+void nrfx_gpiote_out_task_trigger(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use(pin));
+ NRFX_ASSERT(pin_in_use_by_te(pin));
+
+ nrf_gpiote_tasks_t task = TE_OUT_IDX_TO_TASK_ADDR((uint32_t)channel_port_get(pin));
+ nrf_gpiote_task_set(task);
+}
+
+
+#if defined(GPIOTE_FEATURE_SET_PRESENT)
+void nrfx_gpiote_set_task_trigger(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use(pin));
+ NRFX_ASSERT(pin_in_use_by_te(pin));
+
+ nrf_gpiote_tasks_t task = TE_SET_IDX_TO_TASK_ADDR((uint32_t)channel_port_get(pin));
+ nrf_gpiote_task_set(task);
+}
+
+
+#endif // defined(GPIOTE_FEATURE_SET_PRESENT)
+
+#if defined(GPIOTE_FEATURE_CLR_PRESENT)
+void nrfx_gpiote_clr_task_trigger(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use(pin));
+ NRFX_ASSERT(pin_in_use_by_te(pin));
+
+ nrf_gpiote_tasks_t task = TE_CLR_IDX_TO_TASK_ADDR((uint32_t)channel_port_get(pin));
+ nrf_gpiote_task_set(task);
+}
+
+
+#endif // defined(GPIOTE_FEATURE_CLR_PRESENT)
+
+nrfx_err_t nrfx_gpiote_in_init(nrfx_gpiote_pin_t pin,
+ nrfx_gpiote_in_config_t const * p_config,
+ nrfx_gpiote_evt_handler_t evt_handler)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ /* Only one GPIOTE channel can be assigned to one physical pin. */
+ if (pin_in_use_by_gpiote(pin))
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ }
+ else
+ {
+ int8_t channel = channel_port_alloc(pin, evt_handler, p_config->hi_accuracy);
+ if (channel != NO_CHANNELS)
+ {
+ if (!p_config->skip_gpio_setup)
+ {
+ if (p_config->is_watcher)
+ {
+ nrf_gpio_cfg_watcher(pin);
+ }
+ else
+ {
+ nrf_gpio_cfg_input(pin, p_config->pull);
+ }
+ pin_configured_set(pin);
+ }
+
+ if (p_config->hi_accuracy)
+ {
+ nrf_gpiote_event_configure((uint32_t)channel, pin, p_config->sense);
+ }
+ else
+ {
+ m_cb.port_handlers_pins[channel -
+ GPIOTE_CH_NUM] |= (p_config->sense) << SENSE_FIELD_POS;
+ }
+ }
+ else
+ {
+ err_code = NRFX_ERROR_NO_MEM;
+ }
+ }
+
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_gpiote_in_event_enable(nrfx_gpiote_pin_t pin, bool int_enable)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use_by_gpiote(pin));
+ if (pin_in_use_by_port(pin))
+ {
+ uint8_t pin_and_sense = (uint8_t)
+ m_cb.port_handlers_pins[channel_port_get(pin) - GPIOTE_CH_NUM];
+ nrf_gpiote_polarity_t polarity =
+ (nrf_gpiote_polarity_t)(pin_and_sense >> SENSE_FIELD_POS);
+ nrf_gpio_pin_sense_t sense;
+ if (polarity == NRF_GPIOTE_POLARITY_TOGGLE)
+ {
+ /* read current pin state and set for next sense to oposit */
+ sense = (nrf_gpio_pin_read(pin)) ?
+ NRF_GPIO_PIN_SENSE_LOW : NRF_GPIO_PIN_SENSE_HIGH;
+ }
+ else
+ {
+ sense = (polarity == NRF_GPIOTE_POLARITY_LOTOHI) ?
+ NRF_GPIO_PIN_SENSE_HIGH : NRF_GPIO_PIN_SENSE_LOW;
+ }
+ nrf_gpio_cfg_sense_set(pin, sense);
+ }
+ else if (pin_in_use_by_te(pin))
+ {
+ int32_t channel = (int32_t)channel_port_get(pin);
+ nrf_gpiote_events_t event = TE_IDX_TO_EVENT_ADDR((uint32_t)channel);
+
+ nrf_gpiote_event_enable((uint32_t)channel);
+
+ nrf_gpiote_event_clear(event);
+ if (int_enable)
+ {
+ nrfx_gpiote_evt_handler_t handler = channel_handler_get((uint32_t)channel_port_get(pin));
+ // Enable the interrupt only if event handler was provided.
+ if (handler)
+ {
+ nrf_gpiote_int_enable(1 << channel);
+ }
+ }
+ }
+}
+
+
+void nrfx_gpiote_in_event_disable(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use_by_gpiote(pin));
+ if (pin_in_use_by_port(pin))
+ {
+ nrf_gpio_cfg_sense_set(pin, NRF_GPIO_PIN_NOSENSE);
+ }
+ else if (pin_in_use_by_te(pin))
+ {
+ int32_t channel = (int32_t)channel_port_get(pin);
+ nrf_gpiote_event_disable((uint32_t)channel);
+ nrf_gpiote_int_disable(1 << channel);
+ }
+}
+
+
+void nrfx_gpiote_in_uninit(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use_by_gpiote(pin));
+ nrfx_gpiote_in_event_disable(pin);
+ if (pin_in_use_by_te(pin))
+ {
+ nrf_gpiote_te_default((uint32_t)channel_port_get(pin));
+ }
+ if (pin_configured_check(pin))
+ {
+ nrf_gpio_cfg_default(pin);
+ pin_configured_clear(pin);
+ }
+ channel_free((uint8_t)channel_port_get(pin));
+ pin_in_use_clear(pin);
+}
+
+
+bool nrfx_gpiote_in_is_set(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ return nrf_gpio_pin_read(pin) ? true : false;
+}
+
+
+uint32_t nrfx_gpiote_in_event_addr_get(nrfx_gpiote_pin_t pin)
+{
+ NRFX_ASSERT(pin < NUMBER_OF_PINS);
+ NRFX_ASSERT(pin_in_use_by_port(pin) || pin_in_use_by_te(pin));
+
+ nrf_gpiote_events_t event = NRF_GPIOTE_EVENTS_PORT;
+
+ if (pin_in_use_by_te(pin))
+ {
+ event = TE_IDX_TO_EVENT_ADDR((uint32_t)channel_port_get(pin));
+ }
+ return nrf_gpiote_event_addr_get(event);
+}
+
+
+void nrfx_gpiote_irq_handler(void)
+{
+ uint32_t status = 0;
+ uint32_t input[GPIO_COUNT] = {0};
+
+ /* collect status of all GPIOTE pin events. Processing is done once all are collected and cleared.*/
+ uint32_t i;
+ nrf_gpiote_events_t event = NRF_GPIOTE_EVENTS_IN_0;
+ uint32_t mask = (uint32_t)NRF_GPIOTE_INT_IN0_MASK;
+
+ for (i = 0; i < GPIOTE_CH_NUM; i++)
+ {
+ if (nrf_gpiote_event_is_set(event) && nrf_gpiote_int_is_enabled(mask))
+ {
+ nrf_gpiote_event_clear(event);
+ status |= mask;
+ }
+ mask <<= 1;
+ /* Incrementing to next event, utilizing the fact that events are grouped together
+ * in ascending order. */
+ event = (nrf_gpiote_events_t)((uint32_t)event + sizeof(uint32_t));
+ }
+
+ /* collect PORT status event, if event is set read pins state. Processing is postponed to the
+ * end of interrupt. */
+ if (nrf_gpiote_event_is_set(NRF_GPIOTE_EVENTS_PORT))
+ {
+ nrf_gpiote_event_clear(NRF_GPIOTE_EVENTS_PORT);
+ status |= (uint32_t)NRF_GPIOTE_INT_PORT_MASK;
+ nrf_gpio_ports_read(0, GPIO_COUNT, input);
+ }
+
+ /* Process pin events. */
+ if (status & NRF_GPIOTE_INT_IN_MASK)
+ {
+ mask = (uint32_t)NRF_GPIOTE_INT_IN0_MASK;
+
+ for (i = 0; i < GPIOTE_CH_NUM; i++)
+ {
+ if (mask & status)
+ {
+ nrfx_gpiote_pin_t pin = nrf_gpiote_event_pin_get(i);
+ NRFX_LOG_DEBUG("Event in number: %d.", i);
+ nrf_gpiote_polarity_t polarity = nrf_gpiote_event_polarity_get(i);
+ nrfx_gpiote_evt_handler_t handler = channel_handler_get(i);
+ NRFX_LOG_DEBUG("Pin: %d, polarity: %d.", pin, polarity);
+ if (handler)
+ {
+ handler(pin, polarity);
+ }
+ }
+ mask <<= 1;
+ }
+ }
+
+ if (status & (uint32_t)NRF_GPIOTE_INT_PORT_MASK)
+ {
+ /* Process port event. */
+ uint32_t port_idx;
+ uint8_t repeat = 0;
+ uint32_t toggle_mask[GPIO_COUNT] = {0};
+ uint32_t pins_to_check[GPIO_COUNT];
+
+ // Faster way of doing memset because in interrupt context.
+ for (port_idx = 0; port_idx < GPIO_COUNT; port_idx++)
+ {
+ pins_to_check[port_idx] = 0xFFFFFFFF;
+ }
+
+ do
+ {
+ repeat = 0;
+
+ for (i = 0; i < NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS; i++)
+ {
+ uint8_t pin_and_sense = (uint8_t)m_cb.port_handlers_pins[i];
+ nrfx_gpiote_pin_t pin = (pin_and_sense & ~SENSE_FIELD_MASK);
+
+ if ((m_cb.port_handlers_pins[i] != PIN_NOT_USED)
+ && nrf_bitmask_bit_is_set(pin, pins_to_check))
+ {
+ nrf_gpiote_polarity_t polarity =
+ (nrf_gpiote_polarity_t)((pin_and_sense &
+ SENSE_FIELD_MASK) >> SENSE_FIELD_POS);
+ nrfx_gpiote_evt_handler_t handler =
+ channel_handler_get((uint32_t)channel_port_get(pin));
+ if (handler || (polarity == NRF_GPIOTE_POLARITY_TOGGLE))
+ {
+ if (polarity == NRF_GPIOTE_POLARITY_TOGGLE)
+ {
+ nrf_bitmask_bit_set(pin, toggle_mask);
+ }
+ nrf_gpio_pin_sense_t sense = nrf_gpio_pin_sense_get(pin);
+ uint32_t pin_state = nrf_bitmask_bit_is_set(pin, input);
+ if ((pin_state && (sense == NRF_GPIO_PIN_SENSE_HIGH)) ||
+ (!pin_state && (sense == NRF_GPIO_PIN_SENSE_LOW)) )
+ {
+ NRFX_LOG_DEBUG("PORT event for pin: %d, polarity: %d.", pin, polarity);
+ if (polarity == NRF_GPIOTE_POLARITY_TOGGLE)
+ {
+ nrf_gpio_pin_sense_t next_sense =
+ (sense == NRF_GPIO_PIN_SENSE_HIGH) ?
+ NRF_GPIO_PIN_SENSE_LOW :
+ NRF_GPIO_PIN_SENSE_HIGH;
+ nrf_gpio_cfg_sense_set(pin, next_sense);
+ ++repeat;
+
+ }
+ if (handler)
+ {
+ handler(pin, polarity);
+ }
+ }
+ }
+ }
+ }
+
+ if (repeat)
+ {
+ // When one of the pins in low-accuracy and toggle mode becomes active,
+ // it's sense mode is inverted to clear the internal SENSE signal.
+ // State of any other enabled low-accuracy input in toggle mode must be checked
+ // explicitly, because it does not trigger the interrput when SENSE signal is active.
+ // For more information about SENSE functionality, refer to Product Specification.
+
+ uint32_t new_input[GPIO_COUNT];
+ bool input_unchanged = true;
+ nrf_gpio_ports_read(0, GPIO_COUNT, new_input);
+
+ // Faster way of doing memcmp because in interrupt context.
+ for (port_idx = 0; port_idx < GPIO_COUNT; port_idx++)
+ {
+ if (new_input[port_idx] != input[port_idx])
+ {
+ input_unchanged = false;
+ break;
+ }
+ }
+
+ if (input_unchanged)
+ {
+ // No change.
+ repeat = 0;
+ }
+ else
+ {
+ // Faster way of doing memcpy because in interrupt context.
+ for (port_idx = 0; port_idx < GPIO_COUNT; port_idx++)
+ {
+ input[port_idx] = new_input[port_idx];
+ pins_to_check[port_idx] = toggle_mask[port_idx];
+ }
+ }
+ }
+ }
+ while (repeat);
+ }
+}
+
+
+/*lint -restore*/
+#endif // NRFX_CHECK(NRFX_GPIOTE_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_i2s.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_i2s.c
new file mode 100644
index 0000000..35beaab
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_i2s.c
@@ -0,0 +1,420 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_I2S_ENABLED)
+
+#include <nrfx_i2s.h>
+#include <hal/nrf_gpio.h>
+
+#define NRFX_LOG_MODULE I2S
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRF_I2S_EVENT_RXPTRUPD ? "NRF_I2S_EVENT_RXPTRUPD" : \
+ (event == NRF_I2S_EVENT_TXPTRUPD ? "NRF_I2S_EVENT_TXPTRUPD" : \
+ (event == NRF_I2S_EVENT_STOPPED ? "NRF_I2S_EVENT_STOPPED" : \
+ "UNKNOWN EVENT")))
+
+// Control block - driver instance local data.
+typedef struct
+{
+ nrfx_i2s_data_handler_t handler;
+ nrfx_drv_state_t state;
+
+ bool use_rx : 1;
+ bool use_tx : 1;
+ bool rx_ready : 1;
+ bool tx_ready : 1;
+ bool buffers_needed : 1;
+ bool buffers_reused : 1;
+
+ uint16_t buffer_size;
+ nrfx_i2s_buffers_t next_buffers;
+ nrfx_i2s_buffers_t current_buffers;
+} i2s_control_block_t;
+static i2s_control_block_t m_cb;
+
+
+static void configure_pins(nrfx_i2s_config_t const * p_config)
+{
+ uint32_t mck_pin, sdout_pin, sdin_pin;
+
+ // Configure pins used by the peripheral:
+
+ // - SCK and LRCK (required) - depending on the mode of operation these
+ // pins are configured as outputs (in Master mode) or inputs (in Slave
+ // mode).
+ if (p_config->mode == NRF_I2S_MODE_MASTER)
+ {
+ nrf_gpio_cfg_output(p_config->sck_pin);
+ nrf_gpio_cfg_output(p_config->lrck_pin);
+ }
+ else
+ {
+ nrf_gpio_cfg_input(p_config->sck_pin, NRF_GPIO_PIN_NOPULL);
+ nrf_gpio_cfg_input(p_config->lrck_pin, NRF_GPIO_PIN_NOPULL);
+ }
+
+ // - MCK (optional) - always output,
+ if (p_config->mck_pin != NRFX_I2S_PIN_NOT_USED)
+ {
+ mck_pin = p_config->mck_pin;
+ nrf_gpio_cfg_output(mck_pin);
+ }
+ else
+ {
+ mck_pin = NRF_I2S_PIN_NOT_CONNECTED;
+ }
+
+ // - SDOUT (optional) - always output,
+ if (p_config->sdout_pin != NRFX_I2S_PIN_NOT_USED)
+ {
+ sdout_pin = p_config->sdout_pin;
+ nrf_gpio_cfg_output(sdout_pin);
+ }
+ else
+ {
+ sdout_pin = NRF_I2S_PIN_NOT_CONNECTED;
+ }
+
+ // - SDIN (optional) - always input.
+ if (p_config->sdin_pin != NRFX_I2S_PIN_NOT_USED)
+ {
+ sdin_pin = p_config->sdin_pin;
+ nrf_gpio_cfg_input(sdin_pin, NRF_GPIO_PIN_NOPULL);
+ }
+ else
+ {
+ sdin_pin = NRF_I2S_PIN_NOT_CONNECTED;
+ }
+
+ nrf_i2s_pins_set(NRF_I2S,
+ p_config->sck_pin,
+ p_config->lrck_pin,
+ mck_pin,
+ sdout_pin,
+ sdin_pin);
+}
+
+
+nrfx_err_t nrfx_i2s_init(nrfx_i2s_config_t const * p_config,
+ nrfx_i2s_data_handler_t handler)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(handler);
+
+ nrfx_err_t err_code;
+
+ if (m_cb.state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ if (!nrf_i2s_configure(NRF_I2S,
+ p_config->mode,
+ p_config->format,
+ p_config->alignment,
+ p_config->sample_width,
+ p_config->channels,
+ p_config->mck_setup,
+ p_config->ratio))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ configure_pins(p_config);
+
+ m_cb.handler = handler;
+
+ NRFX_IRQ_PRIORITY_SET(I2S_IRQn, p_config->irq_priority);
+ NRFX_IRQ_ENABLE(I2S_IRQn);
+
+ m_cb.state = NRFX_DRV_STATE_INITIALIZED;
+
+ NRFX_LOG_INFO("Initialized.");
+ return NRFX_SUCCESS;
+}
+
+
+void nrfx_i2s_uninit(void)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ nrfx_i2s_stop();
+
+ NRFX_IRQ_DISABLE(I2S_IRQn);
+
+ nrf_i2s_pins_set(NRF_I2S,
+ NRF_I2S_PIN_NOT_CONNECTED,
+ NRF_I2S_PIN_NOT_CONNECTED,
+ NRF_I2S_PIN_NOT_CONNECTED,
+ NRF_I2S_PIN_NOT_CONNECTED,
+ NRF_I2S_PIN_NOT_CONNECTED);
+
+ m_cb.state = NRFX_DRV_STATE_UNINITIALIZED;
+ NRFX_LOG_INFO("Uninitialized.");
+}
+
+
+nrfx_err_t nrfx_i2s_start(nrfx_i2s_buffers_t const * p_initial_buffers,
+ uint16_t buffer_size,
+ uint8_t flags)
+{
+ NRFX_ASSERT(p_initial_buffers != NULL);
+ NRFX_ASSERT(p_initial_buffers->p_rx_buffer != NULL ||
+ p_initial_buffers->p_tx_buffer != NULL);
+ NRFX_ASSERT(buffer_size != 0);
+ (void)(flags);
+
+ nrfx_err_t err_code;
+
+ if (m_cb.state != NRFX_DRV_STATE_INITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ if (((p_initial_buffers->p_rx_buffer != NULL)
+ && !nrfx_is_in_ram(p_initial_buffers->p_rx_buffer))
+ ||
+ ((p_initial_buffers->p_tx_buffer != NULL)
+ && !nrfx_is_in_ram(p_initial_buffers->p_tx_buffer)))
+ {
+ err_code = NRFX_ERROR_INVALID_ADDR;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ m_cb.use_rx = (p_initial_buffers->p_rx_buffer != NULL);
+ m_cb.use_tx = (p_initial_buffers->p_tx_buffer != NULL);
+ m_cb.rx_ready = false;
+ m_cb.tx_ready = false;
+ m_cb.buffers_needed = false;
+ m_cb.buffer_size = buffer_size;
+
+ // Set the provided initial buffers as next, they will become the current
+ // ones after the IRQ handler is called for the first time, what will occur
+ // right after the START task is triggered.
+ m_cb.next_buffers = *p_initial_buffers;
+ m_cb.current_buffers.p_rx_buffer = NULL;
+ m_cb.current_buffers.p_tx_buffer = NULL;
+
+ nrf_i2s_transfer_set(NRF_I2S,
+ m_cb.buffer_size,
+ m_cb.next_buffers.p_rx_buffer,
+ m_cb.next_buffers.p_tx_buffer);
+
+ nrf_i2s_enable(NRF_I2S);
+
+ m_cb.state = NRFX_DRV_STATE_POWERED_ON;
+
+ nrf_i2s_event_clear(NRF_I2S, NRF_I2S_EVENT_RXPTRUPD);
+ nrf_i2s_event_clear(NRF_I2S, NRF_I2S_EVENT_TXPTRUPD);
+ nrf_i2s_event_clear(NRF_I2S, NRF_I2S_EVENT_STOPPED);
+ nrf_i2s_int_enable(NRF_I2S, (m_cb.use_rx ? NRF_I2S_INT_RXPTRUPD_MASK : 0) |
+ (m_cb.use_tx ? NRF_I2S_INT_TXPTRUPD_MASK : 0) |
+ NRF_I2S_INT_STOPPED_MASK);
+ nrf_i2s_task_trigger(NRF_I2S, NRF_I2S_TASK_START);
+
+ NRFX_LOG_INFO("Started.");
+ return NRFX_SUCCESS;
+}
+
+
+nrfx_err_t nrfx_i2s_next_buffers_set(nrfx_i2s_buffers_t const * p_buffers)
+{
+ NRFX_ASSERT(m_cb.state == NRFX_DRV_STATE_POWERED_ON);
+ NRFX_ASSERT(p_buffers);
+
+ nrfx_err_t err_code;
+
+ if (!m_cb.buffers_needed)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ if (((p_buffers->p_rx_buffer != NULL)
+ && !nrfx_is_in_ram(p_buffers->p_rx_buffer))
+ ||
+ ((p_buffers->p_tx_buffer != NULL)
+ && !nrfx_is_in_ram(p_buffers->p_tx_buffer)))
+ {
+ err_code = NRFX_ERROR_INVALID_ADDR;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ if (m_cb.use_tx)
+ {
+ NRFX_ASSERT(p_buffers->p_tx_buffer != NULL);
+ nrf_i2s_tx_buffer_set(NRF_I2S, p_buffers->p_tx_buffer);
+ }
+ if (m_cb.use_rx)
+ {
+ NRFX_ASSERT(p_buffers->p_rx_buffer != NULL);
+ nrf_i2s_rx_buffer_set(NRF_I2S, p_buffers->p_rx_buffer);
+ }
+
+ m_cb.next_buffers = *p_buffers;
+ m_cb.buffers_needed = false;
+
+ return NRFX_SUCCESS;
+}
+
+
+void nrfx_i2s_stop(void)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ m_cb.buffers_needed = false;
+
+ // First disable interrupts, then trigger the STOP task, so no spurious
+ // RXPTRUPD and TXPTRUPD events (see nRF52 anomaly 55) are processed.
+ nrf_i2s_int_disable(NRF_I2S, NRF_I2S_INT_RXPTRUPD_MASK |
+ NRF_I2S_INT_TXPTRUPD_MASK);
+ nrf_i2s_task_trigger(NRF_I2S, NRF_I2S_TASK_STOP);
+}
+
+
+void nrfx_i2s_irq_handler(void)
+{
+ if (nrf_i2s_event_check(NRF_I2S, NRF_I2S_EVENT_TXPTRUPD))
+ {
+ nrf_i2s_event_clear(NRF_I2S, NRF_I2S_EVENT_TXPTRUPD);
+ m_cb.tx_ready = true;
+ if (m_cb.use_tx && m_cb.buffers_needed)
+ {
+ m_cb.buffers_reused = true;
+ }
+ }
+ if (nrf_i2s_event_check(NRF_I2S, NRF_I2S_EVENT_RXPTRUPD))
+ {
+ nrf_i2s_event_clear(NRF_I2S, NRF_I2S_EVENT_RXPTRUPD);
+ m_cb.rx_ready = true;
+ if (m_cb.use_rx && m_cb.buffers_needed)
+ {
+ m_cb.buffers_reused = true;
+ }
+ }
+
+ if (nrf_i2s_event_check(NRF_I2S, NRF_I2S_EVENT_STOPPED))
+ {
+ nrf_i2s_event_clear(NRF_I2S, NRF_I2S_EVENT_STOPPED);
+ nrf_i2s_int_disable(NRF_I2S, NRF_I2S_INT_STOPPED_MASK);
+ nrf_i2s_disable(NRF_I2S);
+
+ // When stopped, release all buffers, including these scheduled for
+ // the next transfer.
+ m_cb.handler(&m_cb.current_buffers, 0);
+ m_cb.handler(&m_cb.next_buffers, 0);
+
+ m_cb.state = NRFX_DRV_STATE_INITIALIZED;
+ NRFX_LOG_INFO("Stopped.");
+ }
+ else
+ {
+ // Check if the requested transfer has been completed:
+ // - full-duplex mode
+ if ((m_cb.use_tx && m_cb.use_rx && m_cb.tx_ready && m_cb.rx_ready) ||
+ // - TX only mode
+ (!m_cb.use_rx && m_cb.tx_ready) ||
+ // - RX only mode
+ (!m_cb.use_tx && m_cb.rx_ready))
+ {
+ m_cb.tx_ready = false;
+ m_cb.rx_ready = false;
+
+ // If the application did not supply the buffers for the next
+ // part of the transfer until this moment, the current buffers
+ // cannot be released, since the I2S peripheral already started
+ // using them. Signal this situation to the application by
+ // passing NULL instead of the structure with released buffers.
+ if (m_cb.buffers_reused)
+ {
+ m_cb.buffers_reused = false;
+ // This will most likely be set at this point. However, there is
+ // a small time window between TXPTRUPD and RXPTRUPD events,
+ // and it is theoretically possible that next buffers will be
+ // set in this window, so to be sure this flag is set to true,
+ // set it explicitly.
+ m_cb.buffers_needed = true;
+ m_cb.handler(NULL,
+ NRFX_I2S_STATUS_NEXT_BUFFERS_NEEDED);
+ }
+ else
+ {
+ // Buffers that have been used by the I2S peripheral (current)
+ // are now released and will be returned to the application,
+ // and the ones scheduled to be used as next become the current
+ // ones.
+ nrfx_i2s_buffers_t released_buffers = m_cb.current_buffers;
+ m_cb.current_buffers = m_cb.next_buffers;
+ m_cb.next_buffers.p_rx_buffer = NULL;
+ m_cb.next_buffers.p_tx_buffer = NULL;
+ m_cb.buffers_needed = true;
+ m_cb.handler(&released_buffers,
+ NRFX_I2S_STATUS_NEXT_BUFFERS_NEEDED);
+ }
+
+ }
+ }
+}
+
+#endif // NRFX_CHECK(NRFX_I2S_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_lpcomp.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_lpcomp.c
new file mode 100644
index 0000000..024eda6
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_lpcomp.c
@@ -0,0 +1,174 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_LPCOMP_ENABLED)
+
+#include <nrfx_lpcomp.h>
+#include "prs/nrfx_prs.h"
+
+#define NRFX_LOG_MODULE LPCOMP
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRF_LPCOMP_EVENT_READY ? "NRF_LPCOMP_EVENT_READY" : \
+ (event == NRF_LPCOMP_EVENT_DOWN ? "NRF_LPCOMP_EVENT_DOWN" : \
+ (event == NRF_LPCOMP_EVENT_UP ? "NRF_LPCOMP_EVENT_UP" : \
+ (event == NRF_LPCOMP_EVENT_CROSS ? "NRF_LPCOMP_EVENT_CROSS" : \
+ "UNKNOWN EVENT"))))
+
+
+static nrfx_lpcomp_event_handler_t m_lpcomp_event_handler = NULL;
+static nrfx_drv_state_t m_state = NRFX_DRV_STATE_UNINITIALIZED;
+
+static void lpcomp_execute_handler(nrf_lpcomp_event_t event, uint32_t event_mask)
+{
+ if (nrf_lpcomp_event_check(event) && nrf_lpcomp_int_enable_check(event_mask))
+ {
+ nrf_lpcomp_event_clear(event);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(event));
+
+ m_lpcomp_event_handler(event);
+ }
+}
+
+void nrfx_lpcomp_irq_handler(void)
+{
+ lpcomp_execute_handler(NRF_LPCOMP_EVENT_READY, LPCOMP_INTENSET_READY_Msk);
+ lpcomp_execute_handler(NRF_LPCOMP_EVENT_DOWN, LPCOMP_INTENSET_DOWN_Msk);
+ lpcomp_execute_handler(NRF_LPCOMP_EVENT_UP, LPCOMP_INTENSET_UP_Msk);
+ lpcomp_execute_handler(NRF_LPCOMP_EVENT_CROSS, LPCOMP_INTENSET_CROSS_Msk);
+}
+
+nrfx_err_t nrfx_lpcomp_init(nrfx_lpcomp_config_t const * p_config,
+ nrfx_lpcomp_event_handler_t event_handler)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(event_handler);
+ nrfx_err_t err_code;
+
+ if (m_state != NRFX_DRV_STATE_UNINITIALIZED)
+ { // LPCOMP driver is already initialized
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ m_lpcomp_event_handler = event_handler;
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ if (nrfx_prs_acquire(NRF_LPCOMP, nrfx_lpcomp_irq_handler) != NRFX_SUCCESS)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+#endif
+
+ nrf_lpcomp_configure(&(p_config->hal));
+
+ nrf_lpcomp_input_select(p_config->input);
+
+ switch (p_config->hal.detection)
+ {
+ case NRF_LPCOMP_DETECT_UP:
+ nrf_lpcomp_int_enable(LPCOMP_INTENSET_UP_Msk);
+ break;
+
+ case NRF_LPCOMP_DETECT_DOWN:
+ nrf_lpcomp_int_enable(LPCOMP_INTENSET_DOWN_Msk);
+ break;
+
+ case NRF_LPCOMP_DETECT_CROSS:
+ nrf_lpcomp_int_enable(LPCOMP_INTENSET_CROSS_Msk);
+ break;
+
+ default:
+ break;
+ }
+ nrf_lpcomp_shorts_enable(NRF_LPCOMP_SHORT_READY_SAMPLE_MASK);
+
+ NRFX_IRQ_PRIORITY_SET(LPCOMP_IRQn, p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(LPCOMP_IRQn);
+
+ m_state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_lpcomp_uninit(void)
+{
+ NRFX_ASSERT(m_state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_IRQ_DISABLE(LPCOMP_IRQn);
+ nrfx_lpcomp_disable();
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ nrfx_prs_release(NRF_LPCOMP);
+#endif
+ m_state = NRFX_DRV_STATE_UNINITIALIZED;
+ m_lpcomp_event_handler = NULL;
+ NRFX_LOG_INFO("Uninitialized.");
+}
+
+void nrfx_lpcomp_enable(void)
+{
+ NRFX_ASSERT(m_state == NRFX_DRV_STATE_INITIALIZED);
+ nrf_lpcomp_enable();
+ nrf_lpcomp_task_trigger(NRF_LPCOMP_TASK_START);
+ m_state = NRFX_DRV_STATE_POWERED_ON;
+ NRFX_LOG_INFO("Enabled.");
+}
+
+void nrfx_lpcomp_disable(void)
+{
+ NRFX_ASSERT(m_state == NRFX_DRV_STATE_POWERED_ON);
+ nrf_lpcomp_disable();
+ nrf_lpcomp_task_trigger(NRF_LPCOMP_TASK_STOP);
+ m_state = NRFX_DRV_STATE_INITIALIZED;
+ NRFX_LOG_INFO("Disabled.");
+}
+
+#endif // NRFX_CHECK(NRFX_LPCOMP_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_pdm.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_pdm.c
new file mode 100644
index 0000000..db0945e
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_pdm.c
@@ -0,0 +1,370 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_PDM_ENABLED)
+
+#include <nrfx_pdm.h>
+#include <hal/nrf_gpio.h>
+
+#define NRFX_LOG_MODULE PDM
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRF_PDM_EVENT_STARTED ? "NRF_PDM_EVENT_STARTED" : \
+ (event == NRF_PDM_EVENT_STOPPED ? "NRF_PDM_EVENT_STOPPED" : \
+ (event == NRF_PDM_EVENT_END ? "NRF_PDM_EVENT_END" : \
+ "UNKNOWN EVENT")))
+
+
+/** @brief PDM interface status. */
+typedef enum
+{
+ NRFX_PDM_STATE_IDLE,
+ NRFX_PDM_STATE_RUNNING,
+ NRFX_PDM_STATE_STARTING,
+ NRFX_PDM_STATE_STOPPING
+} nrfx_pdm_state_t;
+
+/** @brief PDM interface control block.*/
+typedef struct
+{
+ nrfx_pdm_event_handler_t event_handler; ///< Event handler function pointer.
+ int16_t * buff_address[2]; ///< Sample buffers.
+ uint16_t buff_length[2]; ///< Length of the sample buffers.
+ nrfx_drv_state_t drv_state; ///< Driver state.
+ volatile nrfx_pdm_state_t op_state; ///< PDM peripheral operation state.
+ uint8_t active_buffer; ///< Number of currently active buffer.
+ uint8_t error; ///< Driver error flag.
+ volatile uint8_t irq_buff_request; ///< Request the next buffer in the ISR.
+} nrfx_pdm_cb_t;
+
+static nrfx_pdm_cb_t m_cb;
+
+
+void nrfx_pdm_irq_handler(void)
+{
+ if (nrf_pdm_event_check(NRF_PDM_EVENT_STARTED))
+ {
+ nrf_pdm_event_clear(NRF_PDM_EVENT_STARTED);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_PDM_EVENT_STARTED));
+
+ uint8_t finished_buffer = m_cb.active_buffer;
+
+ // Check if the next buffer was set before.
+ uint8_t next_buffer = (~m_cb.active_buffer) & 0x01;
+ if (m_cb.buff_address[next_buffer] ||
+ m_cb.op_state == NRFX_PDM_STATE_STARTING)
+ {
+ nrfx_pdm_evt_t evt;
+ evt.error = NRFX_PDM_NO_ERROR;
+ m_cb.error = 0;
+
+ // Release the full buffer if ready and request the next one.
+ if (m_cb.op_state == NRFX_PDM_STATE_STARTING)
+ {
+ evt.buffer_released = 0;
+ m_cb.op_state = NRFX_PDM_STATE_RUNNING;
+ }
+ else
+ {
+ evt.buffer_released = m_cb.buff_address[finished_buffer];
+ m_cb.buff_address[finished_buffer] = 0;
+ m_cb.active_buffer = next_buffer;
+ }
+ evt.buffer_requested = true;
+ m_cb.event_handler(&evt);
+ }
+ else
+ {
+ // No next buffer available. Report an error.
+ // Do not request the new buffer as it was already done.
+ if (m_cb.error == 0)
+ {
+ nrfx_pdm_evt_t const evt = {
+ .buffer_requested = false,
+ .buffer_released = NULL,
+ .error = NRFX_PDM_ERROR_OVERFLOW
+ };
+ m_cb.error = 1;
+ m_cb.event_handler(&evt);
+ }
+ }
+
+ if (m_cb.op_state == NRFX_PDM_STATE_STARTING)
+ {
+ m_cb.op_state = NRFX_PDM_STATE_RUNNING;
+ }
+ }
+ else if (nrf_pdm_event_check(NRF_PDM_EVENT_STOPPED))
+ {
+ nrf_pdm_event_clear(NRF_PDM_EVENT_STOPPED);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_PDM_EVENT_STOPPED));
+ nrf_pdm_disable();
+ m_cb.op_state = NRFX_PDM_STATE_IDLE;
+
+ // Release the buffers.
+ nrfx_pdm_evt_t evt;
+ evt.error = NRFX_PDM_NO_ERROR;
+ evt.buffer_requested = false;
+ if (m_cb.buff_address[m_cb.active_buffer])
+ {
+ evt.buffer_released = m_cb.buff_address[m_cb.active_buffer];
+ m_cb.buff_address[m_cb.active_buffer] = 0;
+ m_cb.event_handler(&evt);
+ }
+
+ uint8_t second_buffer = (~m_cb.active_buffer) & 0x01;
+ if (m_cb.buff_address[second_buffer])
+ {
+ evt.buffer_released = m_cb.buff_address[second_buffer];
+ m_cb.buff_address[second_buffer] = 0;
+ m_cb.event_handler(&evt);
+ }
+ m_cb.active_buffer = 0;
+ }
+
+ if (m_cb.irq_buff_request)
+ {
+ nrfx_pdm_evt_t const evt =
+ {
+ .buffer_requested = true,
+ .buffer_released = NULL,
+ .error = NRFX_PDM_NO_ERROR,
+ };
+ m_cb.irq_buff_request = 0;
+ m_cb.event_handler(&evt);
+ }
+}
+
+
+nrfx_err_t nrfx_pdm_init(nrfx_pdm_config_t const * p_config,
+ nrfx_pdm_event_handler_t event_handler)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(event_handler);
+ nrfx_err_t err_code;
+
+ if (m_cb.drv_state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ if (p_config->gain_l > NRF_PDM_GAIN_MAXIMUM ||
+ p_config->gain_r > NRF_PDM_GAIN_MAXIMUM)
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ m_cb.buff_address[0] = 0;
+ m_cb.buff_address[1] = 0;
+ m_cb.active_buffer = 0;
+ m_cb.error = 0;
+ m_cb.event_handler = event_handler;
+ m_cb.op_state = NRFX_PDM_STATE_IDLE;
+
+ nrf_pdm_clock_set(p_config->clock_freq);
+ nrf_pdm_mode_set(p_config->mode, p_config->edge);
+ nrf_pdm_gain_set(p_config->gain_l, p_config->gain_r);
+
+ nrf_gpio_cfg_output(p_config->pin_clk);
+ nrf_gpio_pin_clear(p_config->pin_clk);
+ nrf_gpio_cfg_input(p_config->pin_din, NRF_GPIO_PIN_NOPULL);
+ nrf_pdm_psel_connect(p_config->pin_clk, p_config->pin_din);
+
+ nrf_pdm_event_clear(NRF_PDM_EVENT_STARTED);
+ nrf_pdm_event_clear(NRF_PDM_EVENT_END);
+ nrf_pdm_event_clear(NRF_PDM_EVENT_STOPPED);
+ nrf_pdm_int_enable(NRF_PDM_INT_STARTED | NRF_PDM_INT_STOPPED);
+ NRFX_IRQ_PRIORITY_SET(PDM_IRQn, p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(PDM_IRQn);
+ m_cb.drv_state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_pdm_uninit(void)
+{
+ nrf_pdm_disable();
+ nrf_pdm_psel_disconnect();
+ m_cb.drv_state = NRFX_DRV_STATE_UNINITIALIZED;
+ NRFX_LOG_INFO("Uninitialized.");
+}
+
+static void pdm_start()
+{
+ m_cb.drv_state = NRFX_DRV_STATE_POWERED_ON;
+ nrf_pdm_enable();
+ nrf_pdm_event_clear(NRF_PDM_EVENT_STARTED);
+ nrf_pdm_task_trigger(NRF_PDM_TASK_START);
+}
+
+static void pdm_buf_request()
+{
+ m_cb.irq_buff_request = 1;
+ NRFX_IRQ_PENDING_SET(PDM_IRQn);
+}
+
+nrfx_err_t nrfx_pdm_start(void)
+{
+ NRFX_ASSERT(m_cb.drv_state != NRFX_DRV_STATE_UNINITIALIZED);
+ nrfx_err_t err_code;
+
+ if (m_cb.op_state != NRFX_PDM_STATE_IDLE)
+ {
+ if (m_cb.op_state == NRFX_PDM_STATE_RUNNING)
+ {
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ m_cb.op_state = NRFX_PDM_STATE_STARTING;
+ pdm_buf_request();
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+nrfx_err_t nrfx_pdm_buffer_set(int16_t * buffer, uint16_t buffer_length)
+{
+ if (m_cb.drv_state == NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ return NRFX_ERROR_INVALID_STATE;
+ }
+ if (m_cb.op_state == NRFX_PDM_STATE_STOPPING)
+ {
+ return NRFX_ERROR_BUSY;
+ }
+ if ((buffer == NULL) || (buffer_length > NRFX_PDM_MAX_BUFFER_SIZE))
+ {
+ return NRFX_ERROR_INVALID_PARAM;
+ }
+
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ // Enter the PDM critical section.
+ NRFX_IRQ_DISABLE(PDM_IRQn);
+
+ uint8_t next_buffer = (~m_cb.active_buffer) & 0x01;
+ if (m_cb.op_state == NRFX_PDM_STATE_STARTING)
+ {
+ next_buffer = 0;
+ }
+
+ if (m_cb.buff_address[next_buffer])
+ {
+ // Buffer already set.
+ err_code = NRFX_ERROR_BUSY;
+ }
+ else
+ {
+ m_cb.buff_address[next_buffer] = buffer;
+ m_cb.buff_length[next_buffer] = buffer_length;
+ nrf_pdm_buffer_set((uint32_t *)buffer, buffer_length);
+
+ if (m_cb.drv_state != NRFX_DRV_STATE_POWERED_ON)
+ {
+ pdm_start();
+ }
+ }
+
+ NRFX_IRQ_ENABLE(PDM_IRQn);
+ return err_code;
+}
+
+nrfx_err_t nrfx_pdm_stop(void)
+{
+ NRFX_ASSERT(m_cb.drv_state != NRFX_DRV_STATE_UNINITIALIZED);
+ nrfx_err_t err_code;
+
+ if (m_cb.op_state != NRFX_PDM_STATE_RUNNING)
+ {
+ if (m_cb.op_state == NRFX_PDM_STATE_IDLE ||
+ m_cb.op_state == NRFX_PDM_STATE_STARTING)
+ {
+ nrf_pdm_disable();
+ m_cb.op_state = NRFX_PDM_STATE_IDLE;
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ m_cb.drv_state = NRFX_DRV_STATE_INITIALIZED;
+ m_cb.op_state = NRFX_PDM_STATE_STOPPING;
+
+ nrf_pdm_task_trigger(NRF_PDM_TASK_STOP);
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+#endif // NRFX_CHECK(NRFX_PDM_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_power.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_power.c
new file mode 100644
index 0000000..d861951
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_power.c
@@ -0,0 +1,306 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_POWER_ENABLED)
+
+#include <nrfx_power.h>
+
+#if NRFX_CHECK(NRFX_CLOCK_ENABLED)
+extern bool nrfx_clock_irq_enabled;
+#endif
+
+/**
+ * @internal
+ * @defgroup nrfx_power_internals POWER driver internals
+ * @ingroup nrfx_power
+ *
+ * Internal variables, auxiliary macros and functions of POWER driver.
+ * @{
+ */
+
+/**
+ * This variable is used to check whether common POWER_CLOCK common interrupt
+ * should be disabled or not if @ref nrfx_clock tries to disable the interrupt.
+ */
+
+bool nrfx_power_irq_enabled;
+
+/**
+ * @brief The initialization flag
+ */
+
+#define m_initialized nrfx_power_irq_enabled
+
+/**
+ * @brief The handler of power fail comparator warning event
+ */
+static nrfx_power_pofwarn_event_handler_t m_pofwarn_handler;
+
+#if NRF_POWER_HAS_SLEEPEVT || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief The handler of sleep event handler
+ */
+static nrfx_power_sleep_event_handler_t m_sleepevt_handler;
+#endif
+
+#if NRF_POWER_HAS_USBREG || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief The handler of USB power events
+ */
+static nrfx_power_usb_event_handler_t m_usbevt_handler;
+#endif
+
+/** @} */
+
+nrfx_power_pofwarn_event_handler_t nrfx_power_pof_handler_get(void)
+{
+ return m_pofwarn_handler;
+}
+
+#if NRF_POWER_HAS_USBREG
+nrfx_power_usb_event_handler_t nrfx_power_usb_handler_get(void)
+{
+ return m_usbevt_handler;
+}
+#endif
+
+nrfx_err_t nrfx_power_init(nrfx_power_config_t const * p_config)
+{
+ NRFX_ASSERT(p_config);
+ if (m_initialized)
+ {
+ return NRFX_ERROR_ALREADY_INITIALIZED;
+ }
+
+#if NRF_POWER_HAS_VDDH
+ nrf_power_dcdcen_vddh_set(p_config->dcdcenhv);
+#endif
+ nrf_power_dcdcen_set(p_config->dcdcen);
+
+ nrfx_power_clock_irq_init();
+
+ m_initialized = true;
+ return NRFX_SUCCESS;
+}
+
+
+void nrfx_power_uninit(void)
+{
+ NRFX_ASSERT(m_initialized);
+
+#if NRFX_CHECK(NRFX_CLOCK_ENABLED)
+ if (!nrfx_clock_irq_enabled)
+#endif
+ {
+ NRFX_IRQ_DISABLE(POWER_CLOCK_IRQn);
+ }
+
+ nrfx_power_pof_uninit();
+#if NRF_POWER_HAS_SLEEPEVT || defined(__NRFX_DOXYGEN__)
+ nrfx_power_sleepevt_uninit();
+#endif
+#if NRF_POWER_HAS_USBREG || defined(__NRFX_DOXYGEN__)
+ nrfx_power_usbevt_uninit();
+#endif
+ m_initialized = false;
+}
+
+void nrfx_power_pof_init(nrfx_power_pofwarn_config_t const * p_config)
+{
+ NRFX_ASSERT(p_config != NULL);
+
+ nrfx_power_pof_uninit();
+
+ if (p_config->handler != NULL)
+ {
+ m_pofwarn_handler = p_config->handler;
+ }
+}
+
+void nrfx_power_pof_enable(nrfx_power_pofwarn_config_t const * p_config)
+{
+ nrf_power_pofcon_set(true, p_config->thr);
+#if NRF_POWER_HAS_VDDH || defined(__NRFX_DOXYGEN__)
+ nrf_power_pofcon_vddh_set(p_config->thrvddh);
+#endif
+ if (m_pofwarn_handler != NULL)
+ {
+ nrf_power_int_enable(NRF_POWER_INT_POFWARN_MASK);
+ }
+}
+
+void nrfx_power_pof_disable(void)
+{
+ nrf_power_int_disable(NRF_POWER_INT_POFWARN_MASK);
+}
+
+void nrfx_power_pof_uninit(void)
+{
+ m_pofwarn_handler = NULL;
+}
+
+#if NRF_POWER_HAS_SLEEPEVT || defined(__NRFX_DOXYGEN__)
+void nrfx_power_sleepevt_init(nrfx_power_sleepevt_config_t const * p_config)
+{
+ NRFX_ASSERT(p_config != NULL);
+
+ nrfx_power_sleepevt_uninit();
+ if (p_config->handler != NULL)
+ {
+ m_sleepevt_handler = p_config->handler;
+ }
+}
+
+void nrfx_power_sleepevt_enable(nrfx_power_sleepevt_config_t const * p_config)
+{
+ uint32_t enmask = 0;
+ if (p_config->en_enter)
+ {
+ enmask |= NRF_POWER_INT_SLEEPENTER_MASK;
+ nrf_power_event_clear(NRF_POWER_EVENT_SLEEPENTER);
+ }
+ if (p_config->en_exit)
+ {
+ enmask |= NRF_POWER_INT_SLEEPEXIT_MASK;
+ nrf_power_event_clear(NRF_POWER_EVENT_SLEEPEXIT);
+ }
+ nrf_power_int_enable(enmask);
+}
+
+void nrfx_power_sleepevt_disable(void)
+{
+ nrf_power_int_disable(
+ NRF_POWER_INT_SLEEPENTER_MASK |
+ NRF_POWER_INT_SLEEPEXIT_MASK);
+}
+
+void nrfx_power_sleepevt_uninit(void)
+{
+ m_sleepevt_handler = NULL;
+}
+#endif /* NRF_POWER_HAS_SLEEPEVT */
+
+#if NRF_POWER_HAS_USBREG || defined(__NRFX_DOXYGEN__)
+void nrfx_power_usbevt_init(nrfx_power_usbevt_config_t const * p_config)
+{
+ nrfx_power_usbevt_uninit();
+ if (p_config->handler != NULL)
+ {
+ m_usbevt_handler = p_config->handler;
+ }
+}
+
+void nrfx_power_usbevt_enable(void)
+{
+ nrf_power_int_enable(
+ NRF_POWER_INT_USBDETECTED_MASK |
+ NRF_POWER_INT_USBREMOVED_MASK |
+ NRF_POWER_INT_USBPWRRDY_MASK);
+}
+
+void nrfx_power_usbevt_disable(void)
+{
+ nrf_power_int_disable(
+ NRF_POWER_INT_USBDETECTED_MASK |
+ NRF_POWER_INT_USBREMOVED_MASK |
+ NRF_POWER_INT_USBPWRRDY_MASK);
+}
+
+void nrfx_power_usbevt_uninit(void)
+{
+ m_usbevt_handler = NULL;
+}
+#endif /* NRF_POWER_HAS_USBREG */
+
+
+void nrfx_power_irq_handler(void)
+{
+ uint32_t enabled = nrf_power_int_enable_get();
+ if ((0 != (enabled & NRF_POWER_INT_POFWARN_MASK)) &&
+ nrf_power_event_get_and_clear(NRF_POWER_EVENT_POFWARN))
+ {
+ /* Cannot be null if event is enabled */
+ NRFX_ASSERT(m_pofwarn_handler != NULL);
+ m_pofwarn_handler();
+ }
+#if NRF_POWER_HAS_SLEEPEVT || defined(__NRFX_DOXYGEN__)
+ if ((0 != (enabled & NRF_POWER_INT_SLEEPENTER_MASK)) &&
+ nrf_power_event_get_and_clear(NRF_POWER_EVENT_SLEEPENTER))
+ {
+ /* Cannot be null if event is enabled */
+ NRFX_ASSERT(m_sleepevt_handler != NULL);
+ m_sleepevt_handler(NRFX_POWER_SLEEP_EVT_ENTER);
+ }
+ if ((0 != (enabled & NRF_POWER_INT_SLEEPEXIT_MASK)) &&
+ nrf_power_event_get_and_clear(NRF_POWER_EVENT_SLEEPEXIT))
+ {
+ /* Cannot be null if event is enabled */
+ NRFX_ASSERT(m_sleepevt_handler != NULL);
+ m_sleepevt_handler(NRFX_POWER_SLEEP_EVT_EXIT);
+ }
+#endif
+#if NRF_POWER_HAS_USBREG || defined(__NRFX_DOXYGEN__)
+ if ((0 != (enabled & NRF_POWER_INT_USBDETECTED_MASK)) &&
+ nrf_power_event_get_and_clear(NRF_POWER_EVENT_USBDETECTED))
+ {
+ /* Cannot be null if event is enabled */
+ NRFX_ASSERT(m_usbevt_handler != NULL);
+ m_usbevt_handler(NRFX_POWER_USB_EVT_DETECTED);
+ }
+ if ((0 != (enabled & NRF_POWER_INT_USBREMOVED_MASK)) &&
+ nrf_power_event_get_and_clear(NRF_POWER_EVENT_USBREMOVED))
+ {
+ /* Cannot be null if event is enabled */
+ NRFX_ASSERT(m_usbevt_handler != NULL);
+ m_usbevt_handler(NRFX_POWER_USB_EVT_REMOVED);
+ }
+ if ((0 != (enabled & NRF_POWER_INT_USBPWRRDY_MASK)) &&
+ nrf_power_event_get_and_clear(NRF_POWER_EVENT_USBPWRRDY))
+ {
+ /* Cannot be null if event is enabled */
+ NRFX_ASSERT(m_usbevt_handler != NULL);
+ m_usbevt_handler(NRFX_POWER_USB_EVT_READY);
+ }
+#endif
+}
+
+#endif // NRFX_CHECK(NRFX_POWER_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_power_clock.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_power_clock.c
new file mode 100644
index 0000000..ff69bf7
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_power_clock.c
@@ -0,0 +1,52 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+#include <nrfx_power.h>
+#include <nrfx_clock.h>
+
+
+#if NRFX_CHECK(NRFX_POWER_ENABLED) && NRFX_CHECK(NRFX_CLOCK_ENABLED)
+void nrfx_power_clock_irq_handler(void)
+{
+ nrfx_power_irq_handler();
+ nrfx_clock_irq_handler();
+}
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_ppi.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_ppi.c
new file mode 100644
index 0000000..067ba18
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_ppi.c
@@ -0,0 +1,534 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_PPI_ENABLED)
+
+#include <nrfx_ppi.h>
+
+#define NRFX_LOG_MODULE_NAME PPI
+#include <nrfx_log.h>
+
+
+static uint32_t m_channels_allocated; /**< Bitmap representing channels availability. 1 when a channel is allocated, 0 otherwise. */
+static uint8_t m_groups_allocated; /**< Bitmap representing groups availability. 1 when a group is allocated, 0 otherwise.*/
+
+
+/**
+ * @brief Compute a group mask (needed for driver internals, not used for NRF_PPI registers).
+ *
+ * @param[in] group Group number to transform to a mask.
+ *
+ * @retval Group mask.
+ */
+__STATIC_INLINE uint32_t group_to_mask(nrf_ppi_channel_group_t group)
+{
+ return (1uL << (uint32_t) group);
+}
+
+
+/**
+ * @brief Check whether a channel is a programmable channel and can be used by an application.
+ *
+ * @param[in] channel Channel to check.
+ *
+ * @retval true The channel is a programmable application channel.
+ * @retval false The channel is used by a stack (for example SoftDevice) or is preprogrammed.
+ */
+__STATIC_INLINE bool is_programmable_app_channel(nrf_ppi_channel_t channel)
+{
+ return ((NRFX_PPI_PROG_APP_CHANNELS_MASK & nrfx_ppi_channel_to_mask(channel)) != 0);
+}
+
+
+/**
+ * @brief Check whether channels can be used by an application.
+ *
+ * @param[in] channel_mask Channel mask to check.
+ *
+ * @retval true All specified channels can be used by an application.
+ * @retval false At least one specified channel is used by a stack (for example SoftDevice).
+ */
+__STATIC_INLINE bool are_app_channels(uint32_t channel_mask)
+{
+ //lint -e(587)
+ return ((~(NRFX_PPI_ALL_APP_CHANNELS_MASK) & channel_mask) == 0);
+}
+
+
+/**
+ * @brief Check whether a channel can be used by an application.
+ *
+ * @param[in] channel Channel to check.
+ *
+ * @retval true The channel can be used by an application.
+ * @retval false The channel is used by a stack (for example SoftDevice).
+ */
+__STATIC_INLINE bool is_app_channel(nrf_ppi_channel_t channel)
+{
+ return are_app_channels(nrfx_ppi_channel_to_mask(channel));
+}
+
+
+/**
+ * @brief Check whether a channel group can be used by an application.
+ *
+ * @param[in] group Group to check.
+ *
+ * @retval true The group is an application group.
+ * @retval false The group is not an application group (this group either does not exist or
+ * it is used by a stack (for example SoftDevice)).
+ */
+__STATIC_INLINE bool is_app_group(nrf_ppi_channel_group_t group)
+{
+ return ((NRFX_PPI_ALL_APP_GROUPS_MASK & group_to_mask(group)) != 0);
+}
+
+
+/**
+ * @brief Check whether a channel is allocated.
+ *
+ * @param[in] channel_num Channel number to check.
+ *
+ * @retval true The channel is allocated.
+ * @retval false The channel is not allocated.
+ */
+__STATIC_INLINE bool is_allocated_channel(nrf_ppi_channel_t channel)
+{
+ return ((m_channels_allocated & nrfx_ppi_channel_to_mask(channel)) != 0);
+}
+
+
+/**
+ * @brief Set channel allocated indication.
+ *
+ * @param[in] channel_num Specifies the channel to set the "allocated" indication.
+ */
+__STATIC_INLINE void channel_allocated_set(nrf_ppi_channel_t channel)
+{
+ m_channels_allocated |= nrfx_ppi_channel_to_mask(channel);
+}
+
+
+/**
+ * @brief Clear channel allocated indication.
+ *
+ * @param[in] channel_num Specifies the channel to clear the "allocated" indication.
+ */
+__STATIC_INLINE void channel_allocated_clr(nrf_ppi_channel_t channel)
+{
+ m_channels_allocated &= ~nrfx_ppi_channel_to_mask(channel);
+}
+
+
+/**
+ * @brief Clear all allocated channels.
+ */
+__STATIC_INLINE void channel_allocated_clr_all(void)
+{
+ m_channels_allocated &= ~NRFX_PPI_ALL_APP_CHANNELS_MASK;
+}
+
+
+/**
+ * @brief Check whether a group is allocated.
+ *
+ * @param[in] group_num Group number to check.
+ *
+ * @retval true The group is allocated.
+ * false The group is not allocated.
+ */
+__STATIC_INLINE bool is_allocated_group(nrf_ppi_channel_group_t group)
+{
+ return ((m_groups_allocated & group_to_mask(group)) != 0);
+}
+
+
+/**
+ * @brief Set group allocated indication.
+ *
+ * @param[in] group_num Specifies the group to set the "allocated" indication.
+ */
+__STATIC_INLINE void group_allocated_set(nrf_ppi_channel_group_t group)
+{
+ m_groups_allocated |= group_to_mask(group);
+}
+
+
+/**
+ * @brief Clear group allocated indication.
+ *
+ * @param[in] group_num Specifies the group to clear the "allocated" indication.
+ */
+__STATIC_INLINE void group_allocated_clr(nrf_ppi_channel_group_t group)
+{
+ m_groups_allocated &= ~group_to_mask(group);
+}
+
+
+/**
+ * @brief Clear all allocated groups.
+ */
+__STATIC_INLINE void group_allocated_clr_all()
+{
+ m_groups_allocated &= ~NRFX_PPI_ALL_APP_GROUPS_MASK;
+}
+
+
+void nrfx_ppi_free_all(void)
+{
+ uint32_t mask = NRFX_PPI_ALL_APP_GROUPS_MASK;
+ nrf_ppi_channel_group_t group;
+
+ // Disable all channels and groups
+ nrf_ppi_channels_disable(NRFX_PPI_ALL_APP_CHANNELS_MASK);
+
+ for (group = NRF_PPI_CHANNEL_GROUP0; mask != 0; mask &= ~group_to_mask(group), group++)
+ {
+ if (mask & group_to_mask(group))
+ {
+ nrf_ppi_channel_group_clear(group);
+ }
+ }
+ channel_allocated_clr_all();
+ group_allocated_clr_all();
+}
+
+
+nrfx_err_t nrfx_ppi_channel_alloc(nrf_ppi_channel_t * p_channel)
+{
+ nrfx_err_t err_code = NRFX_SUCCESS;
+ nrf_ppi_channel_t channel;
+ uint32_t mask = 0;
+ err_code = NRFX_ERROR_NO_MEM;
+
+ mask = NRFX_PPI_PROG_APP_CHANNELS_MASK;
+ for (channel = NRF_PPI_CHANNEL0;
+ mask != 0;
+ mask &= ~nrfx_ppi_channel_to_mask(channel), channel++)
+ {
+ NRFX_CRITICAL_SECTION_ENTER();
+ if ((mask & nrfx_ppi_channel_to_mask(channel)) && (!is_allocated_channel(channel)))
+ {
+ channel_allocated_set(channel);
+ *p_channel = channel;
+ err_code = NRFX_SUCCESS;
+ }
+ NRFX_CRITICAL_SECTION_EXIT();
+ if (err_code == NRFX_SUCCESS)
+ {
+ NRFX_LOG_INFO("Allocated channel: %d.", channel);
+ break;
+ }
+ }
+
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_ppi_channel_free(nrf_ppi_channel_t channel)
+{
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (!is_programmable_app_channel(channel))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ }
+ else
+ {
+ // First disable this channel
+ nrf_ppi_channel_disable(channel);
+ NRFX_CRITICAL_SECTION_ENTER();
+ channel_allocated_clr(channel);
+ NRFX_CRITICAL_SECTION_EXIT();
+ }
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_ppi_channel_assign(nrf_ppi_channel_t channel, uint32_t eep, uint32_t tep)
+{
+ if ((uint32_t *)eep == NULL || (uint32_t *)tep == NULL)
+ {
+ return NRFX_ERROR_NULL;
+ }
+
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (!is_programmable_app_channel(channel))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ }
+ else if (!is_allocated_channel(channel))
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ }
+ else
+ {
+ nrf_ppi_channel_endpoint_setup(channel, eep, tep);
+ NRFX_LOG_INFO("Assigned channel: %d, event end point: %x, task end point: %x.",
+ channel,
+ eep,
+ tep);
+ }
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+nrfx_err_t nrfx_ppi_channel_fork_assign(nrf_ppi_channel_t channel, uint32_t fork_tep)
+{
+ nrfx_err_t err_code = NRFX_SUCCESS;
+#ifdef PPI_FEATURE_FORKS_PRESENT
+ if (!is_programmable_app_channel(channel))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ }
+ else if (!is_allocated_channel(channel))
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ }
+ else
+ {
+ nrf_ppi_fork_endpoint_setup(channel, fork_tep);
+ NRFX_LOG_INFO("Fork assigned channel: %d, task end point: %d.", channel, fork_tep);
+ }
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+#else
+ err_code = NRFX_ERROR_NOT_SUPPORTED;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+#endif
+}
+
+nrfx_err_t nrfx_ppi_channel_enable(nrf_ppi_channel_t channel)
+{
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (!is_app_channel(channel))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ }
+ else if (is_programmable_app_channel(channel) && !is_allocated_channel(channel))
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ }
+ else
+ {
+ nrf_ppi_channel_enable(channel);
+ }
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_ppi_channel_disable(nrf_ppi_channel_t channel)
+{
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (!is_app_channel(channel))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ }
+ else if (is_programmable_app_channel(channel) && !is_allocated_channel(channel))
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ }
+ else
+ {
+ nrf_ppi_channel_disable(channel);
+ err_code = NRFX_SUCCESS;
+ }
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_ppi_group_alloc(nrf_ppi_channel_group_t * p_group)
+{
+ nrfx_err_t err_code;
+ uint32_t mask = 0;
+ nrf_ppi_channel_group_t group;
+
+ err_code = NRFX_ERROR_NO_MEM;
+
+ mask = NRFX_PPI_ALL_APP_GROUPS_MASK;
+ for (group = NRF_PPI_CHANNEL_GROUP0; mask != 0; mask &= ~group_to_mask(group), group++)
+ {
+ NRFX_CRITICAL_SECTION_ENTER();
+ if ((mask & group_to_mask(group)) && (!is_allocated_group(group)))
+ {
+ group_allocated_set(group);
+ *p_group = group;
+ err_code = NRFX_SUCCESS;
+ }
+ NRFX_CRITICAL_SECTION_EXIT();
+ if (err_code == NRFX_SUCCESS)
+ {
+ NRFX_LOG_INFO("Allocated group: %d.", group);
+ break;
+ }
+ }
+
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_ppi_group_free(nrf_ppi_channel_group_t group)
+{
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (!is_app_group(group))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ }
+ if (!is_allocated_group(group))
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ }
+ else
+ {
+ nrf_ppi_group_disable(group);
+ NRFX_CRITICAL_SECTION_ENTER();
+ group_allocated_clr(group);
+ NRFX_CRITICAL_SECTION_EXIT();
+ }
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_ppi_group_enable(nrf_ppi_channel_group_t group)
+{
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (!is_app_group(group))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ }
+ else if (!is_allocated_group(group))
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ }
+ else
+ {
+ nrf_ppi_group_enable(group);
+ }
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_ppi_group_disable(nrf_ppi_channel_group_t group)
+{
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (!is_app_group(group))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ }
+ else
+ {
+ nrf_ppi_group_disable(group);
+ }
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+nrfx_err_t nrfx_ppi_channels_remove_from_group(uint32_t channel_mask,
+ nrf_ppi_channel_group_t group)
+{
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (!is_app_group(group))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ }
+ else if (!is_allocated_group(group))
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ }
+ else if (!are_app_channels(channel_mask))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ }
+ else
+ {
+ NRFX_CRITICAL_SECTION_ENTER();
+ nrf_ppi_channels_remove_from_group(channel_mask, group);
+ NRFX_CRITICAL_SECTION_EXIT();
+ }
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+nrfx_err_t nrfx_ppi_channels_include_in_group(uint32_t channel_mask,
+ nrf_ppi_channel_group_t group)
+{
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (!is_app_group(group))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ }
+ else if (!is_allocated_group(group))
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ }
+ else if (!are_app_channels(channel_mask))
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ }
+ else
+ {
+ NRFX_CRITICAL_SECTION_ENTER();
+ nrf_ppi_channels_include_in_group(channel_mask, group);
+ NRFX_CRITICAL_SECTION_EXIT();
+ }
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+#endif // NRFX_CHECK(NRFX_PPI_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_pwm.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_pwm.c
new file mode 100644
index 0000000..3a6581f
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_pwm.c
@@ -0,0 +1,515 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_PWM_ENABLED)
+
+#if !(NRFX_CHECK(NRFX_PWM0_ENABLED) || NRFX_CHECK(NRFX_PWM1_ENABLED) || \
+ NRFX_CHECK(NRFX_PWM2_ENABLED) || NRFX_CHECK(NRFX_PWM3_ENABLED))
+#error "No enabled PWM instances. Check <nrfx_config.h>."
+#endif
+
+#include <nrfx_pwm.h>
+#include <hal/nrf_gpio.h>
+
+#define NRFX_LOG_MODULE PWM
+#include <nrfx_log.h>
+
+#if NRFX_CHECK(NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED)
+// The workaround uses interrupts to wake up the CPU and ensure it is active
+// when PWM is about to start a DMA transfer. For initial transfer, done when
+// a playback is started via PPI, a specific EGU instance is used to generate
+// an interrupt. During the playback, the PWM interrupt triggered on SEQEND
+// event of a preceding sequence is used to protect the transfer done for
+// the next sequence to be played.
+#include <hal/nrf_egu.h>
+#define USE_DMA_ISSUE_WORKAROUND
+#endif
+#if defined(USE_DMA_ISSUE_WORKAROUND)
+#define EGU_IRQn(i) EGU_IRQn_(i)
+#define EGU_IRQn_(i) SWI##i##_EGU##i##_IRQn
+#define EGU_IRQHandler(i) EGU_IRQHandler_(i)
+#define EGU_IRQHandler_(i) nrfx_swi_##i##_irq_handler
+#define DMA_ISSUE_EGU_IDX NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE
+#define DMA_ISSUE_EGU NRFX_CONCAT_2(NRF_EGU, DMA_ISSUE_EGU_IDX)
+#define DMA_ISSUE_EGU_IRQn EGU_IRQn(DMA_ISSUE_EGU_IDX)
+#define DMA_ISSUE_EGU_IRQHandler EGU_IRQHandler(DMA_ISSUE_EGU_IDX)
+#endif
+
+// Control block - driver instance local data.
+typedef struct
+{
+#if defined(USE_DMA_ISSUE_WORKAROUND)
+ uint32_t starting_task_address;
+#endif
+ nrfx_pwm_handler_t handler;
+ nrfx_drv_state_t volatile state;
+ uint8_t flags;
+} pwm_control_block_t;
+static pwm_control_block_t m_cb[NRFX_PWM_ENABLED_COUNT];
+
+static void configure_pins(nrfx_pwm_t const * const p_instance,
+ nrfx_pwm_config_t const * p_config)
+{
+ uint32_t out_pins[NRF_PWM_CHANNEL_COUNT];
+ uint8_t i;
+
+ for (i = 0; i < NRF_PWM_CHANNEL_COUNT; ++i)
+ {
+ uint8_t output_pin = p_config->output_pins[i];
+ if (output_pin != NRFX_PWM_PIN_NOT_USED)
+ {
+ bool inverted = output_pin & NRFX_PWM_PIN_INVERTED;
+ out_pins[i] = output_pin & ~NRFX_PWM_PIN_INVERTED;
+
+ if (inverted)
+ {
+ nrf_gpio_pin_set(out_pins[i]);
+ }
+ else
+ {
+ nrf_gpio_pin_clear(out_pins[i]);
+ }
+
+ nrf_gpio_cfg_output(out_pins[i]);
+ }
+ else
+ {
+ out_pins[i] = NRF_PWM_PIN_NOT_CONNECTED;
+ }
+ }
+
+ nrf_pwm_pins_set(p_instance->p_registers, out_pins);
+}
+
+
+nrfx_err_t nrfx_pwm_init(nrfx_pwm_t const * const p_instance,
+ nrfx_pwm_config_t const * p_config,
+ nrfx_pwm_handler_t handler)
+{
+ NRFX_ASSERT(p_config);
+
+ nrfx_err_t err_code;
+
+ pwm_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+
+ if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ p_cb->handler = handler;
+
+ configure_pins(p_instance, p_config);
+
+ nrf_pwm_enable(p_instance->p_registers);
+ nrf_pwm_configure(p_instance->p_registers,
+ p_config->base_clock, p_config->count_mode, p_config->top_value);
+ nrf_pwm_decoder_set(p_instance->p_registers,
+ p_config->load_mode, p_config->step_mode);
+
+ nrf_pwm_shorts_set(p_instance->p_registers, 0);
+ nrf_pwm_int_set(p_instance->p_registers, 0);
+ nrf_pwm_event_clear(p_instance->p_registers, NRF_PWM_EVENT_LOOPSDONE);
+ nrf_pwm_event_clear(p_instance->p_registers, NRF_PWM_EVENT_SEQEND0);
+ nrf_pwm_event_clear(p_instance->p_registers, NRF_PWM_EVENT_SEQEND1);
+ nrf_pwm_event_clear(p_instance->p_registers, NRF_PWM_EVENT_STOPPED);
+
+ // The workaround for nRF52 Anomaly 109 "protects" DMA transfers by handling
+ // interrupts generated on SEQEND0 and SEQEND1 events (this ensures that
+ // the 64 MHz clock is ready when data for the next sequence to be played
+ // is read). Therefore, the PWM interrupt must be enabled even if the event
+ // handler is not used.
+#if defined(USE_DMA_ISSUE_WORKAROUND)
+ NRFX_IRQ_PRIORITY_SET(DMA_ISSUE_EGU_IRQn, p_config->irq_priority);
+ NRFX_IRQ_ENABLE(DMA_ISSUE_EGU_IRQn);
+#else
+ if (p_cb->handler)
+#endif
+ {
+ NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(p_instance->p_registers),
+ p_config->irq_priority);
+ NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_instance->p_registers));
+ }
+
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+void nrfx_pwm_uninit(nrfx_pwm_t const * const p_instance)
+{
+ pwm_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ NRFX_IRQ_DISABLE(nrfx_get_irq_number(p_instance->p_registers));
+#if defined(USE_DMA_ISSUE_WORKAROUND)
+ NRFX_IRQ_DISABLE(DMA_ISSUE_EGU_IRQn);
+#endif
+
+ nrf_pwm_disable(p_instance->p_registers);
+
+ p_cb->state = NRFX_DRV_STATE_UNINITIALIZED;
+}
+
+
+static uint32_t start_playback(nrfx_pwm_t const * const p_instance,
+ pwm_control_block_t * p_cb,
+ uint8_t flags,
+ nrf_pwm_task_t starting_task)
+{
+ p_cb->state = NRFX_DRV_STATE_POWERED_ON;
+ p_cb->flags = flags;
+
+ if (p_cb->handler)
+ {
+ // The notification about finished playback is by default enabled,
+ // but this can be suppressed.
+ // The notification that the peripheral has stopped is always enabled.
+ uint32_t int_mask = NRF_PWM_INT_LOOPSDONE_MASK |
+ NRF_PWM_INT_STOPPED_MASK;
+
+ // The workaround for nRF52 Anomaly 109 "protects" DMA transfers by
+ // handling interrupts generated on SEQEND0 and SEQEND1 events (see
+ // 'nrfx_pwm_init'), hence these events must be always enabled
+ // to generate interrupts.
+ // However, the user handler is called for them only when requested
+ // (see 'irq_handler').
+#if defined(USE_DMA_ISSUE_WORKAROUND)
+ int_mask |= NRF_PWM_INT_SEQEND0_MASK | NRF_PWM_INT_SEQEND1_MASK;
+#else
+ if (flags & NRFX_PWM_FLAG_SIGNAL_END_SEQ0)
+ {
+ int_mask |= NRF_PWM_INT_SEQEND0_MASK;
+ }
+ if (flags & NRFX_PWM_FLAG_SIGNAL_END_SEQ1)
+ {
+ int_mask |= NRF_PWM_INT_SEQEND1_MASK;
+ }
+#endif
+ if (flags & NRFX_PWM_FLAG_NO_EVT_FINISHED)
+ {
+ int_mask &= ~NRF_PWM_INT_LOOPSDONE_MASK;
+ }
+
+ nrf_pwm_int_set(p_instance->p_registers, int_mask);
+ }
+#if defined(USE_DMA_ISSUE_WORKAROUND)
+ else
+ {
+ nrf_pwm_int_set(p_instance->p_registers,
+ NRF_PWM_INT_SEQEND0_MASK | NRF_PWM_INT_SEQEND1_MASK);
+ }
+#endif
+
+ nrf_pwm_event_clear(p_instance->p_registers, NRF_PWM_EVENT_STOPPED);
+
+ if (flags & NRFX_PWM_FLAG_START_VIA_TASK)
+ {
+ uint32_t starting_task_address =
+ nrf_pwm_task_address_get(p_instance->p_registers, starting_task);
+
+#if defined(USE_DMA_ISSUE_WORKAROUND)
+ // To "protect" the initial DMA transfer it is required to start
+ // the PWM by triggering the proper task from EGU interrupt handler,
+ // it is not safe to do it directly via PPI.
+ p_cb->starting_task_address = starting_task_address;
+ nrf_egu_int_enable(DMA_ISSUE_EGU,
+ nrf_egu_int_get(DMA_ISSUE_EGU, p_instance->drv_inst_idx));
+ return (uint32_t)nrf_egu_task_trigger_address_get(DMA_ISSUE_EGU,
+ p_instance->drv_inst_idx);
+#else
+ return starting_task_address;
+#endif
+ }
+
+ nrf_pwm_task_trigger(p_instance->p_registers, starting_task);
+ return 0;
+}
+
+
+uint32_t nrfx_pwm_simple_playback(nrfx_pwm_t const * const p_instance,
+ nrf_pwm_sequence_t const * p_sequence,
+ uint16_t playback_count,
+ uint32_t flags)
+{
+ pwm_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(playback_count > 0);
+ NRFX_ASSERT(nrfx_is_in_ram(p_sequence->values.p_raw));
+
+ // To take advantage of the looping mechanism, we need to use both sequences
+ // (single sequence can be played back only once).
+ nrf_pwm_sequence_set(p_instance->p_registers, 0, p_sequence);
+ nrf_pwm_sequence_set(p_instance->p_registers, 1, p_sequence);
+ bool odd = (playback_count & 1);
+ nrf_pwm_loop_set(p_instance->p_registers,
+ (playback_count / 2) + (odd ? 1 : 0));
+
+ uint32_t shorts_mask;
+ if (flags & NRFX_PWM_FLAG_STOP)
+ {
+ shorts_mask = NRF_PWM_SHORT_LOOPSDONE_STOP_MASK;
+ }
+ else if (flags & NRFX_PWM_FLAG_LOOP)
+ {
+ shorts_mask = odd ? NRF_PWM_SHORT_LOOPSDONE_SEQSTART1_MASK
+ : NRF_PWM_SHORT_LOOPSDONE_SEQSTART0_MASK;
+ }
+ else
+ {
+ shorts_mask = 0;
+ }
+ nrf_pwm_shorts_set(p_instance->p_registers, shorts_mask);
+
+ NRFX_LOG_INFO("Function: %s, sequence length: %d.",
+ __func__,
+ p_sequence->length);
+ NRFX_LOG_DEBUG("Sequence data:");
+ NRFX_LOG_HEXDUMP_DEBUG((uint8_t *)p_sequence->values.p_raw,
+ p_sequence->length * sizeof(uint16_t));
+ return start_playback(p_instance, p_cb, flags,
+ odd ? NRF_PWM_TASK_SEQSTART1 : NRF_PWM_TASK_SEQSTART0);
+}
+
+
+uint32_t nrfx_pwm_complex_playback(nrfx_pwm_t const * const p_instance,
+ nrf_pwm_sequence_t const * p_sequence_0,
+ nrf_pwm_sequence_t const * p_sequence_1,
+ uint16_t playback_count,
+ uint32_t flags)
+{
+ pwm_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(playback_count > 0);
+ NRFX_ASSERT(nrfx_is_in_ram(p_sequence_0->values.p_raw));
+ NRFX_ASSERT(nrfx_is_in_ram(p_sequence_1->values.p_raw));
+
+ nrf_pwm_sequence_set(p_instance->p_registers, 0, p_sequence_0);
+ nrf_pwm_sequence_set(p_instance->p_registers, 1, p_sequence_1);
+ nrf_pwm_loop_set(p_instance->p_registers, playback_count);
+
+ uint32_t shorts_mask;
+ if (flags & NRFX_PWM_FLAG_STOP)
+ {
+ shorts_mask = NRF_PWM_SHORT_LOOPSDONE_STOP_MASK;
+ }
+ else if (flags & NRFX_PWM_FLAG_LOOP)
+ {
+ shorts_mask = NRF_PWM_SHORT_LOOPSDONE_SEQSTART0_MASK;
+ }
+ else
+ {
+ shorts_mask = 0;
+ }
+ nrf_pwm_shorts_set(p_instance->p_registers, shorts_mask);
+
+ NRFX_LOG_INFO("Function: %s, sequence 0 length: %d.",
+ __func__,
+ p_sequence_0->length);
+ NRFX_LOG_INFO("Function: %s, sequence 1 length: %d.",
+ __func__,
+ p_sequence_1->length);
+ NRFX_LOG_DEBUG("Sequence 0 data:");
+ NRFX_LOG_HEXDUMP_DEBUG(p_sequence_0->values.p_raw,
+ p_sequence_0->length * sizeof(uint16_t));
+ NRFX_LOG_DEBUG("Sequence 1 data:");
+ NRFX_LOG_HEXDUMP_DEBUG(p_sequence_1->values.p_raw,
+ p_sequence_1->length * sizeof(uint16_t));
+ return start_playback(p_instance, p_cb, flags, NRF_PWM_TASK_SEQSTART0);
+}
+
+
+bool nrfx_pwm_stop(nrfx_pwm_t const * const p_instance,
+ bool wait_until_stopped)
+{
+ NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ bool ret_val = false;
+
+ if (nrfx_pwm_is_stopped(p_instance))
+ {
+ ret_val = true;
+ }
+ else
+ {
+ nrf_pwm_task_trigger(p_instance->p_registers, NRF_PWM_TASK_STOP);
+
+ do {
+ if (nrfx_pwm_is_stopped(p_instance))
+ {
+ ret_val = true;
+ break;
+ }
+ } while (wait_until_stopped);
+ }
+
+ NRFX_LOG_INFO("%s returned %d.", __func__, ret_val);
+ return ret_val;
+}
+
+
+bool nrfx_pwm_is_stopped(nrfx_pwm_t const * const p_instance)
+{
+ pwm_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ bool ret_val = false;
+
+ // If the event handler is used (interrupts are enabled), the state will
+ // be changed in interrupt handler when the STOPPED event occurs.
+ if (p_cb->state != NRFX_DRV_STATE_POWERED_ON)
+ {
+ ret_val = true;
+ }
+ // If interrupts are disabled, we must check the STOPPED event here.
+ if (nrf_pwm_event_check(p_instance->p_registers, NRF_PWM_EVENT_STOPPED))
+ {
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+ NRFX_LOG_INFO("Disabled.");
+ ret_val = true;
+ }
+
+ NRFX_LOG_INFO("%s returned %d.", __func__, ret_val);
+ return ret_val;
+}
+
+
+static void irq_handler(NRF_PWM_Type * p_pwm, pwm_control_block_t * p_cb)
+{
+ // The user handler is called for SEQEND0 and SEQEND1 events only when the
+ // user asks for it (by setting proper flags when starting the playback).
+ if (nrf_pwm_event_check(p_pwm, NRF_PWM_EVENT_SEQEND0))
+ {
+ nrf_pwm_event_clear(p_pwm, NRF_PWM_EVENT_SEQEND0);
+ if ((p_cb->flags & NRFX_PWM_FLAG_SIGNAL_END_SEQ0) && p_cb->handler)
+ {
+ p_cb->handler(NRFX_PWM_EVT_END_SEQ0);
+ }
+ }
+ if (nrf_pwm_event_check(p_pwm, NRF_PWM_EVENT_SEQEND1))
+ {
+ nrf_pwm_event_clear(p_pwm, NRF_PWM_EVENT_SEQEND1);
+ if ((p_cb->flags & NRFX_PWM_FLAG_SIGNAL_END_SEQ1) && p_cb->handler)
+ {
+ p_cb->handler(NRFX_PWM_EVT_END_SEQ1);
+ }
+ }
+ // For LOOPSDONE the handler is called by default, but the user can disable
+ // this (via flags).
+ if (nrf_pwm_event_check(p_pwm, NRF_PWM_EVENT_LOOPSDONE))
+ {
+ nrf_pwm_event_clear(p_pwm, NRF_PWM_EVENT_LOOPSDONE);
+ if (!(p_cb->flags & NRFX_PWM_FLAG_NO_EVT_FINISHED) && p_cb->handler)
+ {
+ p_cb->handler(NRFX_PWM_EVT_FINISHED);
+ }
+ }
+
+ // The STOPPED event is always propagated to the user handler.
+ if (nrf_pwm_event_check(p_pwm, NRF_PWM_EVENT_STOPPED))
+ {
+ nrf_pwm_event_clear(p_pwm, NRF_PWM_EVENT_STOPPED);
+
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+ if (p_cb->handler)
+ {
+ p_cb->handler(NRFX_PWM_EVT_STOPPED);
+ }
+ }
+}
+
+
+#if defined(USE_DMA_ISSUE_WORKAROUND)
+// See 'start_playback' why this is needed.
+void DMA_ISSUE_EGU_IRQHandler(void)
+{
+ int i;
+ for (i = 0; i < NRFX_PWM_ENABLED_COUNT; ++i)
+ {
+ volatile uint32_t * p_event_reg =
+ nrf_egu_event_triggered_address_get(DMA_ISSUE_EGU, i);
+ if (*p_event_reg)
+ {
+ *p_event_reg = 0;
+ *(volatile uint32_t *)(m_cb[i].starting_task_address) = 1;
+ }
+ }
+}
+#endif
+
+
+#if NRFX_CHECK(NRFX_PWM0_ENABLED)
+void nrfx_pwm_0_irq_handler(void)
+{
+ irq_handler(NRF_PWM0, &m_cb[NRFX_PWM0_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_PWM1_ENABLED)
+void nrfx_pwm_1_irq_handler(void)
+{
+ irq_handler(NRF_PWM1, &m_cb[NRFX_PWM1_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_PWM2_ENABLED)
+void nrfx_pwm_2_irq_handler(void)
+{
+ irq_handler(NRF_PWM2, &m_cb[NRFX_PWM2_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_PWM3_ENABLED)
+void nrfx_pwm_3_irq_handler(void)
+{
+ irq_handler(NRF_PWM3, &m_cb[NRFX_PWM3_INST_IDX]);
+}
+#endif
+
+#endif // NRFX_CHECK(NRFX_PWM_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_qdec.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_qdec.c
new file mode 100644
index 0000000..c7994d1
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_qdec.c
@@ -0,0 +1,201 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_QDEC_ENABLED)
+
+#include <nrfx_qdec.h>
+#include <hal/nrf_gpio.h>
+
+#define NRFX_LOG_MODULE QDEC
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRF_QDEC_EVENT_SAMPLERDY ? "NRF_QDEC_EVENT_SAMPLERDY" : \
+ (event == NRF_QDEC_EVENT_REPORTRDY ? "NRF_QDEC_EVENT_REPORTRDY" : \
+ (event == NRF_QDEC_EVENT_ACCOF ? "NRF_QDEC_EVENT_ACCOF" : \
+ "UNKNOWN EVENT")))
+
+
+static nrfx_qdec_event_handler_t m_qdec_event_handler = NULL;
+static nrfx_drv_state_t m_state = NRFX_DRV_STATE_UNINITIALIZED;
+
+void nrfx_qdec_irq_handler(void)
+{
+ nrfx_qdec_event_t event;
+ if ( nrf_qdec_event_check(NRF_QDEC_EVENT_SAMPLERDY) &&
+ nrf_qdec_int_enable_check(NRF_QDEC_INT_SAMPLERDY_MASK) )
+ {
+ nrf_qdec_event_clear(NRF_QDEC_EVENT_SAMPLERDY);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_QDEC_EVENT_SAMPLERDY));
+
+ event.type = NRF_QDEC_EVENT_SAMPLERDY;
+ event.data.sample.value = (int8_t)nrf_qdec_sample_get();
+ m_qdec_event_handler(event);
+ }
+
+ if ( nrf_qdec_event_check(NRF_QDEC_EVENT_REPORTRDY) &&
+ nrf_qdec_int_enable_check(NRF_QDEC_INT_REPORTRDY_MASK) )
+ {
+ nrf_qdec_event_clear(NRF_QDEC_EVENT_REPORTRDY);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_QDEC_EVENT_REPORTRDY));
+
+ event.type = NRF_QDEC_EVENT_REPORTRDY;
+
+ event.data.report.acc = (int16_t)nrf_qdec_accread_get();
+ event.data.report.accdbl = (uint16_t)nrf_qdec_accdblread_get();
+ m_qdec_event_handler(event);
+ }
+
+ if ( nrf_qdec_event_check(NRF_QDEC_EVENT_ACCOF) &&
+ nrf_qdec_int_enable_check(NRF_QDEC_INT_ACCOF_MASK) )
+ {
+ nrf_qdec_event_clear(NRF_QDEC_EVENT_ACCOF);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_QDEC_EVENT_ACCOF));
+
+ event.type = NRF_QDEC_EVENT_ACCOF;
+ m_qdec_event_handler(event);
+ }
+}
+
+
+nrfx_err_t nrfx_qdec_init(nrfx_qdec_config_t const * p_config,
+ nrfx_qdec_event_handler_t event_handler)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(event_handler);
+ nrfx_err_t err_code;
+
+ if (m_state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ m_qdec_event_handler = event_handler;
+
+ nrf_qdec_sampleper_set(p_config->sampleper);
+ nrf_gpio_cfg_input(p_config->pselled, NRF_GPIO_PIN_NOPULL);
+ nrf_gpio_cfg_input(p_config->psela, NRF_GPIO_PIN_NOPULL);
+ nrf_gpio_cfg_input(p_config->pselb, NRF_GPIO_PIN_NOPULL);
+ nrf_qdec_pio_assign(p_config->psela, p_config->pselb, p_config->pselled);
+ nrf_qdec_ledpre_set(p_config->ledpre);
+ nrf_qdec_ledpol_set(p_config->ledpol);
+ nrf_qdec_shorts_enable(NRF_QDEC_SHORT_REPORTRDY_READCLRACC_MASK);
+
+ if (p_config->dbfen)
+ {
+ nrf_qdec_dbfen_enable();
+ }
+ else
+ {
+ nrf_qdec_dbfen_disable();
+ }
+
+ uint32_t int_mask = NRF_QDEC_INT_ACCOF_MASK;
+
+ if (p_config->reportper != NRF_QDEC_REPORTPER_DISABLED)
+ {
+ nrf_qdec_reportper_set(p_config->reportper);
+ int_mask |= NRF_QDEC_INT_REPORTRDY_MASK;
+ }
+
+ if (p_config->sample_inten)
+ {
+ int_mask |= NRF_QDEC_INT_SAMPLERDY_MASK;
+ }
+
+ nrf_qdec_int_enable(int_mask);
+ NRFX_IRQ_PRIORITY_SET(QDEC_IRQn, p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(QDEC_IRQn);
+
+ m_state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_qdec_uninit(void)
+{
+ NRFX_ASSERT(m_state != NRFX_DRV_STATE_UNINITIALIZED);
+ nrfx_qdec_disable();
+ NRFX_IRQ_DISABLE(QDEC_IRQn);
+ m_state = NRFX_DRV_STATE_UNINITIALIZED;
+ NRFX_LOG_INFO("Uninitialized.");
+}
+
+void nrfx_qdec_enable(void)
+{
+ NRFX_ASSERT(m_state == NRFX_DRV_STATE_INITIALIZED);
+ nrf_qdec_enable();
+ nrf_qdec_task_trigger(NRF_QDEC_TASK_START);
+ m_state = NRFX_DRV_STATE_POWERED_ON;
+ NRFX_LOG_INFO("Enabled.");
+}
+
+void nrfx_qdec_disable(void)
+{
+ NRFX_ASSERT(m_state == NRFX_DRV_STATE_POWERED_ON);
+ nrf_qdec_task_trigger(NRF_QDEC_TASK_STOP);
+ nrf_qdec_disable();
+ m_state = NRFX_DRV_STATE_INITIALIZED;
+ NRFX_LOG_INFO("Disabled.");
+}
+
+void nrfx_qdec_accumulators_read(int16_t * p_acc, int16_t * p_accdbl)
+{
+ NRFX_ASSERT(m_state == NRFX_DRV_STATE_POWERED_ON);
+ nrf_qdec_task_trigger(NRF_QDEC_TASK_READCLRACC);
+
+ *p_acc = (int16_t)nrf_qdec_accread_get();
+ *p_accdbl = (int16_t)nrf_qdec_accdblread_get();
+
+ NRFX_LOG_DEBUG("Accumulators data, ACC register:");
+ NRFX_LOG_HEXDUMP_DEBUG((uint8_t *)p_acc, sizeof(p_acc[0]));
+ NRFX_LOG_DEBUG("Accumulators data, ACCDBL register:");
+ NRFX_LOG_HEXDUMP_DEBUG((uint8_t *)p_accdbl, sizeof(p_accdbl[0]));
+}
+
+#endif // NRFX_CHECK(NRFX_QDEC_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_qspi.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_qspi.c
new file mode 100644
index 0000000..93ffeff
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_qspi.c
@@ -0,0 +1,337 @@
+/**
+ * Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_QSPI_ENABLED)
+
+#include <nrfx_qspi.h>
+
+
+/**
+ * @brief Command byte used to read status register.
+ *
+ */
+#define QSPI_STD_CMD_RDSR 0x05
+
+/**
+ * @brief Byte used to mask status register and retrieve the write-in-progess bit.
+ *
+ */
+#define QSPI_MEM_STATUSREG_WIP_Pos 0x01
+
+/**
+ * @brief Default time used in timeout function.
+ */
+#define QSPI_DEF_WAIT_TIME_US 10
+
+/**
+ * @brief Default number of tries in timeout function.
+ */
+#define QSPI_DEF_WAIT_ATTEMPTS 100
+
+/**
+ * @brief Control block - driver instance local data.
+ */
+typedef struct
+{
+ nrfx_qspi_handler_t handler; /**< Handler. */
+ nrfx_drv_state_t state; /**< Driver state. */
+ volatile bool interrupt_driven; /**< Information if the current operation is performed and is interrupt-driven. */
+ void * p_context; /**< Driver context used in interrupt. */
+} qspi_control_block_t;
+
+static qspi_control_block_t m_cb;
+
+static nrfx_err_t qspi_task_perform(nrf_qspi_task_t task)
+{
+ // Wait for peripheral
+ if (m_cb.interrupt_driven)
+ {
+ return NRFX_ERROR_BUSY;
+ }
+
+ nrf_qspi_event_clear(NRF_QSPI, NRF_QSPI_EVENT_READY);
+
+ if (m_cb.handler)
+ {
+ m_cb.interrupt_driven = true;
+ nrf_qspi_int_enable(NRF_QSPI, NRF_QSPI_INT_READY_MASK);
+ }
+
+ nrf_qspi_task_trigger(NRF_QSPI, task);
+
+ if (m_cb.handler == NULL)
+ {
+ while (!nrf_qspi_event_check(NRF_QSPI, NRF_QSPI_EVENT_READY))
+ {};
+ }
+ return NRFX_SUCCESS;
+}
+
+static bool qspi_pins_configure(nrf_qspi_pins_t const * p_config)
+{
+ // Check if the user set meaningful values to struct fields. If not, return false.
+ if ((p_config->sck_pin == NRF_QSPI_PIN_NOT_CONNECTED) ||
+ (p_config->csn_pin == NRF_QSPI_PIN_NOT_CONNECTED) ||
+ (p_config->io0_pin == NRF_QSPI_PIN_NOT_CONNECTED) ||
+ (p_config->io1_pin == NRF_QSPI_PIN_NOT_CONNECTED))
+ {
+ return false;
+ }
+
+ nrf_qspi_pins_set(NRF_QSPI, p_config);
+
+ return true;
+}
+
+nrfx_err_t nrfx_qspi_init(nrfx_qspi_config_t const * p_config,
+ nrfx_qspi_handler_t handler,
+ void * p_context)
+{
+ NRFX_ASSERT(p_config);
+ if (m_cb.state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ return NRFX_ERROR_INVALID_STATE;
+ }
+
+ if (!qspi_pins_configure(&p_config->pins))
+ {
+ return NRFX_ERROR_INVALID_PARAM;
+ }
+
+ nrf_qspi_xip_offset_set(NRF_QSPI, p_config->xip_offset);
+ nrf_qspi_ifconfig0_set(NRF_QSPI, &p_config->prot_if);
+ nrf_qspi_ifconfig1_set(NRF_QSPI, &p_config->phy_if);
+
+ m_cb.interrupt_driven = false;
+ m_cb.handler = handler;
+ m_cb.p_context = p_context;
+
+ /* QSPI interrupt is disabled because the device should be enabled in polling mode (wait for activate
+ task event ready)*/
+ nrf_qspi_int_disable(NRF_QSPI, NRF_QSPI_INT_READY_MASK);
+
+ if (handler)
+ {
+ NRFX_IRQ_PRIORITY_SET(QSPI_IRQn, p_config->irq_priority);
+ NRFX_IRQ_ENABLE(QSPI_IRQn);
+ }
+
+ m_cb.state = NRFX_DRV_STATE_INITIALIZED;
+
+ nrf_qspi_enable(NRF_QSPI);
+
+ nrf_qspi_event_clear(NRF_QSPI, NRF_QSPI_EVENT_READY);
+ nrf_qspi_task_trigger(NRF_QSPI, NRF_QSPI_TASK_ACTIVATE);
+
+ // Waiting for the peripheral to activate
+ bool result;
+ NRFX_WAIT_FOR(nrf_qspi_event_check(NRF_QSPI, NRF_QSPI_EVENT_READY),
+ QSPI_DEF_WAIT_ATTEMPTS,
+ QSPI_DEF_WAIT_TIME_US,
+ result);
+
+ if (!result)
+ {
+ return NRFX_ERROR_TIMEOUT;
+ }
+
+ return NRFX_SUCCESS;
+}
+
+nrfx_err_t nrfx_qspi_cinstr_xfer(nrf_qspi_cinstr_conf_t const * p_config,
+ void const * p_tx_buffer,
+ void * p_rx_buffer)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ if (m_cb.interrupt_driven)
+ {
+ return NRFX_ERROR_BUSY;
+ }
+
+ nrf_qspi_event_clear(NRF_QSPI, NRF_QSPI_EVENT_READY);
+ /* In some cases, only opcode should be sent. To prevent execution, set function code is
+ * surrounded by an if.
+ */
+ if (p_tx_buffer)
+ {
+ nrf_qspi_cinstrdata_set(NRF_QSPI, p_config->length, p_tx_buffer);
+ }
+ nrf_qspi_int_disable(NRF_QSPI, NRF_QSPI_INT_READY_MASK);
+
+ nrf_qspi_cinstr_transfer_start(NRF_QSPI, p_config);
+
+ bool result;
+ NRFX_WAIT_FOR(nrf_qspi_event_check(NRF_QSPI, NRF_QSPI_EVENT_READY),
+ QSPI_DEF_WAIT_ATTEMPTS,
+ QSPI_DEF_WAIT_TIME_US,
+ result);
+
+ if (!result)
+ {
+ // This timeout should never occur when WIPWAIT is not active, since in this
+ // case the QSPI peripheral should send the command immediately, without any
+ // waiting for previous write to complete.
+ NRFX_ASSERT(p_config->wipwait);
+
+ return NRFX_ERROR_TIMEOUT;
+ }
+ nrf_qspi_event_clear(NRF_QSPI, NRF_QSPI_EVENT_READY);
+ nrf_qspi_int_enable(NRF_QSPI, NRF_QSPI_INT_READY_MASK);
+
+ if (p_rx_buffer)
+ {
+ nrf_qspi_cinstrdata_get(NRF_QSPI, p_config->length, p_rx_buffer);
+ }
+
+ return NRFX_SUCCESS;
+}
+
+nrfx_err_t nrfx_qspi_cinstr_quick_send(uint8_t opcode,
+ nrf_qspi_cinstr_len_t length,
+ void const * p_tx_buffer)
+{
+ nrf_qspi_cinstr_conf_t config = NRFX_QSPI_DEFAULT_CINSTR(opcode, length);
+ return nrfx_qspi_cinstr_xfer(&config, p_tx_buffer, NULL);
+}
+
+nrfx_err_t nrfx_qspi_mem_busy_check(void)
+{
+ nrfx_err_t ret_code;
+ uint8_t status_value = 0;
+
+ nrf_qspi_cinstr_conf_t const config =
+ NRFX_QSPI_DEFAULT_CINSTR(QSPI_STD_CMD_RDSR,
+ NRF_QSPI_CINSTR_LEN_2B);
+ ret_code = nrfx_qspi_cinstr_xfer(&config, &status_value, &status_value);
+
+ if (ret_code != NRFX_SUCCESS)
+ {
+ return ret_code;
+ }
+
+ if ((status_value & QSPI_MEM_STATUSREG_WIP_Pos) != 0x00)
+ {
+ return NRFX_ERROR_BUSY;
+ }
+
+ return NRFX_SUCCESS;
+}
+
+void nrfx_qspi_uninit(void)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ nrf_qspi_int_disable(NRF_QSPI, NRF_QSPI_INT_READY_MASK);
+
+ nrf_qspi_disable(NRF_QSPI);
+
+ nrf_qspi_task_trigger(NRF_QSPI, NRF_QSPI_TASK_DEACTIVATE);
+
+ // Workaround for nRF52840 anomaly 122: Current consumption is too high.
+ *(volatile uint32_t *)0x40029054ul = 1ul;
+
+ NRFX_IRQ_DISABLE(QSPI_IRQn);
+
+ nrf_qspi_event_clear(NRF_QSPI, NRF_QSPI_EVENT_READY);
+
+ m_cb.state = NRFX_DRV_STATE_UNINITIALIZED;
+}
+
+nrfx_err_t nrfx_qspi_write(void const * p_tx_buffer,
+ size_t tx_buffer_length,
+ uint32_t dst_address)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(p_tx_buffer != NULL);
+
+ if (!nrfx_is_in_ram(p_tx_buffer))
+ {
+ return NRFX_ERROR_INVALID_ADDR;
+ }
+
+ nrf_qspi_write_buffer_set(NRF_QSPI, p_tx_buffer, tx_buffer_length, dst_address);
+ return qspi_task_perform(NRF_QSPI_TASK_WRITESTART);
+
+}
+
+nrfx_err_t nrfx_qspi_read(void * p_rx_buffer,
+ size_t rx_buffer_length,
+ uint32_t src_address)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(p_rx_buffer != NULL);
+
+ if (!nrfx_is_in_ram(p_rx_buffer))
+ {
+ return NRFX_ERROR_INVALID_ADDR;
+ }
+
+ nrf_qspi_read_buffer_set(NRF_QSPI, p_rx_buffer, rx_buffer_length, src_address);
+ return qspi_task_perform(NRF_QSPI_TASK_READSTART);
+}
+
+nrfx_err_t nrfx_qspi_erase(nrf_qspi_erase_len_t length,
+ uint32_t start_address)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+ nrf_qspi_erase_ptr_set(NRF_QSPI, start_address, length);
+ return qspi_task_perform(NRF_QSPI_TASK_ERASESTART);
+}
+
+nrfx_err_t nrfx_qspi_chip_erase(void)
+{
+ return nrfx_qspi_erase(NRF_QSPI_ERASE_LEN_ALL, 0);
+}
+
+void nrfx_qspi_irq_handler(void)
+{
+ // Catch Event ready interrupts
+ if (nrf_qspi_event_check(NRF_QSPI, NRF_QSPI_EVENT_READY))
+ {
+ m_cb.interrupt_driven = false;
+ nrf_qspi_event_clear(NRF_QSPI, NRF_QSPI_EVENT_READY);
+ m_cb.handler(NRFX_QSPI_EVENT_DONE, m_cb.p_context);
+ }
+}
+
+#endif // NRFX_CHECK(NRFX_QSPI_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_rng.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_rng.c
new file mode 100644
index 0000000..a179f7c
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_rng.c
@@ -0,0 +1,122 @@
+/**
+ * Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_RNG_ENABLED)
+
+#include <nrfx_rng.h>
+
+#define NRFX_LOG_MODULE RNG
+#include <nrfx_log.h>
+
+/**
+ * @brief Internal state of RNG driver.
+ */
+static nrfx_drv_state_t m_rng_state;
+
+/**
+ * @brief Pointer to handler calling from interrupt routine.
+ */
+static nrfx_rng_evt_handler_t m_rng_hndl;
+
+nrfx_err_t nrfx_rng_init(nrfx_rng_config_t const * p_config, nrfx_rng_evt_handler_t handler)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(handler);
+ if (m_rng_state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ return NRFX_ERROR_ALREADY_INITIALIZED;
+ }
+
+ m_rng_hndl = handler;
+
+ if (p_config->error_correction)
+ {
+ nrf_rng_error_correction_enable();
+ }
+ nrf_rng_shorts_disable(NRF_RNG_SHORT_VALRDY_STOP_MASK);
+ NRFX_IRQ_PRIORITY_SET(RNG_IRQn, p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(RNG_IRQn);
+
+ m_rng_state = NRFX_DRV_STATE_INITIALIZED;
+
+ return NRFX_SUCCESS;
+}
+
+void nrfx_rng_start(void)
+{
+ NRFX_ASSERT(m_rng_state == NRFX_DRV_STATE_INITIALIZED);
+ nrf_rng_event_clear(NRF_RNG_EVENT_VALRDY);
+ nrf_rng_int_enable(NRF_RNG_INT_VALRDY_MASK);
+ nrf_rng_task_trigger(NRF_RNG_TASK_START);
+}
+
+void nrfx_rng_stop(void)
+{
+ NRFX_ASSERT(m_rng_state == NRFX_DRV_STATE_INITIALIZED);
+ nrf_rng_int_disable(NRF_RNG_INT_VALRDY_MASK);
+ nrf_rng_task_trigger(NRF_RNG_TASK_STOP);
+}
+
+void nrfx_rng_uninit(void)
+{
+ NRFX_ASSERT(m_rng_state == NRFX_DRV_STATE_INITIALIZED);
+
+ nrf_rng_int_disable(NRF_RNG_INT_VALRDY_MASK);
+ nrf_rng_task_trigger(NRF_RNG_TASK_STOP);
+ NRFX_IRQ_DISABLE(RNG_IRQn);
+
+ m_rng_state = NRFX_DRV_STATE_UNINITIALIZED;
+ NRFX_LOG_INFO("Uninitialized.");
+}
+
+void nrfx_rng_irq_handler(void)
+{
+ nrf_rng_event_clear(NRF_RNG_EVENT_VALRDY);
+
+ uint8_t rng_value = nrf_rng_random_value_get();
+
+ m_rng_hndl(rng_value);
+
+ NRFX_LOG_DEBUG("Event: NRF_RNG_EVENT_VALRDY.");
+}
+
+#endif // NRFX_CHECK(NRFX_RNG_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_rtc.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_rtc.c
new file mode 100644
index 0000000..95e8605
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_rtc.c
@@ -0,0 +1,348 @@
+/**
+ * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_RTC_ENABLED)
+
+#if !(NRFX_CHECK(NRFX_RTC0_ENABLED) || NRFX_CHECK(NRFX_RTC1_ENABLED) || \
+ NRFX_CHECK(NRFX_RTC2_ENABLED))
+#error "No enabled RTC instances. Check <nrfx_config.h>."
+#endif
+
+#include <nrfx_rtc.h>
+
+#define NRFX_LOG_MODULE RTC
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRF_RTC_EVENT_TICK ? "NRF_RTC_EVENT_TICK" : \
+ (event == NRF_RTC_EVENT_OVERFLOW ? "NRF_RTC_EVENT_OVERFLOW" : \
+ (event == NRF_RTC_EVENT_COMPARE_0 ? "NRF_RTC_EVENT_COMPARE_0" : \
+ (event == NRF_RTC_EVENT_COMPARE_1 ? "NRF_RTC_EVENT_COMPARE_1" : \
+ (event == NRF_RTC_EVENT_COMPARE_2 ? "NRF_RTC_EVENT_COMPARE_2" : \
+ (event == NRF_RTC_EVENT_COMPARE_3 ? "NRF_RTC_EVENT_COMPARE_3" : \
+ "UNKNOWN EVENT"))))))
+
+
+/**@brief RTC driver instance control block structure. */
+typedef struct
+{
+ nrfx_drv_state_t state; /**< Instance state. */
+ bool reliable; /**< Reliable mode flag. */
+ uint8_t tick_latency; /**< Maximum length of interrupt handler in ticks (max 7.7 ms). */
+} nrfx_rtc_cb_t;
+
+// User callbacks local storage.
+static nrfx_rtc_handler_t m_handlers[NRFX_RTC_ENABLED_COUNT];
+static nrfx_rtc_cb_t m_cb[NRFX_RTC_ENABLED_COUNT];
+
+nrfx_err_t nrfx_rtc_init(nrfx_rtc_t const * const p_instance,
+ nrfx_rtc_config_t const * p_config,
+ nrfx_rtc_handler_t handler)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(handler);
+ nrfx_err_t err_code;
+
+ m_handlers[p_instance->instance_id] = handler;
+
+ if (m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ NRFX_IRQ_PRIORITY_SET(p_instance->irq, p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(p_instance->irq);
+ nrf_rtc_prescaler_set(p_instance->p_reg, p_config->prescaler);
+ m_cb[p_instance->instance_id].reliable = p_config->reliable;
+ m_cb[p_instance->instance_id].tick_latency = p_config->tick_latency;
+ m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_rtc_uninit(nrfx_rtc_t const * const p_instance)
+{
+ uint32_t mask = NRF_RTC_INT_TICK_MASK |
+ NRF_RTC_INT_OVERFLOW_MASK |
+ NRF_RTC_INT_COMPARE0_MASK |
+ NRF_RTC_INT_COMPARE1_MASK |
+ NRF_RTC_INT_COMPARE2_MASK |
+ NRF_RTC_INT_COMPARE3_MASK;
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ NRFX_IRQ_DISABLE(p_instance->irq);
+
+ nrf_rtc_task_trigger(p_instance->p_reg, NRF_RTC_TASK_STOP);
+ nrf_rtc_event_disable(p_instance->p_reg, mask);
+ nrf_rtc_int_disable(p_instance->p_reg, mask);
+
+ m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_UNINITIALIZED;
+ NRFX_LOG_INFO("Uninitialized.");
+}
+
+void nrfx_rtc_enable(nrfx_rtc_t const * const p_instance)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state == NRFX_DRV_STATE_INITIALIZED);
+
+ nrf_rtc_task_trigger(p_instance->p_reg, NRF_RTC_TASK_START);
+ m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_POWERED_ON;
+ NRFX_LOG_INFO("Enabled.");
+}
+
+void nrfx_rtc_disable(nrfx_rtc_t const * const p_instance)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ nrf_rtc_task_trigger(p_instance->p_reg, NRF_RTC_TASK_STOP);
+ m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_INITIALIZED;
+ NRFX_LOG_INFO("Disabled.");
+}
+
+nrfx_err_t nrfx_rtc_cc_disable(nrfx_rtc_t const * const p_instance, uint32_t channel)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(channel<p_instance->cc_channel_count);
+
+ nrfx_err_t err_code;
+ uint32_t int_mask = RTC_CHANNEL_INT_MASK(channel);
+ nrf_rtc_event_t event = RTC_CHANNEL_EVENT_ADDR(channel);
+
+ nrf_rtc_event_disable(p_instance->p_reg,int_mask);
+ if (nrf_rtc_int_is_enabled(p_instance->p_reg,int_mask))
+ {
+ nrf_rtc_int_disable(p_instance->p_reg,int_mask);
+ if (nrf_rtc_event_pending(p_instance->p_reg,event))
+ {
+ nrf_rtc_event_clear(p_instance->p_reg,event);
+ err_code = NRFX_ERROR_TIMEOUT;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ }
+ NRFX_LOG_INFO("RTC id: %d, channel disabled: %lu.", p_instance->instance_id, channel);
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+nrfx_err_t nrfx_rtc_cc_set(nrfx_rtc_t const * const p_instance,
+ uint32_t channel,
+ uint32_t val,
+ bool enable_irq)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(channel<p_instance->cc_channel_count);
+
+ nrfx_err_t err_code;
+ uint32_t int_mask = RTC_CHANNEL_INT_MASK(channel);
+ nrf_rtc_event_t event = RTC_CHANNEL_EVENT_ADDR(channel);
+
+ nrf_rtc_event_disable(p_instance->p_reg, int_mask);
+ nrf_rtc_int_disable(p_instance->p_reg, int_mask);
+
+ val = RTC_WRAP(val);
+ if (m_cb[p_instance->instance_id].reliable)
+ {
+ nrf_rtc_cc_set(p_instance->p_reg,channel,val);
+ uint32_t cnt = nrf_rtc_counter_get(p_instance->p_reg);
+ int32_t diff = cnt - val;
+ if (cnt < val)
+ {
+ diff += RTC_COUNTER_COUNTER_Msk;
+ }
+ if (diff < m_cb[p_instance->instance_id].tick_latency)
+ {
+ err_code = NRFX_ERROR_TIMEOUT;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ }
+ else
+ {
+ nrf_rtc_cc_set(p_instance->p_reg,channel,val);
+ }
+
+ if (enable_irq)
+ {
+ nrf_rtc_event_clear(p_instance->p_reg,event);
+ nrf_rtc_int_enable(p_instance->p_reg, int_mask);
+ }
+ nrf_rtc_event_enable(p_instance->p_reg,int_mask);
+
+ NRFX_LOG_INFO("RTC id: %d, channel enabled: %lu, compare value: %lu.",
+ p_instance->instance_id,
+ channel,
+ val);
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_rtc_tick_enable(nrfx_rtc_t const * const p_instance, bool enable_irq)
+{
+ nrf_rtc_event_t event = NRF_RTC_EVENT_TICK;
+ uint32_t mask = NRF_RTC_INT_TICK_MASK;
+
+ nrf_rtc_event_clear(p_instance->p_reg, event);
+ nrf_rtc_event_enable(p_instance->p_reg, mask);
+ if (enable_irq)
+ {
+ nrf_rtc_int_enable(p_instance->p_reg, mask);
+ }
+ NRFX_LOG_INFO("Tick events enabled.");
+}
+
+void nrfx_rtc_tick_disable(nrfx_rtc_t const * const p_instance)
+{
+ uint32_t mask = NRF_RTC_INT_TICK_MASK;
+
+ nrf_rtc_event_disable(p_instance->p_reg, mask);
+ nrf_rtc_int_disable(p_instance->p_reg, mask);
+ NRFX_LOG_INFO("Tick events disabled.");
+}
+
+void nrfx_rtc_overflow_enable(nrfx_rtc_t const * const p_instance, bool enable_irq)
+{
+ nrf_rtc_event_t event = NRF_RTC_EVENT_OVERFLOW;
+ uint32_t mask = NRF_RTC_INT_OVERFLOW_MASK;
+
+ nrf_rtc_event_clear(p_instance->p_reg, event);
+ nrf_rtc_event_enable(p_instance->p_reg, mask);
+ if (enable_irq)
+ {
+ nrf_rtc_int_enable(p_instance->p_reg, mask);
+ }
+}
+
+void nrfx_rtc_overflow_disable(nrfx_rtc_t const * const p_instance)
+{
+ uint32_t mask = NRF_RTC_INT_OVERFLOW_MASK;
+ nrf_rtc_event_disable(p_instance->p_reg, mask);
+ nrf_rtc_int_disable(p_instance->p_reg, mask);
+}
+
+uint32_t nrfx_rtc_max_ticks_get(nrfx_rtc_t const * const p_instance)
+{
+ uint32_t ticks;
+ if (m_cb[p_instance->instance_id].reliable)
+ {
+ ticks = RTC_COUNTER_COUNTER_Msk - m_cb[p_instance->instance_id].tick_latency;
+ }
+ else
+ {
+ ticks = RTC_COUNTER_COUNTER_Msk;
+ }
+ return ticks;
+}
+
+static void irq_handler(NRF_RTC_Type * p_reg,
+ uint32_t instance_id,
+ uint32_t channel_count)
+{
+ uint32_t i;
+ uint32_t int_mask = (uint32_t)NRF_RTC_INT_COMPARE0_MASK;
+ nrf_rtc_event_t event = NRF_RTC_EVENT_COMPARE_0;
+
+ for (i = 0; i < channel_count; i++)
+ {
+ if (nrf_rtc_int_is_enabled(p_reg,int_mask) && nrf_rtc_event_pending(p_reg,event))
+ {
+ nrf_rtc_event_disable(p_reg,int_mask);
+ nrf_rtc_int_disable(p_reg,int_mask);
+ nrf_rtc_event_clear(p_reg,event);
+ NRFX_LOG_DEBUG("Event: %s, instance id: %lu.", EVT_TO_STR(event), instance_id);
+ m_handlers[instance_id]((nrfx_rtc_int_type_t)i);
+ }
+ int_mask <<= 1;
+ event = (nrf_rtc_event_t)((uint32_t)event + sizeof(uint32_t));
+ }
+ event = NRF_RTC_EVENT_TICK;
+ if (nrf_rtc_int_is_enabled(p_reg,NRF_RTC_INT_TICK_MASK) &&
+ nrf_rtc_event_pending(p_reg, event))
+ {
+ nrf_rtc_event_clear(p_reg, event);
+ NRFX_LOG_DEBUG("Event: %s, instance id: %lu.", EVT_TO_STR(event), instance_id);
+ m_handlers[instance_id](NRFX_RTC_INT_TICK);
+ }
+
+ event = NRF_RTC_EVENT_OVERFLOW;
+ if (nrf_rtc_int_is_enabled(p_reg,NRF_RTC_INT_OVERFLOW_MASK) &&
+ nrf_rtc_event_pending(p_reg, event))
+ {
+ nrf_rtc_event_clear(p_reg,event);
+ NRFX_LOG_DEBUG("Event: %s, instance id: %lu.", EVT_TO_STR(event), instance_id);
+ m_handlers[instance_id](NRFX_RTC_INT_OVERFLOW);
+ }
+}
+
+#if NRFX_CHECK(NRFX_RTC0_ENABLED)
+void nrfx_rtc_0_irq_handler(void)
+{
+ irq_handler(NRF_RTC0, NRFX_RTC0_INST_IDX, NRF_RTC_CC_CHANNEL_COUNT(0));
+}
+#endif
+
+#if NRFX_CHECK(NRFX_RTC1_ENABLED)
+void nrfx_rtc_1_irq_handler(void)
+{
+ irq_handler(NRF_RTC1, NRFX_RTC1_INST_IDX, NRF_RTC_CC_CHANNEL_COUNT(1));
+}
+#endif
+
+#if NRFX_CHECK(NRFX_RTC2_ENABLED)
+void nrfx_rtc_2_irq_handler(void)
+{
+ irq_handler(NRF_RTC2, NRFX_RTC2_INST_IDX, NRF_RTC_CC_CHANNEL_COUNT(2));
+}
+#endif
+
+#endif // NRFX_CHECK(NRFX_RTC_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_saadc.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_saadc.c
new file mode 100644
index 0000000..4ab3409
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_saadc.c
@@ -0,0 +1,639 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_SAADC_ENABLED)
+#include <nrfx_saadc.h>
+
+#define NRFX_LOG_MODULE SAADC
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRF_SAADC_EVENT_STARTED ? "NRF_SAADC_EVENT_STARTED" : \
+ (event == NRF_SAADC_EVENT_END ? "NRF_SAADC_EVENT_END" : \
+ (event == NRF_SAADC_EVENT_DONE ? "NRF_SAADC_EVENT_DONE" : \
+ (event == NRF_SAADC_EVENT_RESULTDONE ? "NRF_SAADC_EVENT_RESULTDONE" : \
+ (event == NRF_SAADC_EVENT_CALIBRATEDONE ? "NRF_SAADC_EVENT_CALIBRATEDONE" : \
+ (event == NRF_SAADC_EVENT_STOPPED ? "NRF_SAADC_EVENT_STOPPED" : \
+ "UNKNOWN EVENT"))))))
+
+
+typedef enum
+{
+ NRF_SAADC_STATE_IDLE = 0,
+ NRF_SAADC_STATE_BUSY = 1,
+ NRF_SAADC_STATE_CALIBRATION = 2
+} nrf_saadc_state_t;
+
+
+typedef struct
+{
+ nrf_saadc_input_t pselp;
+ nrf_saadc_input_t pseln;
+} nrf_saadc_psel_buffer;
+
+/** @brief SAADC control block.*/
+typedef struct
+{
+ nrfx_saadc_event_handler_t event_handler; ///< Event handler function pointer.
+ volatile nrf_saadc_value_t * p_buffer; ///< Sample buffer.
+ volatile uint16_t buffer_size; ///< Size of the sample buffer.
+ volatile nrf_saadc_value_t * p_secondary_buffer; ///< Secondary sample buffer.
+ volatile nrf_saadc_state_t adc_state; ///< State of the SAADC.
+ uint32_t limits_enabled_flags; ///< Enabled limits flags.
+ uint16_t secondary_buffer_size; ///< Size of the secondary buffer.
+ uint16_t buffer_size_left; ///< When low power mode is active indicates how many samples left to convert on current buffer.
+ nrf_saadc_psel_buffer psel[NRF_SAADC_CHANNEL_COUNT]; ///< Pin configurations of SAADC channels.
+ nrfx_drv_state_t state; ///< Driver initialization state.
+ uint8_t active_channels; ///< Number of enabled SAADC channels.
+ bool low_power_mode; ///< Indicates if low power mode is active.
+ bool conversions_end; ///< When low power mode is active indicates end of conversions on current buffer.
+} nrfx_saadc_cb_t;
+
+static nrfx_saadc_cb_t m_cb;
+
+#define LOW_LIMIT_TO_FLAG(channel) ((2 * channel + 1))
+#define HIGH_LIMIT_TO_FLAG(channel) ((2 * channel))
+#define FLAG_IDX_TO_EVENT(idx) ((nrf_saadc_event_t)((uint32_t)NRF_SAADC_EVENT_CH0_LIMITH + \
+ 4 * idx))
+#define LIMIT_EVENT_TO_CHANNEL(event) (uint8_t)(((uint32_t)event - \
+ (uint32_t)NRF_SAADC_EVENT_CH0_LIMITH) / 8)
+#define LIMIT_EVENT_TO_LIMIT_TYPE(event)((((uint32_t)event - (uint32_t)NRF_SAADC_EVENT_CH0_LIMITH) & 4) \
+ ? NRF_SAADC_LIMIT_LOW : NRF_SAADC_LIMIT_HIGH)
+#define HW_TIMEOUT 10000
+
+void nrfx_saadc_irq_handler(void)
+{
+ if (nrf_saadc_event_check(NRF_SAADC_EVENT_END))
+ {
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_END);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_SAADC_EVENT_END));
+
+ if (!m_cb.low_power_mode || m_cb.conversions_end)
+ {
+ nrfx_saadc_evt_t evt;
+ evt.type = NRFX_SAADC_EVT_DONE;
+ evt.data.done.p_buffer = (nrf_saadc_value_t *)m_cb.p_buffer;
+ evt.data.done.size = m_cb.buffer_size;
+
+ if (m_cb.p_secondary_buffer == NULL)
+ {
+ m_cb.adc_state = NRF_SAADC_STATE_IDLE;
+ }
+ else
+ {
+ m_cb.buffer_size_left = m_cb.secondary_buffer_size;
+ m_cb.p_buffer = m_cb.p_secondary_buffer;
+ m_cb.buffer_size = m_cb.secondary_buffer_size;
+ m_cb.p_secondary_buffer = NULL;
+ if (!m_cb.low_power_mode)
+ {
+ nrf_saadc_task_trigger(NRF_SAADC_TASK_START);
+ }
+ }
+ m_cb.event_handler(&evt);
+ m_cb.conversions_end = false;
+ }
+ }
+ if (m_cb.low_power_mode && nrf_saadc_event_check(NRF_SAADC_EVENT_STARTED))
+ {
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_STARTED);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_SAADC_EVENT_STARTED));
+
+ if (m_cb.buffer_size_left > m_cb.active_channels)
+ {
+ // More samples to convert than for single event.
+ m_cb.buffer_size_left -= m_cb.active_channels;
+ nrf_saadc_buffer_init((nrf_saadc_value_t *)&m_cb.p_buffer[m_cb.buffer_size -
+ m_cb.buffer_size_left],
+ m_cb.active_channels);
+ }
+ else if ((m_cb.buffer_size_left == m_cb.active_channels) &&
+
+ (m_cb.p_secondary_buffer != NULL))
+ {
+ // Samples to convert for one event, prepare next buffer.
+ m_cb.conversions_end = true;
+ m_cb.buffer_size_left = 0;
+ nrf_saadc_buffer_init((nrf_saadc_value_t *)m_cb.p_secondary_buffer,
+ m_cb.active_channels);
+ }
+ else if (m_cb.buffer_size_left == m_cb.active_channels)
+ {
+ // Samples to convert for one event, but no second buffer.
+ m_cb.conversions_end = true;
+ m_cb.buffer_size_left = 0;
+ }
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_END);
+ nrf_saadc_task_trigger(NRF_SAADC_TASK_SAMPLE);
+ }
+ if (nrf_saadc_event_check(NRF_SAADC_EVENT_CALIBRATEDONE))
+ {
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_CALIBRATEDONE);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_SAADC_EVENT_CALIBRATEDONE));
+ m_cb.adc_state = NRF_SAADC_STATE_IDLE;
+
+ nrfx_saadc_evt_t evt;
+ evt.type = NRFX_SAADC_EVT_CALIBRATEDONE;
+ m_cb.event_handler(&evt);
+ }
+ if (nrf_saadc_event_check(NRF_SAADC_EVENT_STOPPED))
+ {
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_STOPPED);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_SAADC_EVENT_STOPPED));
+ m_cb.adc_state = NRF_SAADC_STATE_IDLE;
+ }
+ else
+ {
+ uint32_t limit_flags = m_cb.limits_enabled_flags;
+ uint32_t flag_idx;
+ nrf_saadc_event_t event;
+
+ while (limit_flags)
+ {
+ flag_idx = __CLZ(limit_flags);
+ limit_flags &= ~((1UL << 31) >> flag_idx);
+ event = FLAG_IDX_TO_EVENT(flag_idx);
+ if (nrf_saadc_event_check(event))
+ {
+ nrf_saadc_event_clear(event);
+ nrfx_saadc_evt_t evt;
+ evt.type = NRFX_SAADC_EVT_LIMIT;
+ evt.data.limit.channel = LIMIT_EVENT_TO_CHANNEL(event);
+ evt.data.limit.limit_type = LIMIT_EVENT_TO_LIMIT_TYPE(event);
+ NRFX_LOG_DEBUG("Event limit, channel: %d, limit type: %d.",
+ evt.data.limit.channel,
+ evt.data.limit.limit_type);
+ m_cb.event_handler(&evt);
+ }
+ }
+ }
+}
+
+
+nrfx_err_t nrfx_saadc_init(nrfx_saadc_config_t const * p_config,
+ nrfx_saadc_event_handler_t event_handler)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(event_handler);
+ nrfx_err_t err_code;
+
+ if (m_cb.state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ m_cb.event_handler = event_handler;
+ nrf_saadc_resolution_set(p_config->resolution);
+ nrf_saadc_oversample_set(p_config->oversample);
+ m_cb.low_power_mode = p_config->low_power_mode;
+ m_cb.state = NRFX_DRV_STATE_INITIALIZED;
+ m_cb.adc_state = NRF_SAADC_STATE_IDLE;
+ m_cb.active_channels = 0;
+ m_cb.limits_enabled_flags = 0;
+ m_cb.conversions_end = false;
+
+ nrf_saadc_int_disable(NRF_SAADC_INT_ALL);
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_END);
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_STARTED);
+ NRFX_IRQ_PRIORITY_SET(SAADC_IRQn, p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(SAADC_IRQn);
+ nrf_saadc_int_enable(NRF_SAADC_INT_END);
+
+ if (m_cb.low_power_mode)
+ {
+ nrf_saadc_int_enable(NRF_SAADC_INT_STARTED);
+ }
+
+ nrf_saadc_enable();
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+
+ return err_code;
+}
+
+
+void nrfx_saadc_uninit(void)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ nrf_saadc_int_disable(NRF_SAADC_INT_ALL);
+ NRFX_IRQ_DISABLE(SAADC_IRQn);
+ nrf_saadc_task_trigger(NRF_SAADC_TASK_STOP);
+
+ // Wait for ADC being stopped.
+ bool result;
+ NRFX_WAIT_FOR(nrf_saadc_event_check(NRF_SAADC_EVENT_STOPPED), HW_TIMEOUT, 0, result);
+ NRFX_ASSERT(result);
+
+ nrf_saadc_disable();
+ m_cb.adc_state = NRF_SAADC_STATE_IDLE;
+
+ for (uint32_t channel = 0; channel < NRF_SAADC_CHANNEL_COUNT; ++channel)
+ {
+ if (m_cb.psel[channel].pselp != NRF_SAADC_INPUT_DISABLED)
+ {
+ nrfx_err_t err_code = nrfx_saadc_channel_uninit(channel);
+ NRFX_ASSERT(err_code == NRFX_SUCCESS);
+ }
+ }
+
+ m_cb.state = NRFX_DRV_STATE_UNINITIALIZED;
+}
+
+
+nrfx_err_t nrfx_saadc_channel_init(uint8_t channel,
+ nrf_saadc_channel_config_t const * const p_config)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(channel < NRF_SAADC_CHANNEL_COUNT);
+ // Oversampling can be used only with one channel.
+ NRFX_ASSERT((nrf_saadc_oversample_get() == NRF_SAADC_OVERSAMPLE_DISABLED) ||
+ (m_cb.active_channels == 0));
+ NRFX_ASSERT((p_config->pin_p <= NRF_SAADC_INPUT_VDD) &&
+ (p_config->pin_p > NRF_SAADC_INPUT_DISABLED));
+ NRFX_ASSERT(p_config->pin_n <= NRF_SAADC_INPUT_VDD);
+
+ nrfx_err_t err_code;
+
+ // A channel can only be initialized if the driver is in the idle state.
+ if (m_cb.adc_state != NRF_SAADC_STATE_IDLE)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+#ifdef NRF52_PAN_74
+ if ((p_config->acq_time == NRF_SAADC_ACQTIME_3US) ||
+ (p_config->acq_time == NRF_SAADC_ACQTIME_5US))
+ {
+ nrf_saadc_disable();
+ }
+#endif //NRF52_PAN_74
+
+ if (m_cb.psel[channel].pselp == NRF_SAADC_INPUT_DISABLED)
+ {
+ ++m_cb.active_channels;
+ }
+ m_cb.psel[channel].pselp = p_config->pin_p;
+ m_cb.psel[channel].pseln = p_config->pin_n;
+ nrf_saadc_channel_init(channel, p_config);
+ nrf_saadc_channel_input_set(channel, p_config->pin_p, p_config->pin_n);
+
+#ifdef NRF52_PAN_74
+ if ((p_config->acq_time == NRF_SAADC_ACQTIME_3US) ||
+ (p_config->acq_time == NRF_SAADC_ACQTIME_5US))
+ {
+ nrf_saadc_enable();
+ }
+#endif //NRF52_PAN_74
+
+ NRFX_LOG_INFO("Channel initialized: %d.", channel);
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_saadc_channel_uninit(uint8_t channel)
+{
+ NRFX_ASSERT(channel < NRF_SAADC_CHANNEL_COUNT);
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ nrfx_err_t err_code;
+
+ // A channel can only be uninitialized if the driver is in the idle state.
+ if (m_cb.adc_state != NRF_SAADC_STATE_IDLE)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ if (m_cb.psel[channel].pselp != NRF_SAADC_INPUT_DISABLED)
+ {
+ --m_cb.active_channels;
+ }
+ m_cb.psel[channel].pselp = NRF_SAADC_INPUT_DISABLED;
+ m_cb.psel[channel].pseln = NRF_SAADC_INPUT_DISABLED;
+ nrf_saadc_channel_input_set(channel, NRF_SAADC_INPUT_DISABLED, NRF_SAADC_INPUT_DISABLED);
+ nrfx_saadc_limits_set(channel, NRFX_SAADC_LIMITL_DISABLED, NRFX_SAADC_LIMITH_DISABLED);
+ NRFX_LOG_INFO("Channel denitialized: %d.", channel);
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+uint32_t nrfx_saadc_sample_task_get(void)
+{
+ return nrf_saadc_task_address_get(
+ m_cb.low_power_mode ? NRF_SAADC_TASK_START : NRF_SAADC_TASK_SAMPLE);
+}
+
+
+nrfx_err_t nrfx_saadc_sample_convert(uint8_t channel, nrf_saadc_value_t * p_value)
+{
+ nrfx_err_t err_code;
+
+ if (m_cb.adc_state != NRF_SAADC_STATE_IDLE)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ m_cb.adc_state = NRF_SAADC_STATE_BUSY;
+ nrf_saadc_int_disable(NRF_SAADC_INT_STARTED | NRF_SAADC_INT_END);
+ nrf_saadc_buffer_init(p_value, 1);
+ if (m_cb.active_channels > 1)
+ {
+ for (uint32_t i = 0; i < NRF_SAADC_CHANNEL_COUNT; ++i)
+ {
+ nrf_saadc_channel_input_set(i, NRF_SAADC_INPUT_DISABLED, NRF_SAADC_INPUT_DISABLED);
+ }
+ }
+ nrf_saadc_channel_input_set(channel, m_cb.psel[channel].pselp, m_cb.psel[channel].pseln);
+ nrf_saadc_task_trigger(NRF_SAADC_TASK_START);
+ nrf_saadc_task_trigger(NRF_SAADC_TASK_SAMPLE);
+
+ bool result;
+ NRFX_WAIT_FOR(nrf_saadc_event_check(NRF_SAADC_EVENT_END), HW_TIMEOUT, 0, result);
+ NRFX_ASSERT(result);
+
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_STARTED);
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_END);
+
+ NRFX_LOG_INFO("Conversion value: %d, channel %d.", *p_value, channel);
+
+ if (m_cb.active_channels > 1)
+ {
+ for (uint32_t i = 0; i < NRF_SAADC_CHANNEL_COUNT; ++i)
+ {
+ nrf_saadc_channel_input_set(i, m_cb.psel[i].pselp, m_cb.psel[i].pseln);
+ }
+ }
+
+ if (m_cb.low_power_mode)
+ {
+ nrf_saadc_int_enable(NRF_SAADC_INT_STARTED | NRF_SAADC_INT_END);
+ }
+ else
+ {
+ nrf_saadc_int_enable(NRF_SAADC_INT_END);
+ }
+
+ m_cb.adc_state = NRF_SAADC_STATE_IDLE;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_saadc_buffer_convert(nrf_saadc_value_t * p_buffer, uint16_t size)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT((size % m_cb.active_channels) == 0);
+ nrfx_err_t err_code;
+
+ nrf_saadc_int_disable(NRF_SAADC_INT_END | NRF_SAADC_INT_CALIBRATEDONE);
+ if (m_cb.adc_state == NRF_SAADC_STATE_CALIBRATION)
+ {
+ nrf_saadc_int_enable(NRF_SAADC_INT_END | NRF_SAADC_INT_CALIBRATEDONE);
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ if (m_cb.adc_state == NRF_SAADC_STATE_BUSY)
+ {
+ if ( m_cb.p_secondary_buffer)
+ {
+ nrf_saadc_int_enable(NRF_SAADC_INT_END);
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ else
+ {
+ m_cb.p_secondary_buffer = p_buffer;
+ m_cb.secondary_buffer_size = size;
+ if (!m_cb.low_power_mode)
+ {
+ while (nrf_saadc_event_check(NRF_SAADC_EVENT_STARTED) == 0);
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_STARTED);
+ nrf_saadc_buffer_init(p_buffer, size);
+ }
+ nrf_saadc_int_enable(NRF_SAADC_INT_END);
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ }
+ nrf_saadc_int_enable(NRF_SAADC_INT_END);
+ m_cb.adc_state = NRF_SAADC_STATE_BUSY;
+
+ m_cb.p_buffer = p_buffer;
+ m_cb.buffer_size = size;
+ m_cb.p_secondary_buffer = NULL;
+
+ NRFX_LOG_INFO("Function: %s, buffer length: %d, active channels: %d.",
+ __func__,
+ size,
+ m_cb.active_channels);
+
+ if (m_cb.low_power_mode)
+ {
+ m_cb.buffer_size_left = size;
+ nrf_saadc_buffer_init(p_buffer, m_cb.active_channels);
+ }
+ else
+ {
+ nrf_saadc_buffer_init(p_buffer, size);
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_STARTED);
+ nrf_saadc_task_trigger(NRF_SAADC_TASK_START);
+ }
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_saadc_sample()
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ nrfx_err_t err_code = NRFX_SUCCESS;
+ if (m_cb.adc_state != NRF_SAADC_STATE_BUSY)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ }
+ else if (m_cb.low_power_mode)
+ {
+ nrf_saadc_task_trigger(NRF_SAADC_TASK_START);
+ }
+ else
+ {
+ nrf_saadc_task_trigger(NRF_SAADC_TASK_SAMPLE);
+ }
+
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_saadc_calibrate_offset()
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ nrfx_err_t err_code;
+
+ if (m_cb.adc_state != NRF_SAADC_STATE_IDLE)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ m_cb.adc_state = NRF_SAADC_STATE_CALIBRATION;
+
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_CALIBRATEDONE);
+ nrf_saadc_int_enable(NRF_SAADC_INT_CALIBRATEDONE);
+ nrf_saadc_task_trigger(NRF_SAADC_TASK_CALIBRATEOFFSET);
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+bool nrfx_saadc_is_busy(void)
+{
+ return (m_cb.adc_state != NRF_SAADC_STATE_IDLE);
+}
+
+
+void nrfx_saadc_abort(void)
+{
+ if (nrfx_saadc_is_busy())
+ {
+ nrf_saadc_event_clear(NRF_SAADC_EVENT_STOPPED);
+ nrf_saadc_int_enable(NRF_SAADC_INT_STOPPED);
+ nrf_saadc_task_trigger(NRF_SAADC_TASK_STOP);
+
+ if (m_cb.adc_state == NRF_SAADC_STATE_CALIBRATION)
+ {
+ m_cb.adc_state = NRF_SAADC_STATE_IDLE;
+ }
+ else
+ {
+ // Wait for ADC being stopped.
+ bool result;
+ NRFX_WAIT_FOR((m_cb.adc_state != NRF_SAADC_STATE_IDLE), HW_TIMEOUT, 0, result);
+ NRFX_ASSERT(result);
+ }
+
+ nrf_saadc_int_disable(NRF_SAADC_INT_STOPPED);
+
+ m_cb.p_buffer = 0;
+ m_cb.p_secondary_buffer = 0;
+ NRFX_LOG_INFO("Conversion aborted.");
+ }
+}
+
+
+void nrfx_saadc_limits_set(uint8_t channel, int16_t limit_low, int16_t limit_high)
+{
+ NRFX_ASSERT(m_cb.state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(m_cb.event_handler); // only non blocking mode supported
+ NRFX_ASSERT(limit_low >= NRFX_SAADC_LIMITL_DISABLED);
+ NRFX_ASSERT(limit_high <= NRFX_SAADC_LIMITH_DISABLED);
+ NRFX_ASSERT(limit_low < limit_high);
+ nrf_saadc_channel_limits_set(channel, limit_low, limit_high);
+
+ uint32_t int_mask = nrf_saadc_limit_int_get(channel, NRF_SAADC_LIMIT_LOW);
+ if (limit_low == NRFX_SAADC_LIMITL_DISABLED)
+ {
+ m_cb.limits_enabled_flags &= ~(0x80000000 >> LOW_LIMIT_TO_FLAG(channel));
+ nrf_saadc_int_disable(int_mask);
+ }
+ else
+ {
+ m_cb.limits_enabled_flags |= (0x80000000 >> LOW_LIMIT_TO_FLAG(channel));
+ nrf_saadc_int_enable(int_mask);
+ }
+
+ int_mask = nrf_saadc_limit_int_get(channel, NRF_SAADC_LIMIT_HIGH);
+ if (limit_high == NRFX_SAADC_LIMITH_DISABLED)
+ {
+ m_cb.limits_enabled_flags &= ~(0x80000000 >> HIGH_LIMIT_TO_FLAG(channel));
+ nrf_saadc_int_disable(int_mask);
+ }
+ else
+ {
+ m_cb.limits_enabled_flags |= (0x80000000 >> HIGH_LIMIT_TO_FLAG(channel));
+ nrf_saadc_int_enable(int_mask);
+ }
+}
+#endif // NRFX_CHECK(NRFX_SAADC_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_spi.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_spi.c
new file mode 100644
index 0000000..2c6bb44
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_spi.c
@@ -0,0 +1,441 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_SPI_ENABLED)
+
+#if !(NRFX_CHECK(NRFX_SPI0_ENABLED) || NRFX_CHECK(NRFX_SPI1_ENABLED) || \
+ NRFX_CHECK(NRFX_SPI2_ENABLED))
+#error "No enabled SPI instances. Check <nrfx_config.h>."
+#endif
+
+#include <nrfx_spi.h>
+#include "prs/nrfx_prs.h"
+#include <hal/nrf_gpio.h>
+
+#define NRFX_LOG_MODULE SPI
+#include <nrfx_log.h>
+
+// Control block - driver instance local data.
+typedef struct
+{
+ nrfx_spi_evt_handler_t handler;
+ void * p_context;
+ nrfx_spi_evt_t evt; // Keep the struct that is ready for event handler. Less memcpy.
+ nrfx_drv_state_t state;
+ volatile bool transfer_in_progress;
+
+ // [no need for 'volatile' attribute for the following members, as they
+ // are not concurrently used in IRQ handlers and main line code]
+ uint8_t ss_pin;
+ uint8_t miso_pin;
+ uint8_t orc;
+ size_t bytes_transferred;
+
+ bool abort;
+} spi_control_block_t;
+static spi_control_block_t m_cb[NRFX_SPI_ENABLED_COUNT];
+
+
+nrfx_err_t nrfx_spi_init(nrfx_spi_t const * const p_instance,
+ nrfx_spi_config_t const * p_config,
+ nrfx_spi_evt_handler_t handler,
+ void * p_context)
+{
+ NRFX_ASSERT(p_config);
+ spi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ nrfx_err_t err_code;
+
+ if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ static nrfx_irq_handler_t const irq_handlers[NRFX_SPI_ENABLED_COUNT] = {
+ #if NRFX_CHECK(NRFX_SPI0_ENABLED)
+ nrfx_spi_0_irq_handler,
+ #endif
+ #if NRFX_CHECK(NRFX_SPI1_ENABLED)
+ nrfx_spi_1_irq_handler,
+ #endif
+ #if NRFX_CHECK(NRFX_SPI2_ENABLED)
+ nrfx_spi_2_irq_handler,
+ #endif
+ };
+ if (nrfx_prs_acquire(p_instance->p_reg,
+ irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+#endif // NRFX_CHECK(NRFX_PRS_ENABLED)
+
+ p_cb->handler = handler;
+ p_cb->p_context = p_context;
+
+ uint32_t mosi_pin;
+ uint32_t miso_pin;
+ // Configure pins used by the peripheral:
+ // - SCK - output with initial value corresponding with the SPI mode used:
+ // 0 - for modes 0 and 1 (CPOL = 0), 1 - for modes 2 and 3 (CPOL = 1);
+ // according to the reference manual guidelines this pin and its input
+ // buffer must always be connected for the SPI to work.
+ if (p_config->mode <= NRF_SPI_MODE_1)
+ {
+ nrf_gpio_pin_clear(p_config->sck_pin);
+ }
+ else
+ {
+ nrf_gpio_pin_set(p_config->sck_pin);
+ }
+ nrf_gpio_cfg(p_config->sck_pin,
+ NRF_GPIO_PIN_DIR_OUTPUT,
+ NRF_GPIO_PIN_INPUT_CONNECT,
+ NRF_GPIO_PIN_NOPULL,
+ NRF_GPIO_PIN_S0S1,
+ NRF_GPIO_PIN_NOSENSE);
+ // - MOSI (optional) - output with initial value 0,
+ if (p_config->mosi_pin != NRFX_SPI_PIN_NOT_USED)
+ {
+ mosi_pin = p_config->mosi_pin;
+ nrf_gpio_pin_clear(mosi_pin);
+ nrf_gpio_cfg_output(mosi_pin);
+ }
+ else
+ {
+ mosi_pin = NRF_SPI_PIN_NOT_CONNECTED;
+ }
+ // - MISO (optional) - input,
+ if (p_config->miso_pin != NRFX_SPI_PIN_NOT_USED)
+ {
+ miso_pin = p_config->miso_pin;
+ nrf_gpio_cfg_input(miso_pin, (nrf_gpio_pin_pull_t)NRFX_SPI_MISO_PULL_CFG);
+ }
+ else
+ {
+ miso_pin = NRF_SPI_PIN_NOT_CONNECTED;
+ }
+ m_cb[p_instance->drv_inst_idx].miso_pin = p_config->miso_pin;
+ // - Slave Select (optional) - output with initial value 1 (inactive).
+ if (p_config->ss_pin != NRFX_SPI_PIN_NOT_USED)
+ {
+ nrf_gpio_pin_set(p_config->ss_pin);
+ nrf_gpio_cfg_output(p_config->ss_pin);
+ }
+ m_cb[p_instance->drv_inst_idx].ss_pin = p_config->ss_pin;
+
+ NRF_SPI_Type * p_spi = p_instance->p_reg;
+ nrf_spi_pins_set(p_spi, p_config->sck_pin, mosi_pin, miso_pin);
+ nrf_spi_frequency_set(p_spi, p_config->frequency);
+ nrf_spi_configure(p_spi, p_config->mode, p_config->bit_order);
+
+ m_cb[p_instance->drv_inst_idx].orc = p_config->orc;
+
+ if (p_cb->handler)
+ {
+ nrf_spi_int_enable(p_spi, NRF_SPI_INT_READY_MASK);
+ }
+
+ nrf_spi_enable(p_spi);
+
+ if (p_cb->handler)
+ {
+ NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(p_instance->p_reg),
+ p_config->irq_priority);
+ NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_instance->p_reg));
+ }
+
+ p_cb->transfer_in_progress = false;
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_spi_uninit(nrfx_spi_t const * const p_instance)
+{
+ spi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ if (p_cb->handler)
+ {
+ NRFX_IRQ_DISABLE(nrfx_get_irq_number(p_instance->p_reg));
+ }
+
+ NRF_SPI_Type * p_spi = p_instance->p_reg;
+ if (p_cb->handler)
+ {
+ nrf_spi_int_disable(p_spi, NRF_SPI_ALL_INTS_MASK);
+ }
+
+ if (p_cb->miso_pin != NRFX_SPI_PIN_NOT_USED)
+ {
+ nrf_gpio_cfg_default(p_cb->miso_pin);
+ }
+ nrf_spi_disable(p_spi);
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ nrfx_prs_release(p_instance->p_reg);
+#endif
+
+ p_cb->state = NRFX_DRV_STATE_UNINITIALIZED;
+}
+
+static void finish_transfer(spi_control_block_t * p_cb)
+{
+ // If Slave Select signal is used, this is the time to deactivate it.
+ if (p_cb->ss_pin != NRFX_SPI_PIN_NOT_USED)
+ {
+ nrf_gpio_pin_set(p_cb->ss_pin);
+ }
+
+ // By clearing this flag before calling the handler we allow subsequent
+ // transfers to be started directly from the handler function.
+ p_cb->transfer_in_progress = false;
+
+ p_cb->evt.type = NRFX_SPI_EVENT_DONE;
+ p_cb->handler(&p_cb->evt, p_cb->p_context);
+}
+
+// This function is called from the IRQ handler or, in blocking mode, directly
+// from the 'spi_xfer' function.
+// It returns true as long as the transfer should be continued, otherwise (when
+// there is nothing more to send/receive) it returns false.
+static bool transfer_byte(NRF_SPI_Type * p_spi, spi_control_block_t * p_cb)
+{
+ // Read the data byte received in this transfer (always, because no further
+ // READY event can be generated until the current byte is read out from the
+ // RXD register), and store it in the RX buffer (only when needed).
+ volatile uint8_t rx_data = nrf_spi_rxd_get(p_spi);
+ if (p_cb->bytes_transferred < p_cb->evt.xfer_desc.rx_length)
+ {
+ p_cb->evt.xfer_desc.p_rx_buffer[p_cb->bytes_transferred] = rx_data;
+ }
+
+ ++p_cb->bytes_transferred;
+
+ // Check if there are more bytes to send or receive and write proper data
+ // byte (next one from TX buffer or over-run character) to the TXD register
+ // when needed.
+ // NOTE - we've already used 'p_cb->bytes_transferred + 1' bytes from our
+ // buffers, because we take advantage of double buffering of TXD
+ // register (so in effect one byte is still being transmitted now);
+ // see how the transfer is started in the 'spi_xfer' function.
+ size_t bytes_used = p_cb->bytes_transferred + 1;
+
+ if (p_cb->abort)
+ {
+ if (bytes_used < p_cb->evt.xfer_desc.tx_length)
+ {
+ p_cb->evt.xfer_desc.tx_length = bytes_used;
+ }
+ if (bytes_used < p_cb->evt.xfer_desc.rx_length)
+ {
+ p_cb->evt.xfer_desc.rx_length = bytes_used;
+ }
+ }
+
+ if (bytes_used < p_cb->evt.xfer_desc.tx_length)
+ {
+ nrf_spi_txd_set(p_spi, p_cb->evt.xfer_desc.p_tx_buffer[bytes_used]);
+ return true;
+ }
+ else if (bytes_used < p_cb->evt.xfer_desc.rx_length)
+ {
+ nrf_spi_txd_set(p_spi, p_cb->orc);
+ return true;
+ }
+
+ return (p_cb->bytes_transferred < p_cb->evt.xfer_desc.tx_length ||
+ p_cb->bytes_transferred < p_cb->evt.xfer_desc.rx_length);
+}
+
+static void spi_xfer(NRF_SPI_Type * p_spi,
+ spi_control_block_t * p_cb,
+ nrfx_spi_xfer_desc_t const * p_xfer_desc)
+{
+ p_cb->bytes_transferred = 0;
+ nrf_spi_int_disable(p_spi, NRF_SPI_INT_READY_MASK);
+
+ nrf_spi_event_clear(p_spi, NRF_SPI_EVENT_READY);
+
+ // Start the transfer by writing some byte to the TXD register;
+ // if TX buffer is not empty, take the first byte from this buffer,
+ // otherwise - use over-run character.
+ nrf_spi_txd_set(p_spi,
+ (p_xfer_desc->tx_length > 0 ? p_xfer_desc->p_tx_buffer[0] : p_cb->orc));
+
+ // TXD register is double buffered, so next byte to be transmitted can
+ // be written immediately, if needed, i.e. if TX or RX transfer is to
+ // be more that 1 byte long. Again - if there is something more in TX
+ // buffer send it, otherwise use over-run character.
+ if (p_xfer_desc->tx_length > 1)
+ {
+ nrf_spi_txd_set(p_spi, p_xfer_desc->p_tx_buffer[1]);
+ }
+ else if (p_xfer_desc->rx_length > 1)
+ {
+ nrf_spi_txd_set(p_spi, p_cb->orc);
+ }
+
+ // For blocking mode (user handler not provided) wait here for READY
+ // events (indicating that the byte from TXD register was transmitted
+ // and a new incoming byte was moved to the RXD register) and continue
+ // transaction until all requested bytes are transferred.
+ // In non-blocking mode - IRQ service routine will do this stuff.
+ if (p_cb->handler)
+ {
+ nrf_spi_int_enable(p_spi, NRF_SPI_INT_READY_MASK);
+ }
+ else
+ {
+ do {
+ while (!nrf_spi_event_check(p_spi, NRF_SPI_EVENT_READY)) {}
+ nrf_spi_event_clear(p_spi, NRF_SPI_EVENT_READY);
+ NRFX_LOG_DEBUG("SPI: Event: NRF_SPI_EVENT_READY.");
+ } while (transfer_byte(p_spi, p_cb));
+ if (p_cb->ss_pin != NRFX_SPI_PIN_NOT_USED)
+ {
+ nrf_gpio_pin_set(p_cb->ss_pin);
+ }
+ }
+}
+
+nrfx_err_t nrfx_spi_xfer(nrfx_spi_t const * const p_instance,
+ nrfx_spi_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags)
+{
+ spi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(p_xfer_desc->p_tx_buffer != NULL || p_xfer_desc->tx_length == 0);
+ NRFX_ASSERT(p_xfer_desc->p_rx_buffer != NULL || p_xfer_desc->rx_length == 0);
+
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (p_cb->transfer_in_progress)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ else
+ {
+ if (p_cb->handler)
+ {
+ p_cb->transfer_in_progress = true;
+ }
+ }
+
+ p_cb->evt.xfer_desc = *p_xfer_desc;
+ p_cb->abort = false;
+
+ if (p_cb->ss_pin != NRFX_SPI_PIN_NOT_USED)
+ {
+ nrf_gpio_pin_clear(p_cb->ss_pin);
+ }
+ if (flags)
+ {
+ p_cb->transfer_in_progress = false;
+ err_code = NRFX_ERROR_NOT_SUPPORTED;
+ }
+ else
+ {
+ spi_xfer(p_instance->p_reg, p_cb, p_xfer_desc);
+ }
+ NRFX_LOG_INFO("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_spi_abort(nrfx_spi_t const * p_instance)
+{
+ spi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+ p_cb->abort = true;
+}
+
+static void irq_handler(NRF_SPI_Type * p_spi, spi_control_block_t * p_cb)
+{
+ NRFX_ASSERT(p_cb->handler);
+
+ nrf_spi_event_clear(p_spi, NRF_SPI_EVENT_READY);
+ NRFX_LOG_DEBUG("Event: NRF_SPI_EVENT_READY.");
+
+ if (!transfer_byte(p_spi, p_cb))
+ {
+ finish_transfer(p_cb);
+ }
+}
+
+#if NRFX_CHECK(NRFX_SPI0_ENABLED)
+void nrfx_spi_0_irq_handler(void)
+{
+ irq_handler(NRF_SPI0, &m_cb[NRFX_SPI0_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_SPI1_ENABLED)
+void nrfx_spi_1_irq_handler(void)
+{
+ irq_handler(NRF_SPI1, &m_cb[NRFX_SPI1_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_SPI2_ENABLED)
+void nrfx_spi_2_irq_handler(void)
+{
+ irq_handler(NRF_SPI2, &m_cb[NRFX_SPI2_INST_IDX]);
+}
+#endif
+
+#endif // NRFX_CHECK(NRFX_SPI_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_spim.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_spim.c
new file mode 100644
index 0000000..cf16e26
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_spim.c
@@ -0,0 +1,688 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_SPIM_ENABLED)
+
+#if !(NRFX_CHECK(NRFX_SPIM0_ENABLED) || NRFX_CHECK(NRFX_SPIM1_ENABLED) || \
+ NRFX_CHECK(NRFX_SPIM2_ENABLED) || NRFX_CHECK(NRFX_SPIM3_ENABLED))
+#error "No enabled SPIM instances. Check <nrfx_config.h>."
+#endif
+
+#if NRFX_CHECK(NRFX_SPIM_EXTENDED_ENABLED) && !NRFX_CHECK(NRFX_SPIM3_ENABLED)
+#error "Extended options are available only in SPIM3 on the nRF52840 SoC."
+#endif
+
+#include <nrfx_spim.h>
+#include "prs/nrfx_prs.h"
+#include <hal/nrf_gpio.h>
+
+#define NRFX_LOG_MODULE SPIM
+#include <nrfx_log.h>
+
+#define SPIMX_LENGTH_VALIDATE(peripheral, drv_inst_idx, rx_len, tx_len) \
+ (((drv_inst_idx) == NRFX_CONCAT_3(NRFX_, peripheral, _INST_IDX)) && \
+ NRFX_EASYDMA_LENGTH_VALIDATE(peripheral, rx_len, tx_len))
+
+#if NRFX_CHECK(NRFX_SPIM0_ENABLED)
+#define SPIM0_LENGTH_VALIDATE(...) SPIMX_LENGTH_VALIDATE(SPIM0, __VA_ARGS__)
+#else
+#define SPIM0_LENGTH_VALIDATE(...) 0
+#endif
+
+#if NRFX_CHECK(NRFX_SPIM1_ENABLED)
+#define SPIM1_LENGTH_VALIDATE(...) SPIMX_LENGTH_VALIDATE(SPIM1, __VA_ARGS__)
+#else
+#define SPIM1_LENGTH_VALIDATE(...) 0
+#endif
+
+#if NRFX_CHECK(NRFX_SPIM2_ENABLED)
+#define SPIM2_LENGTH_VALIDATE(...) SPIMX_LENGTH_VALIDATE(SPIM2, __VA_ARGS__)
+#else
+#define SPIM2_LENGTH_VALIDATE(...) 0
+#endif
+
+#if NRFX_CHECK(NRFX_SPIM3_ENABLED)
+#define SPIM3_LENGTH_VALIDATE(...) SPIMX_LENGTH_VALIDATE(SPIM3, __VA_ARGS__)
+#else
+#define SPIM3_LENGTH_VALIDATE(...) 0
+#endif
+
+#define SPIM_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len) \
+ (SPIM0_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len) || \
+ SPIM1_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len) || \
+ SPIM2_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len) || \
+ SPIM3_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len))
+
+
+// Control block - driver instance local data.
+typedef struct
+{
+ nrfx_spim_evt_handler_t handler;
+ void * p_context;
+ nrfx_spim_evt_t evt; // Keep the struct that is ready for event handler. Less memcpy.
+ nrfx_drv_state_t state;
+ volatile bool transfer_in_progress;
+
+#if NRFX_CHECK(NRFX_SPIM_EXTENDED_ENABLED)
+ bool use_hw_ss;
+#endif
+
+ // [no need for 'volatile' attribute for the following members, as they
+ // are not concurrently used in IRQ handlers and main line code]
+ bool ss_active_high;
+ uint8_t ss_pin;
+ uint8_t miso_pin;
+ uint8_t orc;
+
+#if NRFX_CHECK(NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED)
+ size_t tx_length;
+ size_t rx_length;
+#endif
+} spim_control_block_t;
+static spim_control_block_t m_cb[NRFX_SPIM_ENABLED_COUNT];
+
+#if NRFX_CHECK(NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED)
+
+// Workaround for nRF52840 anomaly 198: SPIM3 transmit data might be corrupted.
+
+static uint32_t m_anomaly_198_preserved_value;
+
+static void anomaly_198_enable(uint8_t const * p_buffer, size_t buf_len)
+{
+ m_anomaly_198_preserved_value = *((volatile uint32_t *)0x40000E00);
+
+ if (buf_len == 0)
+ {
+ return;
+ }
+ uint32_t buffer_end_addr = ((uint32_t)p_buffer) + buf_len;
+ uint32_t block_addr = ((uint32_t)p_buffer) & ~0x1FFF;
+ uint32_t block_flag = (1UL << ((block_addr >> 13) & 0xFFFF));
+ uint32_t occupied_blocks = 0;
+
+ if (block_addr >= 0x20010000)
+ {
+ occupied_blocks = (1UL << 8);
+ }
+ else
+ {
+ do {
+ occupied_blocks |= block_flag;
+ block_flag <<= 1;
+ block_addr += 0x2000;
+ } while ((block_addr < buffer_end_addr) && (block_addr < 0x20012000));
+ }
+
+ *((volatile uint32_t *)0x40000E00) = occupied_blocks;
+}
+
+static void anomaly_198_disable(void)
+{
+ *((volatile uint32_t *)0x40000E00) = m_anomaly_198_preserved_value;
+}
+#endif // NRFX_CHECK(NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED)
+
+nrfx_err_t nrfx_spim_init(nrfx_spim_t const * const p_instance,
+ nrfx_spim_config_t const * p_config,
+ nrfx_spim_evt_handler_t handler,
+ void * p_context)
+{
+ NRFX_ASSERT(p_config);
+ spim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ nrfx_err_t err_code;
+
+ if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+#if NRFX_CHECK(NRFX_SPIM_EXTENDED_ENABLED)
+
+ // Currently, only SPIM3 in nRF52840 supports the extended features. Other instances must be checked.
+ if ((p_instance->drv_inst_idx != NRFX_SPIM3_INST_IDX) &&
+ ((p_config->dcx_pin != NRFX_SPIM_PIN_NOT_USED) ||
+ (p_config->frequency == NRF_SPIM_FREQ_16M) ||
+ (p_config->frequency == NRF_SPIM_FREQ_32M) ||
+ (p_config->rx_delay != 0x00) ||
+ (p_config->use_hw_ss)))
+ {
+ err_code = NRFX_ERROR_NOT_SUPPORTED;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+#endif
+
+ NRF_SPIM_Type * p_spim = (NRF_SPIM_Type *)p_instance->p_reg;
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ static nrfx_irq_handler_t const irq_handlers[NRFX_SPIM_ENABLED_COUNT] = {
+ #if NRFX_CHECK(NRFX_SPIM0_ENABLED)
+ nrfx_spim_0_irq_handler,
+ #endif
+ #if NRFX_CHECK(NRFX_SPIM1_ENABLED)
+ nrfx_spim_1_irq_handler,
+ #endif
+ #if NRFX_CHECK(NRFX_SPIM2_ENABLED)
+ nrfx_spim_2_irq_handler,
+ #endif
+ #if NRFX_CHECK(NRFX_SPIM3_ENABLED)
+ nrfx_spim_3_irq_handler,
+ #endif
+ };
+ if (nrfx_prs_acquire(p_instance->p_reg,
+ irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+#endif // NRFX_CHECK(NRFX_PRS_ENABLED)
+
+ p_cb->handler = handler;
+ p_cb->p_context = p_context;
+
+ uint32_t mosi_pin;
+ uint32_t miso_pin;
+ // Configure pins used by the peripheral:
+ // - SCK - output with initial value corresponding with the SPI mode used:
+ // 0 - for modes 0 and 1 (CPOL = 0), 1 - for modes 2 and 3 (CPOL = 1);
+ // according to the reference manual guidelines this pin and its input
+ // buffer must always be connected for the SPI to work.
+ if (p_config->mode <= NRF_SPIM_MODE_1)
+ {
+ nrf_gpio_pin_clear(p_config->sck_pin);
+ }
+ else
+ {
+ nrf_gpio_pin_set(p_config->sck_pin);
+ }
+ nrf_gpio_cfg(p_config->sck_pin,
+ NRF_GPIO_PIN_DIR_OUTPUT,
+ NRF_GPIO_PIN_INPUT_CONNECT,
+ NRF_GPIO_PIN_NOPULL,
+ NRF_GPIO_PIN_S0S1,
+ NRF_GPIO_PIN_NOSENSE);
+ // - MOSI (optional) - output with initial value 0,
+ if (p_config->mosi_pin != NRFX_SPIM_PIN_NOT_USED)
+ {
+ mosi_pin = p_config->mosi_pin;
+ nrf_gpio_pin_clear(mosi_pin);
+ nrf_gpio_cfg_output(mosi_pin);
+ }
+ else
+ {
+ mosi_pin = NRF_SPIM_PIN_NOT_CONNECTED;
+ }
+ // - MISO (optional) - input,
+ if (p_config->miso_pin != NRFX_SPIM_PIN_NOT_USED)
+ {
+ miso_pin = p_config->miso_pin;
+ nrf_gpio_cfg_input(miso_pin, (nrf_gpio_pin_pull_t)NRFX_SPIM_MISO_PULL_CFG);
+ }
+ else
+ {
+ miso_pin = NRF_SPIM_PIN_NOT_CONNECTED;
+ }
+ m_cb[p_instance->drv_inst_idx].miso_pin = p_config->miso_pin;
+ // - Slave Select (optional) - output with initial value 1 (inactive).
+ if (p_config->ss_pin != NRFX_SPIM_PIN_NOT_USED)
+ {
+ if (p_config->ss_active_high)
+ {
+ nrf_gpio_pin_clear(p_config->ss_pin);
+ }
+ else
+ {
+ nrf_gpio_pin_set(p_config->ss_pin);
+ }
+ nrf_gpio_cfg_output(p_config->ss_pin);
+#if NRFX_CHECK(NRFX_SPIM_EXTENDED_ENABLED)
+ if (p_config->use_hw_ss)
+ {
+ m_cb[p_instance->drv_inst_idx].use_hw_ss = p_config->use_hw_ss;
+ nrf_spim_csn_configure(p_spim,
+ p_config->ss_pin,
+ (p_config->ss_active_high == true ?
+ NRF_SPIM_CSN_POL_HIGH : NRF_SPIM_CSN_POL_LOW),
+ p_config->ss_duration);
+ }
+#endif
+ m_cb[p_instance->drv_inst_idx].ss_pin = p_config->ss_pin;
+ m_cb[p_instance->drv_inst_idx].ss_active_high = p_config->ss_active_high;
+ }
+
+#if NRFX_CHECK(NRFX_SPIM_EXTENDED_ENABLED)
+ // - DCX (optional) - output.
+ if (p_config->dcx_pin != NRFX_SPIM_PIN_NOT_USED)
+ {
+ nrf_gpio_pin_set(p_config->dcx_pin);
+ nrf_gpio_cfg_output(p_config->dcx_pin);
+ nrf_spim_dcx_pin_set(p_spim, p_config->dcx_pin);
+ }
+
+ // Change rx delay
+ nrf_spim_iftiming_set(p_spim, p_config->rx_delay);
+#endif
+
+
+ nrf_spim_pins_set(p_spim, p_config->sck_pin, mosi_pin, miso_pin);
+ nrf_spim_frequency_set(p_spim, p_config->frequency);
+ nrf_spim_configure(p_spim, p_config->mode, p_config->bit_order);
+
+ nrf_spim_orc_set(p_spim, p_config->orc);
+
+ if (p_cb->handler)
+ {
+ nrf_spim_int_enable(p_spim, NRF_SPIM_INT_END_MASK);
+ }
+
+ nrf_spim_enable(p_spim);
+
+ if (p_cb->handler)
+ {
+ NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(p_instance->p_reg),
+ p_config->irq_priority);
+ NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_instance->p_reg));
+ }
+
+ p_cb->transfer_in_progress = false;
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_spim_uninit(nrfx_spim_t const * const p_instance)
+{
+ spim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ if (p_cb->handler)
+ {
+ NRFX_IRQ_DISABLE(nrfx_get_irq_number(p_instance->p_reg));
+ }
+
+ NRF_SPIM_Type * p_spim = (NRF_SPIM_Type *)p_instance->p_reg;
+ if (p_cb->handler)
+ {
+ nrf_spim_int_disable(p_spim, NRF_SPIM_ALL_INTS_MASK);
+ if (p_cb->transfer_in_progress)
+ {
+ // Ensure that SPI is not performing any transfer.
+ nrf_spim_task_trigger(p_spim, NRF_SPIM_TASK_STOP);
+ while (!nrf_spim_event_check(p_spim, NRF_SPIM_EVENT_STOPPED))
+ {}
+ p_cb->transfer_in_progress = false;
+ }
+ }
+
+ if (p_cb->miso_pin != NRFX_SPIM_PIN_NOT_USED)
+ {
+ nrf_gpio_cfg_default(p_cb->miso_pin);
+ }
+ nrf_spim_disable(p_spim);
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ nrfx_prs_release(p_instance->p_reg);
+#endif
+
+ p_cb->state = NRFX_DRV_STATE_UNINITIALIZED;
+}
+
+#if NRFX_CHECK(NRFX_SPIM_EXTENDED_ENABLED)
+nrfx_err_t nrfx_spim_xfer_dcx(nrfx_spim_t const * const p_instance,
+ nrfx_spim_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags,
+ uint8_t cmd_length)
+{
+ NRFX_ASSERT(cmd_length <= NRF_SPIM_DCX_CNT_ALL_CMD);
+ nrf_spim_dcx_cnt_set((NRF_SPIM_Type *)p_instance->p_reg, cmd_length);
+ return nrfx_spim_xfer(p_instance, p_xfer_desc, 0);
+}
+#endif
+
+static void finish_transfer(spim_control_block_t * p_cb)
+{
+ // If Slave Select signal is used, this is the time to deactivate it.
+ if (p_cb->ss_pin != NRFX_SPIM_PIN_NOT_USED)
+ {
+#if NRFX_CHECK(NRFX_SPIM_EXTENDED_ENABLED)
+ if (!p_cb->use_hw_ss)
+#endif
+ {
+ if (p_cb->ss_active_high)
+ {
+ nrf_gpio_pin_clear(p_cb->ss_pin);
+ }
+ else
+ {
+ nrf_gpio_pin_set(p_cb->ss_pin);
+ }
+ }
+ }
+
+ // By clearing this flag before calling the handler we allow subsequent
+ // transfers to be started directly from the handler function.
+ p_cb->transfer_in_progress = false;
+
+ p_cb->evt.type = NRFX_SPIM_EVENT_DONE;
+ p_cb->handler(&p_cb->evt, p_cb->p_context);
+}
+
+__STATIC_INLINE void spim_int_enable(NRF_SPIM_Type * p_spim, bool enable)
+{
+ if (!enable)
+ {
+ nrf_spim_int_disable(p_spim, NRF_SPIM_INT_END_MASK);
+ }
+ else
+ {
+ nrf_spim_int_enable(p_spim, NRF_SPIM_INT_END_MASK);
+ }
+}
+
+__STATIC_INLINE void spim_list_enable_handle(NRF_SPIM_Type * p_spim, uint32_t flags)
+{
+ if (NRFX_SPIM_FLAG_TX_POSTINC & flags)
+ {
+ nrf_spim_tx_list_enable(p_spim);
+ }
+ else
+ {
+ nrf_spim_tx_list_disable(p_spim);
+ }
+
+ if (NRFX_SPIM_FLAG_RX_POSTINC & flags)
+ {
+ nrf_spim_rx_list_enable(p_spim);
+ }
+ else
+ {
+ nrf_spim_rx_list_disable(p_spim);
+ }
+}
+
+static nrfx_err_t spim_xfer(NRF_SPIM_Type * p_spim,
+ spim_control_block_t * p_cb,
+ nrfx_spim_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags)
+{
+ nrfx_err_t err_code;
+ // EasyDMA requires that transfer buffers are placed in Data RAM region;
+ // signal error if they are not.
+ if ((p_xfer_desc->p_tx_buffer != NULL && !nrfx_is_in_ram(p_xfer_desc->p_tx_buffer)) ||
+ (p_xfer_desc->p_rx_buffer != NULL && !nrfx_is_in_ram(p_xfer_desc->p_rx_buffer)))
+ {
+ p_cb->transfer_in_progress = false;
+ err_code = NRFX_ERROR_INVALID_ADDR;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+#if NRFX_CHECK(NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED)
+ p_cb->tx_length = 0;
+ p_cb->rx_length = 0;
+#endif
+
+ nrf_spim_tx_buffer_set(p_spim, p_xfer_desc->p_tx_buffer, p_xfer_desc->tx_length);
+ nrf_spim_rx_buffer_set(p_spim, p_xfer_desc->p_rx_buffer, p_xfer_desc->rx_length);
+
+#if NRFX_CHECK(NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED)
+ if (p_spim == NRF_SPIM3)
+ {
+ anomaly_198_enable(p_xfer_desc->p_tx_buffer, p_xfer_desc->tx_length);
+ }
+#endif
+
+ nrf_spim_event_clear(p_spim, NRF_SPIM_EVENT_END);
+
+ spim_list_enable_handle(p_spim, flags);
+
+ if (!(flags & NRFX_SPIM_FLAG_HOLD_XFER))
+ {
+ nrf_spim_task_trigger(p_spim, NRF_SPIM_TASK_START);
+ }
+#if NRFX_CHECK(NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED)
+ if (flags & NRFX_SPIM_FLAG_HOLD_XFER)
+ {
+ nrf_spim_event_clear(p_spim, NRF_SPIM_EVENT_STARTED);
+ p_cb->tx_length = p_xfer_desc->tx_length;
+ p_cb->rx_length = p_xfer_desc->rx_length;
+ nrf_spim_tx_buffer_set(p_spim, p_xfer_desc->p_tx_buffer, 0);
+ nrf_spim_rx_buffer_set(p_spim, p_xfer_desc->p_rx_buffer, 0);
+ nrf_spim_int_enable(p_spim, NRF_SPIM_INT_STARTED_MASK);
+ }
+#endif
+
+ if (!p_cb->handler)
+ {
+ while (!nrf_spim_event_check(p_spim, NRF_SPIM_EVENT_END)){}
+
+#if NRFX_CHECK(NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED)
+ if (p_spim == NRF_SPIM3)
+ {
+ anomaly_198_disable();
+ }
+#endif
+ if (p_cb->ss_pin != NRFX_SPIM_PIN_NOT_USED)
+ {
+#if NRFX_CHECK(NRFX_SPIM_EXTENDED_ENABLED)
+ if (!p_cb->use_hw_ss)
+#endif
+ {
+ if (p_cb->ss_active_high)
+ {
+ nrf_gpio_pin_clear(p_cb->ss_pin);
+ }
+ else
+ {
+ nrf_gpio_pin_set(p_cb->ss_pin);
+ }
+ }
+ }
+ }
+ else
+ {
+ spim_int_enable(p_spim, !(flags & NRFX_SPIM_FLAG_NO_XFER_EVT_HANDLER));
+ }
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+nrfx_err_t nrfx_spim_xfer(nrfx_spim_t const * const p_instance,
+ nrfx_spim_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags)
+{
+ spim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(p_xfer_desc->p_tx_buffer != NULL || p_xfer_desc->tx_length == 0);
+ NRFX_ASSERT(p_xfer_desc->p_rx_buffer != NULL || p_xfer_desc->rx_length == 0);
+ NRFX_ASSERT(SPIM_LENGTH_VALIDATE(p_instance->drv_inst_idx,
+ p_xfer_desc->rx_length,
+ p_xfer_desc->tx_length));
+
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (p_cb->transfer_in_progress)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ else
+ {
+ if (p_cb->handler && !(flags & (NRFX_SPIM_FLAG_REPEATED_XFER |
+ NRFX_SPIM_FLAG_NO_XFER_EVT_HANDLER)))
+ {
+ p_cb->transfer_in_progress = true;
+ }
+ }
+
+ p_cb->evt.xfer_desc = *p_xfer_desc;
+
+ if (p_cb->ss_pin != NRFX_SPIM_PIN_NOT_USED)
+ {
+#if NRFX_CHECK(NRFX_SPIM_EXTENDED_ENABLED)
+ if (!p_cb->use_hw_ss)
+#endif
+ {
+ if (p_cb->ss_active_high)
+ {
+ nrf_gpio_pin_set(p_cb->ss_pin);
+ }
+ else
+ {
+ nrf_gpio_pin_clear(p_cb->ss_pin);
+ }
+ }
+ }
+
+ return spim_xfer(p_instance->p_reg, p_cb, p_xfer_desc, flags);
+}
+
+void nrfx_spim_abort(nrfx_spim_t const * p_instance)
+{
+ spim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ nrf_spim_task_trigger(p_instance->p_reg, NRF_SPIM_TASK_STOP);
+ while (!nrf_spim_event_check(p_instance->p_reg, NRF_SPIM_EVENT_STOPPED))
+ {}
+ p_cb->transfer_in_progress = false;
+}
+
+uint32_t nrfx_spim_start_task_get(nrfx_spim_t const * p_instance)
+{
+ NRF_SPIM_Type * p_spim = (NRF_SPIM_Type *)p_instance->p_reg;
+ return nrf_spim_task_address_get(p_spim, NRF_SPIM_TASK_START);
+}
+
+uint32_t nrfx_spim_end_event_get(nrfx_spim_t const * p_instance)
+{
+ NRF_SPIM_Type * p_spim = (NRF_SPIM_Type *)p_instance->p_reg;
+ return nrf_spim_event_address_get(p_spim, NRF_SPIM_EVENT_END);
+}
+
+static void irq_handler(NRF_SPIM_Type * p_spim, spim_control_block_t * p_cb)
+{
+
+#if NRFX_CHECK(NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED)
+ if ((nrf_spim_int_enable_check(p_spim, NRF_SPIM_INT_STARTED_MASK)) &&
+ (nrf_spim_event_check(p_spim, NRF_SPIM_EVENT_STARTED)) )
+ {
+ /* Handle first, zero-length, auxiliary transmission. */
+ nrf_spim_event_clear(p_spim, NRF_SPIM_EVENT_STARTED);
+ nrf_spim_event_clear(p_spim, NRF_SPIM_EVENT_END);
+
+ NRFX_ASSERT(p_spim->TXD.MAXCNT == 0);
+ p_spim->TXD.MAXCNT = p_cb->tx_length;
+
+ NRFX_ASSERT(p_spim->RXD.MAXCNT == 0);
+ p_spim->RXD.MAXCNT = p_cb->rx_length;
+
+ /* Disable STARTED interrupt, used only in auxiliary transmission. */
+ nrf_spim_int_disable(p_spim, NRF_SPIM_INT_STARTED_MASK);
+
+ /* Start the actual, glitch-free transmission. */
+ nrf_spim_task_trigger(p_spim, NRF_SPIM_TASK_START);
+ return;
+ }
+#endif
+
+ if (nrf_spim_event_check(p_spim, NRF_SPIM_EVENT_END))
+ {
+#if NRFX_CHECK(NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED)
+ if (p_spim == NRF_SPIM3)
+ {
+ anomaly_198_disable();
+ }
+#endif
+ nrf_spim_event_clear(p_spim, NRF_SPIM_EVENT_END);
+ NRFX_ASSERT(p_cb->handler);
+ NRFX_LOG_DEBUG("Event: NRF_SPIM_EVENT_END.");
+ finish_transfer(p_cb);
+ }
+}
+
+#if NRFX_CHECK(NRFX_SPIM0_ENABLED)
+void nrfx_spim_0_irq_handler(void)
+{
+ irq_handler(NRF_SPIM0, &m_cb[NRFX_SPIM0_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_SPIM1_ENABLED)
+void nrfx_spim_1_irq_handler(void)
+{
+ irq_handler(NRF_SPIM1, &m_cb[NRFX_SPIM1_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_SPIM2_ENABLED)
+void nrfx_spim_2_irq_handler(void)
+{
+ irq_handler(NRF_SPIM2, &m_cb[NRFX_SPIM2_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_SPIM3_ENABLED)
+void nrfx_spim_3_irq_handler(void)
+{
+ irq_handler(NRF_SPIM3, &m_cb[NRFX_SPIM3_INST_IDX]);
+}
+#endif
+
+#endif // NRFX_CHECK(NRFX_SPIM_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_spis.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_spis.c
new file mode 100644
index 0000000..53075f0
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_spis.c
@@ -0,0 +1,494 @@
+/**
+ * Copyright (c) 2013 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_SPIS_ENABLED)
+
+#if !(NRFX_CHECK(NRFX_SPIS0_ENABLED) || NRFX_CHECK(NRFX_SPIS1_ENABLED) || \
+ NRFX_CHECK(NRFX_SPIS2_ENABLED))
+#error "No enabled SPIS instances. Check <nrfx_config.h>."
+#endif
+
+#include <nrfx_spis.h>
+#include "prs/nrfx_prs.h"
+
+#define NRFX_LOG_MODULE SPIS
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRF_SPIS_EVENT_ACQUIRED ? "NRF_SPIS_EVENT_ACQUIRED" : \
+ (event == NRF_SPIS_EVENT_END ? "NRF_SPIS_EVENT_END" : \
+ "UNKNOWN ERROR"))
+
+#define SPISX_LENGTH_VALIDATE(peripheral, drv_inst_idx, rx_len, tx_len) \
+ (((drv_inst_idx) == NRFX_CONCAT_3(NRFX_, peripheral, _INST_IDX)) && \
+ NRFX_EASYDMA_LENGTH_VALIDATE(peripheral, rx_len, tx_len))
+
+#if NRFX_CHECK(NRFX_SPIS0_ENABLED)
+#define SPIS0_LENGTH_VALIDATE(...) SPISX_LENGTH_VALIDATE(SPIS0, __VA_ARGS__)
+#else
+#define SPIS0_LENGTH_VALIDATE(...) 0
+#endif
+
+#if NRFX_CHECK(NRFX_SPIS1_ENABLED)
+#define SPIS1_LENGTH_VALIDATE(...) SPISX_LENGTH_VALIDATE(SPIS1, __VA_ARGS__)
+#else
+#define SPIS1_LENGTH_VALIDATE(...) 0
+#endif
+
+#if NRFX_CHECK(NRFX_SPIS2_ENABLED)
+#define SPIS2_LENGTH_VALIDATE(...) SPISX_LENGTH_VALIDATE(SPIS2, __VA_ARGS__)
+#else
+#define SPIS2_LENGTH_VALIDATE(...) 0
+#endif
+
+#define SPIS_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len) \
+ (SPIS0_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len) || \
+ SPIS1_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len) || \
+ SPIS2_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len))
+
+
+#if NRFX_CHECK(NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED)
+#include <nrfx_gpiote.h>
+#define USE_DMA_ISSUE_WORKAROUND
+// This handler is called by the GPIOTE driver when a falling edge is detected
+// on the CSN line. There is no need to do anything here. The handling of the
+// interrupt itself provides a protection for DMA transfers.
+static void csn_event_handler(nrfx_gpiote_pin_t pin,
+ nrf_gpiote_polarity_t action)
+{
+}
+#endif
+
+
+/**@brief States of the SPI transaction state machine. */
+typedef enum
+{
+ SPIS_STATE_INIT, /**< Initialization state. In this state the module waits for a call to @ref spi_slave_buffers_set. */
+ SPIS_BUFFER_RESOURCE_REQUESTED, /**< State where the configuration of the memory buffers, which are to be used in SPI transaction, has started. */
+ SPIS_BUFFER_RESOURCE_CONFIGURED, /**< State where the configuration of the memory buffers, which are to be used in SPI transaction, has completed. */
+ SPIS_XFER_COMPLETED /**< State where SPI transaction has been completed. */
+} nrfx_spis_state_t;
+
+/**@brief SPIS control block - driver instance local data. */
+typedef struct
+{
+ volatile uint32_t tx_buffer_size; //!< SPI slave TX buffer size in bytes.
+ volatile uint32_t rx_buffer_size; //!< SPI slave RX buffer size in bytes.
+ nrfx_spis_event_handler_t handler; //!< SPI event handler.
+ volatile const uint8_t * tx_buffer; //!< SPI slave TX buffer.
+ volatile uint8_t * rx_buffer; //!< SPI slave RX buffer.
+ nrfx_drv_state_t state; //!< driver initialization state.
+ volatile nrfx_spis_state_t spi_state; //!< SPI slave state.
+ void * p_context; //!< Context set on initialization.
+} spis_cb_t;
+
+static spis_cb_t m_cb[NRFX_SPIS_ENABLED_COUNT];
+
+nrfx_err_t nrfx_spis_init(nrfx_spis_t const * const p_instance,
+ nrfx_spis_config_t const * p_config,
+ nrfx_spis_event_handler_t event_handler,
+ void * p_context)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(event_handler);
+ spis_cb_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ nrfx_err_t err_code;
+
+ NRF_SPIS_Type * p_spis = p_instance->p_reg;
+
+ if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ if ((uint32_t)p_config->mode > (uint32_t)NRF_SPIS_MODE_3)
+ {
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ static nrfx_irq_handler_t const irq_handlers[NRFX_SPIS_ENABLED_COUNT] = {
+ #if NRFX_CHECK(NRFX_SPIS0_ENABLED)
+ nrfx_spis_0_irq_handler,
+ #endif
+ #if NRFX_CHECK(NRFX_SPIS1_ENABLED)
+ nrfx_spis_1_irq_handler,
+ #endif
+ #if NRFX_CHECK(NRFX_SPIS2_ENABLED)
+ nrfx_spis_2_irq_handler,
+ #endif
+ };
+ if (nrfx_prs_acquire(p_spis,
+ irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+#endif // NRFX_CHECK(NRFX_PRS_ENABLED)
+
+ // Configure the SPI pins for input.
+ uint32_t mosi_pin;
+ uint32_t miso_pin;
+
+ if (p_config->miso_pin != NRFX_SPIS_PIN_NOT_USED)
+ {
+ nrf_gpio_cfg(p_config->miso_pin,
+ NRF_GPIO_PIN_DIR_INPUT,
+ NRF_GPIO_PIN_INPUT_CONNECT,
+ NRF_GPIO_PIN_NOPULL,
+ p_config->miso_drive,
+ NRF_GPIO_PIN_NOSENSE);
+ miso_pin = p_config->miso_pin;
+ }
+ else
+ {
+ miso_pin = NRF_SPIS_PIN_NOT_CONNECTED;
+ }
+
+ if (p_config->mosi_pin != NRFX_SPIS_PIN_NOT_USED)
+ {
+ nrf_gpio_cfg(p_config->mosi_pin,
+ NRF_GPIO_PIN_DIR_INPUT,
+ NRF_GPIO_PIN_INPUT_CONNECT,
+ NRF_GPIO_PIN_NOPULL,
+ NRF_GPIO_PIN_S0S1,
+ NRF_GPIO_PIN_NOSENSE);
+ mosi_pin = p_config->mosi_pin;
+ }
+ else
+ {
+ mosi_pin = NRF_SPIS_PIN_NOT_CONNECTED;
+ }
+
+ nrf_gpio_cfg(p_config->csn_pin,
+ NRF_GPIO_PIN_DIR_INPUT,
+ NRF_GPIO_PIN_INPUT_CONNECT,
+ p_config->csn_pullup,
+ NRF_GPIO_PIN_S0S1,
+ NRF_GPIO_PIN_NOSENSE);
+
+ nrf_gpio_cfg(p_config->sck_pin,
+ NRF_GPIO_PIN_DIR_INPUT,
+ NRF_GPIO_PIN_INPUT_CONNECT,
+ NRF_GPIO_PIN_NOPULL,
+ NRF_GPIO_PIN_S0S1,
+ NRF_GPIO_PIN_NOSENSE);
+
+ nrf_spis_pins_set(p_spis, p_config->sck_pin, mosi_pin, miso_pin, p_config->csn_pin);
+
+ nrf_spis_rx_buffer_set(p_spis, NULL, 0);
+ nrf_spis_tx_buffer_set(p_spis, NULL, 0);
+
+ // Configure SPI mode.
+ nrf_spis_configure(p_spis, p_config->mode, p_config->bit_order);
+
+ // Configure DEF and ORC characters.
+ nrf_spis_def_set(p_spis, p_config->def);
+ nrf_spis_orc_set(p_spis, p_config->orc);
+
+ // Clear possible pending events.
+ nrf_spis_event_clear(p_spis, NRF_SPIS_EVENT_END);
+ nrf_spis_event_clear(p_spis, NRF_SPIS_EVENT_ACQUIRED);
+
+ // Enable END_ACQUIRE shortcut.
+ nrf_spis_shorts_enable(p_spis, NRF_SPIS_SHORT_END_ACQUIRE);
+
+ p_cb->spi_state = SPIS_STATE_INIT;
+ p_cb->handler = event_handler;
+ p_cb->p_context = p_context;
+
+#if defined(USE_DMA_ISSUE_WORKAROUND)
+ // Configure a GPIOTE channel to generate interrupts on each falling edge
+ // on the CSN line. Handling of these interrupts will make the CPU active,
+ // and thus will protect the DMA transfers started by SPIS right after it
+ // is selected for communication.
+ // [the GPIOTE driver may be already initialized at this point (by this
+ // driver when another SPIS instance is used, or by an application code),
+ // so just ignore the returned value]
+ (void)nrfx_gpiote_init();
+ static nrfx_gpiote_in_config_t const csn_gpiote_config =
+ NRFX_GPIOTE_CONFIG_IN_SENSE_HITOLO(true);
+ nrfx_err_t gpiote_err_code = nrfx_gpiote_in_init(p_config->csn_pin,
+ &csn_gpiote_config, csn_event_handler);
+ if (gpiote_err_code != NRFX_SUCCESS)
+ {
+ err_code = NRFX_ERROR_INTERNAL;
+ NRFX_LOG_INFO("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ nrfx_gpiote_in_event_enable(p_config->csn_pin, true);
+#endif
+
+ // Enable IRQ.
+ nrf_spis_int_enable(p_spis, NRF_SPIS_INT_ACQUIRED_MASK |
+ NRF_SPIS_INT_END_MASK);
+ NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(p_instance->p_reg),
+ p_config->irq_priority);
+ NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_instance->p_reg));
+
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+
+ // Enable SPI slave device.
+ nrf_spis_enable(p_spis);
+
+ NRFX_LOG_INFO("Initialized.");
+ return NRFX_SUCCESS;
+}
+
+
+void nrfx_spis_uninit(nrfx_spis_t const * const p_instance)
+{
+ spis_cb_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ NRF_SPIS_Type * p_spis = p_instance->p_reg;
+
+ #define DISABLE_ALL 0xFFFFFFFF
+ nrf_spis_disable(p_spis);
+ NRFX_IRQ_DISABLE(nrfx_get_irq_number(p_instance->p_reg));
+ nrf_spis_int_disable(p_spis, DISABLE_ALL);
+ #undef DISABLE_ALL
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ nrfx_prs_release(p_spis);
+#endif
+
+ p_cb->state = NRFX_DRV_STATE_UNINITIALIZED;
+ NRFX_LOG_INFO("Uninitialized.");
+}
+
+
+/**@brief Function for executing the state entry action. */
+static void spis_state_entry_action_execute(NRF_SPIS_Type * p_spis,
+ spis_cb_t * p_cb)
+{
+ nrfx_spis_evt_t event;
+
+ switch (p_cb->spi_state)
+ {
+ case SPIS_BUFFER_RESOURCE_REQUESTED:
+ nrf_spis_task_trigger(p_spis, NRF_SPIS_TASK_ACQUIRE);
+ break;
+
+ case SPIS_BUFFER_RESOURCE_CONFIGURED:
+ event.evt_type = NRFX_SPIS_BUFFERS_SET_DONE;
+ event.rx_amount = 0;
+ event.tx_amount = 0;
+
+ NRFX_ASSERT(p_cb->handler != NULL);
+ p_cb->handler(&event, p_cb->p_context);
+ break;
+
+ case SPIS_XFER_COMPLETED:
+ event.evt_type = NRFX_SPIS_XFER_DONE;
+ event.rx_amount = nrf_spis_rx_amount_get(p_spis);
+ event.tx_amount = nrf_spis_tx_amount_get(p_spis);
+ NRFX_LOG_INFO("Transfer rx_len:%d.", event.rx_amount);
+ NRFX_LOG_DEBUG("Rx data:");
+ NRFX_LOG_HEXDUMP_DEBUG((uint8_t const *)p_cb->rx_buffer,
+ event.rx_amount * sizeof(p_cb->rx_buffer[0]));
+ NRFX_ASSERT(p_cb->handler != NULL);
+ p_cb->handler(&event, p_cb->p_context);
+ break;
+
+ default:
+ // No implementation required.
+ break;
+ }
+}
+
+/**@brief Function for changing the state of the SPI state machine.
+ *
+ * @param[in] p_spis SPIS instance register.
+ * @param[in] p_cb SPIS instance control block.
+ * @param[in] new_state State where the state machine transits to.
+ */
+static void spis_state_change(NRF_SPIS_Type * p_spis,
+ spis_cb_t * p_cb,
+ nrfx_spis_state_t new_state)
+{
+ p_cb->spi_state = new_state;
+ spis_state_entry_action_execute(p_spis, p_cb);
+}
+
+nrfx_err_t nrfx_spis_buffers_set(nrfx_spis_t const * const p_instance,
+ uint8_t const * p_tx_buffer,
+ size_t tx_buffer_length,
+ uint8_t * p_rx_buffer,
+ size_t rx_buffer_length)
+{
+ NRFX_ASSERT(p_tx_buffer != NULL || tx_buffer_length == 0);
+ NRFX_ASSERT(p_rx_buffer != NULL || rx_buffer_length == 0);
+
+ spis_cb_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ nrfx_err_t err_code;
+
+ if (!SPIS_LENGTH_VALIDATE(p_instance->drv_inst_idx,
+ rx_buffer_length,
+ tx_buffer_length))
+ {
+ return NRFX_ERROR_INVALID_LENGTH;
+ }
+
+ // EasyDMA requires that transfer buffers are placed in Data RAM region;
+ // signal error if they are not.
+ if ((p_tx_buffer != NULL && !nrfx_is_in_ram(p_tx_buffer)) ||
+ (p_rx_buffer != NULL && !nrfx_is_in_ram(p_rx_buffer)))
+ {
+ err_code = NRFX_ERROR_INVALID_ADDR;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ switch (p_cb->spi_state)
+ {
+ case SPIS_STATE_INIT:
+ case SPIS_XFER_COMPLETED:
+ case SPIS_BUFFER_RESOURCE_CONFIGURED:
+ p_cb->tx_buffer = p_tx_buffer;
+ p_cb->rx_buffer = p_rx_buffer;
+ p_cb->tx_buffer_size = tx_buffer_length;
+ p_cb->rx_buffer_size = rx_buffer_length;
+ err_code = NRFX_SUCCESS;
+
+ spis_state_change(p_instance->p_reg, p_cb, SPIS_BUFFER_RESOURCE_REQUESTED);
+ break;
+
+ case SPIS_BUFFER_RESOURCE_REQUESTED:
+ err_code = NRFX_ERROR_INVALID_STATE;
+ break;
+
+ default:
+ // @note: execution of this code path would imply internal error in the design.
+ err_code = NRFX_ERROR_INTERNAL;
+ break;
+ }
+
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+static void spis_irq_handler(NRF_SPIS_Type * p_spis, spis_cb_t * p_cb)
+{
+ // @note: as multiple events can be pending for processing, the correct event processing order
+ // is as follows:
+ // - SPI semaphore acquired event.
+ // - SPI transaction complete event.
+
+ // Check for SPI semaphore acquired event.
+ if (nrf_spis_event_check(p_spis, NRF_SPIS_EVENT_ACQUIRED))
+ {
+ nrf_spis_event_clear(p_spis, NRF_SPIS_EVENT_ACQUIRED);
+ NRFX_LOG_DEBUG("SPIS: Event: %s.", EVT_TO_STR(NRF_SPIS_EVENT_ACQUIRED));
+
+ switch (p_cb->spi_state)
+ {
+ case SPIS_BUFFER_RESOURCE_REQUESTED:
+ nrf_spis_tx_buffer_set(p_spis, (uint8_t *)p_cb->tx_buffer, p_cb->tx_buffer_size);
+ nrf_spis_rx_buffer_set(p_spis, (uint8_t *)p_cb->rx_buffer, p_cb->rx_buffer_size);
+
+ nrf_spis_task_trigger(p_spis, NRF_SPIS_TASK_RELEASE);
+
+ spis_state_change(p_spis, p_cb, SPIS_BUFFER_RESOURCE_CONFIGURED);
+ break;
+
+ default:
+ // No implementation required.
+ break;
+ }
+ }
+
+ // Check for SPI transaction complete event.
+ if (nrf_spis_event_check(p_spis, NRF_SPIS_EVENT_END))
+ {
+ nrf_spis_event_clear(p_spis, NRF_SPIS_EVENT_END);
+ NRFX_LOG_DEBUG("SPIS: Event: %s.", EVT_TO_STR(NRF_SPIS_EVENT_END));
+
+ switch (p_cb->spi_state)
+ {
+ case SPIS_BUFFER_RESOURCE_CONFIGURED:
+ spis_state_change(p_spis, p_cb, SPIS_XFER_COMPLETED);
+ break;
+
+ default:
+ // No implementation required.
+ break;
+ }
+ }
+}
+
+#if NRFX_CHECK(NRFX_SPIS0_ENABLED)
+void nrfx_spis_0_irq_handler(void)
+{
+ spis_irq_handler(NRF_SPIS0, &m_cb[NRFX_SPIS0_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_SPIS1_ENABLED)
+void nrfx_spis_1_irq_handler(void)
+{
+ spis_irq_handler(NRF_SPIS1, &m_cb[NRFX_SPIS1_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_SPIS2_ENABLED)
+void nrfx_spis_2_irq_handler(void)
+{
+ spis_irq_handler(NRF_SPIS2, &m_cb[NRFX_SPIS2_INST_IDX]);
+}
+#endif
+
+#endif // NRFX_CHECK(NRFX_SPIS_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_swi.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_swi.c
new file mode 100644
index 0000000..4a6dcc4
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_swi.c
@@ -0,0 +1,412 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_SWI_ENABLED)
+
+#include <nrfx_swi.h>
+
+#define NRFX_LOG_MODULE SWI
+#include <nrfx_log.h>
+
+
+// NRFX_SWI_RESERVED_MASK - SWIs reserved for use by external modules.
+#if NRFX_CHECK(NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED)
+#define NRFX_SWI_RESERVED_MASK ((NRFX_SWI_USED) | \
+ (1u << NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE))
+#else
+#define NRFX_SWI_RESERVED_MASK (NRFX_SWI_USED)
+#endif
+
+// NRFX_SWI_DISABLED_MASK - SWIs excluded from use in <nrfx_config.h>.
+#if NRFX_CHECK(NRFX_SWI0_DISABLED)
+#define NRFX_SWI0_DISABLED_MASK (1u << 0)
+#else
+#define NRFX_SWI0_DISABLED_MASK 0u
+#endif
+#if NRFX_CHECK(NRFX_SWI1_DISABLED)
+#define NRFX_SWI1_DISABLED_MASK (1u << 1)
+#else
+#define NRFX_SWI1_DISABLED_MASK 0u
+#endif
+#if NRFX_CHECK(NRFX_SWI2_DISABLED)
+#define NRFX_SWI2_DISABLED_MASK (1u << 2)
+#else
+#define NRFX_SWI2_DISABLED_MASK 0u
+#endif
+#if NRFX_CHECK(NRFX_SWI3_DISABLED)
+#define NRFX_SWI3_DISABLED_MASK (1u << 3)
+#else
+#define NRFX_SWI3_DISABLED_MASK 0u
+#endif
+#if NRFX_CHECK(NRFX_SWI4_DISABLED)
+#define NRFX_SWI4_DISABLED_MASK (1u << 4)
+#else
+#define NRFX_SWI4_DISABLED_MASK 0u
+#endif
+#if NRFX_CHECK(NRFX_SWI5_DISABLED)
+#define NRFX_SWI5_DISABLED_MASK (1u << 5)
+#else
+#define NRFX_SWI5_DISABLED_MASK 0u
+#endif
+#define NRFX_SWI_DISABLED_MASK (NRFX_SWI0_DISABLED_MASK | \
+ NRFX_SWI1_DISABLED_MASK | \
+ NRFX_SWI2_DISABLED_MASK | \
+ NRFX_SWI3_DISABLED_MASK | \
+ NRFX_SWI4_DISABLED_MASK | \
+ NRFX_SWI5_DISABLED_MASK)
+
+#if (NRFX_SWI_RESERVED_MASK & NRFX_SWI_DISABLED_MASK)
+#error "A reserved SWI configured to be disabled. Check <nrfx_config.h> and NRFX_SWI_USED."
+#endif
+
+// NRFX_SWI_AVAILABLE_MASK - SWIs available for this module, i.e. present
+// in the hardware and neither reserved by external modules nor disabled
+// in <nrfx_config.h>.
+#define NRFX_SWI_PRESENT_MASK ((1u << (SWI_COUNT)) - 1u)
+#define NRFX_SWI_AVAILABLE_MASK (NRFX_SWI_PRESENT_MASK & \
+ ~(NRFX_SWI_RESERVED_MASK | \
+ NRFX_SWI_DISABLED_MASK))
+
+#if (NRFX_SWI_AVAILABLE_MASK == 0)
+#error "No available SWI instances. Check <nrfx_config.h> and NRFX_SWI_USED."
+#endif
+
+#define NRFX_SWI_IS_AVAILABLE(idx) ((NRFX_SWI_AVAILABLE_MASK >> (idx)) & 1u)
+
+#define NRFX_SWI_FIRST (NRFX_SWI_IS_AVAILABLE(0) ? 0u : \
+ (NRFX_SWI_IS_AVAILABLE(1) ? 1u : \
+ (NRFX_SWI_IS_AVAILABLE(2) ? 2u : \
+ (NRFX_SWI_IS_AVAILABLE(3) ? 3u : \
+ (NRFX_SWI_IS_AVAILABLE(4) ? 4u : \
+ 5u)))))
+#define NRFX_SWI_LAST (NRFX_SWI_IS_AVAILABLE(5) ? 5u : \
+ (NRFX_SWI_IS_AVAILABLE(4) ? 4u : \
+ (NRFX_SWI_IS_AVAILABLE(3) ? 3u : \
+ (NRFX_SWI_IS_AVAILABLE(2) ? 2u : \
+ (NRFX_SWI_IS_AVAILABLE(1) ? 1u : \
+ 0u)))))
+
+// NRFX_SWI_EGU_COUNT - number of EGU instances to be used by this module
+// (note - if EGU is not present, EGU_COUNT is not defined).
+#if NRFX_CHECK(NRFX_EGU_ENABLED)
+#define NRFX_SWI_EGU_COUNT EGU_COUNT
+#else
+#define NRFX_SWI_EGU_COUNT 0
+#endif
+
+// These flags are needed only for SWIs that have no corresponding EGU unit
+// (in EGU such flags are available in hardware).
+#if (NRFX_SWI_EGU_COUNT < SWI_COUNT)
+static nrfx_swi_flags_t m_swi_flags[SWI_COUNT - NRFX_SWI_EGU_COUNT];
+#endif
+static nrfx_swi_handler_t m_swi_handlers[SWI_COUNT];
+static uint8_t m_swi_allocated_mask;
+
+
+static void swi_mark_allocated(nrfx_swi_t swi)
+{
+ m_swi_allocated_mask |= (1u << swi);
+}
+
+static void swi_mark_unallocated(nrfx_swi_t swi)
+{
+ m_swi_allocated_mask &= ~(1u << swi);
+}
+
+static bool swi_is_allocated(nrfx_swi_t swi)
+{
+ return (m_swi_allocated_mask & (1u << swi));
+}
+
+static bool swi_is_available(nrfx_swi_t swi)
+{
+ return NRFX_SWI_IS_AVAILABLE(swi);
+}
+
+static IRQn_Type swi_irq_number_get(nrfx_swi_t swi)
+{
+ return (IRQn_Type)((uint32_t)SWI0_IRQn + (uint32_t)swi);
+}
+
+static void swi_handler_setup(nrfx_swi_t swi,
+ nrfx_swi_handler_t event_handler,
+ uint32_t irq_priority)
+{
+ m_swi_handlers[swi] = event_handler;
+
+#if NRFX_SWI_EGU_COUNT
+ if (swi < NRFX_SWI_EGU_COUNT)
+ {
+ NRF_EGU_Type * p_egu = nrfx_swi_egu_instance_get(swi);
+ NRFX_ASSERT(p_egu != NULL);
+ nrf_egu_int_enable(p_egu, NRF_EGU_INT_ALL);
+
+ if (event_handler == NULL)
+ {
+ return;
+ }
+ }
+#endif
+
+ NRFX_ASSERT(event_handler != NULL);
+
+ NRFX_IRQ_PRIORITY_SET(swi_irq_number_get(swi), irq_priority);
+ NRFX_IRQ_ENABLE(swi_irq_number_get(swi));
+}
+
+nrfx_err_t nrfx_swi_alloc(nrfx_swi_t * p_swi,
+ nrfx_swi_handler_t event_handler,
+ uint32_t irq_priority)
+{
+ NRFX_ASSERT(p_swi != NULL);
+
+ nrfx_err_t err_code;
+
+ for (nrfx_swi_t swi = NRFX_SWI_FIRST; swi <= NRFX_SWI_LAST; ++swi)
+ {
+ if (swi_is_available(swi))
+ {
+ bool allocated = false;
+ NRFX_CRITICAL_SECTION_ENTER();
+ if (!swi_is_allocated(swi))
+ {
+ swi_mark_allocated(swi);
+ allocated = true;
+ }
+ NRFX_CRITICAL_SECTION_EXIT();
+
+ if (allocated)
+ {
+ swi_handler_setup(swi, event_handler, irq_priority);
+
+ *p_swi = swi;
+ NRFX_LOG_INFO("SWI channel allocated: %d.", (*p_swi));
+ return NRFX_SUCCESS;
+ }
+ }
+ }
+
+ err_code = NRFX_ERROR_NO_MEM;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+bool nrfx_swi_is_allocated(nrfx_swi_t swi)
+{
+ return swi_is_allocated(swi);
+}
+
+void nrfx_swi_free(nrfx_swi_t * p_swi)
+{
+ NRFX_ASSERT(p_swi != NULL);
+ nrfx_swi_t swi = *p_swi;
+
+ NRFX_ASSERT(swi_is_allocated(swi));
+ NRFX_IRQ_DISABLE(swi_irq_number_get(swi));
+ m_swi_handlers[swi] = NULL;
+
+ swi_mark_unallocated(swi);
+ *p_swi = NRFX_SWI_UNALLOCATED;
+}
+
+void nrfx_swi_all_free(void)
+{
+ for (nrfx_swi_t swi = NRFX_SWI_FIRST; swi <= NRFX_SWI_LAST; ++swi)
+ {
+ if (swi_is_allocated(swi))
+ {
+ NRFX_IRQ_DISABLE(swi_irq_number_get(swi));
+ m_swi_handlers[swi] = NULL;
+#if NRFX_SWI_EGU_COUNT
+ if (swi < NRFX_SWI_EGU_COUNT)
+ {
+ nrf_egu_int_disable(nrfx_swi_egu_instance_get(swi),
+ NRF_EGU_INT_ALL);
+ }
+#endif
+ }
+ }
+
+ m_swi_allocated_mask = 0;
+}
+
+void nrfx_swi_trigger(nrfx_swi_t swi, uint8_t flag_number)
+{
+ NRFX_ASSERT(swi_is_allocated(swi));
+
+#if NRFX_SWI_EGU_COUNT
+
+ NRF_EGU_Type * p_egu = nrfx_swi_egu_instance_get(swi);
+#if (NRFX_SWI_EGU_COUNT < SWI_COUNT)
+ if (p_egu == NULL)
+ {
+ m_swi_flags[swi - NRFX_SWI_EGU_COUNT] |= (1 << flag_number);
+ NRFX_IRQ_PENDING_SET(swi_irq_number_get(swi));
+ }
+ else
+#endif // (NRFX_SWI_EGU_COUNT < SWI_COUNT)
+ {
+ nrf_egu_task_trigger(p_egu,
+ nrf_egu_task_trigger_get(p_egu, flag_number));
+ }
+
+#else // -> #if !NRFX_SWI_EGU_COUNT
+
+ m_swi_flags[swi - NRFX_SWI_EGU_COUNT] |= (1 << flag_number);
+ NRFX_IRQ_PENDING_SET(swi_irq_number_get(swi));
+
+#endif
+}
+
+#if NRFX_SWI_EGU_COUNT
+static void egu_irq_handler(nrfx_swi_t swi, uint8_t egu_channel_count)
+{
+#if (NRFX_SWI_FIRST > 0)
+ NRFX_ASSERT(swi >= NRFX_SWI_FIRST);
+#endif
+ NRFX_ASSERT(swi <= NRFX_SWI_LAST);
+ nrfx_swi_handler_t handler = m_swi_handlers[swi];
+ NRFX_ASSERT(handler != NULL);
+
+ NRF_EGU_Type * p_egu = nrfx_swi_egu_instance_get(swi);
+ NRFX_ASSERT(p_egu != NULL);
+
+ nrfx_swi_flags_t flags = 0;
+ for (uint8_t i = 0; i < egu_channel_count; ++i)
+ {
+ nrf_egu_event_t egu_event = nrf_egu_event_triggered_get(p_egu, i);
+ if (nrf_egu_event_check(p_egu, egu_event))
+ {
+ flags |= (1u << i);
+ nrf_egu_event_clear(p_egu, egu_event);
+ }
+ }
+
+ handler(swi, flags);
+}
+#endif // NRFX_SWI_EGU_COUNT
+
+#if (NRFX_SWI_EGU_COUNT < SWI_COUNT)
+static void swi_irq_handler(nrfx_swi_t swi)
+{
+#if (NRFX_SWI_FIRST > 0)
+ NRFX_ASSERT(swi >= NRFX_SWI_FIRST);
+#endif
+ NRFX_ASSERT(swi <= NRFX_SWI_LAST);
+ nrfx_swi_handler_t handler = m_swi_handlers[swi];
+ NRFX_ASSERT(handler != NULL);
+
+ nrfx_swi_flags_t flags = m_swi_flags[swi - NRFX_SWI_EGU_COUNT];
+ m_swi_flags[swi - NRFX_SWI_EGU_COUNT] &= ~flags;
+
+ handler(swi, flags);
+}
+#endif // (NRFX_SWI_EGU_COUNT < SWI_COUNT)
+
+
+#if NRFX_SWI_IS_AVAILABLE(0)
+void nrfx_swi_0_irq_handler(void)
+{
+#if (NRFX_SWI_EGU_COUNT > 0)
+ egu_irq_handler(0, EGU0_CH_NUM);
+#else
+ swi_irq_handler(0);
+#endif
+}
+#endif // NRFX_SWI_IS_AVAILABLE(0)
+
+#if NRFX_SWI_IS_AVAILABLE(1)
+void nrfx_swi_1_irq_handler(void)
+{
+#if (NRFX_SWI_EGU_COUNT > 1)
+ egu_irq_handler(1, EGU1_CH_NUM);
+#else
+ swi_irq_handler(1);
+#endif
+}
+#endif // NRFX_SWI_IS_AVAILABLE(1)
+
+#if NRFX_SWI_IS_AVAILABLE(2)
+void nrfx_swi_2_irq_handler(void)
+{
+#if (NRFX_SWI_EGU_COUNT > 2)
+ egu_irq_handler(2, EGU2_CH_NUM);
+#else
+ swi_irq_handler(2);
+#endif
+}
+#endif // NRFX_SWI_IS_AVAILABLE(2)
+
+#if NRFX_SWI_IS_AVAILABLE(3)
+void nrfx_swi_3_irq_handler(void)
+{
+#if (NRFX_SWI_EGU_COUNT > 3)
+ egu_irq_handler(3, EGU3_CH_NUM);
+#else
+ swi_irq_handler(3);
+#endif
+}
+#endif // NRFX_SWI_IS_AVAILABLE(3)
+
+#if NRFX_SWI_IS_AVAILABLE(4)
+void nrfx_swi_4_irq_handler(void)
+{
+#if (NRFX_SWI_EGU_COUNT > 4)
+ egu_irq_handler(4, EGU4_CH_NUM);
+#else
+ swi_irq_handler(4);
+#endif
+}
+#endif // NRFX_SWI_IS_AVAILABLE(4)
+
+#if NRFX_SWI_IS_AVAILABLE(5)
+void nrfx_swi_5_irq_handler(void)
+{
+#if (NRFX_SWI_EGU_COUNT > 5)
+ egu_irq_handler(5, EGU5_CH_NUM);
+#else
+ swi_irq_handler(5);
+#endif
+}
+#endif // NRFX_SWI_IS_AVAILABLE(5)
+
+#endif // NRFX_CHECK(NRFX_SWI_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_systick.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_systick.c
new file mode 100644
index 0000000..ef38b0f
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_systick.c
@@ -0,0 +1,170 @@
+/**
+ * Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_SYSTICK_ENABLED)
+#include <nrfx_systick.h>
+
+/**
+ * @brief Maximum number of ticks to delay
+ *
+ * The maximum number of ticks should be much lower than
+ * Physical maximum count of the SysTick timer.
+ * It is dictated by the fact that it would be impossible to detect delay
+ * properly when the timer value warps around the starting point.
+ */
+#define NRFX_SYSTICK_TICKS_MAX (NRF_SYSTICK_VAL_MASK / 2UL)
+
+/**
+ * @brief Number of milliseconds in a second
+ */
+#define NRFX_SYSTICK_MS (1000UL)
+
+/**
+ * @brief Number of microseconds in a second
+ */
+#define NRFX_SYSTICK_US (1000UL * NRFX_SYSTICK_MS)
+
+/**
+ * @brief Number of milliseconds to wait in single loop
+ *
+ * Constant used by @ref nrd_drv_systick_delay_ms function
+ * to split waiting into loops and rest.
+ *
+ * It describes the number of milliseconds to wait in single loop.
+ *
+ * See @ref nrfx_systick_delay_ms source code for details.
+ */
+#define NRFX_SYSTICK_MS_STEP (64U)
+
+/**
+ * @brief Checks if the given time is in correct range
+ *
+ * Function tests given time is not to big for this library.
+ * Assertion is used for testing.
+ *
+ * @param us Time in microseconds to check
+ */
+#define NRFX_SYSTICK_ASSERT_TIMEOUT(us) \
+ NRFX_ASSERT(us <= (NRFX_SYSTICK_TICKS_MAX / ((SystemCoreClock) / NRFX_SYSTICK_US)));
+
+/**
+ * @brief Function that converts microseconds to ticks
+ *
+ * Function converts from microseconds to CPU ticks.
+ *
+ * @param us Number of microseconds
+ *
+ * @return Number of ticks
+ *
+ * @sa nrfx_systick_ms_tick
+ */
+static inline uint32_t nrfx_systick_us_tick(uint32_t us)
+{
+ return us * ((SystemCoreClock) / NRFX_SYSTICK_US);
+}
+
+/**
+ * @brief Function that converts milliseconds to ticks
+ *
+ * Function converts from milliseconds to CPU ticks.
+ *
+ * @param us Number of milliseconds
+ *
+ * @return Number of ticks
+ *
+ * @sa nrfx_systick_us_tick
+ */
+static inline uint32_t nrfx_systick_ms_tick(uint32_t ms)
+{
+ return ms * ((SystemCoreClock) / NRFX_SYSTICK_MS);
+}
+
+void nrfx_systick_init(void)
+{
+ nrf_systick_load_set(NRF_SYSTICK_VAL_MASK);
+ nrf_systick_csr_set(
+ NRF_SYSTICK_CSR_CLKSOURCE_CPU |
+ NRF_SYSTICK_CSR_TICKINT_DISABLE |
+ NRF_SYSTICK_CSR_ENABLE);
+}
+
+void nrfx_systick_get(nrfx_systick_state_t * p_state)
+{
+ p_state->time = nrf_systick_val_get();
+}
+
+bool nrfx_systick_test(nrfx_systick_state_t const * p_state, uint32_t us)
+{
+ NRFX_SYSTICK_ASSERT_TIMEOUT(us);
+
+ const uint32_t diff = NRF_SYSTICK_VAL_MASK & ((p_state->time) - nrf_systick_val_get());
+ return (diff >= nrfx_systick_us_tick(us));
+}
+
+void nrfx_systick_delay_ticks(uint32_t ticks)
+{
+ NRFX_ASSERT(ticks <= NRFX_SYSTICK_TICKS_MAX);
+
+ const uint32_t start = nrf_systick_val_get();
+ while ((NRF_SYSTICK_VAL_MASK & (start - nrf_systick_val_get())) < ticks)
+ {
+ /* Nothing to do */
+ }
+}
+
+void nrfx_systick_delay_us(uint32_t us)
+{
+ NRFX_SYSTICK_ASSERT_TIMEOUT(us);
+ nrfx_systick_delay_ticks(nrfx_systick_us_tick(us));
+}
+
+void nrfx_systick_delay_ms(uint32_t ms)
+{
+ uint32_t n = ms / NRFX_SYSTICK_MS_STEP;
+ uint32_t r = ms % NRFX_SYSTICK_MS_STEP;
+ while (0 != (n--))
+ {
+ nrfx_systick_delay_ticks(nrfx_systick_ms_tick(NRFX_SYSTICK_MS_STEP));
+ }
+ nrfx_systick_delay_ticks(nrfx_systick_ms_tick(r));
+}
+
+#endif // NRFX_CHECK(NRFX_SYSTICK_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_timer.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_timer.c
new file mode 100644
index 0000000..024958e
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_timer.c
@@ -0,0 +1,330 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_TIMER_ENABLED)
+
+#if !(NRFX_CHECK(NRFX_TIMER0_ENABLED) || NRFX_CHECK(NRFX_TIMER1_ENABLED) || \
+ NRFX_CHECK(NRFX_TIMER2_ENABLED) || NRFX_CHECK(NRFX_TIMER3_ENABLED) || \
+ NRFX_CHECK(NRFX_TIMER4_ENABLED))
+#error "No enabled TIMER instances. Check <nrfx_config.h>."
+#endif
+
+#include <nrfx_timer.h>
+
+#define NRFX_LOG_MODULE TIMER
+#include <nrfx_log.h>
+
+/**@brief Timer control block. */
+typedef struct
+{
+ nrfx_timer_event_handler_t handler;
+ void * context;
+ nrfx_drv_state_t state;
+} timer_control_block_t;
+
+static timer_control_block_t m_cb[NRFX_TIMER_ENABLED_COUNT];
+
+nrfx_err_t nrfx_timer_init(nrfx_timer_t const * const p_instance,
+ nrfx_timer_config_t const * p_config,
+ nrfx_timer_event_handler_t timer_event_handler)
+{
+ timer_control_block_t * p_cb = &m_cb[p_instance->instance_id];
+#ifdef SOFTDEVICE_PRESENT
+ NRFX_ASSERT(p_instance->p_reg != NRF_TIMER0);
+#endif
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(timer_event_handler);
+
+ nrfx_err_t err_code;
+
+ if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ /* Warning 685: Relational operator '<=' always evaluates to 'true'"
+ * Warning in NRF_TIMER_IS_BIT_WIDTH_VALID macro. Macro validate timers resolution.
+ * Not necessary in nRF52 based systems. Obligatory in nRF51 based systems.
+ */
+
+ /*lint -save -e685 */
+
+ NRFX_ASSERT(NRF_TIMER_IS_BIT_WIDTH_VALID(p_instance->p_reg, p_config->bit_width));
+
+ //lint -restore
+
+ p_cb->handler = timer_event_handler;
+ p_cb->context = p_config->p_context;
+
+ uint8_t i;
+ for (i = 0; i < p_instance->cc_channel_count; ++i)
+ {
+ nrf_timer_event_clear(p_instance->p_reg,
+ nrf_timer_compare_event_get(i));
+ }
+
+ NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(p_instance->p_reg),
+ p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_instance->p_reg));
+
+ nrf_timer_mode_set(p_instance->p_reg, p_config->mode);
+ nrf_timer_bit_width_set(p_instance->p_reg, p_config->bit_width);
+ nrf_timer_frequency_set(p_instance->p_reg, p_config->frequency);
+
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_timer_uninit(nrfx_timer_t const * const p_instance)
+{
+ NRFX_IRQ_DISABLE(nrfx_get_irq_number(p_instance->p_reg));
+
+ #define DISABLE_ALL UINT32_MAX
+ nrf_timer_shorts_disable(p_instance->p_reg, DISABLE_ALL);
+ nrf_timer_int_disable(p_instance->p_reg, DISABLE_ALL);
+ #undef DISABLE_ALL
+
+ nrfx_timer_disable(p_instance);
+
+ m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_UNINITIALIZED;
+ NRFX_LOG_INFO("Uninitialized instance: %d.", p_instance->instance_id);
+}
+
+void nrfx_timer_enable(nrfx_timer_t const * const p_instance)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state == NRFX_DRV_STATE_INITIALIZED);
+ nrf_timer_task_trigger(p_instance->p_reg, NRF_TIMER_TASK_START);
+ m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_POWERED_ON;
+ NRFX_LOG_INFO("Enabled instance: %d.", p_instance->instance_id);
+}
+
+void nrfx_timer_disable(nrfx_timer_t const * const p_instance)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+ nrf_timer_task_trigger(p_instance->p_reg, NRF_TIMER_TASK_SHUTDOWN);
+ m_cb[p_instance->instance_id].state = NRFX_DRV_STATE_INITIALIZED;
+ NRFX_LOG_INFO("Disabled instance: %d.", p_instance->instance_id);
+}
+
+bool nrfx_timer_is_enabled(nrfx_timer_t const * const p_instance)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+ return (m_cb[p_instance->instance_id].state == NRFX_DRV_STATE_POWERED_ON);
+}
+
+void nrfx_timer_resume(nrfx_timer_t const * const p_instance)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+ nrf_timer_task_trigger(p_instance->p_reg, NRF_TIMER_TASK_START);
+ NRFX_LOG_INFO("Resumed instance: %d.", p_instance->instance_id);
+}
+
+void nrfx_timer_pause(nrfx_timer_t const * const p_instance)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+ nrf_timer_task_trigger(p_instance->p_reg, NRF_TIMER_TASK_STOP);
+ NRFX_LOG_INFO("Paused instance: %d.", p_instance->instance_id);
+}
+
+void nrfx_timer_clear(nrfx_timer_t const * const p_instance)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+ nrf_timer_task_trigger(p_instance->p_reg, NRF_TIMER_TASK_CLEAR);
+}
+
+void nrfx_timer_increment(nrfx_timer_t const * const p_instance)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(nrf_timer_mode_get(p_instance->p_reg) != NRF_TIMER_MODE_TIMER);
+
+ nrf_timer_task_trigger(p_instance->p_reg, NRF_TIMER_TASK_COUNT);
+}
+
+uint32_t nrfx_timer_capture(nrfx_timer_t const * const p_instance,
+ nrf_timer_cc_channel_t cc_channel)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(cc_channel < p_instance->cc_channel_count);
+
+ nrf_timer_task_trigger(p_instance->p_reg,
+ nrf_timer_capture_task_get(cc_channel));
+ return nrf_timer_cc_read(p_instance->p_reg, cc_channel);
+}
+
+void nrfx_timer_compare(nrfx_timer_t const * const p_instance,
+ nrf_timer_cc_channel_t cc_channel,
+ uint32_t cc_value,
+ bool enable_int)
+{
+ nrf_timer_int_mask_t timer_int = nrf_timer_compare_int_get(cc_channel);
+
+ if (enable_int)
+ {
+ nrf_timer_event_clear(p_instance->p_reg, nrf_timer_compare_event_get(cc_channel));
+ nrf_timer_int_enable(p_instance->p_reg, timer_int);
+ }
+ else
+ {
+ nrf_timer_int_disable(p_instance->p_reg, timer_int);
+ }
+
+ nrf_timer_cc_write(p_instance->p_reg, cc_channel, cc_value);
+ NRFX_LOG_INFO("Timer id: %d, capture value set: %lu, channel: %d.",
+ p_instance->instance_id,
+ cc_value,
+ cc_channel);
+}
+
+void nrfx_timer_extended_compare(nrfx_timer_t const * const p_instance,
+ nrf_timer_cc_channel_t cc_channel,
+ uint32_t cc_value,
+ nrf_timer_short_mask_t timer_short_mask,
+ bool enable_int)
+{
+ nrf_timer_shorts_disable(p_instance->p_reg,
+ (TIMER_SHORTS_COMPARE0_STOP_Msk << cc_channel) |
+ (TIMER_SHORTS_COMPARE0_CLEAR_Msk << cc_channel));
+
+ nrf_timer_shorts_enable(p_instance->p_reg, timer_short_mask);
+
+ nrfx_timer_compare(p_instance,
+ cc_channel,
+ cc_value,
+ enable_int);
+ NRFX_LOG_INFO("Timer id: %d, capture value set: %lu, channel: %d.",
+ p_instance->instance_id,
+ cc_value,
+ cc_channel);
+}
+
+void nrfx_timer_compare_int_enable(nrfx_timer_t const * const p_instance,
+ uint32_t channel)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(channel < p_instance->cc_channel_count);
+
+ nrf_timer_event_clear(p_instance->p_reg,
+ nrf_timer_compare_event_get(channel));
+ nrf_timer_int_enable(p_instance->p_reg,
+ nrf_timer_compare_int_get(channel));
+}
+
+void nrfx_timer_compare_int_disable(nrfx_timer_t const * const p_instance,
+ uint32_t channel)
+{
+ NRFX_ASSERT(m_cb[p_instance->instance_id].state != NRFX_DRV_STATE_UNINITIALIZED);
+ NRFX_ASSERT(channel < p_instance->cc_channel_count);
+
+ nrf_timer_int_disable(p_instance->p_reg,
+ nrf_timer_compare_int_get(channel));
+}
+
+static void irq_handler(NRF_TIMER_Type * p_reg,
+ timer_control_block_t * p_cb,
+ uint8_t channel_count)
+{
+ uint8_t i;
+ for (i = 0; i < channel_count; ++i)
+ {
+ nrf_timer_event_t event = nrf_timer_compare_event_get(i);
+ nrf_timer_int_mask_t int_mask = nrf_timer_compare_int_get(i);
+
+ if (nrf_timer_event_check(p_reg, event) &&
+ nrf_timer_int_enable_check(p_reg, int_mask))
+ {
+ nrf_timer_event_clear(p_reg, event);
+ NRFX_LOG_DEBUG("Compare event, channel: %d.", i);
+ p_cb->handler(event, p_cb->context);
+ }
+ }
+}
+
+#if NRFX_CHECK(NRFX_TIMER0_ENABLED)
+void nrfx_timer_0_irq_handler(void)
+{
+ irq_handler(NRF_TIMER0, &m_cb[NRFX_TIMER0_INST_IDX],
+ NRF_TIMER_CC_CHANNEL_COUNT(0));
+}
+#endif
+
+#if NRFX_CHECK(NRFX_TIMER1_ENABLED)
+void nrfx_timer_1_irq_handler(void)
+{
+ irq_handler(NRF_TIMER1, &m_cb[NRFX_TIMER1_INST_IDX],
+ NRF_TIMER_CC_CHANNEL_COUNT(1));
+}
+#endif
+
+#if NRFX_CHECK(NRFX_TIMER2_ENABLED)
+void nrfx_timer_2_irq_handler(void)
+{
+ irq_handler(NRF_TIMER2, &m_cb[NRFX_TIMER2_INST_IDX],
+ NRF_TIMER_CC_CHANNEL_COUNT(2));
+}
+#endif
+
+#if NRFX_CHECK(NRFX_TIMER3_ENABLED)
+void nrfx_timer_3_irq_handler(void)
+{
+ irq_handler(NRF_TIMER3, &m_cb[NRFX_TIMER3_INST_IDX],
+ NRF_TIMER_CC_CHANNEL_COUNT(3));
+}
+#endif
+
+#if NRFX_CHECK(NRFX_TIMER4_ENABLED)
+void nrfx_timer_4_irq_handler(void)
+{
+ irq_handler(NRF_TIMER4, &m_cb[NRFX_TIMER4_INST_IDX],
+ NRF_TIMER_CC_CHANNEL_COUNT(4));
+}
+#endif
+
+#endif // NRFX_CHECK(NRFX_TIMER_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_twi.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_twi.c
new file mode 100644
index 0000000..c7492bd
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_twi.c
@@ -0,0 +1,723 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_TWI_ENABLED)
+
+#if !(NRFX_CHECK(NRFX_TWI0_ENABLED) || NRFX_CHECK(NRFX_TWI1_ENABLED))
+#error "No enabled TWI instances. Check <nrfx_config.h>."
+#endif
+
+#include <nrfx_twi.h>
+#include <hal/nrf_gpio.h>
+#include "prs/nrfx_prs.h"
+
+#define NRFX_LOG_MODULE TWI
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRFX_TWI_EVT_DONE ? "EVT_DONE" : \
+ (event == NRFX_TWI_EVT_ADDRESS_NACK ? "EVT_ADDRESS_NACK" : \
+ (event == NRFX_TWI_EVT_DATA_NACK ? "EVT_DATA_NACK" : \
+ "UNKNOWN ERROR")))
+
+#define EVT_TO_STR_TWI(event) \
+ (event == NRF_TWI_EVENT_STOPPED ? "NRF_TWI_EVENT_STOPPED" : \
+ (event == NRF_TWI_EVENT_RXDREADY ? "NRF_TWI_EVENT_RXDREADY" : \
+ (event == NRF_TWI_EVENT_TXDSENT ? "NRF_TWI_EVENT_TXDSENT" : \
+ (event == NRF_TWI_EVENT_ERROR ? "NRF_TWI_EVENT_ERROR" : \
+ (event == NRF_TWI_EVENT_BB ? "NRF_TWI_EVENT_BB" : \
+ (event == NRF_TWI_EVENT_SUSPENDED ? "NRF_TWI_EVENT_SUSPENDED" : \
+ "UNKNOWN ERROR"))))))
+
+#define TRANSFER_TO_STR(type) \
+ (type == NRFX_TWI_XFER_TX ? "XFER_TX" : \
+ (type == NRFX_TWI_XFER_RX ? "XFER_RX" : \
+ (type == NRFX_TWI_XFER_TXRX ? "XFER_TXRX" : \
+ (type == NRFX_TWI_XFER_TXTX ? "XFER_TXTX" : \
+ "UNKNOWN TRANSFER TYPE"))))
+
+#define TWI_PIN_INIT(_pin) nrf_gpio_cfg((_pin), \
+ NRF_GPIO_PIN_DIR_INPUT, \
+ NRF_GPIO_PIN_INPUT_CONNECT, \
+ NRF_GPIO_PIN_PULLUP, \
+ NRF_GPIO_PIN_S0D1, \
+ NRF_GPIO_PIN_NOSENSE)
+
+#define HW_TIMEOUT 10000
+
+// Control block - driver instance local data.
+typedef struct
+{
+ nrfx_twi_evt_handler_t handler;
+ void * p_context;
+ volatile uint32_t int_mask;
+ nrfx_twi_xfer_desc_t xfer_desc;
+ uint32_t flags;
+ uint8_t * p_curr_buf;
+ uint8_t curr_length;
+ bool curr_no_stop;
+ nrfx_drv_state_t state;
+ bool error;
+ volatile bool busy;
+ bool repeated;
+ uint8_t bytes_transferred;
+ bool hold_bus_uninit;
+} twi_control_block_t;
+
+static twi_control_block_t m_cb[NRFX_TWI_ENABLED_COUNT];
+
+static nrfx_err_t twi_process_error(uint32_t errorsrc)
+{
+ nrfx_err_t ret = NRFX_ERROR_INTERNAL;
+
+ if (errorsrc & NRF_TWI_ERROR_OVERRUN)
+ {
+ ret = NRFX_ERROR_DRV_TWI_ERR_OVERRUN;
+ }
+
+ if (errorsrc & NRF_TWI_ERROR_ADDRESS_NACK)
+ {
+ ret = NRFX_ERROR_DRV_TWI_ERR_ANACK;
+ }
+
+ if (errorsrc & NRF_TWI_ERROR_DATA_NACK)
+ {
+ ret = NRFX_ERROR_DRV_TWI_ERR_DNACK;
+ }
+
+ return ret;
+}
+
+
+
+nrfx_err_t nrfx_twi_init(nrfx_twi_t const * p_instance,
+ nrfx_twi_config_t const * p_config,
+ nrfx_twi_evt_handler_t event_handler,
+ void * p_context)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(p_config->scl != p_config->sda);
+ twi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ nrfx_err_t err_code;
+
+ if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ static nrfx_irq_handler_t const irq_handlers[NRFX_TWI_ENABLED_COUNT] = {
+ #if NRFX_CHECK(NRFX_TWI0_ENABLED)
+ nrfx_twi_0_irq_handler,
+ #endif
+ #if NRFX_CHECK(NRFX_TWI1_ENABLED)
+ nrfx_twi_1_irq_handler,
+ #endif
+ };
+ if (nrfx_prs_acquire(p_instance->p_twi,
+ irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+#endif // NRFX_CHECK(NRFX_PRS_ENABLED)
+
+ p_cb->handler = event_handler;
+ p_cb->p_context = p_context;
+ p_cb->int_mask = 0;
+ p_cb->repeated = false;
+ p_cb->busy = false;
+ p_cb->hold_bus_uninit = p_config->hold_bus_uninit;
+
+ /* To secure correct signal levels on the pins used by the TWI
+ master when the system is in OFF mode, and when the TWI master is
+ disabled, these pins must be configured in the GPIO peripheral.
+ */
+ TWI_PIN_INIT(p_config->scl);
+ TWI_PIN_INIT(p_config->sda);
+
+ NRF_TWI_Type * p_twi = p_instance->p_twi;
+ nrf_twi_pins_set(p_twi, p_config->scl, p_config->sda);
+ nrf_twi_frequency_set(p_twi,
+ (nrf_twi_frequency_t)p_config->frequency);
+
+ if (p_cb->handler)
+ {
+ NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(p_instance->p_twi),
+ p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_instance->p_twi));
+ }
+
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_twi_uninit(nrfx_twi_t const * p_instance)
+{
+ twi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ if (p_cb->handler)
+ {
+ NRFX_IRQ_DISABLE(nrfx_get_irq_number(p_instance->p_twi));
+ }
+ nrfx_twi_disable(p_instance);
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ nrfx_prs_release(p_instance->p_twi);
+#endif
+
+ if (!p_cb->hold_bus_uninit)
+ {
+ nrf_gpio_cfg_default(p_instance->p_twi->PSELSCL);
+ nrf_gpio_cfg_default(p_instance->p_twi->PSELSDA);
+ }
+
+ p_cb->state = NRFX_DRV_STATE_UNINITIALIZED;
+ NRFX_LOG_INFO("Instance uninitialized: %d.", p_instance->drv_inst_idx);
+}
+
+void nrfx_twi_enable(nrfx_twi_t const * p_instance)
+{
+ twi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED);
+
+ NRF_TWI_Type * p_twi = p_instance->p_twi;
+ nrf_twi_enable(p_twi);
+
+ p_cb->state = NRFX_DRV_STATE_POWERED_ON;
+ NRFX_LOG_INFO("Instance enabled: %d.", p_instance->drv_inst_idx);
+}
+
+void nrfx_twi_disable(nrfx_twi_t const * p_instance)
+{
+ twi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ NRF_TWI_Type * p_twi = p_instance->p_twi;
+ nrf_twi_int_disable(p_twi, NRF_TWI_ALL_INTS_MASK);
+ nrf_twi_shorts_disable(p_twi, NRF_TWI_ALL_SHORTS_MASK);
+ nrf_twi_disable(p_twi);
+
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+ NRFX_LOG_INFO("Instance disabled: %d.", p_instance->drv_inst_idx);
+}
+
+static bool twi_send_byte(NRF_TWI_Type * p_twi,
+ uint8_t const * p_data,
+ uint8_t length,
+ uint8_t * p_bytes_transferred,
+ bool no_stop)
+{
+ if (*p_bytes_transferred < length)
+ {
+ nrf_twi_txd_set(p_twi, p_data[*p_bytes_transferred]);
+ ++(*p_bytes_transferred);
+ }
+ else
+ {
+ if (no_stop)
+ {
+ nrf_twi_task_trigger(p_twi, NRF_TWI_TASK_SUSPEND);
+ return false;
+ }
+ else
+ {
+ nrf_twi_task_trigger(p_twi, NRF_TWI_TASK_STOP);
+ }
+ }
+ return true;
+}
+
+static void twi_receive_byte(NRF_TWI_Type * p_twi,
+ uint8_t * p_data,
+ uint8_t length,
+ uint8_t * p_bytes_transferred)
+{
+ if (*p_bytes_transferred < length)
+ {
+ p_data[*p_bytes_transferred] = nrf_twi_rxd_get(p_twi);
+
+ ++(*p_bytes_transferred);
+
+ if (*p_bytes_transferred == length - 1)
+ {
+ nrf_twi_shorts_set(p_twi, NRF_TWI_SHORT_BB_STOP_MASK);
+ }
+ else if (*p_bytes_transferred == length)
+ {
+ return;
+ }
+
+ nrf_twi_task_trigger(p_twi, NRF_TWI_TASK_RESUME);
+ }
+}
+
+static bool twi_transfer(NRF_TWI_Type * p_twi,
+ bool * p_error,
+ uint8_t * p_bytes_transferred,
+ uint8_t * p_data,
+ uint8_t length,
+ bool no_stop)
+{
+ bool do_stop_check = ((*p_error) || ((*p_bytes_transferred) == length));
+
+ if (*p_error)
+ {
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_ERROR);
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_TXDSENT);
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_RXDREADY);
+ }
+ else if (nrf_twi_event_check(p_twi, NRF_TWI_EVENT_ERROR))
+ {
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_ERROR);
+ NRFX_LOG_DEBUG("TWI: Event: %s.", EVT_TO_STR_TWI(NRF_TWI_EVENT_ERROR));
+ nrf_twi_task_trigger(p_twi, NRF_TWI_TASK_STOP);
+ *p_error = true;
+ }
+ else
+ {
+ if (nrf_twi_event_check(p_twi, NRF_TWI_EVENT_TXDSENT))
+ {
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_TXDSENT);
+ NRFX_LOG_DEBUG("TWI: Event: %s.", EVT_TO_STR_TWI(NRF_TWI_EVENT_TXDSENT));
+ if (nrf_twi_event_check(p_twi, NRF_TWI_EVENT_ERROR))
+ {
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_ERROR);
+ NRFX_LOG_DEBUG("TWI: Event: %s.", EVT_TO_STR_TWI(NRF_TWI_EVENT_ERROR));
+ nrf_twi_task_trigger(p_twi, NRF_TWI_TASK_STOP);
+ *p_error = true;
+ }
+ else
+ {
+ if (!twi_send_byte(p_twi, p_data, length, p_bytes_transferred, no_stop))
+ {
+ return false;
+ }
+ }
+ }
+ else if (nrf_twi_event_check(p_twi, NRF_TWI_EVENT_RXDREADY))
+ {
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_RXDREADY);
+ NRFX_LOG_DEBUG("TWI: Event: %s.", EVT_TO_STR_TWI(NRF_TWI_EVENT_RXDREADY));
+ if (nrf_twi_event_check(p_twi, NRF_TWI_EVENT_ERROR))
+ {
+ NRFX_LOG_DEBUG("TWI: Event: %s.", EVT_TO_STR_TWI(NRF_TWI_EVENT_ERROR));
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_ERROR);
+ nrf_twi_task_trigger(p_twi, NRF_TWI_TASK_STOP);
+ *p_error = true;
+ }
+ else
+ {
+ twi_receive_byte(p_twi, p_data, length, p_bytes_transferred);
+ }
+ }
+ }
+
+ if (do_stop_check && nrf_twi_event_check(p_twi, NRF_TWI_EVENT_STOPPED))
+ {
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_STOPPED);
+ NRFX_LOG_DEBUG("TWI: Event: %s.", EVT_TO_STR_TWI(NRF_TWI_EVENT_STOPPED));
+ return false;
+ }
+
+ return true;
+}
+
+static nrfx_err_t twi_tx_start_transfer(twi_control_block_t * p_cb,
+ NRF_TWI_Type * p_twi,
+ uint8_t const * p_data,
+ uint8_t length,
+ bool no_stop)
+{
+ nrfx_err_t ret_code = NRFX_SUCCESS;
+ volatile int32_t hw_timeout;
+
+ hw_timeout = HW_TIMEOUT;
+
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_STOPPED);
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_ERROR);
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_TXDSENT);
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_RXDREADY);
+ nrf_twi_shorts_set(p_twi, 0);
+
+ p_cb->bytes_transferred = 0;
+ p_cb->error = false;
+
+ // In case TWI is suspended resume its operation.
+ nrf_twi_task_trigger(p_twi, NRF_TWI_TASK_RESUME);
+ nrf_twi_task_trigger(p_twi, NRF_TWI_TASK_STARTTX);
+
+ (void)twi_send_byte(p_twi, p_data, length, &p_cb->bytes_transferred, no_stop);
+
+ if (p_cb->handler)
+ {
+ p_cb->int_mask = NRF_TWI_INT_STOPPED_MASK |
+ NRF_TWI_INT_ERROR_MASK |
+ NRF_TWI_INT_TXDSENT_MASK |
+ NRF_TWI_INT_RXDREADY_MASK;
+ nrf_twi_int_enable(p_twi, p_cb->int_mask);
+ }
+ else
+ {
+ while ((hw_timeout > 0) &&
+ twi_transfer(p_twi,
+ &p_cb->error,
+ &p_cb->bytes_transferred,
+ (uint8_t *)p_data,
+ length,
+ no_stop))
+ {
+ hw_timeout--;
+ }
+
+ if (p_cb->error)
+ {
+ uint32_t errorsrc = nrf_twi_errorsrc_get_and_clear(p_twi);
+
+ if (errorsrc)
+ {
+ ret_code = twi_process_error(errorsrc);
+ }
+ }
+
+ if (hw_timeout <= 0)
+ {
+ nrf_twi_disable(p_twi);
+ nrf_twi_enable(p_twi);
+ ret_code = NRFX_ERROR_INTERNAL;
+ }
+
+ }
+ return ret_code;
+}
+
+static nrfx_err_t twi_rx_start_transfer(twi_control_block_t * p_cb,
+ NRF_TWI_Type * p_twi,
+ uint8_t const * p_data,
+ uint8_t length)
+{
+ nrfx_err_t ret_code = NRFX_SUCCESS;
+ volatile int32_t hw_timeout;
+
+ hw_timeout = HW_TIMEOUT;
+
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_STOPPED);
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_ERROR);
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_TXDSENT);
+ nrf_twi_event_clear(p_twi, NRF_TWI_EVENT_RXDREADY);
+
+ p_cb->bytes_transferred = 0;
+ p_cb->error = false;
+
+ if (length == 1)
+ {
+ nrf_twi_shorts_set(p_twi, NRF_TWI_SHORT_BB_STOP_MASK);
+ }
+ else
+ {
+ nrf_twi_shorts_set(p_twi, NRF_TWI_SHORT_BB_SUSPEND_MASK);
+ }
+ // In case TWI is suspended resume its operation.
+ nrf_twi_task_trigger(p_twi, NRF_TWI_TASK_RESUME);
+ nrf_twi_task_trigger(p_twi, NRF_TWI_TASK_STARTRX);
+
+ if (p_cb->handler)
+ {
+ p_cb->int_mask = NRF_TWI_INT_STOPPED_MASK |
+ NRF_TWI_INT_ERROR_MASK |
+ NRF_TWI_INT_TXDSENT_MASK |
+ NRF_TWI_INT_RXDREADY_MASK;
+ nrf_twi_int_enable(p_twi, p_cb->int_mask);
+ }
+ else
+ {
+ while ((hw_timeout > 0) &&
+ twi_transfer(p_twi,
+ &p_cb->error,
+ &p_cb->bytes_transferred,
+ (uint8_t*)p_data,
+ length,
+ false))
+ {
+ hw_timeout--;
+ }
+
+ if (p_cb->error)
+ {
+ uint32_t errorsrc = nrf_twi_errorsrc_get_and_clear(p_twi);
+
+ if (errorsrc)
+ {
+ ret_code = twi_process_error(errorsrc);
+ }
+ }
+ if (hw_timeout <= 0)
+ {
+ nrf_twi_disable(p_twi);
+ nrf_twi_enable(p_twi);
+ ret_code = NRFX_ERROR_INTERNAL;
+ }
+ }
+ return ret_code;
+}
+
+__STATIC_INLINE nrfx_err_t twi_xfer(twi_control_block_t * p_cb,
+ NRF_TWI_Type * p_twi,
+ nrfx_twi_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags)
+{
+
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ /* Block TWI interrupts to ensure that function is not interrupted by TWI interrupt. */
+ nrf_twi_int_disable(p_twi, NRF_TWI_ALL_INTS_MASK);
+
+ if (p_cb->busy)
+ {
+ nrf_twi_int_enable(p_twi, p_cb->int_mask);
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ else
+ {
+ p_cb->busy = (NRFX_TWI_FLAG_NO_XFER_EVT_HANDLER & flags) ? false : true;
+ }
+
+ p_cb->flags = flags;
+ p_cb->xfer_desc = *p_xfer_desc;
+ p_cb->curr_length = p_xfer_desc->primary_length;
+ p_cb->p_curr_buf = p_xfer_desc->p_primary_buf;
+ nrf_twi_address_set(p_twi, p_xfer_desc->address);
+
+ if (p_xfer_desc->type != NRFX_TWI_XFER_RX)
+ {
+ p_cb->curr_no_stop = ((p_xfer_desc->type == NRFX_TWI_XFER_TX) &&
+ !(flags & NRFX_TWI_FLAG_TX_NO_STOP)) ? false : true;
+
+ err_code = twi_tx_start_transfer(p_cb,
+ p_twi,
+ p_xfer_desc->p_primary_buf,
+ p_xfer_desc->primary_length,
+ p_cb->curr_no_stop);
+ }
+ else
+ {
+ p_cb->curr_no_stop = false;
+
+ err_code = twi_rx_start_transfer(p_cb,
+ p_twi,
+ p_xfer_desc->p_primary_buf,
+ p_xfer_desc->primary_length);
+ }
+ if (p_cb->handler == NULL)
+ {
+ p_cb->busy = false;
+ }
+ return err_code;
+}
+
+bool nrfx_twi_is_busy(nrfx_twi_t const * p_instance)
+{
+ twi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ return p_cb->busy;
+}
+
+nrfx_err_t nrfx_twi_xfer(nrfx_twi_t const * p_instance,
+ nrfx_twi_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags)
+{
+
+ nrfx_err_t err_code = NRFX_SUCCESS;
+ twi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+
+ // TXRX and TXTX transfers are supported only in non-blocking mode.
+ NRFX_ASSERT( !((p_cb->handler == NULL) && (p_xfer_desc->type == NRFX_TWI_XFER_TXRX)));
+ NRFX_ASSERT( !((p_cb->handler == NULL) && (p_xfer_desc->type == NRFX_TWI_XFER_TXTX)));
+
+ NRFX_LOG_INFO("Transfer type: %s.", TRANSFER_TO_STR(p_xfer_desc->type));
+ NRFX_LOG_INFO("Transfer buffers length: primary: %d, secondary: %d.",
+ p_xfer_desc->primary_length,
+ p_xfer_desc->secondary_length);
+ NRFX_LOG_DEBUG("Primary buffer data:");
+ NRFX_LOG_HEXDUMP_DEBUG(p_xfer_desc->p_primary_buf,
+ p_xfer_desc->primary_length * sizeof(p_xfer_desc->p_primary_buf[0]));
+ NRFX_LOG_DEBUG("Secondary buffer data:");
+ NRFX_LOG_HEXDUMP_DEBUG(p_xfer_desc->p_secondary_buf,
+ p_xfer_desc->secondary_length * sizeof(p_xfer_desc->p_secondary_buf[0]));
+
+ err_code = twi_xfer(p_cb, (NRF_TWI_Type *)p_instance->p_twi, p_xfer_desc, flags);
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+nrfx_err_t nrfx_twi_tx(nrfx_twi_t const * p_instance,
+ uint8_t address,
+ uint8_t const * p_data,
+ size_t length,
+ bool no_stop)
+{
+ nrfx_twi_xfer_desc_t xfer = NRFX_TWI_XFER_DESC_TX(address, (uint8_t*)p_data, length);
+
+ return nrfx_twi_xfer(p_instance, &xfer, no_stop ? NRFX_TWI_FLAG_TX_NO_STOP : 0);
+}
+
+nrfx_err_t nrfx_twi_rx(nrfx_twi_t const * p_instance,
+ uint8_t address,
+ uint8_t * p_data,
+ size_t length)
+{
+ nrfx_twi_xfer_desc_t xfer = NRFX_TWI_XFER_DESC_RX(address, p_data, length);
+ return nrfx_twi_xfer(p_instance, &xfer, 0);
+}
+
+size_t nrfx_twi_data_count_get(nrfx_twi_t const * const p_instance)
+{
+ return m_cb[p_instance->drv_inst_idx].bytes_transferred;
+}
+
+uint32_t nrfx_twi_stopped_event_get(nrfx_twi_t const * p_instance)
+{
+ return (uint32_t)nrf_twi_event_address_get(p_instance->p_twi, NRF_TWI_EVENT_STOPPED);
+}
+
+static void twi_irq_handler(NRF_TWI_Type * p_twi, twi_control_block_t * p_cb)
+{
+ NRFX_ASSERT(p_cb->handler);
+
+ if (twi_transfer(p_twi,
+ &p_cb->error,
+ &p_cb->bytes_transferred,
+ p_cb->p_curr_buf,
+ p_cb->curr_length,
+ p_cb->curr_no_stop ))
+ {
+ return;
+ }
+
+ if (!p_cb->error &&
+ ((p_cb->xfer_desc.type == NRFX_TWI_XFER_TXRX) ||
+ (p_cb->xfer_desc.type == NRFX_TWI_XFER_TXTX)) &&
+ p_cb->p_curr_buf == p_cb->xfer_desc.p_primary_buf)
+ {
+ p_cb->p_curr_buf = p_cb->xfer_desc.p_secondary_buf;
+ p_cb->curr_length = p_cb->xfer_desc.secondary_length;
+ p_cb->curr_no_stop = (p_cb->flags & NRFX_TWI_FLAG_TX_NO_STOP);
+
+ if (p_cb->xfer_desc.type == NRFX_TWI_XFER_TXTX)
+ {
+ (void)twi_tx_start_transfer(p_cb,
+ p_twi,
+ p_cb->p_curr_buf,
+ p_cb->curr_length,
+ p_cb->curr_no_stop);
+ }
+ else
+ {
+ (void)twi_rx_start_transfer(p_cb, p_twi, p_cb->p_curr_buf, p_cb->curr_length);
+ }
+ }
+ else
+ {
+ nrfx_twi_evt_t event;
+ event.xfer_desc = p_cb->xfer_desc;
+
+ if (p_cb->error)
+ {
+ uint32_t errorsrc = nrf_twi_errorsrc_get_and_clear(p_twi);
+ if (errorsrc & NRF_TWI_ERROR_ADDRESS_NACK)
+ {
+ event.type = NRFX_TWI_EVT_ADDRESS_NACK;
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRFX_TWI_EVT_ADDRESS_NACK));
+ }
+ else if (errorsrc & NRF_TWI_ERROR_DATA_NACK)
+ {
+ event.type = NRFX_TWI_EVT_DATA_NACK;
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRFX_TWI_EVT_DATA_NACK));
+ }
+ }
+ else
+ {
+ event.type = NRFX_TWI_EVT_DONE;
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRFX_TWI_EVT_DONE));
+ }
+
+ p_cb->busy = false;
+
+ if (!(NRFX_TWI_FLAG_NO_XFER_EVT_HANDLER & p_cb->flags))
+ {
+ p_cb->handler(&event, p_cb->p_context);
+ }
+ }
+
+}
+
+#if NRFX_CHECK(NRFX_TWI0_ENABLED)
+void nrfx_twi_0_irq_handler(void)
+{
+ twi_irq_handler(NRF_TWI0, &m_cb[NRFX_TWI0_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_TWI1_ENABLED)
+void nrfx_twi_1_irq_handler(void)
+{
+ twi_irq_handler(NRF_TWI1, &m_cb[NRFX_TWI1_INST_IDX]);
+}
+#endif
+
+#endif // NRFX_CHECK(NRFX_TWI_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_twim.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_twim.c
new file mode 100644
index 0000000..7d9cb36
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_twim.c
@@ -0,0 +1,664 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_TWIM_ENABLED)
+
+#if !(NRFX_CHECK(NRFX_TWIM0_ENABLED) || NRFX_CHECK(NRFX_TWIM1_ENABLED))
+#error "No enabled TWIM instances. Check <nrfx_config.h>."
+#endif
+
+#include <nrfx_twim.h>
+#include <hal/nrf_gpio.h>
+#include "prs/nrfx_prs.h"
+
+#define NRFX_LOG_MODULE TWIM
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRFX_TWIM_EVT_DONE ? "EVT_DONE" : \
+ (event == NRFX_TWIM_EVT_ADDRESS_NACK ? "EVT_ADDRESS_NACK" : \
+ (event == NRFX_TWIM_EVT_DATA_NACK ? "EVT_DATA_NACK" : \
+ "UNKNOWN ERROR")))
+
+#define EVT_TO_STR_TWIM(event) \
+ (event == NRF_TWIM_EVENT_STOPPED ? "NRF_TWIM_EVENT_STOPPED" : \
+ (event == NRF_TWIM_EVENT_ERROR ? "NRF_TWIM_EVENT_ERROR" : \
+ (event == NRF_TWIM_EVENT_SUSPENDED ? "NRF_TWIM_EVENT_SUSPENDED" : \
+ (event == NRF_TWIM_EVENT_RXSTARTED ? "NRF_TWIM_EVENT_RXSTARTED" : \
+ (event == NRF_TWIM_EVENT_TXSTARTED ? "NRF_TWIM_EVENT_TXSTARTED" : \
+ (event == NRF_TWIM_EVENT_LASTRX ? "NRF_TWIM_EVENT_LASTRX" : \
+ (event == NRF_TWIM_EVENT_LASTTX ? "NRF_TWIM_EVENT_LASTTX" : \
+ "UNKNOWN ERROR")))))))
+
+#define TRANSFER_TO_STR(type) \
+ (type == NRFX_TWIM_XFER_TX ? "XFER_TX" : \
+ (type == NRFX_TWIM_XFER_RX ? "XFER_RX" : \
+ (type == NRFX_TWIM_XFER_TXRX ? "XFER_TXRX" : \
+ (type == NRFX_TWIM_XFER_TXTX ? "XFER_TXTX" : \
+ "UNKNOWN TRANSFER TYPE"))))
+
+#define TWIM_PIN_INIT(_pin) nrf_gpio_cfg((_pin), \
+ NRF_GPIO_PIN_DIR_INPUT, \
+ NRF_GPIO_PIN_INPUT_CONNECT, \
+ NRF_GPIO_PIN_PULLUP, \
+ NRF_GPIO_PIN_S0D1, \
+ NRF_GPIO_PIN_NOSENSE)
+
+#define TWIMX_LENGTH_VALIDATE(peripheral, drv_inst_idx, len1, len2) \
+ (((drv_inst_idx) == NRFX_CONCAT_3(NRFX_, peripheral, _INST_IDX)) && \
+ NRFX_EASYDMA_LENGTH_VALIDATE(peripheral, len1, len2))
+
+#if NRFX_CHECK(NRFX_TWIM0_ENABLED)
+#define TWIM0_LENGTH_VALIDATE(...) TWIMX_LENGTH_VALIDATE(TWIM0, __VA_ARGS__)
+#else
+#define TWIM0_LENGTH_VALIDATE(...) 0
+#endif
+
+#if NRFX_CHECK(NRFX_TWIM1_ENABLED)
+#define TWIM1_LENGTH_VALIDATE(...) TWIMX_LENGTH_VALIDATE(TWIM1, __VA_ARGS__)
+#else
+#define TWIM1_LENGTH_VALIDATE(...) 0
+#endif
+
+#define TWIM_LENGTH_VALIDATE(drv_inst_idx, len1, len2) \
+ (TWIM0_LENGTH_VALIDATE(drv_inst_idx, len1, len2) || \
+ TWIM1_LENGTH_VALIDATE(drv_inst_idx, len1, len2))
+
+// Control block - driver instance local data.
+typedef struct
+{
+ nrfx_twim_evt_handler_t handler;
+ void * p_context;
+ volatile uint32_t int_mask;
+ nrfx_twim_xfer_desc_t xfer_desc;
+ uint32_t flags;
+ uint8_t * p_curr_buf;
+ size_t curr_length;
+ bool curr_no_stop;
+ nrfx_drv_state_t state;
+ bool error;
+ volatile bool busy;
+ bool repeated;
+ uint8_t bytes_transferred;
+ bool hold_bus_uninit;
+#if NRFX_CHECK(NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED)
+ nrf_twim_frequency_t bus_frequency;
+#endif
+} twim_control_block_t;
+
+static twim_control_block_t m_cb[NRFX_TWIM_ENABLED_COUNT];
+
+static nrfx_err_t twi_process_error(uint32_t errorsrc)
+{
+ nrfx_err_t ret = NRFX_ERROR_INTERNAL;
+
+ if (errorsrc & NRF_TWIM_ERROR_ADDRESS_NACK)
+ {
+ ret = NRFX_ERROR_DRV_TWI_ERR_ANACK;
+ }
+
+ if (errorsrc & NRF_TWIM_ERROR_DATA_NACK)
+ {
+ ret = NRFX_ERROR_DRV_TWI_ERR_DNACK;
+ }
+
+ return ret;
+}
+
+nrfx_err_t nrfx_twim_init(nrfx_twim_t const * p_instance,
+ nrfx_twim_config_t const * p_config,
+ nrfx_twim_evt_handler_t event_handler,
+ void * p_context)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(p_config->scl != p_config->sda);
+ twim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ nrfx_err_t err_code;
+
+ if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ static nrfx_irq_handler_t const irq_handlers[NRFX_TWIM_ENABLED_COUNT] = {
+ #if NRFX_CHECK(NRFX_TWIM0_ENABLED)
+ nrfx_twim_0_irq_handler,
+ #endif
+ #if NRFX_CHECK(NRFX_TWIM1_ENABLED)
+ nrfx_twim_1_irq_handler,
+ #endif
+ };
+ if (nrfx_prs_acquire(p_instance->p_twim,
+ irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+#endif // NRFX_CHECK(NRFX_PRS_ENABLED)
+
+ p_cb->handler = event_handler;
+ p_cb->p_context = p_context;
+ p_cb->int_mask = 0;
+ p_cb->repeated = false;
+ p_cb->busy = false;
+ p_cb->hold_bus_uninit = p_config->hold_bus_uninit;
+#if NRFX_CHECK(NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED)
+ p_cb->bus_frequency = (nrf_twim_frequency_t)p_config->frequency;
+#endif
+
+ /* To secure correct signal levels on the pins used by the TWI
+ master when the system is in OFF mode, and when the TWI master is
+ disabled, these pins must be configured in the GPIO peripheral.
+ */
+ TWIM_PIN_INIT(p_config->scl);
+ TWIM_PIN_INIT(p_config->sda);
+
+ NRF_TWIM_Type * p_twim = p_instance->p_twim;
+ nrf_twim_pins_set(p_twim, p_config->scl, p_config->sda);
+ nrf_twim_frequency_set(p_twim,
+ (nrf_twim_frequency_t)p_config->frequency);
+
+ if (p_cb->handler)
+ {
+ NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(p_instance->p_twim),
+ p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_instance->p_twim));
+ }
+
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_twim_uninit(nrfx_twim_t const * p_instance)
+{
+ twim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ if (p_cb->handler)
+ {
+ NRFX_IRQ_DISABLE(nrfx_get_irq_number(p_instance->p_twim));
+ }
+ nrfx_twim_disable(p_instance);
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ nrfx_prs_release(p_instance->p_twim);
+#endif
+
+ if (!p_cb->hold_bus_uninit)
+ {
+ nrf_gpio_cfg_default(p_instance->p_twim->PSEL.SCL);
+ nrf_gpio_cfg_default(p_instance->p_twim->PSEL.SDA);
+ }
+
+ p_cb->state = NRFX_DRV_STATE_UNINITIALIZED;
+ NRFX_LOG_INFO("Instance uninitialized: %d.", p_instance->drv_inst_idx);
+}
+
+void nrfx_twim_enable(nrfx_twim_t const * p_instance)
+{
+ twim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED);
+
+ nrf_twim_enable(p_instance->p_twim);
+
+ p_cb->state = NRFX_DRV_STATE_POWERED_ON;
+ NRFX_LOG_INFO("Instance enabled: %d.", p_instance->drv_inst_idx);
+}
+
+void nrfx_twim_disable(nrfx_twim_t const * p_instance)
+{
+ twim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ NRF_TWIM_Type * p_twim = p_instance->p_twim;
+ p_cb->int_mask = 0;
+ nrf_twim_int_disable(p_twim, NRF_TWIM_ALL_INTS_MASK);
+ nrf_twim_shorts_disable(p_twim, NRF_TWIM_ALL_SHORTS_MASK);
+ nrf_twim_disable(p_twim);
+
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+ NRFX_LOG_INFO("Instance disabled: %d.", p_instance->drv_inst_idx);
+}
+
+
+bool nrfx_twim_is_busy(nrfx_twim_t const * p_instance)
+{
+ twim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ return p_cb->busy;
+}
+
+
+__STATIC_INLINE void twim_list_enable_handle(NRF_TWIM_Type * p_twim, uint32_t flags)
+{
+ if (NRFX_TWIM_FLAG_TX_POSTINC & flags)
+ {
+ nrf_twim_tx_list_enable(p_twim);
+ }
+ else
+ {
+ nrf_twim_tx_list_disable(p_twim);
+ }
+
+ if (NRFX_TWIM_FLAG_RX_POSTINC & flags)
+ {
+ nrf_twim_rx_list_enable(p_twim);
+ }
+ else
+ {
+ nrf_twim_rx_list_disable(p_twim);
+ }
+}
+__STATIC_INLINE nrfx_err_t twim_xfer(twim_control_block_t * p_cb,
+ NRF_TWIM_Type * p_twim,
+ nrfx_twim_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags)
+{
+ nrfx_err_t err_code = NRFX_SUCCESS;
+ nrf_twim_task_t start_task = NRF_TWIM_TASK_STARTTX;
+ nrf_twim_event_t evt_to_wait = NRF_TWIM_EVENT_STOPPED;
+
+ if (!nrfx_is_in_ram(p_xfer_desc->p_primary_buf))
+ {
+ err_code = NRFX_ERROR_INVALID_ADDR;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ /* Block TWI interrupts to ensure that function is not interrupted by TWI interrupt. */
+ nrf_twim_int_disable(p_twim, NRF_TWIM_ALL_INTS_MASK);
+ if (p_cb->busy)
+ {
+ nrf_twim_int_enable(p_twim, p_cb->int_mask);
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ else
+ {
+ p_cb->busy = ((NRFX_TWIM_FLAG_NO_XFER_EVT_HANDLER & flags) ||
+ (NRFX_TWIM_FLAG_REPEATED_XFER & flags)) ? false: true;
+ }
+
+ p_cb->xfer_desc = *p_xfer_desc;
+ p_cb->repeated = (flags & NRFX_TWIM_FLAG_REPEATED_XFER) ? true : false;
+ nrf_twim_address_set(p_twim, p_xfer_desc->address);
+
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_STOPPED);
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_ERROR);
+
+ twim_list_enable_handle(p_twim, flags);
+ switch (p_xfer_desc->type)
+ {
+ case NRFX_TWIM_XFER_TXTX:
+ NRFX_ASSERT(!(flags & NRFX_TWIM_FLAG_REPEATED_XFER));
+ NRFX_ASSERT(!(flags & NRFX_TWIM_FLAG_HOLD_XFER));
+ NRFX_ASSERT(!(flags & NRFX_TWIM_FLAG_NO_XFER_EVT_HANDLER));
+ if (!nrfx_is_in_ram(p_xfer_desc->p_secondary_buf))
+ {
+ err_code = NRFX_ERROR_INVALID_ADDR;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ nrf_twim_shorts_set(p_twim, NRF_TWIM_SHORT_LASTTX_SUSPEND_MASK);
+ nrf_twim_tx_buffer_set(p_twim, p_xfer_desc->p_primary_buf, p_xfer_desc->primary_length);
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_TXSTARTED);
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_LASTTX);
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_SUSPENDED);
+ nrf_twim_task_trigger(p_twim, NRF_TWIM_TASK_RESUME);
+ nrf_twim_task_trigger(p_twim, NRF_TWIM_TASK_STARTTX);
+ while (!nrf_twim_event_check(p_twim, NRF_TWIM_EVENT_TXSTARTED))
+ {}
+ NRFX_LOG_DEBUG("TWIM: Event: %s.", EVT_TO_STR_TWIM(NRF_TWIM_EVENT_TXSTARTED));
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_TXSTARTED);
+ nrf_twim_tx_buffer_set(p_twim, p_xfer_desc->p_secondary_buf, p_xfer_desc->secondary_length);
+ p_cb->int_mask = NRF_TWIM_INT_SUSPENDED_MASK | NRF_TWIM_INT_ERROR_MASK;
+ break;
+ case NRFX_TWIM_XFER_TXRX:
+ nrf_twim_tx_buffer_set(p_twim, p_xfer_desc->p_primary_buf, p_xfer_desc->primary_length);
+ if (!nrfx_is_in_ram(p_xfer_desc->p_secondary_buf))
+ {
+ err_code = NRFX_ERROR_INVALID_ADDR;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ nrf_twim_rx_buffer_set(p_twim, p_xfer_desc->p_secondary_buf, p_xfer_desc->secondary_length);
+ nrf_twim_shorts_set(p_twim, NRF_TWIM_SHORT_LASTTX_STARTRX_MASK |
+ NRF_TWIM_SHORT_LASTRX_STOP_MASK);
+ p_cb->int_mask = NRF_TWIM_INT_STOPPED_MASK | NRF_TWIM_INT_ERROR_MASK;
+ break;
+ case NRFX_TWIM_XFER_TX:
+ nrf_twim_tx_buffer_set(p_twim, p_xfer_desc->p_primary_buf, p_xfer_desc->primary_length);
+ if (NRFX_TWIM_FLAG_TX_NO_STOP & flags)
+ {
+ nrf_twim_shorts_set(p_twim, NRF_TWIM_SHORT_LASTTX_SUSPEND_MASK);
+ p_cb->int_mask = NRF_TWIM_INT_SUSPENDED_MASK | NRF_TWIM_INT_ERROR_MASK;
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_SUSPENDED);
+ evt_to_wait = NRF_TWIM_EVENT_SUSPENDED;
+ }
+ else
+ {
+ nrf_twim_shorts_set(p_twim, NRF_TWIM_SHORT_LASTTX_STOP_MASK);
+ p_cb->int_mask = NRF_TWIM_INT_STOPPED_MASK | NRF_TWIM_INT_ERROR_MASK;
+ }
+ nrf_twim_task_trigger(p_twim, NRF_TWIM_TASK_RESUME);
+ break;
+ case NRFX_TWIM_XFER_RX:
+ nrf_twim_rx_buffer_set(p_twim, p_xfer_desc->p_primary_buf, p_xfer_desc->primary_length);
+ nrf_twim_shorts_set(p_twim, NRF_TWIM_SHORT_LASTRX_STOP_MASK);
+ p_cb->int_mask = NRF_TWIM_INT_STOPPED_MASK | NRF_TWIM_INT_ERROR_MASK;
+ start_task = NRF_TWIM_TASK_STARTRX;
+ nrf_twim_task_trigger(p_twim, NRF_TWIM_TASK_RESUME);
+ break;
+ default:
+ err_code = NRFX_ERROR_INVALID_PARAM;
+ break;
+ }
+
+ if (!(flags & NRFX_TWIM_FLAG_HOLD_XFER) && (p_xfer_desc->type != NRFX_TWIM_XFER_TXTX))
+ {
+ nrf_twim_task_trigger(p_twim, start_task);
+ }
+
+ if (p_cb->handler)
+ {
+ if (flags & NRFX_TWIM_FLAG_NO_XFER_EVT_HANDLER)
+ {
+ p_cb->int_mask = NRF_TWIM_INT_ERROR_MASK;
+ }
+ nrf_twim_int_enable(p_twim, p_cb->int_mask);
+
+#if NRFX_CHECK(NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED)
+ if ((flags & NRFX_TWIM_FLAG_HOLD_XFER) && ((p_xfer_desc->type == NRFX_TWIM_XFER_TX) ||
+ (p_xfer_desc->type == NRFX_TWIM_XFER_TXRX)))
+ {
+ p_cb->flags = flags;
+ twim_list_enable_handle(p_twim, 0);
+ p_twim->FREQUENCY = 0;
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_TXSTARTED);
+ nrf_twim_int_enable(p_twim, NRF_TWIM_INT_TXSTARTED_MASK);
+ }
+#endif
+ }
+ else
+ {
+ while (!nrf_twim_event_check(p_twim, evt_to_wait))
+ {
+ if (nrf_twim_event_check(p_twim, NRF_TWIM_EVENT_ERROR))
+ {
+ NRFX_LOG_DEBUG("TWIM: Event: %s.", EVT_TO_STR_TWIM(NRF_TWIM_EVENT_ERROR));
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_ERROR);
+ nrf_twim_task_trigger(p_twim, NRF_TWIM_TASK_RESUME);
+ nrf_twim_task_trigger(p_twim, NRF_TWIM_TASK_STOP);
+ evt_to_wait = NRF_TWIM_EVENT_STOPPED;
+ }
+ }
+
+ uint32_t errorsrc = nrf_twim_errorsrc_get_and_clear(p_twim);
+
+ p_cb->busy = false;
+
+ if (errorsrc)
+ {
+ err_code = twi_process_error(errorsrc);
+ }
+ }
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_twim_xfer(nrfx_twim_t const * p_instance,
+ nrfx_twim_xfer_desc_t const * p_xfer_desc,
+ uint32_t flags)
+{
+ NRFX_ASSERT(TWIM_LENGTH_VALIDATE(p_instance->drv_inst_idx,
+ p_xfer_desc->primary_length,
+ p_xfer_desc->secondary_length));
+
+ nrfx_err_t err_code = NRFX_SUCCESS;
+ twim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+
+ // TXRX and TXTX transfers are supported only in non-blocking mode.
+ NRFX_ASSERT( !((p_cb->handler == NULL) && (p_xfer_desc->type == NRFX_TWIM_XFER_TXRX)));
+ NRFX_ASSERT( !((p_cb->handler == NULL) && (p_xfer_desc->type == NRFX_TWIM_XFER_TXTX)));
+
+ NRFX_LOG_INFO("Transfer type: %s.", TRANSFER_TO_STR(p_xfer_desc->type));
+ NRFX_LOG_INFO("Transfer buffers length: primary: %d, secondary: %d.",
+ p_xfer_desc->primary_length,
+ p_xfer_desc->secondary_length);
+ NRFX_LOG_DEBUG("Primary buffer data:");
+ NRFX_LOG_HEXDUMP_DEBUG(p_xfer_desc->p_primary_buf,
+ p_xfer_desc->primary_length * sizeof(p_xfer_desc->p_primary_buf[0]));
+ NRFX_LOG_DEBUG("Secondary buffer data:");
+ NRFX_LOG_HEXDUMP_DEBUG(p_xfer_desc->p_secondary_buf,
+ p_xfer_desc->secondary_length * sizeof(p_xfer_desc->p_secondary_buf[0]));
+
+ err_code = twim_xfer(p_cb, (NRF_TWIM_Type *)p_instance->p_twim, p_xfer_desc, flags);
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+nrfx_err_t nrfx_twim_tx(nrfx_twim_t const * p_instance,
+ uint8_t address,
+ uint8_t const * p_data,
+ size_t length,
+ bool no_stop)
+{
+ nrfx_twim_xfer_desc_t xfer = NRFX_TWIM_XFER_DESC_TX(address, (uint8_t*)p_data, length);
+
+ return nrfx_twim_xfer(p_instance, &xfer, no_stop ? NRFX_TWIM_FLAG_TX_NO_STOP : 0);
+}
+
+nrfx_err_t nrfx_twim_rx(nrfx_twim_t const * p_instance,
+ uint8_t address,
+ uint8_t * p_data,
+ size_t length)
+{
+ nrfx_twim_xfer_desc_t xfer = NRFX_TWIM_XFER_DESC_RX(address, p_data, length);
+ return nrfx_twim_xfer(p_instance, &xfer, 0);
+}
+
+uint32_t nrfx_twim_start_task_get(nrfx_twim_t const * p_instance,
+ nrfx_twim_xfer_type_t xfer_type)
+{
+ return (uint32_t)nrf_twim_task_address_get(p_instance->p_twim,
+ (xfer_type != NRFX_TWIM_XFER_RX) ? NRF_TWIM_TASK_STARTTX : NRF_TWIM_TASK_STARTRX);
+}
+
+uint32_t nrfx_twim_stopped_event_get(nrfx_twim_t const * p_instance)
+{
+ return (uint32_t)nrf_twim_event_address_get(p_instance->p_twim, NRF_TWIM_EVENT_STOPPED);
+}
+
+static void twim_irq_handler(NRF_TWIM_Type * p_twim, twim_control_block_t * p_cb)
+{
+
+#if NRFX_CHECK(NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED)
+ /* Handle only workaround case. Can be used without TWIM handler in IRQs. */
+ if (nrf_twim_event_check(p_twim, NRF_TWIM_EVENT_TXSTARTED))
+ {
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_TXSTARTED);
+ nrf_twim_int_disable(p_twim, NRF_TWIM_INT_TXSTARTED_MASK);
+ if (p_twim->FREQUENCY == 0)
+ {
+ // Set enable to zero to reset TWIM internal state.
+ nrf_twim_disable(p_twim);
+ nrf_twim_enable(p_twim);
+
+ // Set proper frequency.
+ nrf_twim_frequency_set(p_twim, p_cb->bus_frequency);
+ twim_list_enable_handle(p_twim, p_cb->flags);
+
+ // Start proper transmission.
+ nrf_twim_task_trigger(p_twim, NRF_TWIM_TASK_STARTTX);
+ return;
+ }
+ }
+#endif
+
+ NRFX_ASSERT(p_cb->handler);
+
+ if (nrf_twim_event_check(p_twim, NRF_TWIM_EVENT_ERROR))
+ {
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_ERROR);
+ NRFX_LOG_DEBUG("TWIM: Event: %s.", EVT_TO_STR_TWIM(NRF_TWIM_EVENT_ERROR));
+ if (!nrf_twim_event_check(p_twim, NRF_TWIM_EVENT_STOPPED))
+ {
+ nrf_twim_int_disable(p_twim, p_cb->int_mask);
+ p_cb->int_mask = NRF_TWIM_INT_STOPPED_MASK;
+ nrf_twim_int_enable(p_twim, p_cb->int_mask);
+
+ nrf_twim_task_trigger(p_twim, NRF_TWIM_TASK_RESUME);
+ nrf_twim_task_trigger(p_twim, NRF_TWIM_TASK_STOP);
+ return;
+ }
+ }
+
+ nrfx_twim_evt_t event;
+
+ if (nrf_twim_event_check(p_twim, NRF_TWIM_EVENT_STOPPED))
+ {
+ NRFX_LOG_DEBUG("TWIM: Event: %s.", EVT_TO_STR_TWIM(NRF_TWIM_EVENT_STOPPED));
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_STOPPED);
+ event.xfer_desc = p_cb->xfer_desc;
+ if (p_cb->error)
+ {
+
+ event.xfer_desc.primary_length = (p_cb->xfer_desc.type == NRFX_TWIM_XFER_RX) ?
+ nrf_twim_rxd_amount_get(p_twim) : nrf_twim_txd_amount_get(p_twim);
+ event.xfer_desc.secondary_length = (p_cb->xfer_desc.type == NRFX_TWIM_XFER_TXRX) ?
+ nrf_twim_rxd_amount_get(p_twim) : nrf_twim_txd_amount_get(p_twim);
+
+ }
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_LASTTX);
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_LASTRX);
+ if (!p_cb->repeated || p_cb->error)
+ {
+ nrf_twim_shorts_set(p_twim, 0);
+ p_cb->int_mask = 0;
+ nrf_twim_int_disable(p_twim, NRF_TWIM_ALL_INTS_MASK);
+ }
+ }
+ else
+ {
+ nrf_twim_event_clear(p_twim, NRF_TWIM_EVENT_SUSPENDED);
+ NRFX_LOG_DEBUG("TWIM: Event: %s.", EVT_TO_STR_TWIM(NRF_TWIM_EVENT_SUSPENDED));
+ if (p_cb->xfer_desc.type == NRFX_TWIM_XFER_TX)
+ {
+ event.xfer_desc = p_cb->xfer_desc;
+ if (!p_cb->repeated)
+ {
+ nrf_twim_shorts_set(p_twim, 0);
+ p_cb->int_mask = 0;
+ nrf_twim_int_disable(p_twim, NRF_TWIM_ALL_INTS_MASK);
+ }
+ }
+ else
+ {
+ nrf_twim_shorts_set(p_twim, NRF_TWIM_SHORT_LASTTX_STOP_MASK);
+ p_cb->int_mask = NRF_TWIM_INT_STOPPED_MASK | NRF_TWIM_INT_ERROR_MASK;
+ nrf_twim_int_disable(p_twim, NRF_TWIM_ALL_INTS_MASK);
+ nrf_twim_int_enable(p_twim, p_cb->int_mask);
+ nrf_twim_task_trigger(p_twim, NRF_TWIM_TASK_STARTTX);
+ nrf_twim_task_trigger(p_twim, NRF_TWIM_TASK_RESUME);
+ return;
+ }
+ }
+
+ uint32_t errorsrc = nrf_twim_errorsrc_get_and_clear(p_twim);
+ if (errorsrc & NRF_TWIM_ERROR_ADDRESS_NACK)
+ {
+ event.type = NRFX_TWIM_EVT_ADDRESS_NACK;
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRFX_TWIM_EVT_ADDRESS_NACK));
+ }
+ else if (errorsrc & NRF_TWIM_ERROR_DATA_NACK)
+ {
+ event.type = NRFX_TWIM_EVT_DATA_NACK;
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRFX_TWIM_EVT_DATA_NACK));
+ }
+ else
+ {
+ event.type = NRFX_TWIM_EVT_DONE;
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRFX_TWIM_EVT_DONE));
+ }
+
+ if (!p_cb->repeated)
+ {
+ p_cb->busy = false;
+ }
+ p_cb->handler(&event, p_cb->p_context);
+}
+
+#if NRFX_CHECK(NRFX_TWIM0_ENABLED)
+void nrfx_twim_0_irq_handler(void)
+{
+ twim_irq_handler(NRF_TWIM0, &m_cb[NRFX_TWIM0_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_TWIM1_ENABLED)
+void nrfx_twim_1_irq_handler(void)
+{
+ twim_irq_handler(NRF_TWIM1, &m_cb[NRFX_TWIM1_INST_IDX]);
+}
+#endif
+
+#endif // NRFX_CHECK(NRFX_TWIM_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_twis.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_twis.c
new file mode 100644
index 0000000..9fb7a49
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_twis.c
@@ -0,0 +1,834 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_TWIS_ENABLED)
+
+#if !(NRFX_CHECK(NRFX_TWIS0_ENABLED) || NRFX_CHECK(NRFX_TWIS1_ENABLED))
+#error "No enabled TWIS instances. Check <nrfx_config.h>."
+#endif
+
+#include <nrfx_twis.h>
+#include "prs/nrfx_prs.h"
+
+#define NRFX_LOG_MODULE TWIS
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRF_TWIS_EVENT_STOPPED ? "NRF_TWIS_EVENT_STOPPED" : \
+ (event == NRF_TWIS_EVENT_ERROR ? "NRF_TWIS_EVENT_ERROR" : \
+ (event == NRF_TWIS_EVENT_RXSTARTED ? "NRF_TWIS_EVENT_RXSTARTED" : \
+ (event == NRF_TWIS_EVENT_TXSTARTED ? "NRF_TWIS_EVENT_TXSTARTED" : \
+ (event == NRF_TWIS_EVENT_WRITE ? "NRF_TWIS_EVENT_WRITE" : \
+ (event == NRF_TWIS_EVENT_READ ? "NRF_TWIS_EVENT_READ" : \
+ "UNKNOWN EVENT"))))))
+
+
+/**
+ * @brief Actual state of internal state machine
+ *
+ * Current substate of powered on state.
+ */
+typedef enum
+{
+ NRFX_TWIS_SUBSTATE_IDLE, ///< No ongoing transmission
+ NRFX_TWIS_SUBSTATE_READ_WAITING, ///< Read request received, waiting for data
+ NRFX_TWIS_SUBSTATE_READ_PENDING, ///< Reading is actually pending (data sending)
+ NRFX_TWIS_SUBSTATE_WRITE_WAITING, ///< Write request received, waiting for data buffer
+ NRFX_TWIS_SUBSTATE_WRITE_PENDING, ///< Writing is actually pending (data receiving)
+} nrfx_twis_substate_t;
+
+// Control block - driver instance local data.
+typedef struct
+{
+ nrfx_twis_event_handler_t ev_handler;
+ // Internal copy of hardware errors flags merged with specific internal
+ // driver errors flags.
+ // This value can be changed in the interrupt and cleared in the main program.
+ // Always use Atomic load-store when updating this value in main loop.
+ volatile uint32_t error;
+ nrfx_drv_state_t state;
+ volatile nrfx_twis_substate_t substate;
+
+ volatile bool semaphore;
+} twis_control_block_t;
+static twis_control_block_t m_cb[NRFX_TWIS_ENABLED_COUNT];
+
+/**
+ * @brief Used interrupts mask
+ *
+ * Mask for all interrupts used by this library
+ */
+static const uint32_t m_used_ints_mask = NRF_TWIS_INT_STOPPED_MASK |
+ NRF_TWIS_INT_ERROR_MASK |
+ NRF_TWIS_INT_RXSTARTED_MASK |
+ NRF_TWIS_INT_TXSTARTED_MASK |
+ NRF_TWIS_INT_WRITE_MASK |
+ NRF_TWIS_INT_READ_MASK;
+
+/**
+ * @brief Clear all events
+ *
+ * Function clears all actually pending events
+ */
+static void nrfx_twis_clear_all_events(NRF_TWIS_Type * const p_reg)
+{
+ /* Clear all events */
+ nrf_twis_event_clear(p_reg, NRF_TWIS_EVENT_STOPPED);
+ nrf_twis_event_clear(p_reg, NRF_TWIS_EVENT_ERROR);
+ nrf_twis_event_clear(p_reg, NRF_TWIS_EVENT_RXSTARTED);
+ nrf_twis_event_clear(p_reg, NRF_TWIS_EVENT_TXSTARTED);
+ nrf_twis_event_clear(p_reg, NRF_TWIS_EVENT_WRITE);
+ nrf_twis_event_clear(p_reg, NRF_TWIS_EVENT_READ);
+}
+
+/**
+ * @brief Reset all the registers to known state
+ *
+ * This function clears all registers that requires it to known state.
+ * TWIS is left disabled after this function.
+ * All events are cleared.
+ * @param[out] p_reg TWIS to reset register address
+ */
+static inline void nrfx_twis_swreset(NRF_TWIS_Type * p_reg)
+{
+ /* Disable TWIS */
+ nrf_twis_disable(p_reg);
+
+ /* Disconnect pins */
+ nrf_twis_pins_set(p_reg, ~0U, ~0U);
+
+ /* Disable interrupt global for the instance */
+ NRFX_IRQ_DISABLE(nrfx_get_irq_number(p_reg));
+
+ /* Disable interrupts */
+ nrf_twis_int_disable(p_reg, ~0U);
+}
+
+/**
+ * @brief Configure pin
+ *
+ * Function configures selected for work as SDA or SCL.
+ * @param pin Pin number to configure
+ */
+static inline void nrfx_twis_config_pin(uint32_t pin, nrf_gpio_pin_pull_t pull)
+{
+ nrf_gpio_cfg(pin,
+ NRF_GPIO_PIN_DIR_INPUT,
+ NRF_GPIO_PIN_INPUT_DISCONNECT,
+ pull,
+ NRF_GPIO_PIN_S0D1,
+ NRF_GPIO_PIN_NOSENSE);
+}
+
+/**
+ * @brief Auxiliary function for getting event state on right bit possition
+ *
+ * This function calls @ref nrf_twis_event_get function but the the result
+ * is shifted to match INTEN register scheme.
+ *
+ * @param[in,out] p_reg TWIS to read event from
+ * @param ev Event code
+ *
+ * @return Selected event state shifted by @ref nrfx_event_to_bitpos
+ *
+ * @sa nrf_twis_event_get
+ * @sa nrfx_event_to_bitpos
+ */
+static inline uint32_t nrfx_twis_event_bit_get(NRF_TWIS_Type * p_reg,
+ nrf_twis_event_t ev)
+{
+ return (uint32_t)nrf_twis_event_get_and_clear(p_reg, ev) << nrfx_event_to_bitpos(ev);
+}
+
+/**
+ * @brief Auxiliary function for checking event bit inside given flags value
+ *
+ * Function used here to check presence of the event inside given flags value.
+ * It transforms given event to bit possition and then checks if in given variable it is cleared.
+ *
+ * @param flags Flags to test
+ * @param ev Event code
+ *
+ * @retval true Flag for selected event is set
+ * @retval false Flag for selected event is cleared
+ */
+static inline bool nrfx_twis_check_bit(uint32_t flags,
+ nrf_twis_event_t ev)
+{
+ return 0 != (flags & (1U << nrfx_event_to_bitpos(ev)));
+}
+
+/**
+ * @brief Auxiliary function for clearing event bit in given flags value
+ *
+ * Function used to clear selected event bit.
+ *
+ * @param flags Flags to process
+ * @param ev Event code to clear
+ *
+ * @return Value @em flags with cleared event bit that matches given @em ev
+ */
+static inline uint32_t nrfx_twis_clear_bit(uint32_t flags,
+ nrf_twis_event_t ev)
+{
+ return flags & ~(1U << nrfx_event_to_bitpos(ev));
+}
+
+static void call_event_handler(twis_control_block_t const * p_cb,
+ nrfx_twis_evt_t const * p_evt)
+{
+ nrfx_twis_event_handler_t handler = p_cb->ev_handler;
+ if (handler != NULL)
+ {
+ handler(p_evt);
+ }
+}
+
+/**
+ * @brief Auxiliary function for error processing
+ *
+ * Function called when in current substate the event apears and it cannot be processed.
+ * It should be called also on ERROR event.
+ * If given @em error parameter has zero value the @ref NRFX_TWIS_ERROR_UNEXPECTED_EVENT
+ * would be set.
+ *
+ * @param p_cb Pointer to the driver instance control block.
+ * @param evt What error event raport to event handler
+ * @param error Error flags
+ */
+static inline void nrfx_twis_process_error(twis_control_block_t * p_cb,
+ nrfx_twis_evt_type_t evt,
+ uint32_t error)
+{
+ if (0 == error)
+ {
+ error = NRFX_TWIS_ERROR_UNEXPECTED_EVENT;
+ }
+ nrfx_twis_evt_t evdata;
+ evdata.type = evt;
+ evdata.data.error = error;
+
+ p_cb->error |= error;
+
+ call_event_handler(p_cb, &evdata);
+}
+
+static void nrfx_twis_state_machine(NRF_TWIS_Type * p_reg,
+ twis_control_block_t * p_cb)
+{
+ if (!NRFX_TWIS_NO_SYNC_MODE)
+ {
+ /* Exclude parallel processing of this function */
+ if (p_cb->semaphore)
+ {
+ return;
+ }
+ p_cb->semaphore = 1;
+ }
+
+ /* Event data structure to be passed into event handler */
+ nrfx_twis_evt_t evdata;
+ /* Current substate copy */
+ nrfx_twis_substate_t substate = p_cb->substate;
+ /* Event flags */
+ uint32_t ev = 0;
+
+ /* Get all events */
+ ev |= nrfx_twis_event_bit_get(p_reg, NRF_TWIS_EVENT_STOPPED);
+ ev |= nrfx_twis_event_bit_get(p_reg, NRF_TWIS_EVENT_ERROR);
+ ev |= nrfx_twis_event_bit_get(p_reg, NRF_TWIS_EVENT_RXSTARTED);
+ ev |= nrfx_twis_event_bit_get(p_reg, NRF_TWIS_EVENT_TXSTARTED);
+ ev |= nrfx_twis_event_bit_get(p_reg, NRF_TWIS_EVENT_WRITE);
+ ev |= nrfx_twis_event_bit_get(p_reg, NRF_TWIS_EVENT_READ);
+
+ /* State machine */
+ while (0 != ev)
+ {
+ switch (substate)
+ {
+ case NRFX_TWIS_SUBSTATE_IDLE:
+ if (nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_STOPPED))
+ {
+ /* Stopped event is always allowed in IDLE state - just ignore */
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_STOPPED);
+ }
+ else if (nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_READ))
+ {
+ evdata.type = NRFX_TWIS_EVT_READ_REQ;
+ if (nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_TXSTARTED))
+ {
+ substate = NRFX_TWIS_SUBSTATE_READ_PENDING;
+ evdata.data.buf_req = false;
+ }
+ else
+ {
+ substate = NRFX_TWIS_SUBSTATE_READ_WAITING;
+ evdata.data.buf_req = true;
+ }
+ call_event_handler(p_cb, &evdata);
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_READ);
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_TXSTARTED);
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_WRITE);
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_RXSTARTED);
+ }
+ else if (nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_WRITE))
+ {
+ evdata.type = NRFX_TWIS_EVT_WRITE_REQ;
+ if (nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_RXSTARTED))
+ {
+ substate = NRFX_TWIS_SUBSTATE_WRITE_PENDING;
+ evdata.data.buf_req = false;
+ }
+ else
+ {
+ substate = NRFX_TWIS_SUBSTATE_WRITE_WAITING;
+ evdata.data.buf_req = true;
+ }
+ call_event_handler(p_cb, &evdata);
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_READ);
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_TXSTARTED);
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_WRITE);
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_RXSTARTED);
+ }
+ else
+ {
+ nrfx_twis_process_error(p_cb,
+ NRFX_TWIS_EVT_GENERAL_ERROR,
+ nrf_twis_error_source_get_and_clear(p_reg));
+ ev = 0;
+ }
+ break;
+ case NRFX_TWIS_SUBSTATE_READ_WAITING:
+ if (nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_TXSTARTED) ||
+ nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_WRITE) ||
+ nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_READ) ||
+ nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_STOPPED))
+ {
+ substate = NRFX_TWIS_SUBSTATE_READ_PENDING;
+ /* Any other bits requires further processing in PENDING substate */
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_TXSTARTED);
+ }
+ else
+ {
+ nrfx_twis_process_error(p_cb,
+ NRFX_TWIS_EVT_READ_ERROR,
+ nrf_twis_error_source_get_and_clear(p_reg));
+ substate = NRFX_TWIS_SUBSTATE_IDLE;
+ ev = 0;
+ }
+ break;
+ case NRFX_TWIS_SUBSTATE_READ_PENDING:
+ if (nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_WRITE) ||
+ nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_READ) ||
+ nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_STOPPED))
+ {
+ evdata.type = NRFX_TWIS_EVT_READ_DONE;
+ evdata.data.tx_amount = nrf_twis_tx_amount_get(p_reg);
+ NRFX_LOG_INFO("Transfer tx_len:%d", evdata.data.tx_amount);
+ NRFX_LOG_DEBUG("Tx data:");
+ NRFX_LOG_HEXDUMP_DEBUG((uint8_t const *)p_reg->TXD.PTR,
+ evdata.data.tx_amount * sizeof(uint8_t));
+ call_event_handler(p_cb, &evdata);
+ /* Go to idle and repeat the state machine if READ or WRITE events detected.
+ * This time READ or WRITE would be started */
+ substate = NRFX_TWIS_SUBSTATE_IDLE;
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_STOPPED);
+ }
+ else
+ {
+ nrfx_twis_process_error(p_cb,
+ NRFX_TWIS_EVT_READ_ERROR,
+ nrf_twis_error_source_get_and_clear(p_reg));
+ substate = NRFX_TWIS_SUBSTATE_IDLE;
+ ev = 0;
+ }
+ break;
+ case NRFX_TWIS_SUBSTATE_WRITE_WAITING:
+ if (nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_RXSTARTED) ||
+ nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_WRITE) ||
+ nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_READ) ||
+ nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_STOPPED))
+ {
+ substate = NRFX_TWIS_SUBSTATE_WRITE_PENDING;
+ /* Any other bits requires further processing in PENDING substate */
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_RXSTARTED);
+ }
+ else
+ {
+ nrfx_twis_process_error(p_cb,
+ NRFX_TWIS_EVT_WRITE_ERROR,
+ nrf_twis_error_source_get_and_clear(p_reg));
+ substate = NRFX_TWIS_SUBSTATE_IDLE;
+ ev = 0;
+ }
+ break;
+ case NRFX_TWIS_SUBSTATE_WRITE_PENDING:
+ if (nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_WRITE) ||
+ nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_READ) ||
+ nrfx_twis_check_bit(ev, NRF_TWIS_EVENT_STOPPED))
+ {
+ evdata.type = NRFX_TWIS_EVT_WRITE_DONE;
+ evdata.data.rx_amount = nrf_twis_rx_amount_get(p_reg);
+ call_event_handler(p_cb, &evdata);
+ /* Go to idle and repeat the state machine if READ or WRITE events detected.
+ * This time READ or WRITE would be started */
+ substate = NRFX_TWIS_SUBSTATE_IDLE;
+ ev = nrfx_twis_clear_bit(ev, NRF_TWIS_EVENT_STOPPED);
+ }
+ else
+ {
+ nrfx_twis_process_error(p_cb,
+ NRFX_TWIS_EVT_WRITE_ERROR,
+ nrf_twis_error_source_get_and_clear(p_reg));
+ substate = NRFX_TWIS_SUBSTATE_IDLE;
+ ev = 0;
+ }
+ break;
+ default:
+ substate = NRFX_TWIS_SUBSTATE_IDLE;
+ /* Do not clear any events and repeat the machine */
+ break;
+ }
+ }
+
+ p_cb->substate = substate;
+ if (!NRFX_TWIS_NO_SYNC_MODE)
+ {
+ p_cb->semaphore = 0;
+ }
+}
+
+
+static inline void nrfx_twis_preprocess_status(nrfx_twis_t const * p_instance)
+{
+ if (!NRFX_TWIS_NO_SYNC_MODE)
+ {
+ NRF_TWIS_Type * p_reg = p_instance->p_reg;
+ twis_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ if (NULL == p_cb->ev_handler)
+ {
+ nrfx_twis_state_machine(p_reg, p_cb);
+ }
+ }
+}
+
+
+/* -------------------------------------------------------------------------
+ * Implementation of interface functions
+ *
+ */
+
+
+nrfx_err_t nrfx_twis_init(nrfx_twis_t const * p_instance,
+ nrfx_twis_config_t const * p_config,
+ nrfx_twis_event_handler_t event_handler)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(p_config->scl != p_config->sda);
+ nrfx_err_t err_code;
+
+ NRF_TWIS_Type * p_reg = p_instance->p_reg;
+ twis_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+
+ if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ static nrfx_irq_handler_t const irq_handlers[NRFX_TWIS_ENABLED_COUNT] = {
+ #if NRFX_CHECK(NRFX_TWIS0_ENABLED)
+ nrfx_twis_0_irq_handler,
+ #endif
+ #if NRFX_CHECK(NRFX_TWIS1_ENABLED)
+ nrfx_twis_1_irq_handler,
+ #endif
+ };
+ if (nrfx_prs_acquire(p_reg,
+ irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+#endif // NRFX_CHECK(NRFX_PRS_ENABLED)
+
+ if (!NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY)
+ {
+ nrfx_twis_swreset(p_reg);
+ }
+
+ nrfx_twis_config_pin(p_config->scl, p_config->scl_pull);
+ nrfx_twis_config_pin(p_config->sda, p_config->sda_pull);
+
+ nrf_twis_config_addr_mask_t addr_mask = (nrf_twis_config_addr_mask_t)0;
+ if (0 == (p_config->addr[0] | p_config->addr[1]))
+ {
+ addr_mask = NRF_TWIS_CONFIG_ADDRESS0_MASK;
+ }
+ else
+ {
+ if (0 != p_config->addr[0])
+ {
+ addr_mask |= NRF_TWIS_CONFIG_ADDRESS0_MASK;
+ }
+ if (0 != p_config->addr[1])
+ {
+ addr_mask |= NRF_TWIS_CONFIG_ADDRESS1_MASK;
+ }
+ }
+
+ /* Peripheral interrupt configure
+ * (note - interrupts still needs to be configured in INTEN register.
+ * This is done in enable function) */
+ NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(p_reg),
+ p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_reg));
+
+ /* Configure */
+ nrf_twis_pins_set (p_reg, p_config->scl, p_config->sda);
+ nrf_twis_address_set (p_reg, 0, p_config->addr[0]);
+ nrf_twis_address_set (p_reg, 1, p_config->addr[1]);
+ nrf_twis_config_address_set(p_reg, addr_mask);
+
+ /* Clear semaphore */
+ if (!NRFX_TWIS_NO_SYNC_MODE)
+ {
+ p_cb->semaphore = 0;
+ }
+ /* Set internal instance variables */
+ p_cb->substate = NRFX_TWIS_SUBSTATE_IDLE;
+ p_cb->ev_handler = event_handler;
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+void nrfx_twis_uninit(nrfx_twis_t const * p_instance)
+{
+ NRF_TWIS_Type * p_reg = p_instance->p_reg;
+ twis_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ TWIS_PSEL_Type psel = p_reg->PSEL;
+
+ nrfx_twis_swreset(p_reg);
+
+ /* Clear pins state if */
+ if (!(TWIS_PSEL_SCL_CONNECT_Msk & psel.SCL))
+ {
+ nrf_gpio_cfg_default(psel.SCL);
+ }
+ if (!(TWIS_PSEL_SDA_CONNECT_Msk & psel.SDA))
+ {
+ nrf_gpio_cfg_default(psel.SDA);
+ }
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ nrfx_prs_release(p_reg);
+#endif
+
+ /* Clear variables */
+ p_cb->ev_handler = NULL;
+ p_cb->state = NRFX_DRV_STATE_UNINITIALIZED;
+}
+
+
+void nrfx_twis_enable(nrfx_twis_t const * p_instance)
+{
+ NRF_TWIS_Type * p_reg = p_instance->p_reg;
+ twis_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED);
+
+ nrfx_twis_clear_all_events(p_reg);
+
+ /* Enable interrupts */
+ if (NULL != p_cb->ev_handler)
+ {
+ nrf_twis_int_enable(p_reg, m_used_ints_mask);
+ }
+
+ nrf_twis_enable(p_reg);
+ p_cb->error = 0;
+ p_cb->state = NRFX_DRV_STATE_POWERED_ON;
+ p_cb->substate = NRFX_TWIS_SUBSTATE_IDLE;
+}
+
+
+void nrfx_twis_disable(nrfx_twis_t const * p_instance)
+{
+ NRF_TWIS_Type * p_reg = p_instance->p_reg;
+ twis_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state != NRFX_DRV_STATE_UNINITIALIZED);
+
+ nrf_twis_int_disable(p_reg, m_used_ints_mask);
+
+ nrf_twis_disable(p_reg);
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+}
+
+/* ARM recommends not using the LDREX and STREX instructions in C code.
+ * This is because the compiler might generate loads and stores between
+ * LDREX and STREX, potentially clearing the exclusive monitor set by LDREX.
+ * This recommendation also applies to the byte, halfword, and doubleword
+ * variants LDREXB, STREXB, LDREXH, STREXH, LDREXD, and STREXD.
+ *
+ * This is the reason for the function below to be implemented in assembly.
+ */
+//lint -save -e578
+#if defined (__CC_ARM )
+static __ASM uint32_t nrfx_twis_error_get_and_clear_internal(uint32_t volatile * perror)
+{
+ mov r3, r0
+ mov r1, #0
+nrfx_twis_error_get_and_clear_internal_try
+ ldrex r0, [r3]
+ strex r2, r1, [r3]
+ cmp r2, r1 /* did this succeed? */
+ bne nrfx_twis_error_get_and_clear_internal_try /* no - try again */
+ bx lr
+}
+#elif defined ( __GNUC__ )
+static uint32_t nrfx_twis_error_get_and_clear_internal(uint32_t volatile * perror)
+{
+ uint32_t ret;
+ uint32_t temp;
+ __ASM volatile(
+ " .syntax unified \n"
+ "nrfx_twis_error_get_and_clear_internal_try: \n"
+ " ldrex %[ret], [%[perror]] \n"
+ " strex %[temp], %[zero], [%[perror]] \n"
+ " cmp %[temp], %[zero] \n"
+ " bne nrfx_twis_error_get_and_clear_internal_try \n"
+ : /* Output */
+ [ret]"=&l"(ret),
+ [temp]"=&l"(temp)
+ : /* Input */
+ [zero]"l"(0),
+ [perror]"l"(perror)
+ );
+ (void)temp;
+ return ret;
+}
+#elif defined ( __ICCARM__ )
+static uint32_t nrfx_twis_error_get_and_clear_internal(uint32_t volatile * perror)
+{
+ uint32_t ret;
+ uint32_t temp;
+ __ASM volatile(
+ "1: \n"
+ " ldrex %[ret], [%[perror]] \n"
+ " strex %[temp], %[zero], [%[perror]] \n"
+ " cmp %[temp], %[zero] \n"
+ " bne.n 1b \n"
+ : /* Output */
+ [ret]"=&l"(ret),
+ [temp]"=&l"(temp)
+ : /* Input */
+ [zero]"l"(0),
+ [perror]"l"(perror)
+ );
+ (void)temp;
+ return ret;
+}
+#else
+ #error Unknown compiler
+#endif
+//lint -restore
+
+uint32_t nrfx_twis_error_get_and_clear(nrfx_twis_t const * p_instance)
+{
+ nrfx_twis_preprocess_status(p_instance);
+ /* Make sure that access to error member is atomic
+ * so there is no bit that is cleared if it is not copied to local variable already. */
+ twis_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ return nrfx_twis_error_get_and_clear_internal(&p_cb->error);
+}
+
+
+nrfx_err_t nrfx_twis_tx_prepare(nrfx_twis_t const * p_instance,
+ void const * p_buf,
+ size_t size)
+{
+ nrfx_err_t err_code;
+ twis_control_block_t const * p_cb = &m_cb[p_instance->drv_inst_idx];
+
+ /* Check power state*/
+ if (p_cb->state != NRFX_DRV_STATE_POWERED_ON)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ /* Check data address */
+ if (!nrfx_is_in_ram(p_buf))
+ {
+ err_code = NRFX_ERROR_INVALID_ADDR;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ /* Check data size */
+ if ((size & TWIS_TXD_MAXCNT_MAXCNT_Msk) != size)
+ {
+ err_code = NRFX_ERROR_INVALID_LENGTH;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ nrf_twis_tx_prepare(p_instance->p_reg,
+ (uint8_t const *)p_buf,
+ (nrf_twis_amount_t)size);
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+nrfx_err_t nrfx_twis_rx_prepare(nrfx_twis_t const * p_instance,
+ void * p_buf,
+ size_t size)
+{
+ nrfx_err_t err_code;
+ twis_control_block_t const * p_cb = &m_cb[p_instance->drv_inst_idx];
+
+ /* Check power state*/
+ if (p_cb->state != NRFX_DRV_STATE_POWERED_ON)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ /* Check data address */
+ if (!nrfx_is_in_ram(p_buf))
+ {
+ err_code = NRFX_ERROR_INVALID_ADDR;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ /* Check data size */
+ if ((size & TWIS_RXD_MAXCNT_MAXCNT_Msk) != size)
+ {
+ err_code = NRFX_ERROR_INVALID_LENGTH;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ nrf_twis_rx_prepare(p_instance->p_reg,
+ (uint8_t *)p_buf,
+ (nrf_twis_amount_t)size);
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+bool nrfx_twis_is_busy(nrfx_twis_t const * p_instance)
+{
+ nrfx_twis_preprocess_status(p_instance);
+ twis_control_block_t const * p_cb = &m_cb[p_instance->drv_inst_idx];
+ return NRFX_TWIS_SUBSTATE_IDLE != p_cb->substate;
+}
+
+bool nrfx_twis_is_waiting_tx_buff(nrfx_twis_t const * p_instance)
+{
+ nrfx_twis_preprocess_status(p_instance);
+ twis_control_block_t const * p_cb = &m_cb[p_instance->drv_inst_idx];
+ return NRFX_TWIS_SUBSTATE_READ_WAITING == p_cb->substate;
+}
+
+bool nrfx_twis_is_waiting_rx_buff(nrfx_twis_t const * p_instance)
+{
+ nrfx_twis_preprocess_status(p_instance);
+ twis_control_block_t const * p_cb = &m_cb[p_instance->drv_inst_idx];
+ return NRFX_TWIS_SUBSTATE_WRITE_WAITING == p_cb->substate;
+}
+
+bool nrfx_twis_is_pending_tx(nrfx_twis_t const * p_instance)
+{
+ nrfx_twis_preprocess_status(p_instance);
+ twis_control_block_t const * p_cb = &m_cb[p_instance->drv_inst_idx];
+ return NRFX_TWIS_SUBSTATE_READ_PENDING == p_cb->substate;
+}
+
+bool nrfx_twis_is_pending_rx(nrfx_twis_t const * p_instance)
+{
+ nrfx_twis_preprocess_status(p_instance);
+ twis_control_block_t const * p_cb = &m_cb[p_instance->drv_inst_idx];
+ return NRFX_TWIS_SUBSTATE_WRITE_PENDING == p_cb->substate;
+}
+
+
+#if NRFX_CHECK(NRFX_TWIS0_ENABLED)
+void nrfx_twis_0_irq_handler(void)
+{
+ nrfx_twis_state_machine(NRF_TWIS0, &m_cb[NRFX_TWIS0_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_TWIS1_ENABLED)
+void nrfx_twis_1_irq_handler(void)
+{
+ nrfx_twis_state_machine(NRF_TWIS1, &m_cb[NRFX_TWIS1_INST_IDX]);
+}
+#endif
+
+#endif // NRFX_CHECK(NRFX_TWIS_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_uart.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_uart.c
new file mode 100644
index 0000000..8c5f487
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_uart.c
@@ -0,0 +1,649 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_UART_ENABLED)
+
+#if !NRFX_CHECK(NRFX_UART0_ENABLED)
+#error "No enabled UART instances. Check <nrfx_config.h>."
+#endif
+
+#include <nrfx_uart.h>
+#include "prs/nrfx_prs.h"
+#include <hal/nrf_gpio.h>
+
+#define NRFX_LOG_MODULE UART
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRF_UART_EVENT_ERROR ? "NRF_UART_EVENT_ERROR" : \
+ "UNKNOWN EVENT")
+
+
+#define TX_COUNTER_ABORT_REQ_VALUE UINT32_MAX
+
+typedef struct
+{
+ void * p_context;
+ nrfx_uart_event_handler_t handler;
+ uint8_t const * p_tx_buffer;
+ uint8_t * p_rx_buffer;
+ uint8_t * p_rx_secondary_buffer;
+ size_t tx_buffer_length;
+ size_t rx_buffer_length;
+ size_t rx_secondary_buffer_length;
+ volatile size_t tx_counter;
+ volatile size_t rx_counter;
+ volatile bool tx_abort;
+ bool rx_enabled;
+ nrfx_drv_state_t state;
+} uart_control_block_t;
+static uart_control_block_t m_cb[NRFX_UART_ENABLED_COUNT];
+
+static void apply_config(nrfx_uart_t const * p_instance,
+ nrfx_uart_config_t const * p_config)
+{
+ if (p_config->pseltxd != NRF_UART_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_pin_set(p_config->pseltxd);
+ nrf_gpio_cfg_output(p_config->pseltxd);
+ }
+ if (p_config->pselrxd != NRF_UART_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_cfg_input(p_config->pselrxd, NRF_GPIO_PIN_NOPULL);
+ }
+
+ nrf_uart_baudrate_set(p_instance->p_reg, p_config->baudrate);
+ nrf_uart_configure(p_instance->p_reg, p_config->parity, p_config->hwfc);
+ nrf_uart_txrx_pins_set(p_instance->p_reg, p_config->pseltxd, p_config->pselrxd);
+ if (p_config->hwfc == NRF_UART_HWFC_ENABLED)
+ {
+ if (p_config->pselcts != NRF_UART_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_cfg_input(p_config->pselcts, NRF_GPIO_PIN_NOPULL);
+ }
+ if (p_config->pselrts != NRF_UART_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_pin_set(p_config->pselrts);
+ nrf_gpio_cfg_output(p_config->pselrts);
+ }
+ nrf_uart_hwfc_pins_set(p_instance->p_reg, p_config->pselrts, p_config->pselcts);
+ }
+}
+
+static void interrupts_enable(nrfx_uart_t const * p_instance,
+ uint8_t interrupt_priority)
+{
+ nrf_uart_event_clear(p_instance->p_reg, NRF_UART_EVENT_TXDRDY);
+ nrf_uart_event_clear(p_instance->p_reg, NRF_UART_EVENT_RXTO);
+ nrf_uart_int_enable(p_instance->p_reg, NRF_UART_INT_MASK_TXDRDY |
+ NRF_UART_INT_MASK_RXTO);
+ NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number((void *)p_instance->p_reg),
+ interrupt_priority);
+ NRFX_IRQ_ENABLE(nrfx_get_irq_number((void *)p_instance->p_reg));
+}
+
+static void interrupts_disable(nrfx_uart_t const * p_instance)
+{
+ nrf_uart_int_disable(p_instance->p_reg, NRF_UART_INT_MASK_RXDRDY |
+ NRF_UART_INT_MASK_TXDRDY |
+ NRF_UART_INT_MASK_ERROR |
+ NRF_UART_INT_MASK_RXTO);
+ NRFX_IRQ_DISABLE(nrfx_get_irq_number((void *)p_instance->p_reg));
+}
+
+static void pins_to_default(nrfx_uart_t const * p_instance)
+{
+ /* Reset pins to default states */
+ uint32_t txd;
+ uint32_t rxd;
+ uint32_t rts;
+ uint32_t cts;
+
+ txd = nrf_uart_tx_pin_get(p_instance->p_reg);
+ rxd = nrf_uart_rx_pin_get(p_instance->p_reg);
+ rts = nrf_uart_rts_pin_get(p_instance->p_reg);
+ cts = nrf_uart_cts_pin_get(p_instance->p_reg);
+ nrf_uart_txrx_pins_disconnect(p_instance->p_reg);
+ nrf_uart_hwfc_pins_disconnect(p_instance->p_reg);
+
+ if (txd != NRF_UART_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_cfg_default(txd);
+ }
+ if (rxd != NRF_UART_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_cfg_default(rxd);
+ }
+ if (cts != NRF_UART_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_cfg_default(cts);
+ }
+ if (rts != NRF_UART_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_cfg_default(rts);
+ }
+}
+
+nrfx_err_t nrfx_uart_init(nrfx_uart_t const * p_instance,
+ nrfx_uart_config_t const * p_config,
+ nrfx_uart_event_handler_t event_handler)
+{
+ NRFX_ASSERT(p_config);
+ uart_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ static nrfx_irq_handler_t const irq_handlers[NRFX_UART_ENABLED_COUNT] = {
+ #if NRFX_CHECK(NRFX_UART0_ENABLED)
+ nrfx_uart_0_irq_handler,
+ #endif
+ };
+ if (nrfx_prs_acquire(p_instance->p_reg,
+ irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+#endif // NRFX_CHECK(NRFX_PRS_ENABLED)
+
+ apply_config(p_instance, p_config);
+
+ p_cb->handler = event_handler;
+ p_cb->p_context = p_config->p_context;
+
+ if (p_cb->handler)
+ {
+ interrupts_enable(p_instance, p_config->interrupt_priority);
+ }
+
+ nrf_uart_enable(p_instance->p_reg);
+ p_cb->rx_buffer_length = 0;
+ p_cb->rx_secondary_buffer_length = 0;
+ p_cb->rx_enabled = false;
+ p_cb->tx_buffer_length = 0;
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_uart_uninit(nrfx_uart_t const * p_instance)
+{
+ uart_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+
+ nrf_uart_disable(p_instance->p_reg);
+
+ if (p_cb->handler)
+ {
+ interrupts_disable(p_instance);
+ }
+
+ pins_to_default(p_instance);
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ nrfx_prs_release(p_instance->p_reg);
+#endif
+
+ p_cb->state = NRFX_DRV_STATE_UNINITIALIZED;
+ p_cb->handler = NULL;
+ NRFX_LOG_INFO("Instance uninitialized: %d.", p_instance->drv_inst_idx);
+}
+
+static void tx_byte(NRF_UART_Type * p_uart, uart_control_block_t * p_cb)
+{
+ nrf_uart_event_clear(p_uart, NRF_UART_EVENT_TXDRDY);
+ uint8_t txd = p_cb->p_tx_buffer[p_cb->tx_counter];
+ p_cb->tx_counter++;
+ nrf_uart_txd_set(p_uart, txd);
+}
+
+static bool tx_blocking(NRF_UART_Type * p_uart, uart_control_block_t * p_cb)
+{
+ while (p_cb->tx_counter < p_cb->tx_buffer_length)
+ {
+ // Wait until the transmitter is ready to accept a new byte.
+ // Exit immediately if the transfer has been aborted.
+ while (!nrf_uart_event_check(p_uart, NRF_UART_EVENT_TXDRDY))
+ {
+ if (p_cb->tx_abort)
+ {
+ return false;
+ }
+ }
+
+ tx_byte(p_uart, p_cb);
+ }
+
+ return true;
+}
+
+nrfx_err_t nrfx_uart_tx(nrfx_uart_t const * p_instance,
+ uint8_t const * p_data,
+ size_t length)
+{
+ uart_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED);
+ NRFX_ASSERT(p_data);
+ NRFX_ASSERT(length > 0);
+
+ nrfx_err_t err_code;
+
+ if (nrfx_uart_tx_in_progress(p_instance))
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ p_cb->tx_buffer_length = length;
+ p_cb->p_tx_buffer = p_data;
+ p_cb->tx_counter = 0;
+ p_cb->tx_abort = false;
+
+ NRFX_LOG_INFO("Transfer tx_len: %d.", p_cb->tx_buffer_length);
+ NRFX_LOG_DEBUG("Tx data:");
+ NRFX_LOG_HEXDUMP_DEBUG(p_cb->p_tx_buffer,
+ p_cb->tx_buffer_length * sizeof(p_cb->p_tx_buffer[0]));
+
+ err_code = NRFX_SUCCESS;
+
+ nrf_uart_event_clear(p_instance->p_reg, NRF_UART_EVENT_TXDRDY);
+ nrf_uart_task_trigger(p_instance->p_reg, NRF_UART_TASK_STARTTX);
+
+ tx_byte(p_instance->p_reg, p_cb);
+
+ if (p_cb->handler == NULL)
+ {
+ if (!tx_blocking(p_instance->p_reg, p_cb))
+ {
+ // The transfer has been aborted.
+ err_code = NRFX_ERROR_FORBIDDEN;
+ }
+ else
+ {
+ // Wait until the last byte is completely transmitted.
+ while (!nrf_uart_event_check(p_instance->p_reg, NRF_UART_EVENT_TXDRDY))
+ {}
+ nrf_uart_task_trigger(p_instance->p_reg, NRF_UART_TASK_STOPTX);
+ }
+ p_cb->tx_buffer_length = 0;
+ }
+
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+bool nrfx_uart_tx_in_progress(nrfx_uart_t const * p_instance)
+{
+ return (m_cb[p_instance->drv_inst_idx].tx_buffer_length != 0);
+}
+
+static void rx_enable(nrfx_uart_t const * p_instance)
+{
+ nrf_uart_event_clear(p_instance->p_reg, NRF_UART_EVENT_ERROR);
+ nrf_uart_event_clear(p_instance->p_reg, NRF_UART_EVENT_RXDRDY);
+ nrf_uart_task_trigger(p_instance->p_reg, NRF_UART_TASK_STARTRX);
+}
+
+static void rx_byte(NRF_UART_Type * p_uart, uart_control_block_t * p_cb)
+{
+ if (!p_cb->rx_buffer_length)
+ {
+ nrf_uart_event_clear(p_uart, NRF_UART_EVENT_RXDRDY);
+ // Byte received when buffer is not set - data lost.
+ (void) nrf_uart_rxd_get(p_uart);
+ return;
+ }
+ nrf_uart_event_clear(p_uart, NRF_UART_EVENT_RXDRDY);
+ p_cb->p_rx_buffer[p_cb->rx_counter] = nrf_uart_rxd_get(p_uart);
+ p_cb->rx_counter++;
+}
+
+nrfx_err_t nrfx_uart_rx(nrfx_uart_t const * p_instance,
+ uint8_t * p_data,
+ size_t length)
+{
+ uart_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+
+ NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_INITIALIZED);
+ NRFX_ASSERT(p_data);
+ NRFX_ASSERT(length > 0);
+
+ nrfx_err_t err_code;
+
+ bool second_buffer = false;
+
+ if (p_cb->handler)
+ {
+ nrf_uart_int_disable(p_instance->p_reg, NRF_UART_INT_MASK_RXDRDY |
+ NRF_UART_INT_MASK_ERROR);
+ }
+ if (p_cb->rx_buffer_length != 0)
+ {
+ if (p_cb->rx_secondary_buffer_length != 0)
+ {
+ if (p_cb->handler)
+ {
+ nrf_uart_int_enable(p_instance->p_reg, NRF_UART_INT_MASK_RXDRDY |
+ NRF_UART_INT_MASK_ERROR);
+ }
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ second_buffer = true;
+ }
+
+ if (!second_buffer)
+ {
+ p_cb->rx_buffer_length = length;
+ p_cb->p_rx_buffer = p_data;
+ p_cb->rx_counter = 0;
+ p_cb->rx_secondary_buffer_length = 0;
+ }
+ else
+ {
+ p_cb->p_rx_secondary_buffer = p_data;
+ p_cb->rx_secondary_buffer_length = length;
+ }
+
+ NRFX_LOG_INFO("Transfer rx_len: %d.", length);
+
+ if ((!p_cb->rx_enabled) && (!second_buffer))
+ {
+ rx_enable(p_instance);
+ }
+
+ if (p_cb->handler == NULL)
+ {
+ nrf_uart_event_clear(p_instance->p_reg, NRF_UART_EVENT_RXTO);
+
+ bool rxrdy;
+ bool rxto;
+ bool error;
+ do
+ {
+ do
+ {
+ error = nrf_uart_event_check(p_instance->p_reg, NRF_UART_EVENT_ERROR);
+ rxrdy = nrf_uart_event_check(p_instance->p_reg, NRF_UART_EVENT_RXDRDY);
+ rxto = nrf_uart_event_check(p_instance->p_reg, NRF_UART_EVENT_RXTO);
+ } while ((!rxrdy) && (!rxto) && (!error));
+
+ if (error || rxto)
+ {
+ break;
+ }
+ rx_byte(p_instance->p_reg, p_cb);
+ } while (p_cb->rx_buffer_length > p_cb->rx_counter);
+
+ p_cb->rx_buffer_length = 0;
+ if (error)
+ {
+ err_code = NRFX_ERROR_INTERNAL;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ if (rxto)
+ {
+ err_code = NRFX_ERROR_FORBIDDEN;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ if (p_cb->rx_enabled)
+ {
+ nrf_uart_task_trigger(p_instance->p_reg, NRF_UART_TASK_STARTRX);
+ }
+ else
+ {
+ // Skip stopping RX if driver is forced to be enabled.
+ nrf_uart_task_trigger(p_instance->p_reg, NRF_UART_TASK_STOPRX);
+ }
+ }
+ else
+ {
+ nrf_uart_int_enable(p_instance->p_reg, NRF_UART_INT_MASK_RXDRDY |
+ NRF_UART_INT_MASK_ERROR);
+ }
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+bool nrfx_uart_rx_ready(nrfx_uart_t const * p_instance)
+{
+ return nrf_uart_event_check(p_instance->p_reg, NRF_UART_EVENT_RXDRDY);
+}
+
+void nrfx_uart_rx_enable(nrfx_uart_t const * p_instance)
+{
+ if (!m_cb[p_instance->drv_inst_idx].rx_enabled)
+ {
+ rx_enable(p_instance);
+ m_cb[p_instance->drv_inst_idx].rx_enabled = true;
+ }
+}
+
+void nrfx_uart_rx_disable(nrfx_uart_t const * p_instance)
+{
+ nrf_uart_task_trigger(p_instance->p_reg, NRF_UART_TASK_STOPRX);
+ m_cb[p_instance->drv_inst_idx].rx_enabled = false;
+}
+
+uint32_t nrfx_uart_errorsrc_get(nrfx_uart_t const * p_instance)
+{
+ nrf_uart_event_clear(p_instance->p_reg, NRF_UART_EVENT_ERROR);
+ return nrf_uart_errorsrc_get_and_clear(p_instance->p_reg);
+}
+
+static void rx_done_event(uart_control_block_t * p_cb,
+ size_t bytes,
+ uint8_t * p_data)
+{
+ nrfx_uart_event_t event;
+
+ event.type = NRFX_UART_EVT_RX_DONE;
+ event.data.rxtx.bytes = bytes;
+ event.data.rxtx.p_data = p_data;
+
+ p_cb->handler(&event, p_cb->p_context);
+}
+
+static void tx_done_event(uart_control_block_t * p_cb,
+ size_t bytes)
+{
+ nrfx_uart_event_t event;
+
+ event.type = NRFX_UART_EVT_TX_DONE;
+ event.data.rxtx.bytes = bytes;
+ event.data.rxtx.p_data = (uint8_t *)p_cb->p_tx_buffer;
+
+ p_cb->tx_buffer_length = 0;
+
+ p_cb->handler(&event, p_cb->p_context);
+}
+
+void nrfx_uart_tx_abort(nrfx_uart_t const * p_instance)
+{
+ uart_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+
+ p_cb->tx_abort = true;
+ nrf_uart_task_trigger(p_instance->p_reg, NRF_UART_TASK_STOPTX);
+ if (p_cb->handler)
+ {
+ tx_done_event(p_cb, p_cb->tx_counter);
+ }
+
+ NRFX_LOG_INFO("TX transaction aborted.");
+}
+
+void nrfx_uart_rx_abort(nrfx_uart_t const * p_instance)
+{
+ nrf_uart_int_disable(p_instance->p_reg, NRF_UART_INT_MASK_RXDRDY |
+ NRF_UART_INT_MASK_ERROR);
+ nrf_uart_task_trigger(p_instance->p_reg, NRF_UART_TASK_STOPRX);
+
+ NRFX_LOG_INFO("RX transaction aborted.");
+}
+
+static void uart_irq_handler(NRF_UART_Type * p_uart,
+ uart_control_block_t * p_cb)
+{
+ if (nrf_uart_int_enable_check(p_uart, NRF_UART_INT_MASK_ERROR) &&
+ nrf_uart_event_check(p_uart, NRF_UART_EVENT_ERROR))
+ {
+ nrfx_uart_event_t event;
+ nrf_uart_event_clear(p_uart, NRF_UART_EVENT_ERROR);
+ NRFX_LOG_DEBUG("Event: %s.", EVT_TO_STR(NRF_UART_EVENT_ERROR));
+ nrf_uart_int_disable(p_uart, NRF_UART_INT_MASK_RXDRDY |
+ NRF_UART_INT_MASK_ERROR);
+ if (!p_cb->rx_enabled)
+ {
+ nrf_uart_task_trigger(p_uart, NRF_UART_TASK_STOPRX);
+ }
+ event.type = NRFX_UART_EVT_ERROR;
+ event.data.error.error_mask = nrf_uart_errorsrc_get_and_clear(p_uart);
+ event.data.error.rxtx.bytes = p_cb->rx_buffer_length;
+ event.data.error.rxtx.p_data = p_cb->p_rx_buffer;
+
+ // Abort transfer.
+ p_cb->rx_buffer_length = 0;
+ p_cb->rx_secondary_buffer_length = 0;
+
+ p_cb->handler(&event,p_cb->p_context);
+ }
+ else if (nrf_uart_int_enable_check(p_uart, NRF_UART_INT_MASK_RXDRDY) &&
+ nrf_uart_event_check(p_uart, NRF_UART_EVENT_RXDRDY))
+ {
+ rx_byte(p_uart, p_cb);
+ if (p_cb->rx_buffer_length == p_cb->rx_counter)
+ {
+ if (p_cb->rx_secondary_buffer_length)
+ {
+ uint8_t * p_data = p_cb->p_rx_buffer;
+ size_t rx_counter = p_cb->rx_counter;
+
+ // Switch to secondary buffer.
+ p_cb->rx_buffer_length = p_cb->rx_secondary_buffer_length;
+ p_cb->p_rx_buffer = p_cb->p_rx_secondary_buffer;
+ p_cb->rx_secondary_buffer_length = 0;
+ p_cb->rx_counter = 0;
+ rx_done_event(p_cb, rx_counter, p_data);
+ }
+ else
+ {
+ if (!p_cb->rx_enabled)
+ {
+ nrf_uart_task_trigger(p_uart, NRF_UART_TASK_STOPRX);
+ }
+ nrf_uart_int_disable(p_uart, NRF_UART_INT_MASK_RXDRDY |
+ NRF_UART_INT_MASK_ERROR);
+ p_cb->rx_buffer_length = 0;
+ rx_done_event(p_cb, p_cb->rx_counter, p_cb->p_rx_buffer);
+ }
+ }
+ }
+
+ if (nrf_uart_event_check(p_uart, NRF_UART_EVENT_TXDRDY))
+ {
+ if (p_cb->tx_counter < p_cb->tx_buffer_length &&
+ !p_cb->tx_abort)
+ {
+ tx_byte(p_uart, p_cb);
+ }
+ else
+ {
+ nrf_uart_event_clear(p_uart, NRF_UART_EVENT_TXDRDY);
+ if (p_cb->tx_buffer_length)
+ {
+ tx_done_event(p_cb, p_cb->tx_buffer_length);
+ }
+ }
+ }
+
+ if (nrf_uart_event_check(p_uart, NRF_UART_EVENT_RXTO))
+ {
+ nrf_uart_event_clear(p_uart, NRF_UART_EVENT_RXTO);
+
+ // RXTO event may be triggered as a result of abort call. In th
+ if (p_cb->rx_enabled)
+ {
+ nrf_uart_task_trigger(p_uart, NRF_UART_TASK_STARTRX);
+ }
+ if (p_cb->rx_buffer_length)
+ {
+ p_cb->rx_buffer_length = 0;
+ rx_done_event(p_cb, p_cb->rx_counter, p_cb->p_rx_buffer);
+ }
+ }
+}
+
+#if NRFX_CHECK(NRFX_UART0_ENABLED)
+void nrfx_uart_0_irq_handler(void)
+{
+ uart_irq_handler(NRF_UART0, &m_cb[NRFX_UART0_INST_IDX]);
+}
+#endif
+
+#endif // NRFX_CHECK(NRFX_UART_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_uarte.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_uarte.c
new file mode 100644
index 0000000..1d5bf09
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_uarte.c
@@ -0,0 +1,583 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_UARTE_ENABLED)
+
+#if !(NRFX_CHECK(NRFX_UARTE0_ENABLED) || NRFX_CHECK(NRFX_UARTE1_ENABLED))
+#error "No enabled UARTE instances. Check <nrfx_config.h>."
+#endif
+
+#include <nrfx_uarte.h>
+#include "prs/nrfx_prs.h"
+#include <hal/nrf_gpio.h>
+
+#define NRFX_LOG_MODULE UARTE
+#include <nrfx_log.h>
+
+#define EVT_TO_STR(event) \
+ (event == NRF_UARTE_EVENT_ERROR ? "NRF_UARTE_EVENT_ERROR" : \
+ "UNKNOWN EVENT")
+
+#define UARTEX_LENGTH_VALIDATE(peripheral, drv_inst_idx, len1, len2) \
+ (((drv_inst_idx) == NRFX_CONCAT_3(NRFX_, peripheral, _INST_IDX)) && \
+ NRFX_EASYDMA_LENGTH_VALIDATE(peripheral, len1, len2))
+
+#if NRFX_CHECK(NRFX_UARTE0_ENABLED)
+#define UARTE0_LENGTH_VALIDATE(...) UARTEX_LENGTH_VALIDATE(UARTE0, __VA_ARGS__)
+#else
+#define UARTE0_LENGTH_VALIDATE(...) 0
+#endif
+
+#if NRFX_CHECK(NRFX_UARTE1_ENABLED)
+#define UARTE1_LENGTH_VALIDATE(...) UARTEX_LENGTH_VALIDATE(UARTE1, __VA_ARGS__)
+#else
+#define UARTE1_LENGTH_VALIDATE(...) 0
+#endif
+
+#define UARTE_LENGTH_VALIDATE(drv_inst_idx, length) \
+ (UARTE0_LENGTH_VALIDATE(drv_inst_idx, length, 0) || \
+ UARTE1_LENGTH_VALIDATE(drv_inst_idx, length, 0))
+
+
+typedef struct
+{
+ void * p_context;
+ nrfx_uarte_event_handler_t handler;
+ uint8_t const * p_tx_buffer;
+ uint8_t * p_rx_buffer;
+ uint8_t * p_rx_secondary_buffer;
+ size_t tx_buffer_length;
+ size_t rx_buffer_length;
+ size_t rx_secondary_buffer_length;
+ nrfx_drv_state_t state;
+} uarte_control_block_t;
+static uarte_control_block_t m_cb[NRFX_UARTE_ENABLED_COUNT];
+
+static void apply_config(nrfx_uarte_t const * p_instance,
+ nrfx_uarte_config_t const * p_config)
+{
+ if (p_config->pseltxd != NRF_UARTE_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_pin_set(p_config->pseltxd);
+ nrf_gpio_cfg_output(p_config->pseltxd);
+ }
+ if (p_config->pselrxd != NRF_UARTE_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_cfg_input(p_config->pselrxd, NRF_GPIO_PIN_NOPULL);
+ }
+
+ nrf_uarte_baudrate_set(p_instance->p_reg, p_config->baudrate);
+ nrf_uarte_configure(p_instance->p_reg, p_config->parity, p_config->hwfc);
+ nrf_uarte_txrx_pins_set(p_instance->p_reg, p_config->pseltxd, p_config->pselrxd);
+ if (p_config->hwfc == NRF_UARTE_HWFC_ENABLED)
+ {
+ if (p_config->pselcts != NRF_UARTE_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_cfg_input(p_config->pselcts, NRF_GPIO_PIN_NOPULL);
+ }
+ if (p_config->pselrts != NRF_UARTE_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_pin_set(p_config->pselrts);
+ nrf_gpio_cfg_output(p_config->pselrts);
+ }
+ nrf_uarte_hwfc_pins_set(p_instance->p_reg, p_config->pselrts, p_config->pselcts);
+ }
+}
+
+static void interrupts_enable(nrfx_uarte_t const * p_instance,
+ uint8_t interrupt_priority)
+{
+ nrf_uarte_event_clear(p_instance->p_reg, NRF_UARTE_EVENT_ENDRX);
+ nrf_uarte_event_clear(p_instance->p_reg, NRF_UARTE_EVENT_ENDTX);
+ nrf_uarte_event_clear(p_instance->p_reg, NRF_UARTE_EVENT_ERROR);
+ nrf_uarte_event_clear(p_instance->p_reg, NRF_UARTE_EVENT_RXTO);
+ nrf_uarte_int_enable(p_instance->p_reg, NRF_UARTE_INT_ENDRX_MASK |
+ NRF_UARTE_INT_ENDTX_MASK |
+ NRF_UARTE_INT_ERROR_MASK |
+ NRF_UARTE_INT_RXTO_MASK);
+ NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number((void *)p_instance->p_reg),
+ interrupt_priority);
+ NRFX_IRQ_ENABLE(nrfx_get_irq_number((void *)p_instance->p_reg));
+}
+
+static void interrupts_disable(nrfx_uarte_t const * p_instance)
+{
+ nrf_uarte_int_disable(p_instance->p_reg, NRF_UARTE_INT_ENDRX_MASK |
+ NRF_UARTE_INT_ENDTX_MASK |
+ NRF_UARTE_INT_ERROR_MASK |
+ NRF_UARTE_INT_RXTO_MASK);
+ NRFX_IRQ_DISABLE(nrfx_get_irq_number((void *)p_instance->p_reg));
+}
+
+static void pins_to_default(nrfx_uarte_t const * p_instance)
+{
+ /* Reset pins to default states */
+ uint32_t txd;
+ uint32_t rxd;
+ uint32_t rts;
+ uint32_t cts;
+
+ txd = nrf_uarte_tx_pin_get(p_instance->p_reg);
+ rxd = nrf_uarte_rx_pin_get(p_instance->p_reg);
+ rts = nrf_uarte_rts_pin_get(p_instance->p_reg);
+ cts = nrf_uarte_cts_pin_get(p_instance->p_reg);
+ nrf_uarte_txrx_pins_disconnect(p_instance->p_reg);
+ nrf_uarte_hwfc_pins_disconnect(p_instance->p_reg);
+
+ if (txd != NRF_UARTE_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_cfg_default(txd);
+ }
+ if (rxd != NRF_UARTE_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_cfg_default(rxd);
+ }
+ if (cts != NRF_UARTE_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_cfg_default(cts);
+ }
+ if (rts != NRF_UARTE_PSEL_DISCONNECTED)
+ {
+ nrf_gpio_cfg_default(rts);
+ }
+}
+
+nrfx_err_t nrfx_uarte_init(nrfx_uarte_t const * p_instance,
+ nrfx_uarte_config_t const * p_config,
+ nrfx_uarte_event_handler_t event_handler)
+{
+ NRFX_ASSERT(p_config);
+ uarte_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ nrfx_err_t err_code = NRFX_SUCCESS;
+
+ if (p_cb->state != NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ static nrfx_irq_handler_t const irq_handlers[NRFX_UARTE_ENABLED_COUNT] = {
+ #if NRFX_CHECK(NRFX_UARTE0_ENABLED)
+ nrfx_uarte_0_irq_handler,
+ #endif
+ #if NRFX_CHECK(NRFX_UARTE1_ENABLED)
+ nrfx_uarte_1_irq_handler,
+ #endif
+ };
+ if (nrfx_prs_acquire(p_instance->p_reg,
+ irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS)
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+#endif // NRFX_CHECK(NRFX_PRS_ENABLED)
+
+ apply_config(p_instance, p_config);
+
+ p_cb->handler = event_handler;
+ p_cb->p_context = p_config->p_context;
+
+ if (p_cb->handler)
+ {
+ interrupts_enable(p_instance, p_config->interrupt_priority);
+ }
+
+ nrf_uarte_enable(p_instance->p_reg);
+ p_cb->rx_buffer_length = 0;
+ p_cb->rx_secondary_buffer_length = 0;
+ p_cb->tx_buffer_length = 0;
+ p_cb->state = NRFX_DRV_STATE_INITIALIZED;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+void nrfx_uarte_uninit(nrfx_uarte_t const * p_instance)
+{
+ uarte_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+
+ nrf_uarte_disable(p_instance->p_reg);
+
+ if (p_cb->handler)
+ {
+ interrupts_disable(p_instance);
+ }
+
+ pins_to_default(p_instance);
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+ nrfx_prs_release(p_instance->p_reg);
+#endif
+
+ p_cb->state = NRFX_DRV_STATE_UNINITIALIZED;
+ p_cb->handler = NULL;
+ NRFX_LOG_INFO("Instance uninitialized: %d.", p_instance->drv_inst_idx);
+}
+
+nrfx_err_t nrfx_uarte_tx(nrfx_uarte_t const * p_instance,
+ uint8_t const * p_data,
+ size_t length)
+{
+ uarte_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+ NRFX_ASSERT(p_cb->state == NRFX_DRV_STATE_INITIALIZED);
+ NRFX_ASSERT(p_data);
+ NRFX_ASSERT(length > 0);
+ NRFX_ASSERT(UARTE_LENGTH_VALIDATE(p_instance->drv_inst_idx, length));
+
+ nrfx_err_t err_code;
+
+ // EasyDMA requires that transfer buffers are placed in DataRAM,
+ // signal error if the are not.
+ if (!nrfx_is_in_ram(p_data))
+ {
+ err_code = NRFX_ERROR_INVALID_ADDR;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ if (nrfx_uarte_tx_in_progress(p_instance))
+ {
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ p_cb->tx_buffer_length = length;
+ p_cb->p_tx_buffer = p_data;
+
+ NRFX_LOG_INFO("Transfer tx_len: %d.", p_cb->tx_buffer_length);
+ NRFX_LOG_DEBUG("Tx data:");
+ NRFX_LOG_HEXDUMP_DEBUG(p_cb->p_tx_buffer,
+ p_cb->tx_buffer_length * sizeof(p_cb->p_tx_buffer[0]));
+
+ err_code = NRFX_SUCCESS;
+
+ nrf_uarte_event_clear(p_instance->p_reg, NRF_UARTE_EVENT_ENDTX);
+ nrf_uarte_event_clear(p_instance->p_reg, NRF_UARTE_EVENT_TXSTOPPED);
+ nrf_uarte_tx_buffer_set(p_instance->p_reg, p_cb->p_tx_buffer, p_cb->tx_buffer_length);
+ nrf_uarte_task_trigger(p_instance->p_reg, NRF_UARTE_TASK_STARTTX);
+
+ if (p_cb->handler == NULL)
+ {
+ bool endtx;
+ bool txstopped;
+ do
+ {
+ endtx = nrf_uarte_event_check(p_instance->p_reg, NRF_UARTE_EVENT_ENDTX);
+ txstopped = nrf_uarte_event_check(p_instance->p_reg, NRF_UARTE_EVENT_TXSTOPPED);
+ }
+ while ((!endtx) && (!txstopped));
+
+ if (txstopped)
+ {
+ err_code = NRFX_ERROR_FORBIDDEN;
+ }
+ p_cb->tx_buffer_length = 0;
+ }
+
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+bool nrfx_uarte_tx_in_progress(nrfx_uarte_t const * p_instance)
+{
+ return (m_cb[p_instance->drv_inst_idx].tx_buffer_length != 0);
+}
+
+nrfx_err_t nrfx_uarte_rx(nrfx_uarte_t const * p_instance,
+ uint8_t * p_data,
+ size_t length)
+{
+ uarte_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+
+ NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_INITIALIZED);
+ NRFX_ASSERT(p_data);
+ NRFX_ASSERT(length > 0);
+ NRFX_ASSERT(UARTE_LENGTH_VALIDATE(p_instance->drv_inst_idx, length));
+
+ nrfx_err_t err_code;
+
+ // EasyDMA requires that transfer buffers are placed in DataRAM,
+ // signal error if the are not.
+ if (!nrfx_is_in_ram(p_data))
+ {
+ err_code = NRFX_ERROR_INVALID_ADDR;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ bool second_buffer = false;
+
+ if (p_cb->handler)
+ {
+ nrf_uarte_int_disable(p_instance->p_reg, NRF_UARTE_INT_ERROR_MASK |
+ NRF_UARTE_INT_ENDRX_MASK);
+ }
+ if (p_cb->rx_buffer_length != 0)
+ {
+ if (p_cb->rx_secondary_buffer_length != 0)
+ {
+ if (p_cb->handler)
+ {
+ nrf_uarte_int_enable(p_instance->p_reg, NRF_UARTE_INT_ERROR_MASK |
+ NRF_UARTE_INT_ENDRX_MASK);
+ }
+ err_code = NRFX_ERROR_BUSY;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+ second_buffer = true;
+ }
+
+ if (!second_buffer)
+ {
+ p_cb->rx_buffer_length = length;
+ p_cb->p_rx_buffer = p_data;
+ p_cb->rx_secondary_buffer_length = 0;
+ }
+ else
+ {
+ p_cb->p_rx_secondary_buffer = p_data;
+ p_cb->rx_secondary_buffer_length = length;
+ }
+
+ NRFX_LOG_INFO("Transfer rx_len: %d.", length);
+
+ err_code = NRFX_SUCCESS;
+
+ nrf_uarte_event_clear(p_instance->p_reg, NRF_UARTE_EVENT_ENDRX);
+ nrf_uarte_event_clear(p_instance->p_reg, NRF_UARTE_EVENT_RXTO);
+ nrf_uarte_rx_buffer_set(p_instance->p_reg, p_data, length);
+ if (!second_buffer)
+ {
+ nrf_uarte_task_trigger(p_instance->p_reg, NRF_UARTE_TASK_STARTRX);
+ }
+ else
+ {
+ nrf_uarte_shorts_enable(p_instance->p_reg, NRF_UARTE_SHORT_ENDRX_STARTRX);
+ }
+
+ if (m_cb[p_instance->drv_inst_idx].handler == NULL)
+ {
+ bool endrx;
+ bool rxto;
+ bool error;
+ do {
+ endrx = nrf_uarte_event_check(p_instance->p_reg, NRF_UARTE_EVENT_ENDRX);
+ rxto = nrf_uarte_event_check(p_instance->p_reg, NRF_UARTE_EVENT_RXTO);
+ error = nrf_uarte_event_check(p_instance->p_reg, NRF_UARTE_EVENT_ERROR);
+ } while ((!endrx) && (!rxto) && (!error));
+
+ m_cb[p_instance->drv_inst_idx].rx_buffer_length = 0;
+
+ if (error)
+ {
+ err_code = NRFX_ERROR_INTERNAL;
+ }
+
+ if (rxto)
+ {
+ err_code = NRFX_ERROR_FORBIDDEN;
+ }
+ }
+ else
+ {
+ nrf_uarte_int_enable(p_instance->p_reg, NRF_UARTE_INT_ERROR_MASK |
+ NRF_UARTE_INT_ENDRX_MASK);
+ }
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+bool nrfx_uarte_rx_ready(nrfx_uarte_t const * p_instance)
+{
+ return nrf_uarte_event_check(p_instance->p_reg, NRF_UARTE_EVENT_ENDRX);
+}
+
+uint32_t nrfx_uarte_errorsrc_get(nrfx_uarte_t const * p_instance)
+{
+ nrf_uarte_event_clear(p_instance->p_reg, NRF_UARTE_EVENT_ERROR);
+ return nrf_uarte_errorsrc_get_and_clear(p_instance->p_reg);
+}
+
+static void rx_done_event(uarte_control_block_t * p_cb,
+ size_t bytes,
+ uint8_t * p_data)
+{
+ nrfx_uarte_event_t event;
+
+ event.type = NRFX_UARTE_EVT_RX_DONE;
+ event.data.rxtx.bytes = bytes;
+ event.data.rxtx.p_data = p_data;
+
+ p_cb->handler(&event, p_cb->p_context);
+}
+
+static void tx_done_event(uarte_control_block_t * p_cb,
+ size_t bytes)
+{
+ nrfx_uarte_event_t event;
+
+ event.type = NRFX_UARTE_EVT_TX_DONE;
+ event.data.rxtx.bytes = bytes;
+ event.data.rxtx.p_data = (uint8_t *)p_cb->p_tx_buffer;
+
+ p_cb->tx_buffer_length = 0;
+
+ p_cb->handler(&event, p_cb->p_context);
+}
+
+void nrfx_uarte_tx_abort(nrfx_uarte_t const * p_instance)
+{
+ uarte_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx];
+
+ nrf_uarte_event_clear(p_instance->p_reg, NRF_UARTE_EVENT_TXSTOPPED);
+ nrf_uarte_task_trigger(p_instance->p_reg, NRF_UARTE_TASK_STOPTX);
+ if (p_cb->handler == NULL)
+ {
+ while (!nrf_uarte_event_check(p_instance->p_reg, NRF_UARTE_EVENT_TXSTOPPED))
+ {}
+ }
+ NRFX_LOG_INFO("TX transaction aborted.");
+}
+
+void nrfx_uarte_rx_abort(nrfx_uarte_t const * p_instance)
+{
+ nrf_uarte_task_trigger(p_instance->p_reg, NRF_UARTE_TASK_STOPRX);
+ NRFX_LOG_INFO("RX transaction aborted.");
+}
+
+static void uarte_irq_handler(NRF_UARTE_Type * p_uarte,
+ uarte_control_block_t * p_cb)
+{
+ if (nrf_uarte_event_check(p_uarte, NRF_UARTE_EVENT_ERROR))
+ {
+ nrfx_uarte_event_t event;
+
+ nrf_uarte_event_clear(p_uarte, NRF_UARTE_EVENT_ERROR);
+
+ event.type = NRFX_UARTE_EVT_ERROR;
+ event.data.error.error_mask = nrf_uarte_errorsrc_get_and_clear(p_uarte);
+ event.data.error.rxtx.bytes = nrf_uarte_rx_amount_get(p_uarte);
+ event.data.error.rxtx.p_data = p_cb->p_rx_buffer;
+
+ // Abort transfer.
+ p_cb->rx_buffer_length = 0;
+ p_cb->rx_secondary_buffer_length = 0;
+
+ p_cb->handler(&event, p_cb->p_context);
+ }
+ else if (nrf_uarte_event_check(p_uarte, NRF_UARTE_EVENT_ENDRX))
+ {
+ nrf_uarte_event_clear(p_uarte, NRF_UARTE_EVENT_ENDRX);
+ size_t amount = nrf_uarte_rx_amount_get(p_uarte);
+ // If the transfer was stopped before completion, amount of transfered bytes
+ // will not be equal to the buffer length. Interrupted transfer is ignored.
+ if (amount == p_cb->rx_buffer_length)
+ {
+ if (p_cb->rx_secondary_buffer_length)
+ {
+ uint8_t * p_data = p_cb->p_rx_buffer;
+ nrf_uarte_shorts_disable(p_uarte, NRF_UARTE_SHORT_ENDRX_STARTRX);
+ p_cb->rx_buffer_length = p_cb->rx_secondary_buffer_length;
+ p_cb->p_rx_buffer = p_cb->p_rx_secondary_buffer;
+ p_cb->rx_secondary_buffer_length = 0;
+ rx_done_event(p_cb, amount, p_data);
+ }
+ else
+ {
+ p_cb->rx_buffer_length = 0;
+ rx_done_event(p_cb, amount, p_cb->p_rx_buffer);
+ }
+ }
+ }
+
+ if (nrf_uarte_event_check(p_uarte, NRF_UARTE_EVENT_RXTO))
+ {
+ nrf_uarte_event_clear(p_uarte, NRF_UARTE_EVENT_RXTO);
+ if (p_cb->rx_buffer_length)
+ {
+ p_cb->rx_buffer_length = 0;
+ rx_done_event(p_cb, nrf_uarte_rx_amount_get(p_uarte), p_cb->p_rx_buffer);
+ }
+ }
+
+ if (nrf_uarte_event_check(p_uarte, NRF_UARTE_EVENT_ENDTX))
+ {
+ nrf_uarte_event_clear(p_uarte, NRF_UARTE_EVENT_ENDTX);
+ if (p_cb->tx_buffer_length)
+ {
+ tx_done_event(p_cb, nrf_uarte_tx_amount_get(p_uarte));
+ }
+ }
+}
+
+#if NRFX_CHECK(NRFX_UARTE0_ENABLED)
+void nrfx_uarte_0_irq_handler(void)
+{
+ uarte_irq_handler(NRF_UARTE0, &m_cb[NRFX_UARTE0_INST_IDX]);
+}
+#endif
+
+#if NRFX_CHECK(NRFX_UARTE1_ENABLED)
+void nrfx_uarte_1_irq_handler(void)
+{
+ uarte_irq_handler(NRF_UARTE1, &m_cb[NRFX_UARTE1_INST_IDX]);
+}
+#endif
+
+#endif // NRFX_CHECK(NRFX_UARTE_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_wdt.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_wdt.c
new file mode 100644
index 0000000..d4d33b1
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/nrfx_wdt.c
@@ -0,0 +1,153 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_WDT_ENABLED)
+#include <nrfx_wdt.h>
+
+#define NRFX_LOG_MODULE WDT
+#include <nrfx_log.h>
+
+
+/**@brief WDT event handler. */
+static nrfx_wdt_event_handler_t m_wdt_event_handler;
+
+/**@brief WDT state. */
+static nrfx_drv_state_t m_state;
+
+/**@brief WDT alloc table. */
+static uint32_t m_alloc_index;
+
+/**@brief WDT interrupt handler. */
+void nrfx_wdt_irq_handler(void)
+{
+ if (nrf_wdt_int_enable_check(NRF_WDT_INT_TIMEOUT_MASK) == true)
+ {
+ nrf_wdt_event_clear(NRF_WDT_EVENT_TIMEOUT);
+ m_wdt_event_handler();
+ }
+}
+
+
+nrfx_err_t nrfx_wdt_init(nrfx_wdt_config_t const * p_config,
+ nrfx_wdt_event_handler_t wdt_event_handler)
+{
+ NRFX_ASSERT(p_config);
+ NRFX_ASSERT(wdt_event_handler != NULL);
+ nrfx_err_t err_code;
+ m_wdt_event_handler = wdt_event_handler;
+
+ if (m_state == NRFX_DRV_STATE_UNINITIALIZED)
+ {
+ m_state = NRFX_DRV_STATE_INITIALIZED;
+ }
+ else
+ {
+ err_code = NRFX_ERROR_INVALID_STATE;
+ NRFX_LOG_WARNING("Function: %s, error code: %s.",
+ __func__,
+ NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+ }
+
+ nrf_wdt_behaviour_set(p_config->behaviour);
+
+ nrf_wdt_reload_value_set((p_config->reload_value * 32768) / 1000);
+
+ NRFX_IRQ_PRIORITY_SET(WDT_IRQn, p_config->interrupt_priority);
+ NRFX_IRQ_ENABLE(WDT_IRQn);
+
+ err_code = NRFX_SUCCESS;
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(err_code));
+ return err_code;
+}
+
+
+void nrfx_wdt_enable(void)
+{
+ NRFX_ASSERT(m_alloc_index != 0);
+ NRFX_ASSERT(m_state == NRFX_DRV_STATE_INITIALIZED);
+ nrf_wdt_int_enable(NRF_WDT_INT_TIMEOUT_MASK);
+ nrf_wdt_task_trigger(NRF_WDT_TASK_START);
+ m_state = NRFX_DRV_STATE_POWERED_ON;
+ NRFX_LOG_INFO("Enabled.");
+}
+
+
+void nrfx_wdt_feed(void)
+{
+ NRFX_ASSERT(m_state == NRFX_DRV_STATE_POWERED_ON);
+ for (uint32_t i = 0; i < m_alloc_index; i++)
+ {
+ nrf_wdt_reload_request_set((nrf_wdt_rr_register_t)(NRF_WDT_RR0 + i));
+ }
+}
+
+nrfx_err_t nrfx_wdt_channel_alloc(nrfx_wdt_channel_id * p_channel_id)
+{
+ nrfx_err_t result;
+ NRFX_ASSERT(p_channel_id);
+ NRFX_ASSERT(m_state == NRFX_DRV_STATE_INITIALIZED);
+
+ NRFX_CRITICAL_SECTION_ENTER();
+ if (m_alloc_index < NRF_WDT_CHANNEL_NUMBER)
+ {
+ *p_channel_id = (nrfx_wdt_channel_id)(NRF_WDT_RR0 + m_alloc_index);
+ m_alloc_index++;
+ nrf_wdt_reload_request_enable(*p_channel_id);
+ result = NRFX_SUCCESS;
+ }
+ else
+ {
+ result = NRFX_ERROR_NO_MEM;
+ }
+ NRFX_CRITICAL_SECTION_EXIT();
+ NRFX_LOG_INFO("Function: %s, error code: %s.", __func__, NRFX_LOG_ERROR_STRING_GET(result));
+ return result;
+}
+
+void nrfx_wdt_channel_feed(nrfx_wdt_channel_id channel_id)
+{
+ NRFX_ASSERT(m_state == NRFX_DRV_STATE_POWERED_ON);
+ nrf_wdt_reload_request_set(channel_id);
+}
+
+#endif // NRFX_CHECK(NRFX_WDT_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/prs/nrfx_prs.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/prs/nrfx_prs.c
new file mode 100644
index 0000000..e7a105f
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/prs/nrfx_prs.c
@@ -0,0 +1,166 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#include <nrfx.h>
+
+#if NRFX_CHECK(NRFX_PRS_ENABLED)
+#include "nrfx_prs.h"
+
+#define NRFX_LOG_MODULE PRS
+#include <nrfx_log.h>
+
+#define LOG_FUNCTION_EXIT(level, ret_code) \
+ NRFX_LOG_##level("Function: %s, error code: %s.", \
+ __func__, \
+ NRFX_LOG_ERROR_STRING_GET(ret_code))
+
+
+typedef struct {
+ nrfx_irq_handler_t handler;
+ bool acquired;
+} prs_box_t;
+
+#define PRS_BOX_DEFINE(n) \
+ static prs_box_t m_prs_box_##n = { .handler = NULL, .acquired = false }; \
+ void nrfx_prs_box_##n##_irq_handler(void) \
+ { \
+ NRFX_ASSERT(m_prs_box_##n.handler); \
+ m_prs_box_##n.handler(); \
+ }
+
+#if defined(NRFX_PRS_BOX_0_ADDR) && NRFX_CHECK(NRFX_PRS_BOX_0_ENABLED)
+PRS_BOX_DEFINE(0)
+#endif
+#if defined(NRFX_PRS_BOX_1_ADDR) && NRFX_CHECK(NRFX_PRS_BOX_1_ENABLED)
+PRS_BOX_DEFINE(1)
+#endif
+#if defined(NRFX_PRS_BOX_2_ADDR) && NRFX_CHECK(NRFX_PRS_BOX_2_ENABLED)
+PRS_BOX_DEFINE(2)
+#endif
+#if defined(NRFX_PRS_BOX_3_ADDR) && NRFX_CHECK(NRFX_PRS_BOX_3_ENABLED)
+PRS_BOX_DEFINE(3)
+#endif
+#if defined(NRFX_PRS_BOX_4_ADDR) && NRFX_CHECK(NRFX_PRS_BOX_4_ENABLED)
+PRS_BOX_DEFINE(4)
+#endif
+
+
+static prs_box_t * prs_box_get(void const * p_base_addr)
+{
+#if !defined(IS_PRS_BOX)
+#define IS_PRS_BOX(n, p_base_addr) ((p_base_addr) == NRFX_PRS_BOX_##n##_ADDR)
+#endif
+
+#if defined(NRFX_PRS_BOX_0_ADDR) && NRFX_CHECK(NRFX_PRS_BOX_0_ENABLED)
+ if (IS_PRS_BOX(0, p_base_addr)) { return &m_prs_box_0; }
+ else
+#endif
+#if defined(NRFX_PRS_BOX_1_ADDR) && NRFX_CHECK(NRFX_PRS_BOX_1_ENABLED)
+ if (IS_PRS_BOX(1, p_base_addr)) { return &m_prs_box_1; }
+ else
+#endif
+#if defined(NRFX_PRS_BOX_2_ADDR) && NRFX_CHECK(NRFX_PRS_BOX_2_ENABLED)
+ if (IS_PRS_BOX(2, p_base_addr)) { return &m_prs_box_2; }
+ else
+#endif
+#if defined(NRFX_PRS_BOX_3_ADDR) && NRFX_CHECK(NRFX_PRS_BOX_3_ENABLED)
+ if (IS_PRS_BOX(3, p_base_addr)) { return &m_prs_box_3; }
+ else
+#endif
+#if defined(NRFX_PRS_BOX_4_ADDR) && NRFX_CHECK(NRFX_PRS_BOX_4_ENABLED)
+ if (IS_PRS_BOX(4, p_base_addr)) { return &m_prs_box_4; }
+ else
+#endif
+ {
+ return NULL;
+ }
+}
+
+nrfx_err_t nrfx_prs_acquire(void const * p_base_addr,
+ nrfx_irq_handler_t irq_handler)
+{
+ NRFX_ASSERT(p_base_addr);
+
+ nrfx_err_t ret_code;
+
+ prs_box_t * p_box = prs_box_get(p_base_addr);
+ if (p_box != NULL)
+ {
+ bool busy = false;
+
+ NRFX_CRITICAL_SECTION_ENTER();
+ if (p_box->acquired)
+ {
+ busy = true;
+ }
+ else
+ {
+ p_box->handler = irq_handler;
+ p_box->acquired = true;
+ }
+ NRFX_CRITICAL_SECTION_EXIT();
+
+ if (busy)
+ {
+ ret_code = NRFX_ERROR_BUSY;
+ LOG_FUNCTION_EXIT(WARNING, ret_code);
+ return ret_code;
+ }
+ }
+
+ ret_code = NRFX_SUCCESS;
+ LOG_FUNCTION_EXIT(INFO, ret_code);
+ return ret_code;
+}
+
+void nrfx_prs_release(void const * p_base_addr)
+{
+ NRFX_ASSERT(p_base_addr);
+
+ prs_box_t * p_box = prs_box_get(p_base_addr);
+ if (p_box != NULL)
+ {
+ p_box->handler = NULL;
+ p_box->acquired = false;
+ }
+}
+
+
+#endif // NRFX_CHECK(NRFX_PRS_ENABLED)
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/prs/nrfx_prs.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/prs/nrfx_prs.h
new file mode 100644
index 0000000..f585fa1
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/drivers/src/prs/nrfx_prs.h
@@ -0,0 +1,140 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_PRS_H__
+#define NRFX_PRS_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_prs Peripheral Resource Sharing (PRS)
+ * @{
+ * @ingroup nrfx
+ *
+ * @brief Peripheral Resource Sharing interface (PRS).
+ */
+
+#if defined(NRF51)
+ // SPI0, TWI0
+ #define NRFX_PRS_BOX_0_ADDR NRF_SPI0
+ // SPI1, SPIS1, TWI1
+ #define NRFX_PRS_BOX_1_ADDR NRF_SPI1
+#elif defined(NRF52810_XXAA)
+ // TWIM0, TWIS0
+ #define NRFX_PRS_BOX_0_ADDR NRF_TWIM0
+ // SPIM0, SPIS0
+ #define NRFX_PRS_BOX_1_ADDR NRF_SPIM0
+#elif defined(NRF52832_XXAA) || defined (NRF52832_XXAB)
+ // SPIM0, SPIS0, TWIM0, TWIS0, SPI0, TWI0
+ #define NRFX_PRS_BOX_0_ADDR NRF_SPIM0
+ // SPIM1, SPIS1, TWIM1, TWIS1, SPI1, TWI1
+ #define NRFX_PRS_BOX_1_ADDR NRF_SPIM1
+ // SPIM2, SPIS2, SPI2
+ #define NRFX_PRS_BOX_2_ADDR NRF_SPIM2
+ // COMP, LPCOMP
+ #define NRFX_PRS_BOX_3_ADDR NRF_COMP
+ // UARTE0, UART0
+ #define NRFX_PRS_BOX_4_ADDR NRF_UARTE0
+#elif defined(NRF52840_XXAA)
+ // SPIM0, SPIS0, TWIM0, TWIS0, SPI0, TWI0
+ #define NRFX_PRS_BOX_0_ADDR NRF_SPIM0
+ // SPIM1, SPIS1, TWIM1, TWIS1, SPI1, TWI1
+ #define NRFX_PRS_BOX_1_ADDR NRF_SPIM1
+ // SPIM2, SPIS2, SPI2
+ #define NRFX_PRS_BOX_2_ADDR NRF_SPIM2
+ // COMP, LPCOMP
+ #define NRFX_PRS_BOX_3_ADDR NRF_COMP
+ // UARTE0, UART0
+ #define NRFX_PRS_BOX_4_ADDR NRF_UARTE0
+#else
+ #error "Unknown device."
+#endif
+
+/**
+ * @brief Function for acquiring shared peripheral resources associated with
+ * the specified peripheral.
+ *
+ * Certain resources and registers are shared among peripherals that have
+ * the same ID (for example: SPI0, SPIM0, SPIS0, TWI0, TWIM0, and TWIS0 in
+ * nRF52832). Only one of them can be utilized at a given time. This function
+ * reserves proper resources to be used by the specified peripheral.
+ * If NRFX_PRS_ENABLED is set to a non-zero value, IRQ handlers for peripherals
+ * that are sharing resources with others are implemented by the @ref nrfx_prs
+ * module instead of individual drivers. The drivers must then specify their
+ * interrupt handling routines and register them by using this function.
+ *
+ * @param[in] p_base_addr Requested peripheral base pointer.
+ * @param[in] irq_handler Interrupt handler to register.
+ *
+ * @retval NRFX_SUCCESS If resources were acquired successfully or the
+ * specified peripheral is not handled by the PRS
+ * subsystem and there is no need to acquire resources
+ * for it.
+ * @retval NRFX_ERROR_BUSY If resources were already acquired.
+ */
+nrfx_err_t nrfx_prs_acquire(void const * p_base_addr,
+ nrfx_irq_handler_t irq_handler);
+
+/**
+ * @brief Function for releasing shared resources reserved previously by
+ * @ref nrfx_prs_acquire() for the specified peripheral.
+ *
+ * @param[in] p_base_addr Released peripheral base pointer.
+ */
+void nrfx_prs_release(void const * p_base_addr);
+
+
+void nrfx_prs_box_0_irq_handler(void);
+void nrfx_prs_box_1_irq_handler(void);
+void nrfx_prs_box_2_irq_handler(void);
+void nrfx_prs_box_3_irq_handler(void);
+void nrfx_prs_box_4_irq_handler(void);
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_PRS_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_adc.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_adc.h
new file mode 100644
index 0000000..862e6f1
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_adc.h
@@ -0,0 +1,348 @@
+/**
+ * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_ADC_H_
+#define NRF_ADC_H_
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_adc_hal ADC HAL
+ * @{
+ * @ingroup nrf_adc
+ * @brief Hardware access layer for managing the Analog-to-Digital Converter (ADC)
+ * peripheral.
+ */
+
+/** @brief ADC interrupts. */
+typedef enum
+{
+ NRF_ADC_INT_END_MASK = ADC_INTENSET_END_Msk, /**< ADC interrupt on END event. */
+} nrf_adc_int_mask_t;
+
+/** @brief Resolution of the analog-to-digital converter. */
+typedef enum
+{
+ NRF_ADC_CONFIG_RES_8BIT = ADC_CONFIG_RES_8bit, /**< 8-bit resolution. */
+ NRF_ADC_CONFIG_RES_9BIT = ADC_CONFIG_RES_9bit, /**< 9-bit resolution. */
+ NRF_ADC_CONFIG_RES_10BIT = ADC_CONFIG_RES_10bit, /**< 10-bit resolution. */
+} nrf_adc_config_resolution_t;
+
+
+/** @brief Scaling factor of the analog-to-digital conversion. */
+typedef enum
+{
+ NRF_ADC_CONFIG_SCALING_INPUT_FULL_SCALE = ADC_CONFIG_INPSEL_AnalogInputNoPrescaling, /**< Full scale input. */
+ NRF_ADC_CONFIG_SCALING_INPUT_TWO_THIRDS = ADC_CONFIG_INPSEL_AnalogInputTwoThirdsPrescaling, /**< 2/3 scale input. */
+ NRF_ADC_CONFIG_SCALING_INPUT_ONE_THIRD = ADC_CONFIG_INPSEL_AnalogInputOneThirdPrescaling, /**< 1/3 scale input. */
+ NRF_ADC_CONFIG_SCALING_SUPPLY_TWO_THIRDS = ADC_CONFIG_INPSEL_SupplyTwoThirdsPrescaling, /**< 2/3 of supply. */
+ NRF_ADC_CONFIG_SCALING_SUPPLY_ONE_THIRD = ADC_CONFIG_INPSEL_SupplyOneThirdPrescaling /**< 1/3 of supply. */
+} nrf_adc_config_scaling_t;
+
+
+/**
+ * @brief External reference selection of the analog-to-digital converter.
+ */
+typedef enum
+{
+ NRF_ADC_CONFIG_EXTREFSEL_NONE = ADC_CONFIG_EXTREFSEL_None, /**< Analog reference inputs disabled. */
+ NRF_ADC_CONFIG_EXTREFSEL_AREF0 = ADC_CONFIG_EXTREFSEL_AnalogReference0, /**< AREF0 as analog reference. */
+ NRF_ADC_CONFIG_EXTREFSEL_AREF1 = ADC_CONFIG_EXTREFSEL_AnalogReference1 /**< AREF1 as analog reference. */
+} nrf_adc_config_extref_t;
+
+/**
+ * @brief Reference selection of the analog-to-digital converter.
+ */
+typedef enum
+{
+ NRF_ADC_CONFIG_REF_VBG = ADC_CONFIG_REFSEL_VBG, /**< 1.2 V reference. */
+ NRF_ADC_CONFIG_REF_SUPPLY_ONE_HALF = ADC_CONFIG_REFSEL_SupplyOneHalfPrescaling, /**< 1/2 of power supply. */
+ NRF_ADC_CONFIG_REF_SUPPLY_ONE_THIRD = ADC_CONFIG_REFSEL_SupplyOneThirdPrescaling, /**< 1/3 of power supply. */
+ NRF_ADC_CONFIG_REF_EXT = ADC_CONFIG_REFSEL_External /**< External reference. See @ref nrf_adc_config_extref_t for further configuration.*/
+} nrf_adc_config_reference_t;
+
+/** @brief Input selection of the analog-to-digital converter. */
+typedef enum
+{
+ NRF_ADC_CONFIG_INPUT_DISABLED = ADC_CONFIG_PSEL_Disabled, /**< No input selected. */
+ NRF_ADC_CONFIG_INPUT_0 = ADC_CONFIG_PSEL_AnalogInput0, /**< Input 0. */
+ NRF_ADC_CONFIG_INPUT_1 = ADC_CONFIG_PSEL_AnalogInput1, /**< Input 1. */
+ NRF_ADC_CONFIG_INPUT_2 = ADC_CONFIG_PSEL_AnalogInput2, /**< Input 2. */
+ NRF_ADC_CONFIG_INPUT_3 = ADC_CONFIG_PSEL_AnalogInput3, /**< Input 3. */
+ NRF_ADC_CONFIG_INPUT_4 = ADC_CONFIG_PSEL_AnalogInput4, /**< Input 4. */
+ NRF_ADC_CONFIG_INPUT_5 = ADC_CONFIG_PSEL_AnalogInput5, /**< Input 5. */
+ NRF_ADC_CONFIG_INPUT_6 = ADC_CONFIG_PSEL_AnalogInput6, /**< Input 6. */
+ NRF_ADC_CONFIG_INPUT_7 = ADC_CONFIG_PSEL_AnalogInput7, /**< Input 7. */
+} nrf_adc_config_input_t;
+
+/** @brief Analog-to-digital converter tasks. */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_ADC_TASK_START = offsetof(NRF_ADC_Type, TASKS_START), /**< ADC start sampling task. */
+ NRF_ADC_TASK_STOP = offsetof(NRF_ADC_Type, TASKS_STOP) /**< ADC stop sampling task. */
+ /*lint -restore*/
+} nrf_adc_task_t;
+
+/** @brief Analog-to-digital converter events. */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ /*lint -save -e30*/
+ NRF_ADC_EVENT_END = offsetof(NRF_ADC_Type, EVENTS_END) /**< End of a conversion event. */
+ /*lint -restore*/
+} nrf_adc_event_t;
+
+/**@brief Analog-to-digital converter configuration. */
+typedef struct
+{
+ nrf_adc_config_resolution_t resolution; /**< ADC resolution. */
+ nrf_adc_config_scaling_t scaling; /**< ADC scaling factor. */
+ nrf_adc_config_reference_t reference; /**< ADC reference. */
+ nrf_adc_config_input_t input; /**< ADC input selection. */
+ nrf_adc_config_extref_t extref; /**< ADC external reference selection. */
+} nrf_adc_config_t;
+
+/**@brief Analog-to-digital value type. */
+typedef uint16_t nrf_adc_value_t;
+
+/**
+ * @brief Function for activating a specific ADC task.
+ *
+ * @param[in] task Task to activate.
+ */
+__STATIC_INLINE void nrf_adc_task_trigger(nrf_adc_task_t task);
+
+/**
+ * @brief Function for getting the address of an ADC task register.
+ *
+ * @param[in] task ADC task.
+ *
+ * @return Address of the specified ADC task.
+ */
+__STATIC_INLINE uint32_t nrf_adc_task_address_get(nrf_adc_task_t task);
+
+/**
+ * @brief Function for checking the state of an ADC event.
+ *
+ * @param[in] event Event to check.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_adc_event_check(nrf_adc_event_t event);
+
+/**
+ * @brief Function for clearing an ADC event.
+ *
+ * @param[in] event Event to clear.
+ */
+__STATIC_INLINE void nrf_adc_event_clear(nrf_adc_event_t event);
+
+/**
+ * @brief Function for getting the address of a specific ADC event register.
+ *
+ * @param[in] adc_event ADC event.
+ *
+ * @return Address of the specified ADC event.
+ */
+__STATIC_INLINE uint32_t nrf_adc_event_address_get(nrf_adc_event_t adc_event);
+
+/**
+ * @brief Function for enabling the specified interrupts.
+ *
+ * @param[in] int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_adc_int_enable(uint32_t int_mask);
+
+/**
+ * @brief Function for disabling the specified interrupts.
+ *
+ * @param[in] int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_adc_int_disable(uint32_t int_mask);
+
+/**
+ * @brief Function for retrieving the state of the specified ADC interrupts.
+ *
+ * @param[in] int_mask Interrupts to check.
+ *
+ * @retval true If all specified interrupts are enabled.
+ * @retval false If at least one of the given interrupts is not enabled.
+ */
+__STATIC_INLINE bool nrf_adc_int_enable_check(uint32_t int_mask);
+
+/**
+ * @brief Function for checking whether the ADC is busy.
+ *
+ * This function checks whether the ADC converter is busy with a conversion.
+ *
+ * @retval true If the ADC is busy.
+ * @retval false If the ADC is not busy.
+ */
+__STATIC_INLINE bool nrf_adc_busy_check(void);
+
+/**
+ * @brief Function for enabling the ADC.
+ *
+ */
+__STATIC_INLINE void nrf_adc_enable(void);
+
+/**
+ * @brief Function for disabling the ADC.
+ *
+ */
+__STATIC_INLINE void nrf_adc_disable(void);
+
+/**
+ * @brief Function for checking if the ADC is enabled.
+ *
+ * @retval true If the ADC is enabled.
+ * @retval false If the ADC is not enabled.
+ */
+__STATIC_INLINE bool nrf_adc_enable_check(void);
+
+/**
+ * @brief Function for retrieving the ADC conversion result.
+ *
+ * This function retrieves and returns the last analog-to-digital conversion result.
+ *
+ * @return Last conversion result.
+ */
+__STATIC_INLINE nrf_adc_value_t nrf_adc_result_get(void);
+
+/**
+ * @brief Function for initializing the ADC.
+ *
+ * This function writes data to ADC's CONFIG register. After the configuration,
+ * the ADC is in DISABLE state and must be enabled before using it.
+ *
+ * @param[in] p_config Configuration parameters.
+ */
+__STATIC_INLINE void nrf_adc_init(nrf_adc_config_t const * p_config);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_adc_task_trigger(nrf_adc_task_t task)
+{
+ *((volatile uint32_t *)((uint8_t *)NRF_ADC + (uint32_t)task)) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t nrf_adc_task_address_get(nrf_adc_task_t adc_task)
+{
+ return (uint32_t)((uint8_t *)NRF_ADC + (uint32_t)adc_task);
+}
+
+__STATIC_INLINE bool nrf_adc_event_check(nrf_adc_event_t event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)NRF_ADC + (uint32_t)event);
+}
+
+__STATIC_INLINE void nrf_adc_event_clear(nrf_adc_event_t event)
+{
+ *((volatile uint32_t *)((uint8_t *)NRF_ADC + (uint32_t)event)) = 0x0UL;
+}
+
+__STATIC_INLINE uint32_t nrf_adc_event_address_get(nrf_adc_event_t adc_event)
+{
+ return (uint32_t)((uint8_t *)NRF_ADC + (uint32_t)adc_event);
+}
+
+__STATIC_INLINE void nrf_adc_int_enable(uint32_t int_mask)
+{
+ NRF_ADC->INTENSET = int_mask;
+}
+
+__STATIC_INLINE void nrf_adc_int_disable(uint32_t int_mask)
+{
+ NRF_ADC->INTENCLR = int_mask;
+}
+
+__STATIC_INLINE bool nrf_adc_int_enable_check(uint32_t int_mask)
+{
+ return (bool)(NRF_ADC->INTENSET & int_mask);
+}
+
+__STATIC_INLINE bool nrf_adc_busy_check(void)
+{
+ return ((NRF_ADC->BUSY & ADC_BUSY_BUSY_Msk) == (ADC_BUSY_BUSY_Busy << ADC_BUSY_BUSY_Pos));
+}
+
+__STATIC_INLINE void nrf_adc_enable(void)
+{
+ NRF_ADC->ENABLE = (ADC_ENABLE_ENABLE_Enabled << ADC_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_adc_disable(void)
+{
+ NRF_ADC->ENABLE = (ADC_ENABLE_ENABLE_Disabled << ADC_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE bool nrf_adc_enable_check(void)
+{
+ return (NRF_ADC->ENABLE == (ADC_ENABLE_ENABLE_Enabled << ADC_ENABLE_ENABLE_Pos));
+}
+
+__STATIC_INLINE nrf_adc_value_t nrf_adc_result_get(void)
+{
+ return (nrf_adc_value_t)NRF_ADC->RESULT;
+}
+
+__STATIC_INLINE void nrf_adc_init(nrf_adc_config_t const * p_config)
+{
+ NRF_ADC->CONFIG =
+ ((p_config->resolution << ADC_CONFIG_RES_Pos) & ADC_CONFIG_RES_Msk)
+ |((p_config->scaling << ADC_CONFIG_INPSEL_Pos) & ADC_CONFIG_INPSEL_Msk)
+ |((p_config->reference << ADC_CONFIG_REFSEL_Pos) & ADC_CONFIG_REFSEL_Msk)
+ |((p_config->input << ADC_CONFIG_PSEL_Pos) & ADC_CONFIG_PSEL_Msk)
+ |((p_config->extref << ADC_CONFIG_EXTREFSEL_Pos) & ADC_CONFIG_EXTREFSEL_Msk);
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NRF_ADC_H_ */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_clock.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_clock.h
new file mode 100644
index 0000000..31cfc7a
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_clock.h
@@ -0,0 +1,400 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_CLOCK_H__
+#define NRF_CLOCK_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_clock_hal Clock HAL
+ * @{
+ * @ingroup nrf_clock
+ * @brief Hardware access layer for managing the CLOCK peripheral.
+ *
+ * This code can be used to managing low-frequency clock (LFCLK) and the high-frequency clock
+ * (HFCLK) settings.
+ */
+
+#define NRF_CLOCK_TASK_TRIGGER (1UL)
+#define NRF_CLOCK_EVENT_CLEAR (0UL)
+
+/**
+ * @brief Low-frequency clock sources.
+ * @details Used by LFCLKSRC, LFCLKSTAT, and LFCLKSRCCOPY registers.
+ */
+typedef enum
+{
+ NRF_CLOCK_LFCLK_RC = CLOCK_LFCLKSRC_SRC_RC, /**< Internal 32 kHz RC oscillator. */
+ NRF_CLOCK_LFCLK_Xtal = CLOCK_LFCLKSRC_SRC_Xtal, /**< External 32 kHz crystal. */
+ NRF_CLOCK_LFCLK_Synth = CLOCK_LFCLKSRC_SRC_Synth /**< Internal 32 kHz synthesizer from HFCLK system clock. */
+} nrf_clock_lfclk_t;
+
+/**
+ * @brief High-frequency clock sources.
+ */
+typedef enum
+{
+ NRF_CLOCK_HFCLK_LOW_ACCURACY = CLOCK_HFCLKSTAT_SRC_RC, /**< Internal 16 MHz RC oscillator. */
+ NRF_CLOCK_HFCLK_HIGH_ACCURACY = CLOCK_HFCLKSTAT_SRC_Xtal /**< External 16 MHz/32 MHz crystal oscillator. */
+} nrf_clock_hfclk_t;
+
+/**
+ * @brief Trigger status of task LFCLKSTART/HFCLKSTART.
+ * @details Used by LFCLKRUN and HFCLKRUN registers.
+ */
+typedef enum
+{
+ NRF_CLOCK_START_TASK_NOT_TRIGGERED = CLOCK_LFCLKRUN_STATUS_NotTriggered, /**< Task LFCLKSTART/HFCLKSTART has not been triggered. */
+ NRF_CLOCK_START_TASK_TRIGGERED = CLOCK_LFCLKRUN_STATUS_Triggered /**< Task LFCLKSTART/HFCLKSTART has been triggered. */
+} nrf_clock_start_task_status_t;
+
+/**
+ * @brief Interrupts.
+ */
+typedef enum
+{
+ NRF_CLOCK_INT_HF_STARTED_MASK = CLOCK_INTENSET_HFCLKSTARTED_Msk, /**< Interrupt on HFCLKSTARTED event. */
+ NRF_CLOCK_INT_LF_STARTED_MASK = CLOCK_INTENSET_LFCLKSTARTED_Msk, /**< Interrupt on LFCLKSTARTED event. */
+ NRF_CLOCK_INT_DONE_MASK = CLOCK_INTENSET_DONE_Msk, /**< Interrupt on DONE event. */
+ NRF_CLOCK_INT_CTTO_MASK = CLOCK_INTENSET_CTTO_Msk /**< Interrupt on CTTO event. */
+} nrf_clock_int_mask_t;
+
+/**
+ * @brief Tasks.
+ *
+ * @details The NRF_CLOCK_TASK_LFCLKSTOP task cannot be set when the low-frequency clock is not running.
+ * The NRF_CLOCK_TASK_HFCLKSTOP task cannot be set when the high-frequency clock is not running.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_CLOCK_TASK_HFCLKSTART = offsetof(NRF_CLOCK_Type, TASKS_HFCLKSTART), /**< Start HFCLK clock source.*/
+ NRF_CLOCK_TASK_HFCLKSTOP = offsetof(NRF_CLOCK_Type, TASKS_HFCLKSTOP), /**< Stop HFCLK clock source.*/
+ NRF_CLOCK_TASK_LFCLKSTART = offsetof(NRF_CLOCK_Type, TASKS_LFCLKSTART), /**< Start LFCLK clock source.*/
+ NRF_CLOCK_TASK_LFCLKSTOP = offsetof(NRF_CLOCK_Type, TASKS_LFCLKSTOP), /**< Stop LFCLK clock source.*/
+ NRF_CLOCK_TASK_CAL = offsetof(NRF_CLOCK_Type, TASKS_CAL), /**< Start calibration of LFCLK RC oscillator.*/
+ NRF_CLOCK_TASK_CTSTART = offsetof(NRF_CLOCK_Type, TASKS_CTSTART), /**< Start calibration timer.*/
+ NRF_CLOCK_TASK_CTSTOP = offsetof(NRF_CLOCK_Type, TASKS_CTSTOP) /**< Stop calibration timer.*/
+} nrf_clock_task_t; /*lint -restore */
+
+/**
+ * @brief Events.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_CLOCK_EVENT_HFCLKSTARTED = offsetof(NRF_CLOCK_Type, EVENTS_HFCLKSTARTED), /**< HFCLK oscillator started.*/
+ NRF_CLOCK_EVENT_LFCLKSTARTED = offsetof(NRF_CLOCK_Type, EVENTS_LFCLKSTARTED), /**< LFCLK oscillator started.*/
+ NRF_CLOCK_EVENT_DONE = offsetof(NRF_CLOCK_Type, EVENTS_DONE), /**< Calibration of LFCLK RC oscillator completed.*/
+ NRF_CLOCK_EVENT_CTTO = offsetof(NRF_CLOCK_Type, EVENTS_CTTO) /**< Calibration timer time-out.*/
+} nrf_clock_event_t; /*lint -restore */
+
+/**
+ * @brief Function for enabling a specific interrupt.
+ *
+ * @param[in] int_mask Interrupt.
+ */
+__STATIC_INLINE void nrf_clock_int_enable(uint32_t int_mask);
+
+/**
+ * @brief Function for disabling a specific interrupt.
+ *
+ * @param[in] int_mask Interrupt.
+ */
+__STATIC_INLINE void nrf_clock_int_disable(uint32_t int_mask);
+
+/**
+ * @brief Function for retrieving the state of a specific interrupt.
+ *
+ * @param[in] int_mask Interrupt.
+ *
+ * @retval true If the interrupt is enabled.
+ * @retval false If the interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_clock_int_enable_check(nrf_clock_int_mask_t int_mask);
+
+/**
+ * @brief Function for retrieving the address of a specific task.
+ * @details This function can be used by the PPI module.
+ *
+ * @param[in] task Task.
+ *
+ * @return Address of the requested task register.
+ */
+__STATIC_INLINE uint32_t nrf_clock_task_address_get(nrf_clock_task_t task);
+
+/**
+ * @brief Function for setting a specific task.
+ *
+ * @param[in] task Task.
+ */
+__STATIC_INLINE void nrf_clock_task_trigger(nrf_clock_task_t task);
+
+/**
+ * @brief Function for retrieving the address of a specific event.
+ * @details This function can be used by the PPI module.
+ *
+ * @param[in] event Event.
+ *
+ * @return Address of the requested event register.
+ */
+__STATIC_INLINE uint32_t nrf_clock_event_address_get(nrf_clock_event_t event);
+
+/**
+ * @brief Function for clearing a specific event.
+ *
+ * @param[in] event Event.
+ */
+__STATIC_INLINE void nrf_clock_event_clear(nrf_clock_event_t event);
+
+/**
+ * @brief Function for retrieving the state of a specific event.
+ *
+ * @param[in] event Event.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_clock_event_check(nrf_clock_event_t event);
+
+/**
+ * @brief Function for changing the low-frequency clock source.
+ * @details This function cannot be called when the low-frequency clock is running.
+ *
+ * @param[in] source New low-frequency clock source.
+ *
+ */
+__STATIC_INLINE void nrf_clock_lf_src_set(nrf_clock_lfclk_t source);
+
+/**
+ * @brief Function for retrieving the selected source for the low-frequency clock.
+ *
+ * @retval NRF_CLOCK_LFCLK_RC If the internal 32 kHz RC oscillator is the selected source for the low-frequency clock.
+ * @retval NRF_CLOCK_LFCLK_Xtal If an external 32 kHz crystal oscillator is the selected source for the low-frequency clock.
+ * @retval NRF_CLOCK_LFCLK_Synth If the internal 32 kHz synthesizer from the HFCLK is the selected source for the low-frequency clock.
+ */
+__STATIC_INLINE nrf_clock_lfclk_t nrf_clock_lf_src_get(void);
+
+/**
+ * @brief Function for retrieving the active source of the low-frequency clock.
+ *
+ * @retval NRF_CLOCK_LFCLK_RC If the internal 32 kHz RC oscillator is the active source of the low-frequency clock.
+ * @retval NRF_CLOCK_LFCLK_Xtal If an external 32 kHz crystal oscillator is the active source of the low-frequency clock.
+ * @retval NRF_CLOCK_LFCLK_Synth If the internal 32 kHz synthesizer from the HFCLK is the active source of the low-frequency clock.
+ */
+__STATIC_INLINE nrf_clock_lfclk_t nrf_clock_lf_actv_src_get(void);
+
+/**
+ * @brief Function for retrieving the clock source for the LFCLK clock when the task LKCLKSTART is triggered.
+ *
+ * @retval NRF_CLOCK_LFCLK_RC If the internal 32 kHz RC oscillator is running and generating the LFCLK clock.
+ * @retval NRF_CLOCK_LFCLK_Xtal If an external 32 kHz crystal oscillator is running and generating the LFCLK clock.
+ * @retval NRF_CLOCK_LFCLK_Synth If the internal 32 kHz synthesizer from the HFCLK is running and generating the LFCLK clock.
+ */
+__STATIC_INLINE nrf_clock_lfclk_t nrf_clock_lf_srccopy_get(void);
+
+/**
+ * @brief Function for retrieving the state of the LFCLK clock.
+ *
+ * @retval false If the LFCLK clock is not running.
+ * @retval true If the LFCLK clock is running.
+ */
+__STATIC_INLINE bool nrf_clock_lf_is_running(void);
+
+/**
+ * @brief Function for retrieving the trigger status of the task LFCLKSTART.
+ *
+ * @retval NRF_CLOCK_START_TASK_NOT_TRIGGERED If the task LFCLKSTART has not been triggered.
+ * @retval NRF_CLOCK_START_TASK_TRIGGERED If the task LFCLKSTART has been triggered.
+ */
+__STATIC_INLINE nrf_clock_start_task_status_t nrf_clock_lf_start_task_status_get(void);
+
+/**
+ * @brief Function for retrieving the active source of the high-frequency clock.
+ *
+ * @retval NRF_CLOCK_HFCLK_LOW_ACCURACY If the internal 16 MHz RC oscillator is the active source of the high-frequency clock.
+ * @retval NRF_CLOCK_HFCLK_HIGH_ACCURACY If an external 16 MHz/32 MHz crystal oscillator is the active source of the high-frequency clock.
+ */
+__STATIC_INLINE nrf_clock_hfclk_t nrf_clock_hf_src_get(void);
+
+/**
+ * @brief Function for retrieving the state of the HFCLK clock.
+ *
+ * @param[in] clk_src Clock source to be checked.
+ *
+ * @retval false If the HFCLK clock is not running.
+ * @retval true If the HFCLK clock is running.
+ */
+__STATIC_INLINE bool nrf_clock_hf_is_running(nrf_clock_hfclk_t clk_src);
+
+/**
+ * @brief Function for retrieving the trigger status of the task HFCLKSTART.
+ *
+ * @retval NRF_CLOCK_START_TASK_NOT_TRIGGERED If the task HFCLKSTART has not been triggered.
+ * @retval NRF_CLOCK_START_TASK_TRIGGERED If the task HFCLKSTART has been triggered.
+ */
+__STATIC_INLINE nrf_clock_start_task_status_t nrf_clock_hf_start_task_status_get(void);
+
+/**
+ * @brief Function for changing the calibration timer interval.
+ *
+ * @param[in] interval New calibration timer interval in 0.25 s resolution (range: 0.25 seconds to 31.75 seconds).
+ */
+__STATIC_INLINE void nrf_clock_cal_timer_timeout_set(uint32_t interval);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_clock_int_enable(uint32_t int_mask)
+{
+ NRF_CLOCK->INTENSET = int_mask;
+}
+
+__STATIC_INLINE void nrf_clock_int_disable(uint32_t int_mask)
+{
+ NRF_CLOCK->INTENCLR = int_mask;
+}
+
+__STATIC_INLINE bool nrf_clock_int_enable_check(nrf_clock_int_mask_t int_mask)
+{
+ return (bool)(NRF_CLOCK->INTENCLR & int_mask);
+}
+
+__STATIC_INLINE uint32_t nrf_clock_task_address_get(nrf_clock_task_t task)
+{
+ return ((uint32_t )NRF_CLOCK + task);
+}
+
+__STATIC_INLINE void nrf_clock_task_trigger(nrf_clock_task_t task)
+{
+ *((volatile uint32_t *)((uint8_t *)NRF_CLOCK + task)) = NRF_CLOCK_TASK_TRIGGER;
+}
+
+__STATIC_INLINE uint32_t nrf_clock_event_address_get(nrf_clock_event_t event)
+{
+ return ((uint32_t)NRF_CLOCK + event);
+}
+
+__STATIC_INLINE void nrf_clock_event_clear(nrf_clock_event_t event)
+{
+ *((volatile uint32_t *)((uint8_t *)NRF_CLOCK + event)) = NRF_CLOCK_EVENT_CLEAR;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)NRF_CLOCK + event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE bool nrf_clock_event_check(nrf_clock_event_t event)
+{
+ return (bool)*((volatile uint32_t *)((uint8_t *)NRF_CLOCK + event));
+}
+
+__STATIC_INLINE void nrf_clock_lf_src_set(nrf_clock_lfclk_t source)
+{
+ NRF_CLOCK->LFCLKSRC =
+ (uint32_t)((source << CLOCK_LFCLKSRC_SRC_Pos) & CLOCK_LFCLKSRC_SRC_Msk);
+}
+
+__STATIC_INLINE nrf_clock_lfclk_t nrf_clock_lf_src_get(void)
+{
+ return (nrf_clock_lfclk_t)((NRF_CLOCK->LFCLKSRC &
+ CLOCK_LFCLKSRC_SRC_Msk) >> CLOCK_LFCLKSRC_SRC_Pos);
+}
+
+__STATIC_INLINE nrf_clock_lfclk_t nrf_clock_lf_actv_src_get(void)
+{
+ return (nrf_clock_lfclk_t)((NRF_CLOCK->LFCLKSTAT &
+ CLOCK_LFCLKSTAT_SRC_Msk) >> CLOCK_LFCLKSTAT_SRC_Pos);
+}
+
+__STATIC_INLINE nrf_clock_lfclk_t nrf_clock_lf_srccopy_get(void)
+{
+ return (nrf_clock_lfclk_t)((NRF_CLOCK->LFCLKSRCCOPY &
+ CLOCK_LFCLKSRCCOPY_SRC_Msk) >> CLOCK_LFCLKSRCCOPY_SRC_Pos);
+}
+
+__STATIC_INLINE bool nrf_clock_lf_is_running(void)
+{
+ return ((NRF_CLOCK->LFCLKSTAT &
+ CLOCK_LFCLKSTAT_STATE_Msk) >> CLOCK_LFCLKSTAT_STATE_Pos);
+}
+
+__STATIC_INLINE nrf_clock_start_task_status_t nrf_clock_lf_start_task_status_get(void)
+{
+ return (nrf_clock_start_task_status_t)((NRF_CLOCK->LFCLKRUN &
+ CLOCK_LFCLKRUN_STATUS_Msk) >>
+ CLOCK_LFCLKRUN_STATUS_Pos);
+}
+
+__STATIC_INLINE nrf_clock_hfclk_t nrf_clock_hf_src_get(void)
+{
+ return (nrf_clock_hfclk_t)((NRF_CLOCK->HFCLKSTAT &
+ CLOCK_HFCLKSTAT_SRC_Msk) >> CLOCK_HFCLKSTAT_SRC_Pos);
+}
+
+__STATIC_INLINE bool nrf_clock_hf_is_running(nrf_clock_hfclk_t clk_src)
+{
+ return (NRF_CLOCK->HFCLKSTAT & (CLOCK_HFCLKSTAT_STATE_Msk | CLOCK_HFCLKSTAT_SRC_Msk)) ==
+ (CLOCK_HFCLKSTAT_STATE_Msk | (clk_src << CLOCK_HFCLKSTAT_SRC_Pos));
+}
+
+__STATIC_INLINE nrf_clock_start_task_status_t nrf_clock_hf_start_task_status_get(void)
+{
+ return (nrf_clock_start_task_status_t)((NRF_CLOCK->HFCLKRUN &
+ CLOCK_HFCLKRUN_STATUS_Msk) >>
+ CLOCK_HFCLKRUN_STATUS_Pos);
+}
+
+__STATIC_INLINE void nrf_clock_cal_timer_timeout_set(uint32_t interval)
+{
+ NRF_CLOCK->CTIV = ((interval << CLOCK_CTIV_CTIV_Pos) & CLOCK_CTIV_CTIV_Msk);
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_CLOCK_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_comp.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_comp.h
new file mode 100644
index 0000000..0f8b108
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_comp.h
@@ -0,0 +1,509 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_COMP_H_
+#define NRF_COMP_H_
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_comp_hal COMP HAL
+ * @{
+ * @ingroup nrf_comp
+ * @brief Hardware access layer for managing the Comparator (COMP) peripheral.
+ */
+
+/**
+ * @enum nrf_comp_input_t
+ * @brief COMP analog pin selection.
+ */
+typedef enum
+{
+ NRF_COMP_INPUT_0 = COMP_PSEL_PSEL_AnalogInput0, /*!< AIN0 selected as analog input. */
+ NRF_COMP_INPUT_1 = COMP_PSEL_PSEL_AnalogInput1, /*!< AIN1 selected as analog input. */
+ NRF_COMP_INPUT_2 = COMP_PSEL_PSEL_AnalogInput2, /*!< AIN2 selected as analog input. */
+ NRF_COMP_INPUT_3 = COMP_PSEL_PSEL_AnalogInput3, /*!< AIN3 selected as analog input. */
+ NRF_COMP_INPUT_4 = COMP_PSEL_PSEL_AnalogInput4, /*!< AIN4 selected as analog input. */
+ NRF_COMP_INPUT_5 = COMP_PSEL_PSEL_AnalogInput5, /*!< AIN5 selected as analog input. */
+ NRF_COMP_INPUT_6 = COMP_PSEL_PSEL_AnalogInput6, /*!< AIN6 selected as analog input. */
+#if defined (COMP_PSEL_PSEL_AnalogInput7) || defined (__NRFX_DOXYGEN__)
+ NRF_COMP_INPUT_7 = COMP_PSEL_PSEL_AnalogInput7, /*!< AIN7 selected as analog input. */
+#endif
+#if defined (COMP_PSEL_PSEL_VddDiv2) || defined (__NRFX_DOXYGEN__)
+ NRF_COMP_VDD_DIV2 = COMP_PSEL_PSEL_VddDiv2, /*!< VDD/2 selected as analog input. */
+#endif
+}nrf_comp_input_t;
+
+/**
+ * @enum nrf_comp_ref_t
+ * @brief COMP reference selection.
+ */
+typedef enum
+{
+ NRF_COMP_REF_Int1V2 = COMP_REFSEL_REFSEL_Int1V2, /*!< VREF = internal 1.2 V reference (VDD >= 1.7 V). */
+ NRF_COMP_REF_Int1V8 = COMP_REFSEL_REFSEL_Int1V8, /*!< VREF = internal 1.8 V reference (VDD >= VREF + 0.2 V). */
+ NRF_COMP_REF_Int2V4 = COMP_REFSEL_REFSEL_Int2V4, /*!< VREF = internal 2.4 V reference (VDD >= VREF + 0.2 V). */
+ NRF_COMP_REF_VDD = COMP_REFSEL_REFSEL_VDD, /*!< VREF = VDD. */
+ NRF_COMP_REF_ARef = COMP_REFSEL_REFSEL_ARef /*!< VREF = AREF (VDD >= VREF >= AREFMIN). */
+}nrf_comp_ref_t;
+
+/**
+ * @enum nrf_comp_ext_ref_t
+ * @brief COMP external analog reference selection.
+ */
+typedef enum
+{
+ NRF_COMP_EXT_REF_0 = COMP_EXTREFSEL_EXTREFSEL_AnalogReference0, /*!< Use AIN0 as external analog reference. */
+ NRF_COMP_EXT_REF_1 = COMP_EXTREFSEL_EXTREFSEL_AnalogReference1 /*!< Use AIN1 as external analog reference. */
+}nrf_comp_ext_ref_t;
+
+/**
+ * @brief COMP THDOWN and THUP values that are used to calculate the threshold voltages VDOWN and VUP.
+ */
+typedef struct
+{
+ uint8_t th_down; /*!< THDOWN value. */
+ uint8_t th_up; /*!< THUP value. */
+}nrf_comp_th_t;
+
+/**
+ * @enum nrf_comp_main_mode_t
+ * @brief COMP main operation mode.
+ */
+typedef enum
+{
+ NRF_COMP_MAIN_MODE_SE = COMP_MODE_MAIN_SE, /*!< Single ended mode. */
+ NRF_COMP_MAIN_MODE_Diff = COMP_MODE_MAIN_Diff /*!< Differential mode. */
+}nrf_comp_main_mode_t;
+
+/**
+ * @enum nrf_comp_sp_mode_t
+ * @brief COMP speed and power mode.
+ */
+typedef enum
+{
+ NRF_COMP_SP_MODE_Low = COMP_MODE_SP_Low, /*!< Low power mode. */
+ NRF_COMP_SP_MODE_Normal = COMP_MODE_SP_Normal, /*!< Normal mode. */
+ NRF_COMP_SP_MODE_High = COMP_MODE_SP_High /*!< High speed mode. */
+}nrf_comp_sp_mode_t;
+
+/**
+ * @enum nrf_comp_hyst_t
+ * @brief COMP comparator hysteresis.
+ */
+typedef enum
+{
+ NRF_COMP_HYST_NoHyst = COMP_HYST_HYST_NoHyst, /*!< Comparator hysteresis disabled. */
+ NRF_COMP_HYST_50mV = COMP_HYST_HYST_Hyst50mV /*!< Comparator hysteresis enabled. */
+}nrf_comp_hyst_t;
+
+#if defined (COMP_ISOURCE_ISOURCE_Msk) || defined (__NRFX_DOXYGEN__)
+/**
+ * @brief COMP current source selection on analog input.
+ */
+typedef enum
+{
+ NRF_COMP_ISOURCE_Off = COMP_ISOURCE_ISOURCE_Off, /*!< Current source disabled. */
+ NRF_COMP_ISOURCE_Ien2uA5 = COMP_ISOURCE_ISOURCE_Ien2mA5, /*!< Current source enabled (+/- 2.5 uA). */
+ NRF_COMP_ISOURCE_Ien5uA = COMP_ISOURCE_ISOURCE_Ien5mA, /*!< Current source enabled (+/- 5 uA). */
+ NRF_COMP_ISOURCE_Ien10uA = COMP_ISOURCE_ISOURCE_Ien10mA /*!< Current source enabled (+/- 10 uA). */
+}nrf_isource_t;
+#endif
+
+/**
+ * @enum nrf_comp_task_t
+ * @brief COMP tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_COMP_TASK_START = offsetof(NRF_COMP_Type, TASKS_START), /*!< COMP start sampling task. */
+ NRF_COMP_TASK_STOP = offsetof(NRF_COMP_Type, TASKS_STOP), /*!< COMP stop sampling task. */
+ NRF_COMP_TASK_SAMPLE = offsetof(NRF_COMP_Type, TASKS_SAMPLE) /*!< Sample comparator value. */
+ /*lint -restore*/
+}nrf_comp_task_t;
+
+/**
+ * @enum nrf_comp_event_t
+ * @brief COMP events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_COMP_EVENT_READY = offsetof(NRF_COMP_Type, EVENTS_READY), /*!< COMP is ready and output is valid. */
+ NRF_COMP_EVENT_DOWN = offsetof(NRF_COMP_Type, EVENTS_DOWN), /*!< Input voltage crossed the threshold going down. */
+ NRF_COMP_EVENT_UP = offsetof(NRF_COMP_Type, EVENTS_UP), /*!< Input voltage crossed the threshold going up. */
+ NRF_COMP_EVENT_CROSS = offsetof(NRF_COMP_Type, EVENTS_CROSS) /*!< Input voltage crossed the threshold in any direction. */
+ /*lint -restore*/
+}nrf_comp_event_t;
+
+/**
+ * @brief COMP reference configuration.
+ */
+typedef struct
+{
+ nrf_comp_ref_t reference; /*!< COMP reference selection. */
+ nrf_comp_ext_ref_t external; /*!< COMP external analog reference selection. */
+}nrf_comp_ref_conf_t;
+
+
+/**
+ * @brief Function for enabling the COMP peripheral.
+ */
+__STATIC_INLINE void nrf_comp_enable(void);
+
+
+/**
+ * @brief Function for disabling the COMP peripheral.
+ */
+
+__STATIC_INLINE void nrf_comp_disable(void);
+
+/**
+ * @brief Function for checking if the COMP peripheral is enabled.
+ *
+ * @retval true If the COMP peripheral is enabled.
+ * @retval false If the COMP peripheral is not enabled.
+ */
+__STATIC_INLINE bool nrf_comp_enable_check(void);
+
+/**
+ * @brief Function for setting the reference source.
+ *
+ * @param[in] reference COMP reference selection.
+ */
+__STATIC_INLINE void nrf_comp_ref_set(nrf_comp_ref_t reference);
+
+
+/**
+ * @brief Function for setting the external analog reference source.
+ *
+ * @param[in] ext_ref COMP external analog reference selection.
+ */
+__STATIC_INLINE void nrf_comp_ext_ref_set(nrf_comp_ext_ref_t ext_ref);
+
+
+/**
+ * @brief Function for setting threshold voltages.
+ *
+ * @param[in] threshold COMP VDOWN and VUP thresholds.
+ */
+__STATIC_INLINE void nrf_comp_th_set(nrf_comp_th_t threshold);
+
+
+/**
+ * @brief Function for setting the main mode.
+ *
+ * @param[in] main_mode COMP main operation mode.
+ */
+__STATIC_INLINE void nrf_comp_main_mode_set(nrf_comp_main_mode_t main_mode);
+
+
+/**
+ * @brief Function for setting the speed mode.
+ *
+ * @param[in] speed_mode COMP speed and power mode.
+ */
+__STATIC_INLINE void nrf_comp_speed_mode_set(nrf_comp_sp_mode_t speed_mode);
+
+
+/**
+ * @brief Function for setting the hysteresis.
+ *
+ * @param[in] hyst COMP comparator hysteresis.
+ */
+__STATIC_INLINE void nrf_comp_hysteresis_set(nrf_comp_hyst_t hyst);
+
+
+#if defined (COMP_ISOURCE_ISOURCE_Msk) || defined (__NRFX_DOXYGEN__)
+/**
+ * @brief Function for setting the current source on the analog input.
+ *
+ * @param[in] isource COMP current source selection on analog input.
+ */
+__STATIC_INLINE void nrf_comp_isource_set(nrf_isource_t isource);
+#endif
+
+
+/**
+ * @brief Function for selecting the active input of the COMP.
+ *
+ * @param[in] input Input to be selected.
+ */
+__STATIC_INLINE void nrf_comp_input_select(nrf_comp_input_t input);
+
+
+/**
+ * @brief Function for getting the last COMP compare result.
+ *
+ * @return The last compare result. If 0, then VIN+ < VIN-. If 1, then VIN+ > VIN-.
+ *
+ * @note If VIN+ == VIN-, the return value depends on the previous result.
+ */
+__STATIC_INLINE uint32_t nrf_comp_result_get(void);
+
+
+/**
+ * @brief Function for enabling interrupts from COMP.
+ *
+ * @param[in] comp_int_mask Mask of interrupts to be enabled.
+ *
+ * @sa nrf_comp_int_enable_check()
+ */
+__STATIC_INLINE void nrf_comp_int_enable(uint32_t comp_int_mask);
+
+/**
+ * @brief Function for disabling interrupts from COMP.
+ *
+ * @param[in] comp_int_mask Mask of interrupts to be disabled.
+ *
+ * @sa nrf_comp_int_enable_check()
+ */
+__STATIC_INLINE void nrf_comp_int_disable(uint32_t comp_int_mask);
+
+
+/**
+ * @brief Function for getting the enabled interrupts of COMP.
+ *
+ * @param[in] comp_int_mask Mask of interrupts to be checked.
+ *
+ * @retval true If any interrupts of the specified mask are enabled.
+ */
+__STATIC_INLINE bool nrf_comp_int_enable_check(uint32_t comp_int_mask);
+
+
+
+/**
+ * @brief Function for getting the address of a specific COMP task register.
+ *
+ * @param[in] comp_task COMP task.
+ *
+ * @return Address of the specified COMP task.
+ */
+__STATIC_INLINE uint32_t * nrf_comp_task_address_get(nrf_comp_task_t comp_task);
+
+
+/**
+ * @brief Function for getting the address of a specific COMP event register.
+ *
+ * @param[in] comp_event COMP event.
+ *
+ * @return Address of the specified COMP event.
+ */
+__STATIC_INLINE uint32_t * nrf_comp_event_address_get(nrf_comp_event_t comp_event);
+
+
+/**
+ * @brief Function for setting COMP shorts.
+ *
+ * @param[in] comp_short_mask COMP shorts by mask.
+ *
+ */
+__STATIC_INLINE void nrf_comp_shorts_enable(uint32_t comp_short_mask);
+
+
+/**
+ * @brief Function for clearing COMP shorts by mask.
+ *
+ * @param[in] comp_short_mask COMP shorts to be cleared.
+ *
+ */
+__STATIC_INLINE void nrf_comp_shorts_disable(uint32_t comp_short_mask);
+
+
+/**
+ * @brief Function for setting a specific COMP task.
+ *
+ * @param[in] comp_task COMP task to be set.
+ *
+ */
+__STATIC_INLINE void nrf_comp_task_trigger(nrf_comp_task_t comp_task);
+
+
+/**
+ * @brief Function for clearing a specific COMP event.
+ *
+ * @param[in] comp_event COMP event to be cleared.
+ *
+ */
+__STATIC_INLINE void nrf_comp_event_clear(nrf_comp_event_t comp_event);
+
+
+/**
+ * @brief Function for getting the state of a specific COMP event.
+ *
+ * @retval true If the specified COMP event is active.
+ *
+ */
+__STATIC_INLINE bool nrf_comp_event_check(nrf_comp_event_t comp_event);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_comp_enable(void)
+{
+ NRF_COMP->ENABLE = (COMP_ENABLE_ENABLE_Enabled << COMP_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_comp_disable(void)
+{
+ NRF_COMP->ENABLE = (COMP_ENABLE_ENABLE_Disabled << COMP_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE bool nrf_comp_enable_check(void)
+{
+ return ((NRF_COMP->ENABLE) & COMP_ENABLE_ENABLE_Enabled);
+}
+
+__STATIC_INLINE void nrf_comp_ref_set(nrf_comp_ref_t reference)
+{
+ NRF_COMP->REFSEL = (reference << COMP_REFSEL_REFSEL_Pos);
+}
+
+__STATIC_INLINE void nrf_comp_ext_ref_set(nrf_comp_ext_ref_t ext_ref)
+{
+ NRF_COMP->EXTREFSEL = (ext_ref << COMP_EXTREFSEL_EXTREFSEL_Pos);
+}
+
+__STATIC_INLINE void nrf_comp_th_set(nrf_comp_th_t threshold)
+{
+ NRF_COMP->TH =
+ ((threshold.th_down << COMP_TH_THDOWN_Pos) & COMP_TH_THDOWN_Msk) |
+ ((threshold.th_up << COMP_TH_THUP_Pos) & COMP_TH_THUP_Msk);
+}
+
+__STATIC_INLINE void nrf_comp_main_mode_set(nrf_comp_main_mode_t main_mode)
+{
+ NRF_COMP->MODE |= (main_mode << COMP_MODE_MAIN_Pos);
+}
+
+__STATIC_INLINE void nrf_comp_speed_mode_set(nrf_comp_sp_mode_t speed_mode)
+{
+ NRF_COMP->MODE |= (speed_mode << COMP_MODE_SP_Pos);
+}
+
+__STATIC_INLINE void nrf_comp_hysteresis_set(nrf_comp_hyst_t hyst)
+{
+ NRF_COMP->HYST = (hyst << COMP_HYST_HYST_Pos) & COMP_HYST_HYST_Msk;
+}
+
+#if defined (COMP_ISOURCE_ISOURCE_Msk)
+__STATIC_INLINE void nrf_comp_isource_set(nrf_isource_t isource)
+{
+ NRF_COMP->ISOURCE = (isource << COMP_ISOURCE_ISOURCE_Pos) & COMP_ISOURCE_ISOURCE_Msk;
+}
+#endif
+
+__STATIC_INLINE void nrf_comp_input_select(nrf_comp_input_t input)
+{
+ NRF_COMP->PSEL = ((uint32_t)input << COMP_PSEL_PSEL_Pos);
+}
+
+__STATIC_INLINE uint32_t nrf_comp_result_get(void)
+{
+ return (uint32_t)NRF_COMP->RESULT;
+}
+
+__STATIC_INLINE void nrf_comp_int_enable(uint32_t comp_int_mask)
+{
+ NRF_COMP->INTENSET = comp_int_mask;
+}
+
+__STATIC_INLINE void nrf_comp_int_disable(uint32_t comp_int_mask)
+{
+ NRF_COMP->INTENCLR = comp_int_mask;
+}
+
+__STATIC_INLINE bool nrf_comp_int_enable_check(uint32_t comp_int_mask)
+{
+ return (NRF_COMP->INTENSET & comp_int_mask); // when read this register will return the value of INTEN.
+}
+
+__STATIC_INLINE uint32_t * nrf_comp_task_address_get(nrf_comp_task_t comp_task)
+{
+ return (uint32_t *)((uint8_t *)NRF_COMP + (uint32_t)comp_task);
+}
+
+__STATIC_INLINE uint32_t * nrf_comp_event_address_get(nrf_comp_event_t comp_event)
+{
+ return (uint32_t *)((uint8_t *)NRF_COMP + (uint32_t)comp_event);
+}
+
+__STATIC_INLINE void nrf_comp_shorts_enable(uint32_t comp_short_mask)
+{
+ NRF_COMP->SHORTS |= comp_short_mask;
+}
+
+__STATIC_INLINE void nrf_comp_shorts_disable(uint32_t comp_short_mask)
+{
+ NRF_COMP->SHORTS &= ~comp_short_mask;
+}
+
+__STATIC_INLINE void nrf_comp_task_trigger(nrf_comp_task_t comp_task)
+{
+ *( (volatile uint32_t *)( (uint8_t *)NRF_COMP + comp_task) ) = 1;
+}
+
+__STATIC_INLINE void nrf_comp_event_clear(nrf_comp_event_t comp_event)
+{
+ *( (volatile uint32_t *)( (uint8_t *)NRF_COMP + (uint32_t)comp_event) ) = 0;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)NRF_COMP + (uint32_t)comp_event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE bool nrf_comp_event_check(nrf_comp_event_t comp_event)
+{
+ return (bool) (*(volatile uint32_t *)( (uint8_t *)NRF_COMP + comp_event));
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_COMP_H_
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_ecb.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_ecb.c
new file mode 100644
index 0000000..e794a08
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_ecb.c
@@ -0,0 +1,93 @@
+/**
+ * Copyright (c) 2012 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+//lint -e438
+
+#include <nrfx.h>
+#include "nrf_ecb.h"
+#include <string.h>
+
+static uint8_t ecb_data[48]; ///< ECB data structure for RNG peripheral to access.
+static uint8_t* ecb_key; ///< Key: Starts at ecb_data
+static uint8_t* ecb_cleartext; ///< Cleartext: Starts at ecb_data + 16 bytes.
+static uint8_t* ecb_ciphertext; ///< Ciphertext: Starts at ecb_data + 32 bytes.
+
+bool nrf_ecb_init(void)
+{
+ ecb_key = ecb_data;
+ ecb_cleartext = ecb_data + 16;
+ ecb_ciphertext = ecb_data + 32;
+
+ NRF_ECB->ECBDATAPTR = (uint32_t)ecb_data;
+ return true;
+}
+
+
+bool nrf_ecb_crypt(uint8_t * dest_buf, const uint8_t * src_buf)
+{
+ uint32_t counter = 0x1000000;
+ if (src_buf != ecb_cleartext)
+ {
+ memcpy(ecb_cleartext,src_buf,16);
+ }
+ NRF_ECB->EVENTS_ENDECB = 0;
+ NRF_ECB->TASKS_STARTECB = 1;
+ while (NRF_ECB->EVENTS_ENDECB == 0)
+ {
+ counter--;
+ if (counter == 0)
+ {
+ return false;
+ }
+ }
+ NRF_ECB->EVENTS_ENDECB = 0;
+ if (dest_buf != ecb_ciphertext)
+ {
+ memcpy(dest_buf,ecb_ciphertext,16);
+ }
+ return true;
+}
+
+void nrf_ecb_set_key(const uint8_t * key)
+{
+ memcpy(ecb_key,key,16);
+}
+
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_ecb.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_ecb.h
new file mode 100644
index 0000000..15830b7
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_ecb.h
@@ -0,0 +1,97 @@
+/**
+ * Copyright (c) 2012 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_ECB_H__
+#define NRF_ECB_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_ecb_hal AES ECB encryption HAL
+ * @{
+ * @ingroup nrf_ecb
+ * @brief Driver for the AES Electronic Code Book (ECB) peripheral.
+ *
+ * To encrypt data, the peripheral must first be powered on
+ * using @ref nrf_ecb_init. Next, the key must be set using @ref nrf_ecb_set_key.
+ */
+
+/**
+ * @brief Function for initializing and powering on the ECB peripheral.
+ *
+ * This function allocates memory for the ECBDATAPTR.
+ * @retval true If initialization was successful.
+ * @retval false If powering on failed.
+ */
+bool nrf_ecb_init(void);
+
+/**
+ * @brief Function for encrypting 16-byte data using current key.
+ *
+ * This function avoids unnecessary copying of data if the parameters point to the
+ * correct locations in the ECB data structure.
+ *
+ * @param dst Result of encryption, 16 bytes will be written.
+ * @param src Source with 16-byte data to be encrypted.
+ *
+ * @retval true If the encryption operation completed.
+ * @retval false If the encryption operation did not complete.
+ */
+bool nrf_ecb_crypt(uint8_t * dst, const uint8_t * src);
+
+/**
+ * @brief Function for setting the key to be used for encryption.
+ *
+ * @param key Pointer to the key. 16 bytes will be read.
+ */
+void nrf_ecb_set_key(const uint8_t * key);
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_ECB_H__
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_egu.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_egu.h
new file mode 100644
index 0000000..083dce2
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_egu.h
@@ -0,0 +1,389 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_EGU_H__
+#define NRF_EGU_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+* @defgroup nrf_egu_hal EGU HAL
+* @{
+* @ingroup nrf_swi_egu
+* @brief Hardware access layer for managing the Event Generator Unit (EGU) peripheral.
+*/
+
+/**
+ * @enum nrf_egu_task_t
+ * @brief EGU tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30 -esym(628,__INTADDR__)*/
+ NRF_EGU_TASK_TRIGGER0 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[0]), /**< Trigger 0 for triggering the corresponding TRIGGERED[0] event. */
+ NRF_EGU_TASK_TRIGGER1 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[1]), /**< Trigger 1 for triggering the corresponding TRIGGERED[1] event. */
+ NRF_EGU_TASK_TRIGGER2 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[2]), /**< Trigger 2 for triggering the corresponding TRIGGERED[2] event. */
+ NRF_EGU_TASK_TRIGGER3 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[3]), /**< Trigger 3 for triggering the corresponding TRIGGERED[3] event. */
+ NRF_EGU_TASK_TRIGGER4 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[4]), /**< Trigger 4 for triggering the corresponding TRIGGERED[4] event. */
+ NRF_EGU_TASK_TRIGGER5 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[5]), /**< Trigger 5 for triggering the corresponding TRIGGERED[5] event. */
+ NRF_EGU_TASK_TRIGGER6 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[6]), /**< Trigger 6 for triggering the corresponding TRIGGERED[6] event. */
+ NRF_EGU_TASK_TRIGGER7 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[7]), /**< Trigger 7 for triggering the corresponding TRIGGERED[7] event. */
+ NRF_EGU_TASK_TRIGGER8 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[8]), /**< Trigger 8 for triggering the corresponding TRIGGERED[8] event. */
+ NRF_EGU_TASK_TRIGGER9 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[9]), /**< Trigger 9 for triggering the corresponding TRIGGERED[9] event. */
+ NRF_EGU_TASK_TRIGGER10 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[10]), /**< Trigger 10 for triggering the corresponding TRIGGERED[10] event. */
+ NRF_EGU_TASK_TRIGGER11 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[11]), /**< Trigger 11 for triggering the corresponding TRIGGERED[11] event. */
+ NRF_EGU_TASK_TRIGGER12 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[12]), /**< Trigger 12 for triggering the corresponding TRIGGERED[12] event. */
+ NRF_EGU_TASK_TRIGGER13 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[13]), /**< Trigger 13 for triggering the corresponding TRIGGERED[13] event. */
+ NRF_EGU_TASK_TRIGGER14 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[14]), /**< Trigger 14 for triggering the corresponding TRIGGERED[14] event. */
+ NRF_EGU_TASK_TRIGGER15 = offsetof(NRF_EGU_Type, TASKS_TRIGGER[15]) /**< Trigger 15 for triggering the corresponding TRIGGERED[15] event. */
+ /*lint -restore*/
+} nrf_egu_task_t;
+
+
+/**
+ * @enum nrf_egu_event_t
+ * @brief EGU events.
+ */
+typedef enum
+{
+ /*lint -save -e30 -esym(628,__INTADDR__)*/
+ NRF_EGU_EVENT_TRIGGERED0 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[0]), /**< Event number 0 generated by triggering the corresponding TRIGGER[0] task. */
+ NRF_EGU_EVENT_TRIGGERED1 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[1]), /**< Event number 1 generated by triggering the corresponding TRIGGER[1] task. */
+ NRF_EGU_EVENT_TRIGGERED2 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[2]), /**< Event number 2 generated by triggering the corresponding TRIGGER[2] task. */
+ NRF_EGU_EVENT_TRIGGERED3 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[3]), /**< Event number 3 generated by triggering the corresponding TRIGGER[3] task. */
+ NRF_EGU_EVENT_TRIGGERED4 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[4]), /**< Event number 4 generated by triggering the corresponding TRIGGER[4] task. */
+ NRF_EGU_EVENT_TRIGGERED5 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[5]), /**< Event number 5 generated by triggering the corresponding TRIGGER[5] task. */
+ NRF_EGU_EVENT_TRIGGERED6 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[6]), /**< Event number 6 generated by triggering the corresponding TRIGGER[6] task. */
+ NRF_EGU_EVENT_TRIGGERED7 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[7]), /**< Event number 7 generated by triggering the corresponding TRIGGER[7] task. */
+ NRF_EGU_EVENT_TRIGGERED8 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[8]), /**< Event number 8 generated by triggering the corresponding TRIGGER[8] task. */
+ NRF_EGU_EVENT_TRIGGERED9 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[9]), /**< Event number 9 generated by triggering the corresponding TRIGGER[9] task. */
+ NRF_EGU_EVENT_TRIGGERED10 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[10]), /**< Event number 10 generated by triggering the corresponding TRIGGER[10] task. */
+ NRF_EGU_EVENT_TRIGGERED11 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[11]), /**< Event number 11 generated by triggering the corresponding TRIGGER[11] task. */
+ NRF_EGU_EVENT_TRIGGERED12 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[12]), /**< Event number 12 generated by triggering the corresponding TRIGGER[12] task. */
+ NRF_EGU_EVENT_TRIGGERED13 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[13]), /**< Event number 13 generated by triggering the corresponding TRIGGER[13] task. */
+ NRF_EGU_EVENT_TRIGGERED14 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[14]), /**< Event number 14 generated by triggering the corresponding TRIGGER[14] task. */
+ NRF_EGU_EVENT_TRIGGERED15 = offsetof(NRF_EGU_Type, EVENTS_TRIGGERED[15]) /**< Event number 15 generated by triggering the corresponding TRIGGER[15] task. */
+ /*lint -restore*/
+} nrf_egu_event_t;
+
+
+/**
+ * @enum nrf_egu_int_mask_t
+ * @brief EGU interrupts.
+ */
+typedef enum
+{
+ NRF_EGU_INT_TRIGGERED0 = EGU_INTENSET_TRIGGERED0_Msk, /**< Interrupt on EVENTS_TRIGGERED[0] event. */
+ NRF_EGU_INT_TRIGGERED1 = EGU_INTENSET_TRIGGERED1_Msk, /**< Interrupt on EVENTS_TRIGGERED[1] event. */
+ NRF_EGU_INT_TRIGGERED2 = EGU_INTENSET_TRIGGERED2_Msk, /**< Interrupt on EVENTS_TRIGGERED[2] event. */
+ NRF_EGU_INT_TRIGGERED3 = EGU_INTENSET_TRIGGERED3_Msk, /**< Interrupt on EVENTS_TRIGGERED[3] event. */
+ NRF_EGU_INT_TRIGGERED4 = EGU_INTENSET_TRIGGERED4_Msk, /**< Interrupt on EVENTS_TRIGGERED[4] event. */
+ NRF_EGU_INT_TRIGGERED5 = EGU_INTENSET_TRIGGERED5_Msk, /**< Interrupt on EVENTS_TRIGGERED[5] event. */
+ NRF_EGU_INT_TRIGGERED6 = EGU_INTENSET_TRIGGERED6_Msk, /**< Interrupt on EVENTS_TRIGGERED[6] event. */
+ NRF_EGU_INT_TRIGGERED7 = EGU_INTENSET_TRIGGERED7_Msk, /**< Interrupt on EVENTS_TRIGGERED[7] event. */
+ NRF_EGU_INT_TRIGGERED8 = EGU_INTENSET_TRIGGERED8_Msk, /**< Interrupt on EVENTS_TRIGGERED[8] event. */
+ NRF_EGU_INT_TRIGGERED9 = EGU_INTENSET_TRIGGERED9_Msk, /**< Interrupt on EVENTS_TRIGGERED[9] event. */
+ NRF_EGU_INT_TRIGGERED10 = EGU_INTENSET_TRIGGERED10_Msk, /**< Interrupt on EVENTS_TRIGGERED[10] event. */
+ NRF_EGU_INT_TRIGGERED11 = EGU_INTENSET_TRIGGERED11_Msk, /**< Interrupt on EVENTS_TRIGGERED[11] event. */
+ NRF_EGU_INT_TRIGGERED12 = EGU_INTENSET_TRIGGERED12_Msk, /**< Interrupt on EVENTS_TRIGGERED[12] event. */
+ NRF_EGU_INT_TRIGGERED13 = EGU_INTENSET_TRIGGERED13_Msk, /**< Interrupt on EVENTS_TRIGGERED[13] event. */
+ NRF_EGU_INT_TRIGGERED14 = EGU_INTENSET_TRIGGERED14_Msk, /**< Interrupt on EVENTS_TRIGGERED[14] event. */
+ NRF_EGU_INT_TRIGGERED15 = EGU_INTENSET_TRIGGERED15_Msk, /**< Interrupt on EVENTS_TRIGGERED[15] event. */
+ NRF_EGU_INT_ALL = 0xFFFFuL
+} nrf_egu_int_mask_t;
+
+/**@brief Function for getting max channel number of given EGU.
+ *
+ * @param NRF_EGUx EGU instance.
+ *
+ * @returns number of available channels.
+ */
+__STATIC_INLINE uint32_t nrf_egu_channel_count(NRF_EGU_Type * NRF_EGUx);
+
+/**
+ * @brief Function for triggering a specific EGU task.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param egu_task EGU task.
+ */
+__STATIC_INLINE void nrf_egu_task_trigger(NRF_EGU_Type * NRF_EGUx, nrf_egu_task_t egu_task);
+
+/**
+ * @brief Function for returning the address of a specific EGU task register.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param egu_task EGU task.
+ */
+__STATIC_INLINE uint32_t * nrf_egu_task_address_get(NRF_EGU_Type * NRF_EGUx,
+ nrf_egu_task_t egu_task);
+
+/**
+ * @brief Function for returning the address of a specific EGU TRIGGER task register.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param channel Channel number.
+ */
+__STATIC_INLINE uint32_t * nrf_egu_task_trigger_address_get(NRF_EGU_Type * NRF_EGUx,
+ uint8_t channel);
+
+/**
+ * @brief Function for returning the specific EGU TRIGGER task.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param channel Channel number.
+ */
+__STATIC_INLINE nrf_egu_task_t nrf_egu_task_trigger_get(NRF_EGU_Type * NRF_EGUx, uint8_t channel);
+
+/**
+ * @brief Function for returning the state of a specific EGU event.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param egu_event EGU event to check.
+ */
+__STATIC_INLINE bool nrf_egu_event_check(NRF_EGU_Type * NRF_EGUx,
+ nrf_egu_event_t egu_event);
+
+/**
+ * @brief Function for clearing a specific EGU event.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param egu_event EGU event to clear.
+ */
+__STATIC_INLINE void nrf_egu_event_clear(NRF_EGU_Type * NRF_EGUx,
+ nrf_egu_event_t egu_event);
+
+/**
+ * @brief Function for returning the address of a specific EGU event register.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param egu_event EGU event.
+ */
+__STATIC_INLINE uint32_t * nrf_egu_event_address_get(NRF_EGU_Type * NRF_EGUx,
+ nrf_egu_event_t egu_event);
+
+/**
+ * @brief Function for returning the address of a specific EGU TRIGGERED event register.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param channel Channel number.
+ */
+__STATIC_INLINE uint32_t * nrf_egu_event_triggered_address_get(NRF_EGU_Type * NRF_EGUx,
+ uint8_t channel);
+
+/**
+ * @brief Function for returning the specific EGU TRIGGERED event.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param channel Channel number.
+ */
+__STATIC_INLINE nrf_egu_event_t nrf_egu_event_triggered_get(NRF_EGU_Type * NRF_EGUx,
+ uint8_t channel);
+
+/**
+ * @brief Function for enabling one or more specific EGU interrupts.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param egu_int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_egu_int_enable(NRF_EGU_Type * NRF_EGUx, uint32_t egu_int_mask);
+
+/**
+ * @brief Function for retrieving the state of one or more EGU interrupts.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param egu_int_mask Interrupts to check.
+ *
+ * @retval true If all of the specified interrupts are enabled.
+ * @retval false If at least one of the specified interrupts is disabled.
+ */
+__STATIC_INLINE bool nrf_egu_int_enable_check(NRF_EGU_Type * NRF_EGUx, uint32_t egu_int_mask);
+
+/**
+ * @brief Function for disabling one or more specific EGU interrupts.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param egu_int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_egu_int_disable(NRF_EGU_Type * NRF_EGUx, uint32_t egu_int_mask);
+
+/**
+ * @brief Function for retrieving one or more specific EGU interrupts.
+ *
+ * @param NRF_EGUx EGU instance.
+ * @param channel Channel number.
+ *
+ * @returns EGU interrupt mask.
+ */
+__STATIC_INLINE nrf_egu_int_mask_t nrf_egu_int_get(NRF_EGU_Type * NRF_EGUx, uint8_t channel);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE uint32_t nrf_egu_channel_count(NRF_EGU_Type * NRF_EGUx)
+{
+ if (NRF_EGUx == NRF_EGU0){
+ return EGU0_CH_NUM;
+ }
+ if (NRF_EGUx == NRF_EGU1){
+ return EGU1_CH_NUM;
+ }
+#if EGU_COUNT > 2
+ if (NRF_EGUx == NRF_EGU2){
+ return EGU2_CH_NUM;
+ }
+ if (NRF_EGUx == NRF_EGU3){
+ return EGU3_CH_NUM;
+ }
+ if (NRF_EGUx == NRF_EGU4){
+ return EGU4_CH_NUM;
+ }
+ if (NRF_EGUx == NRF_EGU5){
+ return EGU5_CH_NUM;
+ }
+#endif
+ return 0;
+}
+
+__STATIC_INLINE void nrf_egu_task_trigger(NRF_EGU_Type * NRF_EGUx, nrf_egu_task_t egu_task)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ *((volatile uint32_t *)((uint8_t *)NRF_EGUx + (uint32_t)egu_task)) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t * nrf_egu_task_address_get(NRF_EGU_Type * NRF_EGUx,
+ nrf_egu_task_t egu_task)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ return (uint32_t *)((uint8_t *)NRF_EGUx + (uint32_t)egu_task);
+}
+
+__STATIC_INLINE uint32_t * nrf_egu_task_trigger_address_get(NRF_EGU_Type * NRF_EGUx,
+ uint8_t channel)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ NRFX_ASSERT(channel < nrf_egu_channel_count(NRF_EGUx));
+ return (uint32_t*)&NRF_EGUx->TASKS_TRIGGER[channel];
+}
+
+__STATIC_INLINE nrf_egu_task_t nrf_egu_task_trigger_get(NRF_EGU_Type * NRF_EGUx, uint8_t channel)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ NRFX_ASSERT(channel < nrf_egu_channel_count(NRF_EGUx));
+ return (nrf_egu_task_t)((uint32_t) NRF_EGU_TASK_TRIGGER0 + (channel * sizeof(uint32_t)));
+}
+
+__STATIC_INLINE bool nrf_egu_event_check(NRF_EGU_Type * NRF_EGUx,
+ nrf_egu_event_t egu_event)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ return (bool)*(volatile uint32_t *)((uint8_t *)NRF_EGUx + (uint32_t)egu_event);
+}
+
+__STATIC_INLINE void nrf_egu_event_clear(NRF_EGU_Type * NRF_EGUx,
+ nrf_egu_event_t egu_event)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ *((volatile uint32_t *)((uint8_t *)NRF_EGUx + (uint32_t)egu_event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)NRF_EGUx + (uint32_t)egu_event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE uint32_t * nrf_egu_event_address_get(NRF_EGU_Type * NRF_EGUx,
+ nrf_egu_event_t egu_event)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ return (uint32_t *)((uint8_t *)NRF_EGUx + (uint32_t)egu_event);
+}
+
+__STATIC_INLINE uint32_t * nrf_egu_event_triggered_address_get(NRF_EGU_Type * NRF_EGUx,
+ uint8_t channel)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ NRFX_ASSERT(channel < nrf_egu_channel_count(NRF_EGUx));
+ return (uint32_t*)&NRF_EGUx->EVENTS_TRIGGERED[channel];
+}
+
+__STATIC_INLINE nrf_egu_event_t nrf_egu_event_triggered_get(NRF_EGU_Type * NRF_EGUx,
+ uint8_t channel)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ NRFX_ASSERT(channel < nrf_egu_channel_count(NRF_EGUx));
+ return (nrf_egu_event_t)((uint32_t) NRF_EGU_EVENT_TRIGGERED0 + (channel * sizeof(uint32_t)));
+}
+
+__STATIC_INLINE void nrf_egu_int_enable(NRF_EGU_Type * NRF_EGUx, uint32_t egu_int_mask)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ NRF_EGUx->INTENSET = egu_int_mask;
+}
+
+__STATIC_INLINE bool nrf_egu_int_enable_check(NRF_EGU_Type * NRF_EGUx, uint32_t egu_int_mask)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ return (bool)(NRF_EGUx->INTENSET & egu_int_mask);
+}
+
+__STATIC_INLINE void nrf_egu_int_disable(NRF_EGU_Type * NRF_EGUx, uint32_t egu_int_mask)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ NRF_EGUx->INTENCLR = egu_int_mask;
+}
+
+__STATIC_INLINE nrf_egu_int_mask_t nrf_egu_int_get(NRF_EGU_Type * NRF_EGUx, uint8_t channel)
+{
+ NRFX_ASSERT(NRF_EGUx);
+ NRFX_ASSERT(channel < nrf_egu_channel_count(NRF_EGUx));
+ return (nrf_egu_int_mask_t)((uint32_t) (EGU_INTENSET_TRIGGERED0_Msk << channel));
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_gpio.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_gpio.h
new file mode 100644
index 0000000..0911320
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_gpio.h
@@ -0,0 +1,785 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_GPIO_H__
+#define NRF_GPIO_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_gpio_hal GPIO HAL
+ * @{
+ * @ingroup nrf_gpio
+ * @brief Hardware access layer for managing the GPIO peripheral.
+ */
+
+#if (GPIO_COUNT == 1)
+#define NUMBER_OF_PINS (P0_PIN_NUM)
+#define GPIO_REG_LIST {NRF_GPIO}
+#elif (GPIO_COUNT == 2)
+#define NUMBER_OF_PINS (P0_PIN_NUM + P1_PIN_NUM)
+#define GPIO_REG_LIST {NRF_P0, NRF_P1}
+#else
+#error "Not supported."
+#endif
+
+
+/**
+ * @brief Macro for mapping port and pin numbers to values understandable for nrf_gpio functions.
+ */
+#define NRF_GPIO_PIN_MAP(port, pin) (((port) << 5) | ((pin) & 0x1F))
+
+/**
+ * @brief Pin direction definitions.
+ */
+typedef enum
+{
+ NRF_GPIO_PIN_DIR_INPUT = GPIO_PIN_CNF_DIR_Input, ///< Input.
+ NRF_GPIO_PIN_DIR_OUTPUT = GPIO_PIN_CNF_DIR_Output ///< Output.
+} nrf_gpio_pin_dir_t;
+
+/**
+ * @brief Connection of input buffer.
+ */
+typedef enum
+{
+ NRF_GPIO_PIN_INPUT_CONNECT = GPIO_PIN_CNF_INPUT_Connect, ///< Connect input buffer.
+ NRF_GPIO_PIN_INPUT_DISCONNECT = GPIO_PIN_CNF_INPUT_Disconnect ///< Disconnect input buffer.
+} nrf_gpio_pin_input_t;
+
+/**
+ * @brief Enumerator used for selecting the pin to be pulled down or up at the time of pin configuration.
+ */
+typedef enum
+{
+ NRF_GPIO_PIN_NOPULL = GPIO_PIN_CNF_PULL_Disabled, ///< Pin pull-up resistor disabled.
+ NRF_GPIO_PIN_PULLDOWN = GPIO_PIN_CNF_PULL_Pulldown, ///< Pin pull-down resistor enabled.
+ NRF_GPIO_PIN_PULLUP = GPIO_PIN_CNF_PULL_Pullup, ///< Pin pull-up resistor enabled.
+} nrf_gpio_pin_pull_t;
+
+/**
+ * @brief Enumerator used for selecting output drive mode.
+ */
+typedef enum
+{
+ NRF_GPIO_PIN_S0S1 = GPIO_PIN_CNF_DRIVE_S0S1, ///< !< Standard '0', standard '1'.
+ NRF_GPIO_PIN_H0S1 = GPIO_PIN_CNF_DRIVE_H0S1, ///< !< High-drive '0', standard '1'.
+ NRF_GPIO_PIN_S0H1 = GPIO_PIN_CNF_DRIVE_S0H1, ///< !< Standard '0', high-drive '1'.
+ NRF_GPIO_PIN_H0H1 = GPIO_PIN_CNF_DRIVE_H0H1, ///< !< High drive '0', high-drive '1'.
+ NRF_GPIO_PIN_D0S1 = GPIO_PIN_CNF_DRIVE_D0S1, ///< !< Disconnect '0' standard '1'.
+ NRF_GPIO_PIN_D0H1 = GPIO_PIN_CNF_DRIVE_D0H1, ///< !< Disconnect '0', high-drive '1'.
+ NRF_GPIO_PIN_S0D1 = GPIO_PIN_CNF_DRIVE_S0D1, ///< !< Standard '0', disconnect '1'.
+ NRF_GPIO_PIN_H0D1 = GPIO_PIN_CNF_DRIVE_H0D1, ///< !< High-drive '0', disconnect '1'.
+} nrf_gpio_pin_drive_t;
+
+/**
+ * @brief Enumerator used for selecting the pin to sense high or low level on the pin input.
+ */
+typedef enum
+{
+ NRF_GPIO_PIN_NOSENSE = GPIO_PIN_CNF_SENSE_Disabled, ///< Pin sense level disabled.
+ NRF_GPIO_PIN_SENSE_LOW = GPIO_PIN_CNF_SENSE_Low, ///< Pin sense low level.
+ NRF_GPIO_PIN_SENSE_HIGH = GPIO_PIN_CNF_SENSE_High, ///< Pin sense high level.
+} nrf_gpio_pin_sense_t;
+
+/**
+ * @brief Function for configuring the GPIO pin range as output pins with normal drive strength.
+ * This function can be used to configure pin range as simple output with gate driving GPIO_PIN_CNF_DRIVE_S0S1 (normal cases).
+ *
+ * @param pin_range_start Specifies the start number (inclusive) in the range of pin numbers to be configured (allowed values 0-30).
+ *
+ * @param pin_range_end Specifies the end number (inclusive) in the range of pin numbers to be configured (allowed values 0-30).
+ *
+ * @note For configuring only one pin as output, use @ref nrf_gpio_cfg_output.
+ * Sense capability on the pin is disabled and input is disconnected from the buffer as the pins are configured as output.
+ */
+__STATIC_INLINE void nrf_gpio_range_cfg_output(uint32_t pin_range_start, uint32_t pin_range_end);
+
+/**
+ * @brief Function for configuring the GPIO pin range as input pins with given initial value set, hiding inner details.
+ * This function can be used to configure pin range as simple input.
+ *
+ * @param pin_range_start Specifies the start number (inclusive) in the range of pin numbers to be configured (allowed values 0-30).
+ *
+ * @param pin_range_end Specifies the end number (inclusive) in the range of pin numbers to be configured (allowed values 0-30).
+ *
+ * @param pull_config State of the pin range pull resistor (no pull, pulled down, or pulled high).
+ *
+ * @note For configuring only one pin as input, use @ref nrf_gpio_cfg_input.
+ * Sense capability on the pin is disabled and input is connected to buffer so that the GPIO->IN register is readable.
+ */
+__STATIC_INLINE void nrf_gpio_range_cfg_input(uint32_t pin_range_start,
+ uint32_t pin_range_end,
+ nrf_gpio_pin_pull_t pull_config);
+
+/**
+ * @brief Pin configuration function.
+ *
+ * The main pin configuration function.
+ * This function allows to set any aspect in PIN_CNF register.
+ * @param pin_number Specifies the pin number.
+ * @param dir Pin direction.
+ * @param input Connect or disconnect the input buffer.
+ * @param pull Pull configuration.
+ * @param drive Drive configuration.
+ * @param sense Pin sensing mechanism.
+ */
+__STATIC_INLINE void nrf_gpio_cfg(
+ uint32_t pin_number,
+ nrf_gpio_pin_dir_t dir,
+ nrf_gpio_pin_input_t input,
+ nrf_gpio_pin_pull_t pull,
+ nrf_gpio_pin_drive_t drive,
+ nrf_gpio_pin_sense_t sense);
+
+/**
+ * @brief Function for configuring the given GPIO pin number as output, hiding inner details.
+ * This function can be used to configure a pin as simple output with gate driving GPIO_PIN_CNF_DRIVE_S0S1 (normal cases).
+ *
+ * @param pin_number Specifies the pin number.
+ *
+ * @note Sense capability on the pin is disabled and input is disconnected from the buffer as the pins are configured as output.
+ */
+__STATIC_INLINE void nrf_gpio_cfg_output(uint32_t pin_number);
+
+/**
+ * @brief Function for configuring the given GPIO pin number as input, hiding inner details.
+ * This function can be used to configure a pin as simple input.
+ *
+ * @param pin_number Specifies the pin number.
+ * @param pull_config State of the pin range pull resistor (no pull, pulled down, or pulled high).
+ *
+ * @note Sense capability on the pin is disabled and input is connected to buffer so that the GPIO->IN register is readable.
+ */
+__STATIC_INLINE void nrf_gpio_cfg_input(uint32_t pin_number, nrf_gpio_pin_pull_t pull_config);
+
+/**
+ * @brief Function for resetting pin configuration to its default state.
+ *
+ * @param pin_number Specifies the pin number.
+ */
+__STATIC_INLINE void nrf_gpio_cfg_default(uint32_t pin_number);
+
+/**
+ * @brief Function for configuring the given GPIO pin number as a watcher. Only input is connected.
+ *
+ * @param pin_number Specifies the pin number.
+ *
+ */
+__STATIC_INLINE void nrf_gpio_cfg_watcher(uint32_t pin_number);
+
+/**
+ * @brief Function for disconnecting input for the given GPIO.
+ *
+ * @param pin_number Specifies the pin number.
+ *
+ */
+__STATIC_INLINE void nrf_gpio_input_disconnect(uint32_t pin_number);
+
+/**
+ * @brief Function for configuring the given GPIO pin number as input, hiding inner details.
+ * This function can be used to configure pin range as simple input.
+ * Sense capability on the pin is configurable and input is connected to buffer so that the GPIO->IN register is readable.
+ *
+ * @param pin_number Specifies the pin number.
+ * @param pull_config State of the pin pull resistor (no pull, pulled down, or pulled high).
+ * @param sense_config Sense level of the pin (no sense, sense low, or sense high).
+ */
+__STATIC_INLINE void nrf_gpio_cfg_sense_input(uint32_t pin_number,
+ nrf_gpio_pin_pull_t pull_config,
+ nrf_gpio_pin_sense_t sense_config);
+
+/**
+ * @brief Function for configuring sense level for the given GPIO.
+ *
+ * @param pin_number Specifies the pin number.
+ * @param sense_config Sense configuration.
+ *
+ */
+__STATIC_INLINE void nrf_gpio_cfg_sense_set(uint32_t pin_number, nrf_gpio_pin_sense_t sense_config);
+
+/**
+ * @brief Function for setting the direction for a GPIO pin.
+ *
+ * @param pin_number Specifies the pin number for which to set the direction.
+ *
+ * @param direction Specifies the direction.
+ */
+__STATIC_INLINE void nrf_gpio_pin_dir_set(uint32_t pin_number, nrf_gpio_pin_dir_t direction);
+
+/**
+ * @brief Function for setting a GPIO pin.
+ *
+ * Note that the pin must be configured as an output for this function to have any effect.
+ *
+ * @param pin_number Specifies the pin number to set.
+ */
+__STATIC_INLINE void nrf_gpio_pin_set(uint32_t pin_number);
+
+/**
+ * @brief Function for clearing a GPIO pin.
+ *
+ * Note that the pin must be configured as an output for this
+ * function to have any effect.
+ *
+ * @param pin_number Specifies the pin number to clear.
+ */
+__STATIC_INLINE void nrf_gpio_pin_clear(uint32_t pin_number);
+
+/**
+ * @brief Function for toggling a GPIO pin.
+ *
+ * Note that the pin must be configured as an output for this
+ * function to have any effect.
+ *
+ * @param pin_number Specifies the pin number to toggle.
+ */
+__STATIC_INLINE void nrf_gpio_pin_toggle(uint32_t pin_number);
+
+/**
+ * @brief Function for writing a value to a GPIO pin.
+ *
+ * Note that the pin must be configured as an output for this
+ * function to have any effect.
+ *
+ * @param pin_number Specifies the pin number to write.
+ *
+ * @param value Specifies the value to be written to the pin.
+ * @arg 0 Clears the pin.
+ * @arg >=1 Sets the pin.
+ */
+__STATIC_INLINE void nrf_gpio_pin_write(uint32_t pin_number, uint32_t value);
+
+/**
+ * @brief Function for reading the input level of a GPIO pin.
+ *
+ * Note that the pin must have input connected for the value
+ * returned from this function to be valid.
+ *
+ * @param pin_number Specifies the pin number to read.
+ *
+ * @return 0 if the pin input level is low. Positive value if the pin is high.
+ */
+__STATIC_INLINE uint32_t nrf_gpio_pin_read(uint32_t pin_number);
+
+/**
+ * @brief Function for reading the output level of a GPIO pin.
+ *
+ * @param pin_number Specifies the pin number to read.
+ *
+ * @return 0 if the pin output level is low. Positive value if pin output is high.
+ */
+__STATIC_INLINE uint32_t nrf_gpio_pin_out_read(uint32_t pin_number);
+
+/**
+ * @brief Function for reading the sense configuration of a GPIO pin.
+ *
+ * @param pin_number Specifies the pin number to read.
+ *
+ * @retval Sense configuration.
+ */
+__STATIC_INLINE nrf_gpio_pin_sense_t nrf_gpio_pin_sense_get(uint32_t pin_number);
+
+/**
+ * @brief Function for setting output direction on selected pins on a given port.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param out_mask Mask specifying the pins to set as output.
+ *
+ */
+__STATIC_INLINE void nrf_gpio_port_dir_output_set(NRF_GPIO_Type * p_reg, uint32_t out_mask);
+
+/**
+ * @brief Function for setting input direction on selected pins on a given port.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param in_mask Mask specifying the pins to set as input.
+ *
+ */
+__STATIC_INLINE void nrf_gpio_port_dir_input_set(NRF_GPIO_Type * p_reg, uint32_t in_mask);
+
+/**
+ * @brief Function for writing the direction configuration of GPIO pins in a given port.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param dir_mask Mask specifying the direction of pins. Bit set means that the given pin is configured as output.
+ *
+ */
+__STATIC_INLINE void nrf_gpio_port_dir_write(NRF_GPIO_Type * p_reg, uint32_t dir_mask);
+
+/**
+ * @brief Function for reading the direction configuration of a GPIO port.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ *
+ * @retval Pin configuration of the current direction settings. Bit set means that the given pin is configured as output.
+ */
+__STATIC_INLINE uint32_t nrf_gpio_port_dir_read(NRF_GPIO_Type const * p_reg);
+
+/**
+ * @brief Function for reading the input signals of GPIO pins on a given port.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ *
+ * @retval Port input values.
+ */
+__STATIC_INLINE uint32_t nrf_gpio_port_in_read(NRF_GPIO_Type const * p_reg);
+
+/**
+ * @brief Function for reading the output signals of GPIO pins of a given port.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ *
+ * @retval Port output values.
+ */
+__STATIC_INLINE uint32_t nrf_gpio_port_out_read(NRF_GPIO_Type const * p_reg);
+
+/**
+ * @brief Function for writing the GPIO pins output on a given port.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param value Output port mask.
+ *
+ */
+__STATIC_INLINE void nrf_gpio_port_out_write(NRF_GPIO_Type * p_reg, uint32_t value);
+
+/**
+ * @brief Function for setting high level on selected GPIO pins of a given port.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param set_mask Mask with pins to set as logical high level.
+ *
+ */
+__STATIC_INLINE void nrf_gpio_port_out_set(NRF_GPIO_Type * p_reg, uint32_t set_mask);
+
+/**
+ * @brief Function for setting low level on selected GPIO pins of a given port.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param clr_mask Mask with pins to set as logical low level.
+ *
+ */
+__STATIC_INLINE void nrf_gpio_port_out_clear(NRF_GPIO_Type * p_reg, uint32_t clr_mask);
+
+/**
+ * @brief Function for reading pins state of multiple consecutive ports.
+ *
+ * @param start_port Index of the first port to read.
+ * @param length Number of ports to read.
+ * @param p_masks Pointer to output array where port states will be stored.
+ */
+__STATIC_INLINE void nrf_gpio_ports_read(uint32_t start_port, uint32_t length, uint32_t * p_masks);
+
+#if defined(GPIO_DETECTMODE_DETECTMODE_LDETECT) || defined(__NRF_DOXYGEN__)
+/**
+ * @brief Function for reading latch state of multiple consecutive ports.
+ *
+ * @param start_port Index of the first port to read.
+ * @param length Number of ports to read.
+ * @param p_masks Pointer to output array where latch states will be stored.
+ */
+__STATIC_INLINE void nrf_gpio_latches_read(uint32_t start_port, uint32_t length,
+ uint32_t * p_masks);
+
+/**
+ * @brief Function for reading latch state of single pin.
+ *
+ * @param pin_number Pin number.
+ * @return 0 if latch is not set. Positive value otherwise.
+ *
+ */
+__STATIC_INLINE uint32_t nrf_gpio_pin_latch_get(uint32_t pin_number);
+
+/**
+ * @brief Function for clearing latch state of a single pin.
+ *
+ * @param pin_number Pin number.
+ *
+ */
+__STATIC_INLINE void nrf_gpio_pin_latch_clear(uint32_t pin_number);
+#endif
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+/**
+ * @brief Function for extracting port and relative pin number from absolute pin number.
+ *
+ * @param[inout] Pointer to absolute pin number which is overriden by relative to port pin number.
+ *
+ * @return Pointer to port register set.
+ *
+ */
+__STATIC_INLINE NRF_GPIO_Type * nrf_gpio_pin_port_decode(uint32_t * p_pin)
+{
+ NRFX_ASSERT(*p_pin < NUMBER_OF_PINS);
+#if (GPIO_COUNT == 1)
+ // The oldest definition case
+ return NRF_GPIO;
+#else
+ if (*p_pin < P0_PIN_NUM)
+ {
+ return NRF_P0;
+ }
+ else
+ {
+ *p_pin = *p_pin & (P0_PIN_NUM - 1);
+ return NRF_P1;
+ }
+#endif
+}
+
+
+__STATIC_INLINE void nrf_gpio_range_cfg_output(uint32_t pin_range_start, uint32_t pin_range_end)
+{
+ /*lint -e{845} // A zero has been given as right argument to operator '|'" */
+ for (; pin_range_start <= pin_range_end; pin_range_start++)
+ {
+ nrf_gpio_cfg_output(pin_range_start);
+ }
+}
+
+
+__STATIC_INLINE void nrf_gpio_range_cfg_input(uint32_t pin_range_start,
+ uint32_t pin_range_end,
+ nrf_gpio_pin_pull_t pull_config)
+{
+ /*lint -e{845} // A zero has been given as right argument to operator '|'" */
+ for (; pin_range_start <= pin_range_end; pin_range_start++)
+ {
+ nrf_gpio_cfg_input(pin_range_start, pull_config);
+ }
+}
+
+
+__STATIC_INLINE void nrf_gpio_cfg(
+ uint32_t pin_number,
+ nrf_gpio_pin_dir_t dir,
+ nrf_gpio_pin_input_t input,
+ nrf_gpio_pin_pull_t pull,
+ nrf_gpio_pin_drive_t drive,
+ nrf_gpio_pin_sense_t sense)
+{
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+
+ reg->PIN_CNF[pin_number] = ((uint32_t)dir << GPIO_PIN_CNF_DIR_Pos)
+ | ((uint32_t)input << GPIO_PIN_CNF_INPUT_Pos)
+ | ((uint32_t)pull << GPIO_PIN_CNF_PULL_Pos)
+ | ((uint32_t)drive << GPIO_PIN_CNF_DRIVE_Pos)
+ | ((uint32_t)sense << GPIO_PIN_CNF_SENSE_Pos);
+}
+
+
+__STATIC_INLINE void nrf_gpio_cfg_output(uint32_t pin_number)
+{
+ nrf_gpio_cfg(
+ pin_number,
+ NRF_GPIO_PIN_DIR_OUTPUT,
+ NRF_GPIO_PIN_INPUT_DISCONNECT,
+ NRF_GPIO_PIN_NOPULL,
+ NRF_GPIO_PIN_S0S1,
+ NRF_GPIO_PIN_NOSENSE);
+}
+
+
+__STATIC_INLINE void nrf_gpio_cfg_input(uint32_t pin_number, nrf_gpio_pin_pull_t pull_config)
+{
+ nrf_gpio_cfg(
+ pin_number,
+ NRF_GPIO_PIN_DIR_INPUT,
+ NRF_GPIO_PIN_INPUT_CONNECT,
+ pull_config,
+ NRF_GPIO_PIN_S0S1,
+ NRF_GPIO_PIN_NOSENSE);
+}
+
+
+__STATIC_INLINE void nrf_gpio_cfg_default(uint32_t pin_number)
+{
+ nrf_gpio_cfg(
+ pin_number,
+ NRF_GPIO_PIN_DIR_INPUT,
+ NRF_GPIO_PIN_INPUT_DISCONNECT,
+ NRF_GPIO_PIN_NOPULL,
+ NRF_GPIO_PIN_S0S1,
+ NRF_GPIO_PIN_NOSENSE);
+}
+
+
+__STATIC_INLINE void nrf_gpio_cfg_watcher(uint32_t pin_number)
+{
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+ /*lint -e{845} // A zero has been given as right argument to operator '|'" */
+ uint32_t cnf = reg->PIN_CNF[pin_number] & ~GPIO_PIN_CNF_INPUT_Msk;
+
+ reg->PIN_CNF[pin_number] = cnf | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos);
+}
+
+
+__STATIC_INLINE void nrf_gpio_input_disconnect(uint32_t pin_number)
+{
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+ /*lint -e{845} // A zero has been given as right argument to operator '|'" */
+ uint32_t cnf = reg->PIN_CNF[pin_number] & ~GPIO_PIN_CNF_INPUT_Msk;
+
+ reg->PIN_CNF[pin_number] = cnf | (GPIO_PIN_CNF_INPUT_Disconnect << GPIO_PIN_CNF_INPUT_Pos);
+}
+
+
+__STATIC_INLINE void nrf_gpio_cfg_sense_input(uint32_t pin_number,
+ nrf_gpio_pin_pull_t pull_config,
+ nrf_gpio_pin_sense_t sense_config)
+{
+ nrf_gpio_cfg(
+ pin_number,
+ NRF_GPIO_PIN_DIR_INPUT,
+ NRF_GPIO_PIN_INPUT_CONNECT,
+ pull_config,
+ NRF_GPIO_PIN_S0S1,
+ sense_config);
+}
+
+
+__STATIC_INLINE void nrf_gpio_cfg_sense_set(uint32_t pin_number, nrf_gpio_pin_sense_t sense_config)
+{
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+
+ /*lint -e{845} // A zero has been given as right argument to operator '|'" */
+ reg->PIN_CNF[pin_number] &= ~GPIO_PIN_CNF_SENSE_Msk;
+ reg->PIN_CNF[pin_number] |= (sense_config << GPIO_PIN_CNF_SENSE_Pos);
+}
+
+
+__STATIC_INLINE void nrf_gpio_pin_dir_set(uint32_t pin_number, nrf_gpio_pin_dir_t direction)
+{
+ if (direction == NRF_GPIO_PIN_DIR_INPUT)
+ {
+ nrf_gpio_cfg(
+ pin_number,
+ NRF_GPIO_PIN_DIR_INPUT,
+ NRF_GPIO_PIN_INPUT_CONNECT,
+ NRF_GPIO_PIN_NOPULL,
+ NRF_GPIO_PIN_S0S1,
+ NRF_GPIO_PIN_NOSENSE);
+ }
+ else
+ {
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+ reg->DIRSET = (1UL << pin_number);
+ }
+}
+
+
+__STATIC_INLINE void nrf_gpio_pin_set(uint32_t pin_number)
+{
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+
+ nrf_gpio_port_out_set(reg, 1UL << pin_number);
+}
+
+
+__STATIC_INLINE void nrf_gpio_pin_clear(uint32_t pin_number)
+{
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+
+ nrf_gpio_port_out_clear(reg, 1UL << pin_number);
+}
+
+
+__STATIC_INLINE void nrf_gpio_pin_toggle(uint32_t pin_number)
+{
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+ uint32_t pins_state = reg->OUT;
+
+ reg->OUTSET = (~pins_state & (1UL << pin_number));
+ reg->OUTCLR = (pins_state & (1UL << pin_number));
+}
+
+
+__STATIC_INLINE void nrf_gpio_pin_write(uint32_t pin_number, uint32_t value)
+{
+ if (value == 0)
+ {
+ nrf_gpio_pin_clear(pin_number);
+ }
+ else
+ {
+ nrf_gpio_pin_set(pin_number);
+ }
+}
+
+
+__STATIC_INLINE uint32_t nrf_gpio_pin_read(uint32_t pin_number)
+{
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+
+ return ((nrf_gpio_port_in_read(reg) >> pin_number) & 1UL);
+}
+
+
+__STATIC_INLINE uint32_t nrf_gpio_pin_out_read(uint32_t pin_number)
+{
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+
+ return ((nrf_gpio_port_out_read(reg) >> pin_number) & 1UL);
+}
+
+
+__STATIC_INLINE nrf_gpio_pin_sense_t nrf_gpio_pin_sense_get(uint32_t pin_number)
+{
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+
+ return (nrf_gpio_pin_sense_t)((reg->PIN_CNF[pin_number] &
+ GPIO_PIN_CNF_SENSE_Msk) >> GPIO_PIN_CNF_SENSE_Pos);
+}
+
+
+__STATIC_INLINE void nrf_gpio_port_dir_output_set(NRF_GPIO_Type * p_reg, uint32_t out_mask)
+{
+ p_reg->DIRSET = out_mask;
+}
+
+
+__STATIC_INLINE void nrf_gpio_port_dir_input_set(NRF_GPIO_Type * p_reg, uint32_t in_mask)
+{
+ p_reg->DIRCLR = in_mask;
+}
+
+
+__STATIC_INLINE void nrf_gpio_port_dir_write(NRF_GPIO_Type * p_reg, uint32_t value)
+{
+ p_reg->DIR = value;
+}
+
+
+__STATIC_INLINE uint32_t nrf_gpio_port_dir_read(NRF_GPIO_Type const * p_reg)
+{
+ return p_reg->DIR;
+}
+
+
+__STATIC_INLINE uint32_t nrf_gpio_port_in_read(NRF_GPIO_Type const * p_reg)
+{
+ return p_reg->IN;
+}
+
+
+__STATIC_INLINE uint32_t nrf_gpio_port_out_read(NRF_GPIO_Type const * p_reg)
+{
+ return p_reg->OUT;
+}
+
+
+__STATIC_INLINE void nrf_gpio_port_out_write(NRF_GPIO_Type * p_reg, uint32_t value)
+{
+ p_reg->OUT = value;
+}
+
+
+__STATIC_INLINE void nrf_gpio_port_out_set(NRF_GPIO_Type * p_reg, uint32_t set_mask)
+{
+ p_reg->OUTSET = set_mask;
+}
+
+
+__STATIC_INLINE void nrf_gpio_port_out_clear(NRF_GPIO_Type * p_reg, uint32_t clr_mask)
+{
+ p_reg->OUTCLR = clr_mask;
+}
+
+
+__STATIC_INLINE void nrf_gpio_ports_read(uint32_t start_port, uint32_t length, uint32_t * p_masks)
+{
+ NRF_GPIO_Type * gpio_regs[GPIO_COUNT] = GPIO_REG_LIST;
+
+ NRFX_ASSERT(start_port + length <= GPIO_COUNT);
+ uint32_t i;
+
+ for (i = start_port; i < (start_port + length); i++)
+ {
+ *p_masks = nrf_gpio_port_in_read(gpio_regs[i]);
+ p_masks++;
+ }
+}
+
+
+#ifdef GPIO_DETECTMODE_DETECTMODE_LDETECT
+__STATIC_INLINE void nrf_gpio_latches_read(uint32_t start_port, uint32_t length, uint32_t * p_masks)
+{
+ NRF_GPIO_Type * gpio_regs[GPIO_COUNT] = GPIO_REG_LIST;
+ uint32_t i;
+
+ for (i = start_port; i < (start_port + length); i++)
+ {
+ *p_masks = gpio_regs[i]->LATCH;
+ p_masks++;
+ }
+}
+
+
+__STATIC_INLINE uint32_t nrf_gpio_pin_latch_get(uint32_t pin_number)
+{
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+
+ return (reg->LATCH & (1 << pin_number)) ? 1 : 0;
+}
+
+
+__STATIC_INLINE void nrf_gpio_pin_latch_clear(uint32_t pin_number)
+{
+ NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number);
+
+ reg->LATCH = (1 << pin_number);
+}
+
+
+#endif
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_GPIO_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_gpiote.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_gpiote.h
new file mode 100644
index 0000000..91faf9f
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_gpiote.h
@@ -0,0 +1,428 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_GPIOTE_H__
+#define NRF_GPIOTE_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+* @defgroup nrf_gpiote_hal GPIOTE HAL
+* @{
+* @ingroup nrf_gpiote
+* @brief Hardware access layer for managing the GPIOTE peripheral.
+*/
+
+#ifdef GPIOTE_CONFIG_PORT_Msk
+#define GPIOTE_CONFIG_PORT_PIN_Msk (GPIOTE_CONFIG_PORT_Msk | GPIOTE_CONFIG_PSEL_Msk)
+#else
+#define GPIOTE_CONFIG_PORT_PIN_Msk GPIOTE_CONFIG_PSEL_Msk
+#endif
+
+ /**
+ * @enum nrf_gpiote_polarity_t
+ * @brief Polarity for the GPIOTE channel.
+ */
+typedef enum
+{
+ NRF_GPIOTE_POLARITY_LOTOHI = GPIOTE_CONFIG_POLARITY_LoToHi, ///< Low to high.
+ NRF_GPIOTE_POLARITY_HITOLO = GPIOTE_CONFIG_POLARITY_HiToLo, ///< High to low.
+ NRF_GPIOTE_POLARITY_TOGGLE = GPIOTE_CONFIG_POLARITY_Toggle ///< Toggle.
+} nrf_gpiote_polarity_t;
+
+
+ /**
+ * @enum nrf_gpiote_outinit_t
+ * @brief Initial output value for the GPIOTE channel.
+ */
+typedef enum
+{
+ NRF_GPIOTE_INITIAL_VALUE_LOW = GPIOTE_CONFIG_OUTINIT_Low, ///< Low to high.
+ NRF_GPIOTE_INITIAL_VALUE_HIGH = GPIOTE_CONFIG_OUTINIT_High ///< High to low.
+} nrf_gpiote_outinit_t;
+
+/**
+ * @brief Tasks.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_GPIOTE_TASKS_OUT_0 = offsetof(NRF_GPIOTE_Type, TASKS_OUT[0]), /**< Out task 0.*/
+ NRF_GPIOTE_TASKS_OUT_1 = offsetof(NRF_GPIOTE_Type, TASKS_OUT[1]), /**< Out task 1.*/
+ NRF_GPIOTE_TASKS_OUT_2 = offsetof(NRF_GPIOTE_Type, TASKS_OUT[2]), /**< Out task 2.*/
+ NRF_GPIOTE_TASKS_OUT_3 = offsetof(NRF_GPIOTE_Type, TASKS_OUT[3]), /**< Out task 3.*/
+#if (GPIOTE_CH_NUM > 4) || defined(__NRFX_DOXYGEN__)
+ NRF_GPIOTE_TASKS_OUT_4 = offsetof(NRF_GPIOTE_Type, TASKS_OUT[4]), /**< Out task 4.*/
+ NRF_GPIOTE_TASKS_OUT_5 = offsetof(NRF_GPIOTE_Type, TASKS_OUT[5]), /**< Out task 5.*/
+ NRF_GPIOTE_TASKS_OUT_6 = offsetof(NRF_GPIOTE_Type, TASKS_OUT[6]), /**< Out task 6.*/
+ NRF_GPIOTE_TASKS_OUT_7 = offsetof(NRF_GPIOTE_Type, TASKS_OUT[7]), /**< Out task 7.*/
+#endif
+#if defined(GPIOTE_FEATURE_SET_PRESENT) || defined(__NRFX_DOXYGEN__)
+ NRF_GPIOTE_TASKS_SET_0 = offsetof(NRF_GPIOTE_Type, TASKS_SET[0]), /**< Set task 0.*/
+ NRF_GPIOTE_TASKS_SET_1 = offsetof(NRF_GPIOTE_Type, TASKS_SET[1]), /**< Set task 1.*/
+ NRF_GPIOTE_TASKS_SET_2 = offsetof(NRF_GPIOTE_Type, TASKS_SET[2]), /**< Set task 2.*/
+ NRF_GPIOTE_TASKS_SET_3 = offsetof(NRF_GPIOTE_Type, TASKS_SET[3]), /**< Set task 3.*/
+ NRF_GPIOTE_TASKS_SET_4 = offsetof(NRF_GPIOTE_Type, TASKS_SET[4]), /**< Set task 4.*/
+ NRF_GPIOTE_TASKS_SET_5 = offsetof(NRF_GPIOTE_Type, TASKS_SET[5]), /**< Set task 5.*/
+ NRF_GPIOTE_TASKS_SET_6 = offsetof(NRF_GPIOTE_Type, TASKS_SET[6]), /**< Set task 6.*/
+ NRF_GPIOTE_TASKS_SET_7 = offsetof(NRF_GPIOTE_Type, TASKS_SET[7]), /**< Set task 7.*/
+#endif
+#if defined(GPIOTE_FEATURE_CLR_PRESENT) || defined(__NRFX_DOXYGEN__)
+ NRF_GPIOTE_TASKS_CLR_0 = offsetof(NRF_GPIOTE_Type, TASKS_CLR[0]), /**< Clear task 0.*/
+ NRF_GPIOTE_TASKS_CLR_1 = offsetof(NRF_GPIOTE_Type, TASKS_CLR[1]), /**< Clear task 1.*/
+ NRF_GPIOTE_TASKS_CLR_2 = offsetof(NRF_GPIOTE_Type, TASKS_CLR[2]), /**< Clear task 2.*/
+ NRF_GPIOTE_TASKS_CLR_3 = offsetof(NRF_GPIOTE_Type, TASKS_CLR[3]), /**< Clear task 3.*/
+ NRF_GPIOTE_TASKS_CLR_4 = offsetof(NRF_GPIOTE_Type, TASKS_CLR[4]), /**< Clear task 4.*/
+ NRF_GPIOTE_TASKS_CLR_5 = offsetof(NRF_GPIOTE_Type, TASKS_CLR[5]), /**< Clear task 5.*/
+ NRF_GPIOTE_TASKS_CLR_6 = offsetof(NRF_GPIOTE_Type, TASKS_CLR[6]), /**< Clear task 6.*/
+ NRF_GPIOTE_TASKS_CLR_7 = offsetof(NRF_GPIOTE_Type, TASKS_CLR[7]), /**< Clear task 7.*/
+#endif
+ /*lint -restore*/
+} nrf_gpiote_tasks_t;
+
+/**
+ * @brief Events.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_GPIOTE_EVENTS_IN_0 = offsetof(NRF_GPIOTE_Type, EVENTS_IN[0]), /**< In event 0.*/
+ NRF_GPIOTE_EVENTS_IN_1 = offsetof(NRF_GPIOTE_Type, EVENTS_IN[1]), /**< In event 1.*/
+ NRF_GPIOTE_EVENTS_IN_2 = offsetof(NRF_GPIOTE_Type, EVENTS_IN[2]), /**< In event 2.*/
+ NRF_GPIOTE_EVENTS_IN_3 = offsetof(NRF_GPIOTE_Type, EVENTS_IN[3]), /**< In event 3.*/
+#if (GPIOTE_CH_NUM > 4) || defined(__NRFX_DOXYGEN__)
+ NRF_GPIOTE_EVENTS_IN_4 = offsetof(NRF_GPIOTE_Type, EVENTS_IN[4]), /**< In event 4.*/
+ NRF_GPIOTE_EVENTS_IN_5 = offsetof(NRF_GPIOTE_Type, EVENTS_IN[5]), /**< In event 5.*/
+ NRF_GPIOTE_EVENTS_IN_6 = offsetof(NRF_GPIOTE_Type, EVENTS_IN[6]), /**< In event 6.*/
+ NRF_GPIOTE_EVENTS_IN_7 = offsetof(NRF_GPIOTE_Type, EVENTS_IN[7]), /**< In event 7.*/
+#endif
+ NRF_GPIOTE_EVENTS_PORT = offsetof(NRF_GPIOTE_Type, EVENTS_PORT), /**< Port event.*/
+ /*lint -restore*/
+} nrf_gpiote_events_t;
+
+/**
+ * @enum nrf_gpiote_int_t
+ * @brief GPIOTE interrupts.
+ */
+typedef enum
+{
+ NRF_GPIOTE_INT_IN0_MASK = GPIOTE_INTENSET_IN0_Msk, /**< GPIOTE interrupt from IN0. */
+ NRF_GPIOTE_INT_IN1_MASK = GPIOTE_INTENSET_IN1_Msk, /**< GPIOTE interrupt from IN1. */
+ NRF_GPIOTE_INT_IN2_MASK = GPIOTE_INTENSET_IN2_Msk, /**< GPIOTE interrupt from IN2. */
+ NRF_GPIOTE_INT_IN3_MASK = GPIOTE_INTENSET_IN3_Msk, /**< GPIOTE interrupt from IN3. */
+#if (GPIOTE_CH_NUM > 4) || defined(__NRFX_DOXYGEN__)
+ NRF_GPIOTE_INT_IN4_MASK = GPIOTE_INTENSET_IN4_Msk, /**< GPIOTE interrupt from IN4. */
+ NRF_GPIOTE_INT_IN5_MASK = GPIOTE_INTENSET_IN5_Msk, /**< GPIOTE interrupt from IN5. */
+ NRF_GPIOTE_INT_IN6_MASK = GPIOTE_INTENSET_IN6_Msk, /**< GPIOTE interrupt from IN6. */
+ NRF_GPIOTE_INT_IN7_MASK = GPIOTE_INTENSET_IN7_Msk, /**< GPIOTE interrupt from IN7. */
+#endif
+ NRF_GPIOTE_INT_PORT_MASK = (int)GPIOTE_INTENSET_PORT_Msk, /**< GPIOTE interrupt from PORT event. */
+} nrf_gpiote_int_t;
+
+#define NRF_GPIOTE_INT_IN_MASK (NRF_GPIOTE_INT_IN0_MASK | NRF_GPIOTE_INT_IN1_MASK |\
+ NRF_GPIOTE_INT_IN2_MASK | NRF_GPIOTE_INT_IN3_MASK)
+#if (GPIOTE_CH_NUM > 4)
+#undef NRF_GPIOTE_INT_IN_MASK
+#define NRF_GPIOTE_INT_IN_MASK (NRF_GPIOTE_INT_IN0_MASK | NRF_GPIOTE_INT_IN1_MASK |\
+ NRF_GPIOTE_INT_IN2_MASK | NRF_GPIOTE_INT_IN3_MASK |\
+ NRF_GPIOTE_INT_IN4_MASK | NRF_GPIOTE_INT_IN5_MASK |\
+ NRF_GPIOTE_INT_IN6_MASK | NRF_GPIOTE_INT_IN7_MASK)
+#endif
+
+/**
+ * @brief Function for activating a specific GPIOTE task.
+ *
+ * @param[in] task Task.
+ */
+__STATIC_INLINE void nrf_gpiote_task_set(nrf_gpiote_tasks_t task);
+
+/**
+ * @brief Function for getting the address of a specific GPIOTE task.
+ *
+ * @param[in] task Task.
+ *
+ * @returns Address.
+ */
+__STATIC_INLINE uint32_t nrf_gpiote_task_addr_get(nrf_gpiote_tasks_t task);
+
+/**
+ * @brief Function for getting the state of a specific GPIOTE event.
+ *
+ * @param[in] event Event.
+ */
+__STATIC_INLINE bool nrf_gpiote_event_is_set(nrf_gpiote_events_t event);
+
+/**
+ * @brief Function for clearing a specific GPIOTE event.
+ *
+ * @param[in] event Event.
+ */
+__STATIC_INLINE void nrf_gpiote_event_clear(nrf_gpiote_events_t event);
+
+/**
+ * @brief Function for getting the address of a specific GPIOTE event.
+ *
+ * @param[in] event Event.
+ *
+ * @return Address
+ */
+__STATIC_INLINE uint32_t nrf_gpiote_event_addr_get(nrf_gpiote_events_t event);
+
+/**@brief Function for enabling interrupts.
+ *
+ * @param[in] mask Interrupt mask to be enabled.
+ */
+__STATIC_INLINE void nrf_gpiote_int_enable(uint32_t mask);
+
+/**@brief Function for disabling interrupts.
+ *
+ * @param[in] mask Interrupt mask to be disabled.
+ */
+__STATIC_INLINE void nrf_gpiote_int_disable(uint32_t mask);
+
+/**@brief Function for checking if interrupts are enabled.
+ *
+ * @param[in] mask Mask of interrupt flags to check.
+ *
+ * @return Mask with enabled interrupts.
+ */
+__STATIC_INLINE uint32_t nrf_gpiote_int_is_enabled(uint32_t mask);
+
+/**@brief Function for enabling a GPIOTE event.
+ *
+ * @param[in] idx Task-Event index.
+ */
+__STATIC_INLINE void nrf_gpiote_event_enable(uint32_t idx);
+
+/**@brief Function for disabling a GPIOTE event.
+ *
+ * @param[in] idx Task-Event index.
+ */
+__STATIC_INLINE void nrf_gpiote_event_disable(uint32_t idx);
+
+/**@brief Function for configuring a GPIOTE event.
+ *
+ * @param[in] idx Task-Event index.
+ * @param[in] pin Pin associated with event.
+ * @param[in] polarity Transition that should generate an event.
+ */
+__STATIC_INLINE void nrf_gpiote_event_configure(uint32_t idx, uint32_t pin,
+ nrf_gpiote_polarity_t polarity);
+
+/**@brief Function for getting the pin associated with a GPIOTE event.
+ *
+ * @param[in] idx Task-Event index.
+ *
+ * @return Pin number.
+ */
+__STATIC_INLINE uint32_t nrf_gpiote_event_pin_get(uint32_t idx);
+
+/**@brief Function for getting the polarity associated with a GPIOTE event.
+ *
+ * @param[in] idx Task-Event index.
+ *
+ * @return Polarity.
+ */
+__STATIC_INLINE nrf_gpiote_polarity_t nrf_gpiote_event_polarity_get(uint32_t idx);
+
+/**@brief Function for enabling a GPIOTE task.
+ *
+ * @param[in] idx Task-Event index.
+ */
+__STATIC_INLINE void nrf_gpiote_task_enable(uint32_t idx);
+
+/**@brief Function for disabling a GPIOTE task.
+ *
+ * @param[in] idx Task-Event index.
+ */
+__STATIC_INLINE void nrf_gpiote_task_disable(uint32_t idx);
+
+/**@brief Function for configuring a GPIOTE task.
+ * @note Function is not configuring mode field so task is disabled after this function is called.
+ *
+ * @param[in] idx Task-Event index.
+ * @param[in] pin Pin associated with event.
+ * @param[in] polarity Transition that should generate an event.
+ * @param[in] init_val Initial value of the pin.
+ */
+__STATIC_INLINE void nrf_gpiote_task_configure(uint32_t idx, uint32_t pin,
+ nrf_gpiote_polarity_t polarity,
+ nrf_gpiote_outinit_t init_val);
+
+/**@brief Function for forcing a specific state on the pin connected to GPIOTE.
+ *
+ * @param[in] idx Task-Event index.
+ * @param[in] init_val Pin state.
+ */
+__STATIC_INLINE void nrf_gpiote_task_force(uint32_t idx, nrf_gpiote_outinit_t init_val);
+
+/**@brief Function for resetting a GPIOTE task event configuration to the default state.
+ *
+ * @param[in] idx Task-Event index.
+ */
+__STATIC_INLINE void nrf_gpiote_te_default(uint32_t idx);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+__STATIC_INLINE void nrf_gpiote_task_set(nrf_gpiote_tasks_t task)
+{
+ *(__IO uint32_t *)((uint32_t)NRF_GPIOTE + task) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t nrf_gpiote_task_addr_get(nrf_gpiote_tasks_t task)
+{
+ return ((uint32_t)NRF_GPIOTE + task);
+}
+
+__STATIC_INLINE bool nrf_gpiote_event_is_set(nrf_gpiote_events_t event)
+{
+ return (*(uint32_t *)nrf_gpiote_event_addr_get(event) == 0x1UL) ? true : false;
+}
+
+__STATIC_INLINE void nrf_gpiote_event_clear(nrf_gpiote_events_t event)
+{
+ *(uint32_t *)nrf_gpiote_event_addr_get(event) = 0;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)nrf_gpiote_event_addr_get(event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE uint32_t nrf_gpiote_event_addr_get(nrf_gpiote_events_t event)
+{
+ return ((uint32_t)NRF_GPIOTE + event);
+}
+
+__STATIC_INLINE void nrf_gpiote_int_enable(uint32_t mask)
+{
+ NRF_GPIOTE->INTENSET = mask;
+}
+
+__STATIC_INLINE void nrf_gpiote_int_disable(uint32_t mask)
+{
+ NRF_GPIOTE->INTENCLR = mask;
+}
+
+__STATIC_INLINE uint32_t nrf_gpiote_int_is_enabled(uint32_t mask)
+{
+ return (NRF_GPIOTE->INTENSET & mask);
+}
+
+__STATIC_INLINE void nrf_gpiote_event_enable(uint32_t idx)
+{
+ NRF_GPIOTE->CONFIG[idx] |= GPIOTE_CONFIG_MODE_Event;
+}
+
+__STATIC_INLINE void nrf_gpiote_event_disable(uint32_t idx)
+{
+ NRF_GPIOTE->CONFIG[idx] &= ~GPIOTE_CONFIG_MODE_Event;
+}
+
+__STATIC_INLINE void nrf_gpiote_event_configure(uint32_t idx, uint32_t pin, nrf_gpiote_polarity_t polarity)
+{
+ NRF_GPIOTE->CONFIG[idx] &= ~(GPIOTE_CONFIG_PORT_PIN_Msk | GPIOTE_CONFIG_POLARITY_Msk);
+ NRF_GPIOTE->CONFIG[idx] |= ((pin << GPIOTE_CONFIG_PSEL_Pos) & GPIOTE_CONFIG_PORT_PIN_Msk) |
+ ((polarity << GPIOTE_CONFIG_POLARITY_Pos) & GPIOTE_CONFIG_POLARITY_Msk);
+}
+
+__STATIC_INLINE uint32_t nrf_gpiote_event_pin_get(uint32_t idx)
+{
+ return ((NRF_GPIOTE->CONFIG[idx] & GPIOTE_CONFIG_PORT_PIN_Msk) >> GPIOTE_CONFIG_PSEL_Pos);
+}
+
+__STATIC_INLINE nrf_gpiote_polarity_t nrf_gpiote_event_polarity_get(uint32_t idx)
+{
+ return (nrf_gpiote_polarity_t)((NRF_GPIOTE->CONFIG[idx] & GPIOTE_CONFIG_POLARITY_Msk) >> GPIOTE_CONFIG_POLARITY_Pos);
+}
+
+__STATIC_INLINE void nrf_gpiote_task_enable(uint32_t idx)
+{
+ uint32_t final_config = NRF_GPIOTE->CONFIG[idx] | GPIOTE_CONFIG_MODE_Task;
+#ifdef NRF51
+ /* Workaround for the OUTINIT PAN. When nrf_gpiote_task_config() is called a glitch happens
+ on the GPIO if the GPIO in question is already assigned to GPIOTE and the pin is in the
+ correct state in GPIOTE but not in the OUT register. */
+ /* Configure channel to not existing, not connected to the pin, and configure as a tasks that will set it to proper level */
+ NRF_GPIOTE->CONFIG[idx] = final_config | (((31) << GPIOTE_CONFIG_PSEL_Pos) & GPIOTE_CONFIG_PORT_PIN_Msk);
+ __NOP();
+ __NOP();
+ __NOP();
+#endif
+ NRF_GPIOTE->CONFIG[idx] = final_config;
+}
+
+__STATIC_INLINE void nrf_gpiote_task_disable(uint32_t idx)
+{
+ NRF_GPIOTE->CONFIG[idx] &= ~GPIOTE_CONFIG_MODE_Task;
+}
+
+__STATIC_INLINE void nrf_gpiote_task_configure(uint32_t idx, uint32_t pin,
+ nrf_gpiote_polarity_t polarity,
+ nrf_gpiote_outinit_t init_val)
+{
+ NRF_GPIOTE->CONFIG[idx] &= ~(GPIOTE_CONFIG_PORT_PIN_Msk |
+ GPIOTE_CONFIG_POLARITY_Msk |
+ GPIOTE_CONFIG_OUTINIT_Msk);
+
+ NRF_GPIOTE->CONFIG[idx] |= ((pin << GPIOTE_CONFIG_PSEL_Pos) & GPIOTE_CONFIG_PORT_PIN_Msk) |
+ ((polarity << GPIOTE_CONFIG_POLARITY_Pos) & GPIOTE_CONFIG_POLARITY_Msk) |
+ ((init_val << GPIOTE_CONFIG_OUTINIT_Pos) & GPIOTE_CONFIG_OUTINIT_Msk);
+}
+
+__STATIC_INLINE void nrf_gpiote_task_force(uint32_t idx, nrf_gpiote_outinit_t init_val)
+{
+ NRF_GPIOTE->CONFIG[idx] = (NRF_GPIOTE->CONFIG[idx] & ~GPIOTE_CONFIG_OUTINIT_Msk)
+ | ((init_val << GPIOTE_CONFIG_OUTINIT_Pos) & GPIOTE_CONFIG_OUTINIT_Msk);
+}
+
+__STATIC_INLINE void nrf_gpiote_te_default(uint32_t idx)
+{
+ NRF_GPIOTE->CONFIG[idx] = 0;
+}
+#endif //SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_i2s.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_i2s.h
new file mode 100644
index 0000000..ab698e5
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_i2s.h
@@ -0,0 +1,557 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_I2S_H__
+#define NRF_I2S_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_i2s_hal I2S HAL
+ * @{
+ * @ingroup nrf_i2s
+ * @brief Hardware access layer for managing the Inter-IC Sound (I2S) peripheral.
+ */
+
+/**
+ * @brief This value can be provided as a parameter for the @ref nrf_i2s_pins_set
+ * function call to specify that a given I2S signal (SDOUT, SDIN, or MCK)
+ * shall not be connected to a physical pin.
+ */
+#define NRF_I2S_PIN_NOT_CONNECTED 0xFFFFFFFF
+
+
+/**
+ * @brief I2S tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_I2S_TASK_START = offsetof(NRF_I2S_Type, TASKS_START), ///< Starts continuous I2S transfer. Also starts the MCK generator if this is enabled.
+ NRF_I2S_TASK_STOP = offsetof(NRF_I2S_Type, TASKS_STOP) ///< Stops I2S transfer. Also stops the MCK generator.
+ /*lint -restore*/
+} nrf_i2s_task_t;
+
+/**
+ * @brief I2S events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_I2S_EVENT_RXPTRUPD = offsetof(NRF_I2S_Type, EVENTS_RXPTRUPD), ///< The RXD.PTR register has been copied to internal double-buffers.
+ NRF_I2S_EVENT_TXPTRUPD = offsetof(NRF_I2S_Type, EVENTS_TXPTRUPD), ///< The TXD.PTR register has been copied to internal double-buffers.
+ NRF_I2S_EVENT_STOPPED = offsetof(NRF_I2S_Type, EVENTS_STOPPED) ///< I2S transfer stopped.
+ /*lint -restore*/
+} nrf_i2s_event_t;
+
+/**
+ * @brief I2S interrupts.
+ */
+typedef enum
+{
+ NRF_I2S_INT_RXPTRUPD_MASK = I2S_INTENSET_RXPTRUPD_Msk, ///< Interrupt on RXPTRUPD event.
+ NRF_I2S_INT_TXPTRUPD_MASK = I2S_INTENSET_TXPTRUPD_Msk, ///< Interrupt on TXPTRUPD event.
+ NRF_I2S_INT_STOPPED_MASK = I2S_INTENSET_STOPPED_Msk ///< Interrupt on STOPPED event.
+} nrf_i2s_int_mask_t;
+
+/**
+ * @brief I2S modes of operation.
+ */
+typedef enum
+{
+ NRF_I2S_MODE_MASTER = I2S_CONFIG_MODE_MODE_Master, ///< Master mode.
+ NRF_I2S_MODE_SLAVE = I2S_CONFIG_MODE_MODE_Slave ///< Slave mode.
+} nrf_i2s_mode_t;
+
+/**
+ * @brief I2S master clock generator settings.
+ */
+typedef enum
+{
+ NRF_I2S_MCK_DISABLED = 0, ///< MCK disabled.
+ // [conversion to 'int' needed to prevent compilers from complaining
+ // that the provided value (0x80000000UL) is out of range of "int"]
+ NRF_I2S_MCK_32MDIV2 = (int)I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV2, ///< 32 MHz / 2 = 16.0 MHz.
+ NRF_I2S_MCK_32MDIV3 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV3, ///< 32 MHz / 3 = 10.6666667 MHz.
+ NRF_I2S_MCK_32MDIV4 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV4, ///< 32 MHz / 4 = 8.0 MHz.
+ NRF_I2S_MCK_32MDIV5 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV5, ///< 32 MHz / 5 = 6.4 MHz.
+ NRF_I2S_MCK_32MDIV6 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV6, ///< 32 MHz / 6 = 5.3333333 MHz.
+ NRF_I2S_MCK_32MDIV8 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV8, ///< 32 MHz / 8 = 4.0 MHz.
+ NRF_I2S_MCK_32MDIV10 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV10, ///< 32 MHz / 10 = 3.2 MHz.
+ NRF_I2S_MCK_32MDIV11 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV11, ///< 32 MHz / 11 = 2.9090909 MHz.
+ NRF_I2S_MCK_32MDIV15 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV15, ///< 32 MHz / 15 = 2.1333333 MHz.
+ NRF_I2S_MCK_32MDIV16 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV16, ///< 32 MHz / 16 = 2.0 MHz.
+ NRF_I2S_MCK_32MDIV21 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV21, ///< 32 MHz / 21 = 1.5238095 MHz.
+ NRF_I2S_MCK_32MDIV23 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV23, ///< 32 MHz / 23 = 1.3913043 MHz.
+ NRF_I2S_MCK_32MDIV31 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV31, ///< 32 MHz / 31 = 1.0322581 MHz.
+ NRF_I2S_MCK_32MDIV42 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV42, ///< 32 MHz / 42 = 0.7619048 MHz.
+ NRF_I2S_MCK_32MDIV63 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV63, ///< 32 MHz / 63 = 0.5079365 MHz.
+ NRF_I2S_MCK_32MDIV125 = I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV125 ///< 32 MHz / 125 = 0.256 MHz.
+} nrf_i2s_mck_t;
+
+/**
+ * @brief I2S MCK/LRCK ratios.
+ */
+typedef enum
+{
+ NRF_I2S_RATIO_32X = I2S_CONFIG_RATIO_RATIO_32X, ///< LRCK = MCK / 32.
+ NRF_I2S_RATIO_48X = I2S_CONFIG_RATIO_RATIO_48X, ///< LRCK = MCK / 48.
+ NRF_I2S_RATIO_64X = I2S_CONFIG_RATIO_RATIO_64X, ///< LRCK = MCK / 64.
+ NRF_I2S_RATIO_96X = I2S_CONFIG_RATIO_RATIO_96X, ///< LRCK = MCK / 96.
+ NRF_I2S_RATIO_128X = I2S_CONFIG_RATIO_RATIO_128X, ///< LRCK = MCK / 128.
+ NRF_I2S_RATIO_192X = I2S_CONFIG_RATIO_RATIO_192X, ///< LRCK = MCK / 192.
+ NRF_I2S_RATIO_256X = I2S_CONFIG_RATIO_RATIO_256X, ///< LRCK = MCK / 256.
+ NRF_I2S_RATIO_384X = I2S_CONFIG_RATIO_RATIO_384X, ///< LRCK = MCK / 384.
+ NRF_I2S_RATIO_512X = I2S_CONFIG_RATIO_RATIO_512X ///< LRCK = MCK / 512.
+} nrf_i2s_ratio_t;
+
+/**
+ * @brief I2S sample widths.
+ */
+typedef enum
+{
+ NRF_I2S_SWIDTH_8BIT = I2S_CONFIG_SWIDTH_SWIDTH_8Bit, ///< 8 bit.
+ NRF_I2S_SWIDTH_16BIT = I2S_CONFIG_SWIDTH_SWIDTH_16Bit, ///< 16 bit.
+ NRF_I2S_SWIDTH_24BIT = I2S_CONFIG_SWIDTH_SWIDTH_24Bit ///< 24 bit.
+} nrf_i2s_swidth_t;
+
+/**
+ * @brief I2S alignments of sample within a frame.
+ */
+typedef enum
+{
+ NRF_I2S_ALIGN_LEFT = I2S_CONFIG_ALIGN_ALIGN_Left, ///< Left-aligned.
+ NRF_I2S_ALIGN_RIGHT = I2S_CONFIG_ALIGN_ALIGN_Right ///< Right-aligned.
+} nrf_i2s_align_t;
+
+/**
+ * @brief I2S frame formats.
+ */
+typedef enum
+{
+ NRF_I2S_FORMAT_I2S = I2S_CONFIG_FORMAT_FORMAT_I2S, ///< Original I2S format.
+ NRF_I2S_FORMAT_ALIGNED = I2S_CONFIG_FORMAT_FORMAT_Aligned ///< Alternate (left- or right-aligned) format.
+} nrf_i2s_format_t;
+
+/**
+ * @brief I2S enabled channels.
+ */
+typedef enum
+{
+ NRF_I2S_CHANNELS_STEREO = I2S_CONFIG_CHANNELS_CHANNELS_Stereo, ///< Stereo.
+ NRF_I2S_CHANNELS_LEFT = I2S_CONFIG_CHANNELS_CHANNELS_Left, ///< Left only.
+ NRF_I2S_CHANNELS_RIGHT = I2S_CONFIG_CHANNELS_CHANNELS_Right ///< Right only.
+} nrf_i2s_channels_t;
+
+
+/**
+ * @brief Function for activating a specific I2S task.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] task Task to activate.
+ */
+__STATIC_INLINE void nrf_i2s_task_trigger(NRF_I2S_Type * p_i2s,
+ nrf_i2s_task_t task);
+
+/**
+ * @brief Function for getting the address of a specific I2S task register.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] task Requested task.
+ *
+ * @return Address of the specified task register.
+ */
+__STATIC_INLINE uint32_t nrf_i2s_task_address_get(NRF_I2S_Type const * p_i2s,
+ nrf_i2s_task_t task);
+
+/**
+ * @brief Function for clearing a specific I2S event.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] event Event to clear.
+ */
+__STATIC_INLINE void nrf_i2s_event_clear(NRF_I2S_Type * p_i2s,
+ nrf_i2s_event_t event);
+
+/**
+ * @brief Function for checking the state of a specific I2S event.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] event Event to check.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_i2s_event_check(NRF_I2S_Type const * p_i2s,
+ nrf_i2s_event_t event);
+
+/**
+ * @brief Function for getting the address of a specific I2S event register.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] event Requested event.
+ *
+ * @return Address of the specified event register.
+ */
+__STATIC_INLINE uint32_t nrf_i2s_event_address_get(NRF_I2S_Type const * p_i2s,
+ nrf_i2s_event_t event);
+
+/**
+ * @brief Function for enabling specified interrupts.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_i2s_int_enable(NRF_I2S_Type * p_i2s, uint32_t mask);
+
+/**
+ * @brief Function for disabling specified interrupts.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_i2s_int_disable(NRF_I2S_Type * p_i2s, uint32_t mask);
+
+/**
+ * @brief Function for retrieving the state of a given interrupt.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] i2s_int Interrupt to check.
+ *
+ * @retval true If the interrupt is enabled.
+ * @retval false If the interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_i2s_int_enable_check(NRF_I2S_Type const * p_i2s,
+ nrf_i2s_int_mask_t i2s_int);
+
+/**
+ * @brief Function for enabling the I2S peripheral.
+ *
+ * @param[in] p_i2s I2S instance.
+ */
+__STATIC_INLINE void nrf_i2s_enable(NRF_I2S_Type * p_i2s);
+
+/**
+ * @brief Function for disabling the I2S peripheral.
+ *
+ * @param[in] p_i2s I2S instance.
+ */
+__STATIC_INLINE void nrf_i2s_disable(NRF_I2S_Type * p_i2s);
+
+/**
+ * @brief Function for configuring I2S pins.
+ *
+ * Usage of the SDOUT, SDIN, and MCK signals is optional.
+ * If a given signal is not needed, pass the @ref NRF_I2S_PIN_NOT_CONNECTED
+ * value instead of its pin number.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] sck_pin SCK pin number.
+ * @param[in] lrck_pin LRCK pin number.
+ * @param[in] mck_pin MCK pin number.
+ * @param[in] sdout_pin SDOUT pin number.
+ * @param[in] sdin_pin SDIN pin number.
+ */
+__STATIC_INLINE void nrf_i2s_pins_set(NRF_I2S_Type * p_i2s,
+ uint32_t sck_pin,
+ uint32_t lrck_pin,
+ uint32_t mck_pin,
+ uint32_t sdout_pin,
+ uint32_t sdin_pin);
+
+/**
+ * @brief Function for setting the I2S peripheral configuration.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] mode Mode of operation (master or slave).
+ * @param[in] format I2S frame format.
+ * @param[in] alignment Alignment of sample within a frame.
+ * @param[in] sample_width Sample width.
+ * @param[in] channels Enabled channels.
+ * @param[in] mck_setup Master clock generator setup.
+ * @param[in] ratio MCK/LRCK ratio.
+ *
+ * @retval true If the configuration has been set successfully.
+ * @retval false If the requested configuration is not allowed.
+ */
+__STATIC_INLINE bool nrf_i2s_configure(NRF_I2S_Type * p_i2s,
+ nrf_i2s_mode_t mode,
+ nrf_i2s_format_t format,
+ nrf_i2s_align_t alignment,
+ nrf_i2s_swidth_t sample_width,
+ nrf_i2s_channels_t channels,
+ nrf_i2s_mck_t mck_setup,
+ nrf_i2s_ratio_t ratio);
+
+/**
+ * @brief Function for setting up the I2S transfer.
+ *
+ * This function sets up the RX and TX buffers and enables reception and/or
+ * transmission accordingly. If the transfer in a given direction is not
+ * required, pass NULL instead of the pointer to the corresponding buffer.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] size Size of the buffers (in 32-bit words).
+ * @param[in] p_rx_buffer Pointer to the receive buffer.
+ * Pass NULL to disable reception.
+ * @param[in] p_tx_buffer Pointer to the transmit buffer.
+ * Pass NULL to disable transmission.
+ */
+__STATIC_INLINE void nrf_i2s_transfer_set(NRF_I2S_Type * p_i2s,
+ uint16_t size,
+ uint32_t * p_rx_buffer,
+ uint32_t const * p_tx_buffer);
+
+/**
+ * @brief Function for setting the pointer to the receive buffer.
+ *
+ * @note The size of the buffer can be set only by calling
+ * @ref nrf_i2s_transfer_set.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] p_buffer Pointer to the receive buffer.
+ */
+__STATIC_INLINE void nrf_i2s_rx_buffer_set(NRF_I2S_Type * p_i2s,
+ uint32_t * p_buffer);
+
+/**
+ * @brief Function for getting the pointer to the receive buffer.
+ *
+ * @param[in] p_i2s I2S instance.
+ *
+ * @return Pointer to the receive buffer.
+ */
+__STATIC_INLINE uint32_t * nrf_i2s_rx_buffer_get(NRF_I2S_Type const * p_i2s);
+
+/**
+ * @brief Function for setting the pointer to the transmit buffer.
+ *
+ * @note The size of the buffer can be set only by calling
+ * @ref nrf_i2s_transfer_set.
+ *
+ * @param[in] p_i2s I2S instance.
+ * @param[in] p_buffer Pointer to the transmit buffer.
+ */
+__STATIC_INLINE void nrf_i2s_tx_buffer_set(NRF_I2S_Type * p_i2s,
+ uint32_t const * p_buffer);
+
+/**
+ * @brief Function for getting the pointer to the transmit buffer.
+ *
+ * @param[in] p_i2s I2S instance.
+ *
+ * @return Pointer to the transmit buffer.
+ */
+__STATIC_INLINE uint32_t * nrf_i2s_tx_buffer_get(NRF_I2S_Type const * p_i2s);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_i2s_task_trigger(NRF_I2S_Type * p_i2s,
+ nrf_i2s_task_t task)
+{
+ *((volatile uint32_t *)((uint8_t *)p_i2s + (uint32_t)task)) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t nrf_i2s_task_address_get(NRF_I2S_Type const * p_i2s,
+ nrf_i2s_task_t task)
+{
+ return ((uint32_t)p_i2s + (uint32_t)task);
+}
+
+__STATIC_INLINE void nrf_i2s_event_clear(NRF_I2S_Type * p_i2s,
+ nrf_i2s_event_t event)
+{
+ *((volatile uint32_t *)((uint8_t *)p_i2s + (uint32_t)event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)p_i2s + (uint32_t)event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE bool nrf_i2s_event_check(NRF_I2S_Type const * p_i2s,
+ nrf_i2s_event_t event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)p_i2s + (uint32_t)event);
+}
+
+__STATIC_INLINE uint32_t nrf_i2s_event_address_get(NRF_I2S_Type const * p_i2s,
+ nrf_i2s_event_t event)
+{
+ return ((uint32_t)p_i2s + (uint32_t)event);
+}
+
+__STATIC_INLINE void nrf_i2s_int_enable(NRF_I2S_Type * p_i2s, uint32_t mask)
+{
+ p_i2s->INTENSET = mask;
+}
+
+__STATIC_INLINE void nrf_i2s_int_disable(NRF_I2S_Type * p_i2s, uint32_t mask)
+{
+ p_i2s->INTENCLR = mask;
+}
+
+__STATIC_INLINE bool nrf_i2s_int_enable_check(NRF_I2S_Type const * p_i2s,
+ nrf_i2s_int_mask_t i2s_int)
+{
+ return (bool)(p_i2s->INTENSET & i2s_int);
+}
+
+__STATIC_INLINE void nrf_i2s_enable(NRF_I2S_Type * p_i2s)
+{
+ p_i2s->ENABLE = (I2S_ENABLE_ENABLE_Enabled << I2S_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_i2s_disable(NRF_I2S_Type * p_i2s)
+{
+ p_i2s->ENABLE = (I2S_ENABLE_ENABLE_Disabled << I2S_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_i2s_pins_set(NRF_I2S_Type * p_i2s,
+ uint32_t sck_pin,
+ uint32_t lrck_pin,
+ uint32_t mck_pin,
+ uint32_t sdout_pin,
+ uint32_t sdin_pin)
+{
+ p_i2s->PSEL.SCK = sck_pin;
+ p_i2s->PSEL.LRCK = lrck_pin;
+ p_i2s->PSEL.MCK = mck_pin;
+ p_i2s->PSEL.SDOUT = sdout_pin;
+ p_i2s->PSEL.SDIN = sdin_pin;
+}
+
+__STATIC_INLINE bool nrf_i2s_configure(NRF_I2S_Type * p_i2s,
+ nrf_i2s_mode_t mode,
+ nrf_i2s_format_t format,
+ nrf_i2s_align_t alignment,
+ nrf_i2s_swidth_t sample_width,
+ nrf_i2s_channels_t channels,
+ nrf_i2s_mck_t mck_setup,
+ nrf_i2s_ratio_t ratio)
+{
+ if (mode == NRF_I2S_MODE_MASTER)
+ {
+ // The MCK/LRCK ratio shall be a multiple of 2 * sample width.
+ if (((sample_width == NRF_I2S_SWIDTH_16BIT) &&
+ (ratio == NRF_I2S_RATIO_48X))
+ ||
+ ((sample_width == NRF_I2S_SWIDTH_24BIT) &&
+ ((ratio == NRF_I2S_RATIO_32X) ||
+ (ratio == NRF_I2S_RATIO_64X) ||
+ (ratio == NRF_I2S_RATIO_128X) ||
+ (ratio == NRF_I2S_RATIO_256X) ||
+ (ratio == NRF_I2S_RATIO_512X))))
+ {
+ return false;
+ }
+ }
+
+ p_i2s->CONFIG.MODE = mode;
+ p_i2s->CONFIG.FORMAT = format;
+ p_i2s->CONFIG.ALIGN = alignment;
+ p_i2s->CONFIG.SWIDTH = sample_width;
+ p_i2s->CONFIG.CHANNELS = channels;
+ p_i2s->CONFIG.RATIO = ratio;
+
+ if (mck_setup == NRF_I2S_MCK_DISABLED)
+ {
+ p_i2s->CONFIG.MCKEN =
+ (I2S_CONFIG_MCKEN_MCKEN_Disabled << I2S_CONFIG_MCKEN_MCKEN_Pos);
+ }
+ else
+ {
+ p_i2s->CONFIG.MCKFREQ = mck_setup;
+ p_i2s->CONFIG.MCKEN =
+ (I2S_CONFIG_MCKEN_MCKEN_Enabled << I2S_CONFIG_MCKEN_MCKEN_Pos);
+ }
+
+ return true;
+}
+
+__STATIC_INLINE void nrf_i2s_transfer_set(NRF_I2S_Type * p_i2s,
+ uint16_t size,
+ uint32_t * p_buffer_rx,
+ uint32_t const * p_buffer_tx)
+{
+ p_i2s->RXTXD.MAXCNT = size;
+
+ nrf_i2s_rx_buffer_set(p_i2s, p_buffer_rx);
+ p_i2s->CONFIG.RXEN = (p_buffer_rx != NULL) ? 1 : 0;
+
+ nrf_i2s_tx_buffer_set(p_i2s, p_buffer_tx);
+ p_i2s->CONFIG.TXEN = (p_buffer_tx != NULL) ? 1 : 0;
+}
+
+__STATIC_INLINE void nrf_i2s_rx_buffer_set(NRF_I2S_Type * p_i2s,
+ uint32_t * p_buffer)
+{
+ p_i2s->RXD.PTR = (uint32_t)p_buffer;
+}
+
+__STATIC_INLINE uint32_t * nrf_i2s_rx_buffer_get(NRF_I2S_Type const * p_i2s)
+{
+ return (uint32_t *)(p_i2s->RXD.PTR);
+}
+
+__STATIC_INLINE void nrf_i2s_tx_buffer_set(NRF_I2S_Type * p_i2s,
+ uint32_t const * p_buffer)
+{
+ p_i2s->TXD.PTR = (uint32_t)p_buffer;
+}
+
+__STATIC_INLINE uint32_t * nrf_i2s_tx_buffer_get(NRF_I2S_Type const * p_i2s)
+{
+ return (uint32_t *)(p_i2s->TXD.PTR);
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_I2S_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_lpcomp.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_lpcomp.h
new file mode 100644
index 0000000..c10a909
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_lpcomp.h
@@ -0,0 +1,412 @@
+/**
+ * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_LPCOMP_H_
+#define NRF_LPCOMP_H_
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_lpcomp_hal LPCOMP HAL
+ * @{
+ * @ingroup nrf_lpcomp
+ * @brief Hardware access layer for managing the Low Power Comparator (LPCOMP) peripheral.
+ */
+
+/**
+ * @enum nrf_lpcomp_ref_t
+ * @brief LPCOMP reference selection.
+ */
+typedef enum
+{
+#if (LPCOMP_REFSEL_RESOLUTION == 8) || defined(__NRFX_DOXYGEN__)
+ NRF_LPCOMP_REF_SUPPLY_1_8 = LPCOMP_REFSEL_REFSEL_SupplyOneEighthPrescaling, /**< Use supply with a 1/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_2_8 = LPCOMP_REFSEL_REFSEL_SupplyTwoEighthsPrescaling, /**< Use supply with a 2/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_3_8 = LPCOMP_REFSEL_REFSEL_SupplyThreeEighthsPrescaling, /**< Use supply with a 3/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_4_8 = LPCOMP_REFSEL_REFSEL_SupplyFourEighthsPrescaling, /**< Use supply with a 4/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_5_8 = LPCOMP_REFSEL_REFSEL_SupplyFiveEighthsPrescaling, /**< Use supply with a 5/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_6_8 = LPCOMP_REFSEL_REFSEL_SupplySixEighthsPrescaling, /**< Use supply with a 6/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_7_8 = LPCOMP_REFSEL_REFSEL_SupplySevenEighthsPrescaling, /**< Use supply with a 7/8 prescaler as reference. */
+#elif (LPCOMP_REFSEL_RESOLUTION == 16) || defined(__NRFX_DOXYGEN__)
+ NRF_LPCOMP_REF_SUPPLY_1_8 = LPCOMP_REFSEL_REFSEL_Ref1_8Vdd, /**< Use supply with a 1/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_2_8 = LPCOMP_REFSEL_REFSEL_Ref2_8Vdd, /**< Use supply with a 2/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_3_8 = LPCOMP_REFSEL_REFSEL_Ref3_8Vdd, /**< Use supply with a 3/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_4_8 = LPCOMP_REFSEL_REFSEL_Ref4_8Vdd, /**< Use supply with a 4/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_5_8 = LPCOMP_REFSEL_REFSEL_Ref5_8Vdd, /**< Use supply with a 5/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_6_8 = LPCOMP_REFSEL_REFSEL_Ref6_8Vdd, /**< Use supply with a 6/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_7_8 = LPCOMP_REFSEL_REFSEL_Ref7_8Vdd, /**< Use supply with a 7/8 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_1_16 = LPCOMP_REFSEL_REFSEL_Ref1_16Vdd, /**< Use supply with a 1/16 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_3_16 = LPCOMP_REFSEL_REFSEL_Ref3_16Vdd, /**< Use supply with a 3/16 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_5_16 = LPCOMP_REFSEL_REFSEL_Ref5_16Vdd, /**< Use supply with a 5/16 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_7_16 = LPCOMP_REFSEL_REFSEL_Ref7_16Vdd, /**< Use supply with a 7/16 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_9_16 = LPCOMP_REFSEL_REFSEL_Ref9_16Vdd, /**< Use supply with a 9/16 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_11_16 = LPCOMP_REFSEL_REFSEL_Ref11_16Vdd, /**< Use supply with a 11/16 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_13_16 = LPCOMP_REFSEL_REFSEL_Ref13_16Vdd, /**< Use supply with a 13/16 prescaler as reference. */
+ NRF_LPCOMP_REF_SUPPLY_15_16 = LPCOMP_REFSEL_REFSEL_Ref15_16Vdd, /**< Use supply with a 15/16 prescaler as reference. */
+#endif
+ NRF_LPCOMP_REF_EXT_REF0 = LPCOMP_REFSEL_REFSEL_ARef |
+ (LPCOMP_EXTREFSEL_EXTREFSEL_AnalogReference0 << 16), /**< External reference 0. */
+ NRF_LPCOMP_CONFIG_REF_EXT_REF1 = LPCOMP_REFSEL_REFSEL_ARef |
+ (LPCOMP_EXTREFSEL_EXTREFSEL_AnalogReference1 << 16), /**< External reference 1. */
+} nrf_lpcomp_ref_t;
+
+/**
+ * @enum nrf_lpcomp_input_t
+ * @brief LPCOMP input selection.
+ */
+typedef enum
+{
+ NRF_LPCOMP_INPUT_0 = LPCOMP_PSEL_PSEL_AnalogInput0, /**< Input 0. */
+ NRF_LPCOMP_INPUT_1 = LPCOMP_PSEL_PSEL_AnalogInput1, /**< Input 1. */
+ NRF_LPCOMP_INPUT_2 = LPCOMP_PSEL_PSEL_AnalogInput2, /**< Input 2. */
+ NRF_LPCOMP_INPUT_3 = LPCOMP_PSEL_PSEL_AnalogInput3, /**< Input 3. */
+ NRF_LPCOMP_INPUT_4 = LPCOMP_PSEL_PSEL_AnalogInput4, /**< Input 4. */
+ NRF_LPCOMP_INPUT_5 = LPCOMP_PSEL_PSEL_AnalogInput5, /**< Input 5. */
+ NRF_LPCOMP_INPUT_6 = LPCOMP_PSEL_PSEL_AnalogInput6, /**< Input 6. */
+ NRF_LPCOMP_INPUT_7 = LPCOMP_PSEL_PSEL_AnalogInput7 /**< Input 7. */
+} nrf_lpcomp_input_t;
+
+/**
+ * @enum nrf_lpcomp_detect_t
+ * @brief LPCOMP detection type selection.
+ */
+typedef enum
+{
+ NRF_LPCOMP_DETECT_CROSS = LPCOMP_ANADETECT_ANADETECT_Cross, /**< Generate ANADETEC on crossing, both upwards and downwards crossing. */
+ NRF_LPCOMP_DETECT_UP = LPCOMP_ANADETECT_ANADETECT_Up, /**< Generate ANADETEC on upwards crossing only. */
+ NRF_LPCOMP_DETECT_DOWN = LPCOMP_ANADETECT_ANADETECT_Down /**< Generate ANADETEC on downwards crossing only. */
+} nrf_lpcomp_detect_t;
+
+/**
+ * @enum nrf_lpcomp_task_t
+ * @brief LPCOMP tasks.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_LPCOMP_TASK_START = offsetof(NRF_LPCOMP_Type, TASKS_START), /**< LPCOMP start sampling task. */
+ NRF_LPCOMP_TASK_STOP = offsetof(NRF_LPCOMP_Type, TASKS_STOP), /**< LPCOMP stop sampling task. */
+ NRF_LPCOMP_TASK_SAMPLE = offsetof(NRF_LPCOMP_Type, TASKS_SAMPLE) /**< Sample comparator value. */
+} nrf_lpcomp_task_t; /*lint -restore*/
+
+
+/**
+ * @enum nrf_lpcomp_event_t
+ * @brief LPCOMP events.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_LPCOMP_EVENT_READY = offsetof(NRF_LPCOMP_Type, EVENTS_READY), /**< LPCOMP is ready and output is valid. */
+ NRF_LPCOMP_EVENT_DOWN = offsetof(NRF_LPCOMP_Type, EVENTS_DOWN), /**< Input voltage crossed the threshold going down. */
+ NRF_LPCOMP_EVENT_UP = offsetof(NRF_LPCOMP_Type, EVENTS_UP), /**< Input voltage crossed the threshold going up. */
+ NRF_LPCOMP_EVENT_CROSS = offsetof(NRF_LPCOMP_Type, EVENTS_CROSS) /**< Input voltage crossed the threshold in any direction. */
+} nrf_lpcomp_event_t; /*lint -restore*/
+
+/**
+ * @enum nrf_lpcomp_short_mask_t
+ * @brief LPCOMP shorts masks.
+ */
+typedef enum
+{
+ NRF_LPCOMP_SHORT_CROSS_STOP_MASK = LPCOMP_SHORTS_CROSS_STOP_Msk, /*!< Short between CROSS event and STOP task. */
+ NRF_LPCOMP_SHORT_UP_STOP_MASK = LPCOMP_SHORTS_UP_STOP_Msk, /*!< Short between UP event and STOP task. */
+ NRF_LPCOMP_SHORT_DOWN_STOP_MASK = LPCOMP_SHORTS_DOWN_STOP_Msk, /*!< Short between DOWN event and STOP task. */
+ NRF_LPCOMP_SHORT_READY_STOP_MASK = LPCOMP_SHORTS_READY_STOP_Msk, /*!< Short between READY event and STOP task. */
+ NRF_LPCOMP_SHORT_READY_SAMPLE_MASK = LPCOMP_SHORTS_READY_SAMPLE_Msk /*!< Short between READY event and SAMPLE task. */
+} nrf_lpcomp_short_mask_t;
+
+#ifdef LPCOMP_FEATURE_HYST_PRESENT
+/**
+ * @enum nrf_lpcomp_hysteresis_t
+ * @brief LPCOMP hysteresis.
+ */
+typedef enum
+{
+ NRF_LPCOMP_HYST_NOHYST = LPCOMP_HYST_HYST_NoHyst, /**< Comparator hysteresis disabled. */
+ NRF_LPCOMP_HYST_50mV = LPCOMP_HYST_HYST_Hyst50mV /**< Comparator hysteresis enabled (typ. 50 mV). */
+}nrf_lpcomp_hysteresis_t;
+#endif // LPCOMP_FEATURE_HYST_PRESENT
+
+/** @brief LPCOMP configuration. */
+typedef struct
+{
+ nrf_lpcomp_ref_t reference; /**< LPCOMP reference. */
+ nrf_lpcomp_detect_t detection; /**< LPCOMP detection type. */
+#ifdef LPCOMP_FEATURE_HYST_PRESENT
+ nrf_lpcomp_hysteresis_t hyst; /**< LPCOMP hysteresis. */
+#endif // LPCOMP_FEATURE_HYST_PRESENT
+} nrf_lpcomp_config_t;
+
+/** Default LPCOMP configuration. */
+#define NRF_LPCOMP_CONFIG_DEFAULT { NRF_LPCOMP_REF_SUPPLY_FOUR_EIGHT, NRF_LPCOMP_DETECT_DOWN }
+
+/**
+ * @brief Function for configuring LPCOMP.
+ *
+ * This function powers on LPCOMP and configures it. LPCOMP is in DISABLE state after configuration,
+ * so it must be enabled before using it. All shorts are inactive, events are cleared, and LPCOMP is stopped.
+ *
+ * @param[in] p_config Configuration.
+ */
+__STATIC_INLINE void nrf_lpcomp_configure(const nrf_lpcomp_config_t * p_config)
+{
+ NRF_LPCOMP->TASKS_STOP = 1;
+ NRF_LPCOMP->ENABLE = LPCOMP_ENABLE_ENABLE_Disabled << LPCOMP_ENABLE_ENABLE_Pos;
+ NRF_LPCOMP->REFSEL =
+ (p_config->reference << LPCOMP_REFSEL_REFSEL_Pos) & LPCOMP_REFSEL_REFSEL_Msk;
+
+ //If external source is choosen extract analog reference index.
+ if ((p_config->reference & LPCOMP_REFSEL_REFSEL_ARef)==LPCOMP_REFSEL_REFSEL_ARef)
+ {
+ uint32_t extref = p_config->reference >> 16;
+ NRF_LPCOMP->EXTREFSEL = (extref << LPCOMP_EXTREFSEL_EXTREFSEL_Pos) & LPCOMP_EXTREFSEL_EXTREFSEL_Msk;
+ }
+
+ NRF_LPCOMP->ANADETECT =
+ (p_config->detection << LPCOMP_ANADETECT_ANADETECT_Pos) & LPCOMP_ANADETECT_ANADETECT_Msk;
+#ifdef LPCOMP_FEATURE_HYST_PRESENT
+ NRF_LPCOMP->HYST = ((p_config->hyst) << LPCOMP_HYST_HYST_Pos) & LPCOMP_HYST_HYST_Msk;
+#endif //LPCOMP_FEATURE_HYST_PRESENT
+ NRF_LPCOMP->SHORTS = 0;
+ NRF_LPCOMP->INTENCLR = LPCOMP_INTENCLR_CROSS_Msk | LPCOMP_INTENCLR_UP_Msk |
+ LPCOMP_INTENCLR_DOWN_Msk | LPCOMP_INTENCLR_READY_Msk;
+}
+
+
+/**
+ * @brief Function for selecting the LPCOMP input.
+ *
+ * This function selects the active input of LPCOMP.
+ *
+ * @param[in] input Input to be selected.
+ */
+__STATIC_INLINE void nrf_lpcomp_input_select(nrf_lpcomp_input_t input)
+{
+ uint32_t lpcomp_enable_state = NRF_LPCOMP->ENABLE;
+
+ NRF_LPCOMP->ENABLE = LPCOMP_ENABLE_ENABLE_Disabled << LPCOMP_ENABLE_ENABLE_Pos;
+ NRF_LPCOMP->PSEL =
+ ((uint32_t)input << LPCOMP_PSEL_PSEL_Pos) | (NRF_LPCOMP->PSEL & ~LPCOMP_PSEL_PSEL_Msk);
+ NRF_LPCOMP->ENABLE = lpcomp_enable_state;
+}
+
+
+/**
+ * @brief Function for enabling the Low Power Comparator.
+ *
+ * This function enables LPCOMP.
+ *
+ */
+__STATIC_INLINE void nrf_lpcomp_enable(void)
+{
+ NRF_LPCOMP->ENABLE = LPCOMP_ENABLE_ENABLE_Enabled << LPCOMP_ENABLE_ENABLE_Pos;
+ NRF_LPCOMP->EVENTS_READY = 0;
+ NRF_LPCOMP->EVENTS_DOWN = 0;
+ NRF_LPCOMP->EVENTS_UP = 0;
+ NRF_LPCOMP->EVENTS_CROSS = 0;
+}
+
+
+/**
+ * @brief Function for disabling the Low Power Comparator.
+ *
+ * This function disables LPCOMP.
+ *
+ */
+__STATIC_INLINE void nrf_lpcomp_disable(void)
+{
+ NRF_LPCOMP->ENABLE = LPCOMP_ENABLE_ENABLE_Disabled << LPCOMP_ENABLE_ENABLE_Pos;
+}
+
+
+/**
+ * @brief Function for getting the last LPCOMP compare result.
+ *
+ * @return The last compare result. If 0 then VIN+ < VIN-, if 1 then the opposite.
+ */
+__STATIC_INLINE uint32_t nrf_lpcomp_result_get(void)
+{
+ return (uint32_t)NRF_LPCOMP->RESULT;
+}
+
+
+/**
+ * @brief Function for enabling interrupts from LPCOMP.
+ *
+ * @param[in] lpcomp_int_mask Mask of interrupts to be enabled.
+ *
+ * @sa nrf_lpcomp_int_disable()
+ * @sa nrf_lpcomp_int_enable_check()
+ */
+__STATIC_INLINE void nrf_lpcomp_int_enable(uint32_t lpcomp_int_mask)
+{
+ NRF_LPCOMP->INTENSET = lpcomp_int_mask;
+}
+
+
+/**
+ * @brief Function for disabling interrupts from LPCOMP.
+ *
+ * @param[in] lpcomp_int_mask Mask of interrupts to be disabled.
+ *
+ * @sa nrf_lpcomp_int_enable()
+ * @sa nrf_lpcomp_int_enable_check()
+ */
+__STATIC_INLINE void nrf_lpcomp_int_disable(uint32_t lpcomp_int_mask)
+{
+ NRF_LPCOMP->INTENCLR = lpcomp_int_mask;
+}
+
+
+/**
+ * @brief Function for getting the enabled interrupts of LPCOMP.
+ *
+ * @param[in] lpcomp_int_mask Mask of interrupts to be checked.
+ *
+ * @retval true If any of interrupts of the specified mask are enabled.
+ *
+ * @sa nrf_lpcomp_int_enable()
+ * @sa nrf_lpcomp_int_disable()
+ */
+__STATIC_INLINE bool nrf_lpcomp_int_enable_check(uint32_t lpcomp_int_mask)
+{
+ return (NRF_LPCOMP->INTENSET & lpcomp_int_mask); // when read this register will return the value of INTEN.
+}
+
+
+/**
+ * @brief Function for getting the address of a specific LPCOMP task register.
+ *
+ * @param[in] lpcomp_task LPCOMP task.
+ *
+ * @return The address of the specified LPCOMP task.
+ */
+__STATIC_INLINE uint32_t * nrf_lpcomp_task_address_get(nrf_lpcomp_task_t lpcomp_task)
+{
+ return (uint32_t *)((uint8_t *)NRF_LPCOMP + lpcomp_task);
+}
+
+
+/**
+ * @brief Function for getting the address of a specific LPCOMP event register.
+ *
+ * @param[in] lpcomp_event LPCOMP event.
+ *
+ * @return The address of the specified LPCOMP event.
+ */
+__STATIC_INLINE uint32_t * nrf_lpcomp_event_address_get(nrf_lpcomp_event_t lpcomp_event)
+{
+ return (uint32_t *)((uint8_t *)NRF_LPCOMP + lpcomp_event);
+}
+
+
+/**
+ * @brief Function for setting LPCOMP shorts.
+ *
+ * @param[in] lpcomp_short_mask LPCOMP shorts by mask.
+ *
+ */
+__STATIC_INLINE void nrf_lpcomp_shorts_enable(uint32_t lpcomp_short_mask)
+{
+ NRF_LPCOMP->SHORTS |= lpcomp_short_mask;
+}
+
+
+/**
+ * @brief Function for clearing LPCOMP shorts by mask.
+ *
+ * @param[in] lpcomp_short_mask LPCOMP shorts to be cleared.
+ *
+ */
+__STATIC_INLINE void nrf_lpcomp_shorts_disable(uint32_t lpcomp_short_mask)
+{
+ NRF_LPCOMP->SHORTS &= ~lpcomp_short_mask;
+}
+
+
+/**
+ * @brief Function for setting a specific LPCOMP task.
+ *
+ * @param[in] lpcomp_task LPCOMP task to be set.
+ *
+ */
+__STATIC_INLINE void nrf_lpcomp_task_trigger(nrf_lpcomp_task_t lpcomp_task)
+{
+ *( (volatile uint32_t *)( (uint8_t *)NRF_LPCOMP + lpcomp_task) ) = 1;
+}
+
+
+/**
+ * @brief Function for clearing a specific LPCOMP event.
+ *
+ * @param[in] lpcomp_event LPCOMP event to be cleared.
+ *
+ */
+__STATIC_INLINE void nrf_lpcomp_event_clear(nrf_lpcomp_event_t lpcomp_event)
+{
+ *( (volatile uint32_t *)( (uint8_t *)NRF_LPCOMP + lpcomp_event) ) = 0;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)NRF_LPCOMP + lpcomp_event));
+ (void)dummy;
+#endif
+}
+
+
+/**
+ * @brief Function for getting the state of a specific LPCOMP event.
+ *
+ * @retval true If the specified LPCOMP event is active.
+ *
+ */
+__STATIC_INLINE bool nrf_lpcomp_event_check(nrf_lpcomp_event_t lpcomp_event)
+{
+ return (bool) (*(volatile uint32_t *)( (uint8_t *)NRF_LPCOMP + lpcomp_event));
+}
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NRF_LPCOMP_H_ */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_nvmc.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_nvmc.c
new file mode 100644
index 0000000..99fc64f
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_nvmc.c
@@ -0,0 +1,133 @@
+/**
+ * Copyright (c) 2012 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+/**
+ *@file
+ *@brief NMVC driver implementation
+ */
+
+#include <nrfx.h>
+#include "nrf_nvmc.h"
+
+static inline void wait_for_flash_ready(void)
+{
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy) {;}
+}
+
+void nrf_nvmc_page_erase(uint32_t address)
+{
+ // Enable erase.
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Een;
+ __ISB();
+ __DSB();
+
+ // Erase the page
+ NRF_NVMC->ERASEPAGE = address;
+ wait_for_flash_ready();
+
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren;
+ __ISB();
+ __DSB();
+}
+
+
+void nrf_nvmc_write_byte(uint32_t address, uint8_t value)
+{
+ uint32_t byte_shift = address & (uint32_t)0x03;
+ uint32_t address32 = address & ~byte_shift; // Address to the word this byte is in.
+ uint32_t value32 = (*(uint32_t*)address32 & ~((uint32_t)0xFF << (byte_shift << (uint32_t)3)));
+ value32 = value32 + ((uint32_t)value << (byte_shift << 3));
+
+ // Enable write.
+ NRF_NVMC->CONFIG = (NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos);
+ __ISB();
+ __DSB();
+
+ *(uint32_t*)address32 = value32;
+ wait_for_flash_ready();
+
+ NRF_NVMC->CONFIG = (NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos);
+ __ISB();
+ __DSB();
+}
+
+void nrf_nvmc_write_word(uint32_t address, uint32_t value)
+{
+ // Enable write.
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen;
+ __ISB();
+ __DSB();
+
+ *(uint32_t*)address = value;
+ wait_for_flash_ready();
+
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren;
+ __ISB();
+ __DSB();
+}
+
+void nrf_nvmc_write_bytes(uint32_t address, const uint8_t * src, uint32_t num_bytes)
+{
+ uint32_t i;
+ for (i = 0; i < num_bytes; i++)
+ {
+ nrf_nvmc_write_byte(address + i,src[i]);
+ }
+}
+
+void nrf_nvmc_write_words(uint32_t address, const uint32_t * src, uint32_t num_words)
+{
+ uint32_t i;
+
+ // Enable write.
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen;
+ __ISB();
+ __DSB();
+
+ for (i = 0; i < num_words; i++)
+ {
+ ((uint32_t*)address)[i] = src[i];
+ wait_for_flash_ready();
+ }
+
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren;
+ __ISB();
+ __DSB();
+}
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_nvmc.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_nvmc.h
new file mode 100644
index 0000000..a0d8de8
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_nvmc.h
@@ -0,0 +1,119 @@
+/**
+ * Copyright (c) 2012 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_NVMC_H__
+#define NRF_NVMC_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/**
+ * @defgroup nrf_nvmc_hal NVMC HAL
+ * @{
+ * @ingroup nrf_nvmc
+ * @brief Hardware access layer for managing the Non-Volatile Memory Controller (NVMC) peripheral.
+ *
+ * This driver allows writing to the non-volatile memory (NVM) regions
+ * of the chip. In order to write to NVM the controller must be powered
+ * on and the relevant page must be erased.
+ *
+ */
+
+
+/**
+ * @brief Erase a page in flash. This is required before writing to any
+ * address in the page.
+ *
+ * @param address Start address of the page.
+ */
+void nrf_nvmc_page_erase(uint32_t address);
+
+
+/**
+ * @brief Write a single byte to flash.
+ *
+ * The function reads the word containing the byte, and then
+ * rewrites the entire word.
+ *
+ * @param address Address to write to.
+ * @param value Value to write.
+ */
+void nrf_nvmc_write_byte(uint32_t address , uint8_t value);
+
+
+/**
+ * @brief Write a 32-bit word to flash.
+ * @param address Address to write to.
+ * @param value Value to write.
+ */
+void nrf_nvmc_write_word(uint32_t address, uint32_t value);
+
+
+/**
+ * @brief Write consecutive bytes to flash.
+ *
+ * @param address Address to write to.
+ * @param src Pointer to data to copy from.
+ * @param num_bytes Number of bytes in src to write.
+ */
+void nrf_nvmc_write_bytes(uint32_t address, const uint8_t * src, uint32_t num_bytes);
+
+
+/**
+ * @brief Write consecutive words to flash.
+ *
+ * @param address Address to write to.
+ * @param src Pointer to data to copy from.
+ * @param num_words Number of words in src to write.
+ */
+void nrf_nvmc_write_words(uint32_t address, const uint32_t * src, uint32_t num_words);
+
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_NVMC_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_pdm.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_pdm.h
new file mode 100644
index 0000000..5f18314
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_pdm.h
@@ -0,0 +1,387 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+#ifndef NRF_PDM_H_
+#define NRF_PDM_H_
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_pdm_hal PDM HAL
+ * @{
+ * @ingroup nrf_pdm
+ * @brief Hardware access layer for managing the Pulse Density Modulation (PDM) peripheral.
+ */
+
+#define NRF_PDM_GAIN_MINIMUM 0x00
+#define NRF_PDM_GAIN_DEFAULT 0x28
+#define NRF_PDM_GAIN_MAXIMUM 0x50
+
+typedef uint8_t nrf_pdm_gain_t;
+
+
+/**
+ * @brief PDM tasks.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_PDM_TASK_START = offsetof(NRF_PDM_Type, TASKS_START), ///< Starts continuous PDM transfer.
+ NRF_PDM_TASK_STOP = offsetof(NRF_PDM_Type, TASKS_STOP) ///< Stops PDM transfer.
+} nrf_pdm_task_t;
+
+
+/**
+ * @brief PDM events.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_PDM_EVENT_STARTED = offsetof(NRF_PDM_Type, EVENTS_STARTED), ///< PDM transfer has started.
+ NRF_PDM_EVENT_STOPPED = offsetof(NRF_PDM_Type, EVENTS_STOPPED), ///< PDM transfer has finished.
+ NRF_PDM_EVENT_END = offsetof(NRF_PDM_Type, EVENTS_END) ///< The PDM has written the last sample specified by SAMPLE.MAXCNT (or the last sample after a STOP task has been received) to Data RAM.
+} nrf_pdm_event_t;
+
+
+/**
+ * @brief PDM interrupt masks.
+ */
+typedef enum
+{
+ NRF_PDM_INT_STARTED = PDM_INTENSET_STARTED_Msk, ///< Interrupt on EVENTS_STARTED event.
+ NRF_PDM_INT_STOPPED = PDM_INTENSET_STOPPED_Msk, ///< Interrupt on EVENTS_STOPPED event.
+ NRF_PDM_INT_END = PDM_INTENSET_END_Msk ///< Interrupt on EVENTS_END event.
+} nrf_pdm_int_mask_t;
+
+/**
+ * @brief PDM clock frequency.
+ */
+typedef enum
+{
+ NRF_PDM_FREQ_1000K = PDM_PDMCLKCTRL_FREQ_1000K, ///< PDM_CLK = 1.000 MHz.
+ NRF_PDM_FREQ_1032K = PDM_PDMCLKCTRL_FREQ_Default, ///< PDM_CLK = 1.032 MHz.
+ NRF_PDM_FREQ_1067K = PDM_PDMCLKCTRL_FREQ_1067K ///< PDM_CLK = 1.067 MHz.
+} nrf_pdm_freq_t;
+
+
+/**
+ * @brief PDM operation mode.
+ */
+typedef enum
+{
+ NRF_PDM_MODE_STEREO = PDM_MODE_OPERATION_Stereo, ///< Sample and store one pair (Left + Right) of 16-bit samples per RAM word.
+ NRF_PDM_MODE_MONO = PDM_MODE_OPERATION_Mono ///< Sample and store two successive Left samples (16 bit each) per RAM word.
+} nrf_pdm_mode_t;
+
+
+/**
+ * @brief PDM sampling mode.
+ */
+typedef enum
+{
+ NRF_PDM_EDGE_LEFTFALLING = PDM_MODE_EDGE_LeftFalling, ///< Left (or mono) is sampled on falling edge of PDM_CLK.
+ NRF_PDM_EDGE_LEFTRISING = PDM_MODE_EDGE_LeftRising ///< Left (or mono) is sampled on rising edge of PDM_CLK.
+} nrf_pdm_edge_t;
+
+
+/**
+ * @brief Function for triggering a PDM task.
+ *
+ * @param[in] pdm_task PDM task.
+ */
+__STATIC_INLINE void nrf_pdm_task_trigger(nrf_pdm_task_t pdm_task)
+{
+ *((volatile uint32_t *)((uint8_t *)NRF_PDM + (uint32_t)pdm_task)) = 0x1UL;
+}
+
+
+/**
+ * @brief Function for getting the address of a PDM task register.
+ *
+ * @param[in] pdm_task PDM task.
+ *
+ * @return Address of the specified PDM task.
+ */
+__STATIC_INLINE uint32_t nrf_pdm_task_address_get(nrf_pdm_task_t pdm_task)
+{
+ return (uint32_t)((uint8_t *)NRF_PDM + (uint32_t)pdm_task);
+}
+
+
+/**
+ * @brief Function for getting the state of a PDM event.
+ *
+ * @param[in] pdm_event PDM event.
+ *
+ * @return State of the specified PDM event.
+ */
+__STATIC_INLINE bool nrf_pdm_event_check(nrf_pdm_event_t pdm_event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)NRF_PDM + (uint32_t)pdm_event);
+}
+
+
+/**
+ * @brief Function for clearing a PDM event.
+ *
+ * @param[in] pdm_event PDM event.
+ */
+__STATIC_INLINE void nrf_pdm_event_clear(nrf_pdm_event_t pdm_event)
+{
+ *((volatile uint32_t *)((uint8_t *)NRF_PDM + (uint32_t)pdm_event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)NRF_PDM + (uint32_t)pdm_event));
+ (void)dummy;
+#endif
+}
+
+
+/**
+ * @brief Function for getting the address of a PDM event register.
+ *
+ * @param[in] pdm_event PDM event.
+ *
+ * @return Address of the specified PDM event.
+ */
+__STATIC_INLINE volatile uint32_t * nrf_pdm_event_address_get(nrf_pdm_event_t pdm_event)
+{
+ return (volatile uint32_t *)((uint8_t *)NRF_PDM + (uint32_t)pdm_event);
+}
+
+
+/**
+ * @brief Function for enabling PDM interrupts.
+ *
+ * @param[in] pdm_int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_pdm_int_enable(uint32_t pdm_int_mask)
+{
+ NRF_PDM->INTENSET = pdm_int_mask;
+}
+
+
+/**
+ * @brief Function for retrieving the state of PDM interrupts.
+ *
+ * @param[in] pdm_int_mask Interrupts to check.
+ *
+ * @retval true If all specified interrupts are enabled.
+ * @retval false If at least one of the given interrupts is not enabled.
+ */
+__STATIC_INLINE bool nrf_pdm_int_enable_check(uint32_t pdm_int_mask)
+{
+ return (bool)(NRF_PDM->INTENSET & pdm_int_mask);
+}
+
+
+/**
+ * @brief Function for disabling interrupts.
+ *
+ * @param pdm_int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_pdm_int_disable(uint32_t pdm_int_mask)
+{
+ NRF_PDM->INTENCLR = pdm_int_mask;
+}
+
+
+/**
+ * @brief Function for enabling the PDM peripheral.
+ *
+ * The PDM peripheral must be enabled before use.
+ */
+__STATIC_INLINE void nrf_pdm_enable(void)
+{
+ NRF_PDM->ENABLE = (PDM_ENABLE_ENABLE_Enabled << PDM_ENABLE_ENABLE_Pos);
+}
+
+
+/**
+ * @brief Function for disabling the PDM peripheral.
+ */
+__STATIC_INLINE void nrf_pdm_disable(void)
+{
+ NRF_PDM->ENABLE = (PDM_ENABLE_ENABLE_Disabled << PDM_ENABLE_ENABLE_Pos);
+}
+
+
+/**
+ * @brief Function for checking if the PDM peripheral is enabled.
+ *
+ * @retval true If the PDM peripheral is enabled.
+ * @retval false If the PDM peripheral is not enabled.
+ */
+__STATIC_INLINE bool nrf_pdm_enable_check(void)
+{
+ return (NRF_PDM->ENABLE == (PDM_ENABLE_ENABLE_Enabled << PDM_ENABLE_ENABLE_Pos));
+}
+
+
+/**
+ * @brief Function for setting the PDM operation mode.
+ *
+ * @param[in] pdm_mode PDM operation mode.
+ * @param[in] pdm_edge PDM sampling mode.
+ */
+__STATIC_INLINE void nrf_pdm_mode_set(nrf_pdm_mode_t pdm_mode, nrf_pdm_edge_t pdm_edge)
+{
+ NRF_PDM->MODE = ((pdm_mode << PDM_MODE_OPERATION_Pos) & PDM_MODE_OPERATION_Msk)
+ | ((pdm_edge << PDM_MODE_EDGE_Pos) & PDM_MODE_EDGE_Msk);
+}
+
+
+/**
+ * @brief Function for getting the PDM operation mode.
+ *
+ * @param[out] p_pdm_mode PDM operation mode.
+ * @param[out] p_pdm_edge PDM sampling mode.
+ */
+__STATIC_INLINE void nrf_pdm_mode_get(nrf_pdm_mode_t * p_pdm_mode, nrf_pdm_edge_t * p_pdm_edge)
+{
+ uint32_t mode = NRF_PDM->MODE;
+ *p_pdm_mode = (nrf_pdm_mode_t)((mode & PDM_MODE_OPERATION_Msk ) >> PDM_MODE_OPERATION_Pos);
+ *p_pdm_edge = (nrf_pdm_edge_t)((mode & PDM_MODE_EDGE_Msk ) >> PDM_MODE_EDGE_Pos);
+}
+
+
+/**
+ * @brief Function for setting the PDM clock frequency.
+ *
+ * @param[in] pdm_freq PDM clock frequency.
+ */
+__STATIC_INLINE void nrf_pdm_clock_set(nrf_pdm_freq_t pdm_freq)
+{
+ NRF_PDM->PDMCLKCTRL = ((pdm_freq << PDM_PDMCLKCTRL_FREQ_Pos) & PDM_PDMCLKCTRL_FREQ_Msk);
+}
+
+
+/**
+ * @brief Function for getting the PDM clock frequency.
+ */
+__STATIC_INLINE nrf_pdm_freq_t nrf_pdm_clock_get(void)
+{
+ return (nrf_pdm_freq_t) ((NRF_PDM->PDMCLKCTRL << PDM_PDMCLKCTRL_FREQ_Pos) & PDM_PDMCLKCTRL_FREQ_Msk);
+}
+
+
+/**
+ * @brief Function for setting up the PDM pins.
+ *
+ * @param[in] psel_clk CLK pin number.
+ * @param[in] psel_din DIN pin number.
+ */
+__STATIC_INLINE void nrf_pdm_psel_connect(uint32_t psel_clk, uint32_t psel_din)
+{
+ NRF_PDM->PSEL.CLK = psel_clk;
+ NRF_PDM->PSEL.DIN = psel_din;
+}
+
+/**
+ * @brief Function for disconnecting the PDM pins.
+ */
+__STATIC_INLINE void nrf_pdm_psel_disconnect()
+{
+ NRF_PDM->PSEL.CLK = ((PDM_PSEL_CLK_CONNECT_Disconnected << PDM_PSEL_CLK_CONNECT_Pos)
+ & PDM_PSEL_CLK_CONNECT_Msk);
+ NRF_PDM->PSEL.DIN = ((PDM_PSEL_DIN_CONNECT_Disconnected << PDM_PSEL_DIN_CONNECT_Pos)
+ & PDM_PSEL_DIN_CONNECT_Msk);
+}
+
+
+/**
+ * @brief Function for setting the PDM gain.
+ *
+ * @param[in] gain_l Left channel gain.
+ * @param[in] gain_r Right channel gain.
+ */
+__STATIC_INLINE void nrf_pdm_gain_set(nrf_pdm_gain_t gain_l, nrf_pdm_gain_t gain_r)
+{
+ NRF_PDM->GAINL = gain_l;
+ NRF_PDM->GAINR = gain_r;
+}
+
+
+/**
+ * @brief Function for getting the PDM gain.
+ *
+ * @param[out] p_gain_l Left channel gain.
+ * @param[out] p_gain_r Right channel gain.
+ */
+__STATIC_INLINE void nrf_pdm_gain_get(nrf_pdm_gain_t * p_gain_l, nrf_pdm_gain_t * p_gain_r)
+{
+ *p_gain_l = NRF_PDM->GAINL;
+ *p_gain_r = NRF_PDM->GAINR;
+}
+
+
+/**
+ * @brief Function for setting the PDM sample buffer.
+ *
+ * @param[in] p_buffer Pointer to the RAM address where samples should be written with EasyDMA.
+ * @param[in] num Number of samples to allocate memory for in EasyDMA mode.
+ *
+ * The amount of allocated RAM depends on the operation mode.
+ * - For stereo mode: N 32-bit words.
+ * - For mono mode: Ceil(N/2) 32-bit words.
+ */
+__STATIC_INLINE void nrf_pdm_buffer_set(uint32_t * p_buffer, uint32_t num)
+{
+ NRF_PDM->SAMPLE.PTR = (uint32_t)p_buffer;
+ NRF_PDM->SAMPLE.MAXCNT = num;
+}
+
+/**
+ * @brief Function for getting the current PDM sample buffer address.
+ *
+ * @return Pointer to the current sample buffer.
+ */
+__STATIC_INLINE uint32_t * nrf_pdm_buffer_get()
+{
+ return (uint32_t *)NRF_PDM->SAMPLE.PTR;
+}
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NRF_PDM_H_ */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_power.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_power.h
new file mode 100644
index 0000000..9082d82
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_power.h
@@ -0,0 +1,1057 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_POWER_H__
+#define NRF_POWER_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_power_hal POWER HAL
+ * @{
+ * @ingroup nrf_power
+ * @brief Hardware access layer for managing the POWER peripheral.
+ */
+
+#if defined(POWER_RAMSTATUS_RAMBLOCK0_Msk)
+#define NRF_POWER_HAS_RAMSTATUS 1
+#else
+#define NRF_POWER_HAS_RAMSTATUS 0
+#endif
+
+/**
+ * @name The implemented functionality
+ * @{
+ *
+ * Macros that defines functionality that is implemented into POWER peripheral.
+ */
+#if defined(POWER_INTENSET_SLEEPENTER_Msk) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief The fact that sleep events are present
+ *
+ * In some MCUs there is possibility to process sleep entering and exiting
+ * events.
+ */
+#define NRF_POWER_HAS_SLEEPEVT 1
+#else
+#define NRF_POWER_HAS_SLEEPEVT 0
+#endif
+
+#if defined(POWER_RAM_POWER_S0POWER_Msk) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief The fact that RAMPOWER registers are present
+ *
+ * After nRF51, new way to manage RAM power was implemented.
+ * Special registers, one for every RAM block that makes it possible to
+ * power ON or OFF RAM segments and turn ON and OFF RAM retention in system OFF
+ * state.
+ */
+#define NRF_POWER_HAS_RAMPOWER_REGS 1
+#else
+#define NRF_POWER_HAS_RAMPOWER_REGS 0
+#endif
+
+#if defined(POWER_POFCON_THRESHOLDVDDH_Msk) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Auxiliary definition to mark the fact that VDDH is present
+ *
+ * This definition can be used in a code to decide if the part with VDDH
+ * related settings should be implemented.
+ */
+#define NRF_POWER_HAS_VDDH 1
+#else
+#define NRF_POWER_HAS_VDDH 0
+#endif
+
+#if defined(POWER_USBREGSTATUS_VBUSDETECT_Msk) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief The fact that power module manages USB regulator
+ *
+ * In devices that have USB, power peripheral manages also connection
+ * detection and USB power regulator, that converts 5&nbsp;V to 3.3&nbsp;V
+ * used by USBD peripheral.
+ */
+#define NRF_POWER_HAS_USBREG 1
+#else
+#define NRF_POWER_HAS_USBREG 0
+#endif
+/** @} */
+
+/* ------------------------------------------------------------------------------------------------
+ * Begin of automatically generated part
+ * ------------------------------------------------------------------------------------------------
+ */
+
+/**
+ * @brief POWER tasks
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_POWER_TASK_CONSTLAT = offsetof(NRF_POWER_Type, TASKS_CONSTLAT), /**< Enable constant latency mode */
+ NRF_POWER_TASK_LOWPWR = offsetof(NRF_POWER_Type, TASKS_LOWPWR ), /**< Enable low power mode (variable latency) */
+}nrf_power_task_t; /*lint -restore */
+
+/**
+ * @brief POWER events
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_POWER_EVENT_POFWARN = offsetof(NRF_POWER_Type, EVENTS_POFWARN ), /**< Power failure warning */
+#if NRF_POWER_HAS_SLEEPEVT
+ NRF_POWER_EVENT_SLEEPENTER = offsetof(NRF_POWER_Type, EVENTS_SLEEPENTER ), /**< CPU entered WFI/WFE sleep */
+ NRF_POWER_EVENT_SLEEPEXIT = offsetof(NRF_POWER_Type, EVENTS_SLEEPEXIT ), /**< CPU exited WFI/WFE sleep */
+#endif
+#if NRF_POWER_HAS_USBREG
+ NRF_POWER_EVENT_USBDETECTED = offsetof(NRF_POWER_Type, EVENTS_USBDETECTED), /**< Voltage supply detected on VBUS */
+ NRF_POWER_EVENT_USBREMOVED = offsetof(NRF_POWER_Type, EVENTS_USBREMOVED ), /**< Voltage supply removed from VBUS */
+ NRF_POWER_EVENT_USBPWRRDY = offsetof(NRF_POWER_Type, EVENTS_USBPWRRDY ), /**< USB 3.3&nbsp;V supply ready */
+#endif
+}nrf_power_event_t; /*lint -restore */
+
+/**
+ * @brief POWER interrupts
+ */
+typedef enum
+{
+ NRF_POWER_INT_POFWARN_MASK = POWER_INTENSET_POFWARN_Msk , /**< Write '1' to Enable interrupt for POFWARN event */
+#if NRF_POWER_HAS_SLEEPEVT
+ NRF_POWER_INT_SLEEPENTER_MASK = POWER_INTENSET_SLEEPENTER_Msk , /**< Write '1' to Enable interrupt for SLEEPENTER event */
+ NRF_POWER_INT_SLEEPEXIT_MASK = POWER_INTENSET_SLEEPEXIT_Msk , /**< Write '1' to Enable interrupt for SLEEPEXIT event */
+#endif
+#if NRF_POWER_HAS_USBREG
+ NRF_POWER_INT_USBDETECTED_MASK = POWER_INTENSET_USBDETECTED_Msk, /**< Write '1' to Enable interrupt for USBDETECTED event */
+ NRF_POWER_INT_USBREMOVED_MASK = POWER_INTENSET_USBREMOVED_Msk , /**< Write '1' to Enable interrupt for USBREMOVED event */
+ NRF_POWER_INT_USBPWRRDY_MASK = POWER_INTENSET_USBPWRRDY_Msk , /**< Write '1' to Enable interrupt for USBPWRRDY event */
+#endif
+}nrf_power_int_mask_t;
+
+/**
+ * @brief Function for activating a specific POWER task.
+ *
+ * @param task Task.
+ */
+__STATIC_INLINE void nrf_power_task_trigger(nrf_power_task_t task);
+
+/**
+ * @brief Function for returning the address of a specific POWER task register.
+ *
+ * @param task Task.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrf_power_task_address_get(nrf_power_task_t task);
+
+/**
+ * @brief Function for clearing a specific event.
+ *
+ * @param event Event.
+ */
+__STATIC_INLINE void nrf_power_event_clear(nrf_power_event_t event);
+
+/**
+ * @brief Function for returning the state of a specific event.
+ *
+ * @param event Event.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_power_event_check(nrf_power_event_t event);
+
+/**
+ * @brief Function for getting and clearing the state of specific event
+ *
+ * This function checks the state of the event and clears it.
+ *
+ * @param event Event.
+ *
+ * @retval true If the event was set.
+ * @retval false If the event was not set.
+ */
+__STATIC_INLINE bool nrf_power_event_get_and_clear(nrf_power_event_t event);
+
+/**
+ * @brief Function for returning the address of a specific POWER event register.
+ *
+ * @param event Event.
+ *
+ * @return Address.
+ */
+__STATIC_INLINE uint32_t nrf_power_event_address_get(nrf_power_event_t event);
+
+/**
+ * @brief Function for enabling selected interrupts.
+ *
+ * @param int_mask Interrupts mask.
+ */
+__STATIC_INLINE void nrf_power_int_enable(uint32_t int_mask);
+
+/**
+ * @brief Function for retrieving the state of selected interrupts.
+ *
+ * @param int_mask Interrupts mask.
+ *
+ * @retval true If any of selected interrupts is enabled.
+ * @retval false If none of selected interrupts is enabled.
+ */
+__STATIC_INLINE bool nrf_power_int_enable_check(uint32_t int_mask);
+
+/**
+ * @brief Function for retrieving the information about enabled interrupts.
+ *
+ * @return The flags of enabled interrupts.
+ */
+__STATIC_INLINE uint32_t nrf_power_int_enable_get(void);
+
+/**
+ * @brief Function for disabling selected interrupts.
+ *
+ * @param int_mask Interrupts mask.
+ */
+__STATIC_INLINE void nrf_power_int_disable(uint32_t int_mask);
+
+
+/** @} */ /* End of nrf_power_hal */
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+/* ------------------------------------------------------------------------------------------------
+ * Internal functions
+ */
+
+/**
+ * @internal
+ * @brief Internal function for getting task/event register address
+ *
+ * @oaram offset Offset of the register from the instance beginning
+ *
+ * @attention offset has to be modulo 4 value. In other case we can get hardware fault.
+ * @return Pointer to the register
+ */
+__STATIC_INLINE volatile uint32_t * nrf_power_regptr_get(uint32_t offset)
+{
+ return (volatile uint32_t *)(((uint8_t *)NRF_POWER) + (uint32_t)offset);
+}
+
+/**
+ * @internal
+ * @brief Internal function for getting task/event register address - constant version
+ *
+ * @oaram offset Offset of the register from the instance beginning
+ *
+ * @attention offset has to be modulo 4 value. In other case we can get hardware fault.
+ * @return Pointer to the register
+ */
+__STATIC_INLINE volatile const uint32_t * nrf_power_regptr_get_c(
+ uint32_t offset)
+{
+ return (volatile const uint32_t *)(((uint8_t *)NRF_POWER) +
+ (uint32_t)offset);
+}
+
+/* ------------------------------------------------------------------------------------------------
+ * Interface functions definitions
+ */
+
+void nrf_power_task_trigger(nrf_power_task_t task)
+{
+ *(nrf_power_regptr_get((uint32_t)task)) = 1UL;
+}
+
+uint32_t nrf_power_task_address_get(nrf_power_task_t task)
+{
+ return (uint32_t)nrf_power_regptr_get_c((uint32_t)task);
+}
+
+void nrf_power_event_clear(nrf_power_event_t event)
+{
+ *(nrf_power_regptr_get((uint32_t)event)) = 0UL;
+}
+
+bool nrf_power_event_check(nrf_power_event_t event)
+{
+ return (bool)*nrf_power_regptr_get_c((uint32_t)event);
+}
+
+bool nrf_power_event_get_and_clear(nrf_power_event_t event)
+{
+ bool ret = nrf_power_event_check(event);
+ if (ret)
+ {
+ nrf_power_event_clear(event);
+ }
+ return ret;
+}
+
+uint32_t nrf_power_event_address_get(nrf_power_event_t event)
+{
+ return (uint32_t)nrf_power_regptr_get_c((uint32_t)event);
+}
+
+void nrf_power_int_enable(uint32_t int_mask)
+{
+ NRF_POWER->INTENSET = int_mask;
+}
+
+bool nrf_power_int_enable_check(uint32_t int_mask)
+{
+ return !!(NRF_POWER->INTENSET & int_mask);
+}
+
+uint32_t nrf_power_int_enable_get(void)
+{
+ return NRF_POWER->INTENSET;
+}
+
+void nrf_power_int_disable(uint32_t int_mask)
+{
+ NRF_POWER->INTENCLR = int_mask;
+}
+
+#endif /* SUPPRESS_INLINE_IMPLEMENTATION */
+
+/* ------------------------------------------------------------------------------------------------
+ * End of automatically generated part
+ * ------------------------------------------------------------------------------------------------
+ */
+/**
+ * @ingroup nrf_power_hal
+ * @{
+ */
+
+/**
+ * @brief Reset reason
+ */
+typedef enum
+{
+ NRF_POWER_RESETREAS_RESETPIN_MASK = POWER_RESETREAS_RESETPIN_Msk, /*!< Bit mask of RESETPIN field. *///!< NRF_POWER_RESETREAS_RESETPIN_MASK
+ NRF_POWER_RESETREAS_DOG_MASK = POWER_RESETREAS_DOG_Msk , /*!< Bit mask of DOG field. */ //!< NRF_POWER_RESETREAS_DOG_MASK
+ NRF_POWER_RESETREAS_SREQ_MASK = POWER_RESETREAS_SREQ_Msk , /*!< Bit mask of SREQ field. */ //!< NRF_POWER_RESETREAS_SREQ_MASK
+ NRF_POWER_RESETREAS_LOCKUP_MASK = POWER_RESETREAS_LOCKUP_Msk , /*!< Bit mask of LOCKUP field. */ //!< NRF_POWER_RESETREAS_LOCKUP_MASK
+ NRF_POWER_RESETREAS_OFF_MASK = POWER_RESETREAS_OFF_Msk , /*!< Bit mask of OFF field. */ //!< NRF_POWER_RESETREAS_OFF_MASK
+#if defined(POWER_RESETREAS_LPCOMP_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_POWER_RESETREAS_LPCOMP_MASK = POWER_RESETREAS_LPCOMP_Msk , /*!< Bit mask of LPCOMP field. */ //!< NRF_POWER_RESETREAS_LPCOMP_MASK
+#endif
+ NRF_POWER_RESETREAS_DIF_MASK = POWER_RESETREAS_DIF_Msk , /*!< Bit mask of DIF field. */ //!< NRF_POWER_RESETREAS_DIF_MASK
+#if defined(POWER_RESETREAS_NFC_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_POWER_RESETREAS_NFC_MASK = POWER_RESETREAS_NFC_Msk , /*!< Bit mask of NFC field. */
+#endif
+#if defined(POWER_RESETREAS_VBUS_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_POWER_RESETREAS_VBUS_MASK = POWER_RESETREAS_VBUS_Msk , /*!< Bit mask of VBUS field. */
+#endif
+}nrf_power_resetreas_mask_t;
+
+#if NRF_POWER_HAS_USBREG
+/**
+ * @brief USBREGSTATUS register bit masks
+ *
+ * @sa nrf_power_usbregstatus_get
+ */
+typedef enum
+{
+ NRF_POWER_USBREGSTATUS_VBUSDETECT_MASK = POWER_USBREGSTATUS_VBUSDETECT_Msk, /**< USB detected or removed */
+ NRF_POWER_USBREGSTATUS_OUTPUTRDY_MASK = POWER_USBREGSTATUS_OUTPUTRDY_Msk /**< USB 3.3&nbsp;V supply ready */
+}nrf_power_usbregstatus_mask_t;
+#endif
+
+#if NRF_POWER_HAS_RAMSTATUS
+/**
+ * @brief RAM blocks numbers
+ *
+ * @sa nrf_power_ramblock_mask_t
+ * @note
+ * Ram blocks has to been used in nrf51.
+ * In new CPU ram is divided into segments and this functionality is depreciated.
+ * For the newer MCU see the PS for mapping between internal RAM and RAM blocks,
+ * because this mapping is not 1:1, and functions related to old style blocks
+ * should not be used.
+ */
+typedef enum
+{
+ NRF_POWER_RAMBLOCK0 = POWER_RAMSTATUS_RAMBLOCK0_Pos,
+ NRF_POWER_RAMBLOCK1 = POWER_RAMSTATUS_RAMBLOCK1_Pos,
+ NRF_POWER_RAMBLOCK2 = POWER_RAMSTATUS_RAMBLOCK2_Pos,
+ NRF_POWER_RAMBLOCK3 = POWER_RAMSTATUS_RAMBLOCK3_Pos
+}nrf_power_ramblock_t;
+
+/**
+ * @brief RAM blocks masks
+ *
+ * @sa nrf_power_ramblock_t
+ */
+typedef enum
+{
+ NRF_POWER_RAMBLOCK0_MASK = POWER_RAMSTATUS_RAMBLOCK0_Msk,
+ NRF_POWER_RAMBLOCK1_MASK = POWER_RAMSTATUS_RAMBLOCK1_Msk,
+ NRF_POWER_RAMBLOCK2_MASK = POWER_RAMSTATUS_RAMBLOCK2_Msk,
+ NRF_POWER_RAMBLOCK3_MASK = POWER_RAMSTATUS_RAMBLOCK3_Msk
+}nrf_power_ramblock_mask_t;
+#endif // NRF_POWER_HAS_RAMSTATUS
+
+/**
+ * @brief RAM power state position of the bits
+ *
+ * @sa nrf_power_onoffram_mask_t
+ */
+typedef enum
+{
+ NRF_POWER_ONRAM0, /**< Keep RAM block 0 on or off in system ON Mode */
+ NRF_POWER_OFFRAM0, /**< Keep retention on RAM block 0 when RAM block is switched off */
+ NRF_POWER_ONRAM1, /**< Keep RAM block 1 on or off in system ON Mode */
+ NRF_POWER_OFFRAM1, /**< Keep retention on RAM block 1 when RAM block is switched off */
+ NRF_POWER_ONRAM2, /**< Keep RAM block 2 on or off in system ON Mode */
+ NRF_POWER_OFFRAM2, /**< Keep retention on RAM block 2 when RAM block is switched off */
+ NRF_POWER_ONRAM3, /**< Keep RAM block 3 on or off in system ON Mode */
+ NRF_POWER_OFFRAM3, /**< Keep retention on RAM block 3 when RAM block is switched off */
+}nrf_power_onoffram_t;
+
+/**
+ * @brief RAM power state bit masks
+ *
+ * @sa nrf_power_onoffram_t
+ */
+typedef enum
+{
+ NRF_POWER_ONRAM0_MASK = 1U << NRF_POWER_ONRAM0, /**< Keep RAM block 0 on or off in system ON Mode */
+ NRF_POWER_OFFRAM0_MASK = 1U << NRF_POWER_OFFRAM0, /**< Keep retention on RAM block 0 when RAM block is switched off */
+ NRF_POWER_ONRAM1_MASK = 1U << NRF_POWER_ONRAM1, /**< Keep RAM block 1 on or off in system ON Mode */
+ NRF_POWER_OFFRAM1_MASK = 1U << NRF_POWER_OFFRAM1, /**< Keep retention on RAM block 1 when RAM block is switched off */
+ NRF_POWER_ONRAM2_MASK = 1U << NRF_POWER_ONRAM2, /**< Keep RAM block 2 on or off in system ON Mode */
+ NRF_POWER_OFFRAM2_MASK = 1U << NRF_POWER_OFFRAM2, /**< Keep retention on RAM block 2 when RAM block is switched off */
+ NRF_POWER_ONRAM3_MASK = 1U << NRF_POWER_ONRAM3, /**< Keep RAM block 3 on or off in system ON Mode */
+ NRF_POWER_OFFRAM3_MASK = 1U << NRF_POWER_OFFRAM3, /**< Keep retention on RAM block 3 when RAM block is switched off */
+}nrf_power_onoffram_mask_t;
+
+/**
+ * @brief Power failure comparator thresholds
+ */
+typedef enum
+{
+ NRF_POWER_POFTHR_V21 = POWER_POFCON_THRESHOLD_V21, /**< Set threshold to 2.1&nbsp;V */
+ NRF_POWER_POFTHR_V23 = POWER_POFCON_THRESHOLD_V23, /**< Set threshold to 2.3&nbsp;V */
+ NRF_POWER_POFTHR_V25 = POWER_POFCON_THRESHOLD_V25, /**< Set threshold to 2.5&nbsp;V */
+ NRF_POWER_POFTHR_V27 = POWER_POFCON_THRESHOLD_V27, /**< Set threshold to 2.7&nbsp;V */
+#if defined(POWER_POFCON_THRESHOLD_V17) || defined(__NRFX_DOXYGEN__)
+ NRF_POWER_POFTHR_V17 = POWER_POFCON_THRESHOLD_V17, /**< Set threshold to 1.7&nbsp;V */
+ NRF_POWER_POFTHR_V18 = POWER_POFCON_THRESHOLD_V18, /**< Set threshold to 1.8&nbsp;V */
+ NRF_POWER_POFTHR_V19 = POWER_POFCON_THRESHOLD_V19, /**< Set threshold to 1.9&nbsp;V */
+ NRF_POWER_POFTHR_V20 = POWER_POFCON_THRESHOLD_V20, /**< Set threshold to 2.0&nbsp;V */
+ NRF_POWER_POFTHR_V22 = POWER_POFCON_THRESHOLD_V22, /**< Set threshold to 2.2&nbsp;V */
+ NRF_POWER_POFTHR_V24 = POWER_POFCON_THRESHOLD_V24, /**< Set threshold to 2.4&nbsp;V */
+ NRF_POWER_POFTHR_V26 = POWER_POFCON_THRESHOLD_V26, /**< Set threshold to 2.6&nbsp;V */
+ NRF_POWER_POFTHR_V28 = POWER_POFCON_THRESHOLD_V28, /**< Set threshold to 2.8&nbsp;V */
+#endif
+}nrf_power_pof_thr_t;
+
+#if NRF_POWER_HAS_VDDH
+/**
+ * @brief Power failure comparator thresholds for VDDH
+ */
+typedef enum
+{
+ NRF_POWER_POFTHRVDDH_V27 = POWER_POFCON_THRESHOLDVDDH_V27, /**< Set threshold to 2.7&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V28 = POWER_POFCON_THRESHOLDVDDH_V28, /**< Set threshold to 2.8&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V29 = POWER_POFCON_THRESHOLDVDDH_V29, /**< Set threshold to 2.9&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V30 = POWER_POFCON_THRESHOLDVDDH_V30, /**< Set threshold to 3.0&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V31 = POWER_POFCON_THRESHOLDVDDH_V31, /**< Set threshold to 3.1&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V32 = POWER_POFCON_THRESHOLDVDDH_V32, /**< Set threshold to 3.2&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V33 = POWER_POFCON_THRESHOLDVDDH_V33, /**< Set threshold to 3.3&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V34 = POWER_POFCON_THRESHOLDVDDH_V34, /**< Set threshold to 3.4&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V35 = POWER_POFCON_THRESHOLDVDDH_V35, /**< Set threshold to 3.5&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V36 = POWER_POFCON_THRESHOLDVDDH_V36, /**< Set threshold to 3.6&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V37 = POWER_POFCON_THRESHOLDVDDH_V37, /**< Set threshold to 3.7&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V38 = POWER_POFCON_THRESHOLDVDDH_V38, /**< Set threshold to 3.8&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V39 = POWER_POFCON_THRESHOLDVDDH_V39, /**< Set threshold to 3.9&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V40 = POWER_POFCON_THRESHOLDVDDH_V40, /**< Set threshold to 4.0&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V41 = POWER_POFCON_THRESHOLDVDDH_V41, /**< Set threshold to 4.1&nbsp;V */
+ NRF_POWER_POFTHRVDDH_V42 = POWER_POFCON_THRESHOLDVDDH_V42, /**< Set threshold to 4.2&nbsp;V */
+}nrf_power_pof_thrvddh_t;
+
+/**
+ * @brief Main regulator status
+ */
+typedef enum
+{
+ NRF_POWER_MAINREGSTATUS_NORMAL = POWER_MAINREGSTATUS_MAINREGSTATUS_Normal, /**< Normal voltage mode. Voltage supplied on VDD. */
+ NRF_POWER_MAINREGSTATUS_HIGH = POWER_MAINREGSTATUS_MAINREGSTATUS_High /**< High voltage mode. Voltage supplied on VDDH. */
+}nrf_power_mainregstatus_t;
+
+#endif /* NRF_POWER_HAS_VDDH */
+
+#if NRF_POWER_HAS_RAMPOWER_REGS
+/**
+ * @brief Bit positions for RAMPOWER register
+ *
+ * All possible bits described, even if they are not used in selected MCU.
+ */
+typedef enum
+{
+ /** Keep RAM section S0 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S0POWER = POWER_RAM_POWER_S0POWER_Pos,
+ NRF_POWER_RAMPOWER_S1POWER, /**< Keep RAM section S1 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S2POWER, /**< Keep RAM section S2 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S3POWER, /**< Keep RAM section S3 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S4POWER, /**< Keep RAM section S4 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S5POWER, /**< Keep RAM section S5 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S6POWER, /**< Keep RAM section S6 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S7POWER, /**< Keep RAM section S7 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S8POWER, /**< Keep RAM section S8 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S9POWER, /**< Keep RAM section S9 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S10POWER, /**< Keep RAM section S10 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S11POWER, /**< Keep RAM section S11 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S12POWER, /**< Keep RAM section S12 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S13POWER, /**< Keep RAM section S13 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S14POWER, /**< Keep RAM section S14 ON in System ON mode */
+ NRF_POWER_RAMPOWER_S15POWER, /**< Keep RAM section S15 ON in System ON mode */
+
+ /** Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S0RETENTION = POWER_RAM_POWER_S0RETENTION_Pos,
+ NRF_POWER_RAMPOWER_S1RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S2RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S3RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S4RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S5RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S6RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S7RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S8RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S9RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S10RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S11RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S12RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S13RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S14RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+ NRF_POWER_RAMPOWER_S15RETENTION, /**< Keep section retention in OFF mode when section is OFF */
+}nrf_power_rampower_t;
+
+#if defined ( __CC_ARM )
+#pragma push
+#pragma diag_suppress 66
+#endif
+/**
+ * @brief Bit masks for RAMPOWER register
+ *
+ * All possible bits described, even if they are not used in selected MCU.
+ */
+typedef enum
+{
+ NRF_POWER_RAMPOWER_S0POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S0POWER ,
+ NRF_POWER_RAMPOWER_S1POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S1POWER ,
+ NRF_POWER_RAMPOWER_S2POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S2POWER ,
+ NRF_POWER_RAMPOWER_S3POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S3POWER ,
+ NRF_POWER_RAMPOWER_S4POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S4POWER ,
+ NRF_POWER_RAMPOWER_S5POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S5POWER ,
+ NRF_POWER_RAMPOWER_S7POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S7POWER ,
+ NRF_POWER_RAMPOWER_S8POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S8POWER ,
+ NRF_POWER_RAMPOWER_S9POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S9POWER ,
+ NRF_POWER_RAMPOWER_S10POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S10POWER,
+ NRF_POWER_RAMPOWER_S11POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S11POWER,
+ NRF_POWER_RAMPOWER_S12POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S12POWER,
+ NRF_POWER_RAMPOWER_S13POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S13POWER,
+ NRF_POWER_RAMPOWER_S14POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S14POWER,
+ NRF_POWER_RAMPOWER_S15POWER_MASK = 1UL << NRF_POWER_RAMPOWER_S15POWER,
+
+ NRF_POWER_RAMPOWER_S0RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S0RETENTION ,
+ NRF_POWER_RAMPOWER_S1RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S1RETENTION ,
+ NRF_POWER_RAMPOWER_S2RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S2RETENTION ,
+ NRF_POWER_RAMPOWER_S3RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S3RETENTION ,
+ NRF_POWER_RAMPOWER_S4RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S4RETENTION ,
+ NRF_POWER_RAMPOWER_S5RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S5RETENTION ,
+ NRF_POWER_RAMPOWER_S7RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S7RETENTION ,
+ NRF_POWER_RAMPOWER_S8RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S8RETENTION ,
+ NRF_POWER_RAMPOWER_S9RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S9RETENTION ,
+ NRF_POWER_RAMPOWER_S10RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S10RETENTION,
+ NRF_POWER_RAMPOWER_S11RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S11RETENTION,
+ NRF_POWER_RAMPOWER_S12RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S12RETENTION,
+ NRF_POWER_RAMPOWER_S13RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S13RETENTION,
+ NRF_POWER_RAMPOWER_S14RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S14RETENTION,
+ NRF_POWER_RAMPOWER_S15RETENTION_MASK = 1UL << NRF_POWER_RAMPOWER_S15RETENTION,
+}nrf_power_rampower_mask_t;
+#if defined ( __CC_ARM )
+#pragma pop
+#endif
+#endif /* NRF_POWER_HAS_RAMPOWER_REGS */
+
+
+/**
+ * @brief Get reset reason mask
+ *
+ * Function returns the reset reason.
+ * Unless cleared, the RESETREAS register is cumulative.
+ * A field is cleared by writing '1' to it (see @ref nrf_power_resetreas_clear).
+ * If none of the reset sources are flagged,
+ * this indicates that the chip was reset from the on-chip reset generator,
+ * which indicates a power-on-reset or a brown out reset.
+ *
+ * @return The mask of reset reasons constructed with @ref nrf_power_resetreas_mask_t.
+ */
+__STATIC_INLINE uint32_t nrf_power_resetreas_get(void);
+
+/**
+ * @brief Clear selected reset reason field
+ *
+ * Function clears selected reset reason fields.
+ *
+ * @param[in] mask The mask constructed from @ref nrf_power_resetreas_mask_t enumerator values.
+ * @sa nrf_power_resetreas_get
+ */
+__STATIC_INLINE void nrf_power_resetreas_clear(uint32_t mask);
+
+#if NRF_POWER_HAS_RAMSTATUS
+/**
+ * @brief Get RAMSTATUS register
+ *
+ * Returns the masks of RAM blocks that are powered ON.
+ *
+ * @return Value with bits sets according to masks in @ref nrf_power_ramblock_mask_t.
+ */
+__STATIC_INLINE uint32_t nrf_power_ramstatus_get(void);
+#endif // NRF_POWER_HAS_RAMSTATUS
+
+/**
+ * @brief Go to system OFF
+ *
+ * This function puts the CPU into system off mode.
+ * The only way to wake up the CPU is by reset.
+ *
+ * @note This function never returns.
+ */
+__STATIC_INLINE void nrf_power_system_off(void);
+
+/**
+ * @brief Set power failure comparator configuration
+ *
+ * Sets power failure comparator threshold and enable/disable flag.
+ *
+ * @param enabled Set to true if power failure comparator should be enabled.
+ * @param thr Set the voltage threshold value.
+ *
+ * @note
+ * If VDDH settings is present in the device, this function would
+ * clear it settings (set to the lowest voltage).
+ * Use @ref nrf_power_pofcon_vddh_set function to set new value.
+ */
+__STATIC_INLINE void nrf_power_pofcon_set(bool enabled, nrf_power_pof_thr_t thr);
+
+/**
+ * @brief Get power failure comparator configuration
+ *
+ * Get power failure comparator threshold and enable bit.
+ *
+ * @param[out] p_enabled Function would set this boolean variable to true
+ * if power failure comparator is enabled.
+ * The pointer can be NULL if we do not need this information.
+ * @return Threshold setting for power failure comparator
+ */
+__STATIC_INLINE nrf_power_pof_thr_t nrf_power_pofcon_get(bool * p_enabled);
+
+#if NRF_POWER_HAS_VDDH
+/**
+ * @brief Set VDDH power failure comparator threshold
+ *
+ * @param thr Threshold to be set
+ */
+__STATIC_INLINE void nrf_power_pofcon_vddh_set(nrf_power_pof_thrvddh_t thr);
+
+/**
+ * @brief Get VDDH power failure comparator threshold
+ *
+ * @return VDDH threshold currently configured
+ */
+__STATIC_INLINE nrf_power_pof_thrvddh_t nrf_power_pofcon_vddh_get(void);
+#endif
+
+/**
+ * @brief Set general purpose retention register
+ *
+ * @param val Value to be set in the register
+ */
+__STATIC_INLINE void nrf_power_gpregret_set(uint8_t val);
+
+/**
+ * @brief Get general purpose retention register
+ *
+ * @return The value from the register
+ */
+__STATIC_INLINE uint8_t nrf_power_gpregret_get(void);
+
+#if defined(POWER_GPREGRET2_GPREGRET_Msk) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Set general purpose retention register 2
+ *
+ * @param val Value to be set in the register
+ * @note This register is not available in nrf51 MCU family
+ */
+__STATIC_INLINE void nrf_power_gpregret2_set(uint8_t val);
+
+/**
+ * @brief Get general purpose retention register 2
+ *
+ * @return The value from the register
+ * @note This register is not available in all MCUs.
+ */
+__STATIC_INLINE uint8_t nrf_power_gpregret2_get(void);
+#endif
+
+/**
+ * @brief Enable or disable DCDC converter
+ *
+ * @param enable Set true to enable or false to disable DCDC converter.
+ *
+ * @note
+ * If the device consist of high voltage power input (VDDH) this setting
+ * would relate to the converter on low voltage side (1.3&nbsp;V output).
+ */
+__STATIC_INLINE void nrf_power_dcdcen_set(bool enable);
+
+/**
+ * @brief Get the state of DCDC converter
+ *
+ * @retval true Converter is enabled
+ * @retval false Converter is disabled
+ *
+ * @note
+ * If the device consist of high voltage power input (VDDH) this setting
+ * would relate to the converter on low voltage side (1.3&nbsp;V output).
+ */
+__STATIC_INLINE bool nrf_power_dcdcen_get(void);
+
+#if NRF_POWER_HAS_RAMPOWER_REGS
+/**
+ * @brief Turn ON sections in selected RAM block.
+ *
+ * This function turns ON sections in block and also block retention.
+ *
+ * @sa nrf_power_rampower_mask_t
+ * @sa nrf_power_rampower_mask_off
+ *
+ * @param block RAM block index.
+ * @param section_mask Mask of the sections created by merging
+ * @ref nrf_power_rampower_mask_t flags.
+ */
+__STATIC_INLINE void nrf_power_rampower_mask_on(uint8_t block, uint32_t section_mask);
+
+/**
+ * @brief Turn ON sections in selected RAM block.
+ *
+ * This function turns OFF sections in block and also block retention.
+ *
+ * @sa nrf_power_rampower_mask_t
+ * @sa nrf_power_rampower_mask_off
+ *
+ * @param block RAM block index.
+ * @param section_mask Mask of the sections created by merging
+ * @ref nrf_power_rampower_mask_t flags.
+ */
+__STATIC_INLINE void nrf_power_rampower_mask_off(uint8_t block, uint32_t section_mask);
+
+/**
+ * @brief Get the mask of ON and retention sections in selected RAM block.
+ *
+ * @param block RAM block index.
+ * @return Mask of sections state composed from @ref nrf_power_rampower_mask_t flags.
+ */
+__STATIC_INLINE uint32_t nrf_power_rampower_mask_get(uint8_t block);
+#endif /* NRF_POWER_HAS_RAMPOWER_REGS */
+
+#if NRF_POWER_HAS_VDDH
+/**
+ * @brief Enable of disable DCDC converter on VDDH
+ *
+ * @param enable Set true to enable or false to disable DCDC converter.
+ */
+__STATIC_INLINE void nrf_power_dcdcen_vddh_set(bool enable);
+
+/**
+ * @brief Get the state of DCDC converter on VDDH
+ *
+ * @retval true Converter is enabled
+ * @retval false Converter is disabled
+ */
+__STATIC_INLINE bool nrf_power_dcdcen_vddh_get(void);
+
+/**
+ * @brief Get main supply status
+ *
+ * @return Current main supply status
+ */
+__STATIC_INLINE nrf_power_mainregstatus_t nrf_power_mainregstatus_get(void);
+#endif /* NRF_POWER_HAS_VDDH */
+
+#if NRF_POWER_HAS_USBREG
+/**
+ *
+ * @return Get the whole USBREGSTATUS register
+ *
+ * @return The USBREGSTATUS register value.
+ * Use @ref nrf_power_usbregstatus_mask_t values for bit masking.
+ *
+ * @sa nrf_power_usbregstatus_vbusdet_get
+ * @sa nrf_power_usbregstatus_outrdy_get
+ */
+__STATIC_INLINE uint32_t nrf_power_usbregstatus_get(void);
+
+/**
+ * @brief VBUS input detection status
+ *
+ * USBDETECTED and USBREMOVED events are derived from this information
+ *
+ * @retval false VBUS voltage below valid threshold
+ * @retval true VBUS voltage above valid threshold
+ *
+ * @sa nrf_power_usbregstatus_get
+ */
+__STATIC_INLINE bool nrf_power_usbregstatus_vbusdet_get(void);
+
+/**
+ * @brief USB supply output settling time elapsed
+ *
+ * @retval false USBREG output settling time not elapsed
+ * @retval true USBREG output settling time elapsed
+ * (same information as USBPWRRDY event)
+ *
+ * @sa nrf_power_usbregstatus_get
+ */
+__STATIC_INLINE bool nrf_power_usbregstatus_outrdy_get(void);
+#endif /* NRF_POWER_HAS_USBREG */
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE uint32_t nrf_power_resetreas_get(void)
+{
+ return NRF_POWER->RESETREAS;
+}
+
+__STATIC_INLINE void nrf_power_resetreas_clear(uint32_t mask)
+{
+ NRF_POWER->RESETREAS = mask;
+}
+
+#if NRF_POWER_HAS_RAMSTATUS
+__STATIC_INLINE uint32_t nrf_power_ramstatus_get(void)
+{
+ return NRF_POWER->RAMSTATUS;
+}
+#endif // NRF_POWER_HAS_RAMSTATUS
+
+__STATIC_INLINE void nrf_power_system_off(void)
+{
+ NRF_POWER->SYSTEMOFF = POWER_SYSTEMOFF_SYSTEMOFF_Enter;
+ __DSB();
+
+ /* Solution for simulated System OFF in debug mode */
+ while (true)
+ {
+ __WFE();
+ }
+}
+
+__STATIC_INLINE void nrf_power_pofcon_set(bool enabled, nrf_power_pof_thr_t thr)
+{
+ NRFX_ASSERT(thr == (thr & (POWER_POFCON_THRESHOLD_Msk >> POWER_POFCON_THRESHOLD_Pos)));
+#if NRF_POWER_HAS_VDDH
+ uint32_t pofcon = NRF_POWER->POFCON;
+ pofcon &= ~(POWER_POFCON_THRESHOLD_Msk | POWER_POFCON_POF_Msk);
+ pofcon |=
+#else /* NRF_POWER_HAS_VDDH */
+ NRF_POWER->POFCON =
+#endif
+ (((uint32_t)thr) << POWER_POFCON_THRESHOLD_Pos) |
+ (enabled ?
+ (POWER_POFCON_POF_Enabled << POWER_POFCON_POF_Pos)
+ :
+ (POWER_POFCON_POF_Disabled << POWER_POFCON_POF_Pos));
+#if NRF_POWER_HAS_VDDH
+ NRF_POWER->POFCON = pofcon;
+#endif
+}
+
+__STATIC_INLINE nrf_power_pof_thr_t nrf_power_pofcon_get(bool * p_enabled)
+{
+ uint32_t pofcon = NRF_POWER->POFCON;
+ if (NULL != p_enabled)
+ {
+ (*p_enabled) = ((pofcon & POWER_POFCON_POF_Msk) >> POWER_POFCON_POF_Pos)
+ == POWER_POFCON_POF_Enabled;
+ }
+ return (nrf_power_pof_thr_t)((pofcon & POWER_POFCON_THRESHOLD_Msk) >>
+ POWER_POFCON_THRESHOLD_Pos);
+}
+
+#if NRF_POWER_HAS_VDDH
+__STATIC_INLINE void nrf_power_pofcon_vddh_set(nrf_power_pof_thrvddh_t thr)
+{
+ NRFX_ASSERT(thr == (thr & (POWER_POFCON_THRESHOLDVDDH_Msk >> POWER_POFCON_THRESHOLDVDDH_Pos)));
+ uint32_t pofcon = NRF_POWER->POFCON;
+ pofcon &= ~POWER_POFCON_THRESHOLDVDDH_Msk;
+ pofcon |= (((uint32_t)thr) << POWER_POFCON_THRESHOLDVDDH_Pos);
+ NRF_POWER->POFCON = pofcon;
+}
+
+__STATIC_INLINE nrf_power_pof_thrvddh_t nrf_power_pofcon_vddh_get(void)
+{
+ return (nrf_power_pof_thrvddh_t)((NRF_POWER->POFCON &
+ POWER_POFCON_THRESHOLDVDDH_Msk) >> POWER_POFCON_THRESHOLDVDDH_Pos);
+}
+#endif /* NRF_POWER_HAS_VDDH */
+
+__STATIC_INLINE void nrf_power_gpregret_set(uint8_t val)
+{
+ NRF_POWER->GPREGRET = val;
+}
+
+__STATIC_INLINE uint8_t nrf_power_gpregret_get(void)
+{
+ return NRF_POWER->GPREGRET;
+}
+
+#if defined(POWER_GPREGRET2_GPREGRET_Msk) || defined(__NRFX_DOXYGEN__)
+void nrf_power_gpregret2_set(uint8_t val)
+{
+ NRF_POWER->GPREGRET2 = val;
+}
+
+__STATIC_INLINE uint8_t nrf_power_gpregret2_get(void)
+{
+ return NRF_POWER->GPREGRET2;
+}
+#endif
+
+__STATIC_INLINE void nrf_power_dcdcen_set(bool enable)
+{
+#if NRF_POWER_HAS_VDDH
+ NRF_POWER->DCDCEN = (enable ?
+ POWER_DCDCEN_DCDCEN_Enabled : POWER_DCDCEN_DCDCEN_Disabled) <<
+ POWER_DCDCEN_DCDCEN_Pos;
+#else
+ NRF_POWER->DCDCEN = (enable ?
+ POWER_DCDCEN_DCDCEN_Enabled : POWER_DCDCEN_DCDCEN_Disabled) <<
+ POWER_DCDCEN_DCDCEN_Pos;
+#endif
+}
+
+__STATIC_INLINE bool nrf_power_dcdcen_get(void)
+{
+#if NRF_POWER_HAS_VDDH
+ return (NRF_POWER->DCDCEN & POWER_DCDCEN_DCDCEN_Msk)
+ ==
+ (POWER_DCDCEN_DCDCEN_Enabled << POWER_DCDCEN_DCDCEN_Pos);
+#else
+ return (NRF_POWER->DCDCEN & POWER_DCDCEN_DCDCEN_Msk)
+ ==
+ (POWER_DCDCEN_DCDCEN_Enabled << POWER_DCDCEN_DCDCEN_Pos);
+#endif
+}
+
+#if NRF_POWER_HAS_RAMPOWER_REGS
+__STATIC_INLINE void nrf_power_rampower_mask_on(uint8_t block, uint32_t section_mask)
+{
+ NRFX_ASSERT(block < ARRAY_SIZE(NRF_POWER->RAM));
+ NRF_POWER->RAM[block].POWERSET = section_mask;
+}
+
+__STATIC_INLINE void nrf_power_rampower_mask_off(uint8_t block, uint32_t section_mask)
+{
+ NRFX_ASSERT(block < ARRAY_SIZE(NRF_POWER->RAM));
+ NRF_POWER->RAM[block].POWERCLR = section_mask;
+}
+
+__STATIC_INLINE uint32_t nrf_power_rampower_mask_get(uint8_t block)
+{
+ NRFX_ASSERT(block < ARRAY_SIZE(NRF_POWER->RAM));
+ return NRF_POWER->RAM[block].POWER;
+}
+#endif /* NRF_POWER_HAS_RAMPOWER_REGS */
+
+#if NRF_POWER_HAS_VDDH
+__STATIC_INLINE void nrf_power_dcdcen_vddh_set(bool enable)
+{
+ NRF_POWER->DCDCEN0 = (enable ?
+ POWER_DCDCEN0_DCDCEN_Enabled : POWER_DCDCEN0_DCDCEN_Disabled) <<
+ POWER_DCDCEN0_DCDCEN_Pos;
+}
+
+bool nrf_power_dcdcen_vddh_get(void)
+{
+ return (NRF_POWER->DCDCEN0 & POWER_DCDCEN0_DCDCEN_Msk)
+ ==
+ (POWER_DCDCEN0_DCDCEN_Enabled << POWER_DCDCEN0_DCDCEN_Pos);
+}
+
+nrf_power_mainregstatus_t nrf_power_mainregstatus_get(void)
+{
+ return (nrf_power_mainregstatus_t)(((NRF_POWER->MAINREGSTATUS) &
+ POWER_MAINREGSTATUS_MAINREGSTATUS_Msk) >>
+ POWER_MAINREGSTATUS_MAINREGSTATUS_Pos);
+}
+#endif /* NRF_POWER_HAS_VDDH */
+
+#if NRF_POWER_HAS_USBREG
+__STATIC_INLINE uint32_t nrf_power_usbregstatus_get(void)
+{
+ return NRF_POWER->USBREGSTATUS;
+}
+
+__STATIC_INLINE bool nrf_power_usbregstatus_vbusdet_get(void)
+{
+ return (nrf_power_usbregstatus_get() &
+ NRF_POWER_USBREGSTATUS_VBUSDETECT_MASK) != 0;
+}
+
+__STATIC_INLINE bool nrf_power_usbregstatus_outrdy_get(void)
+{
+ return (nrf_power_usbregstatus_get() &
+ NRF_POWER_USBREGSTATUS_OUTPUTRDY_MASK) != 0;
+}
+#endif /* NRF_POWER_HAS_USBREG */
+
+#endif /* SUPPRESS_INLINE_IMPLEMENTATION */
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NRF_POWER_H__ */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_ppi.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_ppi.h
new file mode 100644
index 0000000..cdface5
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_ppi.h
@@ -0,0 +1,481 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_PPI_H__
+#define NRF_PPI_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_ppi_hal PPI HAL
+ * @{
+ * @ingroup nrf_ppi
+ * @brief Hardware access layer for managing the Programmable Peripheral Interconnect (PPI)
+ * channels.
+ */
+
+#define NRF_PPI_TASK_SET (1UL)
+
+/**
+ * @enum nrf_ppi_channel_t
+ * @brief PPI channels.
+ */
+typedef enum
+{
+ NRF_PPI_CHANNEL0 = PPI_CHEN_CH0_Pos, /**< Channel 0. */
+ NRF_PPI_CHANNEL1 = PPI_CHEN_CH1_Pos, /**< Channel 1. */
+ NRF_PPI_CHANNEL2 = PPI_CHEN_CH2_Pos, /**< Channel 2. */
+ NRF_PPI_CHANNEL3 = PPI_CHEN_CH3_Pos, /**< Channel 3. */
+ NRF_PPI_CHANNEL4 = PPI_CHEN_CH4_Pos, /**< Channel 4. */
+ NRF_PPI_CHANNEL5 = PPI_CHEN_CH5_Pos, /**< Channel 5. */
+ NRF_PPI_CHANNEL6 = PPI_CHEN_CH6_Pos, /**< Channel 6. */
+ NRF_PPI_CHANNEL7 = PPI_CHEN_CH7_Pos, /**< Channel 7. */
+ NRF_PPI_CHANNEL8 = PPI_CHEN_CH8_Pos, /**< Channel 8. */
+ NRF_PPI_CHANNEL9 = PPI_CHEN_CH9_Pos, /**< Channel 9. */
+ NRF_PPI_CHANNEL10 = PPI_CHEN_CH10_Pos, /**< Channel 10. */
+ NRF_PPI_CHANNEL11 = PPI_CHEN_CH11_Pos, /**< Channel 11. */
+ NRF_PPI_CHANNEL12 = PPI_CHEN_CH12_Pos, /**< Channel 12. */
+ NRF_PPI_CHANNEL13 = PPI_CHEN_CH13_Pos, /**< Channel 13. */
+ NRF_PPI_CHANNEL14 = PPI_CHEN_CH14_Pos, /**< Channel 14. */
+ NRF_PPI_CHANNEL15 = PPI_CHEN_CH15_Pos, /**< Channel 15. */
+#if (PPI_CH_NUM > 16) || defined(__NRFX_DOXYGEN__)
+ NRF_PPI_CHANNEL16 = PPI_CHEN_CH16_Pos, /**< Channel 16. */
+ NRF_PPI_CHANNEL17 = PPI_CHEN_CH17_Pos, /**< Channel 17. */
+ NRF_PPI_CHANNEL18 = PPI_CHEN_CH18_Pos, /**< Channel 18. */
+ NRF_PPI_CHANNEL19 = PPI_CHEN_CH19_Pos, /**< Channel 19. */
+#endif
+ NRF_PPI_CHANNEL20 = PPI_CHEN_CH20_Pos, /**< Channel 20. */
+ NRF_PPI_CHANNEL21 = PPI_CHEN_CH21_Pos, /**< Channel 21. */
+ NRF_PPI_CHANNEL22 = PPI_CHEN_CH22_Pos, /**< Channel 22. */
+ NRF_PPI_CHANNEL23 = PPI_CHEN_CH23_Pos, /**< Channel 23. */
+ NRF_PPI_CHANNEL24 = PPI_CHEN_CH24_Pos, /**< Channel 24. */
+ NRF_PPI_CHANNEL25 = PPI_CHEN_CH25_Pos, /**< Channel 25. */
+ NRF_PPI_CHANNEL26 = PPI_CHEN_CH26_Pos, /**< Channel 26. */
+ NRF_PPI_CHANNEL27 = PPI_CHEN_CH27_Pos, /**< Channel 27. */
+ NRF_PPI_CHANNEL28 = PPI_CHEN_CH28_Pos, /**< Channel 28. */
+ NRF_PPI_CHANNEL29 = PPI_CHEN_CH29_Pos, /**< Channel 29. */
+ NRF_PPI_CHANNEL30 = PPI_CHEN_CH30_Pos, /**< Channel 30. */
+ NRF_PPI_CHANNEL31 = PPI_CHEN_CH31_Pos /**< Channel 31. */
+} nrf_ppi_channel_t;
+
+/**
+ * @enum nrf_ppi_channel_group_t
+ * @brief PPI channel groups.
+ */
+typedef enum
+{
+ NRF_PPI_CHANNEL_GROUP0 = 0, /**< Channel group 0. */
+ NRF_PPI_CHANNEL_GROUP1 = 1, /**< Channel group 1. */
+ NRF_PPI_CHANNEL_GROUP2 = 2, /**< Channel group 2. */
+ NRF_PPI_CHANNEL_GROUP3 = 3, /**< Channel group 3. */
+#if (PPI_GROUP_NUM > 4) || defined(__NRFX_DOXYGEN__)
+ NRF_PPI_CHANNEL_GROUP4 = 4, /**< Channel group 4. */
+ NRF_PPI_CHANNEL_GROUP5 = 5 /**< Channel group 5. */
+#endif
+} nrf_ppi_channel_group_t;
+
+/**
+ * @enum nrf_ppi_channel_include_t
+ * @brief Definition of which PPI channels belong to a group.
+ */
+typedef enum
+{
+ NRF_PPI_CHANNEL_EXCLUDE = PPI_CHG_CH0_Excluded, /**< Channel excluded from a group. */
+ NRF_PPI_CHANNEL_INCLUDE = PPI_CHG_CH0_Included /**< Channel included in a group. */
+} nrf_ppi_channel_include_t;
+
+/**
+ * @enum nrf_ppi_channel_enable_t
+ * @brief Definition if a PPI channel is enabled.
+ */
+typedef enum
+{
+ NRF_PPI_CHANNEL_DISABLED = PPI_CHEN_CH0_Disabled, /**< Channel disabled. */
+ NRF_PPI_CHANNEL_ENABLED = PPI_CHEN_CH0_Enabled /**< Channel enabled. */
+} nrf_ppi_channel_enable_t;
+
+/**
+ * @enum nrf_ppi_task_t
+ * @brief PPI tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30 -esym(628,__INTADDR__)*/
+ NRF_PPI_TASK_CHG0_EN = offsetof(NRF_PPI_Type, TASKS_CHG[0].EN), /**< Task for enabling channel group 0 */
+ NRF_PPI_TASK_CHG0_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[0].DIS), /**< Task for disabling channel group 0 */
+ NRF_PPI_TASK_CHG1_EN = offsetof(NRF_PPI_Type, TASKS_CHG[1].EN), /**< Task for enabling channel group 1 */
+ NRF_PPI_TASK_CHG1_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[1].DIS), /**< Task for disabling channel group 1 */
+ NRF_PPI_TASK_CHG2_EN = offsetof(NRF_PPI_Type, TASKS_CHG[2].EN), /**< Task for enabling channel group 2 */
+ NRF_PPI_TASK_CHG2_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[2].DIS), /**< Task for disabling channel group 2 */
+ NRF_PPI_TASK_CHG3_EN = offsetof(NRF_PPI_Type, TASKS_CHG[3].EN), /**< Task for enabling channel group 3 */
+ NRF_PPI_TASK_CHG3_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[3].DIS), /**< Task for disabling channel group 3 */
+#if (PPI_GROUP_NUM > 4) || defined(__NRFX_DOXYGEN__)
+ NRF_PPI_TASK_CHG4_EN = offsetof(NRF_PPI_Type, TASKS_CHG[4].EN), /**< Task for enabling channel group 4 */
+ NRF_PPI_TASK_CHG4_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[4].DIS), /**< Task for disabling channel group 4 */
+ NRF_PPI_TASK_CHG5_EN = offsetof(NRF_PPI_Type, TASKS_CHG[5].EN), /**< Task for enabling channel group 5 */
+ NRF_PPI_TASK_CHG5_DIS = offsetof(NRF_PPI_Type, TASKS_CHG[5].DIS) /**< Task for disabling channel group 5 */
+#endif
+ /*lint -restore*/
+} nrf_ppi_task_t;
+
+/**
+ * @brief Function for enabling a given PPI channel.
+ *
+ * @details This function enables only one channel.
+ *
+ * @param[in] channel Channel to enable.
+ *
+ * */
+__STATIC_INLINE void nrf_ppi_channel_enable(nrf_ppi_channel_t channel);
+
+/**
+ * @brief Function for disabling a given PPI channel.
+ *
+ * @details This function disables only one channel.
+ *
+ * @param[in] channel Channel to disable.
+ */
+__STATIC_INLINE void nrf_ppi_channel_disable(nrf_ppi_channel_t channel);
+
+/**
+ * @brief Function for checking if a given PPI channel is enabled.
+ *
+ * @details This function checks only one channel.
+ *
+ * @param[in] channel Channel to check.
+ *
+ * @retval NRF_PPI_CHANNEL_ENABLED If the channel is enabled.
+ * @retval NRF_PPI_CHANNEL_DISABLED If the channel is not enabled.
+ *
+ */
+__STATIC_INLINE nrf_ppi_channel_enable_t nrf_ppi_channel_enable_get(nrf_ppi_channel_t channel);
+
+/**
+ * @brief Function for disabling all PPI channels.
+ */
+__STATIC_INLINE void nrf_ppi_channel_disable_all(void);
+
+/**
+ * @brief Function for disabling multiple PPI channels.
+ *
+ * @param[in] mask Channel mask.
+ */
+__STATIC_INLINE void nrf_ppi_channels_disable(uint32_t mask);
+
+/**
+ * @brief Function for setting up event and task endpoints for a given PPI channel.
+ *
+ * @param[in] eep Event register address.
+ *
+ * @param[in] tep Task register address.
+ *
+ * @param[in] channel Channel to which the given endpoints are assigned.
+ */
+__STATIC_INLINE void nrf_ppi_channel_endpoint_setup(nrf_ppi_channel_t channel,
+ uint32_t eep,
+ uint32_t tep);
+
+#if defined(PPI_FEATURE_FORKS_PRESENT) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Function for setting up task endpoint for a given PPI fork.
+ *
+ * @param[in] fork_tep Task register address.
+ *
+ * @param[in] channel Channel to which the given fork endpoint is assigned.
+ */
+__STATIC_INLINE void nrf_ppi_fork_endpoint_setup(nrf_ppi_channel_t channel,
+ uint32_t fork_tep);
+
+/**
+ * @brief Function for setting up event and task endpoints for a given PPI channel and fork.
+ *
+ * @param[in] eep Event register address.
+ *
+ * @param[in] tep Task register address.
+ *
+ * @param[in] fork_tep Fork task register address (register value).
+ *
+ * @param[in] channel Channel to which the given endpoints are assigned.
+ */
+__STATIC_INLINE void nrf_ppi_channel_and_fork_endpoint_setup(nrf_ppi_channel_t channel,
+ uint32_t eep,
+ uint32_t tep,
+ uint32_t fork_tep);
+#endif
+
+/**
+ * @brief Function for including a PPI channel in a channel group.
+ *
+ * @details This function adds only one channel to the group.
+ *
+ * @param[in] channel Channel to be included in the group.
+ *
+ * @param[in] channel_group Channel group.
+ *
+ */
+__STATIC_INLINE void nrf_ppi_channel_include_in_group(nrf_ppi_channel_t channel,
+ nrf_ppi_channel_group_t channel_group);
+
+/**
+ * @brief Function for including multiple PPI channels in a channel group.
+ *
+ * @details This function adds all specified channels to the group.
+ *
+ * @param[in] channel_mask Channels to be included in the group.
+ *
+ * @param[in] channel_group Channel group.
+ *
+ */
+__STATIC_INLINE void nrf_ppi_channels_include_in_group(uint32_t channel_mask,
+ nrf_ppi_channel_group_t channel_group);
+
+/**
+ * @brief Function for removing a PPI channel from a channel group.
+ *
+ * @details This function removes only one channel from the group.
+ *
+ * @param[in] channel Channel to be removed from the group.
+ *
+ * @param[in] channel_group Channel group.
+ */
+__STATIC_INLINE void nrf_ppi_channel_remove_from_group(nrf_ppi_channel_t channel,
+ nrf_ppi_channel_group_t channel_group);
+
+/**
+ * @brief Function for removing multiple PPI channels from a channel group.
+ *
+ * @details This function removes all specified channels from the group.
+ *
+ * @param[in] channel_mask Channels to be removed from the group.
+ *
+ * @param[in] channel_group Channel group.
+ */
+__STATIC_INLINE void nrf_ppi_channels_remove_from_group(uint32_t channel_mask,
+ nrf_ppi_channel_group_t channel_group);
+
+/**
+ * @brief Function for removing all PPI channels from a channel group.
+ *
+ * @param[in] group Channel group.
+ *
+ */
+__STATIC_INLINE void nrf_ppi_channel_group_clear(nrf_ppi_channel_group_t group);
+
+/**
+ * @brief Function for enabling a channel group.
+ *
+ * @param[in] group Channel group.
+ *
+ */
+__STATIC_INLINE void nrf_ppi_group_enable(nrf_ppi_channel_group_t group);
+
+/**
+ * @brief Function for disabling a channel group.
+ *
+ * @param[in] group Channel group.
+ *
+ */
+__STATIC_INLINE void nrf_ppi_group_disable(nrf_ppi_channel_group_t group);
+
+/**
+ * @brief Function for setting a PPI task.
+ *
+ * @param[in] ppi_task PPI task to set.
+ */
+__STATIC_INLINE void nrf_ppi_task_trigger(nrf_ppi_task_t ppi_task);
+
+/**
+ * @brief Function for returning the address of a specific PPI task register.
+ *
+ * @param[in] ppi_task PPI task.
+ */
+__STATIC_INLINE uint32_t * nrf_ppi_task_address_get(nrf_ppi_task_t ppi_task);
+
+/**
+ * @brief Function for returning the PPI enable task address of a specific group.
+ *
+ * @param[in] group PPI group.
+ */
+__STATIC_INLINE uint32_t * nrf_ppi_task_group_enable_address_get(nrf_ppi_channel_group_t group);
+
+/**
+ * @brief Function for returning the PPI disable task address of a specific group.
+ *
+ * @param[in] group PPI group.
+ */
+__STATIC_INLINE uint32_t * nrf_ppi_task_group_disable_address_get(nrf_ppi_channel_group_t group);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_ppi_channel_enable(nrf_ppi_channel_t channel)
+{
+ NRF_PPI->CHENSET = PPI_CHENSET_CH0_Set << ((uint32_t) channel);
+}
+
+__STATIC_INLINE void nrf_ppi_channel_disable(nrf_ppi_channel_t channel)
+{
+ NRF_PPI->CHENCLR = PPI_CHENCLR_CH0_Clear << ((uint32_t) channel);
+}
+
+__STATIC_INLINE nrf_ppi_channel_enable_t nrf_ppi_channel_enable_get(nrf_ppi_channel_t channel)
+{
+ if (NRF_PPI->CHEN & (PPI_CHEN_CH0_Msk << ((uint32_t) channel)))
+ {
+ return NRF_PPI_CHANNEL_ENABLED;
+ }
+ else
+ {
+ return NRF_PPI_CHANNEL_DISABLED;
+ }
+}
+
+__STATIC_INLINE void nrf_ppi_channel_disable_all(void)
+{
+ NRF_PPI->CHENCLR = ((uint32_t)0xFFFFFFFFuL);
+}
+
+__STATIC_INLINE void nrf_ppi_channels_disable(uint32_t mask)
+{
+ NRF_PPI->CHENCLR = mask;
+}
+
+__STATIC_INLINE void nrf_ppi_channel_endpoint_setup(nrf_ppi_channel_t channel,
+ uint32_t eep,
+ uint32_t tep)
+{
+ NRF_PPI->CH[(uint32_t) channel].EEP = eep;
+ NRF_PPI->CH[(uint32_t) channel].TEP = tep;
+}
+
+#if defined(PPI_FEATURE_FORKS_PRESENT)
+
+__STATIC_INLINE void nrf_ppi_fork_endpoint_setup(nrf_ppi_channel_t channel,
+ uint32_t fork_tep)
+{
+ NRF_PPI->FORK[(uint32_t) channel].TEP = fork_tep;
+}
+
+__STATIC_INLINE void nrf_ppi_channel_and_fork_endpoint_setup(nrf_ppi_channel_t channel,
+ uint32_t eep,
+ uint32_t tep,
+ uint32_t fork_tep)
+{
+ nrf_ppi_channel_endpoint_setup(channel, eep, tep);
+ nrf_ppi_fork_endpoint_setup(channel, fork_tep);
+}
+#endif
+
+__STATIC_INLINE void nrf_ppi_channel_include_in_group(nrf_ppi_channel_t channel,
+ nrf_ppi_channel_group_t channel_group)
+{
+ NRF_PPI->CHG[(uint32_t) channel_group] =
+ NRF_PPI->CHG[(uint32_t) channel_group] | (PPI_CHG_CH0_Included << ((uint32_t) channel));
+}
+
+__STATIC_INLINE void nrf_ppi_channels_include_in_group(uint32_t channel_mask,
+ nrf_ppi_channel_group_t channel_group)
+{
+ NRF_PPI->CHG[(uint32_t) channel_group] =
+ NRF_PPI->CHG[(uint32_t) channel_group] | (channel_mask);
+}
+
+__STATIC_INLINE void nrf_ppi_channel_remove_from_group(nrf_ppi_channel_t channel,
+ nrf_ppi_channel_group_t channel_group)
+{
+ NRF_PPI->CHG[(uint32_t) channel_group] =
+ NRF_PPI->CHG[(uint32_t) channel_group] & ~(PPI_CHG_CH0_Included << ((uint32_t) channel));
+}
+
+__STATIC_INLINE void nrf_ppi_channels_remove_from_group(uint32_t channel_mask,
+ nrf_ppi_channel_group_t channel_group)
+{
+ NRF_PPI->CHG[(uint32_t) channel_group] =
+ NRF_PPI->CHG[(uint32_t) channel_group] & ~(channel_mask);
+}
+
+__STATIC_INLINE void nrf_ppi_channel_group_clear(nrf_ppi_channel_group_t group)
+{
+ NRF_PPI->CHG[(uint32_t) group] = 0;
+}
+
+__STATIC_INLINE void nrf_ppi_group_enable(nrf_ppi_channel_group_t group)
+{
+ NRF_PPI->TASKS_CHG[(uint32_t) group].EN = NRF_PPI_TASK_SET;
+}
+
+__STATIC_INLINE void nrf_ppi_group_disable(nrf_ppi_channel_group_t group)
+{
+ NRF_PPI->TASKS_CHG[(uint32_t) group].DIS = NRF_PPI_TASK_SET;
+}
+
+__STATIC_INLINE void nrf_ppi_task_trigger(nrf_ppi_task_t ppi_task)
+{
+ *((volatile uint32_t *) ((uint8_t *) NRF_PPI_BASE + (uint32_t) ppi_task)) = NRF_PPI_TASK_SET;
+}
+
+__STATIC_INLINE uint32_t * nrf_ppi_task_address_get(nrf_ppi_task_t ppi_task)
+{
+ return (uint32_t *) ((uint8_t *) NRF_PPI_BASE + (uint32_t) ppi_task);
+}
+
+__STATIC_INLINE uint32_t * nrf_ppi_task_group_enable_address_get(nrf_ppi_channel_group_t group)
+{
+ return (uint32_t *) &NRF_PPI->TASKS_CHG[(uint32_t) group].EN;
+}
+
+__STATIC_INLINE uint32_t * nrf_ppi_task_group_disable_address_get(nrf_ppi_channel_group_t group)
+{
+ return (uint32_t *) &NRF_PPI->TASKS_CHG[(uint32_t) group].DIS;
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_PPI_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_pwm.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_pwm.h
new file mode 100644
index 0000000..6c57612
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_pwm.h
@@ -0,0 +1,694 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_PWM_H__
+#define NRF_PWM_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_pwm_hal PWM HAL
+ * @{
+ * @ingroup nrf_pwm
+ * @brief Hardware access layer for managing the Pulse Width Modulation (PWM) peripheral.
+ */
+
+/**
+ * @brief This value can be provided as a parameter for the @ref nrf_pwm_pins_set
+ * function call to specify that a given output channel shall not be
+ * connected to a physical pin.
+ */
+#define NRF_PWM_PIN_NOT_CONNECTED 0xFFFFFFFF
+
+/**
+ * @brief Number of channels in each Pointer to the peripheral registers structure.
+ */
+#define NRF_PWM_CHANNEL_COUNT 4
+
+
+/**
+ * @brief PWM tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_PWM_TASK_STOP = offsetof(NRF_PWM_Type, TASKS_STOP), ///< Stops PWM pulse generation on all channels at the end of the current PWM period, and stops the sequence playback.
+ NRF_PWM_TASK_SEQSTART0 = offsetof(NRF_PWM_Type, TASKS_SEQSTART[0]), ///< Starts playback of sequence 0.
+ NRF_PWM_TASK_SEQSTART1 = offsetof(NRF_PWM_Type, TASKS_SEQSTART[1]), ///< Starts playback of sequence 1.
+ NRF_PWM_TASK_NEXTSTEP = offsetof(NRF_PWM_Type, TASKS_NEXTSTEP) ///< Steps by one value in the current sequence if the decoder is set to @ref NRF_PWM_STEP_TRIGGERED mode.
+ /*lint -restore*/
+} nrf_pwm_task_t;
+
+/**
+ * @brief PWM events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_PWM_EVENT_STOPPED = offsetof(NRF_PWM_Type, EVENTS_STOPPED), ///< Response to STOP task, emitted when PWM pulses are no longer generated.
+ NRF_PWM_EVENT_SEQSTARTED0 = offsetof(NRF_PWM_Type, EVENTS_SEQSTARTED[0]), ///< First PWM period started on sequence 0.
+ NRF_PWM_EVENT_SEQSTARTED1 = offsetof(NRF_PWM_Type, EVENTS_SEQSTARTED[1]), ///< First PWM period started on sequence 1.
+ NRF_PWM_EVENT_SEQEND0 = offsetof(NRF_PWM_Type, EVENTS_SEQEND[0]), ///< Emitted at the end of every sequence 0 when its last value has been read from RAM.
+ NRF_PWM_EVENT_SEQEND1 = offsetof(NRF_PWM_Type, EVENTS_SEQEND[1]), ///< Emitted at the end of every sequence 1 when its last value has been read from RAM.
+ NRF_PWM_EVENT_PWMPERIODEND = offsetof(NRF_PWM_Type, EVENTS_PWMPERIODEND), ///< Emitted at the end of each PWM period.
+ NRF_PWM_EVENT_LOOPSDONE = offsetof(NRF_PWM_Type, EVENTS_LOOPSDONE) ///< Concatenated sequences have been played the requested number of times.
+ /*lint -restore*/
+} nrf_pwm_event_t;
+
+/**
+ * @brief PWM interrupts.
+ */
+typedef enum
+{
+ NRF_PWM_INT_STOPPED_MASK = PWM_INTENSET_STOPPED_Msk, ///< Interrupt on STOPPED event.
+ NRF_PWM_INT_SEQSTARTED0_MASK = PWM_INTENSET_SEQSTARTED0_Msk, ///< Interrupt on SEQSTARTED[0] event.
+ NRF_PWM_INT_SEQSTARTED1_MASK = PWM_INTENSET_SEQSTARTED1_Msk, ///< Interrupt on SEQSTARTED[1] event.
+ NRF_PWM_INT_SEQEND0_MASK = PWM_INTENSET_SEQEND0_Msk, ///< Interrupt on SEQEND[0] event.
+ NRF_PWM_INT_SEQEND1_MASK = PWM_INTENSET_SEQEND1_Msk, ///< Interrupt on SEQEND[1] event.
+ NRF_PWM_INT_PWMPERIODEND_MASK = PWM_INTENSET_PWMPERIODEND_Msk, ///< Interrupt on PWMPERIODEND event.
+ NRF_PWM_INT_LOOPSDONE_MASK = PWM_INTENSET_LOOPSDONE_Msk ///< Interrupt on LOOPSDONE event.
+} nrf_pwm_int_mask_t;
+
+/**
+ * @brief PWM shortcuts.
+ */
+typedef enum
+{
+ NRF_PWM_SHORT_SEQEND0_STOP_MASK = PWM_SHORTS_SEQEND0_STOP_Msk, ///< Shortcut between SEQEND[0] event and STOP task.
+ NRF_PWM_SHORT_SEQEND1_STOP_MASK = PWM_SHORTS_SEQEND1_STOP_Msk, ///< Shortcut between SEQEND[1] event and STOP task.
+ NRF_PWM_SHORT_LOOPSDONE_SEQSTART0_MASK = PWM_SHORTS_LOOPSDONE_SEQSTART0_Msk, ///< Shortcut between LOOPSDONE event and SEQSTART[0] task.
+ NRF_PWM_SHORT_LOOPSDONE_SEQSTART1_MASK = PWM_SHORTS_LOOPSDONE_SEQSTART1_Msk, ///< Shortcut between LOOPSDONE event and SEQSTART[1] task.
+ NRF_PWM_SHORT_LOOPSDONE_STOP_MASK = PWM_SHORTS_LOOPSDONE_STOP_Msk ///< Shortcut between LOOPSDONE event and STOP task.
+} nrf_pwm_short_mask_t;
+
+/**
+ * @brief PWM modes of operation.
+ */
+typedef enum
+{
+ NRF_PWM_MODE_UP = PWM_MODE_UPDOWN_Up, ///< Up counter (edge-aligned PWM duty cycle).
+ NRF_PWM_MODE_UP_AND_DOWN = PWM_MODE_UPDOWN_UpAndDown, ///< Up and down counter (center-aligned PWM duty cycle).
+} nrf_pwm_mode_t;
+
+/**
+ * @brief PWM base clock frequencies.
+ */
+typedef enum
+{
+ NRF_PWM_CLK_16MHz = PWM_PRESCALER_PRESCALER_DIV_1, ///< 16 MHz / 1 = 16 MHz.
+ NRF_PWM_CLK_8MHz = PWM_PRESCALER_PRESCALER_DIV_2, ///< 16 MHz / 2 = 8 MHz.
+ NRF_PWM_CLK_4MHz = PWM_PRESCALER_PRESCALER_DIV_4, ///< 16 MHz / 4 = 4 MHz.
+ NRF_PWM_CLK_2MHz = PWM_PRESCALER_PRESCALER_DIV_8, ///< 16 MHz / 8 = 2 MHz.
+ NRF_PWM_CLK_1MHz = PWM_PRESCALER_PRESCALER_DIV_16, ///< 16 MHz / 16 = 1 MHz.
+ NRF_PWM_CLK_500kHz = PWM_PRESCALER_PRESCALER_DIV_32, ///< 16 MHz / 32 = 500 kHz.
+ NRF_PWM_CLK_250kHz = PWM_PRESCALER_PRESCALER_DIV_64, ///< 16 MHz / 64 = 250 kHz.
+ NRF_PWM_CLK_125kHz = PWM_PRESCALER_PRESCALER_DIV_128 ///< 16 MHz / 128 = 125 kHz.
+} nrf_pwm_clk_t;
+
+/**
+ * @brief PWM decoder load modes.
+ *
+ * The selected mode determines how the sequence data is read from RAM and
+ * spread to the compare registers.
+ */
+typedef enum
+{
+ NRF_PWM_LOAD_COMMON = PWM_DECODER_LOAD_Common, ///< 1st half word (16-bit) used in all PWM channels (0-3).
+ NRF_PWM_LOAD_GROUPED = PWM_DECODER_LOAD_Grouped, ///< 1st half word (16-bit) used in channels 0 and 1; 2nd word in channels 2 and 3.
+ NRF_PWM_LOAD_INDIVIDUAL = PWM_DECODER_LOAD_Individual, ///< 1st half word (16-bit) used in channel 0; 2nd in channel 1; 3rd in channel 2; 4th in channel 3.
+ NRF_PWM_LOAD_WAVE_FORM = PWM_DECODER_LOAD_WaveForm ///< 1st half word (16-bit) used in channel 0; 2nd in channel 1; ... ; 4th as the top value for the pulse generator counter.
+} nrf_pwm_dec_load_t;
+
+/**
+ * @brief PWM decoder next step modes.
+ *
+ * The selected mode determines when the next value from the active sequence
+ * is loaded.
+ */
+typedef enum
+{
+ NRF_PWM_STEP_AUTO = PWM_DECODER_MODE_RefreshCount, ///< Automatically after the current value is played and repeated the requested number of times.
+ NRF_PWM_STEP_TRIGGERED = PWM_DECODER_MODE_NextStep ///< When the @ref NRF_PWM_TASK_NEXTSTEP task is triggered.
+} nrf_pwm_dec_step_t;
+
+
+/**
+ * @brief Type used for defining duty cycle values for a sequence
+ * loaded in @ref NRF_PWM_LOAD_COMMON mode.
+ */
+typedef uint16_t nrf_pwm_values_common_t;
+
+/**
+ * @brief Structure for defining duty cycle values for a sequence
+ * loaded in @ref NRF_PWM_LOAD_GROUPED mode.
+ */
+typedef struct {
+ uint16_t group_0; ///< Duty cycle value for group 0 (channels 0 and 1).
+ uint16_t group_1; ///< Duty cycle value for group 1 (channels 2 and 3).
+} nrf_pwm_values_grouped_t;
+
+/**
+ * @brief Structure for defining duty cycle values for a sequence
+ * loaded in @ref NRF_PWM_LOAD_INDIVIDUAL mode.
+ */
+typedef struct
+{
+ uint16_t channel_0; ///< Duty cycle value for channel 0.
+ uint16_t channel_1; ///< Duty cycle value for channel 1.
+ uint16_t channel_2; ///< Duty cycle value for channel 2.
+ uint16_t channel_3; ///< Duty cycle value for channel 3.
+} nrf_pwm_values_individual_t;
+
+/**
+ * @brief Structure for defining duty cycle values for a sequence
+ * loaded in @ref NRF_PWM_LOAD_WAVE_FORM mode.
+ */
+typedef struct {
+ uint16_t channel_0; ///< Duty cycle value for channel 0.
+ uint16_t channel_1; ///< Duty cycle value for channel 1.
+ uint16_t channel_2; ///< Duty cycle value for channel 2.
+ uint16_t counter_top; ///< Top value for the pulse generator counter.
+} nrf_pwm_values_wave_form_t;
+
+/**
+ * @brief Union grouping pointers to arrays of duty cycle values applicable to
+ * various loading modes.
+ */
+typedef union {
+ nrf_pwm_values_common_t const * p_common; ///< Pointer to be used in @ref NRF_PWM_LOAD_COMMON mode.
+ nrf_pwm_values_grouped_t const * p_grouped; ///< Pointer to be used in @ref NRF_PWM_LOAD_GROUPED mode.
+ nrf_pwm_values_individual_t const * p_individual; ///< Pointer to be used in @ref NRF_PWM_LOAD_INDIVIDUAL mode.
+ nrf_pwm_values_wave_form_t const * p_wave_form; ///< Pointer to be used in @ref NRF_PWM_LOAD_WAVE_FORM mode.
+ uint16_t const * p_raw; ///< Pointer providing raw access to the values.
+} nrf_pwm_values_t;
+
+/**
+ * @brief Structure for defining a sequence of PWM duty cycles.
+ *
+ * When the sequence is set (by a call to @ref nrf_pwm_sequence_set), the
+ * provided duty cycle values are not copied. The @p values pointer is stored
+ * in the peripheral's internal register, and the values are loaded from RAM
+ * during the sequence playback. Therefore, you must ensure that the values
+ * do not change before and during the sequence playback (for example,
+ * the values cannot be placed in a local variable that is allocated on stack).
+ * If the sequence is played in a loop and the values should be updated
+ * before the next iteration, it is safe to modify them when the corresponding
+ * event signaling the end of sequence occurs (@ref NRF_PWM_EVENT_SEQEND0
+ * or @ref NRF_PWM_EVENT_SEQEND1, respectively).
+ *
+ * @note The @p repeats and @p end_delay values (which are written to the
+ * SEQ[n].REFRESH and SEQ[n].ENDDELAY registers in the peripheral,
+ * respectively) are ignored at the end of a complex sequence
+ * playback, indicated by the LOOPSDONE event.
+ * See the @linkProductSpecification52 for more information.
+ */
+typedef struct
+{
+ nrf_pwm_values_t values; ///< Pointer to an array with duty cycle values. This array must be in Data RAM.
+ /**< This field is defined as an union of pointers
+ * to provide a convenient way to define duty
+ * cycle values in various loading modes
+ * (see @ref nrf_pwm_dec_load_t).
+ * In each value, the most significant bit (15)
+ * determines the polarity of the output and the
+ * others (14-0) compose the 15-bit value to be
+ * compared with the pulse generator counter. */
+ uint16_t length; ///< Number of 16-bit values in the array pointed by @p values.
+ uint32_t repeats; ///< Number of times that each duty cycle should be repeated (after being played once). Ignored in @ref NRF_PWM_STEP_TRIGGERED mode.
+ uint32_t end_delay; ///< Additional time (in PWM periods) that the last duty cycle is to be kept after the sequence is played. Ignored in @ref NRF_PWM_STEP_TRIGGERED mode.
+} nrf_pwm_sequence_t;
+
+/**
+ * @brief Helper macro for calculating the number of 16-bit values in specified
+ * array of duty cycle values.
+ */
+#define NRF_PWM_VALUES_LENGTH(array) (sizeof(array) / sizeof(uint16_t))
+
+
+/**
+ * @brief Function for activating a specific PWM task.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] task Task to activate.
+ */
+__STATIC_INLINE void nrf_pwm_task_trigger(NRF_PWM_Type * p_reg,
+ nrf_pwm_task_t task);
+
+/**
+ * @brief Function for getting the address of a specific PWM task register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] task Requested task.
+ *
+ * @return Address of the specified task register.
+ */
+__STATIC_INLINE uint32_t nrf_pwm_task_address_get(NRF_PWM_Type const * p_reg,
+ nrf_pwm_task_t task);
+
+/**
+ * @brief Function for clearing a specific PWM event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Event to clear.
+ */
+__STATIC_INLINE void nrf_pwm_event_clear(NRF_PWM_Type * p_reg,
+ nrf_pwm_event_t event);
+
+/**
+ * @brief Function for checking the state of a specific PWM event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Event to check.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_pwm_event_check(NRF_PWM_Type const * p_reg,
+ nrf_pwm_event_t event);
+
+/**
+ * @brief Function for getting the address of a specific PWM event register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Requested event.
+ *
+ * @return Address of the specified event register.
+ */
+__STATIC_INLINE uint32_t nrf_pwm_event_address_get(NRF_PWM_Type const * p_reg,
+ nrf_pwm_event_t event);
+
+/**
+ * @brief Function for enabling specified shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] pwm_shorts_mask Shortcuts to enable.
+ */
+__STATIC_INLINE void nrf_pwm_shorts_enable(NRF_PWM_Type * p_reg,
+ uint32_t pwm_shorts_mask);
+
+/**
+ * @brief Function for disabling specified shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] pwm_shorts_mask Shortcuts to disable.
+ */
+__STATIC_INLINE void nrf_pwm_shorts_disable(NRF_PWM_Type * p_reg,
+ uint32_t pwm_shorts_mask);
+
+/**
+ * @brief Function for setting the configuration of PWM shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] pwm_shorts_mask Shortcuts configuration to set.
+ */
+__STATIC_INLINE void nrf_pwm_shorts_set(NRF_PWM_Type * p_reg,
+ uint32_t pwm_shorts_mask);
+
+/**
+ * @brief Function for enabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] pwm_int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_pwm_int_enable(NRF_PWM_Type * p_reg,
+ uint32_t pwm_int_mask);
+
+/**
+ * @brief Function for disabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] pwm_int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_pwm_int_disable(NRF_PWM_Type * p_reg,
+ uint32_t pwm_int_mask);
+
+/**
+ * @brief Function for setting the configuration of PWM interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] pwm_int_mask Interrupts configuration to set.
+ */
+__STATIC_INLINE void nrf_pwm_int_set(NRF_PWM_Type * p_reg,
+ uint32_t pwm_int_mask);
+
+/**
+ * @brief Function for retrieving the state of a given interrupt.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] pwm_int Interrupt to check.
+ *
+ * @retval true If the interrupt is enabled.
+ * @retval false If the interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_pwm_int_enable_check(NRF_PWM_Type const * p_reg,
+ nrf_pwm_int_mask_t pwm_int);
+
+/**
+ * @brief Function for enabling the PWM peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_pwm_enable(NRF_PWM_Type * p_reg);
+
+/**
+ * @brief Function for disabling the PWM peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_pwm_disable(NRF_PWM_Type * p_reg);
+
+/**
+ * @brief Function for assigning pins to PWM output channels.
+ *
+ * Usage of all PWM output channels is optional. If a given channel is not
+ * needed, pass the @ref NRF_PWM_PIN_NOT_CONNECTED value instead of its pin
+ * number.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] out_pins Array with pin numbers for individual PWM output channels.
+ */
+__STATIC_INLINE void nrf_pwm_pins_set(NRF_PWM_Type * p_reg,
+ uint32_t out_pins[NRF_PWM_CHANNEL_COUNT]);
+
+/**
+ * @brief Function for configuring the PWM peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] base_clock Base clock frequency.
+ * @param[in] mode Operating mode of the pulse generator counter.
+ * @param[in] top_value Value up to which the pulse generator counter counts.
+ */
+__STATIC_INLINE void nrf_pwm_configure(NRF_PWM_Type * p_reg,
+ nrf_pwm_clk_t base_clock,
+ nrf_pwm_mode_t mode,
+ uint16_t top_value);
+
+/**
+ * @brief Function for defining a sequence of PWM duty cycles.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] seq_id Identifier of the sequence (0 or 1).
+ * @param[in] p_seq Pointer to the sequence definition.
+ */
+__STATIC_INLINE void nrf_pwm_sequence_set(NRF_PWM_Type * p_reg,
+ uint8_t seq_id,
+ nrf_pwm_sequence_t const * p_seq);
+
+/**
+ * @brief Function for modifying the pointer to the duty cycle values
+ * in the specified sequence.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] seq_id Identifier of the sequence (0 or 1).
+ * @param[in] p_values Pointer to an array with duty cycle values.
+ */
+__STATIC_INLINE void nrf_pwm_seq_ptr_set(NRF_PWM_Type * p_reg,
+ uint8_t seq_id,
+ uint16_t const * p_values);
+
+/**
+ * @brief Function for modifying the total number of duty cycle values
+ * in the specified sequence.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] seq_id Identifier of the sequence (0 or 1).
+ * @param[in] length Number of duty cycle values.
+ */
+__STATIC_INLINE void nrf_pwm_seq_cnt_set(NRF_PWM_Type * p_reg,
+ uint8_t seq_id,
+ uint16_t length);
+
+/**
+ * @brief Function for modifying the additional number of PWM periods spent
+ * on each duty cycle value in the specified sequence.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] seq_id Identifier of the sequence (0 or 1).
+ * @param[in] refresh Number of additional PWM periods for each duty cycle value.
+ */
+__STATIC_INLINE void nrf_pwm_seq_refresh_set(NRF_PWM_Type * p_reg,
+ uint8_t seq_id,
+ uint32_t refresh);
+
+/**
+ * @brief Function for modifying the additional time added after the sequence
+ * is played.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] seq_id Identifier of the sequence (0 or 1).
+ * @param[in] end_delay Number of PWM periods added at the end of the sequence.
+ */
+__STATIC_INLINE void nrf_pwm_seq_end_delay_set(NRF_PWM_Type * p_reg,
+ uint8_t seq_id,
+ uint32_t end_delay);
+
+/**
+ * @brief Function for setting the mode of loading sequence data from RAM
+ * and advancing the sequence.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] dec_load Mode of loading sequence data from RAM.
+ * @param[in] dec_step Mode of advancing the active sequence.
+ */
+__STATIC_INLINE void nrf_pwm_decoder_set(NRF_PWM_Type * p_reg,
+ nrf_pwm_dec_load_t dec_load,
+ nrf_pwm_dec_step_t dec_step);
+
+/**
+ * @brief Function for setting the number of times the sequence playback
+ * should be performed.
+ *
+ * This function applies to two-sequence playback (concatenated sequence 0 and 1).
+ * A single sequence can be played back only once.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] loop_count Number of times to perform the sequence playback.
+ */
+__STATIC_INLINE void nrf_pwm_loop_set(NRF_PWM_Type * p_reg,
+ uint16_t loop_count);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_pwm_task_trigger(NRF_PWM_Type * p_reg,
+ nrf_pwm_task_t task)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t nrf_pwm_task_address_get(NRF_PWM_Type const * p_reg,
+ nrf_pwm_task_t task)
+{
+ return ((uint32_t)p_reg + (uint32_t)task);
+}
+
+__STATIC_INLINE void nrf_pwm_event_clear(NRF_PWM_Type * p_reg,
+ nrf_pwm_event_t event)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE bool nrf_pwm_event_check(NRF_PWM_Type const * p_reg,
+ nrf_pwm_event_t event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event);
+}
+
+__STATIC_INLINE uint32_t nrf_pwm_event_address_get(NRF_PWM_Type const * p_reg,
+ nrf_pwm_event_t event)
+{
+ return ((uint32_t)p_reg + (uint32_t)event);
+}
+
+__STATIC_INLINE void nrf_pwm_shorts_enable(NRF_PWM_Type * p_reg,
+ uint32_t pwm_shorts_mask)
+{
+ p_reg->SHORTS |= pwm_shorts_mask;
+}
+
+__STATIC_INLINE void nrf_pwm_shorts_disable(NRF_PWM_Type * p_reg,
+ uint32_t pwm_shorts_mask)
+{
+ p_reg->SHORTS &= ~(pwm_shorts_mask);
+}
+
+__STATIC_INLINE void nrf_pwm_shorts_set(NRF_PWM_Type * p_reg,
+ uint32_t pwm_shorts_mask)
+{
+ p_reg->SHORTS = pwm_shorts_mask;
+}
+
+__STATIC_INLINE void nrf_pwm_int_enable(NRF_PWM_Type * p_reg,
+ uint32_t pwm_int_mask)
+{
+ p_reg->INTENSET = pwm_int_mask;
+}
+
+__STATIC_INLINE void nrf_pwm_int_disable(NRF_PWM_Type * p_reg,
+ uint32_t pwm_int_mask)
+{
+ p_reg->INTENCLR = pwm_int_mask;
+}
+
+__STATIC_INLINE void nrf_pwm_int_set(NRF_PWM_Type * p_reg,
+ uint32_t pwm_int_mask)
+{
+ p_reg->INTEN = pwm_int_mask;
+}
+
+__STATIC_INLINE bool nrf_pwm_int_enable_check(NRF_PWM_Type const * p_reg,
+ nrf_pwm_int_mask_t pwm_int)
+{
+ return (bool)(p_reg->INTENSET & pwm_int);
+}
+
+__STATIC_INLINE void nrf_pwm_enable(NRF_PWM_Type * p_reg)
+{
+ p_reg->ENABLE = (PWM_ENABLE_ENABLE_Enabled << PWM_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_pwm_disable(NRF_PWM_Type * p_reg)
+{
+ p_reg->ENABLE = (PWM_ENABLE_ENABLE_Disabled << PWM_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_pwm_pins_set(NRF_PWM_Type * p_reg,
+ uint32_t out_pins[NRF_PWM_CHANNEL_COUNT])
+{
+ uint8_t i;
+ for (i = 0; i < NRF_PWM_CHANNEL_COUNT; ++i)
+ {
+ p_reg->PSEL.OUT[i] = out_pins[i];
+ }
+}
+
+__STATIC_INLINE void nrf_pwm_configure(NRF_PWM_Type * p_reg,
+ nrf_pwm_clk_t base_clock,
+ nrf_pwm_mode_t mode,
+ uint16_t top_value)
+{
+ NRFX_ASSERT(top_value <= PWM_COUNTERTOP_COUNTERTOP_Msk);
+
+ p_reg->PRESCALER = base_clock;
+ p_reg->MODE = mode;
+ p_reg->COUNTERTOP = top_value;
+}
+
+__STATIC_INLINE void nrf_pwm_sequence_set(NRF_PWM_Type * p_reg,
+ uint8_t seq_id,
+ nrf_pwm_sequence_t const * p_seq)
+{
+ NRFX_ASSERT(p_seq != NULL);
+
+ nrf_pwm_seq_ptr_set( p_reg, seq_id, p_seq->values.p_raw);
+ nrf_pwm_seq_cnt_set( p_reg, seq_id, p_seq->length);
+ nrf_pwm_seq_refresh_set( p_reg, seq_id, p_seq->repeats);
+ nrf_pwm_seq_end_delay_set(p_reg, seq_id, p_seq->end_delay);
+}
+
+__STATIC_INLINE void nrf_pwm_seq_ptr_set(NRF_PWM_Type * p_reg,
+ uint8_t seq_id,
+ uint16_t const * p_values)
+{
+ NRFX_ASSERT(seq_id <= 1);
+ NRFX_ASSERT(p_values != NULL);
+ p_reg->SEQ[seq_id].PTR = (uint32_t)p_values;
+}
+
+__STATIC_INLINE void nrf_pwm_seq_cnt_set(NRF_PWM_Type * p_reg,
+ uint8_t seq_id,
+ uint16_t length)
+{
+ NRFX_ASSERT(seq_id <= 1);
+ NRFX_ASSERT(length != 0);
+ NRFX_ASSERT(length <= PWM_SEQ_CNT_CNT_Msk);
+ p_reg->SEQ[seq_id].CNT = length;
+}
+
+__STATIC_INLINE void nrf_pwm_seq_refresh_set(NRF_PWM_Type * p_reg,
+ uint8_t seq_id,
+ uint32_t refresh)
+{
+ NRFX_ASSERT(seq_id <= 1);
+ NRFX_ASSERT(refresh <= PWM_SEQ_REFRESH_CNT_Msk);
+ p_reg->SEQ[seq_id].REFRESH = refresh;
+}
+
+__STATIC_INLINE void nrf_pwm_seq_end_delay_set(NRF_PWM_Type * p_reg,
+ uint8_t seq_id,
+ uint32_t end_delay)
+{
+ NRFX_ASSERT(seq_id <= 1);
+ NRFX_ASSERT(end_delay <= PWM_SEQ_ENDDELAY_CNT_Msk);
+ p_reg->SEQ[seq_id].ENDDELAY = end_delay;
+}
+
+__STATIC_INLINE void nrf_pwm_decoder_set(NRF_PWM_Type * p_reg,
+ nrf_pwm_dec_load_t dec_load,
+ nrf_pwm_dec_step_t dec_step)
+{
+ p_reg->DECODER = ((uint32_t)dec_load << PWM_DECODER_LOAD_Pos) |
+ ((uint32_t)dec_step << PWM_DECODER_MODE_Pos);
+}
+
+__STATIC_INLINE void nrf_pwm_loop_set(NRF_PWM_Type * p_reg,
+ uint16_t loop_count)
+{
+ p_reg->LOOP = loop_count;
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_PWM_H__
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_qdec.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_qdec.h
new file mode 100644
index 0000000..537bf78
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_qdec.h
@@ -0,0 +1,495 @@
+/**
+ * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+#ifndef NRF_QDEC_H__
+#define NRF_QDEC_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_qdec_hal QDEC HAL
+ * @{
+ * @ingroup nrf_qdec
+ * @brief Hardware access layer for managing the Quadrature Decoder (QDEC) peripheral.
+ */
+
+/**
+ * @enum nrf_qdec_task_t
+ * @brief QDEC tasks.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_QDEC_TASK_START = offsetof(NRF_QDEC_Type, TASKS_START), /**< Starting the quadrature decoder. */
+ NRF_QDEC_TASK_STOP = offsetof(NRF_QDEC_Type, TASKS_STOP), /**< Stopping the quadrature decoder. */
+ NRF_QDEC_TASK_READCLRACC = offsetof(NRF_QDEC_Type, TASKS_READCLRACC) /**< Reading and clearing ACC and ACCDBL registers. */
+} nrf_qdec_task_t;
+
+/**
+ * @enum nrf_qdec_event_t
+ * @brief QDEC events.
+ */
+typedef enum
+{
+ NRF_QDEC_EVENT_SAMPLERDY = offsetof(NRF_QDEC_Type, EVENTS_SAMPLERDY), /**< Event generated for every new sample. */
+ NRF_QDEC_EVENT_REPORTRDY = offsetof(NRF_QDEC_Type, EVENTS_REPORTRDY), /**< Event generated for every new report. */
+ NRF_QDEC_EVENT_ACCOF = offsetof(NRF_QDEC_Type, EVENTS_ACCOF) /**< Event generated for every accumulator overflow. */
+} nrf_qdec_event_t; /*lint -restore */
+
+/**
+ * @enum nrf_qdec_short_mask_t
+ * @brief QDEC shortcuts.
+ */
+typedef enum
+{
+ NRF_QDEC_SHORT_REPORTRDY_READCLRACC_MASK = QDEC_SHORTS_REPORTRDY_READCLRACC_Msk, /**< Shortcut between REPORTRDY event and READCLRACC task. */
+ NRF_QDEC_SHORT_SAMPLERDY_STOP_MASK = QDEC_SHORTS_SAMPLERDY_STOP_Msk /**< Shortcut between SAMPLERDY event and STOP task. */
+} nrf_qdec_short_mask_t;
+
+/**
+ * @enum nrf_qdec_int_mask_t
+ * @brief QDEC interrupts.
+ */
+typedef enum
+{
+ NRF_QDEC_INT_SAMPLERDY_MASK = QDEC_INTENSET_SAMPLERDY_Msk, /**< Mask for enabling or disabling an interrupt on SAMPLERDY event. */
+ NRF_QDEC_INT_REPORTRDY_MASK = QDEC_INTENSET_REPORTRDY_Msk, /**< Mask for enabling or disabling an interrupt on REPORTRDY event. */
+ NRF_QDEC_INT_ACCOF_MASK = QDEC_INTENSET_ACCOF_Msk /**< Mask for enabling or disabling an interrupt on ACCOF event. */
+} nrf_qdec_int_mask_t;
+
+/**
+ * @enum nrf_qdec_enable_t
+ * @brief States of the enable bit.
+ */
+typedef enum
+{
+ NRF_QDEC_DISABLE = QDEC_ENABLE_ENABLE_Disabled, /**< Mask for disabling the QDEC periperal. When disabled, the QDEC decoder pins are not active. */
+ NRF_QDEC_ENABLE = QDEC_ENABLE_ENABLE_Enabled /**< Mask for enabling the QDEC periperal. When enabled, the QDEC pins are active. */
+} nrf_qdec_enable_t;
+
+
+/**
+ * @enum nrf_qdec_dbfen_t
+ * @brief States of the debounce filter enable bit.
+ */
+typedef enum
+{
+ NRF_QDEC_DBFEN_DISABLE = QDEC_DBFEN_DBFEN_Disabled, /**< Mask for disabling the debounce filter. */
+ NRF_QDEC_DBFEN_ENABLE = QDEC_DBFEN_DBFEN_Enabled /**< Mask for enabling the debounce filter. */
+} nrf_qdec_dbfen_t;
+
+/**
+ * @enum nrf_qdec_ledpol_t
+ * @brief Active LED polarity.
+ */
+typedef enum
+{
+ NRF_QDEC_LEPOL_ACTIVE_LOW = QDEC_LEDPOL_LEDPOL_ActiveLow, /**< QDEC LED active on output pin low. */
+ NRF_QDEC_LEPOL_ACTIVE_HIGH = QDEC_LEDPOL_LEDPOL_ActiveHigh /**< QDEC LED active on output pin high. */
+} nrf_qdec_ledpol_t;
+
+
+/**
+ * @enum nrf_qdec_sampleper_t
+ * @brief Available sampling periods.
+ */
+typedef enum
+{
+ NRF_QDEC_SAMPLEPER_128us = QDEC_SAMPLEPER_SAMPLEPER_128us, /**< QDEC sampling period 128 microseconds. */
+ NRF_QDEC_SAMPLEPER_256us = QDEC_SAMPLEPER_SAMPLEPER_256us, /**< QDEC sampling period 256 microseconds. */
+ NRF_QDEC_SAMPLEPER_512us = QDEC_SAMPLEPER_SAMPLEPER_512us, /**< QDEC sampling period 512 microseconds. */
+ NRF_QDEC_SAMPLEPER_1024us = QDEC_SAMPLEPER_SAMPLEPER_1024us, /**< QDEC sampling period 1024 microseconds. */
+ NRF_QDEC_SAMPLEPER_2048us = QDEC_SAMPLEPER_SAMPLEPER_2048us, /**< QDEC sampling period 2048 microseconds. */
+ NRF_QDEC_SAMPLEPER_4096us = QDEC_SAMPLEPER_SAMPLEPER_4096us, /**< QDEC sampling period 4096 microseconds. */
+ NRF_QDEC_SAMPLEPER_8192us = QDEC_SAMPLEPER_SAMPLEPER_8192us, /**< QDEC sampling period 8192 microseconds. */
+ NRF_QDEC_SAMPLEPER_16384us = QDEC_SAMPLEPER_SAMPLEPER_16384us /**< QDEC sampling period 16384 microseconds. */
+} nrf_qdec_sampleper_t;
+
+/**
+ * @enum nrf_qdec_reportper_t
+ * @brief Available report periods.
+ */
+typedef enum
+{
+ NRF_QDEC_REPORTPER_10 = QDEC_REPORTPER_REPORTPER_10Smpl, /**< QDEC report period 10 samples. */
+ NRF_QDEC_REPORTPER_40 = QDEC_REPORTPER_REPORTPER_40Smpl, /**< QDEC report period 40 samples. */
+ NRF_QDEC_REPORTPER_80 = QDEC_REPORTPER_REPORTPER_80Smpl, /**< QDEC report period 80 samples. */
+ NRF_QDEC_REPORTPER_120 = QDEC_REPORTPER_REPORTPER_120Smpl, /**< QDEC report period 120 samples. */
+ NRF_QDEC_REPORTPER_160 = QDEC_REPORTPER_REPORTPER_160Smpl, /**< QDEC report period 160 samples. */
+ NRF_QDEC_REPORTPER_200 = QDEC_REPORTPER_REPORTPER_200Smpl, /**< QDEC report period 200 samples. */
+ NRF_QDEC_REPORTPER_240 = QDEC_REPORTPER_REPORTPER_240Smpl, /**< QDEC report period 240 samples. */
+ NRF_QDEC_REPORTPER_280 = QDEC_REPORTPER_REPORTPER_280Smpl, /**< QDEC report period 280 samples. */
+ NRF_QDEC_REPORTPER_DISABLED /**< QDEC reporting disabled. */
+} nrf_qdec_reportper_t;
+
+/**
+ * @brief Function for enabling QDEC.
+ */
+__STATIC_INLINE void nrf_qdec_enable(void)
+{
+ NRF_QDEC->ENABLE = NRF_QDEC_ENABLE;
+}
+
+
+/**
+ * @brief Function for disabling QDEC.
+ */
+__STATIC_INLINE void nrf_qdec_disable(void)
+{
+ NRF_QDEC->ENABLE = NRF_QDEC_DISABLE;
+}
+
+
+/**
+ * @brief Function for returning the enable state of QDEC.
+ * @return State of the register.
+ */
+__STATIC_INLINE uint32_t nrf_qdec_enable_get(void)
+{
+ return NRF_QDEC->ENABLE;
+}
+
+
+/**
+ * @brief Function for enabling QDEC interrupts by mask.
+ * @param[in] qdec_int_mask Sources of the interrupts to enable.
+ */
+__STATIC_INLINE void nrf_qdec_int_enable(uint32_t qdec_int_mask)
+{
+ NRF_QDEC->INTENSET = qdec_int_mask; // writing 0 has no effect
+}
+
+
+/**
+ * @brief Function for disabling QDEC interrupts by mask.
+ * @param[in] qdec_int_mask Sources of the interrupts to disable.
+ *
+ */
+__STATIC_INLINE void nrf_qdec_int_disable(uint32_t qdec_int_mask)
+{
+ NRF_QDEC->INTENCLR = qdec_int_mask; // writing 0 has no effect
+}
+
+
+/**
+ * @brief Function for getting the enabled interrupts of the QDEC.
+ */
+__STATIC_INLINE uint32_t nrf_qdec_int_enable_check(nrf_qdec_int_mask_t qdec_int_mask)
+{
+ return NRF_QDEC->INTENSET & qdec_int_mask; // when read this register will return the value of INTEN.
+}
+
+
+/**
+ * @brief Function for enabling the debouncing filter of the QED.
+ */
+__STATIC_INLINE void nrf_qdec_dbfen_enable(void)
+{
+ NRF_QDEC->DBFEN = NRF_QDEC_DBFEN_ENABLE;
+}
+
+
+/**
+ * @brief Function for disabling the debouncing filter of the QED.
+ */
+__STATIC_INLINE void nrf_qdec_dbfen_disable(void)
+{
+ NRF_QDEC->DBFEN = NRF_QDEC_DBFEN_DISABLE;
+}
+
+
+/**
+ * @brief Function for getting the state of the QDEC's debouncing filter.
+ * @retval NRF_QDEC_DBFEN_DISABLE If the debouncing filter is disabled.
+ * @retval NRF_QDEC_DBFEN_ENABLE If the debouncing filter is enabled.
+ */
+__STATIC_INLINE uint32_t nrf_qdec_dbfen_get(void)
+{
+ return NRF_QDEC->DBFEN;
+}
+
+
+/**
+ * @brief Function for assigning QDEC pins.
+ * @param[in] psela Pin number.
+ * @param[in] pselb Pin number.
+ * @param[in] pselled Pin number.
+ */
+__STATIC_INLINE void nrf_qdec_pio_assign( uint32_t psela, uint32_t pselb, uint32_t pselled)
+{
+ NRF_QDEC->PSELA = psela;
+ NRF_QDEC->PSELB = pselb;
+ NRF_QDEC->PSELLED = pselled;
+
+}
+
+/**
+ * @brief Function for setting a specific QDEC task.
+ * @param[in] qdec_task QDEC task to be set.
+ */
+__STATIC_INLINE void nrf_qdec_task_trigger(nrf_qdec_task_t qdec_task)
+{
+ *( (volatile uint32_t *)( (uint8_t *)NRF_QDEC + qdec_task) ) = 1;
+}
+
+
+/**
+ * @brief Function for retrieving the address of a QDEC task register.
+ * @param[in] qdec_task QDEC task.
+ */
+__STATIC_INLINE uint32_t * nrf_qdec_task_address_get(nrf_qdec_task_t qdec_task)
+{
+ return (uint32_t *)( (uint8_t *)NRF_QDEC + qdec_task);
+}
+
+
+/**
+ * @brief Function for clearing a specific QDEC event.
+ * @param[in] qdec_event QDEC event to clear.
+ */
+__STATIC_INLINE void nrf_qdec_event_clear(nrf_qdec_event_t qdec_event)
+{
+ *( (volatile uint32_t *)( (uint8_t *)NRF_QDEC + qdec_event) ) = 0;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)NRF_QDEC + qdec_event));
+ (void)dummy;
+#endif
+}
+
+
+/**
+ * @brief Function for retrieving the state of a specific QDEC event.
+ * @return State of the QDEC event.
+ */
+__STATIC_INLINE uint32_t nrf_qdec_event_check(nrf_qdec_event_t qdec_event)
+{
+ return *(volatile uint32_t *)( (uint8_t *)NRF_QDEC + qdec_event);
+}
+
+
+/**
+ * @brief Function for retrieving the address of a specific QDEC event register.
+ * @param[in] qdec_event QDEC event.
+ * @return Address of the specified QDEC event.
+ */
+__STATIC_INLINE uint32_t * nrf_qdec_event_address_get(nrf_qdec_event_t qdec_event)
+{
+ return (uint32_t *)( (uint8_t *)NRF_QDEC + qdec_event);
+}
+
+
+/**
+ * @brief Function for setting QDEC shortcuts.
+ * @param[in] qdec_short_mask QDEC shortcut by mask.
+ */
+__STATIC_INLINE void nrf_qdec_shorts_enable(uint32_t qdec_short_mask)
+{
+ NRF_QDEC->SHORTS |= qdec_short_mask;
+}
+
+
+/**
+ * @brief Function for clearing shortcuts of the QDEC by mask.
+ * @param[in] qdec_short_mask QDEC shortcute to be cleared.
+ */
+__STATIC_INLINE void nrf_qdec_shorts_disable(uint32_t qdec_short_mask)
+{
+ NRF_QDEC->SHORTS &= ~qdec_short_mask;
+}
+
+
+/**
+ * @brief Function for retrieving the value of QDEC's SAMPLEPER register.
+ * @return Value of the SAMPLEPER register.
+ */
+__STATIC_INLINE int32_t nrf_qdec_sampleper_reg_get(void)
+{
+ return NRF_QDEC->SAMPLEPER;
+}
+
+
+/**
+ * @brief Function for converting the value of QDEC's SAMPLE PERIOD to microseconds.
+ * @retval sampling period in microseconds.
+ */
+__STATIC_INLINE uint32_t nrf_qdec_sampleper_to_value(uint32_t sampleper)
+{
+ return (1 << (7 + sampleper));
+}
+
+/**
+ * @brief Function for setting the value of QDEC's SAMPLEPER register.
+ * @param[in] sample_per Sampling period.
+ */
+__STATIC_INLINE void nrf_qdec_sampleper_set(nrf_qdec_sampleper_t sample_per)
+{
+ NRF_QDEC->SAMPLEPER = sample_per;
+}
+
+
+/**
+ * @brief Function for retrieving the value of QDEC's SAMPLE register.
+ * @return Value of the SAMPLE register.
+ */
+__STATIC_INLINE int32_t nrf_qdec_sample_get(void)
+{
+ return NRF_QDEC->SAMPLE;
+}
+
+
+/**
+ * @brief Function for retrieving the value of QDEC's ACC register.
+ * @return Value of the ACC register.
+ */
+__STATIC_INLINE int32_t nrf_qdec_acc_get(void)
+{
+ return NRF_QDEC->ACC;
+}
+
+
+/**
+ * @brief Function for retrieving the value of QDEC's ACCREAD register.
+ * @return Value of the ACCREAD register.
+ */
+__STATIC_INLINE int32_t nrf_qdec_accread_get(void)
+{
+ return NRF_QDEC->ACCREAD;
+}
+
+
+/**
+ * @brief Function for retrieving the value of QDEC's ACCDBL register.
+ * @return Value of the ACCDBL register.
+ */
+__STATIC_INLINE uint32_t nrf_qdec_accdbl_get(void)
+{
+ return NRF_QDEC->ACCDBL;
+}
+
+
+/**
+ * @brief Function for retrieving the value of QDEC's ACCDBLREAD register.
+ * @return Value of the ACCDBLREAD register.
+ */
+__STATIC_INLINE uint32_t nrf_qdec_accdblread_get(void)
+{
+ return NRF_QDEC->ACCDBLREAD;
+}
+
+
+/**
+ * @brief Function for setting how long the LED is switched on before sampling.
+ * @param[in] time_us Time (in microseconds) how long the LED is switched on before sampling.
+ */
+__STATIC_INLINE void nrf_qdec_ledpre_set(uint32_t time_us)
+{
+ NRF_QDEC->LEDPRE = time_us;
+}
+
+
+/**
+ * @brief Function for retrieving how long the LED is switched on before sampling.
+ * @retval time_us Time (in microseconds) how long the LED is switched on before sampling.
+ */
+__STATIC_INLINE uint32_t nrf_qdec_ledpre_get(void)
+{
+ return NRF_QDEC->LEDPRE;
+}
+
+
+/**
+ * @brief Function for setting the report period (in samples).
+ * @param[in] reportper Number of samples.
+ */
+__STATIC_INLINE void nrf_qdec_reportper_set(nrf_qdec_reportper_t reportper)
+{
+ NRF_QDEC->REPORTPER = reportper;
+}
+
+
+/**
+ * @brief Function for retrieving the report period.
+ * @retval reportper Number of samples as encoded in the register.
+ */
+__STATIC_INLINE uint32_t nrf_qdec_reportper_reg_get(void)
+{
+ return NRF_QDEC->REPORTPER;
+}
+
+
+/**
+ * @brief Function for retrieving the value of QDEC's SAMPLEPER register.
+ * @param [in] reportper Reportper to be converted to amount of samples per report.
+
+ */
+__STATIC_INLINE uint32_t nrf_qdec_reportper_to_value(uint32_t reportper)
+{
+ return (reportper == NRF_QDEC_REPORTPER_10) ? 10 : reportper * 40;
+}
+
+
+/**
+ * @brief Function for setting the active level for the LED.
+ * @param[in] pol Active level for the LED.
+ */
+__STATIC_INLINE void nrf_qdec_ledpol_set(nrf_qdec_ledpol_t pol)
+{
+ NRF_QDEC->LEDPOL = pol;
+}
+
+
+/**
+ * @brief Function for retrieving the active level for the LED.
+ * @return Active level for the LED.
+ */
+__STATIC_INLINE uint32_t nrf_qdec_ledpol_get(void)
+{
+ return NRF_QDEC->LEDPOL;
+}
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_qspi.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_qspi.h
new file mode 100644
index 0000000..c6970e4
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_qspi.h
@@ -0,0 +1,778 @@
+/**
+ * Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_QSPI_H__
+#define NRF_QSPI_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_qspi_hal QSPI HAL
+ * @{
+ * @ingroup nrf_qspi
+ * @brief Hardware access layer for managing the QSPI peripheral.
+ */
+
+/**
+ * @brief This value can be used as a parameter for the @ref nrf_qspi_pins_set
+ * function to specify that a given QSPI signal (SCK, CSN, IO0, IO1, IO2, or IO3)
+ * will not be connected to a physical pin.
+ */
+#define NRF_QSPI_PIN_NOT_CONNECTED 0xFF
+
+/**
+ * @brief Macro for setting proper values to pin registers.
+ */
+
+#define NRF_QSPI_PIN_VAL(pin) (pin) == NRF_QSPI_PIN_NOT_CONNECTED ? 0xFFFFFFFF : (pin)
+
+/**
+ * @brief QSPI tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_QSPI_TASK_ACTIVATE = offsetof(NRF_QSPI_Type, TASKS_ACTIVATE), /**< Activate the QSPI interface. */
+ NRF_QSPI_TASK_READSTART = offsetof(NRF_QSPI_Type, TASKS_READSTART), /**< Start transfer from external flash memory to internal RAM. */
+ NRF_QSPI_TASK_WRITESTART = offsetof(NRF_QSPI_Type, TASKS_WRITESTART), /**< Start transfer from internal RAM to external flash memory. */
+ NRF_QSPI_TASK_ERASESTART = offsetof(NRF_QSPI_Type, TASKS_ERASESTART), /**< Start external flash memory erase operation. */
+ NRF_QSPI_TASK_DEACTIVATE = offsetof(NRF_QSPI_Type, TASKS_DEACTIVATE), /**< Deactivate the QSPI interface. */
+ /*lint -restore*/
+} nrf_qspi_task_t;
+
+/**
+ * @brief QSPI events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_QSPI_EVENT_READY = offsetof(NRF_QSPI_Type, EVENTS_READY) /**< QSPI peripheral is ready after it executes any task. */
+ /*lint -restore*/
+} nrf_qspi_event_t;
+
+/**
+ * @brief QSPI interrupts.
+ */
+typedef enum
+{
+ NRF_QSPI_INT_READY_MASK = QSPI_INTENSET_READY_Msk /**< Interrupt on READY event. */
+} nrf_qspi_int_mask_t;
+
+/**
+ * @brief QSPI frequency divider values.
+ */
+typedef enum
+{
+ NRF_QSPI_FREQ_32MDIV1, /**< 32.0 MHz. */
+ NRF_QSPI_FREQ_32MDIV2, /**< 16.0 MHz. */
+ NRF_QSPI_FREQ_32MDIV3, /**< 10.6 MHz. */
+ NRF_QSPI_FREQ_32MDIV4, /**< 8.00 MHz. */
+ NRF_QSPI_FREQ_32MDIV5, /**< 6.40 MHz. */
+ NRF_QSPI_FREQ_32MDIV6, /**< 5.33 MHz. */
+ NRF_QSPI_FREQ_32MDIV7, /**< 4.57 MHz. */
+ NRF_QSPI_FREQ_32MDIV8, /**< 4.00 MHz. */
+ NRF_QSPI_FREQ_32MDIV9, /**< 3.55 MHz. */
+ NRF_QSPI_FREQ_32MDIV10, /**< 3.20 MHz. */
+ NRF_QSPI_FREQ_32MDIV11, /**< 2.90 MHz. */
+ NRF_QSPI_FREQ_32MDIV12, /**< 2.66 MHz. */
+ NRF_QSPI_FREQ_32MDIV13, /**< 2.46 MHz. */
+ NRF_QSPI_FREQ_32MDIV14, /**< 2.29 MHz. */
+ NRF_QSPI_FREQ_32MDIV15, /**< 2.13 MHz. */
+ NRF_QSPI_FREQ_32MDIV16, /**< 2.00 MHz. */
+} nrf_qspi_frequency_t;
+
+/**
+ * @brief Interface configuration for a read operation.
+ */
+typedef enum
+{
+ NRF_QSPI_READOC_FASTREAD = QSPI_IFCONFIG0_READOC_FASTREAD, /**< Single data line SPI. FAST_READ (opcode 0x0B). */
+ NRF_QSPI_READOC_READ2O = QSPI_IFCONFIG0_READOC_READ2O, /**< Dual data line SPI. READ2O (opcode 0x3B). */
+ NRF_QSPI_READOC_READ2IO = QSPI_IFCONFIG0_READOC_READ2IO, /**< Dual data line SPI. READ2IO (opcode 0xBB). */
+ NRF_QSPI_READOC_READ4O = QSPI_IFCONFIG0_READOC_READ4O, /**< Quad data line SPI. READ4O (opcode 0x6B). */
+ NRF_QSPI_READOC_READ4IO = QSPI_IFCONFIG0_READOC_READ4IO /**< Quad data line SPI. READ4IO (opcode 0xEB). */
+} nrf_qspi_readoc_t;
+
+/**
+ * @brief Interface configuration for a write operation.
+ */
+typedef enum
+{
+ NRF_QSPI_WRITEOC_PP = QSPI_IFCONFIG0_WRITEOC_PP, /**< Single data line SPI. PP (opcode 0x02). */
+ NRF_QSPI_WRITEOC_PP2O = QSPI_IFCONFIG0_WRITEOC_PP2O, /**< Dual data line SPI. PP2O (opcode 0xA2). */
+ NRF_QSPI_WRITEOC_PP4O = QSPI_IFCONFIG0_WRITEOC_PP4O, /**< Quad data line SPI. PP4O (opcode 0x32). */
+ NRF_QSPI_WRITEOC_PP4IO = QSPI_IFCONFIG0_WRITEOC_PP4IO, /**< Quad data line SPI. READ4O (opcode 0x38). */
+} nrf_qspi_writeoc_t;
+
+/**
+ * @brief Interface configuration for addressing mode.
+ */
+typedef enum
+{
+ NRF_QSPI_ADDRMODE_24BIT = QSPI_IFCONFIG0_ADDRMODE_24BIT, /**< 24-bit addressing. */
+ NRF_QSPI_ADDRMODE_32BIT = QSPI_IFCONFIG0_ADDRMODE_32BIT /**< 32-bit addressing. */
+} nrf_qspi_addrmode_t;
+
+/**
+ * @brief QSPI SPI mode. Polarization and phase configuration.
+ */
+typedef enum
+{
+ NRF_QSPI_MODE_0 = QSPI_IFCONFIG1_SPIMODE_MODE0, /**< Mode 0 (CPOL=0, CPHA=0). */
+ NRF_QSPI_MODE_1 = QSPI_IFCONFIG1_SPIMODE_MODE3 /**< Mode 1 (CPOL=1, CPHA=1). */
+} nrf_qspi_spi_mode_t;
+
+/**
+ * @brief Addressing configuration mode.
+ */
+typedef enum
+{
+ NRF_QSPI_ADDRCONF_MODE_NOINSTR = QSPI_ADDRCONF_MODE_NoInstr, /**< Do not send any instruction. */
+ NRF_QSPI_ADDRCONF_MODE_OPCODE = QSPI_ADDRCONF_MODE_Opcode, /**< Send opcode. */
+ NRF_QSPI_ADDRCONF_MODE_OPBYTE0 = QSPI_ADDRCONF_MODE_OpByte0, /**< Send opcode, byte0. */
+ NRF_QSPI_ADDRCONF_MODE_ALL = QSPI_ADDRCONF_MODE_All /**< Send opcode, byte0, byte1. */
+} nrf_qspi_addrconfig_mode_t;
+
+/**
+ * @brief Erasing data length.
+ */
+typedef enum
+{
+ NRF_QSPI_ERASE_LEN_4KB = QSPI_ERASE_LEN_LEN_4KB, /**< Erase 4 kB block (flash command 0x20). */
+ NRF_QSPI_ERASE_LEN_64KB = QSPI_ERASE_LEN_LEN_64KB, /**< Erase 64 kB block (flash command 0xD8). */
+ NRF_QSPI_ERASE_LEN_ALL = QSPI_ERASE_LEN_LEN_All /**< Erase all (flash command 0xC7). */
+} nrf_qspi_erase_len_t;
+
+/**
+ * @brief Custom instruction length.
+ */
+typedef enum
+{
+ NRF_QSPI_CINSTR_LEN_1B = QSPI_CINSTRCONF_LENGTH_1B, /**< Send opcode only. */
+ NRF_QSPI_CINSTR_LEN_2B = QSPI_CINSTRCONF_LENGTH_2B, /**< Send opcode, CINSTRDAT0.BYTE0. */
+ NRF_QSPI_CINSTR_LEN_3B = QSPI_CINSTRCONF_LENGTH_3B, /**< Send opcode, CINSTRDAT0.BYTE0 -> CINSTRDAT0.BYTE1. */
+ NRF_QSPI_CINSTR_LEN_4B = QSPI_CINSTRCONF_LENGTH_4B, /**< Send opcode, CINSTRDAT0.BYTE0 -> CINSTRDAT0.BYTE2. */
+ NRF_QSPI_CINSTR_LEN_5B = QSPI_CINSTRCONF_LENGTH_5B, /**< Send opcode, CINSTRDAT0.BYTE0 -> CINSTRDAT0.BYTE3. */
+ NRF_QSPI_CINSTR_LEN_6B = QSPI_CINSTRCONF_LENGTH_6B, /**< Send opcode, CINSTRDAT0.BYTE0 -> CINSTRDAT1.BYTE4. */
+ NRF_QSPI_CINSTR_LEN_7B = QSPI_CINSTRCONF_LENGTH_7B, /**< Send opcode, CINSTRDAT0.BYTE0 -> CINSTRDAT1.BYTE5. */
+ NRF_QSPI_CINSTR_LEN_8B = QSPI_CINSTRCONF_LENGTH_8B, /**< Send opcode, CINSTRDAT0.BYTE0 -> CINSTRDAT1.BYTE6. */
+ NRF_QSPI_CINSTR_LEN_9B = QSPI_CINSTRCONF_LENGTH_9B /**< Send opcode, CINSTRDAT0.BYTE0 -> CINSTRDAT1.BYTE7. */
+} nrf_qspi_cinstr_len_t;
+
+/**
+ * @brief Pins configuration.
+ */
+typedef struct
+{
+ uint8_t sck_pin; /**< SCK pin number. */
+ uint8_t csn_pin; /**< Chip select pin number. */
+ uint8_t io0_pin; /**< IO0/MOSI pin number. */
+ uint8_t io1_pin; /**< IO1/MISO pin number. */
+ uint8_t io2_pin; /**< IO2 pin number (optional).
+ * Set to @ref NRF_QSPI_PIN_NOT_CONNECTED if this signal is not needed.
+ */
+ uint8_t io3_pin; /**< IO3 pin number (optional).
+ * Set to @ref NRF_QSPI_PIN_NOT_CONNECTED if this signal is not needed.
+ */
+} nrf_qspi_pins_t;
+
+/**
+ * @brief Custom instruction configuration.
+ */
+typedef struct
+{
+ uint8_t opcode; /**< Opcode used in custom instruction transmission. */
+ nrf_qspi_cinstr_len_t length; /**< Length of the custom instruction data. */
+ bool io2_level; /**< I/O line level during transmission. */
+ bool io3_level; /**< I/O line level during transmission. */
+ bool wipwait; /**< Wait if a Wait in Progress bit is set in the memory status byte. */
+ bool wren; /**< Send write enable before instruction. */
+} nrf_qspi_cinstr_conf_t;
+
+/**
+ * @brief Addressing mode register configuration. See @ref nrf_qspi_addrconfig_set
+ */
+typedef struct
+{
+ uint8_t opcode; /**< Opcode used to enter proper addressing mode. */
+ uint8_t byte0; /**< Byte following the opcode. */
+ uint8_t byte1; /**< Byte following byte0. */
+ nrf_qspi_addrconfig_mode_t mode; /**< Extended addresing mode. */
+ bool wipwait; /**< Enable/disable waiting for complete operation execution. */
+ bool wren; /**< Send write enable before instruction. */
+} nrf_qspi_addrconfig_conf_t;
+
+/**
+ * @brief Structure with QSPI protocol interface configuration.
+ */
+typedef struct
+{
+ nrf_qspi_readoc_t readoc; /**< Read operation code. */
+ nrf_qspi_writeoc_t writeoc; /**< Write operation code. */
+ nrf_qspi_addrmode_t addrmode; /**< Addresing mode (24-bit or 32-bit). */
+ bool dpmconfig; /**< Enable the Deep Power-down Mode (DPM) feature. */
+} nrf_qspi_prot_conf_t;
+
+/**
+ * @brief QSPI physical interface configuration.
+ */
+typedef struct
+{
+ uint8_t sck_delay; /**< tSHSL, tWHSL, and tSHWL in number of 16 MHz periods (62.5ns). */
+ bool dpmen; /**< Enable the DPM feature. */
+ nrf_qspi_spi_mode_t spi_mode; /**< SPI phase and polarization. */
+ nrf_qspi_frequency_t sck_freq; /**< SCK frequency given as enum @ref nrf_qspi_frequency_t. */
+} nrf_qspi_phy_conf_t;
+
+/**
+ * @brief Function for activating a specific QSPI task.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] task Task to activate.
+ */
+__STATIC_INLINE void nrf_qspi_task_trigger(NRF_QSPI_Type * p_reg, nrf_qspi_task_t task);
+
+/**
+ * @brief Function for getting the address of a specific QSPI task register.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] task Requested task.
+ *
+ * @return Address of the specified task register.
+ */
+__STATIC_INLINE uint32_t nrf_qspi_task_address_get(NRF_QSPI_Type const * p_reg,
+ nrf_qspi_task_t task);
+
+/**
+ * @brief Function for clearing a specific QSPI event.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] qspi_event Event to clear.
+ */
+__STATIC_INLINE void nrf_qspi_event_clear(NRF_QSPI_Type * p_reg, nrf_qspi_event_t qspi_event);
+
+/**
+ * @brief Function for checking the state of a specific SPI event.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] qspi_event Event to check.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_qspi_event_check(NRF_QSPI_Type const * p_reg, nrf_qspi_event_t qspi_event);
+
+/**
+ * @brief Function for getting the address of a specific QSPI event register.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] qspi_event Requested event.
+ *
+ * @return Address of the specified event register.
+ */
+__STATIC_INLINE uint32_t * nrf_qspi_event_address_get(NRF_QSPI_Type const * p_reg,
+ nrf_qspi_event_t qspi_event);
+
+/**
+ * @brief Function for enabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] qspi_int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_qspi_int_enable(NRF_QSPI_Type * p_reg, uint32_t qspi_int_mask);
+
+/**
+ * @brief Function for disabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] qspi_int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_qspi_int_disable(NRF_QSPI_Type * p_reg, uint32_t qspi_int_mask);
+
+/**
+ * @brief Function for retrieving the state of a given interrupt.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] qspi_int Interrupt to check.
+ *
+ * @retval true If the interrupt is enabled.
+ * @retval false If the interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_qspi_int_enable_check(NRF_QSPI_Type const * p_reg,
+ nrf_qspi_int_mask_t qspi_int);
+
+/**
+ * @brief Function for enabling the QSPI peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ */
+__STATIC_INLINE void nrf_qspi_enable(NRF_QSPI_Type * p_reg);
+
+/**
+ * @brief Function for disabling the QSPI peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ */
+__STATIC_INLINE void nrf_qspi_disable(NRF_QSPI_Type * p_reg);
+
+/**
+ * @brief Function for configuring QSPI pins.
+ *
+ * If a given signal is not needed, pass the @ref NRF_QSPI_PIN_NOT_CONNECTED
+ * value instead of its pin number.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] p_pins Pointer to the pins configuration structure. See @ref nrf_qspi_pins_t.
+ */
+__STATIC_INLINE void nrf_qspi_pins_set(NRF_QSPI_Type * p_reg,
+ const nrf_qspi_pins_t * p_pins);
+
+/**
+ * @brief Function for setting the QSPI XIPOFFSET register.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] xip_offset Address offset in the external memory for Execute in Place operation.
+ */
+__STATIC_INLINE void nrf_qspi_xip_offset_set(NRF_QSPI_Type * p_reg,
+ uint32_t xip_offset);
+
+/**
+ * @brief Function for setting the QSPI IFCONFIG0 register.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] p_config Pointer to the QSPI protocol interface configuration structure. See @ref nrf_qspi_prot_conf_t.
+ */
+__STATIC_INLINE void nrf_qspi_ifconfig0_set(NRF_QSPI_Type * p_reg,
+ const nrf_qspi_prot_conf_t * p_config);
+
+/**
+ * @brief Function for setting the QSPI IFCONFIG1 register.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] p_config Pointer to the QSPI physical interface configuration structure. See @ref nrf_qspi_phy_conf_t.
+ */
+__STATIC_INLINE void nrf_qspi_ifconfig1_set(NRF_QSPI_Type * p_reg,
+ const nrf_qspi_phy_conf_t * p_config);
+
+/**
+ * @brief Function for setting the QSPI ADDRCONF register.
+ *
+ * Function must be executed before sending task NRF_QSPI_TASK_ACTIVATE. Data stored in the structure
+ * is sent during the start of the peripheral. Remember that the reset instruction can set
+ * addressing mode to default in the memory device. If memory reset is necessary before configuring
+ * the addressing mode, use custom instruction feature instead of this function.
+ * Case with reset: Enable the peripheral without setting ADDRCONF register, send reset instructions
+ * using a custom instruction feature (reset enable and then reset), set proper addressing mode
+ * using the custom instruction feature.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] p_config Pointer to the addressing mode configuration structure. See @ref nrf_qspi_addrconfig_conf_t.
+*/
+__STATIC_INLINE void nrf_qspi_addrconfig_set(NRF_QSPI_Type * p_reg,
+ const nrf_qspi_addrconfig_conf_t * p_config);
+
+/**
+ * @brief Function for setting write data into the peripheral register (without starting the process).
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] p_buffer Pointer to the writing buffer.
+ * @param[in] length Lenght of the writing data.
+ * @param[in] dest_addr Address in memory to write to.
+ */
+__STATIC_INLINE void nrf_qspi_write_buffer_set(NRF_QSPI_Type * p_reg,
+ void const * p_buffer,
+ uint32_t length,
+ uint32_t dest_addr);
+
+/**
+ * @brief Function for setting read data into the peripheral register (without starting the process).
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[out] p_buffer Pointer to the reading buffer.
+ * @param[in] length Length of the read data.
+ * @param[in] src_addr Address in memory to read from.
+ */
+__STATIC_INLINE void nrf_qspi_read_buffer_set(NRF_QSPI_Type * p_reg,
+ void * p_buffer,
+ uint32_t length,
+ uint32_t src_addr);
+
+/**
+ * @brief Function for setting erase data into the peripheral register (without starting the process).
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] erase_addr Start address to erase. Address must have padding set to 4 bytes.
+ * @param[in] len Size of erasing area.
+ */
+__STATIC_INLINE void nrf_qspi_erase_ptr_set(NRF_QSPI_Type * p_reg,
+ uint32_t erase_addr,
+ nrf_qspi_erase_len_t len);
+
+/**
+ * @brief Function for getting the peripheral status register.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ *
+ * @return Peripheral status register.
+ */
+__STATIC_INLINE uint32_t nrf_qspi_status_reg_get(NRF_QSPI_Type const * p_reg);
+
+/**
+ * @brief Function for getting the device status register stored in the peripheral status register.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ *
+ * @return Device status register (lower byte).
+ */
+__STATIC_INLINE uint8_t nrf_qspi_sreg_get(NRF_QSPI_Type const * p_reg);
+
+/**
+ * @brief Function for checking if the peripheral is busy or not.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ *
+ * @retval true If QSPI is busy.
+ * @retval false If QSPI is ready.
+ */
+__STATIC_INLINE bool nrf_qspi_busy_check(NRF_QSPI_Type const * p_reg);
+
+/**
+ * @brief Function for setting registers sending with custom instruction transmission.
+ *
+ * This function can be ommited when using NRF_QSPI_CINSTR_LEN_1B as the length argument
+ * (sending only opcode without data).
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] length Length of the custom instruction data.
+ * @param[in] p_tx_data Pointer to the data to send with the custom instruction.
+ */
+__STATIC_INLINE void nrf_qspi_cinstrdata_set(NRF_QSPI_Type * p_reg,
+ nrf_qspi_cinstr_len_t length,
+ void const * p_tx_data);
+
+/**
+ * @brief Function for getting data from register after custom instruction transmission.
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] length Length of the custom instruction data.
+ * @param[in] p_rx_data Pointer to the reading buffer.
+ */
+__STATIC_INLINE void nrf_qspi_cinstrdata_get(NRF_QSPI_Type const * p_reg,
+ nrf_qspi_cinstr_len_t length,
+ void * p_rx_data);
+
+/**
+ * @brief Function for sending custom instruction to external memory.
+ *
+ * @param[in] p_reg Pointer to the peripheral register structure.
+ * @param[in] p_config Pointer to the custom instruction configuration structure. See @ref nrf_qspi_cinstr_conf_t.
+ */
+
+__STATIC_INLINE void nrf_qspi_cinstr_transfer_start(NRF_QSPI_Type * p_reg,
+ const nrf_qspi_cinstr_conf_t * p_config);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_qspi_task_trigger(NRF_QSPI_Type * p_reg, nrf_qspi_task_t task)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t nrf_qspi_task_address_get(NRF_QSPI_Type const * p_reg,
+ nrf_qspi_task_t task)
+{
+ return ((uint32_t)p_reg + (uint32_t)task);
+}
+
+__STATIC_INLINE void nrf_qspi_event_clear(NRF_QSPI_Type * p_reg, nrf_qspi_event_t qspi_event)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)qspi_event)) = 0x0UL;
+}
+
+__STATIC_INLINE bool nrf_qspi_event_check(NRF_QSPI_Type const * p_reg, nrf_qspi_event_t qspi_event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)qspi_event);
+}
+
+__STATIC_INLINE uint32_t * nrf_qspi_event_address_get(NRF_QSPI_Type const * p_reg,
+ nrf_qspi_event_t qspi_event)
+{
+ return (uint32_t *)((uint8_t *)p_reg + (uint32_t)qspi_event);
+}
+
+__STATIC_INLINE void nrf_qspi_int_enable(NRF_QSPI_Type * p_reg, uint32_t qspi_int_mask)
+{
+ p_reg->INTENSET = qspi_int_mask;
+}
+
+__STATIC_INLINE void nrf_qspi_int_disable(NRF_QSPI_Type * p_reg, uint32_t qspi_int_mask)
+{
+ p_reg->INTENCLR = qspi_int_mask;
+}
+
+__STATIC_INLINE bool nrf_qspi_int_enable_check(NRF_QSPI_Type const * p_reg,
+ nrf_qspi_int_mask_t qspi_int)
+{
+ return (bool)(p_reg->INTENSET & qspi_int);
+}
+
+__STATIC_INLINE void nrf_qspi_enable(NRF_QSPI_Type * p_reg)
+{
+ p_reg->ENABLE = (QSPI_ENABLE_ENABLE_Enabled << QSPI_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_qspi_disable(NRF_QSPI_Type * p_reg)
+{
+ p_reg->ENABLE = (QSPI_ENABLE_ENABLE_Disabled << QSPI_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_qspi_pins_set(NRF_QSPI_Type * p_reg, const nrf_qspi_pins_t * p_pins)
+{
+ p_reg->PSEL.SCK = NRF_QSPI_PIN_VAL(p_pins->sck_pin);
+ p_reg->PSEL.CSN = NRF_QSPI_PIN_VAL(p_pins->csn_pin);
+ p_reg->PSEL.IO0 = NRF_QSPI_PIN_VAL(p_pins->io0_pin);
+ p_reg->PSEL.IO1 = NRF_QSPI_PIN_VAL(p_pins->io1_pin);
+ p_reg->PSEL.IO2 = NRF_QSPI_PIN_VAL(p_pins->io2_pin);
+ p_reg->PSEL.IO3 = NRF_QSPI_PIN_VAL(p_pins->io3_pin);
+}
+
+__STATIC_INLINE void nrf_qspi_xip_offset_set(NRF_QSPI_Type * p_reg,
+ uint32_t xip_offset)
+{
+ p_reg->XIPOFFSET = xip_offset;
+}
+
+__STATIC_INLINE void nrf_qspi_ifconfig0_set(NRF_QSPI_Type * p_reg,
+ const nrf_qspi_prot_conf_t * p_config)
+{
+ uint32_t config = p_config->readoc;
+ config |= ((uint32_t)p_config->writeoc) << QSPI_IFCONFIG0_WRITEOC_Pos;
+ config |= ((uint32_t)p_config->addrmode) << QSPI_IFCONFIG0_ADDRMODE_Pos;
+ config |= (p_config->dpmconfig ? 1U : 0U ) << QSPI_IFCONFIG0_DPMENABLE_Pos;
+
+ p_reg->IFCONFIG0 = config;
+}
+
+__STATIC_INLINE void nrf_qspi_ifconfig1_set(NRF_QSPI_Type * p_reg,
+ const nrf_qspi_phy_conf_t * p_config)
+{
+ // IFCONFIG1 mask for reserved fields in the register.
+ uint32_t config = p_reg->IFCONFIG1 & 0x00FFFF00;
+ config |= p_config->sck_delay;
+ config |= (p_config->dpmen ? 1U : 0U) << QSPI_IFCONFIG1_DPMEN_Pos;
+ config |= ((uint32_t)(p_config->spi_mode)) << QSPI_IFCONFIG1_SPIMODE_Pos;
+ config |= ((uint32_t)(p_config->sck_freq)) << QSPI_IFCONFIG1_SCKFREQ_Pos;
+
+ p_reg->IFCONFIG1 = config;
+}
+
+__STATIC_INLINE void nrf_qspi_addrconfig_set(NRF_QSPI_Type * p_reg,
+ const nrf_qspi_addrconfig_conf_t * p_config)
+{
+ uint32_t config = p_config->opcode;
+ config |= ((uint32_t)p_config->byte0) << QSPI_ADDRCONF_BYTE0_Pos;
+ config |= ((uint32_t)p_config->byte1) << QSPI_ADDRCONF_BYTE1_Pos;
+ config |= ((uint32_t)(p_config->mode)) << QSPI_ADDRCONF_MODE_Pos;
+ config |= (p_config->wipwait ? 1U : 0U) << QSPI_ADDRCONF_WIPWAIT_Pos;
+ config |= (p_config->wren ? 1U : 0U) << QSPI_ADDRCONF_WREN_Pos;
+
+ p_reg->ADDRCONF = config;
+}
+
+__STATIC_INLINE void nrf_qspi_write_buffer_set(NRF_QSPI_Type * p_reg,
+ void const * p_buffer,
+ uint32_t length,
+ uint32_t dest_addr)
+{
+ p_reg->WRITE.DST = dest_addr;
+ p_reg->WRITE.SRC = (uint32_t) p_buffer;
+ p_reg->WRITE.CNT = length;
+}
+
+__STATIC_INLINE void nrf_qspi_read_buffer_set(NRF_QSPI_Type * p_reg,
+ void * p_buffer,
+ uint32_t length,
+ uint32_t src_addr)
+{
+ p_reg->READ.SRC = src_addr;
+ p_reg->READ.DST = (uint32_t) p_buffer;
+ p_reg->READ.CNT = length;
+}
+
+__STATIC_INLINE void nrf_qspi_erase_ptr_set(NRF_QSPI_Type * p_reg,
+ uint32_t erase_addr,
+ nrf_qspi_erase_len_t len)
+{
+ p_reg->ERASE.PTR = erase_addr;
+ p_reg->ERASE.LEN = len;
+}
+
+__STATIC_INLINE uint32_t nrf_qspi_status_reg_get(NRF_QSPI_Type const * p_reg)
+{
+ return p_reg->STATUS;
+}
+
+__STATIC_INLINE uint8_t nrf_qspi_sreg_get(NRF_QSPI_Type const * p_reg)
+{
+ return (uint8_t)(p_reg->STATUS & QSPI_STATUS_SREG_Msk) >> QSPI_STATUS_SREG_Pos;
+}
+
+__STATIC_INLINE bool nrf_qspi_busy_check(NRF_QSPI_Type const * p_reg)
+{
+ return ((p_reg->STATUS & QSPI_STATUS_READY_Msk) >>
+ QSPI_STATUS_READY_Pos) == QSPI_STATUS_READY_BUSY;
+}
+
+__STATIC_INLINE void nrf_qspi_cinstrdata_set(NRF_QSPI_Type * p_reg,
+ nrf_qspi_cinstr_len_t length,
+ void const * p_tx_data)
+{
+ uint32_t reg = 0;
+ uint8_t const *p_tx_data_8 = (uint8_t const *) p_tx_data;
+
+ // Load custom instruction.
+ switch (length)
+ {
+ case NRF_QSPI_CINSTR_LEN_9B:
+ reg |= ((uint32_t)p_tx_data_8[7]) << QSPI_CINSTRDAT1_BYTE7_Pos;
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_8B:
+ reg |= ((uint32_t)p_tx_data_8[6]) << QSPI_CINSTRDAT1_BYTE6_Pos;
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_7B:
+ reg |= ((uint32_t)p_tx_data_8[5]) << QSPI_CINSTRDAT1_BYTE5_Pos;
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_6B:
+ reg |= ((uint32_t)p_tx_data_8[4]);
+ p_reg->CINSTRDAT1 = reg;
+ reg = 0;
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_5B:
+ reg |= ((uint32_t)p_tx_data_8[3]) << QSPI_CINSTRDAT0_BYTE3_Pos;
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_4B:
+ reg |= ((uint32_t)p_tx_data_8[2]) << QSPI_CINSTRDAT0_BYTE2_Pos;
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_3B:
+ reg |= ((uint32_t)p_tx_data_8[1]) << QSPI_CINSTRDAT0_BYTE1_Pos;
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_2B:
+ reg |= ((uint32_t)p_tx_data_8[0]);
+ p_reg->CINSTRDAT0 = reg;
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_1B:
+ /* Send only opcode. Case to avoid compiler warnings. */
+ break;
+ default:
+ break;
+ }
+}
+
+__STATIC_INLINE void nrf_qspi_cinstrdata_get(NRF_QSPI_Type const * p_reg,
+ nrf_qspi_cinstr_len_t length,
+ void * p_rx_data)
+{
+ uint8_t *p_rx_data_8 = (uint8_t *) p_rx_data;
+
+ uint32_t reg = p_reg->CINSTRDAT1;
+ switch (length)
+ {
+ case NRF_QSPI_CINSTR_LEN_9B:
+ p_rx_data_8[7] = (uint8_t)(reg >> QSPI_CINSTRDAT1_BYTE7_Pos);
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_8B:
+ p_rx_data_8[6] = (uint8_t)(reg >> QSPI_CINSTRDAT1_BYTE6_Pos);
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_7B:
+ p_rx_data_8[5] = (uint8_t)(reg >> QSPI_CINSTRDAT1_BYTE5_Pos);
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_6B:
+ p_rx_data_8[4] = (uint8_t)(reg);
+ /* fall-through */
+ default:
+ break;
+ }
+
+ reg = p_reg->CINSTRDAT0;
+ switch (length)
+ {
+ case NRF_QSPI_CINSTR_LEN_5B:
+ p_rx_data_8[3] = (uint8_t)(reg >> QSPI_CINSTRDAT0_BYTE3_Pos);
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_4B:
+ p_rx_data_8[2] = (uint8_t)(reg >> QSPI_CINSTRDAT0_BYTE2_Pos);
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_3B:
+ p_rx_data_8[1] = (uint8_t)(reg >> QSPI_CINSTRDAT0_BYTE1_Pos);
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_2B:
+ p_rx_data_8[0] = (uint8_t)(reg);
+ /* fall-through */
+ case NRF_QSPI_CINSTR_LEN_1B:
+ /* Send only opcode. Case to avoid compiler warnings. */
+ break;
+ default:
+ break;
+ }
+}
+
+__STATIC_INLINE void nrf_qspi_cinstr_transfer_start(NRF_QSPI_Type * p_reg,
+ const nrf_qspi_cinstr_conf_t * p_config)
+{
+ p_reg->CINSTRCONF = (((uint32_t)p_config->opcode << QSPI_CINSTRCONF_OPCODE_Pos) |
+ ((uint32_t)p_config->length << QSPI_CINSTRCONF_LENGTH_Pos) |
+ ((uint32_t)p_config->io2_level << QSPI_CINSTRCONF_LIO2_Pos) |
+ ((uint32_t)p_config->io3_level << QSPI_CINSTRCONF_LIO3_Pos) |
+ ((uint32_t)p_config->wipwait << QSPI_CINSTRCONF_WIPWAIT_Pos) |
+ ((uint32_t)p_config->wren << QSPI_CINSTRCONF_WREN_Pos));
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_QSPI_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_rng.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_rng.h
new file mode 100644
index 0000000..62f60c0
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_rng.h
@@ -0,0 +1,274 @@
+/**
+ * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_RNG_H__
+#define NRF_RNG_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_rng_hal RNG HAL
+ * @{
+ * @ingroup nrf_rng
+ * @brief Hardware access layer for managing the Random Number Generator (RNG) peripheral.
+ */
+
+#define NRF_RNG_TASK_SET (1UL)
+#define NRF_RNG_EVENT_CLEAR (0UL)
+/**
+ * @enum nrf_rng_task_t
+ * @brief RNG tasks.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_RNG_TASK_START = offsetof(NRF_RNG_Type, TASKS_START), /**< Start the random number generator. */
+ NRF_RNG_TASK_STOP = offsetof(NRF_RNG_Type, TASKS_STOP) /**< Stop the random number generator. */
+} nrf_rng_task_t; /*lint -restore */
+
+/**
+ * @enum nrf_rng_event_t
+ * @brief RNG events.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_RNG_EVENT_VALRDY = offsetof(NRF_RNG_Type, EVENTS_VALRDY) /**< New random number generated event. */
+} nrf_rng_event_t; /*lint -restore */
+
+/**
+ * @enum nrf_rng_int_mask_t
+ * @brief RNG interrupts.
+ */
+typedef enum
+{
+ NRF_RNG_INT_VALRDY_MASK = RNG_INTENSET_VALRDY_Msk /**< Mask for enabling or disabling an interrupt on VALRDY event. */
+} nrf_rng_int_mask_t;
+
+/**
+ * @enum nrf_rng_short_mask_t
+ * @brief Types of RNG shortcuts.
+ */
+typedef enum
+{
+ NRF_RNG_SHORT_VALRDY_STOP_MASK = RNG_SHORTS_VALRDY_STOP_Msk /**< Mask for setting shortcut between EVENT_VALRDY and TASK_STOP. */
+} nrf_rng_short_mask_t;
+
+/**
+ * @brief Function for enabling interrupts.
+ *
+ * @param[in] rng_int_mask Mask of interrupts.
+ */
+__STATIC_INLINE void nrf_rng_int_enable(uint32_t rng_int_mask);
+
+/**
+ * @brief Function for disabling interrupts.
+ *
+ * @param[in] rng_int_mask Mask of interrupts.
+ */
+__STATIC_INLINE void nrf_rng_int_disable(uint32_t rng_int_mask);
+
+/**
+ * @brief Function for getting the state of a specific interrupt.
+ *
+ * @param[in] rng_int_mask Interrupt.
+ *
+ * @retval true If the interrupt is not enabled.
+ * @retval false If the interrupt is enabled.
+ */
+__STATIC_INLINE bool nrf_rng_int_get(nrf_rng_int_mask_t rng_int_mask);
+
+/**
+ * @brief Function for getting the address of a specific task.
+ *
+ * This function can be used by the PPI module.
+ *
+ * @param[in] rng_task Task.
+ */
+__STATIC_INLINE uint32_t * nrf_rng_task_address_get(nrf_rng_task_t rng_task);
+
+/**
+ * @brief Function for setting a specific task.
+ *
+ * @param[in] rng_task Task.
+ */
+__STATIC_INLINE void nrf_rng_task_trigger(nrf_rng_task_t rng_task);
+
+/**
+ * @brief Function for getting address of a specific event.
+ *
+ * This function can be used by the PPI module.
+ *
+ * @param[in] rng_event Event.
+ */
+__STATIC_INLINE uint32_t * nrf_rng_event_address_get(nrf_rng_event_t rng_event);
+
+/**
+ * @brief Function for clearing a specific event.
+ *
+ * @param[in] rng_event Event.
+ */
+__STATIC_INLINE void nrf_rng_event_clear(nrf_rng_event_t rng_event);
+
+/**
+ * @brief Function for getting the state of a specific event.
+ *
+ * @param[in] rng_event Event.
+ *
+ * @retval true If the event is not set.
+ * @retval false If the event is set.
+ */
+__STATIC_INLINE bool nrf_rng_event_get(nrf_rng_event_t rng_event);
+
+/**
+ * @brief Function for setting shortcuts.
+ *
+ * @param[in] rng_short_mask Mask of shortcuts.
+ *
+ */
+__STATIC_INLINE void nrf_rng_shorts_enable(uint32_t rng_short_mask);
+
+/**
+ * @brief Function for clearing shortcuts.
+ *
+ * @param[in] rng_short_mask Mask of shortcuts.
+ *
+ */
+__STATIC_INLINE void nrf_rng_shorts_disable(uint32_t rng_short_mask);
+
+/**
+ * @brief Function for getting the previously generated random value.
+ *
+ * @return Previously generated random value.
+ */
+__STATIC_INLINE uint8_t nrf_rng_random_value_get(void);
+
+/**
+ * @brief Function for enabling digital error correction.
+ */
+__STATIC_INLINE void nrf_rng_error_correction_enable(void);
+
+/**
+ * @brief Function for disabling digital error correction.
+ */
+__STATIC_INLINE void nrf_rng_error_correction_disable(void);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_rng_int_enable(uint32_t rng_int_mask)
+{
+ NRF_RNG->INTENSET = rng_int_mask;
+}
+
+__STATIC_INLINE void nrf_rng_int_disable(uint32_t rng_int_mask)
+{
+ NRF_RNG->INTENCLR = rng_int_mask;
+}
+
+__STATIC_INLINE bool nrf_rng_int_get(nrf_rng_int_mask_t rng_int_mask)
+{
+ return (bool)(NRF_RNG->INTENCLR & rng_int_mask);
+}
+
+__STATIC_INLINE uint32_t * nrf_rng_task_address_get(nrf_rng_task_t rng_task)
+{
+ return (uint32_t *)((uint8_t *)NRF_RNG + rng_task);
+}
+
+__STATIC_INLINE void nrf_rng_task_trigger(nrf_rng_task_t rng_task)
+{
+ *((volatile uint32_t *)((uint8_t *)NRF_RNG + rng_task)) = NRF_RNG_TASK_SET;
+}
+
+__STATIC_INLINE uint32_t * nrf_rng_event_address_get(nrf_rng_event_t rng_event)
+{
+ return (uint32_t *)((uint8_t *)NRF_RNG + rng_event);
+}
+
+__STATIC_INLINE void nrf_rng_event_clear(nrf_rng_event_t rng_event)
+{
+ *((volatile uint32_t *)((uint8_t *)NRF_RNG + rng_event)) = NRF_RNG_EVENT_CLEAR;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)NRF_RNG + rng_event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE bool nrf_rng_event_get(nrf_rng_event_t rng_event)
+{
+ return (bool) * ((volatile uint32_t *)((uint8_t *)NRF_RNG + rng_event));
+}
+
+__STATIC_INLINE void nrf_rng_shorts_enable(uint32_t rng_short_mask)
+{
+ NRF_RNG->SHORTS |= rng_short_mask;
+}
+
+__STATIC_INLINE void nrf_rng_shorts_disable(uint32_t rng_short_mask)
+{
+ NRF_RNG->SHORTS &= ~rng_short_mask;
+}
+
+__STATIC_INLINE uint8_t nrf_rng_random_value_get(void)
+{
+ return (uint8_t)(NRF_RNG->VALUE & RNG_VALUE_VALUE_Msk);
+}
+
+__STATIC_INLINE void nrf_rng_error_correction_enable(void)
+{
+ NRF_RNG->CONFIG |= RNG_CONFIG_DERCEN_Msk;
+}
+
+__STATIC_INLINE void nrf_rng_error_correction_disable(void)
+{
+ NRF_RNG->CONFIG &= ~RNG_CONFIG_DERCEN_Msk;
+}
+
+#endif
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NRF_RNG_H__ */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_rtc.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_rtc.h
new file mode 100644
index 0000000..d4770d5
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_rtc.h
@@ -0,0 +1,330 @@
+/**
+ * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_RTC_H
+#define NRF_RTC_H
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_rtc_hal RTC HAL
+ * @{
+ * @ingroup nrf_rtc
+ * @brief Hardware access layer for managing the Real Time Counter (RTC) peripheral.
+ */
+
+/**
+ * @brief Macro for getting the number of compare channels available
+ * in a given RTC instance.
+ */
+
+#define NRF_RTC_CC_CHANNEL_COUNT(id) NRFX_CONCAT_3(RTC, id, _CC_NUM)
+
+#define RTC_INPUT_FREQ 32768 /**< Input frequency of the RTC instance. */
+
+/**
+ * @brief Macro for converting expected frequency to prescaler setting.
+ */
+#define RTC_FREQ_TO_PRESCALER(FREQ) (uint16_t)(((RTC_INPUT_FREQ) / (FREQ)) - 1)
+
+/**< Macro for wrapping values to RTC capacity. */
+#define RTC_WRAP(val) ((val) & RTC_COUNTER_COUNTER_Msk)
+
+#define RTC_CHANNEL_INT_MASK(ch) ((uint32_t)(NRF_RTC_INT_COMPARE0_MASK) << (ch))
+#define RTC_CHANNEL_EVENT_ADDR(ch) (nrf_rtc_event_t)((NRF_RTC_EVENT_COMPARE_0) + (ch) * sizeof(uint32_t))
+/**
+ * @enum nrf_rtc_task_t
+ * @brief RTC tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_RTC_TASK_START = offsetof(NRF_RTC_Type,TASKS_START), /**< Start. */
+ NRF_RTC_TASK_STOP = offsetof(NRF_RTC_Type,TASKS_STOP), /**< Stop. */
+ NRF_RTC_TASK_CLEAR = offsetof(NRF_RTC_Type,TASKS_CLEAR), /**< Clear. */
+ NRF_RTC_TASK_TRIGGER_OVERFLOW = offsetof(NRF_RTC_Type,TASKS_TRIGOVRFLW),/**< Trigger overflow. */
+ /*lint -restore*/
+} nrf_rtc_task_t;
+
+/**
+ * @enum nrf_rtc_event_t
+ * @brief RTC events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_RTC_EVENT_TICK = offsetof(NRF_RTC_Type,EVENTS_TICK), /**< Tick event. */
+ NRF_RTC_EVENT_OVERFLOW = offsetof(NRF_RTC_Type,EVENTS_OVRFLW), /**< Overflow event. */
+ NRF_RTC_EVENT_COMPARE_0 = offsetof(NRF_RTC_Type,EVENTS_COMPARE[0]), /**< Compare 0 event. */
+ NRF_RTC_EVENT_COMPARE_1 = offsetof(NRF_RTC_Type,EVENTS_COMPARE[1]), /**< Compare 1 event. */
+ NRF_RTC_EVENT_COMPARE_2 = offsetof(NRF_RTC_Type,EVENTS_COMPARE[2]), /**< Compare 2 event. */
+ NRF_RTC_EVENT_COMPARE_3 = offsetof(NRF_RTC_Type,EVENTS_COMPARE[3]) /**< Compare 3 event. */
+ /*lint -restore*/
+} nrf_rtc_event_t;
+
+/**
+ * @enum nrf_rtc_int_t
+ * @brief RTC interrupts.
+ */
+typedef enum
+{
+ NRF_RTC_INT_TICK_MASK = RTC_INTENSET_TICK_Msk, /**< RTC interrupt from tick event. */
+ NRF_RTC_INT_OVERFLOW_MASK = RTC_INTENSET_OVRFLW_Msk, /**< RTC interrupt from overflow event. */
+ NRF_RTC_INT_COMPARE0_MASK = RTC_INTENSET_COMPARE0_Msk, /**< RTC interrupt from compare event on channel 0. */
+ NRF_RTC_INT_COMPARE1_MASK = RTC_INTENSET_COMPARE1_Msk, /**< RTC interrupt from compare event on channel 1. */
+ NRF_RTC_INT_COMPARE2_MASK = RTC_INTENSET_COMPARE2_Msk, /**< RTC interrupt from compare event on channel 2. */
+ NRF_RTC_INT_COMPARE3_MASK = RTC_INTENSET_COMPARE3_Msk /**< RTC interrupt from compare event on channel 3. */
+} nrf_rtc_int_t;
+
+/**@brief Function for setting a compare value for a channel.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] ch Channel.
+ * @param[in] cc_val Compare value to set.
+ */
+__STATIC_INLINE void nrf_rtc_cc_set(NRF_RTC_Type * p_rtc, uint32_t ch, uint32_t cc_val);
+
+/**@brief Function for returning the compare value for a channel.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] ch Channel.
+ *
+ * @return COMPARE[ch] value.
+ */
+__STATIC_INLINE uint32_t nrf_rtc_cc_get(NRF_RTC_Type * p_rtc, uint32_t ch);
+
+/**@brief Function for enabling interrupts.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] mask Interrupt mask to be enabled.
+ */
+__STATIC_INLINE void nrf_rtc_int_enable(NRF_RTC_Type * p_rtc, uint32_t mask);
+
+/**@brief Function for disabling interrupts.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] mask Interrupt mask to be disabled.
+ */
+__STATIC_INLINE void nrf_rtc_int_disable(NRF_RTC_Type * p_rtc, uint32_t mask);
+
+/**@brief Function for checking if interrupts are enabled.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] mask Mask of interrupt flags to check.
+ *
+ * @return Mask with enabled interrupts.
+ */
+__STATIC_INLINE uint32_t nrf_rtc_int_is_enabled(NRF_RTC_Type * p_rtc, uint32_t mask);
+
+/**@brief Function for returning the status of currently enabled interrupts.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ *
+ * @return Value in INTEN register.
+ */
+__STATIC_INLINE uint32_t nrf_rtc_int_get(NRF_RTC_Type * p_rtc);
+
+/**@brief Function for checking if an event is pending.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] event Address of the event.
+ *
+ * @return Mask of pending events.
+ */
+__STATIC_INLINE uint32_t nrf_rtc_event_pending(NRF_RTC_Type * p_rtc, nrf_rtc_event_t event);
+
+/**@brief Function for clearing an event.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] event Event to clear.
+ */
+__STATIC_INLINE void nrf_rtc_event_clear(NRF_RTC_Type * p_rtc, nrf_rtc_event_t event);
+
+/**@brief Function for returning a counter value.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ *
+ * @return Counter value.
+ */
+__STATIC_INLINE uint32_t nrf_rtc_counter_get(NRF_RTC_Type * p_rtc);
+
+/**@brief Function for setting a prescaler value.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] val Value to set the prescaler to.
+ */
+__STATIC_INLINE void nrf_rtc_prescaler_set(NRF_RTC_Type * p_rtc, uint32_t val);
+
+/**@brief Function for returning the address of an event.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] event Requested event.
+ *
+ * @return Address of the requested event register.
+ */
+__STATIC_INLINE uint32_t nrf_rtc_event_address_get(NRF_RTC_Type * p_rtc, nrf_rtc_event_t event);
+
+/**@brief Function for returning the address of a task.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] task Requested task.
+ *
+ * @return Address of the requested task register.
+ */
+__STATIC_INLINE uint32_t nrf_rtc_task_address_get(NRF_RTC_Type * p_rtc, nrf_rtc_task_t task);
+
+/**@brief Function for starting a task.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] task Requested task.
+ */
+__STATIC_INLINE void nrf_rtc_task_trigger(NRF_RTC_Type * p_rtc, nrf_rtc_task_t task);
+
+/**@brief Function for enabling events.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] mask Mask of event flags to enable.
+ */
+__STATIC_INLINE void nrf_rtc_event_enable(NRF_RTC_Type * p_rtc, uint32_t mask);
+
+/**@brief Function for disabling an event.
+ *
+ * @param[in] p_rtc Pointer to the peripheral registers structure.
+ * @param[in] event Requested event.
+ */
+__STATIC_INLINE void nrf_rtc_event_disable(NRF_RTC_Type * p_rtc, uint32_t event);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_rtc_cc_set(NRF_RTC_Type * p_rtc, uint32_t ch, uint32_t cc_val)
+{
+ p_rtc->CC[ch] = cc_val;
+}
+
+__STATIC_INLINE uint32_t nrf_rtc_cc_get(NRF_RTC_Type * p_rtc, uint32_t ch)
+{
+ return p_rtc->CC[ch];
+}
+
+__STATIC_INLINE void nrf_rtc_int_enable(NRF_RTC_Type * p_rtc, uint32_t mask)
+{
+ p_rtc->INTENSET = mask;
+}
+
+__STATIC_INLINE void nrf_rtc_int_disable(NRF_RTC_Type * p_rtc, uint32_t mask)
+{
+ p_rtc->INTENCLR = mask;
+}
+
+__STATIC_INLINE uint32_t nrf_rtc_int_is_enabled(NRF_RTC_Type * p_rtc, uint32_t mask)
+{
+ return (p_rtc->INTENSET & mask);
+}
+
+__STATIC_INLINE uint32_t nrf_rtc_int_get(NRF_RTC_Type * p_rtc)
+{
+ return p_rtc->INTENSET;
+}
+
+__STATIC_INLINE uint32_t nrf_rtc_event_pending(NRF_RTC_Type * p_rtc, nrf_rtc_event_t event)
+{
+ return *(volatile uint32_t *)((uint8_t *)p_rtc + (uint32_t)event);
+}
+
+__STATIC_INLINE void nrf_rtc_event_clear(NRF_RTC_Type * p_rtc, nrf_rtc_event_t event)
+{
+ *((volatile uint32_t *)((uint8_t *)p_rtc + (uint32_t)event)) = 0;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)p_rtc + (uint32_t)event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE uint32_t nrf_rtc_counter_get(NRF_RTC_Type * p_rtc)
+{
+ return p_rtc->COUNTER;
+}
+
+__STATIC_INLINE void nrf_rtc_prescaler_set(NRF_RTC_Type * p_rtc, uint32_t val)
+{
+ NRFX_ASSERT(val <= (RTC_PRESCALER_PRESCALER_Msk >> RTC_PRESCALER_PRESCALER_Pos));
+ p_rtc->PRESCALER = val;
+}
+__STATIC_INLINE uint32_t rtc_prescaler_get(NRF_RTC_Type * p_rtc)
+{
+ return p_rtc->PRESCALER;
+}
+
+__STATIC_INLINE uint32_t nrf_rtc_event_address_get(NRF_RTC_Type * p_rtc, nrf_rtc_event_t event)
+{
+ return (uint32_t)p_rtc + event;
+}
+
+__STATIC_INLINE uint32_t nrf_rtc_task_address_get(NRF_RTC_Type * p_rtc, nrf_rtc_task_t task)
+{
+ return (uint32_t)p_rtc + task;
+}
+
+__STATIC_INLINE void nrf_rtc_task_trigger(NRF_RTC_Type * p_rtc, nrf_rtc_task_t task)
+{
+ *(__IO uint32_t *)((uint32_t)p_rtc + task) = 1;
+}
+
+__STATIC_INLINE void nrf_rtc_event_enable(NRF_RTC_Type * p_rtc, uint32_t mask)
+{
+ p_rtc->EVTENSET = mask;
+}
+__STATIC_INLINE void nrf_rtc_event_disable(NRF_RTC_Type * p_rtc, uint32_t mask)
+{
+ p_rtc->EVTENCLR = mask;
+}
+#endif
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NRF_RTC_H */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_saadc.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_saadc.h
new file mode 100644
index 0000000..fe88356
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_saadc.h
@@ -0,0 +1,615 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_SAADC_H_
+#define NRF_SAADC_H_
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_saadc_hal SAADC HAL
+ * @{
+ * @ingroup nrf_saadc
+ * @brief Hardware access layer for managing the SAADC peripheral.
+ */
+
+#define NRF_SAADC_CHANNEL_COUNT 8
+
+/**
+ * @brief Resolution of the analog-to-digital converter.
+ */
+typedef enum
+{
+ NRF_SAADC_RESOLUTION_8BIT = SAADC_RESOLUTION_VAL_8bit, ///< 8 bit resolution.
+ NRF_SAADC_RESOLUTION_10BIT = SAADC_RESOLUTION_VAL_10bit, ///< 10 bit resolution.
+ NRF_SAADC_RESOLUTION_12BIT = SAADC_RESOLUTION_VAL_12bit, ///< 12 bit resolution.
+ NRF_SAADC_RESOLUTION_14BIT = SAADC_RESOLUTION_VAL_14bit ///< 14 bit resolution.
+} nrf_saadc_resolution_t;
+
+
+/**
+ * @brief Input selection for the analog-to-digital converter.
+ */
+typedef enum
+{
+ NRF_SAADC_INPUT_DISABLED = SAADC_CH_PSELP_PSELP_NC, ///< Not connected.
+ NRF_SAADC_INPUT_AIN0 = SAADC_CH_PSELP_PSELP_AnalogInput0, ///< Analog input 0 (AIN0).
+ NRF_SAADC_INPUT_AIN1 = SAADC_CH_PSELP_PSELP_AnalogInput1, ///< Analog input 1 (AIN1).
+ NRF_SAADC_INPUT_AIN2 = SAADC_CH_PSELP_PSELP_AnalogInput2, ///< Analog input 2 (AIN2).
+ NRF_SAADC_INPUT_AIN3 = SAADC_CH_PSELP_PSELP_AnalogInput3, ///< Analog input 3 (AIN3).
+ NRF_SAADC_INPUT_AIN4 = SAADC_CH_PSELP_PSELP_AnalogInput4, ///< Analog input 4 (AIN4).
+ NRF_SAADC_INPUT_AIN5 = SAADC_CH_PSELP_PSELP_AnalogInput5, ///< Analog input 5 (AIN5).
+ NRF_SAADC_INPUT_AIN6 = SAADC_CH_PSELP_PSELP_AnalogInput6, ///< Analog input 6 (AIN6).
+ NRF_SAADC_INPUT_AIN7 = SAADC_CH_PSELP_PSELP_AnalogInput7, ///< Analog input 7 (AIN7).
+ NRF_SAADC_INPUT_VDD = SAADC_CH_PSELP_PSELP_VDD ///< VDD as input.
+} nrf_saadc_input_t;
+
+
+/**
+ * @brief Analog-to-digital converter oversampling mode.
+ */
+typedef enum
+{
+ NRF_SAADC_OVERSAMPLE_DISABLED = SAADC_OVERSAMPLE_OVERSAMPLE_Bypass, ///< No oversampling.
+ NRF_SAADC_OVERSAMPLE_2X = SAADC_OVERSAMPLE_OVERSAMPLE_Over2x, ///< Oversample 2x.
+ NRF_SAADC_OVERSAMPLE_4X = SAADC_OVERSAMPLE_OVERSAMPLE_Over4x, ///< Oversample 4x.
+ NRF_SAADC_OVERSAMPLE_8X = SAADC_OVERSAMPLE_OVERSAMPLE_Over8x, ///< Oversample 8x.
+ NRF_SAADC_OVERSAMPLE_16X = SAADC_OVERSAMPLE_OVERSAMPLE_Over16x, ///< Oversample 16x.
+ NRF_SAADC_OVERSAMPLE_32X = SAADC_OVERSAMPLE_OVERSAMPLE_Over32x, ///< Oversample 32x.
+ NRF_SAADC_OVERSAMPLE_64X = SAADC_OVERSAMPLE_OVERSAMPLE_Over64x, ///< Oversample 64x.
+ NRF_SAADC_OVERSAMPLE_128X = SAADC_OVERSAMPLE_OVERSAMPLE_Over128x, ///< Oversample 128x.
+ NRF_SAADC_OVERSAMPLE_256X = SAADC_OVERSAMPLE_OVERSAMPLE_Over256x ///< Oversample 256x.
+} nrf_saadc_oversample_t;
+
+
+/**
+ * @brief Analog-to-digital converter channel resistor control.
+ */
+typedef enum
+{
+ NRF_SAADC_RESISTOR_DISABLED = SAADC_CH_CONFIG_RESP_Bypass, ///< Bypass resistor ladder.
+ NRF_SAADC_RESISTOR_PULLDOWN = SAADC_CH_CONFIG_RESP_Pulldown, ///< Pull-down to GND.
+ NRF_SAADC_RESISTOR_PULLUP = SAADC_CH_CONFIG_RESP_Pullup, ///< Pull-up to VDD.
+ NRF_SAADC_RESISTOR_VDD1_2 = SAADC_CH_CONFIG_RESP_VDD1_2 ///< Set input at VDD/2.
+} nrf_saadc_resistor_t;
+
+
+/**
+ * @brief Gain factor of the analog-to-digital converter input.
+ */
+typedef enum
+{
+ NRF_SAADC_GAIN1_6 = SAADC_CH_CONFIG_GAIN_Gain1_6, ///< Gain factor 1/6.
+ NRF_SAADC_GAIN1_5 = SAADC_CH_CONFIG_GAIN_Gain1_5, ///< Gain factor 1/5.
+ NRF_SAADC_GAIN1_4 = SAADC_CH_CONFIG_GAIN_Gain1_4, ///< Gain factor 1/4.
+ NRF_SAADC_GAIN1_3 = SAADC_CH_CONFIG_GAIN_Gain1_3, ///< Gain factor 1/3.
+ NRF_SAADC_GAIN1_2 = SAADC_CH_CONFIG_GAIN_Gain1_2, ///< Gain factor 1/2.
+ NRF_SAADC_GAIN1 = SAADC_CH_CONFIG_GAIN_Gain1, ///< Gain factor 1.
+ NRF_SAADC_GAIN2 = SAADC_CH_CONFIG_GAIN_Gain2, ///< Gain factor 2.
+ NRF_SAADC_GAIN4 = SAADC_CH_CONFIG_GAIN_Gain4, ///< Gain factor 4.
+} nrf_saadc_gain_t;
+
+
+/**
+ * @brief Reference selection for the analog-to-digital converter.
+ */
+typedef enum
+{
+ NRF_SAADC_REFERENCE_INTERNAL = SAADC_CH_CONFIG_REFSEL_Internal, ///< Internal reference (0.6 V).
+ NRF_SAADC_REFERENCE_VDD4 = SAADC_CH_CONFIG_REFSEL_VDD1_4 ///< VDD/4 as reference.
+} nrf_saadc_reference_t;
+
+
+/**
+ * @brief Analog-to-digital converter acquisition time.
+ */
+typedef enum
+{
+ NRF_SAADC_ACQTIME_3US = SAADC_CH_CONFIG_TACQ_3us, ///< 3 us.
+ NRF_SAADC_ACQTIME_5US = SAADC_CH_CONFIG_TACQ_5us, ///< 5 us.
+ NRF_SAADC_ACQTIME_10US = SAADC_CH_CONFIG_TACQ_10us, ///< 10 us.
+ NRF_SAADC_ACQTIME_15US = SAADC_CH_CONFIG_TACQ_15us, ///< 15 us.
+ NRF_SAADC_ACQTIME_20US = SAADC_CH_CONFIG_TACQ_20us, ///< 20 us.
+ NRF_SAADC_ACQTIME_40US = SAADC_CH_CONFIG_TACQ_40us ///< 40 us.
+} nrf_saadc_acqtime_t;
+
+
+/**
+ * @brief Analog-to-digital converter channel mode.
+ */
+typedef enum
+{
+ NRF_SAADC_MODE_SINGLE_ENDED = SAADC_CH_CONFIG_MODE_SE, ///< Single ended, PSELN will be ignored, negative input to ADC shorted to GND.
+ NRF_SAADC_MODE_DIFFERENTIAL = SAADC_CH_CONFIG_MODE_Diff ///< Differential mode.
+} nrf_saadc_mode_t;
+
+
+/**
+ * @brief Analog-to-digital converter channel burst mode.
+ */
+typedef enum
+{
+ NRF_SAADC_BURST_DISABLED = SAADC_CH_CONFIG_BURST_Disabled, ///< Burst mode is disabled (normal operation).
+ NRF_SAADC_BURST_ENABLED = SAADC_CH_CONFIG_BURST_Enabled ///< Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM.
+} nrf_saadc_burst_t;
+
+
+/**
+ * @brief Analog-to-digital converter tasks.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_SAADC_TASK_START = offsetof(NRF_SAADC_Type, TASKS_START), ///< Start the ADC and prepare the result buffer in RAM.
+ NRF_SAADC_TASK_SAMPLE = offsetof(NRF_SAADC_Type, TASKS_SAMPLE), ///< Take one ADC sample. If scan is enabled, all channels are sampled.
+ NRF_SAADC_TASK_STOP = offsetof(NRF_SAADC_Type, TASKS_STOP), ///< Stop the ADC and terminate any on-going conversion.
+ NRF_SAADC_TASK_CALIBRATEOFFSET = offsetof(NRF_SAADC_Type, TASKS_CALIBRATEOFFSET), ///< Starts offset auto-calibration.
+} nrf_saadc_task_t;
+
+
+/**
+ * @brief Analog-to-digital converter events.
+ */
+typedef enum /*lint -save -e30 -esym(628,__INTADDR__) */
+{
+ NRF_SAADC_EVENT_STARTED = offsetof(NRF_SAADC_Type, EVENTS_STARTED), ///< The ADC has started.
+ NRF_SAADC_EVENT_END = offsetof(NRF_SAADC_Type, EVENTS_END), ///< The ADC has filled up the result buffer.
+ NRF_SAADC_EVENT_DONE = offsetof(NRF_SAADC_Type, EVENTS_DONE), ///< A conversion task has been completed.
+ NRF_SAADC_EVENT_RESULTDONE = offsetof(NRF_SAADC_Type, EVENTS_RESULTDONE), ///< A result is ready to get transferred to RAM.
+ NRF_SAADC_EVENT_CALIBRATEDONE = offsetof(NRF_SAADC_Type, EVENTS_CALIBRATEDONE), ///< Calibration is complete.
+ NRF_SAADC_EVENT_STOPPED = offsetof(NRF_SAADC_Type, EVENTS_STOPPED), ///< The ADC has stopped.
+ NRF_SAADC_EVENT_CH0_LIMITH = offsetof(NRF_SAADC_Type, EVENTS_CH[0].LIMITH), ///< Last result is equal or above CH[0].LIMIT.HIGH.
+ NRF_SAADC_EVENT_CH0_LIMITL = offsetof(NRF_SAADC_Type, EVENTS_CH[0].LIMITL), ///< Last result is equal or below CH[0].LIMIT.LOW.
+ NRF_SAADC_EVENT_CH1_LIMITH = offsetof(NRF_SAADC_Type, EVENTS_CH[1].LIMITH), ///< Last result is equal or above CH[1].LIMIT.HIGH.
+ NRF_SAADC_EVENT_CH1_LIMITL = offsetof(NRF_SAADC_Type, EVENTS_CH[1].LIMITL), ///< Last result is equal or below CH[1].LIMIT.LOW.
+ NRF_SAADC_EVENT_CH2_LIMITH = offsetof(NRF_SAADC_Type, EVENTS_CH[2].LIMITH), ///< Last result is equal or above CH[2].LIMIT.HIGH.
+ NRF_SAADC_EVENT_CH2_LIMITL = offsetof(NRF_SAADC_Type, EVENTS_CH[2].LIMITL), ///< Last result is equal or below CH[2].LIMIT.LOW.
+ NRF_SAADC_EVENT_CH3_LIMITH = offsetof(NRF_SAADC_Type, EVENTS_CH[3].LIMITH), ///< Last result is equal or above CH[3].LIMIT.HIGH.
+ NRF_SAADC_EVENT_CH3_LIMITL = offsetof(NRF_SAADC_Type, EVENTS_CH[3].LIMITL), ///< Last result is equal or below CH[3].LIMIT.LOW.
+ NRF_SAADC_EVENT_CH4_LIMITH = offsetof(NRF_SAADC_Type, EVENTS_CH[4].LIMITH), ///< Last result is equal or above CH[4].LIMIT.HIGH.
+ NRF_SAADC_EVENT_CH4_LIMITL = offsetof(NRF_SAADC_Type, EVENTS_CH[4].LIMITL), ///< Last result is equal or below CH[4].LIMIT.LOW.
+ NRF_SAADC_EVENT_CH5_LIMITH = offsetof(NRF_SAADC_Type, EVENTS_CH[5].LIMITH), ///< Last result is equal or above CH[5].LIMIT.HIGH.
+ NRF_SAADC_EVENT_CH5_LIMITL = offsetof(NRF_SAADC_Type, EVENTS_CH[5].LIMITL), ///< Last result is equal or below CH[5].LIMIT.LOW.
+ NRF_SAADC_EVENT_CH6_LIMITH = offsetof(NRF_SAADC_Type, EVENTS_CH[6].LIMITH), ///< Last result is equal or above CH[6].LIMIT.HIGH.
+ NRF_SAADC_EVENT_CH6_LIMITL = offsetof(NRF_SAADC_Type, EVENTS_CH[6].LIMITL), ///< Last result is equal or below CH[6].LIMIT.LOW.
+ NRF_SAADC_EVENT_CH7_LIMITH = offsetof(NRF_SAADC_Type, EVENTS_CH[7].LIMITH), ///< Last result is equal or above CH[7].LIMIT.HIGH.
+ NRF_SAADC_EVENT_CH7_LIMITL = offsetof(NRF_SAADC_Type, EVENTS_CH[7].LIMITL) ///< Last result is equal or below CH[7].LIMIT.LOW.
+} nrf_saadc_event_t;
+
+
+/**
+ * @brief Analog-to-digital converter interrupt masks.
+ */
+typedef enum
+{
+ NRF_SAADC_INT_STARTED = SAADC_INTENSET_STARTED_Msk, ///< Interrupt on EVENTS_STARTED event.
+ NRF_SAADC_INT_END = SAADC_INTENSET_END_Msk, ///< Interrupt on EVENTS_END event.
+ NRF_SAADC_INT_DONE = SAADC_INTENSET_DONE_Msk, ///< Interrupt on EVENTS_DONE event.
+ NRF_SAADC_INT_RESULTDONE = SAADC_INTENSET_RESULTDONE_Msk, ///< Interrupt on EVENTS_RESULTDONE event.
+ NRF_SAADC_INT_CALIBRATEDONE = SAADC_INTENSET_CALIBRATEDONE_Msk, ///< Interrupt on EVENTS_CALIBRATEDONE event.
+ NRF_SAADC_INT_STOPPED = SAADC_INTENSET_STOPPED_Msk, ///< Interrupt on EVENTS_STOPPED event.
+ NRF_SAADC_INT_CH0LIMITH = SAADC_INTENSET_CH0LIMITH_Msk, ///< Interrupt on EVENTS_CH[0].LIMITH event.
+ NRF_SAADC_INT_CH0LIMITL = SAADC_INTENSET_CH0LIMITL_Msk, ///< Interrupt on EVENTS_CH[0].LIMITL event.
+ NRF_SAADC_INT_CH1LIMITH = SAADC_INTENSET_CH1LIMITH_Msk, ///< Interrupt on EVENTS_CH[1].LIMITH event.
+ NRF_SAADC_INT_CH1LIMITL = SAADC_INTENSET_CH1LIMITL_Msk, ///< Interrupt on EVENTS_CH[1].LIMITL event.
+ NRF_SAADC_INT_CH2LIMITH = SAADC_INTENSET_CH2LIMITH_Msk, ///< Interrupt on EVENTS_CH[2].LIMITH event.
+ NRF_SAADC_INT_CH2LIMITL = SAADC_INTENSET_CH2LIMITL_Msk, ///< Interrupt on EVENTS_CH[2].LIMITL event.
+ NRF_SAADC_INT_CH3LIMITH = SAADC_INTENSET_CH3LIMITH_Msk, ///< Interrupt on EVENTS_CH[3].LIMITH event.
+ NRF_SAADC_INT_CH3LIMITL = SAADC_INTENSET_CH3LIMITL_Msk, ///< Interrupt on EVENTS_CH[3].LIMITL event.
+ NRF_SAADC_INT_CH4LIMITH = SAADC_INTENSET_CH4LIMITH_Msk, ///< Interrupt on EVENTS_CH[4].LIMITH event.
+ NRF_SAADC_INT_CH4LIMITL = SAADC_INTENSET_CH4LIMITL_Msk, ///< Interrupt on EVENTS_CH[4].LIMITL event.
+ NRF_SAADC_INT_CH5LIMITH = SAADC_INTENSET_CH5LIMITH_Msk, ///< Interrupt on EVENTS_CH[5].LIMITH event.
+ NRF_SAADC_INT_CH5LIMITL = SAADC_INTENSET_CH5LIMITL_Msk, ///< Interrupt on EVENTS_CH[5].LIMITL event.
+ NRF_SAADC_INT_CH6LIMITH = SAADC_INTENSET_CH6LIMITH_Msk, ///< Interrupt on EVENTS_CH[6].LIMITH event.
+ NRF_SAADC_INT_CH6LIMITL = SAADC_INTENSET_CH6LIMITL_Msk, ///< Interrupt on EVENTS_CH[6].LIMITL event.
+ NRF_SAADC_INT_CH7LIMITH = SAADC_INTENSET_CH7LIMITH_Msk, ///< Interrupt on EVENTS_CH[7].LIMITH event.
+ NRF_SAADC_INT_CH7LIMITL = SAADC_INTENSET_CH7LIMITL_Msk, ///< Interrupt on EVENTS_CH[7].LIMITL event.
+ NRF_SAADC_INT_ALL = 0x7FFFFFFFUL ///< Mask of all interrupts.
+} nrf_saadc_int_mask_t;
+
+
+/**
+ * @brief Analog-to-digital converter value limit type.
+ */
+typedef enum
+{
+ NRF_SAADC_LIMIT_LOW = 0,
+ NRF_SAADC_LIMIT_HIGH = 1
+} nrf_saadc_limit_t;
+
+
+typedef int16_t nrf_saadc_value_t; ///< Type of a single ADC conversion result.
+
+
+/**
+ * @brief Analog-to-digital converter configuration structure.
+ */
+typedef struct
+{
+ nrf_saadc_resolution_t resolution;
+ nrf_saadc_oversample_t oversample;
+ nrf_saadc_value_t * buffer;
+ uint32_t buffer_size;
+} nrf_saadc_config_t;
+
+
+/**
+ * @brief Analog-to-digital converter channel configuration structure.
+ */
+typedef struct
+{
+ nrf_saadc_resistor_t resistor_p;
+ nrf_saadc_resistor_t resistor_n;
+ nrf_saadc_gain_t gain;
+ nrf_saadc_reference_t reference;
+ nrf_saadc_acqtime_t acq_time;
+ nrf_saadc_mode_t mode;
+ nrf_saadc_burst_t burst;
+ nrf_saadc_input_t pin_p;
+ nrf_saadc_input_t pin_n;
+} nrf_saadc_channel_config_t;
+
+
+/**
+ * @brief Function for triggering a specific SAADC task.
+ *
+ * @param[in] saadc_task SAADC task.
+ */
+__STATIC_INLINE void nrf_saadc_task_trigger(nrf_saadc_task_t saadc_task)
+{
+ *((volatile uint32_t *)((uint8_t *)NRF_SAADC + (uint32_t)saadc_task)) = 0x1UL;
+}
+
+
+/**
+ * @brief Function for getting the address of a specific SAADC task register.
+ *
+ * @param[in] saadc_task SAADC task.
+ *
+ * @return Address of the specified SAADC task.
+ */
+__STATIC_INLINE uint32_t nrf_saadc_task_address_get(nrf_saadc_task_t saadc_task)
+{
+ return (uint32_t)((uint8_t *)NRF_SAADC + (uint32_t)saadc_task);
+}
+
+
+/**
+ * @brief Function for getting the state of a specific SAADC event.
+ *
+ * @param[in] saadc_event SAADC event.
+ *
+ * @return State of the specified SAADC event.
+ */
+__STATIC_INLINE bool nrf_saadc_event_check(nrf_saadc_event_t saadc_event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)NRF_SAADC + (uint32_t)saadc_event);
+}
+
+
+/**
+ * @brief Function for clearing the specific SAADC event.
+ *
+ * @param[in] saadc_event SAADC event.
+ */
+__STATIC_INLINE void nrf_saadc_event_clear(nrf_saadc_event_t saadc_event)
+{
+ *((volatile uint32_t *)((uint8_t *)NRF_SAADC + (uint32_t)saadc_event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)NRF_SAADC + (uint32_t)saadc_event));
+ (void)dummy;
+#endif
+}
+
+
+/**
+ * @brief Function for getting the address of a specific SAADC event register.
+ *
+ * @param[in] saadc_event SAADC event.
+ *
+ * @return Address of the specified SAADC event.
+ */
+__STATIC_INLINE uint32_t nrf_saadc_event_address_get(nrf_saadc_event_t saadc_event)
+{
+ return (uint32_t )((uint8_t *)NRF_SAADC + (uint32_t)saadc_event);
+}
+
+
+/**
+ * @brief Function for getting the address of a specific SAADC limit event register.
+ *
+ * @param[in] channel Channel number.
+ * @param[in] limit_type Low limit or high limit.
+ *
+ * @return Address of the specified SAADC limit event.
+ */
+__STATIC_INLINE volatile uint32_t * nrf_saadc_event_limit_address_get(uint8_t channel, nrf_saadc_limit_t limit_type)
+{
+ NRFX_ASSERT(channel < NRF_SAADC_CHANNEL_COUNT);
+ if (limit_type == NRF_SAADC_LIMIT_HIGH)
+ {
+ return &NRF_SAADC->EVENTS_CH[channel].LIMITH;
+ }
+ else
+ {
+ return &NRF_SAADC->EVENTS_CH[channel].LIMITL;
+ }
+}
+
+
+/**
+ * @brief Function for getting the SAADC channel monitoring limit events.
+ *
+ * @param[in] channel Channel number.
+ * @param[in] limit_type Low limit or high limit.
+ */
+__STATIC_INLINE nrf_saadc_event_t nrf_saadc_event_limit_get(uint8_t channel, nrf_saadc_limit_t limit_type)
+{
+ if (limit_type == NRF_SAADC_LIMIT_HIGH)
+ {
+ return (nrf_saadc_event_t)( (uint32_t) NRF_SAADC_EVENT_CH0_LIMITH +
+ (uint32_t) (NRF_SAADC_EVENT_CH1_LIMITH - NRF_SAADC_EVENT_CH0_LIMITH)
+ * (uint32_t) channel );
+ }
+ else
+ {
+ return (nrf_saadc_event_t)( (uint32_t) NRF_SAADC_EVENT_CH0_LIMITL +
+ (uint32_t) (NRF_SAADC_EVENT_CH1_LIMITL - NRF_SAADC_EVENT_CH0_LIMITL)
+ * (uint32_t) channel );
+ }
+}
+
+
+/**
+ * @brief Function for configuring the input pins for a specific SAADC channel.
+ *
+ * @param[in] channel Channel number.
+ * @param[in] pselp Positive input.
+ * @param[in] pseln Negative input. Set to NRF_SAADC_INPUT_DISABLED in single ended mode.
+ */
+__STATIC_INLINE void nrf_saadc_channel_input_set(uint8_t channel,
+ nrf_saadc_input_t pselp,
+ nrf_saadc_input_t pseln)
+{
+ NRF_SAADC->CH[channel].PSELN = pseln;
+ NRF_SAADC->CH[channel].PSELP = pselp;
+}
+
+
+/**
+ * @brief Function for setting the SAADC channel monitoring limits.
+ *
+ * @param[in] channel Channel number.
+ * @param[in] low Low limit.
+ * @param[in] high High limit.
+ */
+__STATIC_INLINE void nrf_saadc_channel_limits_set(uint8_t channel, int16_t low, int16_t high)
+{
+ NRF_SAADC->CH[channel].LIMIT = (
+ (((uint32_t) low << SAADC_CH_LIMIT_LOW_Pos) & SAADC_CH_LIMIT_LOW_Msk)
+ | (((uint32_t) high << SAADC_CH_LIMIT_HIGH_Pos) & SAADC_CH_LIMIT_HIGH_Msk));
+}
+
+
+/**
+ * @brief Function for enabling specified SAADC interrupts.
+ *
+ * @param[in] saadc_int_mask Interrupt(s) to enable.
+ */
+__STATIC_INLINE void nrf_saadc_int_enable(uint32_t saadc_int_mask)
+{
+ NRF_SAADC->INTENSET = saadc_int_mask;
+}
+
+
+/**
+ * @brief Function for retrieving the state of specified SAADC interrupts.
+ *
+ * @param[in] saadc_int_mask Interrupt(s) to check.
+ *
+ * @retval true If all specified interrupts are enabled.
+ * @retval false If at least one of the given interrupts is not enabled.
+ */
+__STATIC_INLINE bool nrf_saadc_int_enable_check(uint32_t saadc_int_mask)
+{
+ return (bool)(NRF_SAADC->INTENSET & saadc_int_mask);
+}
+
+
+/**
+ * @brief Function for disabling specified interrupts.
+ *
+ * @param saadc_int_mask Interrupt(s) to disable.
+ */
+__STATIC_INLINE void nrf_saadc_int_disable(uint32_t saadc_int_mask)
+{
+ NRF_SAADC->INTENCLR = saadc_int_mask;
+}
+
+
+/**
+ * @brief Function for generating masks for SAADC channel limit interrupts.
+ *
+ * @param[in] channel SAADC channel number.
+ * @param[in] limit_type Limit type.
+ *
+ * @returns Interrupt mask.
+ */
+__STATIC_INLINE uint32_t nrf_saadc_limit_int_get(uint8_t channel, nrf_saadc_limit_t limit_type)
+{
+ NRFX_ASSERT(channel < NRF_SAADC_CHANNEL_COUNT);
+ uint32_t mask = (limit_type == NRF_SAADC_LIMIT_LOW) ? NRF_SAADC_INT_CH0LIMITL : NRF_SAADC_INT_CH0LIMITH;
+ return mask << (channel * 2);
+}
+
+
+/**
+ * @brief Function for checking whether the SAADC is busy.
+ *
+ * This function checks whether the analog-to-digital converter is busy with a conversion.
+ *
+ * @retval true If the SAADC is busy.
+ * @retval false If the SAADC is not busy.
+ */
+__STATIC_INLINE bool nrf_saadc_busy_check(void)
+{
+ //return ((NRF_SAADC->STATUS & SAADC_STATUS_STATUS_Msk) == SAADC_STATUS_STATUS_Msk);
+ //simplified for performance
+ return NRF_SAADC->STATUS;
+}
+
+
+/**
+ * @brief Function for enabling the SAADC.
+ *
+ * The analog-to-digital converter must be enabled before use.
+ */
+__STATIC_INLINE void nrf_saadc_enable(void)
+{
+ NRF_SAADC->ENABLE = (SAADC_ENABLE_ENABLE_Enabled << SAADC_ENABLE_ENABLE_Pos);
+}
+
+
+/**
+ * @brief Function for disabling the SAADC.
+ */
+__STATIC_INLINE void nrf_saadc_disable(void)
+{
+ NRF_SAADC->ENABLE = (SAADC_ENABLE_ENABLE_Disabled << SAADC_ENABLE_ENABLE_Pos);
+}
+
+
+/**
+ * @brief Function for checking if the SAADC is enabled.
+ *
+ * @retval true If the SAADC is enabled.
+ * @retval false If the SAADC is not enabled.
+ */
+__STATIC_INLINE bool nrf_saadc_enable_check(void)
+{
+ //simplified for performance
+ return NRF_SAADC->ENABLE;
+}
+
+
+/**
+ * @brief Function for initializing the SAADC result buffer.
+ *
+ * @param[in] buffer Pointer to the result buffer.
+ * @param[in] num Size of buffer in words.
+ */
+__STATIC_INLINE void nrf_saadc_buffer_init(nrf_saadc_value_t * buffer, uint32_t num)
+{
+ NRF_SAADC->RESULT.PTR = (uint32_t)buffer;
+ NRF_SAADC->RESULT.MAXCNT = num;
+}
+
+/**
+ * @brief Function for getting the number of buffer words transferred since last START operation.
+ *
+ * @returns Number of words transferred.
+ */
+__STATIC_INLINE uint16_t nrf_saadc_amount_get(void)
+{
+ return NRF_SAADC->RESULT.AMOUNT;
+}
+
+
+/**
+ * @brief Function for setting the SAADC sample resolution.
+ *
+ * @param[in] resolution Bit resolution.
+ */
+__STATIC_INLINE void nrf_saadc_resolution_set(nrf_saadc_resolution_t resolution)
+{
+ NRF_SAADC->RESOLUTION = resolution;
+}
+
+
+/**
+ * @brief Function for configuring the oversampling feature.
+ *
+ * @param[in] oversample Oversampling mode.
+ */
+__STATIC_INLINE void nrf_saadc_oversample_set(nrf_saadc_oversample_t oversample)
+{
+ NRF_SAADC->OVERSAMPLE = oversample;
+}
+
+/**
+ * @brief Function for getting the oversampling feature configuration.
+ *
+ * @return Oversampling configuration.
+ */
+__STATIC_INLINE nrf_saadc_oversample_t nrf_saadc_oversample_get(void)
+{
+ return (nrf_saadc_oversample_t)NRF_SAADC->OVERSAMPLE;
+}
+
+/**
+ * @brief Function for initializing the SAADC channel.
+ *
+ * @param[in] channel Channel number.
+ * @param[in] config Pointer to the channel configuration structure.
+ */
+__STATIC_INLINE void nrf_saadc_channel_init(uint8_t channel,
+ nrf_saadc_channel_config_t const * const config)
+{
+ NRF_SAADC->CH[channel].CONFIG =
+ ((config->resistor_p << SAADC_CH_CONFIG_RESP_Pos) & SAADC_CH_CONFIG_RESP_Msk)
+ | ((config->resistor_n << SAADC_CH_CONFIG_RESN_Pos) & SAADC_CH_CONFIG_RESN_Msk)
+ | ((config->gain << SAADC_CH_CONFIG_GAIN_Pos) & SAADC_CH_CONFIG_GAIN_Msk)
+ | ((config->reference << SAADC_CH_CONFIG_REFSEL_Pos) & SAADC_CH_CONFIG_REFSEL_Msk)
+ | ((config->acq_time << SAADC_CH_CONFIG_TACQ_Pos) & SAADC_CH_CONFIG_TACQ_Msk)
+ | ((config->mode << SAADC_CH_CONFIG_MODE_Pos) & SAADC_CH_CONFIG_MODE_Msk)
+ | ((config->burst << SAADC_CH_CONFIG_BURST_Pos) & SAADC_CH_CONFIG_BURST_Msk);
+ nrf_saadc_channel_input_set(channel, config->pin_p, config->pin_n);
+}
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NRF_SAADC_H_ */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_spi.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_spi.h
new file mode 100644
index 0000000..28b8c80
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_spi.h
@@ -0,0 +1,369 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_SPI_H__
+#define NRF_SPI_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_spi_hal SPI HAL
+ * @{
+ * @ingroup nrf_spi
+ * @brief Hardware access layer for managing the SPI peripheral.
+ */
+
+/**
+ * @brief This value can be used as a parameter for the @ref nrf_spi_pins_set
+ * function to specify that a given SPI signal (SCK, MOSI, or MISO)
+ * shall not be connected to a physical pin.
+ */
+#define NRF_SPI_PIN_NOT_CONNECTED 0xFFFFFFFF
+
+
+/**
+ * @brief SPI events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_SPI_EVENT_READY = offsetof(NRF_SPI_Type, EVENTS_READY) ///< TXD byte sent and RXD byte received.
+ /*lint -restore*/
+} nrf_spi_event_t;
+
+/**
+ * @brief SPI interrupts.
+ */
+typedef enum
+{
+ NRF_SPI_INT_READY_MASK = SPI_INTENSET_READY_Msk, ///< Interrupt on READY event.
+ NRF_SPI_ALL_INTS_MASK = SPI_INTENSET_READY_Msk ///< All SPI interrupts.
+} nrf_spi_int_mask_t;
+
+/**
+ * @brief SPI data rates.
+ */
+typedef enum
+{
+ NRF_SPI_FREQ_125K = SPI_FREQUENCY_FREQUENCY_K125, ///< 125 kbps.
+ NRF_SPI_FREQ_250K = SPI_FREQUENCY_FREQUENCY_K250, ///< 250 kbps.
+ NRF_SPI_FREQ_500K = SPI_FREQUENCY_FREQUENCY_K500, ///< 500 kbps.
+ NRF_SPI_FREQ_1M = SPI_FREQUENCY_FREQUENCY_M1, ///< 1 Mbps.
+ NRF_SPI_FREQ_2M = SPI_FREQUENCY_FREQUENCY_M2, ///< 2 Mbps.
+ NRF_SPI_FREQ_4M = SPI_FREQUENCY_FREQUENCY_M4, ///< 4 Mbps.
+ // [conversion to 'int' needed to prevent compilers from complaining
+ // that the provided value (0x80000000UL) is out of range of "int"]
+ NRF_SPI_FREQ_8M = (int)SPI_FREQUENCY_FREQUENCY_M8 ///< 8 Mbps.
+} nrf_spi_frequency_t;
+
+/**
+ * @brief SPI modes.
+ */
+typedef enum
+{
+ NRF_SPI_MODE_0, ///< SCK active high, sample on leading edge of clock.
+ NRF_SPI_MODE_1, ///< SCK active high, sample on trailing edge of clock.
+ NRF_SPI_MODE_2, ///< SCK active low, sample on leading edge of clock.
+ NRF_SPI_MODE_3 ///< SCK active low, sample on trailing edge of clock.
+} nrf_spi_mode_t;
+
+/**
+ * @brief SPI bit orders.
+ */
+typedef enum
+{
+ NRF_SPI_BIT_ORDER_MSB_FIRST = SPI_CONFIG_ORDER_MsbFirst, ///< Most significant bit shifted out first.
+ NRF_SPI_BIT_ORDER_LSB_FIRST = SPI_CONFIG_ORDER_LsbFirst ///< Least significant bit shifted out first.
+} nrf_spi_bit_order_t;
+
+
+/**
+ * @brief Function for clearing a specific SPI event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spi_event Event to clear.
+ */
+__STATIC_INLINE void nrf_spi_event_clear(NRF_SPI_Type * p_reg,
+ nrf_spi_event_t spi_event);
+
+/**
+ * @brief Function for checking the state of a specific SPI event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spi_event Event to check.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_spi_event_check(NRF_SPI_Type * p_reg,
+ nrf_spi_event_t spi_event);
+
+/**
+ * @brief Function for getting the address of a specific SPI event register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spi_event Requested event.
+ *
+ * @return Address of the specified event register.
+ */
+__STATIC_INLINE uint32_t * nrf_spi_event_address_get(NRF_SPI_Type * p_reg,
+ nrf_spi_event_t spi_event);
+
+/**
+ * @brief Function for enabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spi_int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_spi_int_enable(NRF_SPI_Type * p_reg,
+ uint32_t spi_int_mask);
+
+/**
+ * @brief Function for disabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spi_int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_spi_int_disable(NRF_SPI_Type * p_reg,
+ uint32_t spi_int_mask);
+
+/**
+ * @brief Function for retrieving the state of a given interrupt.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spi_int Interrupt to check.
+ *
+ * @retval true If the interrupt is enabled.
+ * @retval false If the interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_spi_int_enable_check(NRF_SPI_Type * p_reg,
+ nrf_spi_int_mask_t spi_int);
+
+/**
+ * @brief Function for enabling the SPI peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_spi_enable(NRF_SPI_Type * p_reg);
+
+/**
+ * @brief Function for disabling the SPI peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_spi_disable(NRF_SPI_Type * p_reg);
+
+/**
+ * @brief Function for configuring SPI pins.
+ *
+ * If a given signal is not needed, pass the @ref NRF_SPI_PIN_NOT_CONNECTED
+ * value instead of its pin number.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] sck_pin SCK pin number.
+ * @param[in] mosi_pin MOSI pin number.
+ * @param[in] miso_pin MISO pin number.
+ */
+__STATIC_INLINE void nrf_spi_pins_set(NRF_SPI_Type * p_reg,
+ uint32_t sck_pin,
+ uint32_t mosi_pin,
+ uint32_t miso_pin);
+
+/**
+ * @brief Function for writing data to the SPI transmitter register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] data TX data to send.
+ */
+__STATIC_INLINE void nrf_spi_txd_set(NRF_SPI_Type * p_reg, uint8_t data);
+
+/**
+ * @brief Function for reading data from the SPI receiver register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @return RX data received.
+ */
+__STATIC_INLINE uint8_t nrf_spi_rxd_get(NRF_SPI_Type * p_reg);
+
+/**
+ * @brief Function for setting the SPI master data rate.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] frequency SPI frequency.
+ */
+__STATIC_INLINE void nrf_spi_frequency_set(NRF_SPI_Type * p_reg,
+ nrf_spi_frequency_t frequency);
+
+/**
+ * @brief Function for setting the SPI configuration.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spi_mode SPI mode.
+ * @param[in] spi_bit_order SPI bit order.
+ */
+__STATIC_INLINE void nrf_spi_configure(NRF_SPI_Type * p_reg,
+ nrf_spi_mode_t spi_mode,
+ nrf_spi_bit_order_t spi_bit_order);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_spi_event_clear(NRF_SPI_Type * p_reg,
+ nrf_spi_event_t spi_event)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)spi_event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)spi_event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE bool nrf_spi_event_check(NRF_SPI_Type * p_reg,
+ nrf_spi_event_t spi_event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)spi_event);
+}
+
+__STATIC_INLINE uint32_t * nrf_spi_event_address_get(NRF_SPI_Type * p_reg,
+ nrf_spi_event_t spi_event)
+{
+ return (uint32_t *)((uint8_t *)p_reg + (uint32_t)spi_event);
+}
+
+__STATIC_INLINE void nrf_spi_int_enable(NRF_SPI_Type * p_reg,
+ uint32_t spi_int_mask)
+{
+ p_reg->INTENSET = spi_int_mask;
+}
+
+__STATIC_INLINE void nrf_spi_int_disable(NRF_SPI_Type * p_reg,
+ uint32_t spi_int_mask)
+{
+ p_reg->INTENCLR = spi_int_mask;
+}
+
+__STATIC_INLINE bool nrf_spi_int_enable_check(NRF_SPI_Type * p_reg,
+ nrf_spi_int_mask_t spi_int)
+{
+ return (bool)(p_reg->INTENSET & spi_int);
+}
+
+__STATIC_INLINE void nrf_spi_enable(NRF_SPI_Type * p_reg)
+{
+ p_reg->ENABLE = (SPI_ENABLE_ENABLE_Enabled << SPI_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_spi_disable(NRF_SPI_Type * p_reg)
+{
+ p_reg->ENABLE = (SPI_ENABLE_ENABLE_Disabled << SPI_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_spi_pins_set(NRF_SPI_Type * p_reg,
+ uint32_t sck_pin,
+ uint32_t mosi_pin,
+ uint32_t miso_pin)
+{
+ p_reg->PSELSCK = sck_pin;
+ p_reg->PSELMOSI = mosi_pin;
+ p_reg->PSELMISO = miso_pin;
+}
+
+__STATIC_INLINE void nrf_spi_txd_set(NRF_SPI_Type * p_reg, uint8_t data)
+{
+ p_reg->TXD = data;
+}
+
+__STATIC_INLINE uint8_t nrf_spi_rxd_get(NRF_SPI_Type * p_reg)
+{
+ return p_reg->RXD;
+}
+
+__STATIC_INLINE void nrf_spi_frequency_set(NRF_SPI_Type * p_reg,
+ nrf_spi_frequency_t frequency)
+{
+ p_reg->FREQUENCY = frequency;
+}
+
+__STATIC_INLINE void nrf_spi_configure(NRF_SPI_Type * p_reg,
+ nrf_spi_mode_t spi_mode,
+ nrf_spi_bit_order_t spi_bit_order)
+{
+ uint32_t config = (spi_bit_order == NRF_SPI_BIT_ORDER_MSB_FIRST ?
+ SPI_CONFIG_ORDER_MsbFirst : SPI_CONFIG_ORDER_LsbFirst);
+ switch (spi_mode)
+ {
+ default:
+ case NRF_SPI_MODE_0:
+ config |= (SPI_CONFIG_CPOL_ActiveHigh << SPI_CONFIG_CPOL_Pos) |
+ (SPI_CONFIG_CPHA_Leading << SPI_CONFIG_CPHA_Pos);
+ break;
+
+ case NRF_SPI_MODE_1:
+ config |= (SPI_CONFIG_CPOL_ActiveHigh << SPI_CONFIG_CPOL_Pos) |
+ (SPI_CONFIG_CPHA_Trailing << SPI_CONFIG_CPHA_Pos);
+ break;
+
+ case NRF_SPI_MODE_2:
+ config |= (SPI_CONFIG_CPOL_ActiveLow << SPI_CONFIG_CPOL_Pos) |
+ (SPI_CONFIG_CPHA_Leading << SPI_CONFIG_CPHA_Pos);
+ break;
+
+ case NRF_SPI_MODE_3:
+ config |= (SPI_CONFIG_CPOL_ActiveLow << SPI_CONFIG_CPOL_Pos) |
+ (SPI_CONFIG_CPHA_Trailing << SPI_CONFIG_CPHA_Pos);
+ break;
+ }
+ p_reg->CONFIG = config;
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_SPI_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_spim.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_spim.h
new file mode 100644
index 0000000..ede94f3
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_spim.h
@@ -0,0 +1,736 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_SPIM_H__
+#define NRF_SPIM_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_spim_hal SPIM HAL
+ * @{
+ * @ingroup nrf_spim
+ * @brief Hardware access layer for managing the SPIM peripheral.
+ */
+
+/**
+ * @brief This value can be used as a parameter for the @ref nrf_spim_pins_set
+ * function to specify that a given SPI signal (SCK, MOSI, or MISO)
+ * shall not be connected to a physical pin.
+ */
+#define NRF_SPIM_PIN_NOT_CONNECTED 0xFFFFFFFF
+
+#if defined(SPIM_DCXCNT_DCXCNT_Msk) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief This value specified in the DCX line configuration causes this line
+ * to be set low during whole transmission (all transmitted bytes are
+ * marked as command bytes). Any lower value causes the DCX line to be
+ * switched from low to high after this number of bytes is transmitted
+ * (all remaining bytes are marked as data bytes).
+ */
+#define NRF_SPIM_DCX_CNT_ALL_CMD 0xF
+#endif
+
+#define NRF_SPIM_HW_CSN_PRESENT \
+ (NRFX_CHECK(SPIM0_FEATURE_HARDWARE_CSN_PRESENT) || \
+ NRFX_CHECK(SPIM1_FEATURE_HARDWARE_CSN_PRESENT) || \
+ NRFX_CHECK(SPIM2_FEATURE_HARDWARE_CSN_PRESENT) || \
+ NRFX_CHECK(SPIM3_FEATURE_HARDWARE_CSN_PRESENT))
+
+/**
+ * @brief SPIM tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_SPIM_TASK_START = offsetof(NRF_SPIM_Type, TASKS_START), ///< Start SPI transaction.
+ NRF_SPIM_TASK_STOP = offsetof(NRF_SPIM_Type, TASKS_STOP), ///< Stop SPI transaction.
+ NRF_SPIM_TASK_SUSPEND = offsetof(NRF_SPIM_Type, TASKS_SUSPEND), ///< Suspend SPI transaction.
+ NRF_SPIM_TASK_RESUME = offsetof(NRF_SPIM_Type, TASKS_RESUME) ///< Resume SPI transaction.
+ /*lint -restore*/
+} nrf_spim_task_t;
+
+/**
+ * @brief SPIM events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_SPIM_EVENT_STOPPED = offsetof(NRF_SPIM_Type, EVENTS_STOPPED), ///< SPI transaction has stopped.
+ NRF_SPIM_EVENT_ENDRX = offsetof(NRF_SPIM_Type, EVENTS_ENDRX), ///< End of RXD buffer reached.
+ NRF_SPIM_EVENT_END = offsetof(NRF_SPIM_Type, EVENTS_END), ///< End of RXD buffer and TXD buffer reached.
+ NRF_SPIM_EVENT_ENDTX = offsetof(NRF_SPIM_Type, EVENTS_ENDTX), ///< End of TXD buffer reached.
+ NRF_SPIM_EVENT_STARTED = offsetof(NRF_SPIM_Type, EVENTS_STARTED) ///< Transaction started.
+ /*lint -restore*/
+} nrf_spim_event_t;
+
+/**
+ * @brief SPIM shortcuts.
+ */
+typedef enum
+{
+ NRF_SPIM_SHORT_END_START_MASK = SPIM_SHORTS_END_START_Msk, ///< Shortcut between END event and START task.
+ NRF_SPIM_ALL_SHORTS_MASK = SPIM_SHORTS_END_START_Msk ///< All SPIM shortcuts.
+} nrf_spim_short_mask_t;
+
+/**
+ * @brief SPIM interrupts.
+ */
+typedef enum
+{
+ NRF_SPIM_INT_STOPPED_MASK = SPIM_INTENSET_STOPPED_Msk, ///< Interrupt on STOPPED event.
+ NRF_SPIM_INT_ENDRX_MASK = SPIM_INTENSET_ENDRX_Msk, ///< Interrupt on ENDRX event.
+ NRF_SPIM_INT_END_MASK = SPIM_INTENSET_END_Msk, ///< Interrupt on END event.
+ NRF_SPIM_INT_ENDTX_MASK = SPIM_INTENSET_ENDTX_Msk, ///< Interrupt on ENDTX event.
+ NRF_SPIM_INT_STARTED_MASK = SPIM_INTENSET_STARTED_Msk, ///< Interrupt on STARTED event.
+ NRF_SPIM_ALL_INTS_MASK = SPIM_INTENSET_STOPPED_Msk |
+ SPIM_INTENSET_ENDRX_Msk |
+ SPIM_INTENSET_END_Msk |
+ SPIM_INTENSET_ENDTX_Msk |
+ SPIM_INTENSET_STARTED_Msk ///< All SPIM interrupts.
+} nrf_spim_int_mask_t;
+
+/**
+ * @brief SPI master data rates.
+ */
+typedef enum
+{
+ NRF_SPIM_FREQ_125K = SPIM_FREQUENCY_FREQUENCY_K125, ///< 125 kbps.
+ NRF_SPIM_FREQ_250K = SPIM_FREQUENCY_FREQUENCY_K250, ///< 250 kbps.
+ NRF_SPIM_FREQ_500K = SPIM_FREQUENCY_FREQUENCY_K500, ///< 500 kbps.
+ NRF_SPIM_FREQ_1M = SPIM_FREQUENCY_FREQUENCY_M1, ///< 1 Mbps.
+ NRF_SPIM_FREQ_2M = SPIM_FREQUENCY_FREQUENCY_M2, ///< 2 Mbps.
+ NRF_SPIM_FREQ_4M = SPIM_FREQUENCY_FREQUENCY_M4, ///< 4 Mbps.
+ // [conversion to 'int' needed to prevent compilers from complaining
+ // that the provided value (0x80000000UL) is out of range of "int"]
+ NRF_SPIM_FREQ_8M = (int)SPIM_FREQUENCY_FREQUENCY_M8, ///< 8 Mbps.
+#if defined(SPIM_FREQUENCY_FREQUENCY_M16) || defined(__NRFX_DOXYGEN__)
+ NRF_SPIM_FREQ_16M = SPIM_FREQUENCY_FREQUENCY_M16, ///< 16 Mbps.
+#endif
+#if defined(SPIM_FREQUENCY_FREQUENCY_M32) || defined(__NRFX_DOXYGEN__)
+ NRF_SPIM_FREQ_32M = SPIM_FREQUENCY_FREQUENCY_M32 ///< 32 Mbps.
+#endif
+} nrf_spim_frequency_t;
+
+/**
+ * @brief SPI modes.
+ */
+typedef enum
+{
+ NRF_SPIM_MODE_0, ///< SCK active high, sample on leading edge of clock.
+ NRF_SPIM_MODE_1, ///< SCK active high, sample on trailing edge of clock.
+ NRF_SPIM_MODE_2, ///< SCK active low, sample on leading edge of clock.
+ NRF_SPIM_MODE_3 ///< SCK active low, sample on trailing edge of clock.
+} nrf_spim_mode_t;
+
+/**
+ * @brief SPI bit orders.
+ */
+typedef enum
+{
+ NRF_SPIM_BIT_ORDER_MSB_FIRST = SPIM_CONFIG_ORDER_MsbFirst, ///< Most significant bit shifted out first.
+ NRF_SPIM_BIT_ORDER_LSB_FIRST = SPIM_CONFIG_ORDER_LsbFirst ///< Least significant bit shifted out first.
+} nrf_spim_bit_order_t;
+
+#if (NRF_SPIM_HW_CSN_PRESENT) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief SPI CSN pin polarity.
+ */
+typedef enum
+{
+ NRF_SPIM_CSN_POL_LOW = SPIM_CSNPOL_CSNPOL_LOW, ///< Active low (idle state high).
+ NRF_SPIM_CSN_POL_HIGH = SPIM_CSNPOL_CSNPOL_HIGH ///< Active high (idle state low).
+} nrf_spim_csn_pol_t;
+#endif // (NRF_SPIM_HW_CSN_PRESENT) || defined(__NRFX_DOXYGEN__)
+
+/**
+ * @brief Function for activating a specific SPIM task.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spim_task Task to activate.
+ */
+__STATIC_INLINE void nrf_spim_task_trigger(NRF_SPIM_Type * p_reg,
+ nrf_spim_task_t spim_task);
+
+/**
+ * @brief Function for getting the address of a specific SPIM task register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spim_task Requested task.
+ *
+ * @return Address of the specified task register.
+ */
+__STATIC_INLINE uint32_t nrf_spim_task_address_get(NRF_SPIM_Type * p_reg,
+ nrf_spim_task_t spim_task);
+
+/**
+ * @brief Function for clearing a specific SPIM event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spim_event Event to clear.
+ */
+__STATIC_INLINE void nrf_spim_event_clear(NRF_SPIM_Type * p_reg,
+ nrf_spim_event_t spim_event);
+
+/**
+ * @brief Function for checking the state of a specific SPIM event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spim_event Event to check.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_spim_event_check(NRF_SPIM_Type * p_reg,
+ nrf_spim_event_t spim_event);
+
+/**
+ * @brief Function for getting the address of a specific SPIM event register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spim_event Requested event.
+ *
+ * @return Address of the specified event register.
+ */
+__STATIC_INLINE uint32_t nrf_spim_event_address_get(NRF_SPIM_Type * p_reg,
+ nrf_spim_event_t spim_event);
+/**
+ * @brief Function for enabling specified shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spim_shorts_mask Shortcuts to enable.
+ */
+__STATIC_INLINE void nrf_spim_shorts_enable(NRF_SPIM_Type * p_reg,
+ uint32_t spim_shorts_mask);
+
+/**
+ * @brief Function for disabling specified shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spim_shorts_mask Shortcuts to disable.
+ */
+__STATIC_INLINE void nrf_spim_shorts_disable(NRF_SPIM_Type * p_reg,
+ uint32_t spim_shorts_mask);
+
+/**
+ * @brief Function for getting shorts setting.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE uint32_t nrf_spim_shorts_get(NRF_SPIM_Type * p_reg);
+
+/**
+ * @brief Function for enabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spim_int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_spim_int_enable(NRF_SPIM_Type * p_reg,
+ uint32_t spim_int_mask);
+
+/**
+ * @brief Function for disabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spim_int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_spim_int_disable(NRF_SPIM_Type * p_reg,
+ uint32_t spim_int_mask);
+
+/**
+ * @brief Function for retrieving the state of a given interrupt.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spim_int Interrupt to check.
+ *
+ * @retval true If the interrupt is enabled.
+ * @retval false If the interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_spim_int_enable_check(NRF_SPIM_Type * p_reg,
+ nrf_spim_int_mask_t spim_int);
+
+/**
+ * @brief Function for enabling the SPIM peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_spim_enable(NRF_SPIM_Type * p_reg);
+
+/**
+ * @brief Function for disabling the SPIM peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_spim_disable(NRF_SPIM_Type * p_reg);
+
+/**
+ * @brief Function for configuring SPIM pins.
+ *
+ * If a given signal is not needed, pass the @ref NRF_SPIM_PIN_NOT_CONNECTED
+ * value instead of its pin number.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] sck_pin SCK pin number.
+ * @param[in] mosi_pin MOSI pin number.
+ * @param[in] miso_pin MISO pin number.
+ */
+__STATIC_INLINE void nrf_spim_pins_set(NRF_SPIM_Type * p_reg,
+ uint32_t sck_pin,
+ uint32_t mosi_pin,
+ uint32_t miso_pin);
+
+#if (NRF_SPIM_HW_CSN_PRESENT) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Function for configuring the SPIM hardware CSN pin.
+ *
+ * If this signal is not needed, pass the @ref NRF_SPIM_PIN_NOT_CONNECTED
+ * value instead of its pin number.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] pin CSN pin number.
+ * @param[in] polarity CSN pin polarity.
+ * @param[in] duration Minimum duration between the edge of CSN and the edge of SCK
+ * and minimum duration of CSN must stay unselected between transactions.
+ * The value is specified in number of 64 MHz clock cycles (15.625 ns).
+ */
+__STATIC_INLINE void nrf_spim_csn_configure(NRF_SPIM_Type * p_reg,
+ uint32_t pin,
+ nrf_spim_csn_pol_t polarity,
+ uint32_t duration);
+#endif // (NRF_SPIM_HW_CSN_PRESENT) || defined(__NRFX_DOXYGEN__)
+
+#if defined(SPIM_PSELDCX_CONNECT_Msk) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Function for configuring the SPIM DCX pin.
+ *
+ * If this signal is not needed, pass the @ref NRF_SPIM_PIN_NOT_CONNECTED
+ * value instead of its pin number.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] dcx_pin DCX pin number.
+ */
+__STATIC_INLINE void nrf_spim_dcx_pin_set(NRF_SPIM_Type * p_reg,
+ uint32_t dcx_pin);
+
+/**
+ * @brief Function for configuring the number of command bytes.
+ *
+ * Maximum value available for dividing the transmitted bytes into command
+ * bytes and data bytes is @ref NRF_SPIM_DCX_CNT_ALL_CMD - 1.
+ * The @ref NRF_SPIM_DCX_CNT_ALL_CMD value passed as the @c count parameter
+ * causes all transmitted bytes to be marked as command bytes.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] count Number of command bytes preceding the data bytes.
+ */
+__STATIC_INLINE void nrf_spim_dcx_cnt_set(NRF_SPIM_Type * p_reg,
+ uint32_t count);
+#endif // defined(SPIM_PSELDCX_CONNECT_Msk) || defined(__NRFX_DOXYGEN__)
+
+#if defined(SPIM_IFTIMING_RXDELAY_RXDELAY_Msk) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Function for configuring the extended SPIM interface.
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param rxdelay Sample delay for input serial data on MISO,
+ * specified in 64 MHz clock cycles (15.625 ns) from the sampling edge of SCK.
+ */
+__STATIC_INLINE void nrf_spim_iftiming_set(NRF_SPIM_Type * p_reg,
+ uint32_t rxdelay);
+#endif // defined(SPIM_IFTIMING_RXDELAY_RXDELAY_Msk) || defined(__NRFX_DOXYGEN__)
+
+#if defined(SPIM_STALLSTAT_RX_Msk) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Function for clearing stall status for RX EasyDMA RAM accesses.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_spim_stallstat_rx_clear(NRF_SPIM_Type * p_reg);
+
+/**
+ * @brief Function for getting stall status for RX EasyDMA RAM accesses.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ *
+ * @return Stall status of RX EasyDMA RAM accesses.
+ */
+__STATIC_INLINE bool nrf_spim_stallstat_rx_get(NRF_SPIM_Type * p_reg);
+#endif // defined(SPIM_STALLSTAT_RX_Msk) || defined(__NRFX_DOXYGEN__)
+
+#if defined(SPIM_STALLSTAT_TX_Msk) || defined(__NRFX_DOXYGEN__)
+/**
+ * @brief Function for clearing stall status for TX EasyDMA RAM accesses.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_spim_stallstat_tx_clear(NRF_SPIM_Type * p_reg);
+
+/**
+ * @brief Function for getting stall status for TX EasyDMA RAM accesses.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ *
+ * @return Stall status of TX EasyDMA RAM accesses.
+ */
+__STATIC_INLINE bool nrf_spim_stallstat_tx_get(NRF_SPIM_Type * p_reg);
+#endif // defined(SPIM_STALLSTAT_TX_Msk) || defined(__NRFX_DOXYGEN__)
+
+/**
+ * @brief Function for setting the SPI master data rate.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] frequency SPI frequency.
+ */
+__STATIC_INLINE void nrf_spim_frequency_set(NRF_SPIM_Type * p_reg,
+ nrf_spim_frequency_t frequency);
+
+/**
+ * @brief Function for setting the transmit buffer.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] p_buffer Pointer to the buffer with data to send.
+ * @param[in] length Maximum number of data bytes to transmit.
+ */
+__STATIC_INLINE void nrf_spim_tx_buffer_set(NRF_SPIM_Type * p_reg,
+ uint8_t const * p_buffer,
+ size_t length);
+
+/**
+ * @brief Function for setting the receive buffer.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] p_buffer Pointer to the buffer for received data.
+ * @param[in] length Maximum number of data bytes to receive.
+ */
+__STATIC_INLINE void nrf_spim_rx_buffer_set(NRF_SPIM_Type * p_reg,
+ uint8_t * p_buffer,
+ size_t length);
+
+/**
+ * @brief Function for setting the SPI configuration.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spi_mode SPI mode.
+ * @param[in] spi_bit_order SPI bit order.
+ */
+__STATIC_INLINE void nrf_spim_configure(NRF_SPIM_Type * p_reg,
+ nrf_spim_mode_t spi_mode,
+ nrf_spim_bit_order_t spi_bit_order);
+
+/**
+ * @brief Function for setting the over-read character.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] orc Over-read character that is clocked out in case of
+ * an over-read of the TXD buffer.
+ */
+__STATIC_INLINE void nrf_spim_orc_set(NRF_SPIM_Type * p_reg,
+ uint8_t orc);
+
+/**
+ * @brief Function for enabling the TX list feature.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_spim_tx_list_enable(NRF_SPIM_Type * p_reg);
+
+/**
+ * @brief Function for disabling the TX list feature.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_spim_tx_list_disable(NRF_SPIM_Type * p_reg);
+
+/**
+ * @brief Function for enabling the RX list feature.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_spim_rx_list_enable(NRF_SPIM_Type * p_reg);
+
+/**
+ * @brief Function for disabling the RX list feature.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_spim_rx_list_disable(NRF_SPIM_Type * p_reg);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_spim_task_trigger(NRF_SPIM_Type * p_reg,
+ nrf_spim_task_t spim_task)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)spim_task)) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t nrf_spim_task_address_get(NRF_SPIM_Type * p_reg,
+ nrf_spim_task_t spim_task)
+{
+ return (uint32_t)((uint8_t *)p_reg + (uint32_t)spim_task);
+}
+
+__STATIC_INLINE void nrf_spim_event_clear(NRF_SPIM_Type * p_reg,
+ nrf_spim_event_t spim_event)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)spim_event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)spim_event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE bool nrf_spim_event_check(NRF_SPIM_Type * p_reg,
+ nrf_spim_event_t spim_event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)spim_event);
+}
+
+__STATIC_INLINE uint32_t nrf_spim_event_address_get(NRF_SPIM_Type * p_reg,
+ nrf_spim_event_t spim_event)
+{
+ return (uint32_t)((uint8_t *)p_reg + (uint32_t)spim_event);
+}
+
+__STATIC_INLINE void nrf_spim_shorts_enable(NRF_SPIM_Type * p_reg,
+ uint32_t spim_shorts_mask)
+{
+ p_reg->SHORTS |= spim_shorts_mask;
+}
+
+__STATIC_INLINE void nrf_spim_shorts_disable(NRF_SPIM_Type * p_reg,
+ uint32_t spim_shorts_mask)
+{
+ p_reg->SHORTS &= ~(spim_shorts_mask);
+}
+
+__STATIC_INLINE uint32_t nrf_spim_shorts_get(NRF_SPIM_Type * p_reg)
+{
+ return p_reg->SHORTS;
+}
+
+__STATIC_INLINE void nrf_spim_int_enable(NRF_SPIM_Type * p_reg,
+ uint32_t spim_int_mask)
+{
+ p_reg->INTENSET = spim_int_mask;
+}
+
+__STATIC_INLINE void nrf_spim_int_disable(NRF_SPIM_Type * p_reg,
+ uint32_t spim_int_mask)
+{
+ p_reg->INTENCLR = spim_int_mask;
+}
+
+__STATIC_INLINE bool nrf_spim_int_enable_check(NRF_SPIM_Type * p_reg,
+ nrf_spim_int_mask_t spim_int)
+{
+ return (bool)(p_reg->INTENSET & spim_int);
+}
+
+__STATIC_INLINE void nrf_spim_enable(NRF_SPIM_Type * p_reg)
+{
+ p_reg->ENABLE = (SPIM_ENABLE_ENABLE_Enabled << SPIM_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_spim_disable(NRF_SPIM_Type * p_reg)
+{
+ p_reg->ENABLE = (SPIM_ENABLE_ENABLE_Disabled << SPIM_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_spim_pins_set(NRF_SPIM_Type * p_reg,
+ uint32_t sck_pin,
+ uint32_t mosi_pin,
+ uint32_t miso_pin)
+{
+ p_reg->PSEL.SCK = sck_pin;
+ p_reg->PSEL.MOSI = mosi_pin;
+ p_reg->PSEL.MISO = miso_pin;
+}
+
+#if (NRF_SPIM_HW_CSN_PRESENT)
+__STATIC_INLINE void nrf_spim_csn_configure(NRF_SPIM_Type * p_reg,
+ uint32_t pin,
+ nrf_spim_csn_pol_t polarity,
+ uint32_t duration)
+{
+ p_reg->PSEL.CSN = pin;
+ p_reg->CSNPOL = polarity;
+ p_reg->IFTIMING.CSNDUR = duration;
+}
+#endif // defined(NRF_SPIM_HW_CSN_PRESENT)
+
+#if defined(SPIM_PSELDCX_CONNECT_Msk)
+__STATIC_INLINE void nrf_spim_dcx_pin_set(NRF_SPIM_Type * p_reg,
+ uint32_t dcx_pin)
+{
+ p_reg->PSELDCX = dcx_pin;
+}
+
+__STATIC_INLINE void nrf_spim_dcx_cnt_set(NRF_SPIM_Type * p_reg,
+ uint32_t dcx_cnt)
+{
+ p_reg->DCXCNT = dcx_cnt;
+}
+#endif // defined(SPIM_PSELDCX_CONNECT_Msk)
+
+#if defined(SPIM_IFTIMING_RXDELAY_RXDELAY_Msk)
+__STATIC_INLINE void nrf_spim_iftiming_set(NRF_SPIM_Type * p_reg,
+ uint32_t rxdelay)
+{
+ p_reg->IFTIMING.RXDELAY = rxdelay;
+}
+#endif // defined(SPIM_IFTIMING_RXDELAY_RXDELAY_Msk)
+
+#if defined(SPIM_STALLSTAT_RX_Msk)
+__STATIC_INLINE void nrf_spim_stallstat_rx_clear(NRF_SPIM_Type * p_reg)
+{
+ p_reg->STALLSTAT &= ~(SPIM_STALLSTAT_RX_Msk);
+}
+
+__STATIC_INLINE bool nrf_spim_stallstat_rx_get(NRF_SPIM_Type * p_reg)
+{
+ return (p_reg->STALLSTAT & SPIM_STALLSTAT_RX_Msk) != 0;
+}
+#endif // defined(SPIM_STALLSTAT_RX_Msk)
+
+#if defined(SPIM_STALLSTAT_TX_Msk)
+__STATIC_INLINE void nrf_spim_stallstat_tx_clear(NRF_SPIM_Type * p_reg)
+{
+ p_reg->STALLSTAT &= ~(SPIM_STALLSTAT_TX_Msk);
+}
+
+__STATIC_INLINE bool nrf_spim_stallstat_tx_get(NRF_SPIM_Type * p_reg)
+{
+ return (p_reg->STALLSTAT & SPIM_STALLSTAT_TX_Msk) != 0;
+}
+#endif // defined(SPIM_STALLSTAT_TX_Msk)
+
+__STATIC_INLINE void nrf_spim_frequency_set(NRF_SPIM_Type * p_reg,
+ nrf_spim_frequency_t frequency)
+{
+ p_reg->FREQUENCY = frequency;
+}
+
+__STATIC_INLINE void nrf_spim_tx_buffer_set(NRF_SPIM_Type * p_reg,
+ uint8_t const * p_buffer,
+ size_t length)
+{
+ p_reg->TXD.PTR = (uint32_t)p_buffer;
+ p_reg->TXD.MAXCNT = length;
+}
+
+__STATIC_INLINE void nrf_spim_rx_buffer_set(NRF_SPIM_Type * p_reg,
+ uint8_t * p_buffer,
+ size_t length)
+{
+ p_reg->RXD.PTR = (uint32_t)p_buffer;
+ p_reg->RXD.MAXCNT = length;
+}
+
+__STATIC_INLINE void nrf_spim_configure(NRF_SPIM_Type * p_reg,
+ nrf_spim_mode_t spi_mode,
+ nrf_spim_bit_order_t spi_bit_order)
+{
+ uint32_t config = (spi_bit_order == NRF_SPIM_BIT_ORDER_MSB_FIRST ?
+ SPIM_CONFIG_ORDER_MsbFirst : SPIM_CONFIG_ORDER_LsbFirst);
+ switch (spi_mode)
+ {
+ default:
+ case NRF_SPIM_MODE_0:
+ config |= (SPIM_CONFIG_CPOL_ActiveHigh << SPIM_CONFIG_CPOL_Pos) |
+ (SPIM_CONFIG_CPHA_Leading << SPIM_CONFIG_CPHA_Pos);
+ break;
+
+ case NRF_SPIM_MODE_1:
+ config |= (SPIM_CONFIG_CPOL_ActiveHigh << SPIM_CONFIG_CPOL_Pos) |
+ (SPIM_CONFIG_CPHA_Trailing << SPIM_CONFIG_CPHA_Pos);
+ break;
+
+ case NRF_SPIM_MODE_2:
+ config |= (SPIM_CONFIG_CPOL_ActiveLow << SPIM_CONFIG_CPOL_Pos) |
+ (SPIM_CONFIG_CPHA_Leading << SPIM_CONFIG_CPHA_Pos);
+ break;
+
+ case NRF_SPIM_MODE_3:
+ config |= (SPIM_CONFIG_CPOL_ActiveLow << SPIM_CONFIG_CPOL_Pos) |
+ (SPIM_CONFIG_CPHA_Trailing << SPIM_CONFIG_CPHA_Pos);
+ break;
+ }
+ p_reg->CONFIG = config;
+}
+
+__STATIC_INLINE void nrf_spim_orc_set(NRF_SPIM_Type * p_reg,
+ uint8_t orc)
+{
+ p_reg->ORC = orc;
+}
+
+
+__STATIC_INLINE void nrf_spim_tx_list_enable(NRF_SPIM_Type * p_reg)
+{
+ p_reg->TXD.LIST = 1;
+}
+
+__STATIC_INLINE void nrf_spim_tx_list_disable(NRF_SPIM_Type * p_reg)
+{
+ p_reg->TXD.LIST = 0;
+}
+
+__STATIC_INLINE void nrf_spim_rx_list_enable(NRF_SPIM_Type * p_reg)
+{
+ p_reg->RXD.LIST = 1;
+}
+
+__STATIC_INLINE void nrf_spim_rx_list_disable(NRF_SPIM_Type * p_reg)
+{
+ p_reg->RXD.LIST = 0;
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_SPIM_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_spis.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_spis.h
new file mode 100644
index 0000000..d2d56c6
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_spis.h
@@ -0,0 +1,571 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_SPIS_H__
+#define NRF_SPIS_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_spis_hal SPIS HAL
+ * @{
+ * @ingroup nrf_spis
+ * @brief Hardware access layer for managing the SPIS peripheral.
+ */
+
+/**
+ * @brief This value can be used as a parameter for the @ref nrf_spis_pins_set
+ * function to specify that a given SPI signal (SCK, MOSI, or MISO)
+ * shall not be connected to a physical pin.
+ */
+#define NRF_SPIS_PIN_NOT_CONNECTED 0xFFFFFFFF
+
+
+/**
+ * @brief SPIS tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_SPIS_TASK_ACQUIRE = offsetof(NRF_SPIS_Type, TASKS_ACQUIRE), ///< Acquire SPI semaphore.
+ NRF_SPIS_TASK_RELEASE = offsetof(NRF_SPIS_Type, TASKS_RELEASE), ///< Release SPI semaphore, enabling the SPI slave to acquire it.
+ /*lint -restore*/
+} nrf_spis_task_t;
+
+/**
+ * @brief SPIS events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_SPIS_EVENT_END = offsetof(NRF_SPIS_Type, EVENTS_END), ///< Granted transaction completed.
+ NRF_SPIS_EVENT_ACQUIRED = offsetof(NRF_SPIS_Type, EVENTS_ACQUIRED) ///< Semaphore acquired.
+ /*lint -restore*/
+} nrf_spis_event_t;
+
+/**
+ * @brief SPIS shortcuts.
+ */
+typedef enum
+{
+ NRF_SPIS_SHORT_END_ACQUIRE = SPIS_SHORTS_END_ACQUIRE_Msk ///< Shortcut between END event and ACQUIRE task.
+} nrf_spis_short_mask_t;
+
+/**
+ * @brief SPIS interrupts.
+ */
+typedef enum
+{
+ NRF_SPIS_INT_END_MASK = SPIS_INTENSET_END_Msk, ///< Interrupt on END event.
+ NRF_SPIS_INT_ACQUIRED_MASK = SPIS_INTENSET_ACQUIRED_Msk ///< Interrupt on ACQUIRED event.
+} nrf_spis_int_mask_t;
+
+/**
+ * @brief SPI modes.
+ */
+typedef enum
+{
+ NRF_SPIS_MODE_0, ///< SCK active high, sample on leading edge of clock.
+ NRF_SPIS_MODE_1, ///< SCK active high, sample on trailing edge of clock.
+ NRF_SPIS_MODE_2, ///< SCK active low, sample on leading edge of clock.
+ NRF_SPIS_MODE_3 ///< SCK active low, sample on trailing edge of clock.
+} nrf_spis_mode_t;
+
+/**
+ * @brief SPI bit orders.
+ */
+typedef enum
+{
+ NRF_SPIS_BIT_ORDER_MSB_FIRST = SPIS_CONFIG_ORDER_MsbFirst, ///< Most significant bit shifted out first.
+ NRF_SPIS_BIT_ORDER_LSB_FIRST = SPIS_CONFIG_ORDER_LsbFirst ///< Least significant bit shifted out first.
+} nrf_spis_bit_order_t;
+
+/**
+ * @brief SPI semaphore status.
+ */
+typedef enum
+{
+ NRF_SPIS_SEMSTAT_FREE = 0, ///< Semaphore is free.
+ NRF_SPIS_SEMSTAT_CPU = 1, ///< Semaphore is assigned to the CPU.
+ NRF_SPIS_SEMSTAT_SPIS = 2, ///< Semaphore is assigned to the SPI slave.
+ NRF_SPIS_SEMSTAT_CPUPENDING = 3 ///< Semaphore is assigned to the SPI, but a handover to the CPU is pending.
+} nrf_spis_semstat_t;
+
+/**
+ * @brief SPIS status.
+ */
+typedef enum
+{
+ NRF_SPIS_STATUS_OVERREAD = SPIS_STATUS_OVERREAD_Msk, ///< TX buffer over-read detected and prevented.
+ NRF_SPIS_STATUS_OVERFLOW = SPIS_STATUS_OVERFLOW_Msk ///< RX buffer overflow detected and prevented.
+} nrf_spis_status_mask_t;
+
+/**
+ * @brief Function for activating a specific SPIS task.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spis_task Task to activate.
+ */
+__STATIC_INLINE void nrf_spis_task_trigger(NRF_SPIS_Type * p_reg,
+ nrf_spis_task_t spis_task);
+
+/**
+ * @brief Function for getting the address of a specific SPIS task register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spis_task Requested task.
+ *
+ * @return Address of the specified task register.
+ */
+__STATIC_INLINE uint32_t nrf_spis_task_address_get(NRF_SPIS_Type const * p_reg,
+ nrf_spis_task_t spis_task);
+
+/**
+ * @brief Function for clearing a specific SPIS event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spis_event Event to clear.
+ */
+__STATIC_INLINE void nrf_spis_event_clear(NRF_SPIS_Type * p_reg,
+ nrf_spis_event_t spis_event);
+
+/**
+ * @brief Function for checking the state of a specific SPIS event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spis_event Event to check.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_spis_event_check(NRF_SPIS_Type const * p_reg,
+ nrf_spis_event_t spis_event);
+
+/**
+ * @brief Function for getting the address of a specific SPIS event register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spis_event Requested event.
+ *
+ * @return Address of the specified event register.
+ */
+__STATIC_INLINE uint32_t nrf_spis_event_address_get(NRF_SPIS_Type const * p_reg,
+ nrf_spis_event_t spis_event);
+
+/**
+ * @brief Function for enabling specified shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spis_shorts_mask Shortcuts to enable.
+ */
+__STATIC_INLINE void nrf_spis_shorts_enable(NRF_SPIS_Type * p_reg,
+ uint32_t spis_shorts_mask);
+
+/**
+ * @brief Function for disabling specified shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spis_shorts_mask Shortcuts to disable.
+ */
+__STATIC_INLINE void nrf_spis_shorts_disable(NRF_SPIS_Type * p_reg,
+ uint32_t spis_shorts_mask);
+
+/**
+ * @brief Function for enabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spis_int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_spis_int_enable(NRF_SPIS_Type * p_reg,
+ uint32_t spis_int_mask);
+
+/**
+ * @brief Function for disabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spis_int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_spis_int_disable(NRF_SPIS_Type * p_reg,
+ uint32_t spis_int_mask);
+
+/**
+ * @brief Function for retrieving the state of a given interrupt.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spis_int Interrupt to check.
+ *
+ * @retval true If the interrupt is enabled.
+ * @retval false If the interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_spis_int_enable_check(NRF_SPIS_Type const * p_reg,
+ nrf_spis_int_mask_t spis_int);
+
+/**
+ * @brief Function for enabling the SPIS peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_spis_enable(NRF_SPIS_Type * p_reg);
+
+/**
+ * @brief Function for disabling the SPIS peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_spis_disable(NRF_SPIS_Type * p_reg);
+
+/**
+ * @brief Function for retrieving the SPIS semaphore status.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @returns Current semaphore status.
+ */
+__STATIC_INLINE nrf_spis_semstat_t nrf_spis_semaphore_status_get(NRF_SPIS_Type * p_reg);
+
+/**
+ * @brief Function for retrieving the SPIS status.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @returns Current SPIS status.
+ */
+__STATIC_INLINE nrf_spis_status_mask_t nrf_spis_status_get(NRF_SPIS_Type * p_reg);
+
+/**
+ * @brief Function for configuring SPIS pins.
+ *
+ * If a given signal is not needed, pass the @ref NRF_SPIS_PIN_NOT_CONNECTED
+ * value instead of its pin number.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] sck_pin SCK pin number.
+ * @param[in] mosi_pin MOSI pin number.
+ * @param[in] miso_pin MISO pin number.
+ * @param[in] csn_pin CSN pin number.
+ */
+__STATIC_INLINE void nrf_spis_pins_set(NRF_SPIS_Type * p_reg,
+ uint32_t sck_pin,
+ uint32_t mosi_pin,
+ uint32_t miso_pin,
+ uint32_t csn_pin);
+
+/**
+ * @brief Function for setting the transmit buffer.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] p_buffer Pointer to the buffer that contains the data to send.
+ * @param[in] length Maximum number of data bytes to transmit.
+ */
+__STATIC_INLINE void nrf_spis_tx_buffer_set(NRF_SPIS_Type * p_reg,
+ uint8_t const * p_buffer,
+ size_t length);
+
+/**
+ * @brief Function for setting the receive buffer.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] p_buffer Pointer to the buffer for received data.
+ * @param[in] length Maximum number of data bytes to receive.
+ */
+__STATIC_INLINE void nrf_spis_rx_buffer_set(NRF_SPIS_Type * p_reg,
+ uint8_t * p_buffer,
+ size_t length);
+
+/**
+ * @brief Function for getting the number of bytes transmitted
+ * in the last granted transaction.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @returns Number of bytes transmitted.
+ */
+__STATIC_INLINE size_t nrf_spis_tx_amount_get(NRF_SPIS_Type const * p_reg);
+
+/**
+ * @brief Function for getting the number of bytes received
+ * in the last granted transaction.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @returns Number of bytes received.
+ */
+__STATIC_INLINE size_t nrf_spis_rx_amount_get(NRF_SPIS_Type const * p_reg);
+
+/**
+ * @brief Function for setting the SPI configuration.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] spi_mode SPI mode.
+ * @param[in] spi_bit_order SPI bit order.
+ */
+__STATIC_INLINE void nrf_spis_configure(NRF_SPIS_Type * p_reg,
+ nrf_spis_mode_t spi_mode,
+ nrf_spis_bit_order_t spi_bit_order);
+
+/**
+ * @brief Function for setting the default character.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] def Default character that is clocked out in case of
+ * an overflow of the RXD buffer.
+ */
+__STATIC_INLINE void nrf_spis_def_set(NRF_SPIS_Type * p_reg,
+ uint8_t def);
+
+/**
+ * @brief Function for setting the over-read character.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] orc Over-read character that is clocked out in case of
+ * an over-read of the TXD buffer.
+ */
+__STATIC_INLINE void nrf_spis_orc_set(NRF_SPIS_Type * p_reg,
+ uint8_t orc);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_spis_task_trigger(NRF_SPIS_Type * p_reg,
+ nrf_spis_task_t spis_task)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)spis_task)) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t nrf_spis_task_address_get(NRF_SPIS_Type const * p_reg,
+ nrf_spis_task_t spis_task)
+{
+ return (uint32_t)p_reg + (uint32_t)spis_task;
+}
+
+__STATIC_INLINE void nrf_spis_event_clear(NRF_SPIS_Type * p_reg,
+ nrf_spis_event_t spis_event)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)spis_event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)spis_event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE bool nrf_spis_event_check(NRF_SPIS_Type const * p_reg,
+ nrf_spis_event_t spis_event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)spis_event);
+}
+
+__STATIC_INLINE uint32_t nrf_spis_event_address_get(NRF_SPIS_Type const * p_reg,
+ nrf_spis_event_t spis_event)
+{
+ return (uint32_t)p_reg + (uint32_t)spis_event;
+}
+
+__STATIC_INLINE void nrf_spis_shorts_enable(NRF_SPIS_Type * p_reg,
+ uint32_t spis_shorts_mask)
+{
+ p_reg->SHORTS |= spis_shorts_mask;
+}
+
+__STATIC_INLINE void nrf_spis_shorts_disable(NRF_SPIS_Type * p_reg,
+ uint32_t spis_shorts_mask)
+{
+ p_reg->SHORTS &= ~(spis_shorts_mask);
+}
+
+__STATIC_INLINE void nrf_spis_int_enable(NRF_SPIS_Type * p_reg,
+ uint32_t spis_int_mask)
+{
+ p_reg->INTENSET = spis_int_mask;
+}
+
+__STATIC_INLINE void nrf_spis_int_disable(NRF_SPIS_Type * p_reg,
+ uint32_t spis_int_mask)
+{
+ p_reg->INTENCLR = spis_int_mask;
+}
+
+__STATIC_INLINE bool nrf_spis_int_enable_check(NRF_SPIS_Type const * p_reg,
+ nrf_spis_int_mask_t spis_int)
+{
+ return (bool)(p_reg->INTENSET & spis_int);
+}
+
+__STATIC_INLINE void nrf_spis_enable(NRF_SPIS_Type * p_reg)
+{
+ p_reg->ENABLE = (SPIS_ENABLE_ENABLE_Enabled << SPIS_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_spis_disable(NRF_SPIS_Type * p_reg)
+{
+ p_reg->ENABLE = (SPIS_ENABLE_ENABLE_Disabled << SPIS_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE nrf_spis_semstat_t nrf_spis_semaphore_status_get(NRF_SPIS_Type * p_reg)
+{
+ return (nrf_spis_semstat_t) ((p_reg->SEMSTAT & SPIS_SEMSTAT_SEMSTAT_Msk)
+ >> SPIS_SEMSTAT_SEMSTAT_Pos);
+}
+
+__STATIC_INLINE nrf_spis_status_mask_t nrf_spis_status_get(NRF_SPIS_Type * p_reg)
+{
+ return (nrf_spis_status_mask_t) p_reg->STATUS;
+}
+
+__STATIC_INLINE void nrf_spis_pins_set(NRF_SPIS_Type * p_reg,
+ uint32_t sck_pin,
+ uint32_t mosi_pin,
+ uint32_t miso_pin,
+ uint32_t csn_pin)
+{
+#if defined (NRF51)
+ p_reg->PSELSCK = sck_pin;
+ p_reg->PSELMOSI = mosi_pin;
+ p_reg->PSELMISO = miso_pin;
+ p_reg->PSELCSN = csn_pin;
+#else
+ p_reg->PSEL.SCK = sck_pin;
+ p_reg->PSEL.MOSI = mosi_pin;
+ p_reg->PSEL.MISO = miso_pin;
+ p_reg->PSEL.CSN = csn_pin;
+#endif
+}
+
+__STATIC_INLINE void nrf_spis_tx_buffer_set(NRF_SPIS_Type * p_reg,
+ uint8_t const * p_buffer,
+ size_t length)
+{
+#if defined (NRF51)
+ p_reg->TXDPTR = (uint32_t)p_buffer;
+ p_reg->MAXTX = length;
+#else
+ p_reg->TXD.PTR = (uint32_t)p_buffer;
+ p_reg->TXD.MAXCNT = length;
+#endif
+}
+
+__STATIC_INLINE void nrf_spis_rx_buffer_set(NRF_SPIS_Type * p_reg,
+ uint8_t * p_buffer,
+ size_t length)
+{
+#if defined (NRF51)
+ p_reg->RXDPTR = (uint32_t)p_buffer;
+ p_reg->MAXRX = length;
+#else
+ p_reg->RXD.PTR = (uint32_t)p_buffer;
+ p_reg->RXD.MAXCNT = length;
+#endif
+}
+
+__STATIC_INLINE size_t nrf_spis_tx_amount_get(NRF_SPIS_Type const * p_reg)
+{
+#if defined (NRF51)
+ return p_reg->AMOUNTTX;
+#else
+ return p_reg->TXD.AMOUNT;
+#endif
+}
+
+__STATIC_INLINE size_t nrf_spis_rx_amount_get(NRF_SPIS_Type const * p_reg)
+{
+#if defined (NRF51)
+ return p_reg->AMOUNTRX;
+#else
+ return p_reg->RXD.AMOUNT;
+#endif
+}
+
+__STATIC_INLINE void nrf_spis_configure(NRF_SPIS_Type * p_reg,
+ nrf_spis_mode_t spi_mode,
+ nrf_spis_bit_order_t spi_bit_order)
+{
+ uint32_t config = (spi_bit_order == NRF_SPIS_BIT_ORDER_MSB_FIRST ?
+ SPIS_CONFIG_ORDER_MsbFirst : SPIS_CONFIG_ORDER_LsbFirst);
+
+ switch (spi_mode)
+ {
+ default:
+ case NRF_SPIS_MODE_0:
+ config |= (SPIS_CONFIG_CPOL_ActiveHigh << SPIS_CONFIG_CPOL_Pos) |
+ (SPIS_CONFIG_CPHA_Leading << SPIS_CONFIG_CPHA_Pos);
+ break;
+
+ case NRF_SPIS_MODE_1:
+ config |= (SPIS_CONFIG_CPOL_ActiveHigh << SPIS_CONFIG_CPOL_Pos) |
+ (SPIS_CONFIG_CPHA_Trailing << SPIS_CONFIG_CPHA_Pos);
+ break;
+
+ case NRF_SPIS_MODE_2:
+ config |= (SPIS_CONFIG_CPOL_ActiveLow << SPIS_CONFIG_CPOL_Pos) |
+ (SPIS_CONFIG_CPHA_Leading << SPIS_CONFIG_CPHA_Pos);
+ break;
+
+ case NRF_SPIS_MODE_3:
+ config |= (SPIS_CONFIG_CPOL_ActiveLow << SPIS_CONFIG_CPOL_Pos) |
+ (SPIS_CONFIG_CPHA_Trailing << SPIS_CONFIG_CPHA_Pos);
+ break;
+ }
+ p_reg->CONFIG = config;
+}
+
+__STATIC_INLINE void nrf_spis_orc_set(NRF_SPIS_Type * p_reg,
+ uint8_t orc)
+{
+ p_reg->ORC = orc;
+}
+
+__STATIC_INLINE void nrf_spis_def_set(NRF_SPIS_Type * p_reg,
+ uint8_t def)
+{
+ p_reg->DEF = def;
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_SPIS_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_systick.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_systick.h
new file mode 100644
index 0000000..4842fb4
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_systick.h
@@ -0,0 +1,190 @@
+/**
+ * Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_SYSTICK_H__
+#define NRF_SYSTICK_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_systick_hal SYSTICK HAL
+ * @{
+ * @ingroup nrf_systick
+ * @brief Hardware access layer for managing the SYSTICK peripheral.
+ *
+ * SYSTICK is ARM peripheral, not Nordic design.
+ * It means that it has no Nordic-typical interface with Tasks and Events.
+ *
+ * Its usage is limited here to implement simple delays.
+ * Also keep in mind that this timer would be stopped when CPU is sleeping
+ * (WFE/WFI instruction is successfully executed).
+ */
+
+/**
+ * @brief Mask of usable bits in the SysTick value
+ */
+#define NRF_SYSTICK_VAL_MASK SysTick_VAL_CURRENT_Msk
+
+/**
+ * @brief Flags used by SysTick configuration.
+ *
+ * @sa nrf_systick_csr_set
+ * @sa nrf_systick_csr_get
+ */
+typedef enum {
+ NRF_SYSTICK_CSR_COUNTFLAG_MASK = SysTick_CTRL_COUNTFLAG_Msk, /**< Status flag: Returns 1 if timer counted to 0 since the last read of this register. */
+
+ NRF_SYSTICK_CSR_CLKSOURCE_MASK = SysTick_CTRL_CLKSOURCE_Msk, /**< Configuration bit: Select the SysTick clock source. */
+ NRF_SYSTICK_CSR_CLKSOURCE_REF = 0U << SysTick_CTRL_CLKSOURCE_Pos, /**< Configuration value: Select reference clock. */
+ NRF_SYSTICK_CSR_CLKSOURCE_CPU = 1U << SysTick_CTRL_CLKSOURCE_Pos, /**< Configuration value: Select CPU clock. */
+
+ NRF_SYSTICK_CSR_TICKINT_MASK = SysTick_CTRL_TICKINT_Msk, /**< Configuration bit: Enables SysTick exception request. */
+ NRF_SYSTICK_CSR_TICKINT_ENABLE = 1U << SysTick_CTRL_TICKINT_Pos, /**< Configuration value: Counting down to zero does not assert the SysTick exception request. */
+ NRF_SYSTICK_CSR_TICKINT_DISABLE = 0U << SysTick_CTRL_TICKINT_Pos, /**< Configuration value: Counting down to zero to asserts the SysTick exception request. */
+
+ NRF_SYSTICK_CSR_ENABLE_MASK = SysTick_CTRL_ENABLE_Msk, /**< Configuration bit: Enable the SysTick timer. */
+ NRF_SYSTICK_CSR_ENABLE = 1U << SysTick_CTRL_ENABLE_Pos, /**< Configuration value: Counter enabled. */
+ NRF_SYSTICK_CSR_DISABLE = 0U << SysTick_CTRL_ENABLE_Pos /**< Configuration value: Counter disabled. */
+} nrf_systick_csr_flags_t;
+
+/**
+ * @brief Get Configuration and Status Register
+ *
+ * @return Values composed by @ref nrf_systick_csr_flags_t.
+ * @note The @ref NRF_SYSTICK_CSR_COUNTFLAG_MASK value is cleared when CSR register is read.
+ */
+__STATIC_INLINE uint32_t nrf_systick_csr_get(void);
+
+/**
+ * @brief Set Configuration and Status Register
+ *
+ * @param[in] val The value composed from @ref nrf_systick_csr_flags_t.
+ */
+__STATIC_INLINE void nrf_systick_csr_set(uint32_t val);
+
+/**
+ * @brief Get the current reload value.
+ *
+ * @return The reload register value.
+ */
+__STATIC_INLINE uint32_t nrf_systick_load_get(void);
+
+/**
+ * @brief Configure the reload value.
+ *
+ * @param[in] val The value to set in the reload register.
+ */
+__STATIC_INLINE void nrf_systick_load_set(uint32_t val);
+
+/**
+ * @brief Read the SysTick current value
+ *
+ * @return The current SysTick value
+ * @sa NRF_SYSTICK_VAL_MASK
+ */
+__STATIC_INLINE uint32_t nrf_systick_val_get(void);
+
+/**
+ * @brief Clear the SysTick current value
+ *
+ * @note The SysTick does not allow setting current value.
+ * Any write to VAL register would clear the timer.
+ */
+__STATIC_INLINE void nrf_systick_val_clear(void);
+
+/**
+ * @brief Read the calibration register
+ *
+ * @return The calibration register value
+ */
+__STATIC_INLINE uint32_t nrf_systick_calib_get(void);
+
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE uint32_t nrf_systick_csr_get(void)
+{
+ return SysTick->CTRL;
+}
+
+__STATIC_INLINE void nrf_systick_csr_set(uint32_t val)
+{
+ SysTick->CTRL = val;
+}
+
+__STATIC_INLINE uint32_t nrf_systick_load_get(void)
+{
+ return SysTick->LOAD;
+}
+
+__STATIC_INLINE void nrf_systick_load_set(uint32_t val)
+{
+ SysTick->LOAD = val;
+}
+
+__STATIC_INLINE uint32_t nrf_systick_val_get(void)
+{
+ return SysTick->VAL;
+}
+
+__STATIC_INLINE void nrf_systick_val_clear(void)
+{
+ SysTick->VAL = 0;
+}
+
+__STATIC_INLINE uint32_t nrf_systick_calib_get(void)
+{
+ return SysTick->CALIB;
+}
+
+#endif /* SUPPRESS_INLINE_IMPLEMENTATION */
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NRF_SYSTICK_H__ */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_temp.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_temp.h
new file mode 100644
index 0000000..04772a9
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_temp.h
@@ -0,0 +1,88 @@
+/**
+ * Copyright (c) 2012 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_TEMP_H__
+#define NRF_TEMP_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+* @defgroup nrf_temp_hal TEMP HAL
+* @{
+* @ingroup nrf_temp temperature_example
+* @brief Temperature module init and read functions.
+*/
+
+#define MASK_SIGN (0x00000200UL)
+#define MASK_SIGN_EXTENSION (0xFFFFFC00UL)
+
+/**
+ * @brief Function for preparing the temp module for temperature measurement.
+ *
+ * This function initializes the TEMP module and writes to the hidden configuration register.
+ */
+static __INLINE void nrf_temp_init(void)
+{
+ /**@note Workaround for PAN_028 rev2.0A anomaly 31 - TEMP: Temperature offset value has to be manually loaded to the TEMP module */
+ *(uint32_t *) 0x4000C504 = 0;
+}
+
+/**
+ * @brief Function for reading temperature measurement.
+ *
+ * The function reads the 10 bit 2's complement value and transforms it to a 32 bit 2's complement value.
+ */
+static __INLINE int32_t nrf_temp_read(void)
+{
+ /**@note Workaround for PAN_028 rev2.0A anomaly 28 - TEMP: Negative measured values are not represented correctly */
+ return ((NRF_TEMP->TEMP & MASK_SIGN) != 0) ? (int32_t)(NRF_TEMP->TEMP | MASK_SIGN_EXTENSION) : (NRF_TEMP->TEMP);
+}
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_timer.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_timer.h
new file mode 100644
index 0000000..2303478
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_timer.h
@@ -0,0 +1,634 @@
+/**
+ * Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_TIMER_H__
+#define NRF_TIMER_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_timer_hal TIMER HAL
+ * @{
+ * @ingroup nrf_timer
+ * @brief Hardware access layer for managing the TIMER peripheral.
+ */
+
+/**
+ * @brief Macro for validating the correctness of the BIT_WIDTH setting.
+ */
+
+#define TIMER_MAX_SIZE(id) NRFX_CONCAT_3(TIMER, id, _MAX_SIZE)
+
+#define TIMER_BIT_WIDTH_MAX(id, bit_width) \
+ (TIMER_MAX_SIZE(id) == 8 ? (bit_width == NRF_TIMER_BIT_WIDTH_8) : \
+ (TIMER_MAX_SIZE(id) == 16 ? (bit_width == NRF_TIMER_BIT_WIDTH_8) || \
+ (bit_width == NRF_TIMER_BIT_WIDTH_16) : \
+ (TIMER_MAX_SIZE(id) == 24 ? (bit_width == NRF_TIMER_BIT_WIDTH_8) || \
+ (bit_width == NRF_TIMER_BIT_WIDTH_16) || \
+ (bit_width == NRF_TIMER_BIT_WIDTH_24) : \
+ (TIMER_MAX_SIZE(id) == 32 ? (bit_width == NRF_TIMER_BIT_WIDTH_8) || \
+ (bit_width == NRF_TIMER_BIT_WIDTH_16) || \
+ (bit_width == NRF_TIMER_BIT_WIDTH_24) || \
+ (bit_width == NRF_TIMER_BIT_WIDTH_32) : \
+ false))))
+
+#if TIMER_COUNT > 3
+#define NRF_TIMER_IS_BIT_WIDTH_VALID(p_reg, bit_width) ( \
+ ((p_reg == NRF_TIMER0) && (TIMER_BIT_WIDTH_MAX(0, bit_width))) \
+ || ((p_reg == NRF_TIMER1) && (TIMER_BIT_WIDTH_MAX(1, bit_width))) \
+ || ((p_reg == NRF_TIMER2) && (TIMER_BIT_WIDTH_MAX(2, bit_width))) \
+ || ((p_reg == NRF_TIMER3) && (TIMER_BIT_WIDTH_MAX(3, bit_width))) \
+ || ((p_reg == NRF_TIMER4) && (TIMER_BIT_WIDTH_MAX(4, bit_width))) )
+
+#else
+#define NRF_TIMER_IS_BIT_WIDTH_VALID(p_reg, bit_width) ( \
+ ((p_reg == NRF_TIMER0) && TIMER_BIT_WIDTH_MAX(0, bit_width)) \
+ || ((p_reg == NRF_TIMER1) && TIMER_BIT_WIDTH_MAX(1, bit_width)) \
+ || ((p_reg == NRF_TIMER2) && TIMER_BIT_WIDTH_MAX(2, bit_width)) )
+
+#endif
+
+/**
+ * @brief Macro for getting the number of capture/compare channels available
+ * in a given timer instance.
+ */
+#define NRF_TIMER_CC_CHANNEL_COUNT(id) NRFX_CONCAT_3(TIMER, id, _CC_NUM)
+
+/**
+ * @brief Timer tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30 -esym(628,__INTADDR__)*/
+ NRF_TIMER_TASK_START = offsetof(NRF_TIMER_Type, TASKS_START), ///< Task for starting the timer.
+ NRF_TIMER_TASK_STOP = offsetof(NRF_TIMER_Type, TASKS_STOP), ///< Task for stopping the timer.
+ NRF_TIMER_TASK_COUNT = offsetof(NRF_TIMER_Type, TASKS_COUNT), ///< Task for incrementing the timer (in counter mode).
+ NRF_TIMER_TASK_CLEAR = offsetof(NRF_TIMER_Type, TASKS_CLEAR), ///< Task for resetting the timer value.
+ NRF_TIMER_TASK_SHUTDOWN = offsetof(NRF_TIMER_Type, TASKS_SHUTDOWN), ///< Task for powering off the timer.
+ NRF_TIMER_TASK_CAPTURE0 = offsetof(NRF_TIMER_Type, TASKS_CAPTURE[0]), ///< Task for capturing the timer value on channel 0.
+ NRF_TIMER_TASK_CAPTURE1 = offsetof(NRF_TIMER_Type, TASKS_CAPTURE[1]), ///< Task for capturing the timer value on channel 1.
+ NRF_TIMER_TASK_CAPTURE2 = offsetof(NRF_TIMER_Type, TASKS_CAPTURE[2]), ///< Task for capturing the timer value on channel 2.
+ NRF_TIMER_TASK_CAPTURE3 = offsetof(NRF_TIMER_Type, TASKS_CAPTURE[3]), ///< Task for capturing the timer value on channel 3.
+#if defined(TIMER_INTENSET_COMPARE4_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_TASK_CAPTURE4 = offsetof(NRF_TIMER_Type, TASKS_CAPTURE[4]), ///< Task for capturing the timer value on channel 4.
+#endif
+#if defined(TIMER_INTENSET_COMPARE5_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_TASK_CAPTURE5 = offsetof(NRF_TIMER_Type, TASKS_CAPTURE[5]), ///< Task for capturing the timer value on channel 5.
+#endif
+ /*lint -restore*/
+} nrf_timer_task_t;
+
+/**
+ * @brief Timer events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_TIMER_EVENT_COMPARE0 = offsetof(NRF_TIMER_Type, EVENTS_COMPARE[0]), ///< Event from compare channel 0.
+ NRF_TIMER_EVENT_COMPARE1 = offsetof(NRF_TIMER_Type, EVENTS_COMPARE[1]), ///< Event from compare channel 1.
+ NRF_TIMER_EVENT_COMPARE2 = offsetof(NRF_TIMER_Type, EVENTS_COMPARE[2]), ///< Event from compare channel 2.
+ NRF_TIMER_EVENT_COMPARE3 = offsetof(NRF_TIMER_Type, EVENTS_COMPARE[3]), ///< Event from compare channel 3.
+#if defined(TIMER_INTENSET_COMPARE4_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_EVENT_COMPARE4 = offsetof(NRF_TIMER_Type, EVENTS_COMPARE[4]), ///< Event from compare channel 4.
+#endif
+#if defined(TIMER_INTENSET_COMPARE5_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_EVENT_COMPARE5 = offsetof(NRF_TIMER_Type, EVENTS_COMPARE[5]), ///< Event from compare channel 5.
+#endif
+ /*lint -restore*/
+} nrf_timer_event_t;
+
+/**
+ * @brief Types of timer shortcuts.
+ */
+typedef enum
+{
+ NRF_TIMER_SHORT_COMPARE0_STOP_MASK = TIMER_SHORTS_COMPARE0_STOP_Msk, ///< Shortcut for stopping the timer based on compare 0.
+ NRF_TIMER_SHORT_COMPARE1_STOP_MASK = TIMER_SHORTS_COMPARE1_STOP_Msk, ///< Shortcut for stopping the timer based on compare 1.
+ NRF_TIMER_SHORT_COMPARE2_STOP_MASK = TIMER_SHORTS_COMPARE2_STOP_Msk, ///< Shortcut for stopping the timer based on compare 2.
+ NRF_TIMER_SHORT_COMPARE3_STOP_MASK = TIMER_SHORTS_COMPARE3_STOP_Msk, ///< Shortcut for stopping the timer based on compare 3.
+#if defined(TIMER_INTENSET_COMPARE4_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_SHORT_COMPARE4_STOP_MASK = TIMER_SHORTS_COMPARE4_STOP_Msk, ///< Shortcut for stopping the timer based on compare 4.
+#endif
+#if defined(TIMER_INTENSET_COMPARE5_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_SHORT_COMPARE5_STOP_MASK = TIMER_SHORTS_COMPARE5_STOP_Msk, ///< Shortcut for stopping the timer based on compare 5.
+#endif
+ NRF_TIMER_SHORT_COMPARE0_CLEAR_MASK = TIMER_SHORTS_COMPARE0_CLEAR_Msk, ///< Shortcut for clearing the timer based on compare 0.
+ NRF_TIMER_SHORT_COMPARE1_CLEAR_MASK = TIMER_SHORTS_COMPARE1_CLEAR_Msk, ///< Shortcut for clearing the timer based on compare 1.
+ NRF_TIMER_SHORT_COMPARE2_CLEAR_MASK = TIMER_SHORTS_COMPARE2_CLEAR_Msk, ///< Shortcut for clearing the timer based on compare 2.
+ NRF_TIMER_SHORT_COMPARE3_CLEAR_MASK = TIMER_SHORTS_COMPARE3_CLEAR_Msk, ///< Shortcut for clearing the timer based on compare 3.
+#if defined(TIMER_INTENSET_COMPARE4_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_SHORT_COMPARE4_CLEAR_MASK = TIMER_SHORTS_COMPARE4_CLEAR_Msk, ///< Shortcut for clearing the timer based on compare 4.
+#endif
+#if defined(TIMER_INTENSET_COMPARE5_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_SHORT_COMPARE5_CLEAR_MASK = TIMER_SHORTS_COMPARE5_CLEAR_Msk, ///< Shortcut for clearing the timer based on compare 5.
+#endif
+} nrf_timer_short_mask_t;
+
+/**
+ * @brief Timer modes.
+ */
+typedef enum
+{
+ NRF_TIMER_MODE_TIMER = TIMER_MODE_MODE_Timer, ///< Timer mode: timer.
+ NRF_TIMER_MODE_COUNTER = TIMER_MODE_MODE_Counter, ///< Timer mode: counter.
+#if defined(TIMER_MODE_MODE_LowPowerCounter) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_MODE_LOW_POWER_COUNTER = TIMER_MODE_MODE_LowPowerCounter, ///< Timer mode: low-power counter.
+#endif
+} nrf_timer_mode_t;
+
+/**
+ * @brief Timer bit width.
+ */
+typedef enum
+{
+ NRF_TIMER_BIT_WIDTH_8 = TIMER_BITMODE_BITMODE_08Bit, ///< Timer bit width 8 bit.
+ NRF_TIMER_BIT_WIDTH_16 = TIMER_BITMODE_BITMODE_16Bit, ///< Timer bit width 16 bit.
+ NRF_TIMER_BIT_WIDTH_24 = TIMER_BITMODE_BITMODE_24Bit, ///< Timer bit width 24 bit.
+ NRF_TIMER_BIT_WIDTH_32 = TIMER_BITMODE_BITMODE_32Bit ///< Timer bit width 32 bit.
+} nrf_timer_bit_width_t;
+
+/**
+ * @brief Timer prescalers.
+ */
+typedef enum
+{
+ NRF_TIMER_FREQ_16MHz = 0, ///< Timer frequency 16 MHz.
+ NRF_TIMER_FREQ_8MHz, ///< Timer frequency 8 MHz.
+ NRF_TIMER_FREQ_4MHz, ///< Timer frequency 4 MHz.
+ NRF_TIMER_FREQ_2MHz, ///< Timer frequency 2 MHz.
+ NRF_TIMER_FREQ_1MHz, ///< Timer frequency 1 MHz.
+ NRF_TIMER_FREQ_500kHz, ///< Timer frequency 500 kHz.
+ NRF_TIMER_FREQ_250kHz, ///< Timer frequency 250 kHz.
+ NRF_TIMER_FREQ_125kHz, ///< Timer frequency 125 kHz.
+ NRF_TIMER_FREQ_62500Hz, ///< Timer frequency 62500 Hz.
+ NRF_TIMER_FREQ_31250Hz ///< Timer frequency 31250 Hz.
+} nrf_timer_frequency_t;
+
+/**
+ * @brief Timer capture/compare channels.
+ */
+typedef enum
+{
+ NRF_TIMER_CC_CHANNEL0 = 0, ///< Timer capture/compare channel 0.
+ NRF_TIMER_CC_CHANNEL1, ///< Timer capture/compare channel 1.
+ NRF_TIMER_CC_CHANNEL2, ///< Timer capture/compare channel 2.
+ NRF_TIMER_CC_CHANNEL3, ///< Timer capture/compare channel 3.
+#if defined(TIMER_INTENSET_COMPARE4_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_CC_CHANNEL4, ///< Timer capture/compare channel 4.
+#endif
+#if defined(TIMER_INTENSET_COMPARE5_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_CC_CHANNEL5, ///< Timer capture/compare channel 5.
+#endif
+} nrf_timer_cc_channel_t;
+
+/**
+ * @brief Timer interrupts.
+ */
+typedef enum
+{
+ NRF_TIMER_INT_COMPARE0_MASK = TIMER_INTENSET_COMPARE0_Msk, ///< Timer interrupt from compare event on channel 0.
+ NRF_TIMER_INT_COMPARE1_MASK = TIMER_INTENSET_COMPARE1_Msk, ///< Timer interrupt from compare event on channel 1.
+ NRF_TIMER_INT_COMPARE2_MASK = TIMER_INTENSET_COMPARE2_Msk, ///< Timer interrupt from compare event on channel 2.
+ NRF_TIMER_INT_COMPARE3_MASK = TIMER_INTENSET_COMPARE3_Msk, ///< Timer interrupt from compare event on channel 3.
+#if defined(TIMER_INTENSET_COMPARE4_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_INT_COMPARE4_MASK = TIMER_INTENSET_COMPARE4_Msk, ///< Timer interrupt from compare event on channel 4.
+#endif
+#if defined(TIMER_INTENSET_COMPARE5_Msk) || defined(__NRFX_DOXYGEN__)
+ NRF_TIMER_INT_COMPARE5_MASK = TIMER_INTENSET_COMPARE5_Msk, ///< Timer interrupt from compare event on channel 5.
+#endif
+} nrf_timer_int_mask_t;
+
+
+/**
+ * @brief Function for activating a specific timer task.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] task Task to activate.
+ */
+__STATIC_INLINE void nrf_timer_task_trigger(NRF_TIMER_Type * p_reg,
+ nrf_timer_task_t task);
+
+/**
+ * @brief Function for getting the address of a specific timer task register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] task Requested task.
+ *
+ * @return Address of the specified task register.
+ */
+__STATIC_INLINE uint32_t * nrf_timer_task_address_get(NRF_TIMER_Type * p_reg,
+ nrf_timer_task_t task);
+
+/**
+ * @brief Function for clearing a specific timer event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Event to clear.
+ */
+__STATIC_INLINE void nrf_timer_event_clear(NRF_TIMER_Type * p_reg,
+ nrf_timer_event_t event);
+
+/**
+ * @brief Function for checking the state of a specific timer event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Event to check.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_timer_event_check(NRF_TIMER_Type * p_reg,
+ nrf_timer_event_t event);
+
+/**
+ * @brief Function for getting the address of a specific timer event register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Requested event.
+ *
+ * @return Address of the specified event register.
+ */
+__STATIC_INLINE uint32_t * nrf_timer_event_address_get(NRF_TIMER_Type * p_reg,
+ nrf_timer_event_t event);
+
+/**
+ * @brief Function for enabling specified shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] timer_shorts_mask Shortcuts to enable.
+ */
+__STATIC_INLINE void nrf_timer_shorts_enable(NRF_TIMER_Type * p_reg,
+ uint32_t timer_shorts_mask);
+
+/**
+ * @brief Function for disabling specified shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] timer_shorts_mask Shortcuts to disable.
+ */
+__STATIC_INLINE void nrf_timer_shorts_disable(NRF_TIMER_Type * p_reg,
+ uint32_t timer_shorts_mask);
+
+/**
+ * @brief Function for enabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] timer_int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_timer_int_enable(NRF_TIMER_Type * p_reg,
+ uint32_t timer_int_mask);
+
+/**
+ * @brief Function for disabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] timer_int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_timer_int_disable(NRF_TIMER_Type * p_reg,
+ uint32_t timer_int_mask);
+
+/**
+ * @brief Function for retrieving the state of a given interrupt.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] timer_int Interrupt to check.
+ *
+ * @retval true If the interrupt is enabled.
+ * @retval false If the interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_timer_int_enable_check(NRF_TIMER_Type * p_reg,
+ uint32_t timer_int);
+
+/**
+ * @brief Function for setting the timer mode.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] mode Timer mode.
+ */
+__STATIC_INLINE void nrf_timer_mode_set(NRF_TIMER_Type * p_reg,
+ nrf_timer_mode_t mode);
+
+/**
+ * @brief Function for retrieving the timer mode.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @return Timer mode.
+ */
+__STATIC_INLINE nrf_timer_mode_t nrf_timer_mode_get(NRF_TIMER_Type * p_reg);
+
+/**
+ * @brief Function for setting the timer bit width.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] bit_width Timer bit width.
+ */
+__STATIC_INLINE void nrf_timer_bit_width_set(NRF_TIMER_Type * p_reg,
+ nrf_timer_bit_width_t bit_width);
+
+/**
+ * @brief Function for retrieving the timer bit width.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @return Timer bit width.
+ */
+__STATIC_INLINE nrf_timer_bit_width_t nrf_timer_bit_width_get(NRF_TIMER_Type * p_reg);
+
+/**
+ * @brief Function for setting the timer frequency.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] frequency Timer frequency.
+ */
+__STATIC_INLINE void nrf_timer_frequency_set(NRF_TIMER_Type * p_reg,
+ nrf_timer_frequency_t frequency);
+
+/**
+ * @brief Function for retrieving the timer frequency.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @return Timer frequency.
+ */
+__STATIC_INLINE nrf_timer_frequency_t nrf_timer_frequency_get(NRF_TIMER_Type * p_reg);
+
+/**
+ * @brief Function for writing the capture/compare register for a specified channel.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] cc_channel Requested capture/compare channel.
+ * @param[in] cc_value Value to write to the capture/compare register.
+ */
+__STATIC_INLINE void nrf_timer_cc_write(NRF_TIMER_Type * p_reg,
+ nrf_timer_cc_channel_t cc_channel,
+ uint32_t cc_value);
+
+/**
+ * @brief Function for retrieving the capture/compare value for a specified channel.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] cc_channel Requested capture/compare channel.
+ *
+ * @return Value from the requested capture/compare register.
+ */
+__STATIC_INLINE uint32_t nrf_timer_cc_read(NRF_TIMER_Type * p_reg,
+ nrf_timer_cc_channel_t cc_channel);
+
+/**
+ * @brief Function for getting a specific timer capture task.
+ *
+ * @param[in] channel Capture channel.
+ *
+ * @return Capture task.
+ */
+__STATIC_INLINE nrf_timer_task_t nrf_timer_capture_task_get(uint32_t channel);
+
+/**
+ * @brief Function for getting a specific timer compare event.
+ *
+ * @param[in] channel Compare channel.
+ *
+ * @return Compare event.
+ */
+__STATIC_INLINE nrf_timer_event_t nrf_timer_compare_event_get(uint32_t channel);
+
+/**
+ * @brief Function for getting a specific timer compare interrupt.
+ *
+ * @param[in] channel Compare channel.
+ *
+ * @return Compare interrupt.
+ */
+__STATIC_INLINE nrf_timer_int_mask_t nrf_timer_compare_int_get(uint32_t channel);
+
+/**
+ * @brief Function for calculating the number of timer ticks for a given time
+ * (in microseconds) and timer frequency.
+ *
+ * @param[in] time_us Time in microseconds.
+ * @param[in] frequency Timer frequency.
+ *
+ * @return Number of timer ticks.
+ */
+__STATIC_INLINE uint32_t nrf_timer_us_to_ticks(uint32_t time_us,
+ nrf_timer_frequency_t frequency);
+
+/**
+ * @brief Function for calculating the number of timer ticks for a given time
+ * (in milliseconds) and timer frequency.
+ *
+ * @param[in] time_ms Time in milliseconds.
+ * @param[in] frequency Timer frequency.
+ *
+ * @return Number of timer ticks.
+ */
+__STATIC_INLINE uint32_t nrf_timer_ms_to_ticks(uint32_t time_ms,
+ nrf_timer_frequency_t frequency);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_timer_task_trigger(NRF_TIMER_Type * p_reg,
+ nrf_timer_task_t task)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t * nrf_timer_task_address_get(NRF_TIMER_Type * p_reg,
+ nrf_timer_task_t task)
+{
+ return (uint32_t *)((uint8_t *)p_reg + (uint32_t)task);
+}
+
+__STATIC_INLINE void nrf_timer_event_clear(NRF_TIMER_Type * p_reg,
+ nrf_timer_event_t event)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE bool nrf_timer_event_check(NRF_TIMER_Type * p_reg,
+ nrf_timer_event_t event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event);
+}
+
+__STATIC_INLINE uint32_t * nrf_timer_event_address_get(NRF_TIMER_Type * p_reg,
+ nrf_timer_event_t event)
+{
+ return (uint32_t *)((uint8_t *)p_reg + (uint32_t)event);
+}
+
+__STATIC_INLINE void nrf_timer_shorts_enable(NRF_TIMER_Type * p_reg,
+ uint32_t timer_shorts_mask)
+{
+ p_reg->SHORTS |= timer_shorts_mask;
+}
+
+__STATIC_INLINE void nrf_timer_shorts_disable(NRF_TIMER_Type * p_reg,
+ uint32_t timer_shorts_mask)
+{
+ p_reg->SHORTS &= ~(timer_shorts_mask);
+}
+
+__STATIC_INLINE void nrf_timer_int_enable(NRF_TIMER_Type * p_reg,
+ uint32_t timer_int_mask)
+{
+ p_reg->INTENSET = timer_int_mask;
+}
+
+__STATIC_INLINE void nrf_timer_int_disable(NRF_TIMER_Type * p_reg,
+ uint32_t timer_int_mask)
+{
+ p_reg->INTENCLR = timer_int_mask;
+}
+
+__STATIC_INLINE bool nrf_timer_int_enable_check(NRF_TIMER_Type * p_reg,
+ uint32_t timer_int)
+{
+ return (bool)(p_reg->INTENSET & timer_int);
+}
+
+__STATIC_INLINE void nrf_timer_mode_set(NRF_TIMER_Type * p_reg,
+ nrf_timer_mode_t mode)
+{
+ p_reg->MODE = (p_reg->MODE & ~TIMER_MODE_MODE_Msk) |
+ ((mode << TIMER_MODE_MODE_Pos) & TIMER_MODE_MODE_Msk);
+}
+
+__STATIC_INLINE nrf_timer_mode_t nrf_timer_mode_get(NRF_TIMER_Type * p_reg)
+{
+ return (nrf_timer_mode_t)(p_reg->MODE);
+}
+
+__STATIC_INLINE void nrf_timer_bit_width_set(NRF_TIMER_Type * p_reg,
+ nrf_timer_bit_width_t bit_width)
+{
+ p_reg->BITMODE = (p_reg->BITMODE & ~TIMER_BITMODE_BITMODE_Msk) |
+ ((bit_width << TIMER_BITMODE_BITMODE_Pos) &
+ TIMER_BITMODE_BITMODE_Msk);
+}
+
+__STATIC_INLINE nrf_timer_bit_width_t nrf_timer_bit_width_get(NRF_TIMER_Type * p_reg)
+{
+ return (nrf_timer_bit_width_t)(p_reg->BITMODE);
+}
+
+__STATIC_INLINE void nrf_timer_frequency_set(NRF_TIMER_Type * p_reg,
+ nrf_timer_frequency_t frequency)
+{
+ p_reg->PRESCALER = (p_reg->PRESCALER & ~TIMER_PRESCALER_PRESCALER_Msk) |
+ ((frequency << TIMER_PRESCALER_PRESCALER_Pos) &
+ TIMER_PRESCALER_PRESCALER_Msk);
+}
+
+__STATIC_INLINE nrf_timer_frequency_t nrf_timer_frequency_get(NRF_TIMER_Type * p_reg)
+{
+ return (nrf_timer_frequency_t)(p_reg->PRESCALER);
+}
+
+__STATIC_INLINE void nrf_timer_cc_write(NRF_TIMER_Type * p_reg,
+ nrf_timer_cc_channel_t cc_channel,
+ uint32_t cc_value)
+{
+ p_reg->CC[cc_channel] = cc_value;
+}
+
+__STATIC_INLINE uint32_t nrf_timer_cc_read(NRF_TIMER_Type * p_reg,
+ nrf_timer_cc_channel_t cc_channel)
+{
+ return (uint32_t)p_reg->CC[cc_channel];
+}
+
+__STATIC_INLINE nrf_timer_task_t nrf_timer_capture_task_get(uint32_t channel)
+{
+ return (nrf_timer_task_t)
+ ((uint32_t)NRF_TIMER_TASK_CAPTURE0 + (channel * sizeof(uint32_t)));
+}
+
+__STATIC_INLINE nrf_timer_event_t nrf_timer_compare_event_get(uint32_t channel)
+{
+ return (nrf_timer_event_t)
+ ((uint32_t)NRF_TIMER_EVENT_COMPARE0 + (channel * sizeof(uint32_t)));
+}
+
+__STATIC_INLINE nrf_timer_int_mask_t nrf_timer_compare_int_get(uint32_t channel)
+{
+ return (nrf_timer_int_mask_t)
+ ((uint32_t)NRF_TIMER_INT_COMPARE0_MASK << channel);
+}
+
+__STATIC_INLINE uint32_t nrf_timer_us_to_ticks(uint32_t time_us,
+ nrf_timer_frequency_t frequency)
+{
+ // The "frequency" parameter here is actually the prescaler value, and the
+ // timer runs at the following frequency: f = 16 MHz / 2^prescaler.
+ uint32_t prescaler = (uint32_t)frequency;
+ NRFX_ASSERT(time_us <= (UINT32_MAX / 16UL));
+ return ((time_us * 16UL) >> prescaler);
+}
+
+__STATIC_INLINE uint32_t nrf_timer_ms_to_ticks(uint32_t time_ms,
+ nrf_timer_frequency_t frequency)
+{
+ // The "frequency" parameter here is actually the prescaler value, and the
+ // timer runs at the following frequency: f = 16000 kHz / 2^prescaler.
+ uint32_t prescaler = (uint32_t)frequency;
+ NRFX_ASSERT(time_ms <= (UINT32_MAX / 16000UL));
+ return ((time_ms * 16000UL) >> prescaler);
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_TIMER_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_twi.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_twi.h
new file mode 100644
index 0000000..e17b793
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_twi.h
@@ -0,0 +1,451 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_TWI_H__
+#define NRF_TWI_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_twi_hal TWI HAL
+ * @{
+ * @ingroup nrf_twi
+ * @brief Hardware access layer for managing the TWI peripheral.
+ */
+
+/**
+ * @brief TWI tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_TWI_TASK_STARTRX = offsetof(NRF_TWI_Type, TASKS_STARTRX), ///< Start TWI receive sequence.
+ NRF_TWI_TASK_STARTTX = offsetof(NRF_TWI_Type, TASKS_STARTTX), ///< Start TWI transmit sequence.
+ NRF_TWI_TASK_STOP = offsetof(NRF_TWI_Type, TASKS_STOP), ///< Stop TWI transaction.
+ NRF_TWI_TASK_SUSPEND = offsetof(NRF_TWI_Type, TASKS_SUSPEND), ///< Suspend TWI transaction.
+ NRF_TWI_TASK_RESUME = offsetof(NRF_TWI_Type, TASKS_RESUME) ///< Resume TWI transaction.
+ /*lint -restore*/
+} nrf_twi_task_t;
+
+/**
+ * @brief TWI events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_TWI_EVENT_STOPPED = offsetof(NRF_TWI_Type, EVENTS_STOPPED), ///< TWI stopped.
+ NRF_TWI_EVENT_RXDREADY = offsetof(NRF_TWI_Type, EVENTS_RXDREADY), ///< TWI RXD byte received.
+ NRF_TWI_EVENT_TXDSENT = offsetof(NRF_TWI_Type, EVENTS_TXDSENT), ///< TWI TXD byte sent.
+ NRF_TWI_EVENT_ERROR = offsetof(NRF_TWI_Type, EVENTS_ERROR), ///< TWI error.
+ NRF_TWI_EVENT_BB = offsetof(NRF_TWI_Type, EVENTS_BB), ///< TWI byte boundary, generated before each byte that is sent or received.
+ NRF_TWI_EVENT_SUSPENDED = offsetof(NRF_TWI_Type, EVENTS_SUSPENDED) ///< TWI entered the suspended state.
+ /*lint -restore*/
+} nrf_twi_event_t;
+
+/**
+ * @brief TWI shortcuts.
+ */
+typedef enum
+{
+ NRF_TWI_SHORT_BB_SUSPEND_MASK = TWI_SHORTS_BB_SUSPEND_Msk, ///< Shortcut between BB event and SUSPEND task.
+ NRF_TWI_SHORT_BB_STOP_MASK = TWI_SHORTS_BB_STOP_Msk, ///< Shortcut between BB event and STOP task.
+ NRF_TWI_ALL_SHORTS_MASK = TWI_SHORTS_BB_SUSPEND_Msk |
+ TWI_SHORTS_BB_STOP_Msk ///< All TWI shortcuts.
+} nrf_twi_short_mask_t;
+
+/**
+ * @brief TWI interrupts.
+ */
+typedef enum
+{
+ NRF_TWI_INT_STOPPED_MASK = TWI_INTENSET_STOPPED_Msk, ///< Interrupt on STOPPED event.
+ NRF_TWI_INT_RXDREADY_MASK = TWI_INTENSET_RXDREADY_Msk, ///< Interrupt on RXDREADY event.
+ NRF_TWI_INT_TXDSENT_MASK = TWI_INTENSET_TXDSENT_Msk, ///< Interrupt on TXDSENT event.
+ NRF_TWI_INT_ERROR_MASK = TWI_INTENSET_ERROR_Msk, ///< Interrupt on ERROR event.
+ NRF_TWI_INT_BB_MASK = TWI_INTENSET_BB_Msk, ///< Interrupt on BB event.
+ NRF_TWI_INT_SUSPENDED_MASK = TWI_INTENSET_SUSPENDED_Msk, ///< Interrupt on SUSPENDED event.
+ NRF_TWI_ALL_INTS_MASK = TWI_INTENSET_STOPPED_Msk |
+ TWI_INTENSET_RXDREADY_Msk |
+ TWI_INTENSET_TXDSENT_Msk |
+ TWI_INTENSET_ERROR_Msk |
+ TWI_INTENSET_BB_Msk |
+ TWI_INTENSET_SUSPENDED_Msk ///< All TWI interrupts.
+} nrf_twi_int_mask_t;
+
+/**
+ * @brief TWI error source.
+ */
+typedef enum
+{
+ NRF_TWI_ERROR_ADDRESS_NACK = TWI_ERRORSRC_ANACK_Msk, ///< NACK received after sending the address.
+ NRF_TWI_ERROR_DATA_NACK = TWI_ERRORSRC_DNACK_Msk, ///< NACK received after sending a data byte.
+ NRF_TWI_ERROR_OVERRUN = TWI_ERRORSRC_OVERRUN_Msk ///< Overrun error.
+ /**< A new byte was received before the previous byte was read
+ * from the RXD register (previous data is lost). */
+} nrf_twi_error_t;
+
+/**
+ * @brief TWI master clock frequency.
+ */
+typedef enum
+{
+ NRF_TWI_FREQ_100K = TWI_FREQUENCY_FREQUENCY_K100, ///< 100 kbps.
+ NRF_TWI_FREQ_250K = TWI_FREQUENCY_FREQUENCY_K250, ///< 250 kbps.
+ NRF_TWI_FREQ_400K = TWI_FREQUENCY_FREQUENCY_K400 ///< 400 kbps.
+} nrf_twi_frequency_t;
+
+
+/**
+ * @brief Function for activating a specific TWI task.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] task Task to activate.
+ */
+__STATIC_INLINE void nrf_twi_task_trigger(NRF_TWI_Type * p_reg,
+ nrf_twi_task_t task);
+
+/**
+ * @brief Function for getting the address of a specific TWI task register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] task Requested task.
+ *
+ * @return Address of the specified task register.
+ */
+__STATIC_INLINE uint32_t * nrf_twi_task_address_get(NRF_TWI_Type * p_reg,
+ nrf_twi_task_t task);
+
+/**
+ * @brief Function for clearing a specific TWI event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Event to clear.
+ */
+__STATIC_INLINE void nrf_twi_event_clear(NRF_TWI_Type * p_reg,
+ nrf_twi_event_t event);
+
+/**
+ * @brief Function for checking the state of a specific event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Event to check.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_twi_event_check(NRF_TWI_Type * p_reg,
+ nrf_twi_event_t event);
+
+/**
+ * @brief Function for getting the address of a specific TWI event register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Requested event.
+ *
+ * @return Address of the specified event register.
+ */
+__STATIC_INLINE uint32_t * nrf_twi_event_address_get(NRF_TWI_Type * p_reg,
+ nrf_twi_event_t event);
+
+/**
+ * @brief Function for enabling specified shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] shorts_mask Shortcuts to enable.
+ */
+__STATIC_INLINE void nrf_twi_shorts_enable(NRF_TWI_Type * p_reg,
+ uint32_t shorts_mask);
+
+/**
+ * @brief Function for disabling specified shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] shorts_mask Shortcuts to disable.
+ */
+__STATIC_INLINE void nrf_twi_shorts_disable(NRF_TWI_Type * p_reg,
+ uint32_t shorts_mask);
+
+/**
+ * @brief Function for enabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_twi_int_enable(NRF_TWI_Type * p_reg,
+ uint32_t int_mask);
+
+/**
+ * @brief Function for disabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_twi_int_disable(NRF_TWI_Type * p_reg,
+ uint32_t int_mask);
+
+/**
+ * @brief Function for retrieving the state of a given interrupt.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] int_mask Interrupt to check.
+ *
+ * @retval true If the interrupt is enabled.
+ * @retval false If the interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_twi_int_enable_check(NRF_TWI_Type * p_reg,
+ nrf_twi_int_mask_t int_mask);
+
+/**
+ * @brief Function for enabling the TWI peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_twi_enable(NRF_TWI_Type * p_reg);
+
+/**
+ * @brief Function for disabling the TWI peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_twi_disable(NRF_TWI_Type * p_reg);
+
+/**
+ * @brief Function for configuring TWI pins.
+ *
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] scl_pin SCL pin number.
+ * @param[in] sda_pin SDA pin number.
+ */
+__STATIC_INLINE void nrf_twi_pins_set(NRF_TWI_Type * p_reg,
+ uint32_t scl_pin,
+ uint32_t sda_pin);
+
+/**
+ * @brief Function for setting the TWI master clock frequency.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] frequency TWI frequency.
+ */
+__STATIC_INLINE void nrf_twi_frequency_set(NRF_TWI_Type * p_reg,
+ nrf_twi_frequency_t frequency);
+
+/**
+ * @brief Function for checking the TWI error source.
+ *
+ * The error flags are cleared after reading.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @return Mask with error source flags.
+ */
+__STATIC_INLINE uint32_t nrf_twi_errorsrc_get_and_clear(NRF_TWI_Type * p_reg);
+
+/**
+ * @brief Function for setting the address to be used in TWI transfers.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] address Address to be used in transfers.
+ */
+__STATIC_INLINE void nrf_twi_address_set(NRF_TWI_Type * p_reg, uint8_t address);
+
+/**
+ * @brief Function for reading data received by TWI.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @return Received data.
+ */
+__STATIC_INLINE uint8_t nrf_twi_rxd_get(NRF_TWI_Type * p_reg);
+
+/**
+ * @brief Function for writing data to be transmitted by TWI.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] data Data to be transmitted.
+ */
+__STATIC_INLINE void nrf_twi_txd_set(NRF_TWI_Type * p_reg, uint8_t data);
+
+__STATIC_INLINE void nrf_twi_shorts_set(NRF_TWI_Type * p_reg,
+ uint32_t shorts_mask);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_twi_task_trigger(NRF_TWI_Type * p_reg,
+ nrf_twi_task_t task)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t * nrf_twi_task_address_get(NRF_TWI_Type * p_reg,
+ nrf_twi_task_t task)
+{
+ return (uint32_t *)((uint8_t *)p_reg + (uint32_t)task);
+}
+
+__STATIC_INLINE void nrf_twi_event_clear(NRF_TWI_Type * p_reg,
+ nrf_twi_event_t event)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE bool nrf_twi_event_check(NRF_TWI_Type * p_reg,
+ nrf_twi_event_t event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event);
+}
+
+__STATIC_INLINE uint32_t * nrf_twi_event_address_get(NRF_TWI_Type * p_reg,
+ nrf_twi_event_t event)
+{
+ return (uint32_t *)((uint8_t *)p_reg + (uint32_t)event);
+}
+
+__STATIC_INLINE void nrf_twi_shorts_enable(NRF_TWI_Type * p_reg,
+ uint32_t shorts_mask)
+{
+ p_reg->SHORTS |= shorts_mask;
+}
+
+__STATIC_INLINE void nrf_twi_shorts_disable(NRF_TWI_Type * p_reg,
+ uint32_t shorts_mask)
+{
+ p_reg->SHORTS &= ~(shorts_mask);
+}
+
+__STATIC_INLINE void nrf_twi_int_enable(NRF_TWI_Type * p_reg,
+ uint32_t int_mask)
+{
+ p_reg->INTENSET = int_mask;
+}
+
+__STATIC_INLINE void nrf_twi_int_disable(NRF_TWI_Type * p_reg,
+ uint32_t int_mask)
+{
+ p_reg->INTENCLR = int_mask;
+}
+
+__STATIC_INLINE bool nrf_twi_int_enable_check(NRF_TWI_Type * p_reg,
+ nrf_twi_int_mask_t int_mask)
+{
+ return (bool)(p_reg->INTENSET & int_mask);
+}
+
+__STATIC_INLINE void nrf_twi_enable(NRF_TWI_Type * p_reg)
+{
+ p_reg->ENABLE = (TWI_ENABLE_ENABLE_Enabled << TWI_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_twi_disable(NRF_TWI_Type * p_reg)
+{
+ p_reg->ENABLE = (TWI_ENABLE_ENABLE_Disabled << TWI_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_twi_pins_set(NRF_TWI_Type * p_reg,
+ uint32_t scl_pin,
+ uint32_t sda_pin)
+{
+#if defined(TWI_PSEL_SCL_CONNECT_Pos)
+ p_reg->PSEL.SCL = scl_pin;
+#else
+ p_reg->PSELSCL = scl_pin;
+#endif
+
+#if defined(TWI_PSEL_SDA_CONNECT_Pos)
+ p_reg->PSEL.SDA = sda_pin;
+#else
+ p_reg->PSELSDA = sda_pin;
+#endif
+}
+
+__STATIC_INLINE void nrf_twi_frequency_set(NRF_TWI_Type * p_reg,
+ nrf_twi_frequency_t frequency)
+{
+ p_reg->FREQUENCY = frequency;
+}
+
+__STATIC_INLINE uint32_t nrf_twi_errorsrc_get_and_clear(NRF_TWI_Type * p_reg)
+{
+ uint32_t error_source = p_reg->ERRORSRC;
+
+ // [error flags are cleared by writing '1' on their position]
+ p_reg->ERRORSRC = error_source;
+
+ return error_source;
+}
+
+__STATIC_INLINE void nrf_twi_address_set(NRF_TWI_Type * p_reg, uint8_t address)
+{
+ p_reg->ADDRESS = address;
+}
+
+__STATIC_INLINE uint8_t nrf_twi_rxd_get(NRF_TWI_Type * p_reg)
+{
+ return (uint8_t)p_reg->RXD;
+}
+
+__STATIC_INLINE void nrf_twi_txd_set(NRF_TWI_Type * p_reg, uint8_t data)
+{
+ p_reg->TXD = data;
+}
+
+__STATIC_INLINE void nrf_twi_shorts_set(NRF_TWI_Type * p_reg,
+ uint32_t shorts_mask)
+{
+ p_reg->SHORTS = shorts_mask;
+}
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_TWI_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_twim.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_twim.h
new file mode 100644
index 0000000..a5a8e37
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_twim.h
@@ -0,0 +1,522 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_TWIM_H__
+#define NRF_TWIM_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_twim_hal TWIM HAL
+ * @{
+ * @ingroup nrf_twim
+ * @brief Hardware access layer for managing the TWIM peripheral.
+ */
+
+/**
+ * @brief TWIM tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_TWIM_TASK_STARTRX = offsetof(NRF_TWIM_Type, TASKS_STARTRX), ///< Start TWI receive sequence.
+ NRF_TWIM_TASK_STARTTX = offsetof(NRF_TWIM_Type, TASKS_STARTTX), ///< Start TWI transmit sequence.
+ NRF_TWIM_TASK_STOP = offsetof(NRF_TWIM_Type, TASKS_STOP), ///< Stop TWI transaction.
+ NRF_TWIM_TASK_SUSPEND = offsetof(NRF_TWIM_Type, TASKS_SUSPEND), ///< Suspend TWI transaction.
+ NRF_TWIM_TASK_RESUME = offsetof(NRF_TWIM_Type, TASKS_RESUME) ///< Resume TWI transaction.
+ /*lint -restore*/
+} nrf_twim_task_t;
+
+/**
+ * @brief TWIM events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_TWIM_EVENT_STOPPED = offsetof(NRF_TWIM_Type, EVENTS_STOPPED), ///< TWI stopped.
+ NRF_TWIM_EVENT_ERROR = offsetof(NRF_TWIM_Type, EVENTS_ERROR), ///< TWI error.
+ NRF_TWIM_EVENT_SUSPENDED = 0x148, ///< TWI suspended.
+ NRF_TWIM_EVENT_RXSTARTED = offsetof(NRF_TWIM_Type, EVENTS_RXSTARTED), ///< Receive sequence started.
+ NRF_TWIM_EVENT_TXSTARTED = offsetof(NRF_TWIM_Type, EVENTS_TXSTARTED), ///< Transmit sequence started.
+ NRF_TWIM_EVENT_LASTRX = offsetof(NRF_TWIM_Type, EVENTS_LASTRX), ///< Byte boundary, starting to receive the last byte.
+ NRF_TWIM_EVENT_LASTTX = offsetof(NRF_TWIM_Type, EVENTS_LASTTX) ///< Byte boundary, starting to transmit the last byte.
+ /*lint -restore*/
+} nrf_twim_event_t;
+
+/**
+ * @brief TWIM shortcuts.
+ */
+typedef enum
+{
+ NRF_TWIM_SHORT_LASTTX_STARTRX_MASK = TWIM_SHORTS_LASTTX_STARTRX_Msk, ///< Shortcut between LASTTX event and STARTRX task.
+ NRF_TWIM_SHORT_LASTTX_SUSPEND_MASK = TWIM_SHORTS_LASTTX_SUSPEND_Msk, ///< Shortcut between LASTTX event and SUSPEND task.
+ NRF_TWIM_SHORT_LASTTX_STOP_MASK = TWIM_SHORTS_LASTTX_STOP_Msk, ///< Shortcut between LASTTX event and STOP task.
+ NRF_TWIM_SHORT_LASTRX_STARTTX_MASK = TWIM_SHORTS_LASTRX_STARTTX_Msk, ///< Shortcut between LASTRX event and STARTTX task.
+ NRF_TWIM_SHORT_LASTRX_STOP_MASK = TWIM_SHORTS_LASTRX_STOP_Msk, ///< Shortcut between LASTRX event and STOP task.
+ NRF_TWIM_ALL_SHORTS_MASK = TWIM_SHORTS_LASTTX_STARTRX_Msk |
+ TWIM_SHORTS_LASTTX_SUSPEND_Msk |
+ TWIM_SHORTS_LASTTX_STOP_Msk |
+ TWIM_SHORTS_LASTRX_STARTTX_Msk |
+ TWIM_SHORTS_LASTRX_STOP_Msk ///< All TWIM shortcuts.
+} nrf_twim_short_mask_t;
+
+/**
+ * @brief TWIM interrupts.
+ */
+typedef enum
+{
+ NRF_TWIM_INT_STOPPED_MASK = TWIM_INTENSET_STOPPED_Msk, ///< Interrupt on STOPPED event.
+ NRF_TWIM_INT_ERROR_MASK = TWIM_INTENSET_ERROR_Msk, ///< Interrupt on ERROR event.
+ NRF_TWIM_INT_SUSPENDED_MASK = TWIM_INTENSET_SUSPENDED_Msk, ///< Interrupt on SUSPENDED event.
+ NRF_TWIM_INT_RXSTARTED_MASK = TWIM_INTENSET_RXSTARTED_Msk, ///< Interrupt on RXSTARTED event.
+ NRF_TWIM_INT_TXSTARTED_MASK = TWIM_INTENSET_TXSTARTED_Msk, ///< Interrupt on TXSTARTED event.
+ NRF_TWIM_INT_LASTRX_MASK = TWIM_INTENSET_LASTRX_Msk, ///< Interrupt on LASTRX event.
+ NRF_TWIM_INT_LASTTX_MASK = TWIM_INTENSET_LASTTX_Msk, ///< Interrupt on LASTTX event.
+ NRF_TWIM_ALL_INTS_MASK = TWIM_INTENSET_STOPPED_Msk |
+ TWIM_INTENSET_ERROR_Msk |
+ TWIM_INTENSET_SUSPENDED_Msk |
+ TWIM_INTENSET_RXSTARTED_Msk |
+ TWIM_INTENSET_TXSTARTED_Msk |
+ TWIM_INTENSET_LASTRX_Msk |
+ TWIM_INTENSET_LASTTX_Msk ///< Interrupt on LASTTX event.
+} nrf_twim_int_mask_t;
+
+/**
+ * @brief TWIM master clock frequency.
+ */
+typedef enum
+{
+ NRF_TWIM_FREQ_100K = TWIM_FREQUENCY_FREQUENCY_K100, ///< 100 kbps.
+ NRF_TWIM_FREQ_250K = TWIM_FREQUENCY_FREQUENCY_K250, ///< 250 kbps.
+ NRF_TWIM_FREQ_400K = TWIM_FREQUENCY_FREQUENCY_K400 ///< 400 kbps.
+} nrf_twim_frequency_t;
+
+/**
+ * @brief TWIM error source.
+ */
+typedef enum
+{
+ NRF_TWIM_ERROR_ADDRESS_NACK = TWIM_ERRORSRC_ANACK_Msk, ///< NACK received after sending the address.
+ NRF_TWIM_ERROR_DATA_NACK = TWIM_ERRORSRC_DNACK_Msk ///< NACK received after sending a data byte.
+} nrf_twim_error_t;
+
+
+/**
+ * @brief Function for activating a specific TWIM task.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] task Task to activate.
+ */
+__STATIC_INLINE void nrf_twim_task_trigger(NRF_TWIM_Type * p_reg,
+ nrf_twim_task_t task);
+
+/**
+ * @brief Function for getting the address of a specific TWIM task register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] task Requested task.
+ *
+ * @return Address of the specified task register.
+ */
+__STATIC_INLINE uint32_t * nrf_twim_task_address_get(NRF_TWIM_Type * p_reg,
+ nrf_twim_task_t task);
+
+/**
+ * @brief Function for clearing a specific TWIM event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Event to clear.
+ */
+__STATIC_INLINE void nrf_twim_event_clear(NRF_TWIM_Type * p_reg,
+ nrf_twim_event_t event);
+
+/**
+ * @brief Function for checking the state of a specific TWIM event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Event to check.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_twim_event_check(NRF_TWIM_Type * p_reg,
+ nrf_twim_event_t event);
+
+/**
+ * @brief Function for getting the address of a specific TWIM event register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Requested event.
+ *
+ * @return Address of the specified event register.
+ */
+__STATIC_INLINE uint32_t * nrf_twim_event_address_get(NRF_TWIM_Type * p_reg,
+ nrf_twim_event_t event);
+
+/**
+ * @brief Function for enabling specified shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] shorts_mask Shortcuts to enable.
+ */
+__STATIC_INLINE void nrf_twim_shorts_enable(NRF_TWIM_Type * p_reg,
+ uint32_t shorts_mask);
+
+/**
+ * @brief Function for disabling specified shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] shorts_mask Shortcuts to disable.
+ */
+__STATIC_INLINE void nrf_twim_shorts_disable(NRF_TWIM_Type * p_reg,
+ uint32_t shorts_mask);
+
+/**
+ * @brief Function for enabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_twim_int_enable(NRF_TWIM_Type * p_reg,
+ uint32_t int_mask);
+
+/**
+ * @brief Function for disabling specified interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_twim_int_disable(NRF_TWIM_Type * p_reg,
+ uint32_t int_mask);
+
+/**
+ * @brief Function for checking the state of a given interrupt.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] int_mask Interrupt to check.
+ *
+ * @retval true If the interrupt is enabled.
+ * @retval false If the interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_twim_int_enable_check(NRF_TWIM_Type * p_reg,
+ nrf_twim_int_mask_t int_mask);
+
+/**
+ * @brief Function for enabling the TWIM peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_twim_enable(NRF_TWIM_Type * p_reg);
+
+/**
+ * @brief Function for disabling the TWIM peripheral.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_twim_disable(NRF_TWIM_Type * p_reg);
+
+/**
+ * @brief Function for configuring TWI pins.
+ *
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] scl_pin SCL pin number.
+ * @param[in] sda_pin SDA pin number.
+ */
+__STATIC_INLINE void nrf_twim_pins_set(NRF_TWIM_Type * p_reg,
+ uint32_t scl_pin,
+ uint32_t sda_pin);
+
+/**
+ * @brief Function for setting the TWI master clock frequency.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] frequency TWI frequency.
+ */
+__STATIC_INLINE void nrf_twim_frequency_set(NRF_TWIM_Type * p_reg,
+ nrf_twim_frequency_t frequency);
+
+/**
+ * @brief Function for checking the TWI error source.
+ *
+ * The error flags are cleared after reading.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @return Mask with error source flags.
+ */
+__STATIC_INLINE uint32_t nrf_twim_errorsrc_get_and_clear(NRF_TWIM_Type * p_reg);
+
+/**
+ * @brief Function for setting the address to be used in TWI transfers.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] address Address to be used in transfers.
+ */
+__STATIC_INLINE void nrf_twim_address_set(NRF_TWIM_Type * p_reg,
+ uint8_t address);
+
+/**
+ * @brief Function for setting the transmit buffer.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] p_buffer Pointer to the buffer with data to send.
+ * @param[in] length Maximum number of data bytes to transmit.
+ */
+__STATIC_INLINE void nrf_twim_tx_buffer_set(NRF_TWIM_Type * p_reg,
+ uint8_t const * p_buffer,
+ size_t length);
+
+/**
+ * @brief Function for setting the receive buffer.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] p_buffer Pointer to the buffer for received data.
+ * @param[in] length Maximum number of data bytes to receive.
+ */
+__STATIC_INLINE void nrf_twim_rx_buffer_set(NRF_TWIM_Type * p_reg,
+ uint8_t * p_buffer,
+ size_t length);
+
+__STATIC_INLINE void nrf_twim_shorts_set(NRF_TWIM_Type * p_reg,
+ uint32_t shorts_mask);
+
+__STATIC_INLINE size_t nrf_twim_txd_amount_get(NRF_TWIM_Type * p_reg);
+
+__STATIC_INLINE size_t nrf_twim_rxd_amount_get(NRF_TWIM_Type * p_reg);
+
+/**
+ * @brief Function for enabling the TX list feature.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_twim_tx_list_enable(NRF_TWIM_Type * p_reg);
+
+/**
+ * @brief Function for disabling the TX list feature.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_twim_tx_list_disable(NRF_TWIM_Type * p_reg);
+
+/**
+ * @brief Function for enabling the RX list feature.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_twim_rx_list_enable(NRF_TWIM_Type * p_reg);
+
+/**
+ * @brief Function for disabling the RX list feature.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_twim_rx_list_disable(NRF_TWIM_Type * p_reg);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+__STATIC_INLINE void nrf_twim_task_trigger(NRF_TWIM_Type * p_reg,
+ nrf_twim_task_t task)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t * nrf_twim_task_address_get(NRF_TWIM_Type * p_reg,
+ nrf_twim_task_t task)
+{
+ return (uint32_t *)((uint8_t *)p_reg + (uint32_t)task);
+}
+
+__STATIC_INLINE void nrf_twim_event_clear(NRF_TWIM_Type * p_reg,
+ nrf_twim_event_t event)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event));
+ (void)dummy;
+#endif
+}
+
+__STATIC_INLINE bool nrf_twim_event_check(NRF_TWIM_Type * p_reg,
+ nrf_twim_event_t event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event);
+}
+
+__STATIC_INLINE uint32_t * nrf_twim_event_address_get(NRF_TWIM_Type * p_reg,
+ nrf_twim_event_t event)
+{
+ return (uint32_t *)((uint8_t *)p_reg + (uint32_t)event);
+}
+
+__STATIC_INLINE void nrf_twim_shorts_enable(NRF_TWIM_Type * p_reg,
+ uint32_t shorts_mask)
+{
+ p_reg->SHORTS |= shorts_mask;
+}
+
+__STATIC_INLINE void nrf_twim_shorts_disable(NRF_TWIM_Type * p_reg,
+ uint32_t shorts_mask)
+{
+ p_reg->SHORTS &= ~(shorts_mask);
+}
+
+__STATIC_INLINE void nrf_twim_int_enable(NRF_TWIM_Type * p_reg,
+ uint32_t int_mask)
+{
+ p_reg->INTENSET = int_mask;
+}
+
+__STATIC_INLINE void nrf_twim_int_disable(NRF_TWIM_Type * p_reg,
+ uint32_t int_mask)
+{
+ p_reg->INTENCLR = int_mask;
+}
+
+__STATIC_INLINE bool nrf_twim_int_enable_check(NRF_TWIM_Type * p_reg,
+ nrf_twim_int_mask_t int_mask)
+{
+ return (bool)(p_reg->INTENSET & int_mask);
+}
+
+__STATIC_INLINE void nrf_twim_enable(NRF_TWIM_Type * p_reg)
+{
+ p_reg->ENABLE = (TWIM_ENABLE_ENABLE_Enabled << TWIM_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_twim_disable(NRF_TWIM_Type * p_reg)
+{
+ p_reg->ENABLE = (TWIM_ENABLE_ENABLE_Disabled << TWIM_ENABLE_ENABLE_Pos);
+}
+
+__STATIC_INLINE void nrf_twim_pins_set(NRF_TWIM_Type * p_reg,
+ uint32_t scl_pin,
+ uint32_t sda_pin)
+{
+ p_reg->PSEL.SCL = scl_pin;
+ p_reg->PSEL.SDA = sda_pin;
+}
+
+__STATIC_INLINE void nrf_twim_frequency_set(NRF_TWIM_Type * p_reg,
+ nrf_twim_frequency_t frequency)
+{
+ p_reg->FREQUENCY = frequency;
+}
+
+__STATIC_INLINE uint32_t nrf_twim_errorsrc_get_and_clear(NRF_TWIM_Type * p_reg)
+{
+ uint32_t error_source = p_reg->ERRORSRC;
+
+ // [error flags are cleared by writing '1' on their position]
+ p_reg->ERRORSRC = error_source;
+
+ return error_source;
+}
+
+__STATIC_INLINE void nrf_twim_address_set(NRF_TWIM_Type * p_reg,
+ uint8_t address)
+{
+ p_reg->ADDRESS = address;
+}
+
+__STATIC_INLINE void nrf_twim_tx_buffer_set(NRF_TWIM_Type * p_reg,
+ uint8_t const * p_buffer,
+ size_t length)
+{
+ p_reg->TXD.PTR = (uint32_t)p_buffer;
+ p_reg->TXD.MAXCNT = length;
+}
+
+__STATIC_INLINE void nrf_twim_rx_buffer_set(NRF_TWIM_Type * p_reg,
+ uint8_t * p_buffer,
+ size_t length)
+{
+ p_reg->RXD.PTR = (uint32_t)p_buffer;
+ p_reg->RXD.MAXCNT = length;
+}
+
+__STATIC_INLINE void nrf_twim_shorts_set(NRF_TWIM_Type * p_reg,
+ uint32_t shorts_mask)
+{
+ p_reg->SHORTS = shorts_mask;
+}
+
+__STATIC_INLINE size_t nrf_twim_txd_amount_get(NRF_TWIM_Type * p_reg)
+{
+ return p_reg->TXD.AMOUNT;
+}
+
+__STATIC_INLINE size_t nrf_twim_rxd_amount_get(NRF_TWIM_Type * p_reg)
+{
+ return p_reg->RXD.AMOUNT;
+}
+
+__STATIC_INLINE void nrf_twim_tx_list_enable(NRF_TWIM_Type * p_reg)
+{
+ p_reg->TXD.LIST = 1;
+}
+
+__STATIC_INLINE void nrf_twim_tx_list_disable(NRF_TWIM_Type * p_reg)
+{
+ p_reg->TXD.LIST = 0;
+}
+
+__STATIC_INLINE void nrf_twim_rx_list_enable(NRF_TWIM_Type * p_reg)
+{
+ p_reg->RXD.LIST = 1;
+}
+
+__STATIC_INLINE void nrf_twim_rx_list_disable(NRF_TWIM_Type * p_reg)
+{
+ p_reg->RXD.LIST = 0;
+}
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRF_TWIM_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_twis.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_twis.h
new file mode 100644
index 0000000..30d5018
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_twis.h
@@ -0,0 +1,702 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_TWIS_H__
+#define NRF_TWIS_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_twis_hal TWIS HAL
+ * @{
+ * @ingroup nrf_twis
+ * @brief Hardware access layer for managing the Two Wire Interface Slave with EasyDMA
+ * (TWIS) peripheral.
+ */
+
+/**
+ * @brief TWIS tasks
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_TWIS_TASK_STOP = offsetof(NRF_TWIS_Type, TASKS_STOP), /**< Stop TWIS transaction */
+ NRF_TWIS_TASK_SUSPEND = offsetof(NRF_TWIS_Type, TASKS_SUSPEND), /**< Suspend TWIS transaction */
+ NRF_TWIS_TASK_RESUME = offsetof(NRF_TWIS_Type, TASKS_RESUME), /**< Resume TWIS transaction */
+ NRF_TWIS_TASK_PREPARERX = offsetof(NRF_TWIS_Type, TASKS_PREPARERX), /**< Prepare the TWIS slave to respond to a write command */
+ NRF_TWIS_TASK_PREPARETX = offsetof(NRF_TWIS_Type, TASKS_PREPARETX) /**< Prepare the TWIS slave to respond to a read command */
+ /*lint -restore*/
+} nrf_twis_task_t;
+
+/**
+ * @brief TWIS events
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_TWIS_EVENT_STOPPED = offsetof(NRF_TWIS_Type, EVENTS_STOPPED), /**< TWIS stopped */
+ NRF_TWIS_EVENT_ERROR = offsetof(NRF_TWIS_Type, EVENTS_ERROR), /**< TWIS error */
+ NRF_TWIS_EVENT_RXSTARTED = offsetof(NRF_TWIS_Type, EVENTS_RXSTARTED), /**< Receive sequence started */
+ NRF_TWIS_EVENT_TXSTARTED = offsetof(NRF_TWIS_Type, EVENTS_TXSTARTED), /**< Transmit sequence started */
+ NRF_TWIS_EVENT_WRITE = offsetof(NRF_TWIS_Type, EVENTS_WRITE), /**< Write command received */
+ NRF_TWIS_EVENT_READ = offsetof(NRF_TWIS_Type, EVENTS_READ) /**< Read command received */
+ /*lint -restore*/
+} nrf_twis_event_t;
+
+/**
+ * @brief TWIS shortcuts
+ */
+typedef enum
+{
+ NRF_TWIS_SHORT_WRITE_SUSPEND_MASK = TWIS_SHORTS_WRITE_SUSPEND_Msk, /**< Shortcut between WRITE event and SUSPEND task */
+ NRF_TWIS_SHORT_READ_SUSPEND_MASK = TWIS_SHORTS_READ_SUSPEND_Msk, /**< Shortcut between READ event and SUSPEND task */
+} nrf_twis_short_mask_t;
+
+/**
+ * @brief TWIS interrupts
+ */
+typedef enum
+{
+ NRF_TWIS_INT_STOPPED_MASK = TWIS_INTEN_STOPPED_Msk, /**< Interrupt on STOPPED event */
+ NRF_TWIS_INT_ERROR_MASK = TWIS_INTEN_ERROR_Msk, /**< Interrupt on ERROR event */
+ NRF_TWIS_INT_RXSTARTED_MASK = TWIS_INTEN_RXSTARTED_Msk, /**< Interrupt on RXSTARTED event */
+ NRF_TWIS_INT_TXSTARTED_MASK = TWIS_INTEN_TXSTARTED_Msk, /**< Interrupt on TXSTARTED event */
+ NRF_TWIS_INT_WRITE_MASK = TWIS_INTEN_WRITE_Msk, /**< Interrupt on WRITE event */
+ NRF_TWIS_INT_READ_MASK = TWIS_INTEN_READ_Msk, /**< Interrupt on READ event */
+} nrf_twis_int_mask_t;
+
+/**
+ * @brief TWIS error source
+ */
+typedef enum
+{
+ NRF_TWIS_ERROR_OVERFLOW = TWIS_ERRORSRC_OVERFLOW_Msk, /**< RX buffer overflow detected, and prevented */
+ NRF_TWIS_ERROR_DATA_NACK = TWIS_ERRORSRC_DNACK_Msk, /**< NACK sent after receiving a data byte */
+ NRF_TWIS_ERROR_OVERREAD = TWIS_ERRORSRC_OVERREAD_Msk /**< TX buffer over-read detected, and prevented */
+} nrf_twis_error_t;
+
+/**
+ * @brief TWIS address matching configuration
+ */
+typedef enum
+{
+ NRF_TWIS_CONFIG_ADDRESS0_MASK = TWIS_CONFIG_ADDRESS0_Msk, /**< Enable or disable address matching on ADDRESS[0] */
+ NRF_TWIS_CONFIG_ADDRESS1_MASK = TWIS_CONFIG_ADDRESS1_Msk, /**< Enable or disable address matching on ADDRESS[1] */
+ NRF_TWIS_CONFIG_ADDRESS01_MASK = TWIS_CONFIG_ADDRESS0_Msk | TWIS_CONFIG_ADDRESS1_Msk /**< Enable both address matching */
+} nrf_twis_config_addr_mask_t;
+
+/**
+ * @brief Variable type to hold amount of data for EasyDMA
+ *
+ * Variable of the minimum size that can hold the amount of data to transfer.
+ *
+ * @note
+ * Defined to make it simple to change if EasyDMA would be updated to support more data in
+ * the future devices to.
+ */
+typedef uint8_t nrf_twis_amount_t;
+
+/**
+ * @brief Smallest variable type to hold TWI address
+ *
+ * Variable of the minimum size that can hold single TWI address.
+ *
+ * @note
+ * Defined to make it simple to change if new TWI would support for example
+ * 10 bit addressing mode.
+ */
+typedef uint8_t nrf_twis_address_t;
+
+
+/**
+ * @brief Function for activating a specific TWIS task.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param task Task.
+ */
+__STATIC_INLINE void nrf_twis_task_trigger(NRF_TWIS_Type * const p_reg, nrf_twis_task_t task);
+
+/**
+ * @brief Function for returning the address of a specific TWIS task register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param task Task.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrf_twis_task_address_get(
+ NRF_TWIS_Type const * const p_reg,
+ nrf_twis_task_t task);
+
+/**
+ * @brief Function for clearing a specific event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param event Event.
+ */
+__STATIC_INLINE void nrf_twis_event_clear(
+ NRF_TWIS_Type * const p_reg,
+ nrf_twis_event_t event);
+/**
+ * @brief Function for returning the state of a specific event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param event Event.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_twis_event_check(
+ NRF_TWIS_Type const * const p_reg,
+ nrf_twis_event_t event);
+
+
+/**
+ * @brief Function for getting and clearing the state of specific event
+ *
+ * This function checks the state of the event and clears it.
+ * @param[in,out] p_reg Pointer to the peripheral registers structure.
+ * @param event Event.
+ *
+ * @retval true If the event was set.
+ * @retval false If the event was not set.
+ */
+__STATIC_INLINE bool nrf_twis_event_get_and_clear(
+ NRF_TWIS_Type * const p_reg,
+ nrf_twis_event_t event);
+
+
+/**
+ * @brief Function for returning the address of a specific TWIS event register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param event Event.
+ *
+ * @return Address.
+ */
+__STATIC_INLINE uint32_t nrf_twis_event_address_get(
+ NRF_TWIS_Type const * const p_reg,
+ nrf_twis_event_t event);
+
+/**
+ * @brief Function for setting a shortcut.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param short_mask Shortcuts mask.
+ */
+__STATIC_INLINE void nrf_twis_shorts_enable(NRF_TWIS_Type * const p_reg, uint32_t short_mask);
+
+/**
+ * @brief Function for clearing shortcuts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param short_mask Shortcuts mask.
+ */
+__STATIC_INLINE void nrf_twis_shorts_disable(NRF_TWIS_Type * const p_reg, uint32_t short_mask);
+
+/**
+ * @brief Get the shorts mask
+ *
+ * Function returns shorts register.
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @return Flags of currently enabled shortcuts
+ */
+__STATIC_INLINE uint32_t nrf_twis_shorts_get(NRF_TWIS_Type * const p_reg);
+
+/**
+ * @brief Function for enabling selected interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param int_mask Interrupts mask.
+ */
+__STATIC_INLINE void nrf_twis_int_enable(NRF_TWIS_Type * const p_reg, uint32_t int_mask);
+
+/**
+ * @brief Function for retrieving the state of selected interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param int_mask Interrupts mask.
+ *
+ * @retval true If any of selected interrupts is enabled.
+ * @retval false If none of selected interrupts is enabled.
+ */
+__STATIC_INLINE bool nrf_twis_int_enable_check(NRF_TWIS_Type const * const p_reg, uint32_t int_mask);
+
+/**
+ * @brief Function for disabling selected interrupts.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param int_mask Interrupts mask.
+ */
+__STATIC_INLINE void nrf_twis_int_disable(NRF_TWIS_Type * const p_reg, uint32_t int_mask);
+
+/**
+ * @brief Function for retrieving and clearing the TWIS error source.
+ *
+ * @attention Error sources are cleared after read.
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @return Error source mask with values from @ref nrf_twis_error_t.
+ */
+__STATIC_INLINE uint32_t nrf_twis_error_source_get_and_clear(NRF_TWIS_Type * const p_reg);
+
+/**
+ * @brief Get information which of addresses matched
+ *
+ * Function returns index in the address table
+ * that points to the address that already matched.
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @return Index of matched address
+ */
+__STATIC_INLINE uint_fast8_t nrf_twis_match_get(NRF_TWIS_Type const * p_reg);
+
+/**
+ * @brief Function for enabling TWIS.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_twis_enable(NRF_TWIS_Type * const p_reg);
+
+/**
+ * @brief Function for disabling TWIS.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_twis_disable(NRF_TWIS_Type * const p_reg);
+
+/**
+ * @brief Function for configuring TWIS pins.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param scl SCL pin number.
+ * @param sda SDA pin number.
+ */
+__STATIC_INLINE void nrf_twis_pins_set(NRF_TWIS_Type * const p_reg, uint32_t scl, uint32_t sda);
+
+/**
+ * @brief Function for setting the receive buffer.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param p_buf Pointer to the buffer for received data.
+ * @param length Maximum number of data bytes to receive.
+ */
+__STATIC_INLINE void nrf_twis_rx_buffer_set(
+ NRF_TWIS_Type * const p_reg,
+ uint8_t * p_buf,
+ nrf_twis_amount_t length);
+
+/**
+ * @brief Function that prepares TWIS for receiving
+ *
+ * This function sets receive buffer and then sets NRF_TWIS_TASK_PREPARERX task.
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param p_buf Pointer to the buffer for received data.
+ * @param length Maximum number of data bytes to receive.
+ */
+__STATIC_INLINE void nrf_twis_rx_prepare(
+ NRF_TWIS_Type * const p_reg,
+ uint8_t * p_buf,
+ nrf_twis_amount_t length);
+
+/**
+ * @brief Function for getting number of bytes received in the last transaction.
+ *
+ * @param[in] p_reg TWIS instance.
+ * @return Amount of bytes received.
+ * */
+__STATIC_INLINE nrf_twis_amount_t nrf_twis_rx_amount_get(NRF_TWIS_Type const * const p_reg);
+
+/**
+ * @brief Function for setting the transmit buffer.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param p_buf Pointer to the buffer with data to send.
+ * @param length Maximum number of data bytes to transmit.
+ */
+__STATIC_INLINE void nrf_twis_tx_buffer_set(
+ NRF_TWIS_Type * const p_reg,
+ uint8_t const * p_buf,
+ nrf_twis_amount_t length);
+
+/**
+ * @brief Function that prepares TWIS for transmitting
+ *
+ * This function sets transmit buffer and then sets NRF_TWIS_TASK_PREPARETX task.
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param p_buf Pointer to the buffer with data to send.
+ * @param length Maximum number of data bytes to transmit.
+ */
+__STATIC_INLINE void nrf_twis_tx_prepare(
+ NRF_TWIS_Type * const p_reg,
+ uint8_t const * p_buf,
+ nrf_twis_amount_t length);
+
+/**
+ * @brief Function for getting number of bytes transmitted in the last transaction.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @return Amount of bytes transmitted.
+ */
+__STATIC_INLINE nrf_twis_amount_t nrf_twis_tx_amount_get(NRF_TWIS_Type const * const p_reg);
+
+/**
+ * @brief Function for setting slave address
+ *
+ * Function sets the selected address for this TWI interface.
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param n Index of address to set
+ * @param addr Addres to set
+ * @sa nrf_twis_config_address_set
+ * @sa nrf_twis_config_address_get
+ */
+__STATIC_INLINE void nrf_twis_address_set(
+ NRF_TWIS_Type * const p_reg,
+ uint_fast8_t n,
+ nrf_twis_address_t addr);
+
+/**
+ * @brief Function for retrieving configured slave address
+ *
+ * Function gets the selected address for this TWI interface.
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param n Index of address to get
+ */
+__STATIC_INLINE nrf_twis_address_t nrf_twis_address_get(
+ NRF_TWIS_Type const * const p_reg,
+ uint_fast8_t n);
+
+/**
+ * @brief Function for setting the device address configuration.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param addr_mask Mask of address indexes of what device should answer to.
+ *
+ * @sa nrf_twis_address_set
+ */
+__STATIC_INLINE void nrf_twis_config_address_set(
+ NRF_TWIS_Type * const p_reg,
+ nrf_twis_config_addr_mask_t addr_mask);
+
+/**
+ * @brief Function for retrieving the device address configuration.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @return Mask of address indexes of what device should answer to.
+ */
+__STATIC_INLINE nrf_twis_config_addr_mask_t nrf_twis_config_address_get(
+ NRF_TWIS_Type const * const p_reg);
+
+/**
+ * @brief Function for setting the over-read character.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] orc Over-read character. Character clocked out in case of
+ * over-read of the TXD buffer.
+ */
+__STATIC_INLINE void nrf_twis_orc_set(
+ NRF_TWIS_Type * const p_reg,
+ uint8_t orc);
+
+/**
+ * @brief Function for setting the over-read character.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @return Over-read character configured for selected instance.
+ */
+__STATIC_INLINE uint8_t nrf_twis_orc_get(NRF_TWIS_Type const * const p_reg);
+
+
+/** @} */ /* End of nrf_twis_hal */
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+/* ------------------------------------------------------------------------------------------------
+ * Internal functions
+ */
+
+/**
+ * @internal
+ * @brief Internal function for getting task/event register address
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @oaram offset Offset of the register from the instance beginning
+ *
+ * @attention offset has to be modulo 4 value. In other case we can get hardware fault.
+ * @return Pointer to the register
+ */
+__STATIC_INLINE volatile uint32_t* nrf_twis_getRegPtr(NRF_TWIS_Type * const p_reg, uint32_t offset)
+{
+ return (volatile uint32_t*)((uint8_t *)p_reg + (uint32_t)offset);
+}
+
+/**
+ * @internal
+ * @brief Internal function for getting task/event register address - constant version
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @oaram offset Offset of the register from the instance beginning
+ *
+ * @attention offset has to be modulo 4 value. In other case we can get hardware fault.
+ * @return Pointer to the register
+ */
+__STATIC_INLINE volatile const uint32_t* nrf_twis_getRegPtr_c(NRF_TWIS_Type const * const p_reg, uint32_t offset)
+{
+ return (volatile const uint32_t*)((uint8_t *)p_reg + (uint32_t)offset);
+}
+
+
+/* ------------------------------------------------------------------------------------------------
+ * Interface functions definitions
+ */
+
+
+void nrf_twis_task_trigger(NRF_TWIS_Type * const p_reg, nrf_twis_task_t task)
+{
+ *(nrf_twis_getRegPtr(p_reg, (uint32_t)task)) = 1UL;
+}
+
+uint32_t nrf_twis_task_address_get(
+ NRF_TWIS_Type const * const p_reg,
+ nrf_twis_task_t task)
+{
+ return (uint32_t)nrf_twis_getRegPtr_c(p_reg, (uint32_t)task);
+}
+
+void nrf_twis_event_clear(
+ NRF_TWIS_Type * const p_reg,
+ nrf_twis_event_t event)
+{
+ *(nrf_twis_getRegPtr(p_reg, (uint32_t)event)) = 0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event));
+ (void)dummy;
+#endif
+}
+
+bool nrf_twis_event_check(
+ NRF_TWIS_Type const * const p_reg,
+ nrf_twis_event_t event)
+{
+ return (bool)*nrf_twis_getRegPtr_c(p_reg, (uint32_t)event);
+}
+
+bool nrf_twis_event_get_and_clear(
+ NRF_TWIS_Type * const p_reg,
+ nrf_twis_event_t event)
+{
+ bool ret = nrf_twis_event_check(p_reg, event);
+ if (ret)
+ {
+ nrf_twis_event_clear(p_reg, event);
+ }
+ return ret;
+}
+
+uint32_t nrf_twis_event_address_get(
+ NRF_TWIS_Type const * const p_reg,
+ nrf_twis_event_t event)
+{
+ return (uint32_t)nrf_twis_getRegPtr_c(p_reg, (uint32_t)event);
+}
+
+void nrf_twis_shorts_enable(NRF_TWIS_Type * const p_reg, uint32_t short_mask)
+{
+ p_reg->SHORTS |= short_mask;
+}
+
+void nrf_twis_shorts_disable(NRF_TWIS_Type * const p_reg, uint32_t short_mask)
+{
+ if (~0U == short_mask)
+ {
+ /* Optimized version for "disable all" */
+ p_reg->SHORTS = 0;
+ }
+ else
+ {
+ p_reg->SHORTS &= ~short_mask;
+ }
+}
+
+uint32_t nrf_twis_shorts_get(NRF_TWIS_Type * const p_reg)
+{
+ return p_reg->SHORTS;
+}
+
+void nrf_twis_int_enable(NRF_TWIS_Type * const p_reg, uint32_t int_mask)
+{
+ p_reg->INTENSET = int_mask;
+}
+
+bool nrf_twis_int_enable_check(NRF_TWIS_Type const * const p_reg, uint32_t int_mask)
+{
+ return (bool)(p_reg->INTENSET & int_mask);
+}
+
+void nrf_twis_int_disable(NRF_TWIS_Type * const p_reg, uint32_t int_mask)
+{
+ p_reg->INTENCLR = int_mask;
+}
+
+uint32_t nrf_twis_error_source_get_and_clear(NRF_TWIS_Type * const p_reg)
+{
+ uint32_t ret = p_reg->ERRORSRC;
+ p_reg->ERRORSRC = ret;
+ return ret;
+}
+
+uint_fast8_t nrf_twis_match_get(NRF_TWIS_Type const * p_reg)
+{
+ return (uint_fast8_t)p_reg->MATCH;
+}
+
+void nrf_twis_enable(NRF_TWIS_Type * const p_reg)
+{
+ p_reg->ENABLE = (TWIS_ENABLE_ENABLE_Enabled << TWIS_ENABLE_ENABLE_Pos);
+}
+
+void nrf_twis_disable(NRF_TWIS_Type * const p_reg)
+{
+ p_reg->ENABLE = (TWIS_ENABLE_ENABLE_Disabled << TWIS_ENABLE_ENABLE_Pos);
+}
+
+void nrf_twis_pins_set(NRF_TWIS_Type * const p_reg, uint32_t scl, uint32_t sda)
+{
+ p_reg->PSEL.SCL = scl;
+ p_reg->PSEL.SDA = sda;
+}
+
+void nrf_twis_rx_buffer_set(
+ NRF_TWIS_Type * const p_reg,
+ uint8_t * p_buf,
+ nrf_twis_amount_t length)
+{
+ p_reg->RXD.PTR = (uint32_t)p_buf;
+ p_reg->RXD.MAXCNT = length;
+}
+
+__STATIC_INLINE void nrf_twis_rx_prepare(
+ NRF_TWIS_Type * const p_reg,
+ uint8_t * p_buf,
+ nrf_twis_amount_t length)
+{
+ nrf_twis_rx_buffer_set(p_reg, p_buf, length);
+ nrf_twis_task_trigger(p_reg, NRF_TWIS_TASK_PREPARERX);
+}
+
+nrf_twis_amount_t nrf_twis_rx_amount_get(NRF_TWIS_Type const * const p_reg)
+{
+ return (nrf_twis_amount_t)p_reg->RXD.AMOUNT;
+}
+
+void nrf_twis_tx_buffer_set(
+ NRF_TWIS_Type * const p_reg,
+ uint8_t const * p_buf,
+ nrf_twis_amount_t length)
+{
+ p_reg->TXD.PTR = (uint32_t)p_buf;
+ p_reg->TXD.MAXCNT = length;
+}
+
+__STATIC_INLINE void nrf_twis_tx_prepare(
+ NRF_TWIS_Type * const p_reg,
+ uint8_t const * p_buf,
+ nrf_twis_amount_t length)
+{
+ nrf_twis_tx_buffer_set(p_reg, p_buf, length);
+ nrf_twis_task_trigger(p_reg, NRF_TWIS_TASK_PREPARETX);
+}
+
+nrf_twis_amount_t nrf_twis_tx_amount_get(NRF_TWIS_Type const * const p_reg)
+{
+ return (nrf_twis_amount_t)p_reg->TXD.AMOUNT;
+}
+
+void nrf_twis_address_set(
+ NRF_TWIS_Type * const p_reg,
+ uint_fast8_t n,
+ nrf_twis_address_t addr)
+{
+ p_reg->ADDRESS[n] = addr;
+}
+
+nrf_twis_address_t nrf_twis_address_get(
+ NRF_TWIS_Type const * const p_reg,
+ uint_fast8_t n)
+{
+ return (nrf_twis_address_t)p_reg->ADDRESS[n];
+}
+void nrf_twis_config_address_set(
+ NRF_TWIS_Type * const p_reg,
+ nrf_twis_config_addr_mask_t addr_mask)
+{
+ /* This is the only configuration in TWIS - just write it without masking */
+ p_reg->CONFIG = addr_mask;
+}
+
+nrf_twis_config_addr_mask_t nrf_twis_config_address_get(NRF_TWIS_Type const * const p_reg)
+{
+ return (nrf_twis_config_addr_mask_t)(p_reg->CONFIG & TWIS_ADDRESS_ADDRESS_Msk);
+}
+
+void nrf_twis_orc_set(
+ NRF_TWIS_Type * const p_reg,
+ uint8_t orc)
+{
+ p_reg->ORC = orc;
+}
+
+uint8_t nrf_twis_orc_get(NRF_TWIS_Type const * const p_reg)
+{
+ return (uint8_t)p_reg->ORC;
+}
+
+#endif /* SUPPRESS_INLINE_IMPLEMENTATION */
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NRF_TWIS_H__ */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_uart.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_uart.h
new file mode 100644
index 0000000..71d7726
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_uart.h
@@ -0,0 +1,526 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_UART_H__
+#define NRF_UART_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_uart_hal UART HAL
+ * @{
+ * @ingroup nrf_uart
+ * @brief Hardware access layer for managing the UART peripheral.
+ */
+
+#define NRF_UART_PSEL_DISCONNECTED 0xFFFFFFFF
+
+/**
+ * @enum nrf_uart_task_t
+ * @brief UART tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30 -esym(628,__INTADDR__)*/
+ NRF_UART_TASK_STARTRX = offsetof(NRF_UART_Type, TASKS_STARTRX), /**< Task for starting reception. */
+ NRF_UART_TASK_STOPRX = offsetof(NRF_UART_Type, TASKS_STOPRX), /**< Task for stopping reception. */
+ NRF_UART_TASK_STARTTX = offsetof(NRF_UART_Type, TASKS_STARTTX), /**< Task for starting transmission. */
+ NRF_UART_TASK_STOPTX = offsetof(NRF_UART_Type, TASKS_STOPTX), /**< Task for stopping transmission. */
+ NRF_UART_TASK_SUSPEND = offsetof(NRF_UART_Type, TASKS_SUSPEND), /**< Task for suspending UART. */
+ /*lint -restore*/
+} nrf_uart_task_t;
+
+/**
+ * @enum nrf_uart_event_t
+ * @brief UART events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_UART_EVENT_CTS = offsetof(NRF_UART_Type, EVENTS_CTS), /**< Event from CTS line activation. */
+ NRF_UART_EVENT_NCTS = offsetof(NRF_UART_Type, EVENTS_NCTS), /**< Event from CTS line deactivation. */
+ NRF_UART_EVENT_RXDRDY = offsetof(NRF_UART_Type, EVENTS_RXDRDY),/**< Event from data ready in RXD. */
+ NRF_UART_EVENT_TXDRDY = offsetof(NRF_UART_Type, EVENTS_TXDRDY),/**< Event from data sent from TXD. */
+ NRF_UART_EVENT_ERROR = offsetof(NRF_UART_Type, EVENTS_ERROR), /**< Event from error detection. */
+ NRF_UART_EVENT_RXTO = offsetof(NRF_UART_Type, EVENTS_RXTO) /**< Event from receiver timeout. */
+ /*lint -restore*/
+} nrf_uart_event_t;
+
+/**
+ * @enum nrf_uart_int_mask_t
+ * @brief UART interrupts.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_UART_INT_MASK_CTS = UART_INTENCLR_CTS_Msk, /**< CTS line activation interrupt. */
+ NRF_UART_INT_MASK_NCTS = UART_INTENCLR_NCTS_Msk, /**< CTS line deactivation interrupt. */
+ NRF_UART_INT_MASK_RXDRDY = UART_INTENCLR_RXDRDY_Msk, /**< Data ready in RXD interrupt. */
+ NRF_UART_INT_MASK_TXDRDY = UART_INTENCLR_TXDRDY_Msk, /**< Data sent from TXD interrupt. */
+ NRF_UART_INT_MASK_ERROR = UART_INTENCLR_ERROR_Msk, /**< Error detection interrupt. */
+ NRF_UART_INT_MASK_RXTO = UART_INTENCLR_RXTO_Msk /**< Receiver timeout interrupt. */
+ /*lint -restore*/
+} nrf_uart_int_mask_t;
+
+/**
+ * @enum nrf_uart_baudrate_t
+ * @brief Baudrates supported by UART.
+ */
+typedef enum
+{
+ NRF_UART_BAUDRATE_1200 = UART_BAUDRATE_BAUDRATE_Baud1200, /**< 1200 baud. */
+ NRF_UART_BAUDRATE_2400 = UART_BAUDRATE_BAUDRATE_Baud2400, /**< 2400 baud. */
+ NRF_UART_BAUDRATE_4800 = UART_BAUDRATE_BAUDRATE_Baud4800, /**< 4800 baud. */
+ NRF_UART_BAUDRATE_9600 = UART_BAUDRATE_BAUDRATE_Baud9600, /**< 9600 baud. */
+ NRF_UART_BAUDRATE_14400 = UART_BAUDRATE_BAUDRATE_Baud14400, /**< 14400 baud. */
+ NRF_UART_BAUDRATE_19200 = UART_BAUDRATE_BAUDRATE_Baud19200, /**< 19200 baud. */
+ NRF_UART_BAUDRATE_28800 = UART_BAUDRATE_BAUDRATE_Baud28800, /**< 28800 baud. */
+ NRF_UART_BAUDRATE_31250 = UART_BAUDRATE_BAUDRATE_Baud31250, /**< 31250 baud. */
+ NRF_UART_BAUDRATE_38400 = UART_BAUDRATE_BAUDRATE_Baud38400, /**< 38400 baud. */
+ NRF_UART_BAUDRATE_56000 = UART_BAUDRATE_BAUDRATE_Baud56000, /**< 56000 baud. */
+ NRF_UART_BAUDRATE_57600 = UART_BAUDRATE_BAUDRATE_Baud57600, /**< 57600 baud. */
+ NRF_UART_BAUDRATE_76800 = UART_BAUDRATE_BAUDRATE_Baud76800, /**< 76800 baud. */
+ NRF_UART_BAUDRATE_115200 = UART_BAUDRATE_BAUDRATE_Baud115200, /**< 115200 baud. */
+ NRF_UART_BAUDRATE_230400 = UART_BAUDRATE_BAUDRATE_Baud230400, /**< 230400 baud. */
+ NRF_UART_BAUDRATE_250000 = UART_BAUDRATE_BAUDRATE_Baud250000, /**< 250000 baud. */
+ NRF_UART_BAUDRATE_460800 = UART_BAUDRATE_BAUDRATE_Baud460800, /**< 460800 baud. */
+ NRF_UART_BAUDRATE_921600 = UART_BAUDRATE_BAUDRATE_Baud921600, /**< 921600 baud. */
+ NRF_UART_BAUDRATE_1000000 = UART_BAUDRATE_BAUDRATE_Baud1M, /**< 1000000 baud. */
+} nrf_uart_baudrate_t;
+
+/**
+ * @enum nrf_uart_error_mask_t
+ * @brief Types of UART error masks.
+ */
+typedef enum
+{
+ NRF_UART_ERROR_OVERRUN_MASK = UART_ERRORSRC_OVERRUN_Msk, /**< Overrun error. */
+ NRF_UART_ERROR_PARITY_MASK = UART_ERRORSRC_PARITY_Msk, /**< Parity error. */
+ NRF_UART_ERROR_FRAMING_MASK = UART_ERRORSRC_FRAMING_Msk, /**< Framing error. */
+ NRF_UART_ERROR_BREAK_MASK = UART_ERRORSRC_BREAK_Msk, /**< Break error. */
+} nrf_uart_error_mask_t;
+
+/**
+ * @enum nrf_uart_parity_t
+ * @brief Types of UART parity modes.
+ */
+typedef enum
+{
+ NRF_UART_PARITY_EXCLUDED = UART_CONFIG_PARITY_Excluded << UART_CONFIG_PARITY_Pos, /**< Parity excluded. */
+ NRF_UART_PARITY_INCLUDED = UART_CONFIG_PARITY_Included << UART_CONFIG_PARITY_Pos, /**< Parity included. */
+} nrf_uart_parity_t;
+
+/**
+ * @enum nrf_uart_hwfc_t
+ * @brief Types of UART flow control modes.
+ */
+typedef enum
+{
+ NRF_UART_HWFC_DISABLED = UART_CONFIG_HWFC_Disabled, /**< HW flow control disabled. */
+ NRF_UART_HWFC_ENABLED = UART_CONFIG_HWFC_Enabled, /**< HW flow control enabled. */
+} nrf_uart_hwfc_t;
+
+/**
+ * @brief Function for clearing a specific UART event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Event to clear.
+ */
+__STATIC_INLINE void nrf_uart_event_clear(NRF_UART_Type * p_reg, nrf_uart_event_t event);
+
+/**
+ * @brief Function for checking the state of a specific UART event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Event to check.
+ *
+ * @retval True if event is set, False otherwise.
+ */
+__STATIC_INLINE bool nrf_uart_event_check(NRF_UART_Type * p_reg, nrf_uart_event_t event);
+
+/**
+ * @brief Function for returning the address of a specific UART event register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Desired event.
+ *
+ * @retval Address of specified event register.
+ */
+__STATIC_INLINE uint32_t nrf_uart_event_address_get(NRF_UART_Type * p_reg,
+ nrf_uart_event_t event);
+
+/**
+ * @brief Function for enabling a specific interrupt.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_uart_int_enable(NRF_UART_Type * p_reg, uint32_t int_mask);
+
+/**
+ * @brief Function for retrieving the state of a given interrupt.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param int_mask Mask of interrupt to check.
+ *
+ * @retval true If the interrupt is enabled.
+ * @retval false If the interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_uart_int_enable_check(NRF_UART_Type * p_reg, uint32_t int_mask);
+
+/**
+ * @brief Function for disabling specific interrupts.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_uart_int_disable(NRF_UART_Type * p_reg, uint32_t int_mask);
+
+/**
+ * @brief Function for getting error source mask. Function is clearing error source flags after reading.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @return Mask with error source flags.
+ */
+__STATIC_INLINE uint32_t nrf_uart_errorsrc_get_and_clear(NRF_UART_Type * p_reg);
+
+/**
+ * @brief Function for enabling UART.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_uart_enable(NRF_UART_Type * p_reg);
+
+/**
+ * @brief Function for disabling UART.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_uart_disable(NRF_UART_Type * p_reg);
+
+/**
+ * @brief Function for configuring TX/RX pins.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param pseltxd TXD pin number.
+ * @param pselrxd RXD pin number.
+ */
+__STATIC_INLINE void nrf_uart_txrx_pins_set(NRF_UART_Type * p_reg, uint32_t pseltxd, uint32_t pselrxd);
+
+/**
+ * @brief Function for disconnecting TX/RX pins.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_uart_txrx_pins_disconnect(NRF_UART_Type * p_reg);
+
+/**
+ * @brief Function for getting TX pin.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE uint32_t nrf_uart_tx_pin_get(NRF_UART_Type * p_reg);
+
+/**
+ * @brief Function for getting RX pin.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE uint32_t nrf_uart_rx_pin_get(NRF_UART_Type * p_reg);
+
+/**
+ * @brief Function for getting RTS pin.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE uint32_t nrf_uart_rts_pin_get(NRF_UART_Type * p_reg);
+
+/**
+ * @brief Function for getting CTS pin.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE uint32_t nrf_uart_cts_pin_get(NRF_UART_Type * p_reg);
+
+
+/**
+ * @brief Function for configuring flow control pins.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param pselrts RTS pin number.
+ * @param pselcts CTS pin number.
+ */
+__STATIC_INLINE void nrf_uart_hwfc_pins_set(NRF_UART_Type * p_reg,
+ uint32_t pselrts,
+ uint32_t pselcts);
+
+/**
+ * @brief Function for disconnecting flow control pins.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_uart_hwfc_pins_disconnect(NRF_UART_Type * p_reg);
+
+/**
+ * @brief Function for reading RX data.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @return Received byte.
+ */
+__STATIC_INLINE uint8_t nrf_uart_rxd_get(NRF_UART_Type * p_reg);
+
+/**
+ * @brief Function for setting Tx data.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param txd Byte.
+ */
+__STATIC_INLINE void nrf_uart_txd_set(NRF_UART_Type * p_reg, uint8_t txd);
+
+/**
+ * @brief Function for starting an UART task.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param task Task.
+ */
+__STATIC_INLINE void nrf_uart_task_trigger(NRF_UART_Type * p_reg, nrf_uart_task_t task);
+
+/**
+ * @brief Function for returning the address of a specific task register.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param task Task.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrf_uart_task_address_get(NRF_UART_Type * p_reg, nrf_uart_task_t task);
+
+/**
+ * @brief Function for configuring UART.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param hwfc Hardware flow control. Enabled if true.
+ * @param parity Parity. Included if true.
+ */
+__STATIC_INLINE void nrf_uart_configure(NRF_UART_Type * p_reg,
+ nrf_uart_parity_t parity,
+ nrf_uart_hwfc_t hwfc);
+
+/**
+ * @brief Function for setting UART baudrate.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param baudrate Baudrate.
+ */
+__STATIC_INLINE void nrf_uart_baudrate_set(NRF_UART_Type * p_reg, nrf_uart_baudrate_t baudrate);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+__STATIC_INLINE void nrf_uart_event_clear(NRF_UART_Type * p_reg, nrf_uart_event_t event)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event));
+ (void)dummy;
+#endif
+
+}
+
+__STATIC_INLINE bool nrf_uart_event_check(NRF_UART_Type * p_reg, nrf_uart_event_t event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event);
+}
+
+__STATIC_INLINE uint32_t nrf_uart_event_address_get(NRF_UART_Type * p_reg,
+ nrf_uart_event_t event)
+{
+ return (uint32_t)((uint8_t *)p_reg + (uint32_t)event);
+}
+
+__STATIC_INLINE void nrf_uart_int_enable(NRF_UART_Type * p_reg, uint32_t int_mask)
+{
+ p_reg->INTENSET = int_mask;
+}
+
+__STATIC_INLINE bool nrf_uart_int_enable_check(NRF_UART_Type * p_reg, uint32_t int_mask)
+{
+ return (bool)(p_reg->INTENSET & int_mask);
+}
+
+__STATIC_INLINE void nrf_uart_int_disable(NRF_UART_Type * p_reg, uint32_t int_mask)
+{
+ p_reg->INTENCLR = int_mask;
+}
+
+__STATIC_INLINE uint32_t nrf_uart_errorsrc_get_and_clear(NRF_UART_Type * p_reg)
+{
+ uint32_t errsrc_mask = p_reg->ERRORSRC;
+ p_reg->ERRORSRC = errsrc_mask;
+ return errsrc_mask;
+}
+
+__STATIC_INLINE void nrf_uart_enable(NRF_UART_Type * p_reg)
+{
+ p_reg->ENABLE = UART_ENABLE_ENABLE_Enabled;
+}
+
+__STATIC_INLINE void nrf_uart_disable(NRF_UART_Type * p_reg)
+{
+ p_reg->ENABLE = UART_ENABLE_ENABLE_Disabled;
+}
+
+__STATIC_INLINE void nrf_uart_txrx_pins_set(NRF_UART_Type * p_reg, uint32_t pseltxd, uint32_t pselrxd)
+{
+#if defined(UART_PSEL_RXD_CONNECT_Pos)
+ p_reg->PSEL.RXD = pselrxd;
+#else
+ p_reg->PSELRXD = pselrxd;
+#endif
+#if defined(UART_PSEL_TXD_CONNECT_Pos)
+ p_reg->PSEL.TXD = pseltxd;
+#else
+ p_reg->PSELTXD = pseltxd;
+#endif
+}
+
+__STATIC_INLINE void nrf_uart_txrx_pins_disconnect(NRF_UART_Type * p_reg)
+{
+ nrf_uart_txrx_pins_set(p_reg, NRF_UART_PSEL_DISCONNECTED, NRF_UART_PSEL_DISCONNECTED);
+}
+
+__STATIC_INLINE uint32_t nrf_uart_tx_pin_get(NRF_UART_Type * p_reg)
+{
+#if defined(UART_PSEL_TXD_CONNECT_Pos)
+ return p_reg->PSEL.TXD;
+#else
+ return p_reg->PSELTXD;
+#endif
+}
+
+__STATIC_INLINE uint32_t nrf_uart_rx_pin_get(NRF_UART_Type * p_reg)
+{
+#if defined(UART_PSEL_RXD_CONNECT_Pos)
+ return p_reg->PSEL.RXD;
+#else
+ return p_reg->PSELRXD;
+#endif
+}
+
+__STATIC_INLINE uint32_t nrf_uart_rts_pin_get(NRF_UART_Type * p_reg)
+{
+#if defined(UART_PSEL_RTS_CONNECT_Pos)
+ return p_reg->PSEL.RTS;
+#else
+ return p_reg->PSELRTS;
+#endif
+}
+
+__STATIC_INLINE uint32_t nrf_uart_cts_pin_get(NRF_UART_Type * p_reg)
+{
+#if defined(UART_PSEL_RTS_CONNECT_Pos)
+ return p_reg->PSEL.CTS;
+#else
+ return p_reg->PSELCTS;
+#endif
+}
+
+__STATIC_INLINE void nrf_uart_hwfc_pins_set(NRF_UART_Type * p_reg, uint32_t pselrts, uint32_t pselcts)
+{
+#if defined(UART_PSEL_RTS_CONNECT_Pos)
+ p_reg->PSEL.RTS = pselrts;
+#else
+ p_reg->PSELRTS = pselrts;
+#endif
+
+#if defined(UART_PSEL_RTS_CONNECT_Pos)
+ p_reg->PSEL.CTS = pselcts;
+#else
+ p_reg->PSELCTS = pselcts;
+#endif
+}
+
+__STATIC_INLINE void nrf_uart_hwfc_pins_disconnect(NRF_UART_Type * p_reg)
+{
+ nrf_uart_hwfc_pins_set(p_reg, NRF_UART_PSEL_DISCONNECTED, NRF_UART_PSEL_DISCONNECTED);
+}
+
+__STATIC_INLINE uint8_t nrf_uart_rxd_get(NRF_UART_Type * p_reg)
+{
+ return p_reg->RXD;
+}
+
+__STATIC_INLINE void nrf_uart_txd_set(NRF_UART_Type * p_reg, uint8_t txd)
+{
+ p_reg->TXD = txd;
+}
+
+__STATIC_INLINE void nrf_uart_task_trigger(NRF_UART_Type * p_reg, nrf_uart_task_t task)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t nrf_uart_task_address_get(NRF_UART_Type * p_reg, nrf_uart_task_t task)
+{
+ return (uint32_t)p_reg + (uint32_t)task;
+}
+
+__STATIC_INLINE void nrf_uart_configure(NRF_UART_Type * p_reg,
+ nrf_uart_parity_t parity,
+ nrf_uart_hwfc_t hwfc)
+{
+ p_reg->CONFIG = (uint32_t)parity | (uint32_t)hwfc;
+}
+
+__STATIC_INLINE void nrf_uart_baudrate_set(NRF_UART_Type * p_reg, nrf_uart_baudrate_t baudrate)
+{
+ p_reg->BAUDRATE = baudrate;
+}
+#endif //SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //NRF_UART_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_uarte.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_uarte.h
new file mode 100644
index 0000000..b1e65dc
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_uarte.h
@@ -0,0 +1,579 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_UARTE_H__
+#define NRF_UARTE_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define NRF_UARTE_PSEL_DISCONNECTED 0xFFFFFFFF
+
+/**
+ * @defgroup nrf_uarte_hal UARTE HAL
+ * @{
+ * @ingroup nrf_uarte
+ * @brief Hardware access layer for managing the UARTE peripheral.
+ */
+
+/**
+ * @enum nrf_uarte_task_t
+ * @brief UARTE tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_UARTE_TASK_STARTRX = offsetof(NRF_UARTE_Type, TASKS_STARTRX), ///< Start UART receiver.
+ NRF_UARTE_TASK_STOPRX = offsetof(NRF_UARTE_Type, TASKS_STOPRX), ///< Stop UART receiver.
+ NRF_UARTE_TASK_STARTTX = offsetof(NRF_UARTE_Type, TASKS_STARTTX), ///< Start UART transmitter.
+ NRF_UARTE_TASK_STOPTX = offsetof(NRF_UARTE_Type, TASKS_STOPTX), ///< Stop UART transmitter.
+ NRF_UARTE_TASK_FLUSHRX = offsetof(NRF_UARTE_Type, TASKS_FLUSHRX) ///< Flush RX FIFO in RX buffer.
+ /*lint -restore*/
+} nrf_uarte_task_t;
+
+/**
+ * @enum nrf_uarte_event_t
+ * @brief UARTE events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_UARTE_EVENT_CTS = offsetof(NRF_UARTE_Type, EVENTS_CTS), ///< CTS is activated.
+ NRF_UARTE_EVENT_NCTS = offsetof(NRF_UARTE_Type, EVENTS_NCTS), ///< CTS is deactivated.
+ NRF_UARTE_EVENT_RXDRDY = offsetof(NRF_UARTE_Type, EVENTS_RXDRDY), ///< Data received in RXD (but potentially not yet transferred to Data RAM).
+ NRF_UARTE_EVENT_ENDRX = offsetof(NRF_UARTE_Type, EVENTS_ENDRX), ///< Receive buffer is filled up.
+ NRF_UARTE_EVENT_TXDDY = offsetof(NRF_UARTE_Type, EVENTS_TXDRDY), ///< Data sent from TXD.
+ NRF_UARTE_EVENT_ENDTX = offsetof(NRF_UARTE_Type, EVENTS_ENDTX), ///< Last TX byte transmitted.
+ NRF_UARTE_EVENT_ERROR = offsetof(NRF_UARTE_Type, EVENTS_ERROR), ///< Error detected.
+ NRF_UARTE_EVENT_RXTO = offsetof(NRF_UARTE_Type, EVENTS_RXTO), ///< Receiver timeout.
+ NRF_UARTE_EVENT_RXSTARTED = offsetof(NRF_UARTE_Type, EVENTS_RXSTARTED), ///< Receiver has started.
+ NRF_UARTE_EVENT_TXSTARTED = offsetof(NRF_UARTE_Type, EVENTS_TXSTARTED), ///< Transmitter has started.
+ NRF_UARTE_EVENT_TXSTOPPED = offsetof(NRF_UARTE_Type, EVENTS_TXSTOPPED) ///< Transmitted stopped.
+ /*lint -restore*/
+} nrf_uarte_event_t;
+
+/**
+ * @brief Types of UARTE shortcuts.
+ */
+typedef enum
+{
+ NRF_UARTE_SHORT_ENDRX_STARTRX = UARTE_SHORTS_ENDRX_STARTRX_Msk, ///< Shortcut between ENDRX event and STARTRX task.
+ NRF_UARTE_SHORT_ENDRX_STOPRX = UARTE_SHORTS_ENDRX_STOPRX_Msk ///< Shortcut between ENDRX event and STOPRX task.
+} nrf_uarte_short_t;
+
+
+/**
+ * @enum nrf_uarte_int_mask_t
+ * @brief UARTE interrupts.
+ */
+typedef enum
+{
+ NRF_UARTE_INT_CTS_MASK = UARTE_INTENSET_CTS_Msk, ///< Interrupt on CTS event.
+ NRF_UARTE_INT_NCTS_MASK = UARTE_INTENSET_NCTS_Msk, ///< Interrupt on NCTS event.
+ NRF_UARTE_INT_RXDRDY_MASK = UARTE_INTENSET_RXDRDY_Msk, ///< Interrupt on RXDRDY event.
+ NRF_UARTE_INT_ENDRX_MASK = UARTE_INTENSET_ENDRX_Msk, ///< Interrupt on ENDRX event.
+ NRF_UARTE_INT_TXDRDY_MASK = UARTE_INTENSET_TXDRDY_Msk, ///< Interrupt on TXDRDY event.
+ NRF_UARTE_INT_ENDTX_MASK = UARTE_INTENSET_ENDTX_Msk, ///< Interrupt on ENDTX event.
+ NRF_UARTE_INT_ERROR_MASK = UARTE_INTENSET_ERROR_Msk, ///< Interrupt on ERROR event.
+ NRF_UARTE_INT_RXTO_MASK = UARTE_INTENSET_RXTO_Msk, ///< Interrupt on RXTO event.
+ NRF_UARTE_INT_RXSTARTED_MASK = UARTE_INTENSET_RXSTARTED_Msk, ///< Interrupt on RXSTARTED event.
+ NRF_UARTE_INT_TXSTARTED_MASK = UARTE_INTENSET_TXSTARTED_Msk, ///< Interrupt on TXSTARTED event.
+ NRF_UARTE_INT_TXSTOPPED_MASK = UARTE_INTENSET_TXSTOPPED_Msk ///< Interrupt on TXSTOPPED event.
+} nrf_uarte_int_mask_t;
+
+/**
+ * @enum nrf_uarte_baudrate_t
+ * @brief Baudrates supported by UARTE.
+ */
+typedef enum
+{
+ NRF_UARTE_BAUDRATE_1200 = UARTE_BAUDRATE_BAUDRATE_Baud1200, ///< 1200 baud.
+ NRF_UARTE_BAUDRATE_2400 = UARTE_BAUDRATE_BAUDRATE_Baud2400, ///< 2400 baud.
+ NRF_UARTE_BAUDRATE_4800 = UARTE_BAUDRATE_BAUDRATE_Baud4800, ///< 4800 baud.
+ NRF_UARTE_BAUDRATE_9600 = UARTE_BAUDRATE_BAUDRATE_Baud9600, ///< 9600 baud.
+ NRF_UARTE_BAUDRATE_14400 = UARTE_BAUDRATE_BAUDRATE_Baud14400, ///< 14400 baud.
+ NRF_UARTE_BAUDRATE_19200 = UARTE_BAUDRATE_BAUDRATE_Baud19200, ///< 19200 baud.
+ NRF_UARTE_BAUDRATE_28800 = UARTE_BAUDRATE_BAUDRATE_Baud28800, ///< 28800 baud.
+ NRF_UARTE_BAUDRATE_31250 = UARTE_BAUDRATE_BAUDRATE_Baud31250, ///< 31250 baud.
+ NRF_UARTE_BAUDRATE_38400 = UARTE_BAUDRATE_BAUDRATE_Baud38400, ///< 38400 baud.
+ NRF_UARTE_BAUDRATE_56000 = UARTE_BAUDRATE_BAUDRATE_Baud56000, ///< 56000 baud.
+ NRF_UARTE_BAUDRATE_57600 = UARTE_BAUDRATE_BAUDRATE_Baud57600, ///< 57600 baud.
+ NRF_UARTE_BAUDRATE_76800 = UARTE_BAUDRATE_BAUDRATE_Baud76800, ///< 76800 baud.
+ NRF_UARTE_BAUDRATE_115200 = UARTE_BAUDRATE_BAUDRATE_Baud115200, ///< 115200 baud.
+ NRF_UARTE_BAUDRATE_230400 = UARTE_BAUDRATE_BAUDRATE_Baud230400, ///< 230400 baud.
+ NRF_UARTE_BAUDRATE_250000 = UARTE_BAUDRATE_BAUDRATE_Baud250000, ///< 250000 baud.
+ NRF_UARTE_BAUDRATE_460800 = UARTE_BAUDRATE_BAUDRATE_Baud460800, ///< 460800 baud.
+ NRF_UARTE_BAUDRATE_921600 = UARTE_BAUDRATE_BAUDRATE_Baud921600, ///< 921600 baud.
+ NRF_UARTE_BAUDRATE_1000000 = UARTE_BAUDRATE_BAUDRATE_Baud1M ///< 1000000 baud.
+} nrf_uarte_baudrate_t;
+
+/**
+ * @enum nrf_uarte_error_mask_t
+ * @brief Types of UARTE error masks.
+ */
+typedef enum
+{
+ NRF_UARTE_ERROR_OVERRUN_MASK = UARTE_ERRORSRC_OVERRUN_Msk, ///< Overrun error.
+ NRF_UARTE_ERROR_PARITY_MASK = UARTE_ERRORSRC_PARITY_Msk, ///< Parity error.
+ NRF_UARTE_ERROR_FRAMING_MASK = UARTE_ERRORSRC_FRAMING_Msk, ///< Framing error.
+ NRF_UARTE_ERROR_BREAK_MASK = UARTE_ERRORSRC_BREAK_Msk ///< Break error.
+} nrf_uarte_error_mask_t;
+
+/**
+ * @enum nrf_uarte_parity_t
+ * @brief Types of UARTE parity modes.
+ */
+typedef enum
+{
+ NRF_UARTE_PARITY_EXCLUDED = UARTE_CONFIG_PARITY_Excluded << UARTE_CONFIG_PARITY_Pos, ///< Parity excluded.
+ NRF_UARTE_PARITY_INCLUDED = UARTE_CONFIG_PARITY_Included << UARTE_CONFIG_PARITY_Pos ///< Parity included.
+} nrf_uarte_parity_t;
+
+/**
+ * @enum nrf_uarte_hwfc_t
+ * @brief Types of UARTE flow control modes.
+ */
+typedef enum
+{
+ NRF_UARTE_HWFC_DISABLED = UARTE_CONFIG_HWFC_Disabled << UARTE_CONFIG_HWFC_Pos, ///< HW flow control disabled.
+ NRF_UARTE_HWFC_ENABLED = UARTE_CONFIG_HWFC_Enabled << UARTE_CONFIG_HWFC_Pos ///< HW flow control enabled.
+} nrf_uarte_hwfc_t;
+
+
+/**
+ * @brief Function for clearing a specific UARTE event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Event to clear.
+ */
+__STATIC_INLINE void nrf_uarte_event_clear(NRF_UARTE_Type * p_reg, nrf_uarte_event_t event);
+
+/**
+ * @brief Function for checking the state of a specific UARTE event.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Event to check.
+ *
+ * @retval True if event is set, False otherwise.
+ */
+__STATIC_INLINE bool nrf_uarte_event_check(NRF_UARTE_Type * p_reg, nrf_uarte_event_t event);
+
+/**
+ * @brief Function for returning the address of a specific UARTE event register.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] event Desired event.
+ *
+ * @retval Address of specified event register.
+ */
+__STATIC_INLINE uint32_t nrf_uarte_event_address_get(NRF_UARTE_Type * p_reg,
+ nrf_uarte_event_t event);
+
+/**
+ * @brief Function for enabling UARTE shortcuts.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param shorts_mask Shortcuts to enable.
+ */
+__STATIC_INLINE void nrf_uarte_shorts_enable(NRF_UARTE_Type * p_reg, uint32_t shorts_mask);
+
+/**
+ * @brief Function for disabling UARTE shortcuts.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param shorts_mask Shortcuts to disable.
+ */
+__STATIC_INLINE void nrf_uarte_shorts_disable(NRF_UARTE_Type * p_reg, uint32_t shorts_mask);
+
+/**
+ * @brief Function for enabling UARTE interrupts.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param int_mask Interrupts to enable.
+ */
+__STATIC_INLINE void nrf_uarte_int_enable(NRF_UARTE_Type * p_reg, uint32_t int_mask);
+
+/**
+ * @brief Function for retrieving the state of a given interrupt.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param int_mask Mask of interrupt to check.
+ *
+ * @retval true If the interrupt is enabled.
+ * @retval false If the interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_uarte_int_enable_check(NRF_UARTE_Type * p_reg, nrf_uarte_int_mask_t int_mask);
+
+/**
+ * @brief Function for disabling specific interrupts.
+ *
+ * @param p_reg Instance.
+ * @param int_mask Interrupts to disable.
+ */
+__STATIC_INLINE void nrf_uarte_int_disable(NRF_UARTE_Type * p_reg, uint32_t int_mask);
+
+/**
+ * @brief Function for getting error source mask. Function is clearing error source flags after reading.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @return Mask with error source flags.
+ */
+__STATIC_INLINE uint32_t nrf_uarte_errorsrc_get_and_clear(NRF_UARTE_Type * p_reg);
+
+/**
+ * @brief Function for enabling UARTE.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_uarte_enable(NRF_UARTE_Type * p_reg);
+
+/**
+ * @brief Function for disabling UARTE.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_uarte_disable(NRF_UARTE_Type * p_reg);
+
+/**
+ * @brief Function for configuring TX/RX pins.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param pseltxd TXD pin number.
+ * @param pselrxd RXD pin number.
+ */
+__STATIC_INLINE void nrf_uarte_txrx_pins_set(NRF_UARTE_Type * p_reg, uint32_t pseltxd, uint32_t pselrxd);
+
+/**
+ * @brief Function for disconnecting TX/RX pins.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_uarte_txrx_pins_disconnect(NRF_UARTE_Type * p_reg);
+
+/**
+ * @brief Function for getting TX pin.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE uint32_t nrf_uarte_tx_pin_get(NRF_UARTE_Type * p_reg);
+
+/**
+ * @brief Function for getting RX pin.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE uint32_t nrf_uarte_rx_pin_get(NRF_UARTE_Type * p_reg);
+
+/**
+ * @brief Function for getting RTS pin.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE uint32_t nrf_uarte_rts_pin_get(NRF_UARTE_Type * p_reg);
+
+/**
+ * @brief Function for getting CTS pin.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE uint32_t nrf_uarte_cts_pin_get(NRF_UARTE_Type * p_reg);
+
+
+/**
+ * @brief Function for configuring flow control pins.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param pselrts RTS pin number.
+ * @param pselcts CTS pin number.
+ */
+__STATIC_INLINE void nrf_uarte_hwfc_pins_set(NRF_UARTE_Type * p_reg,
+ uint32_t pselrts,
+ uint32_t pselcts);
+
+/**
+ * @brief Function for disconnecting flow control pins.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ */
+__STATIC_INLINE void nrf_uarte_hwfc_pins_disconnect(NRF_UARTE_Type * p_reg);
+
+/**
+ * @brief Function for starting an UARTE task.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param task Task.
+ */
+__STATIC_INLINE void nrf_uarte_task_trigger(NRF_UARTE_Type * p_reg, nrf_uarte_task_t task);
+
+/**
+ * @brief Function for returning the address of a specific task register.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param task Task.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrf_uarte_task_address_get(NRF_UARTE_Type * p_reg, nrf_uarte_task_t task);
+
+/**
+ * @brief Function for configuring UARTE.
+ *
+ * @param p_reg Pointer to the peripheral registers structure.
+ * @param hwfc Hardware flow control. Enabled if true.
+ * @param parity Parity. Included if true.
+ */
+__STATIC_INLINE void nrf_uarte_configure(NRF_UARTE_Type * p_reg,
+ nrf_uarte_parity_t parity,
+ nrf_uarte_hwfc_t hwfc);
+
+
+/**
+ * @brief Function for setting UARTE baudrate.
+ *
+ * @param p_reg Instance.
+ * @param baudrate Baudrate.
+ */
+__STATIC_INLINE void nrf_uarte_baudrate_set(NRF_UARTE_Type * p_reg, nrf_uarte_baudrate_t baudrate);
+
+/**
+ * @brief Function for setting the transmit buffer.
+ *
+ * @param[in] p_reg Instance.
+ * @param[in] p_buffer Pointer to the buffer with data to send.
+ * @param[in] length Maximum number of data bytes to transmit.
+ */
+__STATIC_INLINE void nrf_uarte_tx_buffer_set(NRF_UARTE_Type * p_reg,
+ uint8_t const * p_buffer,
+ size_t length);
+
+/**
+ * @brief Function for getting number of bytes transmitted in the last transaction.
+ *
+ * @param[in] p_reg Instance.
+ *
+ * @retval Amount of bytes transmitted.
+ */
+__STATIC_INLINE uint32_t nrf_uarte_tx_amount_get(NRF_UARTE_Type * p_reg);
+
+/**
+ * @brief Function for setting the receive buffer.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ * @param[in] p_buffer Pointer to the buffer for received data.
+ * @param[in] length Maximum number of data bytes to receive.
+ */
+__STATIC_INLINE void nrf_uarte_rx_buffer_set(NRF_UARTE_Type * p_reg,
+ uint8_t * p_buffer,
+ size_t length);
+
+/**
+ * @brief Function for getting number of bytes received in the last transaction.
+ *
+ * @param[in] p_reg Pointer to the peripheral registers structure.
+ *
+ * @retval Amount of bytes received.
+ */
+__STATIC_INLINE uint32_t nrf_uarte_rx_amount_get(NRF_UARTE_Type * p_reg);
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+__STATIC_INLINE void nrf_uarte_event_clear(NRF_UARTE_Type * p_reg, nrf_uarte_event_t event)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event));
+ (void)dummy;
+#endif
+
+}
+
+__STATIC_INLINE bool nrf_uarte_event_check(NRF_UARTE_Type * p_reg, nrf_uarte_event_t event)
+{
+ return (bool)*(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event);
+}
+
+__STATIC_INLINE uint32_t nrf_uarte_event_address_get(NRF_UARTE_Type * p_reg,
+ nrf_uarte_event_t event)
+{
+ return (uint32_t)((uint8_t *)p_reg + (uint32_t)event);
+}
+
+__STATIC_INLINE void nrf_uarte_shorts_enable(NRF_UARTE_Type * p_reg, uint32_t shorts_mask)
+{
+ p_reg->SHORTS |= shorts_mask;
+}
+
+__STATIC_INLINE void nrf_uarte_shorts_disable(NRF_UARTE_Type * p_reg, uint32_t shorts_mask)
+{
+ p_reg->SHORTS &= ~(shorts_mask);
+}
+
+__STATIC_INLINE void nrf_uarte_int_enable(NRF_UARTE_Type * p_reg, uint32_t int_mask)
+{
+ p_reg->INTENSET = int_mask;
+}
+
+__STATIC_INLINE bool nrf_uarte_int_enable_check(NRF_UARTE_Type * p_reg, nrf_uarte_int_mask_t int_mask)
+{
+ return (bool)(p_reg->INTENSET & int_mask);
+}
+
+__STATIC_INLINE void nrf_uarte_int_disable(NRF_UARTE_Type * p_reg, uint32_t int_mask)
+{
+ p_reg->INTENCLR = int_mask;
+}
+
+__STATIC_INLINE uint32_t nrf_uarte_errorsrc_get_and_clear(NRF_UARTE_Type * p_reg)
+{
+ uint32_t errsrc_mask = p_reg->ERRORSRC;
+ p_reg->ERRORSRC = errsrc_mask;
+ return errsrc_mask;
+}
+
+__STATIC_INLINE void nrf_uarte_enable(NRF_UARTE_Type * p_reg)
+{
+ p_reg->ENABLE = UARTE_ENABLE_ENABLE_Enabled;
+}
+
+__STATIC_INLINE void nrf_uarte_disable(NRF_UARTE_Type * p_reg)
+{
+ p_reg->ENABLE = UARTE_ENABLE_ENABLE_Disabled;
+}
+
+__STATIC_INLINE void nrf_uarte_txrx_pins_set(NRF_UARTE_Type * p_reg, uint32_t pseltxd, uint32_t pselrxd)
+{
+ p_reg->PSEL.TXD = pseltxd;
+ p_reg->PSEL.RXD = pselrxd;
+}
+
+__STATIC_INLINE void nrf_uarte_txrx_pins_disconnect(NRF_UARTE_Type * p_reg)
+{
+ nrf_uarte_txrx_pins_set(p_reg, NRF_UARTE_PSEL_DISCONNECTED, NRF_UARTE_PSEL_DISCONNECTED);
+}
+
+__STATIC_INLINE uint32_t nrf_uarte_tx_pin_get(NRF_UARTE_Type * p_reg)
+{
+ return p_reg->PSEL.TXD;
+}
+
+__STATIC_INLINE uint32_t nrf_uarte_rx_pin_get(NRF_UARTE_Type * p_reg)
+{
+ return p_reg->PSEL.RXD;
+}
+
+__STATIC_INLINE uint32_t nrf_uarte_rts_pin_get(NRF_UARTE_Type * p_reg)
+{
+ return p_reg->PSEL.RTS;
+}
+
+__STATIC_INLINE uint32_t nrf_uarte_cts_pin_get(NRF_UARTE_Type * p_reg)
+{
+ return p_reg->PSEL.CTS;
+}
+
+__STATIC_INLINE void nrf_uarte_hwfc_pins_set(NRF_UARTE_Type * p_reg, uint32_t pselrts, uint32_t pselcts)
+{
+ p_reg->PSEL.RTS = pselrts;
+ p_reg->PSEL.CTS = pselcts;
+}
+
+__STATIC_INLINE void nrf_uarte_hwfc_pins_disconnect(NRF_UARTE_Type * p_reg)
+{
+ nrf_uarte_hwfc_pins_set(p_reg, NRF_UARTE_PSEL_DISCONNECTED, NRF_UARTE_PSEL_DISCONNECTED);
+}
+
+__STATIC_INLINE void nrf_uarte_task_trigger(NRF_UARTE_Type * p_reg, nrf_uarte_task_t task)
+{
+ *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL;
+}
+
+__STATIC_INLINE uint32_t nrf_uarte_task_address_get(NRF_UARTE_Type * p_reg, nrf_uarte_task_t task)
+{
+ return (uint32_t)p_reg + (uint32_t)task;
+}
+
+__STATIC_INLINE void nrf_uarte_configure(NRF_UARTE_Type * p_reg,
+ nrf_uarte_parity_t parity,
+ nrf_uarte_hwfc_t hwfc)
+{
+ p_reg->CONFIG = (uint32_t)parity | (uint32_t)hwfc;
+}
+
+__STATIC_INLINE void nrf_uarte_baudrate_set(NRF_UARTE_Type * p_reg, nrf_uarte_baudrate_t baudrate)
+{
+ p_reg->BAUDRATE = baudrate;
+}
+
+__STATIC_INLINE void nrf_uarte_tx_buffer_set(NRF_UARTE_Type * p_reg,
+ uint8_t const * p_buffer,
+ size_t length)
+{
+ p_reg->TXD.PTR = (uint32_t)p_buffer;
+ p_reg->TXD.MAXCNT = length;
+}
+
+__STATIC_INLINE uint32_t nrf_uarte_tx_amount_get(NRF_UARTE_Type * p_reg)
+{
+ return p_reg->TXD.AMOUNT;
+}
+
+__STATIC_INLINE void nrf_uarte_rx_buffer_set(NRF_UARTE_Type * p_reg,
+ uint8_t * p_buffer,
+ size_t length)
+{
+ p_reg->RXD.PTR = (uint32_t)p_buffer;
+ p_reg->RXD.MAXCNT = length;
+}
+
+__STATIC_INLINE uint32_t nrf_uarte_rx_amount_get(NRF_UARTE_Type * p_reg)
+{
+ return p_reg->RXD.AMOUNT;
+}
+#endif //SUPPRESS_INLINE_IMPLEMENTATION
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //NRF_UARTE_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_usbd.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_usbd.h
new file mode 100644
index 0000000..c020fc8
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_usbd.h
@@ -0,0 +1,1391 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_USBD_H__
+#define NRF_USBD_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_usbd_hal USBD HAL
+ * @{
+ * @ingroup nrf_usbd
+ * @brief Hardware access layer for managing the Universal Serial Bus Device (USBD)
+ * peripheral.
+ */
+
+/**
+ * @brief USBD tasks
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_USBD_TASK_STARTEPIN0 = offsetof(NRF_USBD_Type, TASKS_STARTEPIN[0] ), /**< Captures the EPIN[0].PTR, EPIN[0].MAXCNT and EPIN[0].CONFIG registers values, and enables control endpoint IN 0 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPIN1 = offsetof(NRF_USBD_Type, TASKS_STARTEPIN[1] ), /**< Captures the EPIN[1].PTR, EPIN[1].MAXCNT and EPIN[1].CONFIG registers values, and enables data endpoint IN 1 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPIN2 = offsetof(NRF_USBD_Type, TASKS_STARTEPIN[2] ), /**< Captures the EPIN[2].PTR, EPIN[2].MAXCNT and EPIN[2].CONFIG registers values, and enables data endpoint IN 2 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPIN3 = offsetof(NRF_USBD_Type, TASKS_STARTEPIN[3] ), /**< Captures the EPIN[3].PTR, EPIN[3].MAXCNT and EPIN[3].CONFIG registers values, and enables data endpoint IN 3 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPIN4 = offsetof(NRF_USBD_Type, TASKS_STARTEPIN[4] ), /**< Captures the EPIN[4].PTR, EPIN[4].MAXCNT and EPIN[4].CONFIG registers values, and enables data endpoint IN 4 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPIN5 = offsetof(NRF_USBD_Type, TASKS_STARTEPIN[5] ), /**< Captures the EPIN[5].PTR, EPIN[5].MAXCNT and EPIN[5].CONFIG registers values, and enables data endpoint IN 5 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPIN6 = offsetof(NRF_USBD_Type, TASKS_STARTEPIN[6] ), /**< Captures the EPIN[6].PTR, EPIN[6].MAXCNT and EPIN[6].CONFIG registers values, and enables data endpoint IN 6 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPIN7 = offsetof(NRF_USBD_Type, TASKS_STARTEPIN[7] ), /**< Captures the EPIN[7].PTR, EPIN[7].MAXCNT and EPIN[7].CONFIG registers values, and enables data endpoint IN 7 to respond to traffic from host */
+ NRF_USBD_TASK_STARTISOIN = offsetof(NRF_USBD_Type, TASKS_STARTISOIN ), /**< Captures the ISOIN.PTR, ISOIN.MAXCNT and ISOIN.CONFIG registers values, and enables sending data on iso endpoint 8 */
+ NRF_USBD_TASK_STARTEPOUT0 = offsetof(NRF_USBD_Type, TASKS_STARTEPOUT[0]), /**< Captures the EPOUT[0].PTR, EPOUT[0].MAXCNT and EPOUT[0].CONFIG registers values, and enables control endpoint 0 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPOUT1 = offsetof(NRF_USBD_Type, TASKS_STARTEPOUT[1]), /**< Captures the EPOUT[1].PTR, EPOUT[1].MAXCNT and EPOUT[1].CONFIG registers values, and enables data endpoint 1 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPOUT2 = offsetof(NRF_USBD_Type, TASKS_STARTEPOUT[2]), /**< Captures the EPOUT[2].PTR, EPOUT[2].MAXCNT and EPOUT[2].CONFIG registers values, and enables data endpoint 2 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPOUT3 = offsetof(NRF_USBD_Type, TASKS_STARTEPOUT[3]), /**< Captures the EPOUT[3].PTR, EPOUT[3].MAXCNT and EPOUT[3].CONFIG registers values, and enables data endpoint 3 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPOUT4 = offsetof(NRF_USBD_Type, TASKS_STARTEPOUT[4]), /**< Captures the EPOUT[4].PTR, EPOUT[4].MAXCNT and EPOUT[4].CONFIG registers values, and enables data endpoint 4 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPOUT5 = offsetof(NRF_USBD_Type, TASKS_STARTEPOUT[5]), /**< Captures the EPOUT[5].PTR, EPOUT[5].MAXCNT and EPOUT[5].CONFIG registers values, and enables data endpoint 5 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPOUT6 = offsetof(NRF_USBD_Type, TASKS_STARTEPOUT[6]), /**< Captures the EPOUT[6].PTR, EPOUT[6].MAXCNT and EPOUT[6].CONFIG registers values, and enables data endpoint 6 to respond to traffic from host */
+ NRF_USBD_TASK_STARTEPOUT7 = offsetof(NRF_USBD_Type, TASKS_STARTEPOUT[7]), /**< Captures the EPOUT[7].PTR, EPOUT[7].MAXCNT and EPOUT[7].CONFIG registers values, and enables data endpoint 7 to respond to traffic from host */
+ NRF_USBD_TASK_STARTISOOUT = offsetof(NRF_USBD_Type, TASKS_STARTISOOUT ), /**< Captures the ISOOUT.PTR, ISOOUT.MAXCNT and ISOOUT.CONFIG registers values, and enables receiving of data on iso endpoint 8 */
+ NRF_USBD_TASK_EP0RCVOUT = offsetof(NRF_USBD_Type, TASKS_EP0RCVOUT ), /**< Allows OUT data stage on control endpoint 0 */
+ NRF_USBD_TASK_EP0STATUS = offsetof(NRF_USBD_Type, TASKS_EP0STATUS ), /**< Allows status stage on control endpoint 0 */
+ NRF_USBD_TASK_EP0STALL = offsetof(NRF_USBD_Type, TASKS_EP0STALL ), /**< STALLs data and status stage on control endpoint 0 */
+ NRF_USBD_TASK_DRIVEDPDM = offsetof(NRF_USBD_Type, TASKS_DPDMDRIVE ), /**< Forces D+ and D-lines to the state defined in the DPDMVALUE register */
+ NRF_USBD_TASK_NODRIVEDPDM = offsetof(NRF_USBD_Type, TASKS_DPDMNODRIVE ), /**< Stops forcing D+ and D- lines to any state (USB engine takes control) */
+ /*lint -restore*/
+}nrf_usbd_task_t;
+
+/**
+ * @brief USBD events
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_USBD_EVENT_USBRESET = offsetof(NRF_USBD_Type, EVENTS_USBRESET ), /**< Signals that a USB reset condition has been detected on the USB lines */
+ NRF_USBD_EVENT_STARTED = offsetof(NRF_USBD_Type, EVENTS_STARTED ), /**< Confirms that the EPIN[n].PTR, EPIN[n].MAXCNT, EPIN[n].CONFIG, or EPOUT[n].PTR, EPOUT[n].MAXCNT and EPOUT[n].CONFIG registers have been captured on all endpoints reported in the EPSTATUS register */
+ NRF_USBD_EVENT_ENDEPIN0 = offsetof(NRF_USBD_Type, EVENTS_ENDEPIN[0] ), /**< The whole EPIN[0] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPIN1 = offsetof(NRF_USBD_Type, EVENTS_ENDEPIN[1] ), /**< The whole EPIN[1] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPIN2 = offsetof(NRF_USBD_Type, EVENTS_ENDEPIN[2] ), /**< The whole EPIN[2] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPIN3 = offsetof(NRF_USBD_Type, EVENTS_ENDEPIN[3] ), /**< The whole EPIN[3] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPIN4 = offsetof(NRF_USBD_Type, EVENTS_ENDEPIN[4] ), /**< The whole EPIN[4] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPIN5 = offsetof(NRF_USBD_Type, EVENTS_ENDEPIN[5] ), /**< The whole EPIN[5] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPIN6 = offsetof(NRF_USBD_Type, EVENTS_ENDEPIN[6] ), /**< The whole EPIN[6] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPIN7 = offsetof(NRF_USBD_Type, EVENTS_ENDEPIN[7] ), /**< The whole EPIN[7] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_EP0DATADONE = offsetof(NRF_USBD_Type, EVENTS_EP0DATADONE), /**< An acknowledged data transfer has taken place on the control endpoint */
+ NRF_USBD_EVENT_ENDISOIN0 = offsetof(NRF_USBD_Type, EVENTS_ENDISOIN ), /**< The whole ISOIN buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPOUT0 = offsetof(NRF_USBD_Type, EVENTS_ENDEPOUT[0]), /**< The whole EPOUT[0] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPOUT1 = offsetof(NRF_USBD_Type, EVENTS_ENDEPOUT[1]), /**< The whole EPOUT[1] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPOUT2 = offsetof(NRF_USBD_Type, EVENTS_ENDEPOUT[2]), /**< The whole EPOUT[2] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPOUT3 = offsetof(NRF_USBD_Type, EVENTS_ENDEPOUT[3]), /**< The whole EPOUT[3] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPOUT4 = offsetof(NRF_USBD_Type, EVENTS_ENDEPOUT[4]), /**< The whole EPOUT[4] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPOUT5 = offsetof(NRF_USBD_Type, EVENTS_ENDEPOUT[5]), /**< The whole EPOUT[5] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPOUT6 = offsetof(NRF_USBD_Type, EVENTS_ENDEPOUT[6]), /**< The whole EPOUT[6] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDEPOUT7 = offsetof(NRF_USBD_Type, EVENTS_ENDEPOUT[7]), /**< The whole EPOUT[7] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_ENDISOOUT0 = offsetof(NRF_USBD_Type, EVENTS_ENDISOOUT ), /**< The whole ISOOUT buffer has been consumed. The RAM buffer can be accessed safely by software. */
+ NRF_USBD_EVENT_SOF = offsetof(NRF_USBD_Type, EVENTS_SOF ), /**< Signals that a SOF (start of frame) condition has been detected on the USB lines */
+ NRF_USBD_EVENT_USBEVENT = offsetof(NRF_USBD_Type, EVENTS_USBEVENT ), /**< An event or an error not covered by specific events has occurred, check EVENTCAUSE register to find the cause */
+ NRF_USBD_EVENT_EP0SETUP = offsetof(NRF_USBD_Type, EVENTS_EP0SETUP ), /**< A valid SETUP token has been received (and acknowledged) on the control endpoint */
+ NRF_USBD_EVENT_DATAEP = offsetof(NRF_USBD_Type, EVENTS_EPDATA ), /**< A data transfer has occurred on a data endpoint, indicated by the EPDATASTATUS register */
+ /*lint -restore*/
+}nrf_usbd_event_t;
+
+/**
+ * @brief USBD shorts
+ */
+typedef enum
+{
+ NRF_USBD_SHORT_EP0DATADONE_STARTEPIN0_MASK = USBD_SHORTS_EP0DATADONE_STARTEPIN0_Msk , /**< Shortcut between EP0DATADONE event and STARTEPIN0 task */
+ NRF_USBD_SHORT_EP0DATADONE_STARTEPOUT0_MASK = USBD_SHORTS_EP0DATADONE_STARTEPOUT0_Msk, /**< Shortcut between EP0DATADONE event and STARTEPOUT0 task */
+ NRF_USBD_SHORT_EP0DATADONE_EP0STATUS_MASK = USBD_SHORTS_EP0DATADONE_EP0STATUS_Msk , /**< Shortcut between EP0DATADONE event and EP0STATUS task */
+ NRF_USBD_SHORT_ENDEPOUT0_EP0STATUS_MASK = USBD_SHORTS_ENDEPOUT0_EP0STATUS_Msk , /**< Shortcut between ENDEPOUT[0] event and EP0STATUS task */
+ NRF_USBD_SHORT_ENDEPOUT0_EP0RCVOUT_MASK = USBD_SHORTS_ENDEPOUT0_EP0RCVOUT_Msk , /**< Shortcut between ENDEPOUT[0] event and EP0RCVOUT task */
+}nrf_usbd_short_mask_t;
+
+/**
+ * @brief USBD interrupts
+ */
+typedef enum
+{
+ NRF_USBD_INT_USBRESET_MASK = USBD_INTEN_USBRESET_Msk , /**< Enable or disable interrupt for USBRESET event */
+ NRF_USBD_INT_STARTED_MASK = USBD_INTEN_STARTED_Msk , /**< Enable or disable interrupt for STARTED event */
+ NRF_USBD_INT_ENDEPIN0_MASK = USBD_INTEN_ENDEPIN0_Msk , /**< Enable or disable interrupt for ENDEPIN[0] event */
+ NRF_USBD_INT_ENDEPIN1_MASK = USBD_INTEN_ENDEPIN1_Msk , /**< Enable or disable interrupt for ENDEPIN[1] event */
+ NRF_USBD_INT_ENDEPIN2_MASK = USBD_INTEN_ENDEPIN2_Msk , /**< Enable or disable interrupt for ENDEPIN[2] event */
+ NRF_USBD_INT_ENDEPIN3_MASK = USBD_INTEN_ENDEPIN3_Msk , /**< Enable or disable interrupt for ENDEPIN[3] event */
+ NRF_USBD_INT_ENDEPIN4_MASK = USBD_INTEN_ENDEPIN4_Msk , /**< Enable or disable interrupt for ENDEPIN[4] event */
+ NRF_USBD_INT_ENDEPIN5_MASK = USBD_INTEN_ENDEPIN5_Msk , /**< Enable or disable interrupt for ENDEPIN[5] event */
+ NRF_USBD_INT_ENDEPIN6_MASK = USBD_INTEN_ENDEPIN6_Msk , /**< Enable or disable interrupt for ENDEPIN[6] event */
+ NRF_USBD_INT_ENDEPIN7_MASK = USBD_INTEN_ENDEPIN7_Msk , /**< Enable or disable interrupt for ENDEPIN[7] event */
+ NRF_USBD_INT_EP0DATADONE_MASK = USBD_INTEN_EP0DATADONE_Msk, /**< Enable or disable interrupt for EP0DATADONE event */
+ NRF_USBD_INT_ENDISOIN0_MASK = USBD_INTEN_ENDISOIN_Msk , /**< Enable or disable interrupt for ENDISOIN[0] event */
+ NRF_USBD_INT_ENDEPOUT0_MASK = USBD_INTEN_ENDEPOUT0_Msk , /**< Enable or disable interrupt for ENDEPOUT[0] event */
+ NRF_USBD_INT_ENDEPOUT1_MASK = USBD_INTEN_ENDEPOUT1_Msk , /**< Enable or disable interrupt for ENDEPOUT[1] event */
+ NRF_USBD_INT_ENDEPOUT2_MASK = USBD_INTEN_ENDEPOUT2_Msk , /**< Enable or disable interrupt for ENDEPOUT[2] event */
+ NRF_USBD_INT_ENDEPOUT3_MASK = USBD_INTEN_ENDEPOUT3_Msk , /**< Enable or disable interrupt for ENDEPOUT[3] event */
+ NRF_USBD_INT_ENDEPOUT4_MASK = USBD_INTEN_ENDEPOUT4_Msk , /**< Enable or disable interrupt for ENDEPOUT[4] event */
+ NRF_USBD_INT_ENDEPOUT5_MASK = USBD_INTEN_ENDEPOUT5_Msk , /**< Enable or disable interrupt for ENDEPOUT[5] event */
+ NRF_USBD_INT_ENDEPOUT6_MASK = USBD_INTEN_ENDEPOUT6_Msk , /**< Enable or disable interrupt for ENDEPOUT[6] event */
+ NRF_USBD_INT_ENDEPOUT7_MASK = USBD_INTEN_ENDEPOUT7_Msk , /**< Enable or disable interrupt for ENDEPOUT[7] event */
+ NRF_USBD_INT_ENDISOOUT0_MASK = USBD_INTEN_ENDISOOUT_Msk , /**< Enable or disable interrupt for ENDISOOUT[0] event */
+ NRF_USBD_INT_SOF_MASK = USBD_INTEN_SOF_Msk , /**< Enable or disable interrupt for SOF event */
+ NRF_USBD_INT_USBEVENT_MASK = USBD_INTEN_USBEVENT_Msk , /**< Enable or disable interrupt for USBEVENT event */
+ NRF_USBD_INT_EP0SETUP_MASK = USBD_INTEN_EP0SETUP_Msk , /**< Enable or disable interrupt for EP0SETUP event */
+ NRF_USBD_INT_DATAEP_MASK = USBD_INTEN_EPDATA_Msk , /**< Enable or disable interrupt for EPDATA event */
+}nrf_usbd_int_mask_t;
+
+
+/**
+ * @brief Function for activating a specific USBD task.
+ *
+ * @param task Task.
+ */
+__STATIC_INLINE void nrf_usbd_task_trigger(nrf_usbd_task_t task);
+
+/**
+ * @brief Function for returning the address of a specific USBD task register.
+ *
+ * @param task Task.
+ *
+ * @return Task address.
+ */
+__STATIC_INLINE uint32_t nrf_usbd_task_address_get(nrf_usbd_task_t task);
+
+/**
+ * @brief Function for clearing a specific event.
+ *
+ * @param event Event.
+ */
+__STATIC_INLINE void nrf_usbd_event_clear(nrf_usbd_event_t event);
+
+/**
+ * @brief Function for returning the state of a specific event.
+ *
+ * @param event Event.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_usbd_event_check(nrf_usbd_event_t event);
+
+/**
+ * @brief Function for getting and clearing the state of specific event
+ *
+ * This function checks the state of the event and clears it.
+ *
+ * @param event Event.
+ *
+ * @retval true If the event was set.
+ * @retval false If the event was not set.
+ */
+__STATIC_INLINE bool nrf_usbd_event_get_and_clear(nrf_usbd_event_t event);
+
+/**
+ * @brief Function for returning the address of a specific USBD event register.
+ *
+ * @param event Event.
+ *
+ * @return Address.
+ */
+__STATIC_INLINE uint32_t nrf_usbd_event_address_get(nrf_usbd_event_t event);
+
+/**
+ * @brief Function for setting a shortcut.
+ *
+ * @param short_mask Shortcuts mask.
+ */
+__STATIC_INLINE void nrf_usbd_shorts_enable(uint32_t short_mask);
+
+/**
+ * @brief Function for clearing shortcuts.
+ *
+ * @param short_mask Shortcuts mask.
+ */
+__STATIC_INLINE void nrf_usbd_shorts_disable(uint32_t short_mask);
+
+/**
+ * @brief Get the shorts mask
+ *
+ * Function returns shorts register.
+ *
+ * @return Flags of currently enabled shortcuts
+ */
+__STATIC_INLINE uint32_t nrf_usbd_shorts_get(void);
+
+/**
+ * @brief Function for enabling selected interrupts.
+ *
+ * @param int_mask Interrupts mask.
+ */
+__STATIC_INLINE void nrf_usbd_int_enable(uint32_t int_mask);
+
+/**
+ * @brief Function for retrieving the state of selected interrupts.
+ *
+ * @param int_mask Interrupts mask.
+ *
+ * @retval true If any of selected interrupts is enabled.
+ * @retval false If none of selected interrupts is enabled.
+ */
+__STATIC_INLINE bool nrf_usbd_int_enable_check(uint32_t int_mask);
+
+/**
+ * @brief Function for retrieving the information about enabled interrupts.
+ *
+ * @return The flags of enabled interrupts.
+ */
+__STATIC_INLINE uint32_t nrf_usbd_int_enable_get(void);
+
+/**
+ * @brief Function for disabling selected interrupts.
+ *
+ * @param int_mask Interrupts mask.
+ */
+__STATIC_INLINE void nrf_usbd_int_disable(uint32_t int_mask);
+
+
+/** @} */ /* End of nrf_usbd_hal */
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+/* ------------------------------------------------------------------------------------------------
+ * Internal functions
+ */
+
+/**
+ * @internal
+ * @brief Internal function for getting task/event register address
+ *
+ * @oaram offset Offset of the register from the instance beginning
+ *
+ * @attention offset has to be modulo 4 value. In other case we can get hardware fault.
+ * @return Pointer to the register
+ */
+__STATIC_INLINE volatile uint32_t* nrf_usbd_getRegPtr(uint32_t offset)
+{
+ return (volatile uint32_t*)(((uint8_t *)NRF_USBD) + (uint32_t)offset);
+}
+
+/**
+ * @internal
+ * @brief Internal function for getting task/event register address - constant version
+ *
+ * @oaram offset Offset of the register from the instance beginning
+ *
+ * @attention offset has to be modulo 4 value. In other case we can get hardware fault.
+ * @return Pointer to the register
+ */
+__STATIC_INLINE volatile const uint32_t* nrf_usbd_getRegPtr_c(uint32_t offset)
+{
+ return (volatile const uint32_t*)(((uint8_t *)NRF_USBD) + (uint32_t)offset);
+}
+
+/* ------------------------------------------------------------------------------------------------
+ * Interface functions definitions
+ */
+
+void nrf_usbd_task_trigger(nrf_usbd_task_t task)
+{
+ *(nrf_usbd_getRegPtr((uint32_t)task)) = 1UL;
+ __ISB();
+ __DSB();
+}
+
+uint32_t nrf_usbd_task_address_get(nrf_usbd_task_t task)
+{
+ return (uint32_t)nrf_usbd_getRegPtr_c((uint32_t)task);
+}
+
+void nrf_usbd_event_clear(nrf_usbd_event_t event)
+{
+ *(nrf_usbd_getRegPtr((uint32_t)event)) = 0UL;
+ __ISB();
+ __DSB();
+}
+
+bool nrf_usbd_event_check(nrf_usbd_event_t event)
+{
+ return (bool)*nrf_usbd_getRegPtr_c((uint32_t)event);
+}
+
+bool nrf_usbd_event_get_and_clear(nrf_usbd_event_t event)
+{
+ bool ret = nrf_usbd_event_check(event);
+ if (ret)
+ {
+ nrf_usbd_event_clear(event);
+ }
+ return ret;
+}
+
+uint32_t nrf_usbd_event_address_get(nrf_usbd_event_t event)
+{
+ return (uint32_t)nrf_usbd_getRegPtr_c((uint32_t)event);
+}
+
+void nrf_usbd_shorts_enable(uint32_t short_mask)
+{
+ NRF_USBD->SHORTS |= short_mask;
+}
+
+void nrf_usbd_shorts_disable(uint32_t short_mask)
+{
+ if (~0U == short_mask)
+ {
+ /* Optimized version for "disable all" */
+ NRF_USBD->SHORTS = 0;
+ }
+ else
+ {
+ NRF_USBD->SHORTS &= ~short_mask;
+ }
+}
+
+uint32_t nrf_usbd_shorts_get(void)
+{
+ return NRF_USBD->SHORTS;
+}
+
+void nrf_usbd_int_enable(uint32_t int_mask)
+{
+ NRF_USBD->INTENSET = int_mask;
+}
+
+bool nrf_usbd_int_enable_check(uint32_t int_mask)
+{
+ return !!(NRF_USBD->INTENSET & int_mask);
+}
+
+uint32_t nrf_usbd_int_enable_get(void)
+{
+ return NRF_USBD->INTENSET;
+}
+
+void nrf_usbd_int_disable(uint32_t int_mask)
+{
+ NRF_USBD->INTENCLR = int_mask;
+}
+
+#endif /* SUPPRESS_INLINE_IMPLEMENTATION */
+
+/* ------------------------------------------------------------------------------------------------
+ * End of automatically generated part
+ * ------------------------------------------------------------------------------------------------
+ */
+/**
+ * @addtogroup nrf_usbd_hal
+ * @{
+ */
+
+/**
+ * @brief Frame counter size
+ *
+ * The number of counts that can be fitted into frame counter
+ */
+#define NRF_USBD_FRAMECNTR_SIZE \
+ ( (USBD_FRAMECNTR_FRAMECNTR_Msk >> USBD_FRAMECNTR_FRAMECNTR_Pos) + 1UL )
+#ifndef USBD_FRAMECNTR_FRAMECNTR_Msk
+#error USBD_FRAMECNTR_FRAMECNTR_Msk should be changed into USBD_FRAMECNTR_FRAMECNTR_Msk
+#endif
+
+/**
+ * @brief First isochronous endpoint number
+ *
+ * The number of the first isochronous endpoint
+ */
+#define NRF_USBD_EPISO_FIRST 8
+
+/**
+ * @brief Total number of IN endpoints
+ *
+ * Total number of IN endpoint (including ISOCHRONOUS).
+ */
+#define NRF_USBD_EPIN_CNT 9
+
+/**
+ * @brief Total number of OUT endpoints
+ *
+ * Total number of OUT endpoint (including ISOCHRONOUS).
+ */
+#define NRF_USBD_EPOUT_CNT 9
+
+/**
+ * @brief Mask of the direction bit in endpoint number
+ */
+#define NRF_USBD_EP_DIR_Msk (1U << 7)
+
+/**
+ * @brief The value of direction bit for IN endpoint direction
+ */
+#define NRF_USBD_EP_DIR_IN (1U << 7)
+
+/**
+ * @brief The value of direction bit for OUT endpoint direction
+ */
+#define NRF_USBD_EP_DIR_OUT (0U << 7)
+
+/**
+ * @brief Macro for making IN endpoint identifier from endpoint number
+ *
+ * Macro that sets direction bit to make IN endpoint
+ * @param[in] epnr Endpoint number
+ * @return IN Endpoint identifier
+ */
+#define NRF_USBD_EPIN(epnr) (((uint8_t)(epnr)) | NRF_USBD_EP_DIR_IN)
+
+/**
+ * @brief Macro for making OUT endpoint identifier from endpoint number
+ *
+ * Macro that sets direction bit to make OUT endpoint
+ * @param[in] epnr Endpoint number
+ * @return OUT Endpoint identifier
+ */
+#define NRF_USBD_EPOUT(epnr) (((uint8_t)(epnr)) | NRF_USBD_EP_DIR_OUT)
+
+/**
+ * @brief Macro for extracting the endpoint number from endpoint identifier
+ *
+ * Macro that strips out the information about endpoint direction.
+ * @param[in] ep Endpoint identifier
+ * @return Endpoint number
+ */
+#define NRF_USBD_EP_NR_GET(ep) ((uint8_t)(((uint8_t)(ep)) & 0xFU))
+
+/**
+ * @brief Macro for checking endpoint direction
+ *
+ * This macro checks if given endpoint has IN direction
+ * @param ep Endpoint identifier
+ * @retval true If the endpoint direction is IN
+ * @retval false If the endpoint direction is OUT
+ */
+#define NRF_USBD_EPIN_CHECK(ep) ( (((uint8_t)(ep)) & NRF_USBD_EP_DIR_Msk) == NRF_USBD_EP_DIR_IN )
+
+/**
+ * @brief Macro for checking endpoint direction
+ *
+ * This macro checks if given endpoint has OUT direction
+ * @param ep Endpoint identifier
+ * @retval true If the endpoint direction is OUT
+ * @retval false If the endpoint direction is IN
+ */
+#define NRF_USBD_EPOUT_CHECK(ep) ( (((uint8_t)(ep)) & NRF_USBD_EP_DIR_Msk) == NRF_USBD_EP_DIR_OUT )
+
+/**
+ * @brief Macro for checking if endpoint is isochronous
+ *
+ * @param ep It can be endpoint identifier or just endpoint number to check
+ * @retval true The endpoint is isochronous type
+ * @retval false The endpoint is bulk of interrupt type
+ */
+#define NRF_USBD_EPISO_CHECK(ep) (NRF_USBD_EP_NR_GET(ep) >= NRF_USBD_EPISO_FIRST)
+
+/**
+ * @brief Macro for checking if given number is valid endpoint number
+ *
+ * @param ep Endpoint number to check
+ * @retval true The endpoint is valid
+ * @retval false The endpoint is not valid
+ */
+#define NRF_USBD_EP_VALIDATE(ep) ( \
+ (NRF_USBD_EPIN_CHECK(ep) && (NRF_USBD_EP_NR_GET(ep) < NRF_USBD_EPIN_CNT)) \
+ || \
+ (NRF_USBD_EPOUT_CHECK(ep) && (NRF_USBD_EP_NR_GET(ep) < NRF_USBD_EPOUT_CNT)) \
+ )
+
+/**
+ * @brief Not isochronous data frame received
+ *
+ * Special value returned by @ref nrf_usbd_episoout_size_get function that means that
+ * data frame was not received at all.
+ * This allows differentiate between situations when zero size data comes or no data comes at all
+ * on isochronous endpoint.
+ */
+#define NRF_USBD_EPISOOUT_NO_DATA ((size_t)(-1))
+
+/**
+ * @brief EVENTCAUSE register bit masks
+ */
+typedef enum
+{
+ NRF_USBD_EVENTCAUSE_ISOOUTCRC_MASK = USBD_EVENTCAUSE_ISOOUTCRC_Msk, /**< CRC error was detected on isochronous OUT endpoint 8. */
+ NRF_USBD_EVENTCAUSE_SUSPEND_MASK = USBD_EVENTCAUSE_SUSPEND_Msk , /**< Signals that the USB lines have been seen idle long enough for the device to enter suspend. */
+ NRF_USBD_EVENTCAUSE_RESUME_MASK = USBD_EVENTCAUSE_RESUME_Msk , /**< Signals that a RESUME condition (K state or activity restart) has been detected on the USB lines. */
+ NRF_USBD_EVENTCAUSE_READY_MASK = USBD_EVENTCAUSE_READY_Msk, /**< MAC is ready for normal operation, rised few us after USBD enabling */
+ NRF_USBD_EVENTCAUSE_WUREQ_MASK = (1U << 10) /**< The USBD peripheral has exited Low Power mode */
+}nrf_usbd_eventcause_mask_t;
+
+/**
+ * @brief DPDMVALUE register
+ */
+typedef enum
+{
+ /**Generate Resume signal. Signal is generated for 50&nbsp;us or 5&nbsp;ms,
+ * depending on bus state */
+ NRF_USBD_DPDMVALUE_RESUME = USBD_DPDMVALUE_STATE_Resume,
+ /** D+ Forced high, D- forced low (J state) */
+ NRF_USBD_DPDMVALUE_J = USBD_DPDMVALUE_STATE_J,
+ /** D+ Forced low, D- forced high (K state) */
+ NRF_USBD_DPMVALUE_K = USBD_DPDMVALUE_STATE_K
+}nrf_usbd_dpdmvalue_t;
+
+/**
+ * @brief Dtoggle value or operation
+ */
+typedef enum
+{
+ NRF_USBD_DTOGGLE_NOP = USBD_DTOGGLE_VALUE_Nop, /**< No operation - do not change current data toggle on selected endpoint */
+ NRF_USBD_DTOGGLE_DATA0 = USBD_DTOGGLE_VALUE_Data0,/**< Data toggle is DATA0 on selected endpoint */
+ NRF_USBD_DTOGGLE_DATA1 = USBD_DTOGGLE_VALUE_Data1 /**< Data toggle is DATA1 on selected endpoint */
+}nrf_usbd_dtoggle_t;
+
+/**
+ * @brief EPSTATUS bit masks
+ */
+typedef enum
+{
+ NRF_USBD_EPSTATUS_EPIN0_MASK = USBD_EPSTATUS_EPIN0_Msk,
+ NRF_USBD_EPSTATUS_EPIN1_MASK = USBD_EPSTATUS_EPIN1_Msk,
+ NRF_USBD_EPSTATUS_EPIN2_MASK = USBD_EPSTATUS_EPIN2_Msk,
+ NRF_USBD_EPSTATUS_EPIN3_MASK = USBD_EPSTATUS_EPIN3_Msk,
+ NRF_USBD_EPSTATUS_EPIN4_MASK = USBD_EPSTATUS_EPIN4_Msk,
+ NRF_USBD_EPSTATUS_EPIN5_MASK = USBD_EPSTATUS_EPIN5_Msk,
+ NRF_USBD_EPSTATUS_EPIN6_MASK = USBD_EPSTATUS_EPIN6_Msk,
+ NRF_USBD_EPSTATUS_EPIN7_MASK = USBD_EPSTATUS_EPIN7_Msk,
+
+ NRF_USBD_EPSTATUS_EPOUT0_MASK = USBD_EPSTATUS_EPOUT0_Msk,
+ NRF_USBD_EPSTATUS_EPOUT1_MASK = USBD_EPSTATUS_EPOUT1_Msk,
+ NRF_USBD_EPSTATUS_EPOUT2_MASK = USBD_EPSTATUS_EPOUT2_Msk,
+ NRF_USBD_EPSTATUS_EPOUT3_MASK = USBD_EPSTATUS_EPOUT3_Msk,
+ NRF_USBD_EPSTATUS_EPOUT4_MASK = USBD_EPSTATUS_EPOUT4_Msk,
+ NRF_USBD_EPSTATUS_EPOUT5_MASK = USBD_EPSTATUS_EPOUT5_Msk,
+ NRF_USBD_EPSTATUS_EPOUT6_MASK = USBD_EPSTATUS_EPOUT6_Msk,
+ NRF_USBD_EPSTATUS_EPOUT7_MASK = USBD_EPSTATUS_EPOUT7_Msk,
+}nrf_usbd_epstatus_mask_t;
+
+/**
+ * @brief DATAEPSTATUS bit masks
+ */
+typedef enum
+{
+ NRF_USBD_EPDATASTATUS_EPIN1_MASK = USBD_EPDATASTATUS_EPIN1_Msk,
+ NRF_USBD_EPDATASTATUS_EPIN2_MASK = USBD_EPDATASTATUS_EPIN2_Msk,
+ NRF_USBD_EPDATASTATUS_EPIN3_MASK = USBD_EPDATASTATUS_EPIN3_Msk,
+ NRF_USBD_EPDATASTATUS_EPIN4_MASK = USBD_EPDATASTATUS_EPIN4_Msk,
+ NRF_USBD_EPDATASTATUS_EPIN5_MASK = USBD_EPDATASTATUS_EPIN5_Msk,
+ NRF_USBD_EPDATASTATUS_EPIN6_MASK = USBD_EPDATASTATUS_EPIN6_Msk,
+ NRF_USBD_EPDATASTATUS_EPIN7_MASK = USBD_EPDATASTATUS_EPIN7_Msk,
+
+ NRF_USBD_EPDATASTATUS_EPOUT1_MASK = USBD_EPDATASTATUS_EPOUT1_Msk,
+ NRF_USBD_EPDATASTATUS_EPOUT2_MASK = USBD_EPDATASTATUS_EPOUT2_Msk,
+ NRF_USBD_EPDATASTATUS_EPOUT3_MASK = USBD_EPDATASTATUS_EPOUT3_Msk,
+ NRF_USBD_EPDATASTATUS_EPOUT4_MASK = USBD_EPDATASTATUS_EPOUT4_Msk,
+ NRF_USBD_EPDATASTATUS_EPOUT5_MASK = USBD_EPDATASTATUS_EPOUT5_Msk,
+ NRF_USBD_EPDATASTATUS_EPOUT6_MASK = USBD_EPDATASTATUS_EPOUT6_Msk,
+ NRF_USBD_EPDATASTATUS_EPOUT7_MASK = USBD_EPDATASTATUS_EPOUT7_Msk,
+}nrf_usbd_dataepstatus_mask_t;
+
+/**
+ * @brief ISOSPLIT configurations
+ */
+typedef enum
+{
+ NRF_USBD_ISOSPLIT_OneDir = USBD_ISOSPLIT_SPLIT_OneDir, /**< Full buffer dedicated to either iso IN or OUT */
+ NRF_USBD_ISOSPLIT_Half = USBD_ISOSPLIT_SPLIT_HalfIN, /**< Buffer divided in half */
+}nrf_usbd_isosplit_t;
+
+/**
+ * @brief Function for enabling USBD
+ */
+__STATIC_INLINE void nrf_usbd_enable(void);
+
+/**
+ * @brief Function for disabling USBD
+ */
+__STATIC_INLINE void nrf_usbd_disable(void);
+
+/**
+ * @brief Function for getting EVENTCAUSE register
+ *
+ * @return Flag values defined in @ref nrf_usbd_eventcause_mask_t
+ */
+__STATIC_INLINE uint32_t nrf_usbd_eventcause_get(void);
+
+/**
+ * @brief Function for clearing EVENTCAUSE flags
+ *
+ * @param flags Flags defined in @ref nrf_usbd_eventcause_mask_t
+ */
+__STATIC_INLINE void nrf_usbd_eventcause_clear(uint32_t flags);
+
+/**
+ * @brief Function for getting EVENTCAUSE register and clear flags that are set
+ *
+ * The safest way to return current EVENTCAUSE register.
+ * All the flags that are returned would be cleared inside EVENTCAUSE register.
+ *
+ * @return Flag values defined in @ref nrf_usbd_eventcause_mask_t
+ */
+__STATIC_INLINE uint32_t nrf_usbd_eventcause_get_and_clear(void);
+
+/**
+ * @brief Function for getting HALTEDEPIN register value
+ *
+ * @param ep Endpoint number with IN/OUT flag
+ *
+ * @return The value of HALTEDEPIN or HALTEDOUT register for selected endpoint
+ *
+ * @note
+ * Use this function for the response for GetStatus() request to endpoint.
+ * To check if endpoint is stalled in the code use @ref nrf_usbd_ep_is_stall.
+ */
+__STATIC_INLINE uint32_t nrf_usbd_haltedep(uint8_t ep);
+
+/**
+ * @brief Function for checking if selected endpoint is stalled
+ *
+ * Function to be used as a syntax sweeter for @ref nrf_usbd_haltedep.
+ *
+ * Also as the isochronous endpoint cannot be halted - it returns always false
+ * if isochronous endpoint is checked.
+ *
+ * @param ep Endpoint number with IN/OUT flag
+ *
+ * @return The information if the enepoint is halted.
+ */
+__STATIC_INLINE bool nrf_usbd_ep_is_stall(uint8_t ep);
+
+/**
+ * @brief Function for getting EPSTATUS register value
+ *
+ * @return Flag values defined in @ref nrf_usbd_epstatus_mask_t
+ */
+__STATIC_INLINE uint32_t nrf_usbd_epstatus_get(void);
+
+/**
+ * @brief Function for clearing EPSTATUS register value
+ *
+ * @param flags Flags defined in @ref nrf_usbd_epstatus_mask_t
+ */
+__STATIC_INLINE void nrf_usbd_epstatus_clear(uint32_t flags);
+
+/**
+ * @brief Function for getting and clearing EPSTATUS register value
+ *
+ * Function clears all flags in register set before returning its value.
+ * @return Flag values defined in @ref nrf_usbd_epstatus_mask_t
+ */
+__STATIC_INLINE uint32_t nrf_usbd_epstatus_get_and_clear(void);
+
+/**
+ * @brief Function for getting DATAEPSTATUS register value
+ *
+ * @return Flag values defined in @ref nrf_usbd_dataepstatus_mask_t
+ */
+__STATIC_INLINE uint32_t nrf_usbd_epdatastatus_get(void);
+
+/**
+ * @brief Function for clearing DATAEPSTATUS register value
+ *
+ * @param flags Flags defined in @ref nrf_usbd_dataepstatus_mask_t
+ */
+__STATIC_INLINE void nrf_usbd_epdatastatus_clear(uint32_t flags);
+
+/**
+ * @brief Function for getting and clearing DATAEPSTATUS register value
+ *
+ * Function clears all flags in register set before returning its value.
+ * @return Flag values defined in @ref nrf_usbd_dataepstatus_mask_t
+ */
+__STATIC_INLINE uint32_t nrf_usbd_epdatastatus_get_and_clear(void);
+
+/**
+ * @name Setup command frame functions
+ *
+ * Functions for setup command frame parts access
+ * @{
+ */
+ /**
+ * @brief Function for reading BMREQUESTTYPE - part of SETUP packet
+ *
+ * @return the value of BREQUESTTYPE on last received SETUP frame
+ */
+ __STATIC_INLINE uint8_t nrf_usbd_setup_bmrequesttype_get(void);
+
+ /**
+ * @brief Function for reading BMREQUEST - part of SETUP packet
+ *
+ * @return the value of BREQUEST on last received SETUP frame
+ */
+ __STATIC_INLINE uint8_t nrf_usbd_setup_brequest_get(void);
+
+ /**
+ * @brief Function for reading WVALUE - part of SETUP packet
+ *
+ * @return the value of WVALUE on last received SETUP frame
+ */
+ __STATIC_INLINE uint16_t nrf_usbd_setup_wvalue_get(void);
+
+ /**
+ * @brief Function for reading WINDEX - part of SETUP packet
+ *
+ * @return the value of WINDEX on last received SETUP frame
+ */
+ __STATIC_INLINE uint16_t nrf_usbd_setup_windex_get(void);
+
+ /**
+ * @brief Function for reading WLENGTH - part of SETUP packet
+ *
+ * @return the value of WLENGTH on last received SETUP frame
+ */
+ __STATIC_INLINE uint16_t nrf_usbd_setup_wlength_get(void);
+/** @} */
+
+/**
+ * @brief Function for getting number of received bytes on selected endpoint
+ *
+ * @param ep Endpoint identifier.
+ *
+ * @return Number of received bytes.
+ *
+ * @note This function may be used on Bulk/Interrupt and Isochronous endpoints.
+ * @note For the function that returns different value for ISOOUT zero transfer or no transfer at all,
+ * see @ref nrf_usbd_episoout_size_get function. This function would return 0 for both cases.
+ */
+__STATIC_INLINE size_t nrf_usbd_epout_size_get(uint8_t ep);
+
+/**
+ * @brief Function for getting number of received bytes on isochronous endpoint.
+ *
+ * @param ep Endpoint identifier, has to be isochronous out endpoint.
+ *
+ * @return Number of bytes received or @ref NRF_USBD_EPISOOUT_NO_DATA
+ */
+__STATIC_INLINE size_t nrf_usbd_episoout_size_get(uint8_t ep);
+
+/**
+ * @brief Function for clearing out endpoint to accept any new incoming traffic
+ *
+ * @param ep ep Endpoint identifier. Only OUT Interrupt/Bulk endpoints are accepted.
+ */
+__STATIC_INLINE void nrf_usbd_epout_clear(uint8_t ep);
+
+/**
+ * @brief Function for enabling USB pullup
+ */
+__STATIC_INLINE void nrf_usbd_pullup_enable(void);
+
+/**
+ * @brief Function for disabling USB pullup
+ */
+__STATIC_INLINE void nrf_usbd_pullup_disable(void);
+
+/**
+ * @brief Function for returning current USB pullup state
+ *
+ * @retval true USB pullup is enabled
+ * @retval false USB pullup is disabled
+ */
+__STATIC_INLINE bool nrf_usbd_pullup_check(void);
+
+/**
+ * @brief Function for configuring the value to be forced on the bus on DRIVEDPDM task
+ *
+ * Selected state would be forced on the bus when @ref NRF_USBD_TASK_DRIVEDPDM is set.
+ * The state would be removed from the bus on @ref NRF_USBD_TASK_NODRIVEDPDM and
+ * the control would be returned to the USBD peripheral.
+ * @param val State to be set
+ */
+__STATIC_INLINE void nrf_usbd_dpdmvalue_set(nrf_usbd_dpdmvalue_t val);
+
+/**
+ * @brief Function for setting data toggle
+ *
+ * Configuration of current state of data toggling
+ * @param ep Endpoint number with the information about its direction
+ * @param op Operation to execute
+ */
+__STATIC_INLINE void nrf_usbd_dtoggle_set(uint8_t ep, nrf_usbd_dtoggle_t op);
+
+/**
+ * @brief Function for getting data toggle
+ *
+ * Get the current state of data toggling
+ * @param ep Endpoint number to return the information about current data toggling
+ * @retval NRF_USBD_DTOGGLE_DATA0 Data toggle is DATA0 on selected endpoint
+ * @retval NRF_USBD_DTOGGLE_DATA1 Data toggle is DATA1 on selected endpoint
+ */
+__STATIC_INLINE nrf_usbd_dtoggle_t nrf_usbd_dtoggle_get(uint8_t ep);
+
+/**
+ * @brief Function for checking if endpoint is enabled
+ *
+ * @param ep Endpoint id to check
+ *
+ * @retval true Endpoint is enabled
+ * @retval false Endpoint is disabled
+ */
+__STATIC_INLINE bool nrf_usbd_ep_enable_check(uint8_t ep);
+
+/**
+ * @brief Function for enabling selected endpoint
+ *
+ * Enabled endpoint responds for the tokens on the USB bus
+ *
+ * @param ep Endpoint id to enable
+ */
+__STATIC_INLINE void nrf_usbd_ep_enable(uint8_t ep);
+
+/**
+ * @brief Function for disabling selected endpoint
+ *
+ * Disabled endpoint does not respond for the tokens on the USB bus
+ *
+ * @param ep Endpoint id to disable
+ */
+__STATIC_INLINE void nrf_usbd_ep_disable(uint8_t ep);
+
+/**
+ * @brief Function for disabling all endpoints
+ *
+ * Auxiliary function to simply disable all aviable endpoints.
+ * It lefts only EP0 IN and OUT enabled.
+ */
+__STATIC_INLINE void nrf_usbd_ep_all_disable(void);
+
+/**
+ * @brief Function for stalling selected endpoint
+ *
+ * @param ep Endpoint identifier
+ * @note This function cannot be called on isochronous endpoint
+ */
+__STATIC_INLINE void nrf_usbd_ep_stall(uint8_t ep);
+
+/**
+ * @brief Function for unstalling selected endpoint
+ *
+ * @param ep Endpoint identifier
+ * @note This function cannot be called on isochronous endpoint
+ */
+__STATIC_INLINE void nrf_usbd_ep_unstall(uint8_t ep);
+
+/**
+ * @brief Function for configuration of isochronous buffer splitting
+ *
+ * Configure isochronous buffer splitting between IN and OUT endpoints.
+ *
+ * @param split Required configuration
+ */
+__STATIC_INLINE void nrf_usbd_isosplit_set(nrf_usbd_isosplit_t split);
+
+/**
+ * @brief Function for getting the isochronous buffer splitting configuration
+ *
+ * Get the current isochronous buffer splitting configuration.
+ *
+ * @return Current configuration
+ */
+__STATIC_INLINE nrf_usbd_isosplit_t nrf_usbd_isosplit_get(void);
+
+/**
+ * @brief Function for getting current frame counter
+ *
+ * @return Current frame counter
+ */
+__STATIC_INLINE uint32_t nrf_usbd_framecntr_get(void);
+
+/**
+ * @brief Function for entering into low power mode
+ *
+ * After this function is called the clock source from the USBD is disconnected internally.
+ * After this function is called most of the USBD registers cannot be accessed anymore.
+ *
+ * @sa nrf_usbd_lowpower_disable
+ * @sa nrf_usbd_lowpower_check
+ */
+__STATIC_INLINE void nrf_usbd_lowpower_enable(void);
+
+/**
+ * @brief Function for exiting from low power mode
+ *
+ * After this function is called the clock source for the USBD is connected internally.
+ * The @ref NRF_USBD_EVENTCAUSE_WUREQ_MASK event would be generated and
+ * then the USBD registers may be accessed.
+ *
+ * @sa nrf_usbd_lowpower_enable
+ * @sa nrf_usbd_lowpower_check
+ */
+__STATIC_INLINE void nrf_usbd_lowpower_disable(void);
+
+/**
+ * @brief Function for checking the state of the low power mode
+ *
+ * @retval true USBD is in low power mode
+ * @retval false USBD is not in low power mode
+ */
+__STATIC_INLINE bool nrf_usbd_lowpower_check(void);
+
+/**
+ * @brief Function for configuring EasyDMA channel
+ *
+ * Configures EasyDMA for the transfer.
+ *
+ * @param ep Endpoint identifier (with direction)
+ * @param ptr Pointer to the data
+ * @param maxcnt Number of bytes to transfer
+ */
+__STATIC_INLINE void nrf_usbd_ep_easydma_set(uint8_t ep, uint32_t ptr, uint32_t maxcnt);
+
+/**
+ * @brief Function for getting number of transferred bytes
+ *
+ * Get number of transferred bytes in the last transaction
+ *
+ * @param ep Endpoint identifier
+ *
+ * @return The content of the AMOUNT register
+ */
+__STATIC_INLINE uint32_t nrf_usbd_ep_amount_get(uint8_t ep);
+
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+void nrf_usbd_enable(void)
+{
+#ifdef NRF_FPGA_IMPLEMENTATION
+ *(volatile uint32_t *)0x400005F4 = 3;
+ __ISB();
+ __DSB();
+ *(volatile uint32_t *)0x400005F0 = 3;
+ __ISB();
+ __DSB();
+#endif
+
+ NRF_USBD->ENABLE = USBD_ENABLE_ENABLE_Enabled << USBD_ENABLE_ENABLE_Pos;
+ __ISB();
+ __DSB();
+}
+
+void nrf_usbd_disable(void)
+{
+ NRF_USBD->ENABLE = USBD_ENABLE_ENABLE_Disabled << USBD_ENABLE_ENABLE_Pos;
+ __ISB();
+ __DSB();
+}
+
+uint32_t nrf_usbd_eventcause_get(void)
+{
+ return NRF_USBD->EVENTCAUSE;
+}
+
+void nrf_usbd_eventcause_clear(uint32_t flags)
+{
+ NRF_USBD->EVENTCAUSE = flags;
+ __ISB();
+ __DSB();
+}
+
+uint32_t nrf_usbd_eventcause_get_and_clear(void)
+{
+ uint32_t ret;
+ ret = nrf_usbd_eventcause_get();
+ nrf_usbd_eventcause_clear(ret);
+ __ISB();
+ __DSB();
+ return ret;
+}
+
+uint32_t nrf_usbd_haltedep(uint8_t ep)
+{
+ uint8_t epnr = NRF_USBD_EP_NR_GET(ep);
+ if (NRF_USBD_EPIN_CHECK(ep))
+ {
+ NRFX_ASSERT(epnr < ARRAY_SIZE(NRF_USBD->HALTED.EPIN));
+ return NRF_USBD->HALTED.EPIN[epnr];
+ }
+ else
+ {
+ NRFX_ASSERT(epnr < ARRAY_SIZE(NRF_USBD->HALTED.EPOUT));
+ return NRF_USBD->HALTED.EPOUT[epnr];
+ }
+}
+
+bool nrf_usbd_ep_is_stall(uint8_t ep)
+{
+ if (NRF_USBD_EPISO_CHECK(ep))
+ return false;
+ return USBD_HALTED_EPOUT_GETSTATUS_Halted == nrf_usbd_haltedep(ep);
+}
+
+uint32_t nrf_usbd_epstatus_get(void)
+{
+ return NRF_USBD->EPSTATUS;
+}
+
+void nrf_usbd_epstatus_clear(uint32_t flags)
+{
+ NRF_USBD->EPSTATUS = flags;
+ __ISB();
+ __DSB();
+}
+
+uint32_t nrf_usbd_epstatus_get_and_clear(void)
+{
+ uint32_t ret;
+ ret = nrf_usbd_epstatus_get();
+ nrf_usbd_epstatus_clear(ret);
+ return ret;
+}
+
+uint32_t nrf_usbd_epdatastatus_get(void)
+{
+ return NRF_USBD->EPDATASTATUS;
+}
+
+void nrf_usbd_epdatastatus_clear(uint32_t flags)
+{
+ NRF_USBD->EPDATASTATUS = flags;
+ __ISB();
+ __DSB();
+}
+
+uint32_t nrf_usbd_epdatastatus_get_and_clear(void)
+{
+ uint32_t ret;
+ ret = nrf_usbd_epdatastatus_get();
+ nrf_usbd_epdatastatus_clear(ret);
+ __ISB();
+ __DSB();
+ return ret;
+}
+
+uint8_t nrf_usbd_setup_bmrequesttype_get(void)
+{
+ return (uint8_t)(NRF_USBD->BMREQUESTTYPE);
+}
+
+uint8_t nrf_usbd_setup_brequest_get(void)
+{
+ return (uint8_t)(NRF_USBD->BREQUEST);
+}
+
+uint16_t nrf_usbd_setup_wvalue_get(void)
+{
+ const uint16_t val = NRF_USBD->WVALUEL;
+ return (uint16_t)(val | ((NRF_USBD->WVALUEH) << 8));
+}
+
+uint16_t nrf_usbd_setup_windex_get(void)
+{
+ const uint16_t val = NRF_USBD->WINDEXL;
+ return (uint16_t)(val | ((NRF_USBD->WINDEXH) << 8));
+}
+
+uint16_t nrf_usbd_setup_wlength_get(void)
+{
+ const uint16_t val = NRF_USBD->WLENGTHL;
+ return (uint16_t)(val | ((NRF_USBD->WLENGTHH) << 8));
+}
+
+size_t nrf_usbd_epout_size_get(uint8_t ep)
+{
+ NRFX_ASSERT(NRF_USBD_EP_VALIDATE(ep));
+ NRFX_ASSERT(NRF_USBD_EPOUT_CHECK(ep));
+ if (NRF_USBD_EPISO_CHECK(ep))
+ {
+ size_t size_isoout = NRF_USBD->SIZE.ISOOUT;
+ if ((size_isoout & USBD_SIZE_ISOOUT_ZERO_Msk) == (USBD_SIZE_ISOOUT_ZERO_ZeroData << USBD_SIZE_ISOOUT_ZERO_Pos))
+ {
+ size_isoout = 0;
+ }
+ return size_isoout;
+ }
+
+ NRFX_ASSERT(NRF_USBD_EP_NR_GET(ep) < ARRAY_SIZE(NRF_USBD->SIZE.EPOUT));
+ return NRF_USBD->SIZE.EPOUT[NRF_USBD_EP_NR_GET(ep)];
+}
+
+size_t nrf_usbd_episoout_size_get(uint8_t ep)
+{
+ NRFX_ASSERT(NRF_USBD_EP_VALIDATE(ep));
+ NRFX_ASSERT(NRF_USBD_EPOUT_CHECK(ep));
+ NRFX_ASSERT(NRF_USBD_EPISO_CHECK(ep));
+
+ size_t size_isoout = NRF_USBD->SIZE.ISOOUT;
+ if (size_isoout == 0)
+ {
+ size_isoout = NRF_USBD_EPISOOUT_NO_DATA;
+ }
+ else if ((size_isoout & USBD_SIZE_ISOOUT_ZERO_Msk) == (USBD_SIZE_ISOOUT_ZERO_ZeroData << USBD_SIZE_ISOOUT_ZERO_Pos))
+ {
+ size_isoout = 0;
+ }
+ return size_isoout;
+}
+
+void nrf_usbd_epout_clear(uint8_t ep)
+{
+ NRFX_ASSERT(NRF_USBD_EPOUT_CHECK(ep) && (NRF_USBD_EP_NR_GET(ep) < ARRAY_SIZE(NRF_USBD->SIZE.EPOUT)));
+ NRF_USBD->SIZE.EPOUT[NRF_USBD_EP_NR_GET(ep)] = 0;
+ __ISB();
+ __DSB();
+}
+
+void nrf_usbd_pullup_enable(void)
+{
+ NRF_USBD->USBPULLUP = USBD_USBPULLUP_CONNECT_Enabled << USBD_USBPULLUP_CONNECT_Pos;
+ __ISB();
+ __DSB();
+}
+
+void nrf_usbd_pullup_disable(void)
+{
+ NRF_USBD->USBPULLUP = USBD_USBPULLUP_CONNECT_Disabled << USBD_USBPULLUP_CONNECT_Pos;
+ __ISB();
+ __DSB();
+}
+
+bool nrf_usbd_pullup_check(void)
+{
+ return NRF_USBD->USBPULLUP == (USBD_USBPULLUP_CONNECT_Enabled << USBD_USBPULLUP_CONNECT_Pos);
+}
+
+void nrf_usbd_dpdmvalue_set(nrf_usbd_dpdmvalue_t val)
+{
+ NRF_USBD->DPDMVALUE = ((uint32_t)val) << USBD_DPDMVALUE_STATE_Pos;
+}
+
+void nrf_usbd_dtoggle_set(uint8_t ep, nrf_usbd_dtoggle_t op)
+{
+ NRFX_ASSERT(NRF_USBD_EP_VALIDATE(ep));
+ NRFX_ASSERT(!NRF_USBD_EPISO_CHECK(ep));
+ NRF_USBD->DTOGGLE = ep | (NRF_USBD_DTOGGLE_NOP << USBD_DTOGGLE_VALUE_Pos);
+ __DSB();
+ NRF_USBD->DTOGGLE = ep | (op << USBD_DTOGGLE_VALUE_Pos);
+ __ISB();
+ __DSB();
+}
+
+nrf_usbd_dtoggle_t nrf_usbd_dtoggle_get(uint8_t ep)
+{
+ uint32_t retval;
+ /* Select the endpoint to read */
+ NRF_USBD->DTOGGLE = ep | (NRF_USBD_DTOGGLE_NOP << USBD_DTOGGLE_VALUE_Pos);
+ retval = ((NRF_USBD->DTOGGLE) & USBD_DTOGGLE_VALUE_Msk) >> USBD_DTOGGLE_VALUE_Pos;
+ return (nrf_usbd_dtoggle_t)retval;
+}
+
+bool nrf_usbd_ep_enable_check(uint8_t ep)
+{
+ NRFX_ASSERT(NRF_USBD_EP_VALIDATE(ep));
+ uint8_t epnr = NRF_USBD_EP_NR_GET(ep);
+
+ if (NRF_USBD_EPIN_CHECK(ep))
+ {
+ return 0 != (NRF_USBD->EPINEN & (1UL << epnr));
+ }
+ else
+ {
+ return 0 != (NRF_USBD->EPOUTEN & (1UL << epnr));
+ }
+}
+
+void nrf_usbd_ep_enable(uint8_t ep)
+{
+ NRFX_ASSERT(NRF_USBD_EP_VALIDATE(ep));
+ uint8_t epnr = NRF_USBD_EP_NR_GET(ep);
+
+ if (NRF_USBD_EPIN_CHECK(ep))
+ {
+ NRF_USBD->EPINEN |= 1UL << epnr;
+ }
+ else
+ {
+ NRF_USBD->EPOUTEN |= 1UL << epnr;
+ }
+ __ISB();
+ __DSB();
+}
+
+void nrf_usbd_ep_disable(uint8_t ep)
+{
+ NRFX_ASSERT(NRF_USBD_EP_VALIDATE(ep));
+ uint8_t epnr = NRF_USBD_EP_NR_GET(ep);
+
+ if (NRF_USBD_EPIN_CHECK(ep))
+ {
+ NRF_USBD->EPINEN &= ~(1UL << epnr);
+ }
+ else
+ {
+ NRF_USBD->EPOUTEN &= ~(1UL << epnr);
+ }
+ __ISB();
+ __DSB();
+}
+
+void nrf_usbd_ep_all_disable(void)
+{
+ NRF_USBD->EPINEN = USBD_EPINEN_IN0_Enable << USBD_EPINEN_IN0_Pos;
+ NRF_USBD->EPOUTEN = USBD_EPOUTEN_OUT0_Enable << USBD_EPOUTEN_OUT0_Pos;
+ __ISB();
+ __DSB();
+}
+
+void nrf_usbd_ep_stall(uint8_t ep)
+{
+ NRFX_ASSERT(!NRF_USBD_EPISO_CHECK(ep));
+ NRF_USBD->EPSTALL = (USBD_EPSTALL_STALL_Stall << USBD_EPSTALL_STALL_Pos) | ep;
+ __ISB();
+ __DSB();
+}
+
+void nrf_usbd_ep_unstall(uint8_t ep)
+{
+ NRFX_ASSERT(!NRF_USBD_EPISO_CHECK(ep));
+ NRF_USBD->EPSTALL = (USBD_EPSTALL_STALL_UnStall << USBD_EPSTALL_STALL_Pos) | ep;
+ __ISB();
+ __DSB();
+}
+
+void nrf_usbd_isosplit_set(nrf_usbd_isosplit_t split)
+{
+ NRF_USBD->ISOSPLIT = split << USBD_ISOSPLIT_SPLIT_Pos;
+}
+
+nrf_usbd_isosplit_t nrf_usbd_isosplit_get(void)
+{
+ return (nrf_usbd_isosplit_t)
+ (((NRF_USBD->ISOSPLIT) & USBD_ISOSPLIT_SPLIT_Msk) >> USBD_ISOSPLIT_SPLIT_Pos);
+}
+
+uint32_t nrf_usbd_framecntr_get(void)
+{
+ return NRF_USBD->FRAMECNTR;
+}
+
+void nrf_usbd_lowpower_enable(void)
+{
+ NRF_USBD->LOWPOWER = USBD_LOWPOWER_LOWPOWER_LowPower << USBD_LOWPOWER_LOWPOWER_Pos;
+}
+
+void nrf_usbd_lowpower_disable(void)
+{
+ NRF_USBD->LOWPOWER = USBD_LOWPOWER_LOWPOWER_ForceNormal << USBD_LOWPOWER_LOWPOWER_Pos;
+}
+
+bool nrf_usbd_lowpower_check(void)
+{
+ return (NRF_USBD->LOWPOWER != (USBD_LOWPOWER_LOWPOWER_ForceNormal << USBD_LOWPOWER_LOWPOWER_Pos));
+}
+
+
+void nrf_usbd_ep_easydma_set(uint8_t ep, uint32_t ptr, uint32_t maxcnt)
+{
+ if (NRF_USBD_EPIN_CHECK(ep))
+ {
+ if (NRF_USBD_EPISO_CHECK(ep))
+ {
+ NRF_USBD->ISOIN.PTR = ptr;
+ NRF_USBD->ISOIN.MAXCNT = maxcnt;
+ }
+ else
+ {
+ uint8_t epnr = NRF_USBD_EP_NR_GET(ep);
+ NRFX_ASSERT(epnr < ARRAY_SIZE(NRF_USBD->EPIN));
+ NRF_USBD->EPIN[epnr].PTR = ptr;
+ NRF_USBD->EPIN[epnr].MAXCNT = maxcnt;
+ }
+ }
+ else
+ {
+ if (NRF_USBD_EPISO_CHECK(ep))
+ {
+ NRF_USBD->ISOOUT.PTR = ptr;
+ NRF_USBD->ISOOUT.MAXCNT = maxcnt;
+ }
+ else
+ {
+ uint8_t epnr = NRF_USBD_EP_NR_GET(ep);
+ NRFX_ASSERT(epnr < ARRAY_SIZE(NRF_USBD->EPOUT));
+ NRF_USBD->EPOUT[epnr].PTR = ptr;
+ NRF_USBD->EPOUT[epnr].MAXCNT = maxcnt;
+ }
+ }
+}
+
+uint32_t nrf_usbd_ep_amount_get(uint8_t ep)
+{
+ uint32_t ret;
+
+ if (NRF_USBD_EPIN_CHECK(ep))
+ {
+ if (NRF_USBD_EPISO_CHECK(ep))
+ {
+ ret = NRF_USBD->ISOIN.AMOUNT;
+ }
+ else
+ {
+ uint8_t epnr = NRF_USBD_EP_NR_GET(ep);
+ NRFX_ASSERT(epnr < ARRAY_SIZE(NRF_USBD->EPOUT));
+ ret = NRF_USBD->EPIN[epnr].AMOUNT;
+ }
+ }
+ else
+ {
+ if (NRF_USBD_EPISO_CHECK(ep))
+ {
+ ret = NRF_USBD->ISOOUT.AMOUNT;
+ }
+ else
+ {
+ uint8_t epnr = NRF_USBD_EP_NR_GET(ep);
+ NRFX_ASSERT(epnr < ARRAY_SIZE(NRF_USBD->EPOUT));
+ ret = NRF_USBD->EPOUT[epnr].AMOUNT;
+ }
+ }
+
+ return ret;
+}
+
+#endif /* SUPPRESS_INLINE_IMPLEMENTATION */
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* NRF_USBD_H__ */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_wdt.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_wdt.h
new file mode 100644
index 0000000..44157b3
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/hal/nrf_wdt.h
@@ -0,0 +1,333 @@
+/**
+ * Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRF_WDT_H__
+#define NRF_WDT_H__
+
+#include <nrfx.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrf_wdt_hal WDT HAL
+ * @{
+ * @ingroup nrf_wdt
+ * @brief Hardware access layer for managing the Watchdog Timer (WDT) peripheral.
+ */
+
+#define NRF_WDT_CHANNEL_NUMBER 0x8UL
+#define NRF_WDT_RR_VALUE 0x6E524635UL /* Fixed value, shouldn't be modified.*/
+
+#define NRF_WDT_TASK_SET 1UL
+#define NRF_WDT_EVENT_CLEAR 0UL
+
+/**
+ * @enum nrf_wdt_task_t
+ * @brief WDT tasks.
+ */
+typedef enum
+{
+ /*lint -save -e30 -esym(628,__INTADDR__)*/
+ NRF_WDT_TASK_START = offsetof(NRF_WDT_Type, TASKS_START), /**< Task for starting WDT. */
+ /*lint -restore*/
+} nrf_wdt_task_t;
+
+/**
+ * @enum nrf_wdt_event_t
+ * @brief WDT events.
+ */
+typedef enum
+{
+ /*lint -save -e30*/
+ NRF_WDT_EVENT_TIMEOUT = offsetof(NRF_WDT_Type, EVENTS_TIMEOUT), /**< Event from WDT time-out. */
+ /*lint -restore*/
+} nrf_wdt_event_t;
+
+/**
+ * @enum nrf_wdt_behaviour_t
+ * @brief WDT behavior in CPU SLEEP or HALT mode.
+ */
+typedef enum
+{
+ NRF_WDT_BEHAVIOUR_RUN_SLEEP = WDT_CONFIG_SLEEP_Msk, /**< WDT will run when CPU is in SLEEP mode. */
+ NRF_WDT_BEHAVIOUR_RUN_HALT = WDT_CONFIG_HALT_Msk, /**< WDT will run when CPU is in HALT mode. */
+ NRF_WDT_BEHAVIOUR_RUN_SLEEP_HALT = WDT_CONFIG_SLEEP_Msk | WDT_CONFIG_HALT_Msk, /**< WDT will run when CPU is in SLEEP or HALT mode. */
+ NRF_WDT_BEHAVIOUR_PAUSE_SLEEP_HALT = 0, /**< WDT will be paused when CPU is in SLEEP or HALT mode. */
+} nrf_wdt_behaviour_t;
+
+/**
+ * @enum nrf_wdt_rr_register_t
+ * @brief WDT reload request registers.
+ */
+typedef enum
+{
+ NRF_WDT_RR0 = 0, /**< Reload request register 0. */
+ NRF_WDT_RR1, /**< Reload request register 1. */
+ NRF_WDT_RR2, /**< Reload request register 2. */
+ NRF_WDT_RR3, /**< Reload request register 3. */
+ NRF_WDT_RR4, /**< Reload request register 4. */
+ NRF_WDT_RR5, /**< Reload request register 5. */
+ NRF_WDT_RR6, /**< Reload request register 6. */
+ NRF_WDT_RR7 /**< Reload request register 7. */
+} nrf_wdt_rr_register_t;
+
+/**
+ * @enum nrf_wdt_int_mask_t
+ * @brief WDT interrupts.
+ */
+typedef enum
+{
+ NRF_WDT_INT_TIMEOUT_MASK = WDT_INTENSET_TIMEOUT_Msk, /**< WDT interrupt from time-out event. */
+} nrf_wdt_int_mask_t;
+
+/**
+ * @brief Function for configuring the watchdog behavior when the CPU is sleeping or halted.
+ *
+ * @param behaviour Watchdog behavior when CPU is in SLEEP or HALT mode.
+ */
+__STATIC_INLINE void nrf_wdt_behaviour_set(nrf_wdt_behaviour_t behaviour)
+{
+ NRF_WDT->CONFIG = behaviour;
+}
+
+
+/**
+ * @brief Function for starting the watchdog.
+ *
+ * @param[in] task Task.
+ */
+__STATIC_INLINE void nrf_wdt_task_trigger(nrf_wdt_task_t task)
+{
+ *((volatile uint32_t *)((uint8_t *)NRF_WDT + task)) = NRF_WDT_TASK_SET;
+}
+
+
+/**
+ * @brief Function for clearing the WDT event.
+ *
+ * @param[in] event Event.
+ */
+__STATIC_INLINE void nrf_wdt_event_clear(nrf_wdt_event_t event)
+{
+ *((volatile uint32_t *)((uint8_t *)NRF_WDT + (uint32_t)event)) = NRF_WDT_EVENT_CLEAR;
+#if __CORTEX_M == 0x04
+ volatile uint32_t dummy = *((volatile uint32_t *)((uint8_t *)NRF_WDT + (uint32_t)event));
+ (void)dummy;
+#endif
+}
+
+
+/**
+ * @brief Function for retrieving the state of the WDT event.
+ *
+ * @param[in] event Event.
+ *
+ * @retval true If the event is set.
+ * @retval false If the event is not set.
+ */
+__STATIC_INLINE bool nrf_wdt_event_check(nrf_wdt_event_t event)
+{
+ return (bool)*((volatile uint32_t *)((uint8_t *)NRF_WDT + event));
+}
+
+
+/**
+ * @brief Function for enabling a specific interrupt.
+ *
+ * @param[in] int_mask Interrupt.
+ */
+__STATIC_INLINE void nrf_wdt_int_enable(uint32_t int_mask)
+{
+ NRF_WDT->INTENSET = int_mask;
+}
+
+
+/**
+ * @brief Function for retrieving the state of given interrupt.
+ *
+ * @param[in] int_mask Interrupt.
+ *
+ * @retval true Interrupt is enabled.
+ * @retval false Interrupt is not enabled.
+ */
+__STATIC_INLINE bool nrf_wdt_int_enable_check(uint32_t int_mask)
+{
+ return (bool)(NRF_WDT->INTENSET & int_mask);
+}
+
+
+/**
+ * @brief Function for disabling a specific interrupt.
+ *
+ * @param[in] int_mask Interrupt.
+ */
+__STATIC_INLINE void nrf_wdt_int_disable(uint32_t int_mask)
+{
+ NRF_WDT->INTENCLR = int_mask;
+}
+
+
+/**
+ * @brief Function for returning the address of a specific WDT task register.
+ *
+ * @param[in] task Task.
+ */
+__STATIC_INLINE uint32_t nrf_wdt_task_address_get(nrf_wdt_task_t task)
+{
+ return ((uint32_t)NRF_WDT + task);
+}
+
+
+/**
+ * @brief Function for returning the address of a specific WDT event register.
+ *
+ * @param[in] event Event.
+ *
+ * @retval address of requested event register
+ */
+__STATIC_INLINE uint32_t nrf_wdt_event_address_get(nrf_wdt_event_t event)
+{
+ return ((uint32_t)NRF_WDT + event);
+}
+
+
+/**
+ * @brief Function for retrieving the watchdog status.
+ *
+ * @retval true If the watchdog is started.
+ * @retval false If the watchdog is not started.
+ */
+__STATIC_INLINE bool nrf_wdt_started(void)
+{
+ return (bool)(NRF_WDT->RUNSTATUS);
+}
+
+
+/**
+ * @brief Function for retrieving the watchdog reload request status.
+ *
+ * @param[in] rr_register Reload request register to check.
+ *
+ * @retval true If a reload request is running.
+ * @retval false If no reload request is running.
+ */
+__STATIC_INLINE bool nrf_wdt_request_status(nrf_wdt_rr_register_t rr_register)
+{
+ return (bool)(((NRF_WDT->REQSTATUS) >> rr_register) & 0x1UL);
+}
+
+
+/**
+ * @brief Function for setting the watchdog reload value.
+ *
+ * @param[in] reload_value Watchdog counter initial value.
+ */
+__STATIC_INLINE void nrf_wdt_reload_value_set(uint32_t reload_value)
+{
+ NRF_WDT->CRV = reload_value;
+}
+
+
+/**
+ * @brief Function for retrieving the watchdog reload value.
+ *
+ * @retval Reload value.
+ */
+__STATIC_INLINE uint32_t nrf_wdt_reload_value_get(void)
+{
+ return (uint32_t)NRF_WDT->CRV;
+}
+
+
+/**
+ * @brief Function for enabling a specific reload request register.
+ *
+ * @param[in] rr_register Reload request register to enable.
+ */
+__STATIC_INLINE void nrf_wdt_reload_request_enable(nrf_wdt_rr_register_t rr_register)
+{
+ NRF_WDT->RREN |= 0x1UL << rr_register;
+}
+
+
+/**
+ * @brief Function for disabling a specific reload request register.
+ *
+ * @param[in] rr_register Reload request register to disable.
+ */
+__STATIC_INLINE void nrf_wdt_reload_request_disable(nrf_wdt_rr_register_t rr_register)
+{
+ NRF_WDT->RREN &= ~(0x1UL << rr_register);
+}
+
+
+/**
+ * @brief Function for retrieving the status of a specific reload request register.
+ *
+ * @param[in] rr_register Reload request register to check.
+ *
+ * @retval true If the reload request register is enabled.
+ * @retval false If the reload request register is not enabled.
+ */
+__STATIC_INLINE bool nrf_wdt_reload_request_is_enabled(nrf_wdt_rr_register_t rr_register)
+{
+ return (bool)(NRF_WDT->RREN & (0x1UL << rr_register));
+}
+
+
+/**
+ * @brief Function for setting a specific reload request register.
+ *
+ * @param[in] rr_register Reload request register to set.
+ */
+__STATIC_INLINE void nrf_wdt_reload_request_set(nrf_wdt_rr_register_t rr_register)
+{
+ NRF_WDT->RR[rr_register] = NRF_WDT_RR_VALUE;
+}
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf51.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf51.s
new file mode 100644
index 0000000..8b24d63
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf51.s
@@ -0,0 +1,259 @@
+; Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+;
+; SPDX-License-Identifier: Apache-2.0
+;
+; Licensed under the Apache License, Version 2.0 (the License); you may
+; not use this file except in compliance with the License.
+; You may obtain a copy of the License at
+;
+; www.apache.org/licenses/LICENSE-2.0
+;
+; Unless required by applicable law or agreed to in writing, software
+; distributed under the License is distributed on an AS IS BASIS, WITHOUT
+; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+; See the License for the specific language governing permissions and
+; limitations under the License.
+;
+; NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+ IF :DEF: __STARTUP_CONFIG
+#include "startup_config.h"
+#ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
+#define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+#endif
+ ENDIF
+
+ IF :DEF: __STARTUP_CONFIG
+Stack_Size EQU __STARTUP_CONFIG_STACK_SIZE
+ ELIF :DEF: __STACK_SIZE
+Stack_Size EQU __STACK_SIZE
+ ELSE
+Stack_Size EQU 2048
+ ENDIF
+
+ IF :DEF: __STARTUP_CONFIG
+Stack_Align EQU __STARTUP_CONFIG_STACK_ALIGNEMENT
+ ELSE
+Stack_Align EQU 3
+ ENDIF
+
+ AREA STACK, NOINIT, READWRITE, ALIGN=Stack_Align
+Stack_Mem SPACE Stack_Size
+__initial_sp
+
+ IF :DEF: __STARTUP_CONFIG
+Heap_Size EQU __STARTUP_CONFIG_HEAP_SIZE
+ ELIF :DEF: __HEAP_SIZE
+Heap_Size EQU __HEAP_SIZE
+ ELSE
+Heap_Size EQU 2048
+ ENDIF
+
+ AREA HEAP, NOINIT, READWRITE, ALIGN=3
+__heap_base
+Heap_Mem SPACE Heap_Size
+__heap_limit
+
+ PRESERVE8
+ THUMB
+
+; Vector Table Mapped to Address 0 at Reset
+
+ AREA RESET, DATA, READONLY
+ EXPORT __Vectors
+ EXPORT __Vectors_End
+ EXPORT __Vectors_Size
+
+__Vectors DCD __initial_sp ; Top of Stack
+ DCD Reset_Handler
+ DCD NMI_Handler
+ DCD HardFault_Handler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD SVC_Handler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD PendSV_Handler
+ DCD SysTick_Handler
+
+ ; External Interrupts
+ DCD POWER_CLOCK_IRQHandler
+ DCD RADIO_IRQHandler
+ DCD UART0_IRQHandler
+ DCD SPI0_TWI0_IRQHandler
+ DCD SPI1_TWI1_IRQHandler
+ DCD 0 ; Reserved
+ DCD GPIOTE_IRQHandler
+ DCD ADC_IRQHandler
+ DCD TIMER0_IRQHandler
+ DCD TIMER1_IRQHandler
+ DCD TIMER2_IRQHandler
+ DCD RTC0_IRQHandler
+ DCD TEMP_IRQHandler
+ DCD RNG_IRQHandler
+ DCD ECB_IRQHandler
+ DCD CCM_AAR_IRQHandler
+ DCD WDT_IRQHandler
+ DCD RTC1_IRQHandler
+ DCD QDEC_IRQHandler
+ DCD LPCOMP_IRQHandler
+ DCD SWI0_IRQHandler
+ DCD SWI1_IRQHandler
+ DCD SWI2_IRQHandler
+ DCD SWI3_IRQHandler
+ DCD SWI4_IRQHandler
+ DCD SWI5_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+
+__Vectors_End
+
+__Vectors_Size EQU __Vectors_End - __Vectors
+
+ AREA |.text|, CODE, READONLY
+
+; Reset Handler
+
+NRF_POWER_RAMON_ADDRESS EQU 0x40000524 ; NRF_POWER->RAMON address
+NRF_POWER_RAMONB_ADDRESS EQU 0x40000554 ; NRF_POWER->RAMONB address
+NRF_POWER_RAMONx_RAMxON_ONMODE_Msk EQU 0x3 ; All RAM blocks on in onmode bit mask
+
+Reset_Handler PROC
+ EXPORT Reset_Handler [WEAK]
+ IMPORT SystemInit
+ IMPORT __main
+
+ MOVS R1, #NRF_POWER_RAMONx_RAMxON_ONMODE_Msk
+
+ LDR R0, =NRF_POWER_RAMON_ADDRESS
+ LDR R2, [R0]
+ ORRS R2, R2, R1
+ STR R2, [R0]
+
+ LDR R0, =NRF_POWER_RAMONB_ADDRESS
+ LDR R2, [R0]
+ ORRS R2, R2, R1
+ STR R2, [R0]
+
+ LDR R0, =SystemInit
+ BLX R0
+ LDR R0, =__main
+ BX R0
+ ENDP
+
+; Dummy Exception Handlers (infinite loops which can be modified)
+
+NMI_Handler PROC
+ EXPORT NMI_Handler [WEAK]
+ B .
+ ENDP
+HardFault_Handler\
+ PROC
+ EXPORT HardFault_Handler [WEAK]
+ B .
+ ENDP
+SVC_Handler PROC
+ EXPORT SVC_Handler [WEAK]
+ B .
+ ENDP
+PendSV_Handler PROC
+ EXPORT PendSV_Handler [WEAK]
+ B .
+ ENDP
+SysTick_Handler PROC
+ EXPORT SysTick_Handler [WEAK]
+ B .
+ ENDP
+
+Default_Handler PROC
+
+ EXPORT POWER_CLOCK_IRQHandler [WEAK]
+ EXPORT RADIO_IRQHandler [WEAK]
+ EXPORT UART0_IRQHandler [WEAK]
+ EXPORT SPI0_TWI0_IRQHandler [WEAK]
+ EXPORT SPI1_TWI1_IRQHandler [WEAK]
+ EXPORT GPIOTE_IRQHandler [WEAK]
+ EXPORT ADC_IRQHandler [WEAK]
+ EXPORT TIMER0_IRQHandler [WEAK]
+ EXPORT TIMER1_IRQHandler [WEAK]
+ EXPORT TIMER2_IRQHandler [WEAK]
+ EXPORT RTC0_IRQHandler [WEAK]
+ EXPORT TEMP_IRQHandler [WEAK]
+ EXPORT RNG_IRQHandler [WEAK]
+ EXPORT ECB_IRQHandler [WEAK]
+ EXPORT CCM_AAR_IRQHandler [WEAK]
+ EXPORT WDT_IRQHandler [WEAK]
+ EXPORT RTC1_IRQHandler [WEAK]
+ EXPORT QDEC_IRQHandler [WEAK]
+ EXPORT LPCOMP_IRQHandler [WEAK]
+ EXPORT SWI0_IRQHandler [WEAK]
+ EXPORT SWI1_IRQHandler [WEAK]
+ EXPORT SWI2_IRQHandler [WEAK]
+ EXPORT SWI3_IRQHandler [WEAK]
+ EXPORT SWI4_IRQHandler [WEAK]
+ EXPORT SWI5_IRQHandler [WEAK]
+POWER_CLOCK_IRQHandler
+RADIO_IRQHandler
+UART0_IRQHandler
+SPI0_TWI0_IRQHandler
+SPI1_TWI1_IRQHandler
+GPIOTE_IRQHandler
+ADC_IRQHandler
+TIMER0_IRQHandler
+TIMER1_IRQHandler
+TIMER2_IRQHandler
+RTC0_IRQHandler
+TEMP_IRQHandler
+RNG_IRQHandler
+ECB_IRQHandler
+CCM_AAR_IRQHandler
+WDT_IRQHandler
+RTC1_IRQHandler
+QDEC_IRQHandler
+LPCOMP_IRQHandler
+SWI0_IRQHandler
+SWI1_IRQHandler
+SWI2_IRQHandler
+SWI3_IRQHandler
+SWI4_IRQHandler
+SWI5_IRQHandler
+ B .
+ ENDP
+ ALIGN
+
+; User Initial Stack & Heap
+
+ IF :DEF:__MICROLIB
+
+ EXPORT __initial_sp
+ EXPORT __heap_base
+ EXPORT __heap_limit
+
+ ELSE
+
+ IMPORT __use_two_region_memory
+ EXPORT __user_initial_stackheap
+
+__user_initial_stackheap PROC
+
+ LDR R0, = Heap_Mem
+ LDR R1, = (Stack_Mem + Stack_Size)
+ LDR R2, = (Heap_Mem + Heap_Size)
+ LDR R3, = Stack_Mem
+ BX LR
+ ENDP
+
+ ALIGN
+
+ ENDIF
+
+ END
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf52.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf52.s
new file mode 100644
index 0000000..9e06ea9
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf52.s
@@ -0,0 +1,369 @@
+; Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+;
+; SPDX-License-Identifier: Apache-2.0
+;
+; Licensed under the Apache License, Version 2.0 (the License); you may
+; not use this file except in compliance with the License.
+; You may obtain a copy of the License at
+;
+; www.apache.org/licenses/LICENSE-2.0
+;
+; Unless required by applicable law or agreed to in writing, software
+; distributed under the License is distributed on an AS IS BASIS, WITHOUT
+; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+; See the License for the specific language governing permissions and
+; limitations under the License.
+;
+; NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+ IF :DEF: __STARTUP_CONFIG
+#include "startup_config.h"
+#ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
+#define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+#endif
+ ENDIF
+
+ IF :DEF: __STARTUP_CONFIG
+Stack_Size EQU __STARTUP_CONFIG_STACK_SIZE
+ ELIF :DEF: __STACK_SIZE
+Stack_Size EQU __STACK_SIZE
+ ELSE
+Stack_Size EQU 8192
+ ENDIF
+
+ IF :DEF: __STARTUP_CONFIG
+Stack_Align EQU __STARTUP_CONFIG_STACK_ALIGNEMENT
+ ELSE
+Stack_Align EQU 3
+ ENDIF
+
+ AREA STACK, NOINIT, READWRITE, ALIGN=Stack_Align
+Stack_Mem SPACE Stack_Size
+__initial_sp
+
+ IF :DEF: __STARTUP_CONFIG
+Heap_Size EQU __STARTUP_CONFIG_HEAP_SIZE
+ ELIF :DEF: __HEAP_SIZE
+Heap_Size EQU __HEAP_SIZE
+ ELSE
+Heap_Size EQU 8192
+ ENDIF
+
+ AREA HEAP, NOINIT, READWRITE, ALIGN=3
+__heap_base
+Heap_Mem SPACE Heap_Size
+__heap_limit
+
+ PRESERVE8
+ THUMB
+
+; Vector Table Mapped to Address 0 at Reset
+
+ AREA RESET, DATA, READONLY
+ EXPORT __Vectors
+ EXPORT __Vectors_End
+ EXPORT __Vectors_Size
+
+__Vectors DCD __initial_sp ; Top of Stack
+ DCD Reset_Handler
+ DCD NMI_Handler
+ DCD HardFault_Handler
+ DCD MemoryManagement_Handler
+ DCD BusFault_Handler
+ DCD UsageFault_Handler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD SVC_Handler
+ DCD DebugMon_Handler
+ DCD 0 ; Reserved
+ DCD PendSV_Handler
+ DCD SysTick_Handler
+
+ ; External Interrupts
+ DCD POWER_CLOCK_IRQHandler
+ DCD RADIO_IRQHandler
+ DCD UARTE0_UART0_IRQHandler
+ DCD SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ DCD SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ DCD NFCT_IRQHandler
+ DCD GPIOTE_IRQHandler
+ DCD SAADC_IRQHandler
+ DCD TIMER0_IRQHandler
+ DCD TIMER1_IRQHandler
+ DCD TIMER2_IRQHandler
+ DCD RTC0_IRQHandler
+ DCD TEMP_IRQHandler
+ DCD RNG_IRQHandler
+ DCD ECB_IRQHandler
+ DCD CCM_AAR_IRQHandler
+ DCD WDT_IRQHandler
+ DCD RTC1_IRQHandler
+ DCD QDEC_IRQHandler
+ DCD COMP_LPCOMP_IRQHandler
+ DCD SWI0_EGU0_IRQHandler
+ DCD SWI1_EGU1_IRQHandler
+ DCD SWI2_EGU2_IRQHandler
+ DCD SWI3_EGU3_IRQHandler
+ DCD SWI4_EGU4_IRQHandler
+ DCD SWI5_EGU5_IRQHandler
+ DCD TIMER3_IRQHandler
+ DCD TIMER4_IRQHandler
+ DCD PWM0_IRQHandler
+ DCD PDM_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD MWU_IRQHandler
+ DCD PWM1_IRQHandler
+ DCD PWM2_IRQHandler
+ DCD SPIM2_SPIS2_SPI2_IRQHandler
+ DCD RTC2_IRQHandler
+ DCD I2S_IRQHandler
+ DCD FPU_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+
+__Vectors_End
+
+__Vectors_Size EQU __Vectors_End - __Vectors
+
+ AREA |.text|, CODE, READONLY
+
+; Reset Handler
+
+
+Reset_Handler PROC
+ EXPORT Reset_Handler [WEAK]
+ IMPORT SystemInit
+ IMPORT __main
+
+
+ LDR R0, =SystemInit
+ BLX R0
+ LDR R0, =__main
+ BX R0
+ ENDP
+
+; Dummy Exception Handlers (infinite loops which can be modified)
+
+NMI_Handler PROC
+ EXPORT NMI_Handler [WEAK]
+ B .
+ ENDP
+HardFault_Handler\
+ PROC
+ EXPORT HardFault_Handler [WEAK]
+ B .
+ ENDP
+MemoryManagement_Handler\
+ PROC
+ EXPORT MemoryManagement_Handler [WEAK]
+ B .
+ ENDP
+BusFault_Handler\
+ PROC
+ EXPORT BusFault_Handler [WEAK]
+ B .
+ ENDP
+UsageFault_Handler\
+ PROC
+ EXPORT UsageFault_Handler [WEAK]
+ B .
+ ENDP
+SVC_Handler PROC
+ EXPORT SVC_Handler [WEAK]
+ B .
+ ENDP
+DebugMon_Handler\
+ PROC
+ EXPORT DebugMon_Handler [WEAK]
+ B .
+ ENDP
+PendSV_Handler PROC
+ EXPORT PendSV_Handler [WEAK]
+ B .
+ ENDP
+SysTick_Handler PROC
+ EXPORT SysTick_Handler [WEAK]
+ B .
+ ENDP
+
+Default_Handler PROC
+
+ EXPORT POWER_CLOCK_IRQHandler [WEAK]
+ EXPORT RADIO_IRQHandler [WEAK]
+ EXPORT UARTE0_UART0_IRQHandler [WEAK]
+ EXPORT SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler [WEAK]
+ EXPORT SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler [WEAK]
+ EXPORT NFCT_IRQHandler [WEAK]
+ EXPORT GPIOTE_IRQHandler [WEAK]
+ EXPORT SAADC_IRQHandler [WEAK]
+ EXPORT TIMER0_IRQHandler [WEAK]
+ EXPORT TIMER1_IRQHandler [WEAK]
+ EXPORT TIMER2_IRQHandler [WEAK]
+ EXPORT RTC0_IRQHandler [WEAK]
+ EXPORT TEMP_IRQHandler [WEAK]
+ EXPORT RNG_IRQHandler [WEAK]
+ EXPORT ECB_IRQHandler [WEAK]
+ EXPORT CCM_AAR_IRQHandler [WEAK]
+ EXPORT WDT_IRQHandler [WEAK]
+ EXPORT RTC1_IRQHandler [WEAK]
+ EXPORT QDEC_IRQHandler [WEAK]
+ EXPORT COMP_LPCOMP_IRQHandler [WEAK]
+ EXPORT SWI0_EGU0_IRQHandler [WEAK]
+ EXPORT SWI1_EGU1_IRQHandler [WEAK]
+ EXPORT SWI2_EGU2_IRQHandler [WEAK]
+ EXPORT SWI3_EGU3_IRQHandler [WEAK]
+ EXPORT SWI4_EGU4_IRQHandler [WEAK]
+ EXPORT SWI5_EGU5_IRQHandler [WEAK]
+ EXPORT TIMER3_IRQHandler [WEAK]
+ EXPORT TIMER4_IRQHandler [WEAK]
+ EXPORT PWM0_IRQHandler [WEAK]
+ EXPORT PDM_IRQHandler [WEAK]
+ EXPORT MWU_IRQHandler [WEAK]
+ EXPORT PWM1_IRQHandler [WEAK]
+ EXPORT PWM2_IRQHandler [WEAK]
+ EXPORT SPIM2_SPIS2_SPI2_IRQHandler [WEAK]
+ EXPORT RTC2_IRQHandler [WEAK]
+ EXPORT I2S_IRQHandler [WEAK]
+ EXPORT FPU_IRQHandler [WEAK]
+POWER_CLOCK_IRQHandler
+RADIO_IRQHandler
+UARTE0_UART0_IRQHandler
+SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+NFCT_IRQHandler
+GPIOTE_IRQHandler
+SAADC_IRQHandler
+TIMER0_IRQHandler
+TIMER1_IRQHandler
+TIMER2_IRQHandler
+RTC0_IRQHandler
+TEMP_IRQHandler
+RNG_IRQHandler
+ECB_IRQHandler
+CCM_AAR_IRQHandler
+WDT_IRQHandler
+RTC1_IRQHandler
+QDEC_IRQHandler
+COMP_LPCOMP_IRQHandler
+SWI0_EGU0_IRQHandler
+SWI1_EGU1_IRQHandler
+SWI2_EGU2_IRQHandler
+SWI3_EGU3_IRQHandler
+SWI4_EGU4_IRQHandler
+SWI5_EGU5_IRQHandler
+TIMER3_IRQHandler
+TIMER4_IRQHandler
+PWM0_IRQHandler
+PDM_IRQHandler
+MWU_IRQHandler
+PWM1_IRQHandler
+PWM2_IRQHandler
+SPIM2_SPIS2_SPI2_IRQHandler
+RTC2_IRQHandler
+I2S_IRQHandler
+FPU_IRQHandler
+ B .
+ ENDP
+ ALIGN
+
+; User Initial Stack & Heap
+
+ IF :DEF:__MICROLIB
+
+ EXPORT __initial_sp
+ EXPORT __heap_base
+ EXPORT __heap_limit
+
+ ELSE
+
+ IMPORT __use_two_region_memory
+ EXPORT __user_initial_stackheap
+
+__user_initial_stackheap PROC
+
+ LDR R0, = Heap_Mem
+ LDR R1, = (Stack_Mem + Stack_Size)
+ LDR R2, = (Heap_Mem + Heap_Size)
+ LDR R3, = Stack_Mem
+ BX LR
+ ENDP
+
+ ALIGN
+
+ ENDIF
+
+ END
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf52810.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf52810.s
new file mode 100644
index 0000000..24adada
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf52810.s
@@ -0,0 +1,349 @@
+; Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+;
+; SPDX-License-Identifier: Apache-2.0
+;
+; Licensed under the Apache License, Version 2.0 (the License); you may
+; not use this file except in compliance with the License.
+; You may obtain a copy of the License at
+;
+; www.apache.org/licenses/LICENSE-2.0
+;
+; Unless required by applicable law or agreed to in writing, software
+; distributed under the License is distributed on an AS IS BASIS, WITHOUT
+; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+; See the License for the specific language governing permissions and
+; limitations under the License.
+;
+; NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+ IF :DEF: __STARTUP_CONFIG
+#include "startup_config.h"
+#ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
+#define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+#endif
+ ENDIF
+
+ IF :DEF: __STARTUP_CONFIG
+Stack_Size EQU __STARTUP_CONFIG_STACK_SIZE
+ ELIF :DEF: __STACK_SIZE
+Stack_Size EQU __STACK_SIZE
+ ELSE
+Stack_Size EQU 2048
+ ENDIF
+
+ IF :DEF: __STARTUP_CONFIG
+Stack_Align EQU __STARTUP_CONFIG_STACK_ALIGNEMENT
+ ELSE
+Stack_Align EQU 3
+ ENDIF
+
+ AREA STACK, NOINIT, READWRITE, ALIGN=Stack_Align
+Stack_Mem SPACE Stack_Size
+__initial_sp
+
+ IF :DEF: __STARTUP_CONFIG
+Heap_Size EQU __STARTUP_CONFIG_HEAP_SIZE
+ ELIF :DEF: __HEAP_SIZE
+Heap_Size EQU __HEAP_SIZE
+ ELSE
+Heap_Size EQU 2048
+ ENDIF
+
+ AREA HEAP, NOINIT, READWRITE, ALIGN=3
+__heap_base
+Heap_Mem SPACE Heap_Size
+__heap_limit
+
+ PRESERVE8
+ THUMB
+
+; Vector Table Mapped to Address 0 at Reset
+
+ AREA RESET, DATA, READONLY
+ EXPORT __Vectors
+ EXPORT __Vectors_End
+ EXPORT __Vectors_Size
+
+__Vectors DCD __initial_sp ; Top of Stack
+ DCD Reset_Handler
+ DCD NMI_Handler
+ DCD HardFault_Handler
+ DCD MemoryManagement_Handler
+ DCD BusFault_Handler
+ DCD UsageFault_Handler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD SVC_Handler
+ DCD DebugMon_Handler
+ DCD 0 ; Reserved
+ DCD PendSV_Handler
+ DCD SysTick_Handler
+
+ ; External Interrupts
+ DCD POWER_CLOCK_IRQHandler
+ DCD RADIO_IRQHandler
+ DCD UARTE0_IRQHandler
+ DCD TWIM0_TWIS0_IRQHandler
+ DCD SPIM0_SPIS0_IRQHandler
+ DCD 0 ; Reserved
+ DCD GPIOTE_IRQHandler
+ DCD SAADC_IRQHandler
+ DCD TIMER0_IRQHandler
+ DCD TIMER1_IRQHandler
+ DCD TIMER2_IRQHandler
+ DCD RTC0_IRQHandler
+ DCD TEMP_IRQHandler
+ DCD RNG_IRQHandler
+ DCD ECB_IRQHandler
+ DCD CCM_AAR_IRQHandler
+ DCD WDT_IRQHandler
+ DCD RTC1_IRQHandler
+ DCD QDEC_IRQHandler
+ DCD COMP_IRQHandler
+ DCD SWI0_EGU0_IRQHandler
+ DCD SWI1_EGU1_IRQHandler
+ DCD SWI2_IRQHandler
+ DCD SWI3_IRQHandler
+ DCD SWI4_IRQHandler
+ DCD SWI5_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD PWM0_IRQHandler
+ DCD PDM_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+
+__Vectors_End
+
+__Vectors_Size EQU __Vectors_End - __Vectors
+
+ AREA |.text|, CODE, READONLY
+
+; Reset Handler
+
+
+Reset_Handler PROC
+ EXPORT Reset_Handler [WEAK]
+ IMPORT SystemInit
+ IMPORT __main
+
+
+ LDR R0, =SystemInit
+ BLX R0
+ LDR R0, =__main
+ BX R0
+ ENDP
+
+; Dummy Exception Handlers (infinite loops which can be modified)
+
+NMI_Handler PROC
+ EXPORT NMI_Handler [WEAK]
+ B .
+ ENDP
+HardFault_Handler\
+ PROC
+ EXPORT HardFault_Handler [WEAK]
+ B .
+ ENDP
+MemoryManagement_Handler\
+ PROC
+ EXPORT MemoryManagement_Handler [WEAK]
+ B .
+ ENDP
+BusFault_Handler\
+ PROC
+ EXPORT BusFault_Handler [WEAK]
+ B .
+ ENDP
+UsageFault_Handler\
+ PROC
+ EXPORT UsageFault_Handler [WEAK]
+ B .
+ ENDP
+SVC_Handler PROC
+ EXPORT SVC_Handler [WEAK]
+ B .
+ ENDP
+DebugMon_Handler\
+ PROC
+ EXPORT DebugMon_Handler [WEAK]
+ B .
+ ENDP
+PendSV_Handler PROC
+ EXPORT PendSV_Handler [WEAK]
+ B .
+ ENDP
+SysTick_Handler PROC
+ EXPORT SysTick_Handler [WEAK]
+ B .
+ ENDP
+
+Default_Handler PROC
+
+ EXPORT POWER_CLOCK_IRQHandler [WEAK]
+ EXPORT RADIO_IRQHandler [WEAK]
+ EXPORT UARTE0_IRQHandler [WEAK]
+ EXPORT TWIM0_TWIS0_IRQHandler [WEAK]
+ EXPORT SPIM0_SPIS0_IRQHandler [WEAK]
+ EXPORT GPIOTE_IRQHandler [WEAK]
+ EXPORT SAADC_IRQHandler [WEAK]
+ EXPORT TIMER0_IRQHandler [WEAK]
+ EXPORT TIMER1_IRQHandler [WEAK]
+ EXPORT TIMER2_IRQHandler [WEAK]
+ EXPORT RTC0_IRQHandler [WEAK]
+ EXPORT TEMP_IRQHandler [WEAK]
+ EXPORT RNG_IRQHandler [WEAK]
+ EXPORT ECB_IRQHandler [WEAK]
+ EXPORT CCM_AAR_IRQHandler [WEAK]
+ EXPORT WDT_IRQHandler [WEAK]
+ EXPORT RTC1_IRQHandler [WEAK]
+ EXPORT QDEC_IRQHandler [WEAK]
+ EXPORT COMP_IRQHandler [WEAK]
+ EXPORT SWI0_EGU0_IRQHandler [WEAK]
+ EXPORT SWI1_EGU1_IRQHandler [WEAK]
+ EXPORT SWI2_IRQHandler [WEAK]
+ EXPORT SWI3_IRQHandler [WEAK]
+ EXPORT SWI4_IRQHandler [WEAK]
+ EXPORT SWI5_IRQHandler [WEAK]
+ EXPORT PWM0_IRQHandler [WEAK]
+ EXPORT PDM_IRQHandler [WEAK]
+POWER_CLOCK_IRQHandler
+RADIO_IRQHandler
+UARTE0_IRQHandler
+TWIM0_TWIS0_IRQHandler
+SPIM0_SPIS0_IRQHandler
+GPIOTE_IRQHandler
+SAADC_IRQHandler
+TIMER0_IRQHandler
+TIMER1_IRQHandler
+TIMER2_IRQHandler
+RTC0_IRQHandler
+TEMP_IRQHandler
+RNG_IRQHandler
+ECB_IRQHandler
+CCM_AAR_IRQHandler
+WDT_IRQHandler
+RTC1_IRQHandler
+QDEC_IRQHandler
+COMP_IRQHandler
+SWI0_EGU0_IRQHandler
+SWI1_EGU1_IRQHandler
+SWI2_IRQHandler
+SWI3_IRQHandler
+SWI4_IRQHandler
+SWI5_IRQHandler
+PWM0_IRQHandler
+PDM_IRQHandler
+ B .
+ ENDP
+ ALIGN
+
+; User Initial Stack & Heap
+
+ IF :DEF:__MICROLIB
+
+ EXPORT __initial_sp
+ EXPORT __heap_base
+ EXPORT __heap_limit
+
+ ELSE
+
+ IMPORT __use_two_region_memory
+ EXPORT __user_initial_stackheap
+
+__user_initial_stackheap PROC
+
+ LDR R0, = Heap_Mem
+ LDR R1, = (Stack_Mem + Stack_Size)
+ LDR R2, = (Heap_Mem + Heap_Size)
+ LDR R3, = Stack_Mem
+ BX LR
+ ENDP
+
+ ALIGN
+
+ ENDIF
+
+ END
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf52840.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf52840.s
new file mode 100644
index 0000000..1c5f17b
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/arm_startup_nrf52840.s
@@ -0,0 +1,381 @@
+; Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+;
+; SPDX-License-Identifier: Apache-2.0
+;
+; Licensed under the Apache License, Version 2.0 (the License); you may
+; not use this file except in compliance with the License.
+; You may obtain a copy of the License at
+;
+; www.apache.org/licenses/LICENSE-2.0
+;
+; Unless required by applicable law or agreed to in writing, software
+; distributed under the License is distributed on an AS IS BASIS, WITHOUT
+; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+; See the License for the specific language governing permissions and
+; limitations under the License.
+;
+; NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+ IF :DEF: __STARTUP_CONFIG
+#include "startup_config.h"
+#ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
+#define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+#endif
+ ENDIF
+
+ IF :DEF: __STARTUP_CONFIG
+Stack_Size EQU __STARTUP_CONFIG_STACK_SIZE
+ ELIF :DEF: __STACK_SIZE
+Stack_Size EQU __STACK_SIZE
+ ELSE
+Stack_Size EQU 8192
+ ENDIF
+
+ IF :DEF: __STARTUP_CONFIG
+Stack_Align EQU __STARTUP_CONFIG_STACK_ALIGNEMENT
+ ELSE
+Stack_Align EQU 3
+ ENDIF
+
+ AREA STACK, NOINIT, READWRITE, ALIGN=Stack_Align
+Stack_Mem SPACE Stack_Size
+__initial_sp
+
+ IF :DEF: __STARTUP_CONFIG
+Heap_Size EQU __STARTUP_CONFIG_HEAP_SIZE
+ ELIF :DEF: __HEAP_SIZE
+Heap_Size EQU __HEAP_SIZE
+ ELSE
+Heap_Size EQU 8192
+ ENDIF
+
+ AREA HEAP, NOINIT, READWRITE, ALIGN=3
+__heap_base
+Heap_Mem SPACE Heap_Size
+__heap_limit
+
+ PRESERVE8
+ THUMB
+
+; Vector Table Mapped to Address 0 at Reset
+
+ AREA RESET, DATA, READONLY
+ EXPORT __Vectors
+ EXPORT __Vectors_End
+ EXPORT __Vectors_Size
+
+__Vectors DCD __initial_sp ; Top of Stack
+ DCD Reset_Handler
+ DCD NMI_Handler
+ DCD HardFault_Handler
+ DCD MemoryManagement_Handler
+ DCD BusFault_Handler
+ DCD UsageFault_Handler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD SVC_Handler
+ DCD DebugMon_Handler
+ DCD 0 ; Reserved
+ DCD PendSV_Handler
+ DCD SysTick_Handler
+
+ ; External Interrupts
+ DCD POWER_CLOCK_IRQHandler
+ DCD RADIO_IRQHandler
+ DCD UARTE0_UART0_IRQHandler
+ DCD SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ DCD SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ DCD NFCT_IRQHandler
+ DCD GPIOTE_IRQHandler
+ DCD SAADC_IRQHandler
+ DCD TIMER0_IRQHandler
+ DCD TIMER1_IRQHandler
+ DCD TIMER2_IRQHandler
+ DCD RTC0_IRQHandler
+ DCD TEMP_IRQHandler
+ DCD RNG_IRQHandler
+ DCD ECB_IRQHandler
+ DCD CCM_AAR_IRQHandler
+ DCD WDT_IRQHandler
+ DCD RTC1_IRQHandler
+ DCD QDEC_IRQHandler
+ DCD COMP_LPCOMP_IRQHandler
+ DCD SWI0_EGU0_IRQHandler
+ DCD SWI1_EGU1_IRQHandler
+ DCD SWI2_EGU2_IRQHandler
+ DCD SWI3_EGU3_IRQHandler
+ DCD SWI4_EGU4_IRQHandler
+ DCD SWI5_EGU5_IRQHandler
+ DCD TIMER3_IRQHandler
+ DCD TIMER4_IRQHandler
+ DCD PWM0_IRQHandler
+ DCD PDM_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD MWU_IRQHandler
+ DCD PWM1_IRQHandler
+ DCD PWM2_IRQHandler
+ DCD SPIM2_SPIS2_SPI2_IRQHandler
+ DCD RTC2_IRQHandler
+ DCD I2S_IRQHandler
+ DCD FPU_IRQHandler
+ DCD USBD_IRQHandler
+ DCD UARTE1_IRQHandler
+ DCD QSPI_IRQHandler
+ DCD CRYPTOCELL_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD PWM3_IRQHandler
+ DCD 0 ; Reserved
+ DCD SPIM3_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+
+__Vectors_End
+
+__Vectors_Size EQU __Vectors_End - __Vectors
+
+ AREA |.text|, CODE, READONLY
+
+; Reset Handler
+
+
+Reset_Handler PROC
+ EXPORT Reset_Handler [WEAK]
+ IMPORT SystemInit
+ IMPORT __main
+
+
+ LDR R0, =SystemInit
+ BLX R0
+ LDR R0, =__main
+ BX R0
+ ENDP
+
+; Dummy Exception Handlers (infinite loops which can be modified)
+
+NMI_Handler PROC
+ EXPORT NMI_Handler [WEAK]
+ B .
+ ENDP
+HardFault_Handler\
+ PROC
+ EXPORT HardFault_Handler [WEAK]
+ B .
+ ENDP
+MemoryManagement_Handler\
+ PROC
+ EXPORT MemoryManagement_Handler [WEAK]
+ B .
+ ENDP
+BusFault_Handler\
+ PROC
+ EXPORT BusFault_Handler [WEAK]
+ B .
+ ENDP
+UsageFault_Handler\
+ PROC
+ EXPORT UsageFault_Handler [WEAK]
+ B .
+ ENDP
+SVC_Handler PROC
+ EXPORT SVC_Handler [WEAK]
+ B .
+ ENDP
+DebugMon_Handler\
+ PROC
+ EXPORT DebugMon_Handler [WEAK]
+ B .
+ ENDP
+PendSV_Handler PROC
+ EXPORT PendSV_Handler [WEAK]
+ B .
+ ENDP
+SysTick_Handler PROC
+ EXPORT SysTick_Handler [WEAK]
+ B .
+ ENDP
+
+Default_Handler PROC
+
+ EXPORT POWER_CLOCK_IRQHandler [WEAK]
+ EXPORT RADIO_IRQHandler [WEAK]
+ EXPORT UARTE0_UART0_IRQHandler [WEAK]
+ EXPORT SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler [WEAK]
+ EXPORT SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler [WEAK]
+ EXPORT NFCT_IRQHandler [WEAK]
+ EXPORT GPIOTE_IRQHandler [WEAK]
+ EXPORT SAADC_IRQHandler [WEAK]
+ EXPORT TIMER0_IRQHandler [WEAK]
+ EXPORT TIMER1_IRQHandler [WEAK]
+ EXPORT TIMER2_IRQHandler [WEAK]
+ EXPORT RTC0_IRQHandler [WEAK]
+ EXPORT TEMP_IRQHandler [WEAK]
+ EXPORT RNG_IRQHandler [WEAK]
+ EXPORT ECB_IRQHandler [WEAK]
+ EXPORT CCM_AAR_IRQHandler [WEAK]
+ EXPORT WDT_IRQHandler [WEAK]
+ EXPORT RTC1_IRQHandler [WEAK]
+ EXPORT QDEC_IRQHandler [WEAK]
+ EXPORT COMP_LPCOMP_IRQHandler [WEAK]
+ EXPORT SWI0_EGU0_IRQHandler [WEAK]
+ EXPORT SWI1_EGU1_IRQHandler [WEAK]
+ EXPORT SWI2_EGU2_IRQHandler [WEAK]
+ EXPORT SWI3_EGU3_IRQHandler [WEAK]
+ EXPORT SWI4_EGU4_IRQHandler [WEAK]
+ EXPORT SWI5_EGU5_IRQHandler [WEAK]
+ EXPORT TIMER3_IRQHandler [WEAK]
+ EXPORT TIMER4_IRQHandler [WEAK]
+ EXPORT PWM0_IRQHandler [WEAK]
+ EXPORT PDM_IRQHandler [WEAK]
+ EXPORT MWU_IRQHandler [WEAK]
+ EXPORT PWM1_IRQHandler [WEAK]
+ EXPORT PWM2_IRQHandler [WEAK]
+ EXPORT SPIM2_SPIS2_SPI2_IRQHandler [WEAK]
+ EXPORT RTC2_IRQHandler [WEAK]
+ EXPORT I2S_IRQHandler [WEAK]
+ EXPORT FPU_IRQHandler [WEAK]
+ EXPORT USBD_IRQHandler [WEAK]
+ EXPORT UARTE1_IRQHandler [WEAK]
+ EXPORT QSPI_IRQHandler [WEAK]
+ EXPORT CRYPTOCELL_IRQHandler [WEAK]
+ EXPORT PWM3_IRQHandler [WEAK]
+ EXPORT SPIM3_IRQHandler [WEAK]
+POWER_CLOCK_IRQHandler
+RADIO_IRQHandler
+UARTE0_UART0_IRQHandler
+SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+NFCT_IRQHandler
+GPIOTE_IRQHandler
+SAADC_IRQHandler
+TIMER0_IRQHandler
+TIMER1_IRQHandler
+TIMER2_IRQHandler
+RTC0_IRQHandler
+TEMP_IRQHandler
+RNG_IRQHandler
+ECB_IRQHandler
+CCM_AAR_IRQHandler
+WDT_IRQHandler
+RTC1_IRQHandler
+QDEC_IRQHandler
+COMP_LPCOMP_IRQHandler
+SWI0_EGU0_IRQHandler
+SWI1_EGU1_IRQHandler
+SWI2_EGU2_IRQHandler
+SWI3_EGU3_IRQHandler
+SWI4_EGU4_IRQHandler
+SWI5_EGU5_IRQHandler
+TIMER3_IRQHandler
+TIMER4_IRQHandler
+PWM0_IRQHandler
+PDM_IRQHandler
+MWU_IRQHandler
+PWM1_IRQHandler
+PWM2_IRQHandler
+SPIM2_SPIS2_SPI2_IRQHandler
+RTC2_IRQHandler
+I2S_IRQHandler
+FPU_IRQHandler
+USBD_IRQHandler
+UARTE1_IRQHandler
+QSPI_IRQHandler
+CRYPTOCELL_IRQHandler
+PWM3_IRQHandler
+SPIM3_IRQHandler
+ B .
+ ENDP
+ ALIGN
+
+; User Initial Stack & Heap
+
+ IF :DEF:__MICROLIB
+
+ EXPORT __initial_sp
+ EXPORT __heap_base
+ EXPORT __heap_limit
+
+ ELSE
+
+ IMPORT __use_two_region_memory
+ EXPORT __user_initial_stackheap
+
+__user_initial_stackheap PROC
+
+ LDR R0, = Heap_Mem
+ LDR R1, = (Stack_Mem + Stack_Size)
+ LDR R2, = (Heap_Mem + Heap_Size)
+ LDR R3, = Stack_Mem
+ BX LR
+ ENDP
+
+ ALIGN
+
+ ENDIF
+
+ END
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/compiler_abstraction.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/compiler_abstraction.h
new file mode 100644
index 0000000..73da016
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/compiler_abstraction.h
@@ -0,0 +1,155 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef _COMPILER_ABSTRACTION_H
+#define _COMPILER_ABSTRACTION_H
+
+/*lint ++flb "Enter library region" */
+
+#if defined ( __CC_ARM )
+
+ #ifndef __ASM
+ #define __ASM __asm
+ #endif
+
+ #ifndef __INLINE
+ #define __INLINE __inline
+ #endif
+
+ #ifndef __WEAK
+ #define __WEAK __weak
+ #endif
+
+ #ifndef __ALIGN
+ #define __ALIGN(n) __align(n)
+ #endif
+
+ #ifndef __PACKED
+ #define __PACKED __packed
+ #endif
+
+ #define GET_SP() __current_sp()
+
+#elif defined ( __ICCARM__ )
+
+ #ifndef __ASM
+ #define __ASM __asm
+ #endif
+
+ #ifndef __INLINE
+ #define __INLINE inline
+ #endif
+
+ #ifndef __WEAK
+ #define __WEAK __weak
+ #endif
+
+ #ifndef __ALIGN
+ #define STRING_PRAGMA(x) _Pragma(#x)
+ #define __ALIGN(n) STRING_PRAGMA(data_alignment = n)
+ #endif
+
+ #ifndef __PACKED
+ #define __PACKED __packed
+ #endif
+
+ #define GET_SP() __get_SP()
+
+#elif defined ( __GNUC__ )
+
+ #ifndef __ASM
+ #define __ASM __asm
+ #endif
+
+ #ifndef __INLINE
+ #define __INLINE inline
+ #endif
+
+ #ifndef __WEAK
+ #define __WEAK __attribute__((weak))
+ #endif
+
+ #ifndef __ALIGN
+ #define __ALIGN(n) __attribute__((aligned(n)))
+ #endif
+
+ #ifndef __PACKED
+ #define __PACKED __attribute__((packed))
+ #endif
+
+ #define GET_SP() gcc_current_sp()
+
+ static inline unsigned int gcc_current_sp(void)
+ {
+ register unsigned sp __ASM("sp");
+ return sp;
+ }
+
+#elif defined ( __TASKING__ )
+
+ #ifndef __ASM
+ #define __ASM __asm
+ #endif
+
+ #ifndef __INLINE
+ #define __INLINE inline
+ #endif
+
+ #ifndef __WEAK
+ #define __WEAK __attribute__((weak))
+ #endif
+
+ #ifndef __ALIGN
+ #define __ALIGN(n) __align(n)
+ #endif
+
+ /* Not defined for TASKING. */
+ #ifndef __PACKED
+ #define __PACKED
+ #endif
+
+ #define GET_SP() __get_MSP()
+
+#endif
+
+/*lint --flb "Leave library region" */
+
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf51.S b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf51.S
new file mode 100644
index 0000000..3322af7
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf51.S
@@ -0,0 +1,298 @@
+/*
+
+Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the License); you may
+not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an AS IS BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+*/
+
+ .syntax unified
+ .arch armv6-m
+
+#ifdef __STARTUP_CONFIG
+#include "startup_config.h"
+#ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
+#define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+#endif
+#endif
+
+ .section .stack
+#if defined(__STARTUP_CONFIG)
+ .align __STARTUP_CONFIG_STACK_ALIGNEMENT
+ .equ Stack_Size, __STARTUP_CONFIG_STACK_SIZE
+#elif defined(__STACK_SIZE)
+ .align 3
+ .equ Stack_Size, __STACK_SIZE
+#else
+ .align 3
+ .equ Stack_Size, 2048
+#endif
+ .globl __StackTop
+ .globl __StackLimit
+__StackLimit:
+ .space Stack_Size
+ .size __StackLimit, . - __StackLimit
+__StackTop:
+ .size __StackTop, . - __StackTop
+
+ .section .heap
+ .align 3
+#if defined(__STARTUP_CONFIG)
+ .equ Heap_Size, __STARTUP_CONFIG_HEAP_SIZE
+#elif defined(__HEAP_SIZE)
+ .equ Heap_Size, __HEAP_SIZE
+#else
+ .equ Heap_Size, 2048
+#endif
+ .globl __HeapBase
+ .globl __HeapLimit
+__HeapBase:
+ .if Heap_Size
+ .space Heap_Size
+ .endif
+ .size __HeapBase, . - __HeapBase
+__HeapLimit:
+ .size __HeapLimit, . - __HeapLimit
+
+ .section .isr_vector
+ .align 2
+ .globl __isr_vector
+__isr_vector:
+ .long __StackTop /* Top of Stack */
+ .long Reset_Handler
+ .long NMI_Handler
+ .long HardFault_Handler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long SVC_Handler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long PendSV_Handler
+ .long SysTick_Handler
+
+ /* External Interrupts */
+ .long POWER_CLOCK_IRQHandler
+ .long RADIO_IRQHandler
+ .long UART0_IRQHandler
+ .long SPI0_TWI0_IRQHandler
+ .long SPI1_TWI1_IRQHandler
+ .long 0 /*Reserved */
+ .long GPIOTE_IRQHandler
+ .long ADC_IRQHandler
+ .long TIMER0_IRQHandler
+ .long TIMER1_IRQHandler
+ .long TIMER2_IRQHandler
+ .long RTC0_IRQHandler
+ .long TEMP_IRQHandler
+ .long RNG_IRQHandler
+ .long ECB_IRQHandler
+ .long CCM_AAR_IRQHandler
+ .long WDT_IRQHandler
+ .long RTC1_IRQHandler
+ .long QDEC_IRQHandler
+ .long LPCOMP_IRQHandler
+ .long SWI0_IRQHandler
+ .long SWI1_IRQHandler
+ .long SWI2_IRQHandler
+ .long SWI3_IRQHandler
+ .long SWI4_IRQHandler
+ .long SWI5_IRQHandler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+
+ .size __isr_vector, . - __isr_vector
+
+/* Reset Handler */
+
+ .equ NRF_POWER_RAMON_ADDRESS, 0x40000524
+ .equ NRF_POWER_RAMONB_ADDRESS, 0x40000554
+ .equ NRF_POWER_RAMONx_RAMxON_ONMODE_Msk, 0x3
+
+ .text
+ .thumb
+ .thumb_func
+ .align 1
+ .globl Reset_Handler
+ .type Reset_Handler, %function
+Reset_Handler:
+
+ MOVS R1, #NRF_POWER_RAMONx_RAMxON_ONMODE_Msk
+
+ LDR R0, =NRF_POWER_RAMON_ADDRESS
+ LDR R2, [R0]
+ ORRS R2, R1
+ STR R2, [R0]
+
+ LDR R0, =NRF_POWER_RAMONB_ADDRESS
+ LDR R2, [R0]
+ ORRS R2, R1
+ STR R2, [R0]
+
+/* Loop to copy data from read only memory to RAM.
+ * The ranges of copy from/to are specified by following symbols:
+ * __etext: LMA of start of the section to copy from. Usually end of text
+ * __data_start__: VMA of start of the section to copy to.
+ * __bss_start__: VMA of end of the section to copy to. Normally __data_end__ is used, but by using __bss_start__
+ * the user can add their own initialized data section before BSS section with the INTERT AFTER command.
+ *
+ * All addresses must be aligned to 4 bytes boundary.
+ */
+ ldr r1, =__etext
+ ldr r2, =__data_start__
+ ldr r3, =__bss_start__
+
+ subs r3, r2
+ ble .L_loop1_done
+
+.L_loop1:
+ subs r3, #4
+ ldr r0, [r1,r3]
+ str r0, [r2,r3]
+ bgt .L_loop1
+
+.L_loop1_done:
+
+/* This part of work usually is done in C library startup code. Otherwise,
+ * define __STARTUP_CLEAR_BSS to enable it in this startup. This section
+ * clears the RAM where BSS data is located.
+ *
+ * The BSS section is specified by following symbols
+ * __bss_start__: start of the BSS section.
+ * __bss_end__: end of the BSS section.
+ *
+ * All addresses must be aligned to 4 bytes boundary.
+ */
+#ifdef __STARTUP_CLEAR_BSS
+ ldr r1, =__bss_start__
+ ldr r2, =__bss_end__
+
+ movs r0, 0
+
+ subs r2, r1
+ ble .L_loop3_done
+
+.L_loop3:
+ subs r2, #4
+ str r0, [r1, r2]
+ bgt .L_loop3
+
+.L_loop3_done:
+#endif /* __STARTUP_CLEAR_BSS */
+
+/* Execute SystemInit function. */
+ bl SystemInit
+
+/* Call _start function provided by libraries.
+ * If those libraries are not accessible, define __START as your entry point.
+ */
+#ifndef __START
+#define __START _start
+#endif
+ bl __START
+
+ .pool
+ .size Reset_Handler,.-Reset_Handler
+
+ .section ".text"
+
+
+/* Dummy Exception Handlers (infinite loops which can be modified) */
+
+ .weak NMI_Handler
+ .type NMI_Handler, %function
+NMI_Handler:
+ b .
+ .size NMI_Handler, . - NMI_Handler
+
+
+ .weak HardFault_Handler
+ .type HardFault_Handler, %function
+HardFault_Handler:
+ b .
+ .size HardFault_Handler, . - HardFault_Handler
+
+
+ .weak SVC_Handler
+ .type SVC_Handler, %function
+SVC_Handler:
+ b .
+ .size SVC_Handler, . - SVC_Handler
+
+
+ .weak PendSV_Handler
+ .type PendSV_Handler, %function
+PendSV_Handler:
+ b .
+ .size PendSV_Handler, . - PendSV_Handler
+
+
+ .weak SysTick_Handler
+ .type SysTick_Handler, %function
+SysTick_Handler:
+ b .
+ .size SysTick_Handler, . - SysTick_Handler
+
+
+/* IRQ Handlers */
+
+ .globl Default_Handler
+ .type Default_Handler, %function
+Default_Handler:
+ b .
+ .size Default_Handler, . - Default_Handler
+
+ .macro IRQ handler
+ .weak \handler
+ .set \handler, Default_Handler
+ .endm
+
+ IRQ POWER_CLOCK_IRQHandler
+ IRQ RADIO_IRQHandler
+ IRQ UART0_IRQHandler
+ IRQ SPI0_TWI0_IRQHandler
+ IRQ SPI1_TWI1_IRQHandler
+ IRQ GPIOTE_IRQHandler
+ IRQ ADC_IRQHandler
+ IRQ TIMER0_IRQHandler
+ IRQ TIMER1_IRQHandler
+ IRQ TIMER2_IRQHandler
+ IRQ RTC0_IRQHandler
+ IRQ TEMP_IRQHandler
+ IRQ RNG_IRQHandler
+ IRQ ECB_IRQHandler
+ IRQ CCM_AAR_IRQHandler
+ IRQ WDT_IRQHandler
+ IRQ RTC1_IRQHandler
+ IRQ QDEC_IRQHandler
+ IRQ LPCOMP_IRQHandler
+ IRQ SWI0_IRQHandler
+ IRQ SWI1_IRQHandler
+ IRQ SWI2_IRQHandler
+ IRQ SWI3_IRQHandler
+ IRQ SWI4_IRQHandler
+ IRQ SWI5_IRQHandler
+
+ .end
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf52.S b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf52.S
new file mode 100644
index 0000000..f523b48
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf52.S
@@ -0,0 +1,404 @@
+/*
+
+Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the License); you may
+not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an AS IS BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+*/
+
+ .syntax unified
+ .arch armv7e-m
+
+#ifdef __STARTUP_CONFIG
+#include "startup_config.h"
+#ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
+#define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+#endif
+#endif
+
+ .section .stack
+#if defined(__STARTUP_CONFIG)
+ .align __STARTUP_CONFIG_STACK_ALIGNEMENT
+ .equ Stack_Size, __STARTUP_CONFIG_STACK_SIZE
+#elif defined(__STACK_SIZE)
+ .align 3
+ .equ Stack_Size, __STACK_SIZE
+#else
+ .align 3
+ .equ Stack_Size, 8192
+#endif
+ .globl __StackTop
+ .globl __StackLimit
+__StackLimit:
+ .space Stack_Size
+ .size __StackLimit, . - __StackLimit
+__StackTop:
+ .size __StackTop, . - __StackTop
+
+ .section .heap
+ .align 3
+#if defined(__STARTUP_CONFIG)
+ .equ Heap_Size, __STARTUP_CONFIG_HEAP_SIZE
+#elif defined(__HEAP_SIZE)
+ .equ Heap_Size, __HEAP_SIZE
+#else
+ .equ Heap_Size, 8192
+#endif
+ .globl __HeapBase
+ .globl __HeapLimit
+__HeapBase:
+ .if Heap_Size
+ .space Heap_Size
+ .endif
+ .size __HeapBase, . - __HeapBase
+__HeapLimit:
+ .size __HeapLimit, . - __HeapLimit
+
+ .section .isr_vector
+ .align 2
+ .globl __isr_vector
+__isr_vector:
+ .long __StackTop /* Top of Stack */
+ .long Reset_Handler
+ .long NMI_Handler
+ .long HardFault_Handler
+ .long MemoryManagement_Handler
+ .long BusFault_Handler
+ .long UsageFault_Handler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long SVC_Handler
+ .long DebugMon_Handler
+ .long 0 /*Reserved */
+ .long PendSV_Handler
+ .long SysTick_Handler
+
+ /* External Interrupts */
+ .long POWER_CLOCK_IRQHandler
+ .long RADIO_IRQHandler
+ .long UARTE0_UART0_IRQHandler
+ .long SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ .long SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ .long NFCT_IRQHandler
+ .long GPIOTE_IRQHandler
+ .long SAADC_IRQHandler
+ .long TIMER0_IRQHandler
+ .long TIMER1_IRQHandler
+ .long TIMER2_IRQHandler
+ .long RTC0_IRQHandler
+ .long TEMP_IRQHandler
+ .long RNG_IRQHandler
+ .long ECB_IRQHandler
+ .long CCM_AAR_IRQHandler
+ .long WDT_IRQHandler
+ .long RTC1_IRQHandler
+ .long QDEC_IRQHandler
+ .long COMP_LPCOMP_IRQHandler
+ .long SWI0_EGU0_IRQHandler
+ .long SWI1_EGU1_IRQHandler
+ .long SWI2_EGU2_IRQHandler
+ .long SWI3_EGU3_IRQHandler
+ .long SWI4_EGU4_IRQHandler
+ .long SWI5_EGU5_IRQHandler
+ .long TIMER3_IRQHandler
+ .long TIMER4_IRQHandler
+ .long PWM0_IRQHandler
+ .long PDM_IRQHandler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long MWU_IRQHandler
+ .long PWM1_IRQHandler
+ .long PWM2_IRQHandler
+ .long SPIM2_SPIS2_SPI2_IRQHandler
+ .long RTC2_IRQHandler
+ .long I2S_IRQHandler
+ .long FPU_IRQHandler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+
+ .size __isr_vector, . - __isr_vector
+
+/* Reset Handler */
+
+
+ .text
+ .thumb
+ .thumb_func
+ .align 1
+ .globl Reset_Handler
+ .type Reset_Handler, %function
+Reset_Handler:
+
+
+/* Loop to copy data from read only memory to RAM.
+ * The ranges of copy from/to are specified by following symbols:
+ * __etext: LMA of start of the section to copy from. Usually end of text
+ * __data_start__: VMA of start of the section to copy to.
+ * __bss_start__: VMA of end of the section to copy to. Normally __data_end__ is used, but by using __bss_start__
+ * the user can add their own initialized data section before BSS section with the INTERT AFTER command.
+ *
+ * All addresses must be aligned to 4 bytes boundary.
+ */
+ ldr r1, =__etext
+ ldr r2, =__data_start__
+ ldr r3, =__bss_start__
+
+ subs r3, r2
+ ble .L_loop1_done
+
+.L_loop1:
+ subs r3, #4
+ ldr r0, [r1,r3]
+ str r0, [r2,r3]
+ bgt .L_loop1
+
+.L_loop1_done:
+
+/* This part of work usually is done in C library startup code. Otherwise,
+ * define __STARTUP_CLEAR_BSS to enable it in this startup. This section
+ * clears the RAM where BSS data is located.
+ *
+ * The BSS section is specified by following symbols
+ * __bss_start__: start of the BSS section.
+ * __bss_end__: end of the BSS section.
+ *
+ * All addresses must be aligned to 4 bytes boundary.
+ */
+#ifdef __STARTUP_CLEAR_BSS
+ ldr r1, =__bss_start__
+ ldr r2, =__bss_end__
+
+ movs r0, 0
+
+ subs r2, r1
+ ble .L_loop3_done
+
+.L_loop3:
+ subs r2, #4
+ str r0, [r1, r2]
+ bgt .L_loop3
+
+.L_loop3_done:
+#endif /* __STARTUP_CLEAR_BSS */
+
+/* Execute SystemInit function. */
+ bl SystemInit
+
+/* Call _start function provided by libraries.
+ * If those libraries are not accessible, define __START as your entry point.
+ */
+#ifndef __START
+#define __START _start
+#endif
+ bl __START
+
+ .pool
+ .size Reset_Handler,.-Reset_Handler
+
+ .section ".text"
+
+
+/* Dummy Exception Handlers (infinite loops which can be modified) */
+
+ .weak NMI_Handler
+ .type NMI_Handler, %function
+NMI_Handler:
+ b .
+ .size NMI_Handler, . - NMI_Handler
+
+
+ .weak HardFault_Handler
+ .type HardFault_Handler, %function
+HardFault_Handler:
+ b .
+ .size HardFault_Handler, . - HardFault_Handler
+
+
+ .weak MemoryManagement_Handler
+ .type MemoryManagement_Handler, %function
+MemoryManagement_Handler:
+ b .
+ .size MemoryManagement_Handler, . - MemoryManagement_Handler
+
+
+ .weak BusFault_Handler
+ .type BusFault_Handler, %function
+BusFault_Handler:
+ b .
+ .size BusFault_Handler, . - BusFault_Handler
+
+
+ .weak UsageFault_Handler
+ .type UsageFault_Handler, %function
+UsageFault_Handler:
+ b .
+ .size UsageFault_Handler, . - UsageFault_Handler
+
+
+ .weak SVC_Handler
+ .type SVC_Handler, %function
+SVC_Handler:
+ b .
+ .size SVC_Handler, . - SVC_Handler
+
+
+ .weak DebugMon_Handler
+ .type DebugMon_Handler, %function
+DebugMon_Handler:
+ b .
+ .size DebugMon_Handler, . - DebugMon_Handler
+
+
+ .weak PendSV_Handler
+ .type PendSV_Handler, %function
+PendSV_Handler:
+ b .
+ .size PendSV_Handler, . - PendSV_Handler
+
+
+ .weak SysTick_Handler
+ .type SysTick_Handler, %function
+SysTick_Handler:
+ b .
+ .size SysTick_Handler, . - SysTick_Handler
+
+
+/* IRQ Handlers */
+
+ .globl Default_Handler
+ .type Default_Handler, %function
+Default_Handler:
+ b .
+ .size Default_Handler, . - Default_Handler
+
+ .macro IRQ handler
+ .weak \handler
+ .set \handler, Default_Handler
+ .endm
+
+ IRQ POWER_CLOCK_IRQHandler
+ IRQ RADIO_IRQHandler
+ IRQ UARTE0_UART0_IRQHandler
+ IRQ SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ IRQ SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ IRQ NFCT_IRQHandler
+ IRQ GPIOTE_IRQHandler
+ IRQ SAADC_IRQHandler
+ IRQ TIMER0_IRQHandler
+ IRQ TIMER1_IRQHandler
+ IRQ TIMER2_IRQHandler
+ IRQ RTC0_IRQHandler
+ IRQ TEMP_IRQHandler
+ IRQ RNG_IRQHandler
+ IRQ ECB_IRQHandler
+ IRQ CCM_AAR_IRQHandler
+ IRQ WDT_IRQHandler
+ IRQ RTC1_IRQHandler
+ IRQ QDEC_IRQHandler
+ IRQ COMP_LPCOMP_IRQHandler
+ IRQ SWI0_EGU0_IRQHandler
+ IRQ SWI1_EGU1_IRQHandler
+ IRQ SWI2_EGU2_IRQHandler
+ IRQ SWI3_EGU3_IRQHandler
+ IRQ SWI4_EGU4_IRQHandler
+ IRQ SWI5_EGU5_IRQHandler
+ IRQ TIMER3_IRQHandler
+ IRQ TIMER4_IRQHandler
+ IRQ PWM0_IRQHandler
+ IRQ PDM_IRQHandler
+ IRQ MWU_IRQHandler
+ IRQ PWM1_IRQHandler
+ IRQ PWM2_IRQHandler
+ IRQ SPIM2_SPIS2_SPI2_IRQHandler
+ IRQ RTC2_IRQHandler
+ IRQ I2S_IRQHandler
+ IRQ FPU_IRQHandler
+
+ .end
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf52810.S b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf52810.S
new file mode 100644
index 0000000..58250ab
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf52810.S
@@ -0,0 +1,394 @@
+/*
+
+Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the License); you may
+not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an AS IS BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+*/
+
+ .syntax unified
+ .arch armv7e-m
+
+#ifdef __STARTUP_CONFIG
+#include "startup_config.h"
+#ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
+#define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+#endif
+#endif
+
+ .section .stack
+#if defined(__STARTUP_CONFIG)
+ .align __STARTUP_CONFIG_STACK_ALIGNEMENT
+ .equ Stack_Size, __STARTUP_CONFIG_STACK_SIZE
+#elif defined(__STACK_SIZE)
+ .align 3
+ .equ Stack_Size, __STACK_SIZE
+#else
+ .align 3
+ .equ Stack_Size, 2048
+#endif
+ .globl __StackTop
+ .globl __StackLimit
+__StackLimit:
+ .space Stack_Size
+ .size __StackLimit, . - __StackLimit
+__StackTop:
+ .size __StackTop, . - __StackTop
+
+ .section .heap
+ .align 3
+#if defined(__STARTUP_CONFIG)
+ .equ Heap_Size, __STARTUP_CONFIG_HEAP_SIZE
+#elif defined(__HEAP_SIZE)
+ .equ Heap_Size, __HEAP_SIZE
+#else
+ .equ Heap_Size, 2048
+#endif
+ .globl __HeapBase
+ .globl __HeapLimit
+__HeapBase:
+ .if Heap_Size
+ .space Heap_Size
+ .endif
+ .size __HeapBase, . - __HeapBase
+__HeapLimit:
+ .size __HeapLimit, . - __HeapLimit
+
+ .section .isr_vector
+ .align 2
+ .globl __isr_vector
+__isr_vector:
+ .long __StackTop /* Top of Stack */
+ .long Reset_Handler
+ .long NMI_Handler
+ .long HardFault_Handler
+ .long MemoryManagement_Handler
+ .long BusFault_Handler
+ .long UsageFault_Handler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long SVC_Handler
+ .long DebugMon_Handler
+ .long 0 /*Reserved */
+ .long PendSV_Handler
+ .long SysTick_Handler
+
+ /* External Interrupts */
+ .long POWER_CLOCK_IRQHandler
+ .long RADIO_IRQHandler
+ .long UARTE0_IRQHandler
+ .long TWIM0_TWIS0_IRQHandler
+ .long SPIM0_SPIS0_IRQHandler
+ .long 0 /*Reserved */
+ .long GPIOTE_IRQHandler
+ .long SAADC_IRQHandler
+ .long TIMER0_IRQHandler
+ .long TIMER1_IRQHandler
+ .long TIMER2_IRQHandler
+ .long RTC0_IRQHandler
+ .long TEMP_IRQHandler
+ .long RNG_IRQHandler
+ .long ECB_IRQHandler
+ .long CCM_AAR_IRQHandler
+ .long WDT_IRQHandler
+ .long RTC1_IRQHandler
+ .long QDEC_IRQHandler
+ .long COMP_IRQHandler
+ .long SWI0_EGU0_IRQHandler
+ .long SWI1_EGU1_IRQHandler
+ .long SWI2_IRQHandler
+ .long SWI3_IRQHandler
+ .long SWI4_IRQHandler
+ .long SWI5_IRQHandler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long PWM0_IRQHandler
+ .long PDM_IRQHandler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+
+ .size __isr_vector, . - __isr_vector
+
+/* Reset Handler */
+
+
+ .text
+ .thumb
+ .thumb_func
+ .align 1
+ .globl Reset_Handler
+ .type Reset_Handler, %function
+Reset_Handler:
+
+
+/* Loop to copy data from read only memory to RAM.
+ * The ranges of copy from/to are specified by following symbols:
+ * __etext: LMA of start of the section to copy from. Usually end of text
+ * __data_start__: VMA of start of the section to copy to.
+ * __bss_start__: VMA of end of the section to copy to. Normally __data_end__ is used, but by using __bss_start__
+ * the user can add their own initialized data section before BSS section with the INTERT AFTER command.
+ *
+ * All addresses must be aligned to 4 bytes boundary.
+ */
+ ldr r1, =__etext
+ ldr r2, =__data_start__
+ ldr r3, =__bss_start__
+
+ subs r3, r2
+ ble .L_loop1_done
+
+.L_loop1:
+ subs r3, #4
+ ldr r0, [r1,r3]
+ str r0, [r2,r3]
+ bgt .L_loop1
+
+.L_loop1_done:
+
+/* This part of work usually is done in C library startup code. Otherwise,
+ * define __STARTUP_CLEAR_BSS to enable it in this startup. This section
+ * clears the RAM where BSS data is located.
+ *
+ * The BSS section is specified by following symbols
+ * __bss_start__: start of the BSS section.
+ * __bss_end__: end of the BSS section.
+ *
+ * All addresses must be aligned to 4 bytes boundary.
+ */
+#ifdef __STARTUP_CLEAR_BSS
+ ldr r1, =__bss_start__
+ ldr r2, =__bss_end__
+
+ movs r0, 0
+
+ subs r2, r1
+ ble .L_loop3_done
+
+.L_loop3:
+ subs r2, #4
+ str r0, [r1, r2]
+ bgt .L_loop3
+
+.L_loop3_done:
+#endif /* __STARTUP_CLEAR_BSS */
+
+/* Execute SystemInit function. */
+ bl SystemInit
+
+/* Call _start function provided by libraries.
+ * If those libraries are not accessible, define __START as your entry point.
+ */
+#ifndef __START
+#define __START _start
+#endif
+ bl __START
+
+ .pool
+ .size Reset_Handler,.-Reset_Handler
+
+ .section ".text"
+
+
+/* Dummy Exception Handlers (infinite loops which can be modified) */
+
+ .weak NMI_Handler
+ .type NMI_Handler, %function
+NMI_Handler:
+ b .
+ .size NMI_Handler, . - NMI_Handler
+
+
+ .weak HardFault_Handler
+ .type HardFault_Handler, %function
+HardFault_Handler:
+ b .
+ .size HardFault_Handler, . - HardFault_Handler
+
+
+ .weak MemoryManagement_Handler
+ .type MemoryManagement_Handler, %function
+MemoryManagement_Handler:
+ b .
+ .size MemoryManagement_Handler, . - MemoryManagement_Handler
+
+
+ .weak BusFault_Handler
+ .type BusFault_Handler, %function
+BusFault_Handler:
+ b .
+ .size BusFault_Handler, . - BusFault_Handler
+
+
+ .weak UsageFault_Handler
+ .type UsageFault_Handler, %function
+UsageFault_Handler:
+ b .
+ .size UsageFault_Handler, . - UsageFault_Handler
+
+
+ .weak SVC_Handler
+ .type SVC_Handler, %function
+SVC_Handler:
+ b .
+ .size SVC_Handler, . - SVC_Handler
+
+
+ .weak DebugMon_Handler
+ .type DebugMon_Handler, %function
+DebugMon_Handler:
+ b .
+ .size DebugMon_Handler, . - DebugMon_Handler
+
+
+ .weak PendSV_Handler
+ .type PendSV_Handler, %function
+PendSV_Handler:
+ b .
+ .size PendSV_Handler, . - PendSV_Handler
+
+
+ .weak SysTick_Handler
+ .type SysTick_Handler, %function
+SysTick_Handler:
+ b .
+ .size SysTick_Handler, . - SysTick_Handler
+
+
+/* IRQ Handlers */
+
+ .globl Default_Handler
+ .type Default_Handler, %function
+Default_Handler:
+ b .
+ .size Default_Handler, . - Default_Handler
+
+ .macro IRQ handler
+ .weak \handler
+ .set \handler, Default_Handler
+ .endm
+
+ IRQ POWER_CLOCK_IRQHandler
+ IRQ RADIO_IRQHandler
+ IRQ UARTE0_IRQHandler
+ IRQ TWIM0_TWIS0_IRQHandler
+ IRQ SPIM0_SPIS0_IRQHandler
+ IRQ GPIOTE_IRQHandler
+ IRQ SAADC_IRQHandler
+ IRQ TIMER0_IRQHandler
+ IRQ TIMER1_IRQHandler
+ IRQ TIMER2_IRQHandler
+ IRQ RTC0_IRQHandler
+ IRQ TEMP_IRQHandler
+ IRQ RNG_IRQHandler
+ IRQ ECB_IRQHandler
+ IRQ CCM_AAR_IRQHandler
+ IRQ WDT_IRQHandler
+ IRQ RTC1_IRQHandler
+ IRQ QDEC_IRQHandler
+ IRQ COMP_IRQHandler
+ IRQ SWI0_EGU0_IRQHandler
+ IRQ SWI1_EGU1_IRQHandler
+ IRQ SWI2_IRQHandler
+ IRQ SWI3_IRQHandler
+ IRQ SWI4_IRQHandler
+ IRQ SWI5_IRQHandler
+ IRQ PWM0_IRQHandler
+ IRQ PDM_IRQHandler
+
+ .end
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf52840.S b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf52840.S
new file mode 100644
index 0000000..a8b6e8d
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/gcc_startup_nrf52840.S
@@ -0,0 +1,410 @@
+/*
+
+Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the License); you may
+not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an AS IS BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+*/
+
+ .syntax unified
+ .arch armv7e-m
+
+#ifdef __STARTUP_CONFIG
+#include "startup_config.h"
+#ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
+#define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+#endif
+#endif
+
+ .section .stack
+#if defined(__STARTUP_CONFIG)
+ .align __STARTUP_CONFIG_STACK_ALIGNEMENT
+ .equ Stack_Size, __STARTUP_CONFIG_STACK_SIZE
+#elif defined(__STACK_SIZE)
+ .align 3
+ .equ Stack_Size, __STACK_SIZE
+#else
+ .align 3
+ .equ Stack_Size, 8192
+#endif
+ .globl __StackTop
+ .globl __StackLimit
+__StackLimit:
+ .space Stack_Size
+ .size __StackLimit, . - __StackLimit
+__StackTop:
+ .size __StackTop, . - __StackTop
+
+ .section .heap
+ .align 3
+#if defined(__STARTUP_CONFIG)
+ .equ Heap_Size, __STARTUP_CONFIG_HEAP_SIZE
+#elif defined(__HEAP_SIZE)
+ .equ Heap_Size, __HEAP_SIZE
+#else
+ .equ Heap_Size, 8192
+#endif
+ .globl __HeapBase
+ .globl __HeapLimit
+__HeapBase:
+ .if Heap_Size
+ .space Heap_Size
+ .endif
+ .size __HeapBase, . - __HeapBase
+__HeapLimit:
+ .size __HeapLimit, . - __HeapLimit
+
+ .section .isr_vector
+ .align 2
+ .globl __isr_vector
+__isr_vector:
+ .long __StackTop /* Top of Stack */
+ .long Reset_Handler
+ .long NMI_Handler
+ .long HardFault_Handler
+ .long MemoryManagement_Handler
+ .long BusFault_Handler
+ .long UsageFault_Handler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long SVC_Handler
+ .long DebugMon_Handler
+ .long 0 /*Reserved */
+ .long PendSV_Handler
+ .long SysTick_Handler
+
+ /* External Interrupts */
+ .long POWER_CLOCK_IRQHandler
+ .long RADIO_IRQHandler
+ .long UARTE0_UART0_IRQHandler
+ .long SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ .long SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ .long NFCT_IRQHandler
+ .long GPIOTE_IRQHandler
+ .long SAADC_IRQHandler
+ .long TIMER0_IRQHandler
+ .long TIMER1_IRQHandler
+ .long TIMER2_IRQHandler
+ .long RTC0_IRQHandler
+ .long TEMP_IRQHandler
+ .long RNG_IRQHandler
+ .long ECB_IRQHandler
+ .long CCM_AAR_IRQHandler
+ .long WDT_IRQHandler
+ .long RTC1_IRQHandler
+ .long QDEC_IRQHandler
+ .long COMP_LPCOMP_IRQHandler
+ .long SWI0_EGU0_IRQHandler
+ .long SWI1_EGU1_IRQHandler
+ .long SWI2_EGU2_IRQHandler
+ .long SWI3_EGU3_IRQHandler
+ .long SWI4_EGU4_IRQHandler
+ .long SWI5_EGU5_IRQHandler
+ .long TIMER3_IRQHandler
+ .long TIMER4_IRQHandler
+ .long PWM0_IRQHandler
+ .long PDM_IRQHandler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long MWU_IRQHandler
+ .long PWM1_IRQHandler
+ .long PWM2_IRQHandler
+ .long SPIM2_SPIS2_SPI2_IRQHandler
+ .long RTC2_IRQHandler
+ .long I2S_IRQHandler
+ .long FPU_IRQHandler
+ .long USBD_IRQHandler
+ .long UARTE1_IRQHandler
+ .long QSPI_IRQHandler
+ .long CRYPTOCELL_IRQHandler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long PWM3_IRQHandler
+ .long 0 /*Reserved */
+ .long SPIM3_IRQHandler
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+ .long 0 /*Reserved */
+
+ .size __isr_vector, . - __isr_vector
+
+/* Reset Handler */
+
+
+ .text
+ .thumb
+ .thumb_func
+ .align 1
+ .globl Reset_Handler
+ .type Reset_Handler, %function
+Reset_Handler:
+
+
+/* Loop to copy data from read only memory to RAM.
+ * The ranges of copy from/to are specified by following symbols:
+ * __etext: LMA of start of the section to copy from. Usually end of text
+ * __data_start__: VMA of start of the section to copy to.
+ * __bss_start__: VMA of end of the section to copy to. Normally __data_end__ is used, but by using __bss_start__
+ * the user can add their own initialized data section before BSS section with the INTERT AFTER command.
+ *
+ * All addresses must be aligned to 4 bytes boundary.
+ */
+ ldr r1, =__etext
+ ldr r2, =__data_start__
+ ldr r3, =__bss_start__
+
+ subs r3, r2
+ ble .L_loop1_done
+
+.L_loop1:
+ subs r3, #4
+ ldr r0, [r1,r3]
+ str r0, [r2,r3]
+ bgt .L_loop1
+
+.L_loop1_done:
+
+/* This part of work usually is done in C library startup code. Otherwise,
+ * define __STARTUP_CLEAR_BSS to enable it in this startup. This section
+ * clears the RAM where BSS data is located.
+ *
+ * The BSS section is specified by following symbols
+ * __bss_start__: start of the BSS section.
+ * __bss_end__: end of the BSS section.
+ *
+ * All addresses must be aligned to 4 bytes boundary.
+ */
+#ifdef __STARTUP_CLEAR_BSS
+ ldr r1, =__bss_start__
+ ldr r2, =__bss_end__
+
+ movs r0, 0
+
+ subs r2, r1
+ ble .L_loop3_done
+
+.L_loop3:
+ subs r2, #4
+ str r0, [r1, r2]
+ bgt .L_loop3
+
+.L_loop3_done:
+#endif /* __STARTUP_CLEAR_BSS */
+
+/* Execute SystemInit function. */
+ bl SystemInit
+
+/* Call _start function provided by libraries.
+ * If those libraries are not accessible, define __START as your entry point.
+ */
+#ifndef __START
+#define __START _start
+#endif
+ bl __START
+
+ .pool
+ .size Reset_Handler,.-Reset_Handler
+
+ .section ".text"
+
+
+/* Dummy Exception Handlers (infinite loops which can be modified) */
+
+ .weak NMI_Handler
+ .type NMI_Handler, %function
+NMI_Handler:
+ b .
+ .size NMI_Handler, . - NMI_Handler
+
+
+ .weak HardFault_Handler
+ .type HardFault_Handler, %function
+HardFault_Handler:
+ b .
+ .size HardFault_Handler, . - HardFault_Handler
+
+
+ .weak MemoryManagement_Handler
+ .type MemoryManagement_Handler, %function
+MemoryManagement_Handler:
+ b .
+ .size MemoryManagement_Handler, . - MemoryManagement_Handler
+
+
+ .weak BusFault_Handler
+ .type BusFault_Handler, %function
+BusFault_Handler:
+ b .
+ .size BusFault_Handler, . - BusFault_Handler
+
+
+ .weak UsageFault_Handler
+ .type UsageFault_Handler, %function
+UsageFault_Handler:
+ b .
+ .size UsageFault_Handler, . - UsageFault_Handler
+
+
+ .weak SVC_Handler
+ .type SVC_Handler, %function
+SVC_Handler:
+ b .
+ .size SVC_Handler, . - SVC_Handler
+
+
+ .weak DebugMon_Handler
+ .type DebugMon_Handler, %function
+DebugMon_Handler:
+ b .
+ .size DebugMon_Handler, . - DebugMon_Handler
+
+
+ .weak PendSV_Handler
+ .type PendSV_Handler, %function
+PendSV_Handler:
+ b .
+ .size PendSV_Handler, . - PendSV_Handler
+
+
+ .weak SysTick_Handler
+ .type SysTick_Handler, %function
+SysTick_Handler:
+ b .
+ .size SysTick_Handler, . - SysTick_Handler
+
+
+/* IRQ Handlers */
+
+ .globl Default_Handler
+ .type Default_Handler, %function
+Default_Handler:
+ b .
+ .size Default_Handler, . - Default_Handler
+
+ .macro IRQ handler
+ .weak \handler
+ .set \handler, Default_Handler
+ .endm
+
+ IRQ POWER_CLOCK_IRQHandler
+ IRQ RADIO_IRQHandler
+ IRQ UARTE0_UART0_IRQHandler
+ IRQ SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ IRQ SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ IRQ NFCT_IRQHandler
+ IRQ GPIOTE_IRQHandler
+ IRQ SAADC_IRQHandler
+ IRQ TIMER0_IRQHandler
+ IRQ TIMER1_IRQHandler
+ IRQ TIMER2_IRQHandler
+ IRQ RTC0_IRQHandler
+ IRQ TEMP_IRQHandler
+ IRQ RNG_IRQHandler
+ IRQ ECB_IRQHandler
+ IRQ CCM_AAR_IRQHandler
+ IRQ WDT_IRQHandler
+ IRQ RTC1_IRQHandler
+ IRQ QDEC_IRQHandler
+ IRQ COMP_LPCOMP_IRQHandler
+ IRQ SWI0_EGU0_IRQHandler
+ IRQ SWI1_EGU1_IRQHandler
+ IRQ SWI2_EGU2_IRQHandler
+ IRQ SWI3_EGU3_IRQHandler
+ IRQ SWI4_EGU4_IRQHandler
+ IRQ SWI5_EGU5_IRQHandler
+ IRQ TIMER3_IRQHandler
+ IRQ TIMER4_IRQHandler
+ IRQ PWM0_IRQHandler
+ IRQ PDM_IRQHandler
+ IRQ MWU_IRQHandler
+ IRQ PWM1_IRQHandler
+ IRQ PWM2_IRQHandler
+ IRQ SPIM2_SPIS2_SPI2_IRQHandler
+ IRQ RTC2_IRQHandler
+ IRQ I2S_IRQHandler
+ IRQ FPU_IRQHandler
+ IRQ USBD_IRQHandler
+ IRQ UARTE1_IRQHandler
+ IRQ QSPI_IRQHandler
+ IRQ CRYPTOCELL_IRQHandler
+ IRQ PWM3_IRQHandler
+ IRQ SPIM3_IRQHandler
+
+ .end
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf51.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf51.s
new file mode 100644
index 0000000..bbd662e
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf51.s
@@ -0,0 +1,311 @@
+; Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+;
+; SPDX-License-Identifier: Apache-2.0
+;
+; Licensed under the Apache License, Version 2.0 (the License); you may
+; not use this file except in compliance with the License.
+; You may obtain a copy of the License at
+;
+; www.apache.org/licenses/LICENSE-2.0
+;
+; Unless required by applicable law or agreed to in writing, software
+; distributed under the License is distributed on an AS IS BASIS, WITHOUT
+; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+; See the License for the specific language governing permissions and
+; limitations under the License.
+;
+; NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+; The modules in this file are included in the libraries, and may be replaced
+; by any user-defined modules that define the PUBLIC symbol _program_start or
+; a user defined start symbol.
+; To override the cstartup defined in the library, simply add your modified
+; version to the workbench project.
+;
+; The vector table is normally located at address 0.
+; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.
+; The name "__vector_table" has special meaning for C-SPY:
+; it is where the SP start value is found, and the NVIC vector
+; table register (VTOR) is initialized to this address if != 0.
+
+ MODULE ?cstartup
+
+#if defined(__STARTUP_CONFIG)
+
+ #include "startup_config.h"
+
+ #ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
+ #define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+ #endif
+
+ SECTION CSTACK:DATA:NOROOT(__STARTUP_CONFIG_STACK_ALIGNEMENT)
+ DS8 __STARTUP_CONFIG_STACK_SIZE
+
+ SECTION HEAP:DATA:NOROOT(3)
+ DS8 __STARTUP_CONFIG_HEAP_SIZE
+
+#else
+
+ ;; Stack size default : Defined in *.icf (linker file). Can be modified inside EW.
+ ;; Heap size default : Defined in *.icf (linker file). Can be modified inside EW.
+
+ ;; Forward declaration of sections.
+ SECTION CSTACK:DATA:NOROOT(3)
+
+#endif
+
+
+ SECTION .intvec:CODE:NOROOT(2)
+
+ EXTERN __iar_program_start
+ EXTERN SystemInit
+ PUBLIC __vector_table
+ PUBLIC __Vectors
+ PUBLIC __Vectors_End
+ PUBLIC __Vectors_Size
+
+ DATA
+
+__vector_table
+ DCD sfe(CSTACK)
+ DCD Reset_Handler
+ DCD NMI_Handler
+ DCD HardFault_Handler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD SVC_Handler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD PendSV_Handler
+ DCD SysTick_Handler
+
+ ; External Interrupts
+ DCD POWER_CLOCK_IRQHandler
+ DCD RADIO_IRQHandler
+ DCD UART0_IRQHandler
+ DCD SPI0_TWI0_IRQHandler
+ DCD SPI1_TWI1_IRQHandler
+ DCD 0 ; Reserved
+ DCD GPIOTE_IRQHandler
+ DCD ADC_IRQHandler
+ DCD TIMER0_IRQHandler
+ DCD TIMER1_IRQHandler
+ DCD TIMER2_IRQHandler
+ DCD RTC0_IRQHandler
+ DCD TEMP_IRQHandler
+ DCD RNG_IRQHandler
+ DCD ECB_IRQHandler
+ DCD CCM_AAR_IRQHandler
+ DCD WDT_IRQHandler
+ DCD RTC1_IRQHandler
+ DCD QDEC_IRQHandler
+ DCD LPCOMP_IRQHandler
+ DCD SWI0_IRQHandler
+ DCD SWI1_IRQHandler
+ DCD SWI2_IRQHandler
+ DCD SWI3_IRQHandler
+ DCD SWI4_IRQHandler
+ DCD SWI5_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+
+__Vectors_End
+__Vectors EQU __vector_table
+__Vectors_Size EQU __Vectors_End - __Vectors
+
+NRF_POWER_RAMON_ADDRESS EQU 0x40000524 ; NRF_POWER->RAMON address
+NRF_POWER_RAMONB_ADDRESS EQU 0x40000554 ; NRF_POWER->RAMONB address
+NRF_POWER_RAMONx_RAMxON_ONMODE_Msk EQU 0x3 ; All RAM blocks on in onmode bit mask
+
+; Default handlers.
+ THUMB
+
+ PUBWEAK Reset_Handler
+ SECTION .text:CODE:REORDER:NOROOT(2)
+Reset_Handler
+ MOVS R1, #NRF_POWER_RAMONx_RAMxON_ONMODE_Msk
+
+ LDR R0, =NRF_POWER_RAMON_ADDRESS
+ LDR R2, [R0]
+ ORRS R2, R2, R1
+ STR R2, [R0]
+
+ LDR R0, =NRF_POWER_RAMONB_ADDRESS
+ LDR R2, [R0]
+ ORRS R2, R2, R1
+ STR R2, [R0]
+
+ LDR R0, =SystemInit
+ BLX R0
+ LDR R0, =__iar_program_start
+ BX R0
+
+ ; Dummy exception handlers
+
+
+ PUBWEAK NMI_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+NMI_Handler
+ B .
+
+ PUBWEAK HardFault_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+HardFault_Handler
+ B .
+
+ PUBWEAK SVC_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SVC_Handler
+ B .
+
+ PUBWEAK PendSV_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PendSV_Handler
+ B .
+
+ PUBWEAK SysTick_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SysTick_Handler
+ B .
+
+
+ ; Dummy interrupt handlers
+
+ PUBWEAK POWER_CLOCK_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+POWER_CLOCK_IRQHandler
+ B .
+
+ PUBWEAK RADIO_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RADIO_IRQHandler
+ B .
+
+ PUBWEAK UART0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+UART0_IRQHandler
+ B .
+
+ PUBWEAK SPI0_TWI0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SPI0_TWI0_IRQHandler
+ B .
+
+ PUBWEAK SPI1_TWI1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SPI1_TWI1_IRQHandler
+ B .
+
+ PUBWEAK GPIOTE_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+GPIOTE_IRQHandler
+ B .
+
+ PUBWEAK ADC_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+ADC_IRQHandler
+ B .
+
+ PUBWEAK TIMER0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER0_IRQHandler
+ B .
+
+ PUBWEAK TIMER1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER1_IRQHandler
+ B .
+
+ PUBWEAK TIMER2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER2_IRQHandler
+ B .
+
+ PUBWEAK RTC0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RTC0_IRQHandler
+ B .
+
+ PUBWEAK TEMP_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TEMP_IRQHandler
+ B .
+
+ PUBWEAK RNG_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RNG_IRQHandler
+ B .
+
+ PUBWEAK ECB_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+ECB_IRQHandler
+ B .
+
+ PUBWEAK CCM_AAR_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+CCM_AAR_IRQHandler
+ B .
+
+ PUBWEAK WDT_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+WDT_IRQHandler
+ B .
+
+ PUBWEAK RTC1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RTC1_IRQHandler
+ B .
+
+ PUBWEAK QDEC_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+QDEC_IRQHandler
+ B .
+
+ PUBWEAK LPCOMP_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+LPCOMP_IRQHandler
+ B .
+
+ PUBWEAK SWI0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI0_IRQHandler
+ B .
+
+ PUBWEAK SWI1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI1_IRQHandler
+ B .
+
+ PUBWEAK SWI2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI2_IRQHandler
+ B .
+
+ PUBWEAK SWI3_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI3_IRQHandler
+ B .
+
+ PUBWEAK SWI4_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI4_IRQHandler
+ B .
+
+ PUBWEAK SWI5_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI5_IRQHandler
+ B .
+
+
+ END
+
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf52.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf52.s
new file mode 100644
index 0000000..904c719
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf52.s
@@ -0,0 +1,457 @@
+; Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+;
+; SPDX-License-Identifier: Apache-2.0
+;
+; Licensed under the Apache License, Version 2.0 (the License); you may
+; not use this file except in compliance with the License.
+; You may obtain a copy of the License at
+;
+; www.apache.org/licenses/LICENSE-2.0
+;
+; Unless required by applicable law or agreed to in writing, software
+; distributed under the License is distributed on an AS IS BASIS, WITHOUT
+; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+; See the License for the specific language governing permissions and
+; limitations under the License.
+;
+; NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+; The modules in this file are included in the libraries, and may be replaced
+; by any user-defined modules that define the PUBLIC symbol _program_start or
+; a user defined start symbol.
+; To override the cstartup defined in the library, simply add your modified
+; version to the workbench project.
+;
+; The vector table is normally located at address 0.
+; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.
+; The name "__vector_table" has special meaning for C-SPY:
+; it is where the SP start value is found, and the NVIC vector
+; table register (VTOR) is initialized to this address if != 0.
+
+ MODULE ?cstartup
+
+#if defined(__STARTUP_CONFIG)
+
+ #include "startup_config.h"
+
+ #ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
+ #define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+ #endif
+
+ SECTION CSTACK:DATA:NOROOT(__STARTUP_CONFIG_STACK_ALIGNEMENT)
+ DS8 __STARTUP_CONFIG_STACK_SIZE
+
+ SECTION HEAP:DATA:NOROOT(3)
+ DS8 __STARTUP_CONFIG_HEAP_SIZE
+
+#else
+
+ ;; Stack size default : Defined in *.icf (linker file). Can be modified inside EW.
+ ;; Heap size default : Defined in *.icf (linker file). Can be modified inside EW.
+
+ ;; Forward declaration of sections.
+ SECTION CSTACK:DATA:NOROOT(3)
+
+#endif
+
+
+ SECTION .intvec:CODE:NOROOT(2)
+
+ EXTERN __iar_program_start
+ EXTERN SystemInit
+ PUBLIC __vector_table
+ PUBLIC __Vectors
+ PUBLIC __Vectors_End
+ PUBLIC __Vectors_Size
+
+ DATA
+
+__vector_table
+ DCD sfe(CSTACK)
+ DCD Reset_Handler
+ DCD NMI_Handler
+ DCD HardFault_Handler
+ DCD MemoryManagement_Handler
+ DCD BusFault_Handler
+ DCD UsageFault_Handler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD SVC_Handler
+ DCD DebugMon_Handler
+ DCD 0 ; Reserved
+ DCD PendSV_Handler
+ DCD SysTick_Handler
+
+ ; External Interrupts
+ DCD POWER_CLOCK_IRQHandler
+ DCD RADIO_IRQHandler
+ DCD UARTE0_UART0_IRQHandler
+ DCD SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ DCD SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ DCD NFCT_IRQHandler
+ DCD GPIOTE_IRQHandler
+ DCD SAADC_IRQHandler
+ DCD TIMER0_IRQHandler
+ DCD TIMER1_IRQHandler
+ DCD TIMER2_IRQHandler
+ DCD RTC0_IRQHandler
+ DCD TEMP_IRQHandler
+ DCD RNG_IRQHandler
+ DCD ECB_IRQHandler
+ DCD CCM_AAR_IRQHandler
+ DCD WDT_IRQHandler
+ DCD RTC1_IRQHandler
+ DCD QDEC_IRQHandler
+ DCD COMP_LPCOMP_IRQHandler
+ DCD SWI0_EGU0_IRQHandler
+ DCD SWI1_EGU1_IRQHandler
+ DCD SWI2_EGU2_IRQHandler
+ DCD SWI3_EGU3_IRQHandler
+ DCD SWI4_EGU4_IRQHandler
+ DCD SWI5_EGU5_IRQHandler
+ DCD TIMER3_IRQHandler
+ DCD TIMER4_IRQHandler
+ DCD PWM0_IRQHandler
+ DCD PDM_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD MWU_IRQHandler
+ DCD PWM1_IRQHandler
+ DCD PWM2_IRQHandler
+ DCD SPIM2_SPIS2_SPI2_IRQHandler
+ DCD RTC2_IRQHandler
+ DCD I2S_IRQHandler
+ DCD FPU_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+
+__Vectors_End
+__Vectors EQU __vector_table
+__Vectors_Size EQU __Vectors_End - __Vectors
+
+
+; Default handlers.
+ THUMB
+
+ PUBWEAK Reset_Handler
+ SECTION .text:CODE:REORDER:NOROOT(2)
+Reset_Handler
+
+ LDR R0, =SystemInit
+ BLX R0
+ LDR R0, =__iar_program_start
+ BX R0
+
+ ; Dummy exception handlers
+
+
+ PUBWEAK NMI_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+NMI_Handler
+ B .
+
+ PUBWEAK HardFault_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+HardFault_Handler
+ B .
+
+ PUBWEAK MemoryManagement_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+MemoryManagement_Handler
+ B .
+
+ PUBWEAK BusFault_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+BusFault_Handler
+ B .
+
+ PUBWEAK UsageFault_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+UsageFault_Handler
+ B .
+
+ PUBWEAK SVC_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SVC_Handler
+ B .
+
+ PUBWEAK DebugMon_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+DebugMon_Handler
+ B .
+
+ PUBWEAK PendSV_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PendSV_Handler
+ B .
+
+ PUBWEAK SysTick_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SysTick_Handler
+ B .
+
+
+ ; Dummy interrupt handlers
+
+ PUBWEAK POWER_CLOCK_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+POWER_CLOCK_IRQHandler
+ B .
+
+ PUBWEAK RADIO_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RADIO_IRQHandler
+ B .
+
+ PUBWEAK UARTE0_UART0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+UARTE0_UART0_IRQHandler
+ B .
+
+ PUBWEAK SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ B .
+
+ PUBWEAK SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ B .
+
+ PUBWEAK NFCT_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+NFCT_IRQHandler
+ B .
+
+ PUBWEAK GPIOTE_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+GPIOTE_IRQHandler
+ B .
+
+ PUBWEAK SAADC_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SAADC_IRQHandler
+ B .
+
+ PUBWEAK TIMER0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER0_IRQHandler
+ B .
+
+ PUBWEAK TIMER1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER1_IRQHandler
+ B .
+
+ PUBWEAK TIMER2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER2_IRQHandler
+ B .
+
+ PUBWEAK RTC0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RTC0_IRQHandler
+ B .
+
+ PUBWEAK TEMP_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TEMP_IRQHandler
+ B .
+
+ PUBWEAK RNG_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RNG_IRQHandler
+ B .
+
+ PUBWEAK ECB_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+ECB_IRQHandler
+ B .
+
+ PUBWEAK CCM_AAR_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+CCM_AAR_IRQHandler
+ B .
+
+ PUBWEAK WDT_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+WDT_IRQHandler
+ B .
+
+ PUBWEAK RTC1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RTC1_IRQHandler
+ B .
+
+ PUBWEAK QDEC_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+QDEC_IRQHandler
+ B .
+
+ PUBWEAK COMP_LPCOMP_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+COMP_LPCOMP_IRQHandler
+ B .
+
+ PUBWEAK SWI0_EGU0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI0_EGU0_IRQHandler
+ B .
+
+ PUBWEAK SWI1_EGU1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI1_EGU1_IRQHandler
+ B .
+
+ PUBWEAK SWI2_EGU2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI2_EGU2_IRQHandler
+ B .
+
+ PUBWEAK SWI3_EGU3_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI3_EGU3_IRQHandler
+ B .
+
+ PUBWEAK SWI4_EGU4_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI4_EGU4_IRQHandler
+ B .
+
+ PUBWEAK SWI5_EGU5_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI5_EGU5_IRQHandler
+ B .
+
+ PUBWEAK TIMER3_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER3_IRQHandler
+ B .
+
+ PUBWEAK TIMER4_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER4_IRQHandler
+ B .
+
+ PUBWEAK PWM0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PWM0_IRQHandler
+ B .
+
+ PUBWEAK PDM_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PDM_IRQHandler
+ B .
+
+ PUBWEAK MWU_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+MWU_IRQHandler
+ B .
+
+ PUBWEAK PWM1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PWM1_IRQHandler
+ B .
+
+ PUBWEAK PWM2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PWM2_IRQHandler
+ B .
+
+ PUBWEAK SPIM2_SPIS2_SPI2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SPIM2_SPIS2_SPI2_IRQHandler
+ B .
+
+ PUBWEAK RTC2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RTC2_IRQHandler
+ B .
+
+ PUBWEAK I2S_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+I2S_IRQHandler
+ B .
+
+ PUBWEAK FPU_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+FPU_IRQHandler
+ B .
+
+
+ END
+
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf52810.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf52810.s
new file mode 100644
index 0000000..eff0a97
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf52810.s
@@ -0,0 +1,407 @@
+; Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+;
+; SPDX-License-Identifier: Apache-2.0
+;
+; Licensed under the Apache License, Version 2.0 (the License); you may
+; not use this file except in compliance with the License.
+; You may obtain a copy of the License at
+;
+; www.apache.org/licenses/LICENSE-2.0
+;
+; Unless required by applicable law or agreed to in writing, software
+; distributed under the License is distributed on an AS IS BASIS, WITHOUT
+; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+; See the License for the specific language governing permissions and
+; limitations under the License.
+;
+; NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+; The modules in this file are included in the libraries, and may be replaced
+; by any user-defined modules that define the PUBLIC symbol _program_start or
+; a user defined start symbol.
+; To override the cstartup defined in the library, simply add your modified
+; version to the workbench project.
+;
+; The vector table is normally located at address 0.
+; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.
+; The name "__vector_table" has special meaning for C-SPY:
+; it is where the SP start value is found, and the NVIC vector
+; table register (VTOR) is initialized to this address if != 0.
+
+ MODULE ?cstartup
+
+#if defined(__STARTUP_CONFIG)
+
+ #include "startup_config.h"
+
+ #ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
+ #define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+ #endif
+
+ SECTION CSTACK:DATA:NOROOT(__STARTUP_CONFIG_STACK_ALIGNEMENT)
+ DS8 __STARTUP_CONFIG_STACK_SIZE
+
+ SECTION HEAP:DATA:NOROOT(3)
+ DS8 __STARTUP_CONFIG_HEAP_SIZE
+
+#else
+
+ ;; Stack size default : Defined in *.icf (linker file). Can be modified inside EW.
+ ;; Heap size default : Defined in *.icf (linker file). Can be modified inside EW.
+
+ ;; Forward declaration of sections.
+ SECTION CSTACK:DATA:NOROOT(3)
+
+#endif
+
+
+ SECTION .intvec:CODE:NOROOT(2)
+
+ EXTERN __iar_program_start
+ EXTERN SystemInit
+ PUBLIC __vector_table
+ PUBLIC __Vectors
+ PUBLIC __Vectors_End
+ PUBLIC __Vectors_Size
+
+ DATA
+
+__vector_table
+ DCD sfe(CSTACK)
+ DCD Reset_Handler
+ DCD NMI_Handler
+ DCD HardFault_Handler
+ DCD MemoryManagement_Handler
+ DCD BusFault_Handler
+ DCD UsageFault_Handler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD SVC_Handler
+ DCD DebugMon_Handler
+ DCD 0 ; Reserved
+ DCD PendSV_Handler
+ DCD SysTick_Handler
+
+ ; External Interrupts
+ DCD POWER_CLOCK_IRQHandler
+ DCD RADIO_IRQHandler
+ DCD UARTE0_IRQHandler
+ DCD TWIM0_TWIS0_IRQHandler
+ DCD SPIM0_SPIS0_IRQHandler
+ DCD 0 ; Reserved
+ DCD GPIOTE_IRQHandler
+ DCD SAADC_IRQHandler
+ DCD TIMER0_IRQHandler
+ DCD TIMER1_IRQHandler
+ DCD TIMER2_IRQHandler
+ DCD RTC0_IRQHandler
+ DCD TEMP_IRQHandler
+ DCD RNG_IRQHandler
+ DCD ECB_IRQHandler
+ DCD CCM_AAR_IRQHandler
+ DCD WDT_IRQHandler
+ DCD RTC1_IRQHandler
+ DCD QDEC_IRQHandler
+ DCD COMP_IRQHandler
+ DCD SWI0_EGU0_IRQHandler
+ DCD SWI1_EGU1_IRQHandler
+ DCD SWI2_IRQHandler
+ DCD SWI3_IRQHandler
+ DCD SWI4_IRQHandler
+ DCD SWI5_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD PWM0_IRQHandler
+ DCD PDM_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+
+__Vectors_End
+__Vectors EQU __vector_table
+__Vectors_Size EQU __Vectors_End - __Vectors
+
+
+; Default handlers.
+ THUMB
+
+ PUBWEAK Reset_Handler
+ SECTION .text:CODE:REORDER:NOROOT(2)
+Reset_Handler
+
+ LDR R0, =SystemInit
+ BLX R0
+ LDR R0, =__iar_program_start
+ BX R0
+
+ ; Dummy exception handlers
+
+
+ PUBWEAK NMI_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+NMI_Handler
+ B .
+
+ PUBWEAK HardFault_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+HardFault_Handler
+ B .
+
+ PUBWEAK MemoryManagement_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+MemoryManagement_Handler
+ B .
+
+ PUBWEAK BusFault_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+BusFault_Handler
+ B .
+
+ PUBWEAK UsageFault_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+UsageFault_Handler
+ B .
+
+ PUBWEAK SVC_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SVC_Handler
+ B .
+
+ PUBWEAK DebugMon_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+DebugMon_Handler
+ B .
+
+ PUBWEAK PendSV_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PendSV_Handler
+ B .
+
+ PUBWEAK SysTick_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SysTick_Handler
+ B .
+
+
+ ; Dummy interrupt handlers
+
+ PUBWEAK POWER_CLOCK_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+POWER_CLOCK_IRQHandler
+ B .
+
+ PUBWEAK RADIO_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RADIO_IRQHandler
+ B .
+
+ PUBWEAK UARTE0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+UARTE0_IRQHandler
+ B .
+
+ PUBWEAK TWIM0_TWIS0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TWIM0_TWIS0_IRQHandler
+ B .
+
+ PUBWEAK SPIM0_SPIS0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SPIM0_SPIS0_IRQHandler
+ B .
+
+ PUBWEAK GPIOTE_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+GPIOTE_IRQHandler
+ B .
+
+ PUBWEAK SAADC_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SAADC_IRQHandler
+ B .
+
+ PUBWEAK TIMER0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER0_IRQHandler
+ B .
+
+ PUBWEAK TIMER1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER1_IRQHandler
+ B .
+
+ PUBWEAK TIMER2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER2_IRQHandler
+ B .
+
+ PUBWEAK RTC0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RTC0_IRQHandler
+ B .
+
+ PUBWEAK TEMP_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TEMP_IRQHandler
+ B .
+
+ PUBWEAK RNG_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RNG_IRQHandler
+ B .
+
+ PUBWEAK ECB_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+ECB_IRQHandler
+ B .
+
+ PUBWEAK CCM_AAR_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+CCM_AAR_IRQHandler
+ B .
+
+ PUBWEAK WDT_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+WDT_IRQHandler
+ B .
+
+ PUBWEAK RTC1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RTC1_IRQHandler
+ B .
+
+ PUBWEAK QDEC_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+QDEC_IRQHandler
+ B .
+
+ PUBWEAK COMP_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+COMP_IRQHandler
+ B .
+
+ PUBWEAK SWI0_EGU0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI0_EGU0_IRQHandler
+ B .
+
+ PUBWEAK SWI1_EGU1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI1_EGU1_IRQHandler
+ B .
+
+ PUBWEAK SWI2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI2_IRQHandler
+ B .
+
+ PUBWEAK SWI3_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI3_IRQHandler
+ B .
+
+ PUBWEAK SWI4_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI4_IRQHandler
+ B .
+
+ PUBWEAK SWI5_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI5_IRQHandler
+ B .
+
+ PUBWEAK PWM0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PWM0_IRQHandler
+ B .
+
+ PUBWEAK PDM_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PDM_IRQHandler
+ B .
+
+
+ END
+
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf52840.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf52840.s
new file mode 100644
index 0000000..c21cbcf
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/iar_startup_nrf52840.s
@@ -0,0 +1,487 @@
+; Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+;
+; SPDX-License-Identifier: Apache-2.0
+;
+; Licensed under the Apache License, Version 2.0 (the License); you may
+; not use this file except in compliance with the License.
+; You may obtain a copy of the License at
+;
+; www.apache.org/licenses/LICENSE-2.0
+;
+; Unless required by applicable law or agreed to in writing, software
+; distributed under the License is distributed on an AS IS BASIS, WITHOUT
+; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+; See the License for the specific language governing permissions and
+; limitations under the License.
+;
+; NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+; The modules in this file are included in the libraries, and may be replaced
+; by any user-defined modules that define the PUBLIC symbol _program_start or
+; a user defined start symbol.
+; To override the cstartup defined in the library, simply add your modified
+; version to the workbench project.
+;
+; The vector table is normally located at address 0.
+; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.
+; The name "__vector_table" has special meaning for C-SPY:
+; it is where the SP start value is found, and the NVIC vector
+; table register (VTOR) is initialized to this address if != 0.
+
+ MODULE ?cstartup
+
+#if defined(__STARTUP_CONFIG)
+
+ #include "startup_config.h"
+
+ #ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
+ #define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+ #endif
+
+ SECTION CSTACK:DATA:NOROOT(__STARTUP_CONFIG_STACK_ALIGNEMENT)
+ DS8 __STARTUP_CONFIG_STACK_SIZE
+
+ SECTION HEAP:DATA:NOROOT(3)
+ DS8 __STARTUP_CONFIG_HEAP_SIZE
+
+#else
+
+ ;; Stack size default : Defined in *.icf (linker file). Can be modified inside EW.
+ ;; Heap size default : Defined in *.icf (linker file). Can be modified inside EW.
+
+ ;; Forward declaration of sections.
+ SECTION CSTACK:DATA:NOROOT(3)
+
+#endif
+
+
+ SECTION .intvec:CODE:NOROOT(2)
+
+ EXTERN __iar_program_start
+ EXTERN SystemInit
+ PUBLIC __vector_table
+ PUBLIC __Vectors
+ PUBLIC __Vectors_End
+ PUBLIC __Vectors_Size
+
+ DATA
+
+__vector_table
+ DCD sfe(CSTACK)
+ DCD Reset_Handler
+ DCD NMI_Handler
+ DCD HardFault_Handler
+ DCD MemoryManagement_Handler
+ DCD BusFault_Handler
+ DCD UsageFault_Handler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD SVC_Handler
+ DCD DebugMon_Handler
+ DCD 0 ; Reserved
+ DCD PendSV_Handler
+ DCD SysTick_Handler
+
+ ; External Interrupts
+ DCD POWER_CLOCK_IRQHandler
+ DCD RADIO_IRQHandler
+ DCD UARTE0_UART0_IRQHandler
+ DCD SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ DCD SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ DCD NFCT_IRQHandler
+ DCD GPIOTE_IRQHandler
+ DCD SAADC_IRQHandler
+ DCD TIMER0_IRQHandler
+ DCD TIMER1_IRQHandler
+ DCD TIMER2_IRQHandler
+ DCD RTC0_IRQHandler
+ DCD TEMP_IRQHandler
+ DCD RNG_IRQHandler
+ DCD ECB_IRQHandler
+ DCD CCM_AAR_IRQHandler
+ DCD WDT_IRQHandler
+ DCD RTC1_IRQHandler
+ DCD QDEC_IRQHandler
+ DCD COMP_LPCOMP_IRQHandler
+ DCD SWI0_EGU0_IRQHandler
+ DCD SWI1_EGU1_IRQHandler
+ DCD SWI2_EGU2_IRQHandler
+ DCD SWI3_EGU3_IRQHandler
+ DCD SWI4_EGU4_IRQHandler
+ DCD SWI5_EGU5_IRQHandler
+ DCD TIMER3_IRQHandler
+ DCD TIMER4_IRQHandler
+ DCD PWM0_IRQHandler
+ DCD PDM_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD MWU_IRQHandler
+ DCD PWM1_IRQHandler
+ DCD PWM2_IRQHandler
+ DCD SPIM2_SPIS2_SPI2_IRQHandler
+ DCD RTC2_IRQHandler
+ DCD I2S_IRQHandler
+ DCD FPU_IRQHandler
+ DCD USBD_IRQHandler
+ DCD UARTE1_IRQHandler
+ DCD QSPI_IRQHandler
+ DCD CRYPTOCELL_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD PWM3_IRQHandler
+ DCD 0 ; Reserved
+ DCD SPIM3_IRQHandler
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+ DCD 0 ; Reserved
+
+__Vectors_End
+__Vectors EQU __vector_table
+__Vectors_Size EQU __Vectors_End - __Vectors
+
+
+; Default handlers.
+ THUMB
+
+ PUBWEAK Reset_Handler
+ SECTION .text:CODE:REORDER:NOROOT(2)
+Reset_Handler
+
+ LDR R0, =SystemInit
+ BLX R0
+ LDR R0, =__iar_program_start
+ BX R0
+
+ ; Dummy exception handlers
+
+
+ PUBWEAK NMI_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+NMI_Handler
+ B .
+
+ PUBWEAK HardFault_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+HardFault_Handler
+ B .
+
+ PUBWEAK MemoryManagement_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+MemoryManagement_Handler
+ B .
+
+ PUBWEAK BusFault_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+BusFault_Handler
+ B .
+
+ PUBWEAK UsageFault_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+UsageFault_Handler
+ B .
+
+ PUBWEAK SVC_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SVC_Handler
+ B .
+
+ PUBWEAK DebugMon_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+DebugMon_Handler
+ B .
+
+ PUBWEAK PendSV_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PendSV_Handler
+ B .
+
+ PUBWEAK SysTick_Handler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SysTick_Handler
+ B .
+
+
+ ; Dummy interrupt handlers
+
+ PUBWEAK POWER_CLOCK_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+POWER_CLOCK_IRQHandler
+ B .
+
+ PUBWEAK RADIO_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RADIO_IRQHandler
+ B .
+
+ PUBWEAK UARTE0_UART0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+UARTE0_UART0_IRQHandler
+ B .
+
+ PUBWEAK SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ B .
+
+ PUBWEAK SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ B .
+
+ PUBWEAK NFCT_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+NFCT_IRQHandler
+ B .
+
+ PUBWEAK GPIOTE_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+GPIOTE_IRQHandler
+ B .
+
+ PUBWEAK SAADC_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SAADC_IRQHandler
+ B .
+
+ PUBWEAK TIMER0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER0_IRQHandler
+ B .
+
+ PUBWEAK TIMER1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER1_IRQHandler
+ B .
+
+ PUBWEAK TIMER2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER2_IRQHandler
+ B .
+
+ PUBWEAK RTC0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RTC0_IRQHandler
+ B .
+
+ PUBWEAK TEMP_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TEMP_IRQHandler
+ B .
+
+ PUBWEAK RNG_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RNG_IRQHandler
+ B .
+
+ PUBWEAK ECB_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+ECB_IRQHandler
+ B .
+
+ PUBWEAK CCM_AAR_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+CCM_AAR_IRQHandler
+ B .
+
+ PUBWEAK WDT_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+WDT_IRQHandler
+ B .
+
+ PUBWEAK RTC1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RTC1_IRQHandler
+ B .
+
+ PUBWEAK QDEC_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+QDEC_IRQHandler
+ B .
+
+ PUBWEAK COMP_LPCOMP_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+COMP_LPCOMP_IRQHandler
+ B .
+
+ PUBWEAK SWI0_EGU0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI0_EGU0_IRQHandler
+ B .
+
+ PUBWEAK SWI1_EGU1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI1_EGU1_IRQHandler
+ B .
+
+ PUBWEAK SWI2_EGU2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI2_EGU2_IRQHandler
+ B .
+
+ PUBWEAK SWI3_EGU3_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI3_EGU3_IRQHandler
+ B .
+
+ PUBWEAK SWI4_EGU4_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI4_EGU4_IRQHandler
+ B .
+
+ PUBWEAK SWI5_EGU5_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SWI5_EGU5_IRQHandler
+ B .
+
+ PUBWEAK TIMER3_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER3_IRQHandler
+ B .
+
+ PUBWEAK TIMER4_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+TIMER4_IRQHandler
+ B .
+
+ PUBWEAK PWM0_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PWM0_IRQHandler
+ B .
+
+ PUBWEAK PDM_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PDM_IRQHandler
+ B .
+
+ PUBWEAK MWU_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+MWU_IRQHandler
+ B .
+
+ PUBWEAK PWM1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PWM1_IRQHandler
+ B .
+
+ PUBWEAK PWM2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PWM2_IRQHandler
+ B .
+
+ PUBWEAK SPIM2_SPIS2_SPI2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SPIM2_SPIS2_SPI2_IRQHandler
+ B .
+
+ PUBWEAK RTC2_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+RTC2_IRQHandler
+ B .
+
+ PUBWEAK I2S_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+I2S_IRQHandler
+ B .
+
+ PUBWEAK FPU_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+FPU_IRQHandler
+ B .
+
+ PUBWEAK USBD_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+USBD_IRQHandler
+ B .
+
+ PUBWEAK UARTE1_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+UARTE1_IRQHandler
+ B .
+
+ PUBWEAK QSPI_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+QSPI_IRQHandler
+ B .
+
+ PUBWEAK CRYPTOCELL_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+CRYPTOCELL_IRQHandler
+ B .
+
+ PUBWEAK PWM3_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+PWM3_IRQHandler
+ B .
+
+ PUBWEAK SPIM3_IRQHandler
+ SECTION .text:CODE:REORDER:NOROOT(1)
+SPIM3_IRQHandler
+ B .
+
+
+ END
+
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nRFxxx.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nRFxxx.h
new file mode 100644
index 0000000..ba72052
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nRFxxx.h
@@ -0,0 +1,21 @@
+/*****************************************************************************
+ * SEGGER Microcontroller GmbH & Co. KG *
+ * Solutions for real time microcontroller applications *
+ *****************************************************************************
+ * *
+ * (c) 2017 SEGGER Microcontroller GmbH & Co. KG *
+ * *
+ * Internet: www.segger.com Support: support@segger.com *
+ * *
+ *****************************************************************************/
+
+#ifndef __nRFxxx_h
+#define __nRFxxx_h
+
+#if defined(NRF51) || defined(NRF51) || defined(NRF51) || defined(NRF51) || defined(NRF51) || defined(NRF51) || defined(NRF51) || defined(NRF51) || defined(NRF52) || defined(NRF52832_XXAB) || defined(NRF52840_XXAA)
+
+#include "nrf.h"
+
+#endif
+
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf.h
new file mode 100644
index 0000000..f0bfec3
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf.h
@@ -0,0 +1,102 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef NRF_H
+#define NRF_H
+
+/* MDK version */
+#define MDK_MAJOR_VERSION 8
+#define MDK_MINOR_VERSION 16
+#define MDK_MICRO_VERSION 0
+
+/* Redefine "old" too-generic name NRF52 to NRF52832_XXAA to keep backwards compatibility. */
+#if defined (NRF52)
+ #ifndef NRF52832_XXAA
+ #define NRF52832_XXAA
+ #endif
+#endif
+
+/* Define NRF52_SERIES for common use in nRF52 series devices. Only if not previously defined. */
+#if defined (NRF52810_XXAA) || defined (NRF52832_XXAA) || defined (NRF52832_XXAB) || defined (NRF52840_XXAA)
+ #ifndef NRF52_SERIES
+ #define NRF52_SERIES
+ #endif
+#endif
+
+
+#if defined(_WIN32)
+ /* Do not include nrf specific files when building for PC host */
+#elif defined(__unix)
+ /* Do not include nrf specific files when building for PC host */
+#elif defined(__APPLE__)
+ /* Do not include nrf specific files when building for PC host */
+#else
+
+ /* Device selection for device includes. */
+ #if defined (NRF51)
+ #include "nrf51.h"
+ #include "nrf51_bitfields.h"
+ #include "nrf51_deprecated.h"
+ #elif defined (NRF52840_XXAA)
+ #include "nrf52840.h"
+ #include "nrf52840_bitfields.h"
+ #include "nrf51_to_nrf52840.h"
+ #include "nrf52_to_nrf52840.h"
+ #elif defined (NRF52832_XXAA) || defined (NRF52832_XXAB)
+ #include "nrf52.h"
+ #include "nrf52_bitfields.h"
+ #include "nrf51_to_nrf52.h"
+ #include "nrf52_name_change.h"
+ #elif defined (NRF52810_XXAA)
+ #include "nrf52810.h"
+ #include "nrf52810_bitfields.h"
+ #include "nrf51_to_nrf52810.h"
+ #include "nrf52_to_nrf52810.h"
+ #else
+ #error "Device must be defined. See nrf.h."
+ #endif /* NRF51, NRF52832_XXAA, NRF52832_XXAB, NRF52810_XXAA, NRF52840_XXAA */
+
+ #include "compiler_abstraction.h"
+
+#endif /* _WIN32 || __unix || __APPLE__ */
+
+#endif /* NRF_H */
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51.h
new file mode 100644
index 0000000..b716765
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51.h
@@ -0,0 +1,1202 @@
+
+/****************************************************************************************************//**
+ * @file nrf51.h
+ *
+ * @brief CMSIS Cortex-M0 Peripheral Access Layer Header File for
+ * nrf51 from Nordic Semiconductor.
+ *
+ * @version V522
+ * @date 8. March 2018
+ *
+ * @note Generated with SVDConv V2.81d
+ * from CMSIS SVD File 'nrf51.svd' Version 522,
+ *
+ * @par Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ *
+ *******************************************************************************************************/
+
+
+
+/** @addtogroup Nordic Semiconductor
+ * @{
+ */
+
+/** @addtogroup nrf51
+ * @{
+ */
+
+#ifndef NRF51_H
+#define NRF51_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* ------------------------- Interrupt Number Definition ------------------------ */
+
+typedef enum {
+/* ------------------- Cortex-M0 Processor Exceptions Numbers ------------------- */
+ Reset_IRQn = -15, /*!< 1 Reset Vector, invoked on Power up and warm reset */
+ NonMaskableInt_IRQn = -14, /*!< 2 Non maskable Interrupt, cannot be stopped or preempted */
+ HardFault_IRQn = -13, /*!< 3 Hard Fault, all classes of Fault */
+ SVCall_IRQn = -5, /*!< 11 System Service Call via SVC instruction */
+ DebugMonitor_IRQn = -4, /*!< 12 Debug Monitor */
+ PendSV_IRQn = -2, /*!< 14 Pendable request for system service */
+ SysTick_IRQn = -1, /*!< 15 System Tick Timer */
+/* ---------------------- nrf51 Specific Interrupt Numbers ---------------------- */
+ POWER_CLOCK_IRQn = 0, /*!< 0 POWER_CLOCK */
+ RADIO_IRQn = 1, /*!< 1 RADIO */
+ UART0_IRQn = 2, /*!< 2 UART0 */
+ SPI0_TWI0_IRQn = 3, /*!< 3 SPI0_TWI0 */
+ SPI1_TWI1_IRQn = 4, /*!< 4 SPI1_TWI1 */
+ GPIOTE_IRQn = 6, /*!< 6 GPIOTE */
+ ADC_IRQn = 7, /*!< 7 ADC */
+ TIMER0_IRQn = 8, /*!< 8 TIMER0 */
+ TIMER1_IRQn = 9, /*!< 9 TIMER1 */
+ TIMER2_IRQn = 10, /*!< 10 TIMER2 */
+ RTC0_IRQn = 11, /*!< 11 RTC0 */
+ TEMP_IRQn = 12, /*!< 12 TEMP */
+ RNG_IRQn = 13, /*!< 13 RNG */
+ ECB_IRQn = 14, /*!< 14 ECB */
+ CCM_AAR_IRQn = 15, /*!< 15 CCM_AAR */
+ WDT_IRQn = 16, /*!< 16 WDT */
+ RTC1_IRQn = 17, /*!< 17 RTC1 */
+ QDEC_IRQn = 18, /*!< 18 QDEC */
+ LPCOMP_IRQn = 19, /*!< 19 LPCOMP */
+ SWI0_IRQn = 20, /*!< 20 SWI0 */
+ SWI1_IRQn = 21, /*!< 21 SWI1 */
+ SWI2_IRQn = 22, /*!< 22 SWI2 */
+ SWI3_IRQn = 23, /*!< 23 SWI3 */
+ SWI4_IRQn = 24, /*!< 24 SWI4 */
+ SWI5_IRQn = 25 /*!< 25 SWI5 */
+} IRQn_Type;
+
+
+/** @addtogroup Configuration_of_CMSIS
+ * @{
+ */
+
+
+/* ================================================================================ */
+/* ================ Processor and Core Peripheral Section ================ */
+/* ================================================================================ */
+
+/* ----------------Configuration of the Cortex-M0 Processor and Core Peripherals---------------- */
+#define __CM0_REV 0x0301 /*!< Cortex-M0 Core Revision */
+#define __MPU_PRESENT 0 /*!< MPU present or not */
+#define __NVIC_PRIO_BITS 2 /*!< Number of Bits used for Priority Levels */
+#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
+/** @} */ /* End of group Configuration_of_CMSIS */
+
+#include "core_cm0.h" /*!< Cortex-M0 processor and core peripherals */
+#include "system_nrf51.h" /*!< nrf51 System */
+
+
+/* ================================================================================ */
+/* ================ Device Specific Peripheral Section ================ */
+/* ================================================================================ */
+
+
+/** @addtogroup Device_Peripheral_Registers
+ * @{
+ */
+
+
+/* ------------------- Start of section using anonymous unions ------------------ */
+#if defined(__CC_ARM)
+ #pragma push
+ #pragma anon_unions
+#elif defined(__ICCARM__)
+ #pragma language=extended
+#elif defined(__GNUC__)
+ /* anonymous unions are enabled by default */
+#elif defined(__TMS470__)
+/* anonymous unions are enabled by default */
+#elif defined(__TASKING__)
+ #pragma warning 586
+#else
+ #warning Not supported compiler type
+#endif
+
+
+typedef struct {
+ __O uint32_t EN; /*!< Enable channel group. */
+ __O uint32_t DIS; /*!< Disable channel group. */
+} PPI_TASKS_CHG_Type;
+
+typedef struct {
+ __IO uint32_t EEP; /*!< Channel event end-point. */
+ __IO uint32_t TEP; /*!< Channel task end-point. */
+} PPI_CH_Type;
+
+
+/* ================================================================================ */
+/* ================ POWER ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Power Control. (POWER)
+ */
+
+typedef struct { /*!< POWER Structure */
+ __I uint32_t RESERVED0[30];
+ __O uint32_t TASKS_CONSTLAT; /*!< Enable constant latency mode. */
+ __O uint32_t TASKS_LOWPWR; /*!< Enable low power mode (variable latency). */
+ __I uint32_t RESERVED1[34];
+ __IO uint32_t EVENTS_POFWARN; /*!< Power failure warning. */
+ __I uint32_t RESERVED2[126];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED3[61];
+ __IO uint32_t RESETREAS; /*!< Reset reason. */
+ __I uint32_t RESERVED4[9];
+ __I uint32_t RAMSTATUS; /*!< Ram status register. */
+ __I uint32_t RESERVED5[53];
+ __O uint32_t SYSTEMOFF; /*!< System off register. */
+ __I uint32_t RESERVED6[3];
+ __IO uint32_t POFCON; /*!< Power failure configuration. */
+ __I uint32_t RESERVED7[2];
+ __IO uint32_t GPREGRET; /*!< General purpose retention register. This register is a retained
+ register. */
+ __I uint32_t RESERVED8;
+ __IO uint32_t RAMON; /*!< Ram on/off. */
+ __I uint32_t RESERVED9[7];
+ __IO uint32_t RESET; /*!< Pin reset functionality configuration register. This register
+ is a retained register. */
+ __I uint32_t RESERVED10[3];
+ __IO uint32_t RAMONB; /*!< Ram on/off. */
+ __I uint32_t RESERVED11[8];
+ __IO uint32_t DCDCEN; /*!< DCDC converter enable configuration register. */
+ __I uint32_t RESERVED12[291];
+ __IO uint32_t DCDCFORCE; /*!< DCDC power-up force register. */
+} NRF_POWER_Type;
+
+
+/* ================================================================================ */
+/* ================ CLOCK ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Clock control. (CLOCK)
+ */
+
+typedef struct { /*!< CLOCK Structure */
+ __O uint32_t TASKS_HFCLKSTART; /*!< Start HFCLK clock source. */
+ __O uint32_t TASKS_HFCLKSTOP; /*!< Stop HFCLK clock source. */
+ __O uint32_t TASKS_LFCLKSTART; /*!< Start LFCLK clock source. */
+ __O uint32_t TASKS_LFCLKSTOP; /*!< Stop LFCLK clock source. */
+ __O uint32_t TASKS_CAL; /*!< Start calibration of LFCLK RC oscillator. */
+ __O uint32_t TASKS_CTSTART; /*!< Start calibration timer. */
+ __O uint32_t TASKS_CTSTOP; /*!< Stop calibration timer. */
+ __I uint32_t RESERVED0[57];
+ __IO uint32_t EVENTS_HFCLKSTARTED; /*!< HFCLK oscillator started. */
+ __IO uint32_t EVENTS_LFCLKSTARTED; /*!< LFCLK oscillator started. */
+ __I uint32_t RESERVED1;
+ __IO uint32_t EVENTS_DONE; /*!< Calibration of LFCLK RC oscillator completed. */
+ __IO uint32_t EVENTS_CTTO; /*!< Calibration timer timeout. */
+ __I uint32_t RESERVED2[124];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED3[63];
+ __I uint32_t HFCLKRUN; /*!< Task HFCLKSTART trigger status. */
+ __I uint32_t HFCLKSTAT; /*!< High frequency clock status. */
+ __I uint32_t RESERVED4;
+ __I uint32_t LFCLKRUN; /*!< Task LFCLKSTART triggered status. */
+ __I uint32_t LFCLKSTAT; /*!< Low frequency clock status. */
+ __I uint32_t LFCLKSRCCOPY; /*!< Clock source for the LFCLK clock, set when task LKCLKSTART is
+ triggered. */
+ __I uint32_t RESERVED5[62];
+ __IO uint32_t LFCLKSRC; /*!< Clock source for the LFCLK clock. */
+ __I uint32_t RESERVED6[7];
+ __IO uint32_t CTIV; /*!< Calibration timer interval. */
+ __I uint32_t RESERVED7[5];
+ __IO uint32_t XTALFREQ; /*!< Crystal frequency. */
+} NRF_CLOCK_Type;
+
+
+/* ================================================================================ */
+/* ================ MPU ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Memory Protection Unit. (MPU)
+ */
+
+typedef struct { /*!< MPU Structure */
+ __I uint32_t RESERVED0[330];
+ __IO uint32_t PERR0; /*!< Configuration of peripherals in mpu regions. */
+ __IO uint32_t RLENR0; /*!< Length of RAM region 0. */
+ __I uint32_t RESERVED1[52];
+ __IO uint32_t PROTENSET0; /*!< Erase and write protection bit enable set register. */
+ __IO uint32_t PROTENSET1; /*!< Erase and write protection bit enable set register. */
+ __IO uint32_t DISABLEINDEBUG; /*!< Disable erase and write protection mechanism in debug mode. */
+ __IO uint32_t PROTBLOCKSIZE; /*!< Erase and write protection block size. */
+} NRF_MPU_Type;
+
+
+/* ================================================================================ */
+/* ================ RADIO ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief The radio. (RADIO)
+ */
+
+typedef struct { /*!< RADIO Structure */
+ __O uint32_t TASKS_TXEN; /*!< Enable radio in TX mode. */
+ __O uint32_t TASKS_RXEN; /*!< Enable radio in RX mode. */
+ __O uint32_t TASKS_START; /*!< Start radio. */
+ __O uint32_t TASKS_STOP; /*!< Stop radio. */
+ __O uint32_t TASKS_DISABLE; /*!< Disable radio. */
+ __O uint32_t TASKS_RSSISTART; /*!< Start the RSSI and take one sample of the receive signal strength. */
+ __O uint32_t TASKS_RSSISTOP; /*!< Stop the RSSI measurement. */
+ __O uint32_t TASKS_BCSTART; /*!< Start the bit counter. */
+ __O uint32_t TASKS_BCSTOP; /*!< Stop the bit counter. */
+ __I uint32_t RESERVED0[55];
+ __IO uint32_t EVENTS_READY; /*!< Ready event. */
+ __IO uint32_t EVENTS_ADDRESS; /*!< Address event. */
+ __IO uint32_t EVENTS_PAYLOAD; /*!< Payload event. */
+ __IO uint32_t EVENTS_END; /*!< End event. */
+ __IO uint32_t EVENTS_DISABLED; /*!< Disable event. */
+ __IO uint32_t EVENTS_DEVMATCH; /*!< A device address match occurred on the last received packet. */
+ __IO uint32_t EVENTS_DEVMISS; /*!< No device address match occurred on the last received packet. */
+ __IO uint32_t EVENTS_RSSIEND; /*!< Sampling of the receive signal strength complete. A new RSSI
+ sample is ready for readout at the RSSISAMPLE register. */
+ __I uint32_t RESERVED1[2];
+ __IO uint32_t EVENTS_BCMATCH; /*!< Bit counter reached bit count value specified in BCC register. */
+ __I uint32_t RESERVED2[53];
+ __IO uint32_t SHORTS; /*!< Shortcuts for the radio. */
+ __I uint32_t RESERVED3[64];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED4[61];
+ __I uint32_t CRCSTATUS; /*!< CRC status of received packet. */
+ __I uint32_t RESERVED5;
+ __I uint32_t RXMATCH; /*!< Received address. */
+ __I uint32_t RXCRC; /*!< Received CRC. */
+ __I uint32_t DAI; /*!< Device address match index. */
+ __I uint32_t RESERVED6[60];
+ __IO uint32_t PACKETPTR; /*!< Packet pointer. Decision point: START task. */
+ __IO uint32_t FREQUENCY; /*!< Frequency. */
+ __IO uint32_t TXPOWER; /*!< Output power. */
+ __IO uint32_t MODE; /*!< Data rate and modulation. */
+ __IO uint32_t PCNF0; /*!< Packet configuration 0. */
+ __IO uint32_t PCNF1; /*!< Packet configuration 1. */
+ __IO uint32_t BASE0; /*!< Radio base address 0. Decision point: START task. */
+ __IO uint32_t BASE1; /*!< Radio base address 1. Decision point: START task. */
+ __IO uint32_t PREFIX0; /*!< Prefixes bytes for logical addresses 0 to 3. */
+ __IO uint32_t PREFIX1; /*!< Prefixes bytes for logical addresses 4 to 7. */
+ __IO uint32_t TXADDRESS; /*!< Transmit address select. */
+ __IO uint32_t RXADDRESSES; /*!< Receive address select. */
+ __IO uint32_t CRCCNF; /*!< CRC configuration. */
+ __IO uint32_t CRCPOLY; /*!< CRC polynomial. */
+ __IO uint32_t CRCINIT; /*!< CRC initial value. */
+ __IO uint32_t TEST; /*!< Test features enable register. */
+ __IO uint32_t TIFS; /*!< Inter Frame Spacing in microseconds. */
+ __I uint32_t RSSISAMPLE; /*!< RSSI sample. */
+ __I uint32_t RESERVED7;
+ __I uint32_t STATE; /*!< Current radio state. */
+ __IO uint32_t DATAWHITEIV; /*!< Data whitening initial value. */
+ __I uint32_t RESERVED8[2];
+ __IO uint32_t BCC; /*!< Bit counter compare. */
+ __I uint32_t RESERVED9[39];
+ __IO uint32_t DAB[8]; /*!< Device address base segment. */
+ __IO uint32_t DAP[8]; /*!< Device address prefix. */
+ __IO uint32_t DACNF; /*!< Device address match configuration. */
+ __I uint32_t RESERVED10[56];
+ __IO uint32_t OVERRIDE0; /*!< Trim value override register 0. */
+ __IO uint32_t OVERRIDE1; /*!< Trim value override register 1. */
+ __IO uint32_t OVERRIDE2; /*!< Trim value override register 2. */
+ __IO uint32_t OVERRIDE3; /*!< Trim value override register 3. */
+ __IO uint32_t OVERRIDE4; /*!< Trim value override register 4. */
+ __I uint32_t RESERVED11[561];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_RADIO_Type;
+
+
+/* ================================================================================ */
+/* ================ UART ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Universal Asynchronous Receiver/Transmitter. (UART)
+ */
+
+typedef struct { /*!< UART Structure */
+ __O uint32_t TASKS_STARTRX; /*!< Start UART receiver. */
+ __O uint32_t TASKS_STOPRX; /*!< Stop UART receiver. */
+ __O uint32_t TASKS_STARTTX; /*!< Start UART transmitter. */
+ __O uint32_t TASKS_STOPTX; /*!< Stop UART transmitter. */
+ __I uint32_t RESERVED0[3];
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend UART. */
+ __I uint32_t RESERVED1[56];
+ __IO uint32_t EVENTS_CTS; /*!< CTS activated. */
+ __IO uint32_t EVENTS_NCTS; /*!< CTS deactivated. */
+ __IO uint32_t EVENTS_RXDRDY; /*!< Data received in RXD. */
+ __I uint32_t RESERVED2[4];
+ __IO uint32_t EVENTS_TXDRDY; /*!< Data sent from TXD. */
+ __I uint32_t RESERVED3;
+ __IO uint32_t EVENTS_ERROR; /*!< Error detected. */
+ __I uint32_t RESERVED4[7];
+ __IO uint32_t EVENTS_RXTO; /*!< Receiver timeout. */
+ __I uint32_t RESERVED5[46];
+ __IO uint32_t SHORTS; /*!< Shortcuts for UART. */
+ __I uint32_t RESERVED6[64];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED7[93];
+ __IO uint32_t ERRORSRC; /*!< Error source. Write error field to 1 to clear error. */
+ __I uint32_t RESERVED8[31];
+ __IO uint32_t ENABLE; /*!< Enable UART and acquire IOs. */
+ __I uint32_t RESERVED9;
+ __IO uint32_t PSELRTS; /*!< Pin select for RTS. */
+ __IO uint32_t PSELTXD; /*!< Pin select for TXD. */
+ __IO uint32_t PSELCTS; /*!< Pin select for CTS. */
+ __IO uint32_t PSELRXD; /*!< Pin select for RXD. */
+ __I uint32_t RXD; /*!< RXD register. On read action the buffer pointer is displaced.
+ Once read the character is consumed. If read when no character
+ available, the UART will stop working. */
+ __O uint32_t TXD; /*!< TXD register. */
+ __I uint32_t RESERVED10;
+ __IO uint32_t BAUDRATE; /*!< UART Baudrate. */
+ __I uint32_t RESERVED11[17];
+ __IO uint32_t CONFIG; /*!< Configuration of parity and hardware flow control register. */
+ __I uint32_t RESERVED12[675];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_UART_Type;
+
+
+/* ================================================================================ */
+/* ================ SPI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief SPI master 0. (SPI)
+ */
+
+typedef struct { /*!< SPI Structure */
+ __I uint32_t RESERVED0[66];
+ __IO uint32_t EVENTS_READY; /*!< TXD byte sent and RXD byte received. */
+ __I uint32_t RESERVED1[126];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED2[125];
+ __IO uint32_t ENABLE; /*!< Enable SPI. */
+ __I uint32_t RESERVED3;
+ __IO uint32_t PSELSCK; /*!< Pin select for SCK. */
+ __IO uint32_t PSELMOSI; /*!< Pin select for MOSI. */
+ __IO uint32_t PSELMISO; /*!< Pin select for MISO. */
+ __I uint32_t RESERVED4;
+ __I uint32_t RXD; /*!< RX data. */
+ __IO uint32_t TXD; /*!< TX data. */
+ __I uint32_t RESERVED5;
+ __IO uint32_t FREQUENCY; /*!< SPI frequency */
+ __I uint32_t RESERVED6[11];
+ __IO uint32_t CONFIG; /*!< Configuration register. */
+ __I uint32_t RESERVED7[681];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_SPI_Type;
+
+
+/* ================================================================================ */
+/* ================ TWI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Two-wire interface master 0. (TWI)
+ */
+
+typedef struct { /*!< TWI Structure */
+ __O uint32_t TASKS_STARTRX; /*!< Start 2-Wire master receive sequence. */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STARTTX; /*!< Start 2-Wire master transmit sequence. */
+ __I uint32_t RESERVED1[2];
+ __O uint32_t TASKS_STOP; /*!< Stop 2-Wire transaction. */
+ __I uint32_t RESERVED2;
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend 2-Wire transaction. */
+ __O uint32_t TASKS_RESUME; /*!< Resume 2-Wire transaction. */
+ __I uint32_t RESERVED3[56];
+ __IO uint32_t EVENTS_STOPPED; /*!< Two-wire stopped. */
+ __IO uint32_t EVENTS_RXDREADY; /*!< Two-wire ready to deliver new RXD byte received. */
+ __I uint32_t RESERVED4[4];
+ __IO uint32_t EVENTS_TXDSENT; /*!< Two-wire finished sending last TXD byte. */
+ __I uint32_t RESERVED5;
+ __IO uint32_t EVENTS_ERROR; /*!< Two-wire error detected. */
+ __I uint32_t RESERVED6[4];
+ __IO uint32_t EVENTS_BB; /*!< Two-wire byte boundary. */
+ __I uint32_t RESERVED7[3];
+ __IO uint32_t EVENTS_SUSPENDED; /*!< Two-wire suspended. */
+ __I uint32_t RESERVED8[45];
+ __IO uint32_t SHORTS; /*!< Shortcuts for TWI. */
+ __I uint32_t RESERVED9[64];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED10[110];
+ __IO uint32_t ERRORSRC; /*!< Two-wire error source. Write error field to 1 to clear error. */
+ __I uint32_t RESERVED11[14];
+ __IO uint32_t ENABLE; /*!< Enable two-wire master. */
+ __I uint32_t RESERVED12;
+ __IO uint32_t PSELSCL; /*!< Pin select for SCL. */
+ __IO uint32_t PSELSDA; /*!< Pin select for SDA. */
+ __I uint32_t RESERVED13[2];
+ __I uint32_t RXD; /*!< RX data register. */
+ __IO uint32_t TXD; /*!< TX data register. */
+ __I uint32_t RESERVED14;
+ __IO uint32_t FREQUENCY; /*!< Two-wire frequency. */
+ __I uint32_t RESERVED15[24];
+ __IO uint32_t ADDRESS; /*!< Address used in the two-wire transfer. */
+ __I uint32_t RESERVED16[668];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_TWI_Type;
+
+
+/* ================================================================================ */
+/* ================ SPIS ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief SPI slave 1. (SPIS)
+ */
+
+typedef struct { /*!< SPIS Structure */
+ __I uint32_t RESERVED0[9];
+ __O uint32_t TASKS_ACQUIRE; /*!< Acquire SPI semaphore. */
+ __O uint32_t TASKS_RELEASE; /*!< Release SPI semaphore. */
+ __I uint32_t RESERVED1[54];
+ __IO uint32_t EVENTS_END; /*!< Granted transaction completed. */
+ __I uint32_t RESERVED2[2];
+ __IO uint32_t EVENTS_ENDRX; /*!< End of RXD buffer reached */
+ __I uint32_t RESERVED3[5];
+ __IO uint32_t EVENTS_ACQUIRED; /*!< Semaphore acquired. */
+ __I uint32_t RESERVED4[53];
+ __IO uint32_t SHORTS; /*!< Shortcuts for SPIS. */
+ __I uint32_t RESERVED5[64];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED6[61];
+ __I uint32_t SEMSTAT; /*!< Semaphore status. */
+ __I uint32_t RESERVED7[15];
+ __IO uint32_t STATUS; /*!< Status from last transaction. */
+ __I uint32_t RESERVED8[47];
+ __IO uint32_t ENABLE; /*!< Enable SPIS. */
+ __I uint32_t RESERVED9;
+ __IO uint32_t PSELSCK; /*!< Pin select for SCK. */
+ __IO uint32_t PSELMISO; /*!< Pin select for MISO. */
+ __IO uint32_t PSELMOSI; /*!< Pin select for MOSI. */
+ __IO uint32_t PSELCSN; /*!< Pin select for CSN. */
+ __I uint32_t RESERVED10[7];
+ __IO uint32_t RXDPTR; /*!< RX data pointer. */
+ __IO uint32_t MAXRX; /*!< Maximum number of bytes in the receive buffer. */
+ __I uint32_t AMOUNTRX; /*!< Number of bytes received in last granted transaction. */
+ __I uint32_t RESERVED11;
+ __IO uint32_t TXDPTR; /*!< TX data pointer. */
+ __IO uint32_t MAXTX; /*!< Maximum number of bytes in the transmit buffer. */
+ __I uint32_t AMOUNTTX; /*!< Number of bytes transmitted in last granted transaction. */
+ __I uint32_t RESERVED12;
+ __IO uint32_t CONFIG; /*!< Configuration register. */
+ __I uint32_t RESERVED13;
+ __IO uint32_t DEF; /*!< Default character. */
+ __I uint32_t RESERVED14[24];
+ __IO uint32_t ORC; /*!< Over-read character. */
+ __I uint32_t RESERVED15[654];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_SPIS_Type;
+
+
+/* ================================================================================ */
+/* ================ GPIOTE ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief GPIO tasks and events. (GPIOTE)
+ */
+
+typedef struct { /*!< GPIOTE Structure */
+ __O uint32_t TASKS_OUT[4]; /*!< Tasks asssociated with GPIOTE channels. */
+ __I uint32_t RESERVED0[60];
+ __IO uint32_t EVENTS_IN[4]; /*!< Tasks asssociated with GPIOTE channels. */
+ __I uint32_t RESERVED1[27];
+ __IO uint32_t EVENTS_PORT; /*!< Event generated from multiple pins. */
+ __I uint32_t RESERVED2[97];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED3[129];
+ __IO uint32_t CONFIG[4]; /*!< Channel configuration registers. */
+ __I uint32_t RESERVED4[695];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_GPIOTE_Type;
+
+
+/* ================================================================================ */
+/* ================ ADC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Analog to digital converter. (ADC)
+ */
+
+typedef struct { /*!< ADC Structure */
+ __O uint32_t TASKS_START; /*!< Start an ADC conversion. */
+ __O uint32_t TASKS_STOP; /*!< Stop ADC. */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_END; /*!< ADC conversion complete. */
+ __I uint32_t RESERVED1[128];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED2[61];
+ __I uint32_t BUSY; /*!< ADC busy register. */
+ __I uint32_t RESERVED3[63];
+ __IO uint32_t ENABLE; /*!< ADC enable. */
+ __IO uint32_t CONFIG; /*!< ADC configuration register. */
+ __I uint32_t RESULT; /*!< Result of ADC conversion. */
+ __I uint32_t RESERVED4[700];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_ADC_Type;
+
+
+/* ================================================================================ */
+/* ================ TIMER ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Timer 0. (TIMER)
+ */
+
+typedef struct { /*!< TIMER Structure */
+ __O uint32_t TASKS_START; /*!< Start Timer. */
+ __O uint32_t TASKS_STOP; /*!< Stop Timer. */
+ __O uint32_t TASKS_COUNT; /*!< Increment Timer (In counter mode). */
+ __O uint32_t TASKS_CLEAR; /*!< Clear timer. */
+ __O uint32_t TASKS_SHUTDOWN; /*!< Shutdown timer. */
+ __I uint32_t RESERVED0[11];
+ __O uint32_t TASKS_CAPTURE[4]; /*!< Capture Timer value to CC[n] registers. */
+ __I uint32_t RESERVED1[60];
+ __IO uint32_t EVENTS_COMPARE[4]; /*!< Compare event on CC[n] match. */
+ __I uint32_t RESERVED2[44];
+ __IO uint32_t SHORTS; /*!< Shortcuts for Timer. */
+ __I uint32_t RESERVED3[64];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED4[126];
+ __IO uint32_t MODE; /*!< Timer Mode selection. */
+ __IO uint32_t BITMODE; /*!< Sets timer behaviour. */
+ __I uint32_t RESERVED5;
+ __IO uint32_t PRESCALER; /*!< 4-bit prescaler to source clock frequency (max value 9). Source
+ clock frequency is divided by 2^SCALE. */
+ __I uint32_t RESERVED6[11];
+ __IO uint32_t CC[4]; /*!< Capture/compare registers. */
+ __I uint32_t RESERVED7[683];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_TIMER_Type;
+
+
+/* ================================================================================ */
+/* ================ RTC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Real time counter 0. (RTC)
+ */
+
+typedef struct { /*!< RTC Structure */
+ __O uint32_t TASKS_START; /*!< Start RTC Counter. */
+ __O uint32_t TASKS_STOP; /*!< Stop RTC Counter. */
+ __O uint32_t TASKS_CLEAR; /*!< Clear RTC Counter. */
+ __O uint32_t TASKS_TRIGOVRFLW; /*!< Set COUNTER to 0xFFFFFFF0. */
+ __I uint32_t RESERVED0[60];
+ __IO uint32_t EVENTS_TICK; /*!< Event on COUNTER increment. */
+ __IO uint32_t EVENTS_OVRFLW; /*!< Event on COUNTER overflow. */
+ __I uint32_t RESERVED1[14];
+ __IO uint32_t EVENTS_COMPARE[4]; /*!< Compare event on CC[n] match. */
+ __I uint32_t RESERVED2[109];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED3[13];
+ __IO uint32_t EVTEN; /*!< Configures event enable routing to PPI for each RTC event. */
+ __IO uint32_t EVTENSET; /*!< Enable events routing to PPI. The reading of this register gives
+ the value of EVTEN. */
+ __IO uint32_t EVTENCLR; /*!< Disable events routing to PPI. The reading of this register
+ gives the value of EVTEN. */
+ __I uint32_t RESERVED4[110];
+ __I uint32_t COUNTER; /*!< Current COUNTER value. */
+ __IO uint32_t PRESCALER; /*!< 12-bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).
+ Must be written when RTC is STOPed. */
+ __I uint32_t RESERVED5[13];
+ __IO uint32_t CC[4]; /*!< Capture/compare registers. */
+ __I uint32_t RESERVED6[683];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_RTC_Type;
+
+
+/* ================================================================================ */
+/* ================ TEMP ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Temperature Sensor. (TEMP)
+ */
+
+typedef struct { /*!< TEMP Structure */
+ __O uint32_t TASKS_START; /*!< Start temperature measurement. */
+ __O uint32_t TASKS_STOP; /*!< Stop temperature measurement. */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_DATARDY; /*!< Temperature measurement complete, data ready event. */
+ __I uint32_t RESERVED1[128];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED2[127];
+ __I int32_t TEMP; /*!< Die temperature in degC, 2's complement format, 0.25 degC pecision. */
+ __I uint32_t RESERVED3[700];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_TEMP_Type;
+
+
+/* ================================================================================ */
+/* ================ RNG ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Random Number Generator. (RNG)
+ */
+
+typedef struct { /*!< RNG Structure */
+ __O uint32_t TASKS_START; /*!< Start the random number generator. */
+ __O uint32_t TASKS_STOP; /*!< Stop the random number generator. */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_VALRDY; /*!< New random number generated and written to VALUE register. */
+ __I uint32_t RESERVED1[63];
+ __IO uint32_t SHORTS; /*!< Shortcuts for the RNG. */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register */
+ __I uint32_t RESERVED3[126];
+ __IO uint32_t CONFIG; /*!< Configuration register. */
+ __I uint32_t VALUE; /*!< RNG random number. */
+ __I uint32_t RESERVED4[700];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_RNG_Type;
+
+
+/* ================================================================================ */
+/* ================ ECB ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief AES ECB Mode Encryption. (ECB)
+ */
+
+typedef struct { /*!< ECB Structure */
+ __O uint32_t TASKS_STARTECB; /*!< Start ECB block encrypt. If a crypto operation is running, this
+ will not initiate a new encryption and the ERRORECB event will
+ be triggered. */
+ __O uint32_t TASKS_STOPECB; /*!< Stop current ECB encryption. If a crypto operation is running,
+ this will will trigger the ERRORECB event. */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_ENDECB; /*!< ECB block encrypt complete. */
+ __IO uint32_t EVENTS_ERRORECB; /*!< ECB block encrypt aborted due to a STOPECB task or due to an
+ error. */
+ __I uint32_t RESERVED1[127];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED2[126];
+ __IO uint32_t ECBDATAPTR; /*!< ECB block encrypt memory pointer. */
+ __I uint32_t RESERVED3[701];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_ECB_Type;
+
+
+/* ================================================================================ */
+/* ================ AAR ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Accelerated Address Resolver. (AAR)
+ */
+
+typedef struct { /*!< AAR Structure */
+ __O uint32_t TASKS_START; /*!< Start resolving addresses based on IRKs specified in the IRK
+ data structure. */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STOP; /*!< Stop resolving addresses. */
+ __I uint32_t RESERVED1[61];
+ __IO uint32_t EVENTS_END; /*!< Address resolution procedure completed. */
+ __IO uint32_t EVENTS_RESOLVED; /*!< Address resolved. */
+ __IO uint32_t EVENTS_NOTRESOLVED; /*!< Address not resolved. */
+ __I uint32_t RESERVED2[126];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t STATUS; /*!< Resolution status. */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< Enable AAR. */
+ __IO uint32_t NIRK; /*!< Number of Identity root Keys in the IRK data structure. */
+ __IO uint32_t IRKPTR; /*!< Pointer to the IRK data structure. */
+ __I uint32_t RESERVED5;
+ __IO uint32_t ADDRPTR; /*!< Pointer to the resolvable address (6 bytes). */
+ __IO uint32_t SCRATCHPTR; /*!< Pointer to a scratch data area used for temporary storage during
+ resolution. A minimum of 3 bytes must be reserved. */
+ __I uint32_t RESERVED6[697];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_AAR_Type;
+
+
+/* ================================================================================ */
+/* ================ CCM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief AES CCM Mode Encryption. (CCM)
+ */
+
+typedef struct { /*!< CCM Structure */
+ __O uint32_t TASKS_KSGEN; /*!< Start generation of key-stream. This operation will stop by
+ itself when completed. */
+ __O uint32_t TASKS_CRYPT; /*!< Start encrypt/decrypt. This operation will stop by itself when
+ completed. */
+ __O uint32_t TASKS_STOP; /*!< Stop encrypt/decrypt. */
+ __I uint32_t RESERVED0[61];
+ __IO uint32_t EVENTS_ENDKSGEN; /*!< Keystream generation completed. */
+ __IO uint32_t EVENTS_ENDCRYPT; /*!< Encrypt/decrypt completed. */
+ __IO uint32_t EVENTS_ERROR; /*!< Error happened. */
+ __I uint32_t RESERVED1[61];
+ __IO uint32_t SHORTS; /*!< Shortcuts for the CCM. */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t MICSTATUS; /*!< CCM RX MIC check result. */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< CCM enable. */
+ __IO uint32_t MODE; /*!< Operation mode. */
+ __IO uint32_t CNFPTR; /*!< Pointer to a data structure holding AES key and NONCE vector. */
+ __IO uint32_t INPTR; /*!< Pointer to the input packet. */
+ __IO uint32_t OUTPTR; /*!< Pointer to the output packet. */
+ __IO uint32_t SCRATCHPTR; /*!< Pointer to a scratch data area used for temporary storage during
+ resolution. A minimum of 43 bytes must be reserved. */
+ __I uint32_t RESERVED5[697];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_CCM_Type;
+
+
+/* ================================================================================ */
+/* ================ WDT ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Watchdog Timer. (WDT)
+ */
+
+typedef struct { /*!< WDT Structure */
+ __O uint32_t TASKS_START; /*!< Start the watchdog. */
+ __I uint32_t RESERVED0[63];
+ __IO uint32_t EVENTS_TIMEOUT; /*!< Watchdog timeout. */
+ __I uint32_t RESERVED1[128];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED2[61];
+ __I uint32_t RUNSTATUS; /*!< Watchdog running status. */
+ __I uint32_t REQSTATUS; /*!< Request status. */
+ __I uint32_t RESERVED3[63];
+ __IO uint32_t CRV; /*!< Counter reload value in number of 32kiHz clock cycles. */
+ __IO uint32_t RREN; /*!< Reload request enable. */
+ __IO uint32_t CONFIG; /*!< Configuration register. */
+ __I uint32_t RESERVED4[60];
+ __O uint32_t RR[8]; /*!< Reload requests registers. */
+ __I uint32_t RESERVED5[631];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_WDT_Type;
+
+
+/* ================================================================================ */
+/* ================ QDEC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Rotary decoder. (QDEC)
+ */
+
+typedef struct { /*!< QDEC Structure */
+ __O uint32_t TASKS_START; /*!< Start the quadrature decoder. */
+ __O uint32_t TASKS_STOP; /*!< Stop the quadrature decoder. */
+ __O uint32_t TASKS_READCLRACC; /*!< Transfers the content from ACC registers to ACCREAD registers,
+ and clears the ACC registers. */
+ __I uint32_t RESERVED0[61];
+ __IO uint32_t EVENTS_SAMPLERDY; /*!< A new sample is written to the sample register. */
+ __IO uint32_t EVENTS_REPORTRDY; /*!< REPORTPER number of samples accumulated in ACC register, and
+ ACC register different than zero. */
+ __IO uint32_t EVENTS_ACCOF; /*!< ACC or ACCDBL register overflow. */
+ __I uint32_t RESERVED1[61];
+ __IO uint32_t SHORTS; /*!< Shortcuts for the QDEC. */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED3[125];
+ __IO uint32_t ENABLE; /*!< Enable the QDEC. */
+ __IO uint32_t LEDPOL; /*!< LED output pin polarity. */
+ __IO uint32_t SAMPLEPER; /*!< Sample period. */
+ __I int32_t SAMPLE; /*!< Motion sample value. */
+ __IO uint32_t REPORTPER; /*!< Number of samples to generate an EVENT_REPORTRDY. */
+ __I int32_t ACC; /*!< Accumulated valid transitions register. */
+ __I int32_t ACCREAD; /*!< Snapshot of ACC register. Value generated by the TASKS_READCLEACC
+ task. */
+ __IO uint32_t PSELLED; /*!< Pin select for LED output. */
+ __IO uint32_t PSELA; /*!< Pin select for phase A input. */
+ __IO uint32_t PSELB; /*!< Pin select for phase B input. */
+ __IO uint32_t DBFEN; /*!< Enable debouncer input filters. */
+ __I uint32_t RESERVED4[5];
+ __IO uint32_t LEDPRE; /*!< Time LED is switched ON before the sample. */
+ __I uint32_t ACCDBL; /*!< Accumulated double (error) transitions register. */
+ __I uint32_t ACCDBLREAD; /*!< Snapshot of ACCDBL register. Value generated by the TASKS_READCLEACC
+ task. */
+ __I uint32_t RESERVED5[684];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_QDEC_Type;
+
+
+/* ================================================================================ */
+/* ================ LPCOMP ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Low power comparator. (LPCOMP)
+ */
+
+typedef struct { /*!< LPCOMP Structure */
+ __O uint32_t TASKS_START; /*!< Start the comparator. */
+ __O uint32_t TASKS_STOP; /*!< Stop the comparator. */
+ __O uint32_t TASKS_SAMPLE; /*!< Sample comparator value. */
+ __I uint32_t RESERVED0[61];
+ __IO uint32_t EVENTS_READY; /*!< LPCOMP is ready and output is valid. */
+ __IO uint32_t EVENTS_DOWN; /*!< Input voltage crossed the threshold going down. */
+ __IO uint32_t EVENTS_UP; /*!< Input voltage crossed the threshold going up. */
+ __IO uint32_t EVENTS_CROSS; /*!< Input voltage crossed the threshold in any direction. */
+ __I uint32_t RESERVED1[60];
+ __IO uint32_t SHORTS; /*!< Shortcuts for the LPCOMP. */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Interrupt enable set register. */
+ __IO uint32_t INTENCLR; /*!< Interrupt enable clear register. */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t RESULT; /*!< Result of last compare. */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< Enable the LPCOMP. */
+ __IO uint32_t PSEL; /*!< Input pin select. */
+ __IO uint32_t REFSEL; /*!< Reference select. */
+ __IO uint32_t EXTREFSEL; /*!< External reference select. */
+ __I uint32_t RESERVED5[4];
+ __IO uint32_t ANADETECT; /*!< Analog detect configuration. */
+ __I uint32_t RESERVED6[694];
+ __IO uint32_t POWER; /*!< Peripheral power control. */
+} NRF_LPCOMP_Type;
+
+
+/* ================================================================================ */
+/* ================ SWI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief SW Interrupts. (SWI)
+ */
+
+typedef struct { /*!< SWI Structure */
+ __I uint32_t UNUSED; /*!< Unused. */
+} NRF_SWI_Type;
+
+
+/* ================================================================================ */
+/* ================ NVMC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Non Volatile Memory Controller. (NVMC)
+ */
+
+typedef struct { /*!< NVMC Structure */
+ __I uint32_t RESERVED0[256];
+ __I uint32_t READY; /*!< Ready flag. */
+ __I uint32_t RESERVED1[64];
+ __IO uint32_t CONFIG; /*!< Configuration register. */
+
+ union {
+ __IO uint32_t ERASEPCR1; /*!< Register for erasing a non-protected non-volatile memory page. */
+ __IO uint32_t ERASEPAGE; /*!< Register for erasing a non-protected non-volatile memory page. */
+ };
+ __IO uint32_t ERASEALL; /*!< Register for erasing all non-volatile user memory. */
+ __IO uint32_t ERASEPCR0; /*!< Register for erasing a protected non-volatile memory page. */
+ __IO uint32_t ERASEUICR; /*!< Register for start erasing User Information Congfiguration Registers. */
+} NRF_NVMC_Type;
+
+
+/* ================================================================================ */
+/* ================ PPI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief PPI controller. (PPI)
+ */
+
+typedef struct { /*!< PPI Structure */
+ PPI_TASKS_CHG_Type TASKS_CHG[4]; /*!< Channel group tasks. */
+ __I uint32_t RESERVED0[312];
+ __IO uint32_t CHEN; /*!< Channel enable. */
+ __IO uint32_t CHENSET; /*!< Channel enable set. */
+ __IO uint32_t CHENCLR; /*!< Channel enable clear. */
+ __I uint32_t RESERVED1;
+ PPI_CH_Type CH[16]; /*!< PPI Channel. */
+ __I uint32_t RESERVED2[156];
+ __IO uint32_t CHG[4]; /*!< Channel group configuration. */
+} NRF_PPI_Type;
+
+
+/* ================================================================================ */
+/* ================ FICR ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Factory Information Configuration. (FICR)
+ */
+
+typedef struct { /*!< FICR Structure */
+ __I uint32_t RESERVED0[4];
+ __I uint32_t CODEPAGESIZE; /*!< Code memory page size in bytes. */
+ __I uint32_t CODESIZE; /*!< Code memory size in pages. */
+ __I uint32_t RESERVED1[4];
+ __I uint32_t CLENR0; /*!< Length of code region 0 in bytes. */
+ __I uint32_t PPFC; /*!< Pre-programmed factory code present. */
+ __I uint32_t RESERVED2;
+ __I uint32_t NUMRAMBLOCK; /*!< Number of individualy controllable RAM blocks. */
+
+ union {
+ __I uint32_t SIZERAMBLOCK[4]; /*!< Deprecated array of size of RAM block in bytes. This name is
+ kept for backward compatinility purposes. Use SIZERAMBLOCKS
+ instead. */
+ __I uint32_t SIZERAMBLOCKS; /*!< Size of RAM blocks in bytes. */
+ };
+ __I uint32_t RESERVED3[5];
+ __I uint32_t CONFIGID; /*!< Configuration identifier. */
+ __I uint32_t DEVICEID[2]; /*!< Device identifier. */
+ __I uint32_t RESERVED4[6];
+ __I uint32_t ER[4]; /*!< Encryption root. */
+ __I uint32_t IR[4]; /*!< Identity root. */
+ __I uint32_t DEVICEADDRTYPE; /*!< Device address type. */
+ __I uint32_t DEVICEADDR[2]; /*!< Device address. */
+ __I uint32_t OVERRIDEEN; /*!< Radio calibration override enable. */
+ __I uint32_t NRF_1MBIT[5]; /*!< Override values for the OVERRIDEn registers in RADIO for NRF_1Mbit
+ mode. */
+ __I uint32_t RESERVED5[10];
+ __I uint32_t BLE_1MBIT[5]; /*!< Override values for the OVERRIDEn registers in RADIO for BLE_1Mbit
+ mode. */
+} NRF_FICR_Type;
+
+
+/* ================================================================================ */
+/* ================ UICR ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief User Information Configuration. (UICR)
+ */
+
+typedef struct { /*!< UICR Structure */
+ __IO uint32_t CLENR0; /*!< Length of code region 0. */
+ __IO uint32_t RBPCONF; /*!< Readback protection configuration. */
+ __IO uint32_t XTALFREQ; /*!< Reset value for CLOCK XTALFREQ register. */
+ __I uint32_t RESERVED0;
+ __I uint32_t FWID; /*!< Firmware ID. */
+
+ union {
+ __IO uint32_t NRFFW[15]; /*!< Reserved for Nordic firmware design. */
+ __IO uint32_t BOOTLOADERADDR; /*!< Bootloader start address. */
+ };
+ __IO uint32_t NRFHW[12]; /*!< Reserved for Nordic hardware design. */
+ __IO uint32_t CUSTOMER[32]; /*!< Reserved for customer. */
+} NRF_UICR_Type;
+
+
+/* ================================================================================ */
+/* ================ GPIO ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief General purpose input and output. (GPIO)
+ */
+
+typedef struct { /*!< GPIO Structure */
+ __I uint32_t RESERVED0[321];
+ __IO uint32_t OUT; /*!< Write GPIO port. */
+ __IO uint32_t OUTSET; /*!< Set individual bits in GPIO port. */
+ __IO uint32_t OUTCLR; /*!< Clear individual bits in GPIO port. */
+ __I uint32_t IN; /*!< Read GPIO port. */
+ __IO uint32_t DIR; /*!< Direction of GPIO pins. */
+ __IO uint32_t DIRSET; /*!< DIR set register. */
+ __IO uint32_t DIRCLR; /*!< DIR clear register. */
+ __I uint32_t RESERVED1[120];
+ __IO uint32_t PIN_CNF[32]; /*!< Configuration of GPIO pins. */
+} NRF_GPIO_Type;
+
+
+/* -------------------- End of section using anonymous unions ------------------- */
+#if defined(__CC_ARM)
+ #pragma pop
+#elif defined(__ICCARM__)
+ /* leave anonymous unions enabled */
+#elif defined(__GNUC__)
+ /* anonymous unions are enabled by default */
+#elif defined(__TMS470__)
+ /* anonymous unions are enabled by default */
+#elif defined(__TASKING__)
+ #pragma warning restore
+#else
+ #warning Not supported compiler type
+#endif
+
+
+
+
+/* ================================================================================ */
+/* ================ Peripheral memory map ================ */
+/* ================================================================================ */
+
+#define NRF_POWER_BASE 0x40000000UL
+#define NRF_CLOCK_BASE 0x40000000UL
+#define NRF_MPU_BASE 0x40000000UL
+#define NRF_RADIO_BASE 0x40001000UL
+#define NRF_UART0_BASE 0x40002000UL
+#define NRF_SPI0_BASE 0x40003000UL
+#define NRF_TWI0_BASE 0x40003000UL
+#define NRF_SPI1_BASE 0x40004000UL
+#define NRF_TWI1_BASE 0x40004000UL
+#define NRF_SPIS1_BASE 0x40004000UL
+#define NRF_GPIOTE_BASE 0x40006000UL
+#define NRF_ADC_BASE 0x40007000UL
+#define NRF_TIMER0_BASE 0x40008000UL
+#define NRF_TIMER1_BASE 0x40009000UL
+#define NRF_TIMER2_BASE 0x4000A000UL
+#define NRF_RTC0_BASE 0x4000B000UL
+#define NRF_TEMP_BASE 0x4000C000UL
+#define NRF_RNG_BASE 0x4000D000UL
+#define NRF_ECB_BASE 0x4000E000UL
+#define NRF_AAR_BASE 0x4000F000UL
+#define NRF_CCM_BASE 0x4000F000UL
+#define NRF_WDT_BASE 0x40010000UL
+#define NRF_RTC1_BASE 0x40011000UL
+#define NRF_QDEC_BASE 0x40012000UL
+#define NRF_LPCOMP_BASE 0x40013000UL
+#define NRF_SWI_BASE 0x40014000UL
+#define NRF_NVMC_BASE 0x4001E000UL
+#define NRF_PPI_BASE 0x4001F000UL
+#define NRF_FICR_BASE 0x10000000UL
+#define NRF_UICR_BASE 0x10001000UL
+#define NRF_GPIO_BASE 0x50000000UL
+
+
+/* ================================================================================ */
+/* ================ Peripheral declaration ================ */
+/* ================================================================================ */
+
+#define NRF_POWER ((NRF_POWER_Type *) NRF_POWER_BASE)
+#define NRF_CLOCK ((NRF_CLOCK_Type *) NRF_CLOCK_BASE)
+#define NRF_MPU ((NRF_MPU_Type *) NRF_MPU_BASE)
+#define NRF_RADIO ((NRF_RADIO_Type *) NRF_RADIO_BASE)
+#define NRF_UART0 ((NRF_UART_Type *) NRF_UART0_BASE)
+#define NRF_SPI0 ((NRF_SPI_Type *) NRF_SPI0_BASE)
+#define NRF_TWI0 ((NRF_TWI_Type *) NRF_TWI0_BASE)
+#define NRF_SPI1 ((NRF_SPI_Type *) NRF_SPI1_BASE)
+#define NRF_TWI1 ((NRF_TWI_Type *) NRF_TWI1_BASE)
+#define NRF_SPIS1 ((NRF_SPIS_Type *) NRF_SPIS1_BASE)
+#define NRF_GPIOTE ((NRF_GPIOTE_Type *) NRF_GPIOTE_BASE)
+#define NRF_ADC ((NRF_ADC_Type *) NRF_ADC_BASE)
+#define NRF_TIMER0 ((NRF_TIMER_Type *) NRF_TIMER0_BASE)
+#define NRF_TIMER1 ((NRF_TIMER_Type *) NRF_TIMER1_BASE)
+#define NRF_TIMER2 ((NRF_TIMER_Type *) NRF_TIMER2_BASE)
+#define NRF_RTC0 ((NRF_RTC_Type *) NRF_RTC0_BASE)
+#define NRF_TEMP ((NRF_TEMP_Type *) NRF_TEMP_BASE)
+#define NRF_RNG ((NRF_RNG_Type *) NRF_RNG_BASE)
+#define NRF_ECB ((NRF_ECB_Type *) NRF_ECB_BASE)
+#define NRF_AAR ((NRF_AAR_Type *) NRF_AAR_BASE)
+#define NRF_CCM ((NRF_CCM_Type *) NRF_CCM_BASE)
+#define NRF_WDT ((NRF_WDT_Type *) NRF_WDT_BASE)
+#define NRF_RTC1 ((NRF_RTC_Type *) NRF_RTC1_BASE)
+#define NRF_QDEC ((NRF_QDEC_Type *) NRF_QDEC_BASE)
+#define NRF_LPCOMP ((NRF_LPCOMP_Type *) NRF_LPCOMP_BASE)
+#define NRF_SWI ((NRF_SWI_Type *) NRF_SWI_BASE)
+#define NRF_NVMC ((NRF_NVMC_Type *) NRF_NVMC_BASE)
+#define NRF_PPI ((NRF_PPI_Type *) NRF_PPI_BASE)
+#define NRF_FICR ((NRF_FICR_Type *) NRF_FICR_BASE)
+#define NRF_UICR ((NRF_UICR_Type *) NRF_UICR_BASE)
+#define NRF_GPIO ((NRF_GPIO_Type *) NRF_GPIO_BASE)
+
+
+/** @} */ /* End of group Device_Peripheral_Registers */
+/** @} */ /* End of group nrf51 */
+/** @} */ /* End of group Nordic Semiconductor */
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* nrf51_H */
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51.svd b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51.svd
new file mode 100644
index 0000000..e59405b
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51.svd
@@ -0,0 +1,20978 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- File naming: <vendor>_<part/series name>_svd.xml -->
+<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" noNamespaceSchemaLocation="CMSIS-SVD.xsd">
+ <vendor>Nordic Semiconductor</vendor> <!-- Name for Doxygroup -->
+ <vendorID>Nordic</vendorID> <!-- Vendor ID -->
+ <name>nrf51</name> <!-- Official name of part or part series -->
+ <series>nrf51</series>
+ <version>522</version> <!-- Version of this description. It is the run of the automatic generation of SUS. -->
+ <description>nRF51 reference description for radio MCU with ARM 32-bit Cortex-M0 Microcontroller at 16MHz CPU clock</description>
+ <licenseText>
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA\n
+\n
+All rights reserved.\n
+\n
+Redistribution and use in source and binary forms, with or without modification,\n
+are permitted provided that the following conditions are met:\n
+\n
+1. Redistributions of source code must retain the above copyright notice, this\n
+ list of conditions and the following disclaimer.\n
+\n
+2. Redistributions in binary form, except as embedded into a Nordic\n
+ Semiconductor ASA integrated circuit in a product or a software update for\n
+ such product, must reproduce the above copyright notice, this list of\n
+ conditions and the following disclaimer in the documentation and/or other\n
+ materials provided with the distribution.\n
+\n
+3. Neither the name of Nordic Semiconductor ASA nor the names of its\n
+ contributors may be used to endorse or promote products derived from this\n
+ software without specific prior written permission.\n
+\n
+4. This software, with or without modification, must only be used with a\n
+ Nordic Semiconductor ASA integrated circuit.\n
+\n
+5. Any software provided in binary form under this license must not be reverse\n
+ engineered, decompiled, modified and/or disassembled.\n
+\n
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS\n
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE\n
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE\n
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\n
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n
+ </licenseText>
+
+ <!-- Register Properties Group -->
+ <addressUnitBits>8</addressUnitBits> <!-- byte addressable memory -->
+ <width>32</width> <!-- bus width is 32 bits -->
+ <size>32</size> <!-- this is the default size (number of bits) of all peripherals
+ and register that do not define "size" themselves -->
+ <resetValue>0x00000000</resetValue> <!-- by default all bits of the registers are initialized to 0 on reset -->
+ <resetMask>0xFFFFFFFF</resetMask> <!-- by default all 32Bits of the registers are used -->
+
+ <cpu>
+ <name>CM0</name>
+ <revision>r3p1</revision> <!-- CPU Revision r3p1 = 0x2000 -->
+ <endian>little</endian> <!-- little, big, configurable (headerfile: little, big, configurable (#ifdef compilerflag) -->
+ <mpuPresent>0</mpuPresent> <!-- Does the CPU has a MPU? {0|1} -->
+ <fpuPresent>0</fpuPresent> <!-- Does the CPU has a FPU? {0|1} -->
+ <nvicPrioBits>2</nvicPrioBits> <!-- Number of NVIC Priority Bits {8..2} -->
+ <vendorSystickConfig>0</vendorSystickConfig> <!-- Does the Vendor has his own Systick Configuration Function? See CMSIS: core_cm3.h -->
+ </cpu>
+
+ <headerSystemFilename>system_nrf51</headerSystemFilename> <!-- System Header File overwrite -->
+ <headerDefinitionsPrefix>NRF_</headerDefinitionsPrefix> <!-- Prefix for all structs and #defines -->
+
+ <vendorExtensions>
+ <ExampleStackSize>2048</ExampleStackSize> <!-- Default stack size used in Nordic's startup_nrf51.s files. [Byte/decimal] -->
+ <ExampleHeapSize>2048</ExampleHeapSize> <!-- Default heap size used in Nordic's startup_nrf51.s files. [Byte/decimal] -->
+ <MaxInterrupts>32</MaxInterrupts> <!-- Number of interrupts used in Nordic's startup_nrf51.s files. [Byte/decimal] -->
+ </vendorExtensions>
+
+ <peripherals>
+
+ <peripheral>
+ <name>POWER</name>
+ <version>522</version>
+ <description>Power Control.</description>
+ <groupName>POWER</groupName>
+ <baseAddress>0x40000000</baseAddress>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>POWER_CLOCK</name>
+ <value>0</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_CONSTLAT</name>
+ <description>Enable constant latency mode.</description>
+ <addressOffset>0x078</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_LOWPWR</name>
+ <description>Enable low power mode (variable latency).</description>
+ <addressOffset>0x07C</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_POFWARN</name>
+ <description>Power failure warning.</description>
+ <addressOffset>0x108</addressOffset>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>POFWARN</name>
+ <description>Enable interrupt on POFWARN event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>POFWARN</name>
+ <description>Disable interrupt on POFWARN event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>RESETREAS</name>
+ <description>Reset reason.</description>
+ <addressOffset>0x400</addressOffset>
+ <fields>
+ <field>
+ <name>RESETPIN</name>
+ <description>Reset from pin-reset detected.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Reset not detected.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Reset detected.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOG</name>
+ <description>Reset from watchdog detected.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Reset not detected.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Reset detected.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SREQ</name>
+ <description>Reset from AIRCR.SYSRESETREQ detected.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Reset not detected.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Reset detected.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOCKUP</name>
+ <description>Reset from CPU lock-up detected.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Reset not detected.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Reset detected.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OFF</name>
+ <description>Reset from wake-up from OFF mode detected by the use of DETECT signal from GPIO.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Reset not detected.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Reset detected.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LPCOMP</name>
+ <description>Reset from wake-up from OFF mode detected by the use of ANADETECT signal from LPCOMP.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Reset not detected.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Reset detected.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DIF</name>
+ <description>Reset from wake-up from OFF mode detected by entering into debug interface mode.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Reset not detected.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Reset detected.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>RAMSTATUS</name>
+ <description>Ram status register.</description>
+ <addressOffset>0x428</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RAMBLOCK0</name>
+ <description>RAM block 0 status.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>RAM block 0 is off or powering up.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>RAM block 0 is on.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RAMBLOCK1</name>
+ <description>RAM block 1 status.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>RAM block 1 is off or powering up.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>RAM block 1 is on.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RAMBLOCK2</name>
+ <description>RAM block 2 status.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>RAM block 2 is off or powering up.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>RAM block 2 is on.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RAMBLOCK3</name>
+ <description>RAM block 3 status.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>RAM block 3 is off or powering up.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>RAM block 3 is on.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>SYSTEMOFF</name>
+ <description>System off register.</description>
+ <addressOffset>0x500</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>SYSTEMOFF</name>
+ <description>Enter system off mode.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Enter</name>
+ <description>Enter system off mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POFCON</name>
+ <description>Power failure configuration.</description>
+ <addressOffset>0x510</addressOffset>
+ <fields>
+ <field>
+ <name>POF</name>
+ <description>Power failure comparator enable.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>THRESHOLD</name>
+ <description>Set threshold level.</description>
+ <lsb>1</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>V21</name>
+ <description>Set threshold to 2.1Volts.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V23</name>
+ <description>Set threshold to 2.3Volts.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V25</name>
+ <description>Set threshold to 2.5Volts.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V27</name>
+ <description>Set threshold to 2.7Volts.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>GPREGRET</name>
+ <description>General purpose retention register. This register is a retained register.</description>
+ <addressOffset>0x51C</addressOffset>
+ <fields>
+ <field>
+ <name>GPREGRET</name>
+ <description>General purpose retention register.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>RAMON</name>
+ <description>Ram on/off.</description>
+ <addressOffset>0x524</addressOffset>
+ <resetValue>0x00000003</resetValue>
+ <fields>
+ <field>
+ <name>ONRAM0</name>
+ <description>RAM block 0 behaviour in ON mode.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM0Off</name>
+ <description>RAM block 0 OFF in ON mode.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM0On</name>
+ <description>RAM block 0 ON in ON mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ONRAM1</name>
+ <description>RAM block 1 behaviour in ON mode.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM1Off</name>
+ <description>RAM block 1 OFF in ON mode.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM1On</name>
+ <description>RAM block 1 ON in ON mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OFFRAM0</name>
+ <description>RAM block 0 behaviour in OFF mode.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM0Off</name>
+ <description>RAM block 0 OFF in OFF mode.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM0On</name>
+ <description>RAM block 0 ON in OFF mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OFFRAM1</name>
+ <description>RAM block 1 behaviour in OFF mode.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM1Off</name>
+ <description>RAM block 1 OFF in OFF mode.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM1On</name>
+ <description>RAM block 1 ON in OFF mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>RESET</name>
+ <description>Pin reset functionality configuration register. This register is a retained register.</description>
+ <addressOffset>0x544</addressOffset>
+ <fields>
+ <field>
+ <name>RESET</name>
+ <description>Enable or disable pin reset in debug interface mode.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Pin reset in debug interface mode disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Pin reset in debug interface mode enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>RAMONB</name>
+ <description>Ram on/off.</description>
+ <addressOffset>0x554</addressOffset>
+ <resetValue>0x00000003</resetValue>
+ <fields>
+ <field>
+ <name>ONRAM2</name>
+ <description>RAM block 2 behaviour in ON mode.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM2Off</name>
+ <description>RAM block 2 OFF in ON mode.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM2On</name>
+ <description>RAM block 2 ON in ON mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ONRAM3</name>
+ <description>RAM block 3 behaviour in ON mode.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM3Off</name>
+ <description>RAM block 33 OFF in ON mode.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM3On</name>
+ <description>RAM block 3 ON in ON mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OFFRAM2</name>
+ <description>RAM block 2 behaviour in OFF mode.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM2Off</name>
+ <description>RAM block 2 OFF in OFF mode.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM2On</name>
+ <description>RAM block 2 ON in OFF mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OFFRAM3</name>
+ <description>RAM block 3 behaviour in OFF mode.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM3Off</name>
+ <description>RAM block 3 OFF in OFF mode.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM3On</name>
+ <description>RAM block 3 ON in OFF mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>DCDCEN</name>
+ <description>DCDC converter enable configuration register.</description>
+ <addressOffset>0x578</addressOffset>
+ <fields>
+ <field>
+ <name>DCDCEN</name>
+ <description>Enable DCDC converter.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>DCDC converter disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>DCDC converter enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DCDCFORCE</name>
+ <description>DCDC power-up force register.</description>
+ <addressOffset>0xA08</addressOffset>
+ <fields>
+ <field>
+ <name>FORCEOFF</name>
+ <description>DCDC power-up force off.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoForce</name>
+ <description>No force.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Force</name>
+ <description>Force.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FORCEON</name>
+ <description>DCDC power-up force on.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoForce</name>
+ <description>No force.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Force</name>
+ <description>Force.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>CLOCK</name>
+ <version>522</version>
+ <description>Clock control.</description>
+ <groupName>CLOCK</groupName>
+ <baseAddress>0x40000000</baseAddress>
+ <size>32</size>
+ <access>read-write</access>
+ <alternatePeripheral>POWER</alternatePeripheral>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>POWER_CLOCK</name>
+ <value>0</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_HFCLKSTART</name>
+ <description>Start HFCLK clock source.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_HFCLKSTOP</name>
+ <description>Stop HFCLK clock source.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_LFCLKSTART</name>
+ <description>Start LFCLK clock source.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_LFCLKSTOP</name>
+ <description>Stop LFCLK clock source.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CAL</name>
+ <description>Start calibration of LFCLK RC oscillator.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CTSTART</name>
+ <description>Start calibration timer.</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CTSTOP</name>
+ <description>Stop calibration timer.</description>
+ <addressOffset>0x018</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_HFCLKSTARTED</name>
+ <description>HFCLK oscillator started.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_LFCLKSTARTED</name>
+ <description>LFCLK oscillator started.</description>
+ <addressOffset>0x104</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_DONE</name>
+ <description>Calibration of LFCLK RC oscillator completed.</description>
+ <addressOffset>0x10C</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_CTTO</name>
+ <description>Calibration timer timeout.</description>
+ <addressOffset>0x110</addressOffset>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>HFCLKSTARTED</name>
+ <description>Enable interrupt on HFCLKSTARTED event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LFCLKSTARTED</name>
+ <description>Enable interrupt on LFCLKSTARTED event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Enable interrupt on DONE event.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CTTO</name>
+ <description>Enable interrupt on CTTO event.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>HFCLKSTARTED</name>
+ <description>Disable interrupt on HFCLKSTARTED event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LFCLKSTARTED</name>
+ <description>Disable interrupt on LFCLKSTARTED event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Disable interrupt on DONE event.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CTTO</name>
+ <description>Disable interrupt on CTTO event.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>HFCLKRUN</name>
+ <description>Task HFCLKSTART trigger status.</description>
+ <addressOffset>0x408</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>Task HFCLKSTART trigger status.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotTriggered</name>
+ <description>Task HFCLKSTART has not been triggered.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Triggered</name>
+ <description>Task HFCLKSTART has been triggered.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>HFCLKSTAT</name>
+ <description>High frequency clock status.</description>
+ <addressOffset>0x40C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Active clock source for the HF clock.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>Internal 16MHz RC oscillator running and generating the HFCLK clock.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>External 16MHz/32MHz crystal oscillator running and generating the HFCLK clock.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STATE</name>
+ <description>State for the HFCLK.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotRunning</name>
+ <description>HFCLK clock not running.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Running</name>
+ <description>HFCLK clock running.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>LFCLKRUN</name>
+ <description>Task LFCLKSTART triggered status.</description>
+ <addressOffset>0x414</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>Task LFCLKSTART triggered status.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotTriggered</name>
+ <description>Task LFCLKSTART has not been triggered.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Triggered</name>
+ <description>Task LFCLKSTART has been triggered.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>LFCLKSTAT</name>
+ <description>Low frequency clock status.</description>
+ <addressOffset>0x418</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Active clock source for the LF clock.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>Internal 32KiHz RC oscillator running and generating the LFCLK clock.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>External 32KiHz crystal oscillator running and generating the LFCLK clock.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Synth</name>
+ <description>Internal 32KiHz synthesizer from the HFCLK running and generating the LFCLK clock.</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STATE</name>
+ <description>State for the LF clock.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotRunning</name>
+ <description>LFCLK clock not running.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Running</name>
+ <description>LFCLK clock running.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>LFCLKSRCCOPY</name>
+ <description>Clock source for the LFCLK clock, set when task LKCLKSTART is triggered.</description>
+ <addressOffset>0x41C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Clock source for the LFCLK clock, set when task LKCLKSTART is triggered.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>Internal 32KiHz RC oscillator.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>External 32KiHz crystal.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Synth</name>
+ <description>Internal 32KiHz synthesizer from HFCLK system clock.</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>LFCLKSRC</name>
+ <description>Clock source for the LFCLK clock.</description>
+ <addressOffset>0x518</addressOffset>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Clock source.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>Internal 32KiHz RC oscillator.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>External 32KiHz crystal.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Synth</name>
+ <description>Internal 32KiHz synthesizer from HFCLK system clock.</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>CTIV</name>
+ <description>Calibration timer interval.</description>
+ <addressOffset>0x538</addressOffset>
+ <fields>
+ <field>
+ <name>CTIV</name>
+ <description>Calibration timer interval in 0.25s resolution.</description>
+ <lsb>0</lsb> <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>XTALFREQ</name>
+ <description>Crystal frequency.</description>
+ <addressOffset>0x550</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>XTALFREQ</name>
+ <description>External Xtal frequency selection.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>16MHz</name>
+ <description>16MHz xtal is used as source for the HFCLK oscillator.</description>
+ <value>0xFF</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MHz</name>
+ <description>32MHz xtal is used as source for the HFCLK oscillator.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>MPU</name>
+ <version>522</version>
+ <description>Memory Protection Unit.</description>
+ <groupName>MPU</groupName>
+ <baseAddress>0x40000000</baseAddress>
+ <size>32</size>
+ <access>read-write</access>
+ <alternatePeripheral>POWER</alternatePeripheral>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <registers>
+ <register>
+ <name>PERR0</name>
+ <description>Configuration of peripherals in mpu regions.</description>
+ <addressOffset>0x528</addressOffset>
+ <fields>
+ <field>
+ <name>POWER_CLOCK</name>
+ <description>POWER_CLOCK region configuration.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RADIO</name>
+ <description>RADIO region configuration.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UART0</name>
+ <description>UART0 region configuration.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SPI0_TWI0</name>
+ <description>SPI0 and TWI0 region configuration.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SPI1_TWI1</name>
+ <description>SPI1 and TWI1 region configuration.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>GPIOTE</name>
+ <description>GPIOTE region configuration.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADC</name>
+ <description>ADC region configuration.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TIMER0</name>
+ <description>TIMER0 region configuration.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TIMER1</name>
+ <description>TIMER1 region configuration.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TIMER2</name>
+ <description>TIMER2 region configuration.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RTC0</name>
+ <description>RTC0 region configuration.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TEMP</name>
+ <description>TEMP region configuration.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RNG</name>
+ <description>RNG region configuration.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ECB</name>
+ <description>ECB region configuration.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CCM_AAR</name>
+ <description>CCM and AAR region configuration.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WDT</name>
+ <description>WDT region configuration.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RTC1</name>
+ <description>RTC1 region configuration.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>QDEC</name>
+ <description>QDEC region configuration.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LPCOMP</name>
+ <description>LPCOMP region configuration.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NVMC</name>
+ <description>NVMC region configuration.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PPI</name>
+ <description>PPI region configuration.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>InRegion0</name>
+ <description>Peripheral configured in region 0.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>InRegion1</name>
+ <description>Peripheral configured in region 1.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>RLENR0</name>
+ <description>Length of RAM region 0.</description>
+ <addressOffset>0x52C</addressOffset>
+ </register>
+
+ <register>
+ <name>PROTENSET0</name>
+ <description>Erase and write protection bit enable set register.</description>
+ <addressOffset>0x600</addressOffset>
+ <fields>
+ <field>
+ <name>PROTREG0</name>
+ <description>Protection enable for region 0.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG1</name>
+ <description>Protection enable for region 1.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG2</name>
+ <description>Protection enable for region 2.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG3</name>
+ <description>Protection enable for region 3.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG4</name>
+ <description>Protection enable for region 4.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG5</name>
+ <description>Protection enable for region 5.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG6</name>
+ <description>Protection enable for region 6.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG7</name>
+ <description>Protection enable for region 7.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG8</name>
+ <description>Protection enable for region 8.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG9</name>
+ <description>Protection enable for region 9.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG10</name>
+ <description>Protection enable for region 10.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG11</name>
+ <description>Protection enable for region 11.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG12</name>
+ <description>Protection enable for region 12.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG13</name>
+ <description>Protection enable for region 13.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG14</name>
+ <description>Protection enable for region 14.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG15</name>
+ <description>Protection enable for region 15.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG16</name>
+ <description>Protection enable for region 16.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG17</name>
+ <description>Protection enable for region 17.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG18</name>
+ <description>Protection enable for region 18.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG19</name>
+ <description>Protection enable for region 19.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG20</name>
+ <description>Protection enable for region 20.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG21</name>
+ <description>Protection enable for region 21.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG22</name>
+ <description>Protection enable for region 22.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG23</name>
+ <description>Protection enable for region 23.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG24</name>
+ <description>Protection enable for region 24.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG25</name>
+ <description>Protection enable for region 25.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG26</name>
+ <description>Protection enable for region 26.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG27</name>
+ <description>Protection enable for region 27.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG28</name>
+ <description>Protection enable for region 28.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG29</name>
+ <description>Protection enable for region 29.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG30</name>
+ <description>Protection enable for region 30.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG31</name>
+ <description>Protection enable for region 31.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>PROTENSET1</name>
+ <description>Erase and write protection bit enable set register.</description>
+ <addressOffset>0x604</addressOffset>
+ <fields>
+ <field>
+ <name>PROTREG32</name>
+ <description>Protection enable for region 32.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG33</name>
+ <description>Protection enable for region 33.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG34</name>
+ <description>Protection enable for region 34.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG35</name>
+ <description>Protection enable for region 35.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG36</name>
+ <description>Protection enable for region 36.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG37</name>
+ <description>Protection enable for region 37.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG38</name>
+ <description>Protection enable for region 38.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG39</name>
+ <description>Protection enable for region 39.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG40</name>
+ <description>Protection enable for region 40.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG41</name>
+ <description>Protection enable for region 41.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG42</name>
+ <description>Protection enable for region 42.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG43</name>
+ <description>Protection enable for region 43.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG44</name>
+ <description>Protection enable for region 44.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG45</name>
+ <description>Protection enable for region 45.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG46</name>
+ <description>Protection enable for region 46.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG47</name>
+ <description>Protection enable for region 47.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG48</name>
+ <description>Protection enable for region 48.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG49</name>
+ <description>Protection enable for region 49.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG50</name>
+ <description>Protection enable for region 50.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG51</name>
+ <description>Protection enable for region 51.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG52</name>
+ <description>Protection enable for region 52.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG53</name>
+ <description>Protection enable for region 53.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG54</name>
+ <description>Protection enable for region 54.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG55</name>
+ <description>Protection enable for region 55.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG56</name>
+ <description>Protection enable for region 56.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG57</name>
+ <description>Protection enable for region 57.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG58</name>
+ <description>Protection enable for region 58.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG59</name>
+ <description>Protection enable for region 59.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG60</name>
+ <description>Protection enable for region 60.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG61</name>
+ <description>Protection enable for region 61.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG62</name>
+ <description>Protection enable for region 62.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PROTREG63</name>
+ <description>Protection enable for region 63.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable protection on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>DISABLEINDEBUG</name>
+ <description>Disable erase and write protection mechanism in debug mode.</description>
+ <addressOffset>0x608</addressOffset>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>DISABLEINDEBUG</name>
+ <description>Disable protection mechanism in debug mode.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>PROTBLOCKSIZE</name>
+ <description>Erase and write protection block size.</description>
+ <addressOffset>0x60C</addressOffset>
+ <fields>
+ <field>
+ <name>PROTBLOCKSIZE</name>
+ <description>Erase and write protection block size.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>4k</name>
+ <description>Erase and write protection block size is 4k.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>RADIO</name>
+ <version>522</version>
+ <description>The radio.</description>
+ <baseAddress>0x40001000</baseAddress>
+ <groupName>RADIO</groupName>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>RADIO</name>
+ <value>1</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_TXEN</name>
+ <description>Enable radio in TX mode.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RXEN</name>
+ <description>Enable radio in RX mode.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start radio.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop radio.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_DISABLE</name>
+ <description>Disable radio.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RSSISTART</name>
+ <description>Start the RSSI and take one sample of the receive signal strength.</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RSSISTOP</name>
+ <description>Stop the RSSI measurement.</description>
+ <addressOffset>0x018</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_BCSTART</name>
+ <description>Start the bit counter.</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_BCSTOP</name>
+ <description>Stop the bit counter.</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_READY</name>
+ <description>Ready event.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_ADDRESS</name>
+ <description>Address event.</description>
+ <addressOffset>0x104</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_PAYLOAD</name>
+ <description>Payload event.</description>
+ <addressOffset>0x108</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>End event.</description>
+ <addressOffset>0x10C</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_DISABLED</name>
+ <description>Disable event.</description>
+ <addressOffset>0x110</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_DEVMATCH</name>
+ <description>A device address match occurred on the last received packet.</description>
+ <addressOffset>0x114</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_DEVMISS</name>
+ <description>No device address match occurred on the last received packet.</description>
+ <addressOffset>0x118</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_RSSIEND</name>
+ <description>Sampling of the receive signal strength complete. A new RSSI sample is ready for readout at the RSSISAMPLE register.</description>
+ <addressOffset>0x11C</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_BCMATCH</name>
+ <description>Bit counter reached bit count value specified in BCC register.</description>
+ <addressOffset>0x128</addressOffset>
+ </register>
+
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcuts for the radio.</description>
+ <addressOffset>0x200</addressOffset>
+ <fields>
+ <field>
+ <name>READY_START</name>
+ <description>Shortcut between READY event and START task.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END_DISABLE</name>
+ <description>Shortcut between END event and DISABLE task.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED_TXEN</name>
+ <description>Shortcut between DISABLED event and TXEN task. </description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED_RXEN</name>
+ <description>Shortcut between DISABLED event and RXEN task.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS_RSSISTART</name>
+ <description>Shortcut between ADDRESS event and RSSISTART task.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END_START</name>
+ <description>Shortcut between END event and START task.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS_BCSTART</name>
+ <description>Shortcut between ADDRESS event and BCSTART task.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED_RSSISTOP</name>
+ <description>Shortcut between DISABLED event and RSSISTOP task.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Enable interrupt on READY event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS</name>
+ <description>Enable interrupt on ADDRESS event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PAYLOAD</name>
+ <description>Enable interrupt on PAYLOAD event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Enable interrupt on END event.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED</name>
+ <description>Enable interrupt on DISABLED event.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMATCH</name>
+ <description>Enable interrupt on DEVMATCH event.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMISS</name>
+ <description>Enable interrupt on DEVMISS event.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RSSIEND</name>
+ <description>Enable interrupt on RSSIEND event.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BCMATCH</name>
+ <description>Enable interrupt on BCMATCH event.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Disable interrupt on READY event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS</name>
+ <description>Disable interrupt on ADDRESS event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PAYLOAD</name>
+ <description>Disable interrupt on PAYLOAD event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Disable interrupt on END event.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED</name>
+ <description>Disable interrupt on DISABLED event.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMATCH</name>
+ <description>Disable interrupt on DEVMATCH event.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMISS</name>
+ <description>Disable interrupt on DEVMISS event.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RSSIEND</name>
+ <description>Disable interrupt on RSSIEND event.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BCMATCH</name>
+ <description>Disable interrupt on BCMATCH event.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>CRCSTATUS</name>
+ <description>CRC status of received packet.</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>CRCSTATUS</name>
+ <description>CRC status of received packet.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>CRCError</name>
+ <description>Packet received with CRC error.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CRCOk</name>
+ <description>Packet received with CRC ok.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>RXMATCH</name>
+ <description>Received address.</description>
+ <addressOffset>0x408</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RXMATCH</name>
+ <description>Logical address in which previous packet was received.</description>
+ <lsb>0</lsb> <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>RXCRC</name>
+ <description>Received CRC.</description>
+ <addressOffset>0x40C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RXCRC</name>
+ <description>CRC field of previously received packet.</description>
+ <lsb>0</lsb> <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>DAI</name>
+ <description>Device address match index.</description>
+ <addressOffset>0x410</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>DAI</name>
+ <description>Index (n) of device address (see DAB[n] and DAP[n]) that obtained an address match.</description>
+ <lsb>0</lsb> <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>PACKETPTR</name>
+ <description>Packet pointer. Decision point: START task.</description>
+ <addressOffset>0x504</addressOffset>
+ </register>
+
+ <register>
+ <name>FREQUENCY</name>
+ <description>Frequency.</description>
+ <addressOffset>0x508</addressOffset>
+ <resetValue>0x00000002</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>Radio channel frequency offset in MHz: RF Frequency = 2400 + FREQUENCY (MHz). Decision point: TXEN or RXEN task. </description>
+ <lsb>0</lsb> <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXPOWER</name>
+ <description>Output power.</description>
+ <addressOffset>0x50C</addressOffset>
+ <fields>
+ <field>
+ <name>TXPOWER</name>
+ <description>Radio output power. Decision point: TXEN task.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Pos4dBm</name>
+ <description>+4dBm.</description>
+ <value>0x04</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>0dBm</name>
+ <description>0dBm.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg4dBm</name>
+ <description>-4dBm.</description>
+ <value>0xFC</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg8dBm</name>
+ <description>-8dBm.</description>
+ <value>0xF8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg12dBm</name>
+ <description>-12dBm.</description>
+ <value>0xF4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg16dBm</name>
+ <description>-16dBm.</description>
+ <value>0xF0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg20dBm</name>
+ <description>-20dBm.</description>
+ <value>0xEC</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg30dBm</name>
+ <description>-30dBm.</description>
+ <value>0xD8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Data rate and modulation.</description>
+ <addressOffset>0x510</addressOffset>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Radio data rate and modulation setting. Decision point: TXEN or RXEN task.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Nrf_1Mbit</name>
+ <description>1Mbit/s Nordic propietary radio mode.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Nrf_2Mbit</name>
+ <description>2Mbit/s Nordic propietary radio mode.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Nrf_250Kbit</name>
+ <description>250kbit/s Nordic propietary radio mode.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ble_1Mbit</name>
+ <description>1Mbit/s Bluetooth Low Energy</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PCNF0</name>
+ <description>Packet configuration 0.</description>
+ <addressOffset>0x514</addressOffset>
+ <fields>
+ <field>
+ <name>LFLEN</name>
+ <description>Length of length field in number of bits. Decision point: START task.</description>
+ <lsb>0</lsb> <msb>3</msb>
+ </field>
+ <field>
+ <name>S0LEN</name>
+ <description>Length of S0 field in number of bytes. Decision point: START task.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ </field>
+ <field>
+ <name>S1LEN</name>
+ <description>Length of S1 field in number of bits. Decision point: START task.</description>
+ <lsb>16</lsb> <msb>19</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PCNF1</name>
+ <description>Packet configuration 1.</description>
+ <addressOffset>0x518</addressOffset>
+ <fields>
+ <field>
+ <name>MAXLEN</name>
+ <description>Maximum length of packet payload in number of bytes.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ <field>
+ <name>STATLEN</name>
+ <description>Static length in number of bytes. Decision point: START task.</description>
+ <lsb>8</lsb> <msb>15</msb>
+ </field>
+ <field>
+ <name>BALEN</name>
+ <description>Base address length in number of bytes. Decision point: START task.</description>
+ <lsb>16</lsb> <msb>18</msb>
+ </field>
+ <field>
+ <name>ENDIAN</name>
+ <description>On air endianness of packet length field. Decision point: START task.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Little</name>
+ <description>Least significant bit on air first</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Big</name>
+ <description>Most significant bit on air first</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WHITEEN</name>
+ <description>Packet whitening enable.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Whitening disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Whitening enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BASE0</name>
+ <description>Radio base address 0. Decision point: START task.</description>
+ <addressOffset>0x51C</addressOffset>
+ </register>
+ <register>
+ <name>BASE1</name>
+ <description>Radio base address 1. Decision point: START task.</description>
+ <addressOffset>0x520</addressOffset>
+ </register>
+ <register>
+ <name>PREFIX0</name>
+ <description>Prefixes bytes for logical addresses 0 to 3.</description>
+ <addressOffset>0x524</addressOffset>
+ <fields>
+ <field>
+ <name>AP0</name>
+ <description>Address prefix 0. Decision point: START task.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ <field>
+ <name>AP1</name>
+ <description>Address prefix 1. Decision point: START task.</description>
+ <lsb>8</lsb> <msb>15</msb>
+ </field>
+ <field>
+ <name>AP2</name>
+ <description>Address prefix 2. Decision point: START task.</description>
+ <lsb>16</lsb> <msb>23</msb>
+ </field>
+ <field>
+ <name>AP3</name>
+ <description>Address prefix 3. Decision point: START task.</description>
+ <lsb>24</lsb> <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PREFIX1</name>
+ <description>Prefixes bytes for logical addresses 4 to 7.</description>
+ <addressOffset>0x528</addressOffset>
+ <fields>
+ <field>
+ <name>AP4</name>
+ <description>Address prefix 4. Decision point: START task.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ <field>
+ <name>AP5</name>
+ <description>Address prefix 5. Decision point: START task.</description>
+ <lsb>8</lsb> <msb>15</msb>
+ </field>
+ <field>
+ <name>AP6</name>
+ <description>Address prefix 6. Decision point: START task.</description>
+ <lsb>16</lsb> <msb>23</msb>
+ </field>
+ <field>
+ <name>AP7</name>
+ <description>Address prefix 7. Decision point: START task.</description>
+ <lsb>24</lsb> <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXADDRESS</name>
+ <description>Transmit address select.</description>
+ <addressOffset>0x52C</addressOffset>
+ <fields>
+ <field>
+ <name>TXADDRESS</name>
+ <description>Logical address to be used when transmitting a packet. Decision point: START task.</description>
+ <lsb>0</lsb> <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXADDRESSES</name>
+ <description>Receive address select.</description>
+ <addressOffset>0x530</addressOffset>
+ <fields>
+ <field>
+ <name>ADDR0</name>
+ <description>Enable reception on logical address 0. Decision point: START task.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Reception disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Reception enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR1</name>
+ <description>Enable reception on logical address 1. Decision point: START task.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Reception disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Reception enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR2</name>
+ <description>Enable reception on logical address 2. Decision point: START task.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Reception disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Reception enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR3</name>
+ <description>Enable reception on logical address 3. Decision point: START task.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Reception disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Reception enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR4</name>
+ <description>Enable reception on logical address 4. Decision point: START task.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Reception disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Reception enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR5</name>
+ <description>Enable reception on logical address 5. Decision point: START task.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Reception disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Reception enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR6</name>
+ <description>Enable reception on logical address 6. Decision point: START task.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Reception disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Reception enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR7</name>
+ <description>Enable reception on logical address 7. Decision point: START task.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Reception disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Reception enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCCNF</name>
+ <description>CRC configuration.</description>
+ <addressOffset>0x534</addressOffset>
+ <fields>
+ <field>
+ <name>LEN</name>
+ <description>CRC length. Decision point: START task.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>CRC calculation disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>One</name>
+ <description>One byte long CRC.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Two</name>
+ <description>Two bytes long CRC.</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Three</name>
+ <description>Three bytes long CRC.</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SKIPADDR</name>
+ <description>Leave packet address field out of the CRC calculation. Decision point: START task.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include packet address in CRC calculation.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Skip</name>
+ <description>Packet address is skipped in CRC calculation. The CRC calculation will start at the first byte after the address.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCPOLY</name>
+ <description>CRC polynomial.</description>
+ <addressOffset>0x538</addressOffset>
+ <fields>
+ <field>
+ <name>CRCPOLY</name>
+ <description>CRC polynomial. Decision point: START task.</description>
+ <lsb>0</lsb> <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCINIT</name>
+ <description>CRC initial value.</description>
+ <addressOffset>0x53C</addressOffset>
+ <fields>
+ <field>
+ <name>CRCINIT</name>
+ <description>Initial value for CRC calculation. Decision point: START task.</description>
+ <lsb>0</lsb> <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TEST</name>
+ <description>Test features enable register.</description>
+ <addressOffset>0x540</addressOffset>
+ <fields>
+ <field>
+ <name>CONSTCARRIER</name>
+ <description>Constant carrier. Decision point: TXEN task.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Constant carrier disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Constant carrier enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PLLLOCK</name>
+ <description>PLL lock. Decision point: TXEN or RXEN task.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>PLL lock disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>PLL lock enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>TIFS</name>
+ <description>Inter Frame Spacing in microseconds.</description>
+ <addressOffset>0x544</addressOffset>
+ <fields>
+ <field>
+ <name>TIFS</name>
+ <description>Inter frame spacing in microseconds. Decision point: START rask</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>RSSISAMPLE</name>
+ <description>RSSI sample.</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RSSISAMPLE</name>
+ <description>RSSI sample result. The result is read as a positive value so that ReceivedSignalStrength = -RSSISAMPLE dBm</description>
+ <lsb>0</lsb> <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATE</name>
+ <description>Current radio state.</description>
+ <addressOffset>0x550</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATE</name>
+ <description>Current radio state.</description>
+ <lsb>0</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Radio is in the Disabled state.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RxRu</name>
+ <description>Radio is in the Rx Ramp Up state.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RxIdle</name>
+ <description>Radio is in the Rx Idle state.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Rx</name>
+ <description>Radio is in the Rx state.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RxDisable</name>
+ <description>Radio is in the Rx Disable state.</description>
+ <value>0x04</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>TxRu</name>
+ <description>Radio is in the Tx Ramp Up state.</description>
+ <value>0x09</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>TxIdle</name>
+ <description>Radio is in the Tx Idle state.</description>
+ <value>0x0A</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Tx</name>
+ <description>Radio is in the Tx state.</description>
+ <value>0x0B</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>TxDisable</name>
+ <description>Radio is in the Tx Disable state.</description>
+ <value>0x0C</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DATAWHITEIV</name>
+ <description>Data whitening initial value.</description>
+ <addressOffset>0x554</addressOffset>
+ <resetValue>0x00000040</resetValue>
+ <fields>
+ <field>
+ <name>DATAWHITEIV</name>
+ <description>Data whitening initial value. Bit 0 corresponds to Position 0 of the LSFR, Bit 1 to position 5... Decision point: TXEN or RXEN task.</description>
+ <lsb>0</lsb> <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>BCC</name>
+ <description>Bit counter compare.</description>
+ <addressOffset>0x560</addressOffset>
+ </register>
+
+ <register>
+ <dim>8</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>DAB[%s]</name>
+ <description>Device address base segment.</description>
+ <addressOffset>0x600</addressOffset>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>DAP[%s]</name>
+ <description>Device address prefix.</description>
+ <addressOffset>0x620</addressOffset>
+ <fields>
+ <field>
+ <name>DAP</name>
+ <description>Device address prefix.</description>
+ <lsb>0</lsb> <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DACNF</name>
+ <description>Device address match configuration.</description>
+ <addressOffset>0x640</addressOffset>
+ <fields>
+ <field>
+ <name>ENA0</name>
+ <description>Enable or disable device address matching using device address 0.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA1</name>
+ <description>Enable or disable device address matching using device address 1.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA2</name>
+ <description>Enable or disable device address matching using device address 2.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA3</name>
+ <description>Enable or disable device address matching using device address 3.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA4</name>
+ <description>Enable or disable device address matching using device address 4.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA5</name>
+ <description>Enable or disable device address matching using device address 5.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA6</name>
+ <description>Enable or disable device address matching using device address 6.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA7</name>
+ <description>Enable or disable device address matching using device address 7.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXADD0</name>
+ <description>TxAdd for device address 0.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ </field>
+ <field>
+ <name>TXADD1</name>
+ <description>TxAdd for device address 1.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ </field>
+ <field>
+ <name>TXADD2</name>
+ <description>TxAdd for device address 2.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ </field>
+ <field>
+ <name>TXADD3</name>
+ <description>TxAdd for device address 3.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ </field>
+ <field>
+ <name>TXADD4</name>
+ <description>TxAdd for device address 4.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ </field>
+ <field>
+ <name>TXADD5</name>
+ <description>TxAdd for device address 5.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ </field>
+ <field>
+ <name>TXADD6</name>
+ <description>TxAdd for device address 6.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ </field>
+ <field>
+ <name>TXADD7</name>
+ <description>TxAdd for device address 7.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>OVERRIDE0</name>
+ <description>Trim value override register 0.</description>
+ <addressOffset>0x724</addressOffset>
+ <fields>
+ <field>
+ <name>OVERRIDE0</name>
+ <description>Trim value override 0.</description>
+ <lsb>0</lsb> <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OVERRIDE1</name>
+ <description>Trim value override register 1.</description>
+ <addressOffset>0x728</addressOffset>
+ <fields>
+ <field>
+ <name>OVERRIDE1</name>
+ <description>Trim value override 1.</description>
+ <lsb>0</lsb> <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OVERRIDE2</name>
+ <description>Trim value override register 2.</description>
+ <addressOffset>0x72C</addressOffset>
+ <fields>
+ <field>
+ <name>OVERRIDE2</name>
+ <description>Trim value override 2.</description>
+ <lsb>0</lsb> <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OVERRIDE3</name>
+ <description>Trim value override register 3.</description>
+ <addressOffset>0x730</addressOffset>
+ <fields>
+ <field>
+ <name>OVERRIDE3</name>
+ <description>Trim value override 3.</description>
+ <lsb>0</lsb> <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OVERRIDE4</name>
+ <description>Trim value override register 4.</description>
+ <addressOffset>0x734</addressOffset>
+ <fields>
+ <field>
+ <name>OVERRIDE4</name>
+ <description>Trim value override 4.</description>
+ <lsb>0</lsb> <msb>27</msb>
+ </field>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable override of default trim values.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Override trim values disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Override trim values enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>UART0</name>
+ <version>522</version>
+ <description>Universal Asynchronous Receiver/Transmitter.</description>
+ <baseAddress>0x40002000</baseAddress>
+ <groupName>UART</groupName>
+ <size>32</size>
+ <access>read-write</access>
+ <headerStructName>UART</headerStructName>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>UART0</name>
+ <value>2</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_STARTRX</name>
+ <description>Start UART receiver.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOPRX</name>
+ <description>Stop UART receiver.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start UART transmitter.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOPTX</name>
+ <description>Stop UART transmitter.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend UART.</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_CTS</name>
+ <description>CTS activated.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_NCTS</name>
+ <description>CTS deactivated.</description>
+ <addressOffset>0x104</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_RXDRDY</name>
+ <description>Data received in RXD.</description>
+ <addressOffset>0x108</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_TXDRDY</name>
+ <description>Data sent from TXD.</description>
+ <addressOffset>0x11C</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>Error detected.</description>
+ <addressOffset>0x124</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_RXTO</name>
+ <description>Receiver timeout.</description>
+ <addressOffset>0x144</addressOffset>
+ </register>
+
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcuts for UART.</description>
+ <addressOffset>0x200</addressOffset>
+ <fields>
+ <field>
+ <name>CTS_STARTRX</name>
+ <description>Shortcut between CTS event and STARTRX task.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS_STOPRX</name>
+ <description>Shortcut between NCTS event and STOPRX task.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Enable interrupt on CTS event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Enable interrupt on NCTS event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Enable interrupt on RXRDY event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Enable interrupt on TXRDY event.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable interrupt on ERROR event.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Enable interrupt on RXTO event.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Disable interrupt on CTS event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Disable interrupt on NCTS event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Disable interrupt on RXRDY event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Disable interrupt on TXRDY event.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Disable interrupt on ERROR event.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Disable interrupt on RXTO event.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source. Write error field to 1 to clear error.</description>
+ <addressOffset>0x480</addressOffset>
+ <fields>
+ <field>
+ <name>OVERRUN</name>
+ <description>A start bit is received while the previous data still lies in RXD. (Data loss).</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Error not present.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Error present.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Clear error on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITY</name>
+ <description>A character with bad parity is received. Only checked if HW parity control is enabled.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Error not present.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Error present.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Clear error on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FRAMING</name>
+ <description>A valid stop bit is not detected on the serial data input after all bits in a character have been received.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Error not present.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Error present.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Clear error on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BREAK</name>
+ <description>The serial data input is '0' for longer than the length of a data frame.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Error not present.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Error present.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Clear error on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ENABLE</name>
+ <description>Enable UART and acquire IOs.</description>
+ <addressOffset>0x500</addressOffset>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable UART and acquire IOs.</description>
+ <lsb>0</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>UART disabled.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>UART enabled.</description>
+ <value>0x04</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSELRTS</name>
+ <description>Pin select for RTS.</description>
+ <addressOffset>0x508</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+ <register>
+ <name>PSELTXD</name>
+ <description>Pin select for TXD.</description>
+ <addressOffset>0x50C</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+ <register>
+ <name>PSELCTS</name>
+ <description>Pin select for CTS.</description>
+ <addressOffset>0x510</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+ <register>
+ <name>PSELRXD</name>
+ <description>Pin select for RXD.</description>
+ <addressOffset>0x514</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+
+ <register>
+ <name>RXD</name>
+ <description>RXD register. On read action the buffer pointer is displaced. Once read the character is consumed. If read when no character available, the UART will stop working.</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <readAction>modifyExternal</readAction>
+ <fields>
+ <field>
+ <name>RXD</name>
+ <description>RX data from previous transfer. Double buffered.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>TXD register.</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TXD</name>
+ <description>TX data for transfer.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>BAUDRATE</name>
+ <description>UART Baudrate.</description>
+ <addressOffset>0x524</addressOffset>
+ <fields>
+ <field>
+ <name>BAUDRATE</name>
+ <description>UART baudrate.</description>
+ <lsb>0</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Baud1200</name>
+ <description>1200 baud.</description>
+ <value>0x0004F000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud2400</name>
+ <description>2400 baud.</description>
+ <value>0x0009D000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud4800</name>
+ <description>4800 baud.</description>
+ <value>0x0013B000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud9600</name>
+ <description>9600 baud.</description>
+ <value>0x00275000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud14400</name>
+ <description>14400 baud.</description>
+ <value>0x003B0000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud19200</name>
+ <description>19200 baud.</description>
+ <value>0x004EA000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud28800</name>
+ <description>28800 baud.</description>
+ <value>0x0075F000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud31250</name>
+ <description>31250 baud.</description>
+ <value>0x00800000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud38400</name>
+ <description>38400 baud.</description>
+ <value>0x009D5000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud56000</name>
+ <description>56000 baud.</description>
+ <value>0x00E50000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud57600</name>
+ <description>57600 baud.</description>
+ <value>0x00EBF000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud76800</name>
+ <description>76800 baud.</description>
+ <value>0x013A9000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud115200</name>
+ <description>115200 baud.</description>
+ <value>0x01D7E000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud230400</name>
+ <description>230400 baud.</description>
+ <value>0x03AFB000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud250000</name>
+ <description>250000 baud.</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud460800</name>
+ <description>460800 baud.</description>
+ <value>0x075F7000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud921600</name>
+ <description>921600 baud.</description>
+ <value>0x0EBED000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud1M</name>
+ <description>1M baud.</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration of parity and hardware flow control register.</description>
+ <addressOffset>0x56C</addressOffset>
+ <fields>
+ <field>
+ <name>HWFC</name>
+ <description>Hardware flow control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Hardware flow control disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Hardware flow control enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITY</name>
+ <description>Include parity bit.</description>
+ <lsb>1</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Parity bit excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Parity bit included.</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>SPI0</name>
+ <version>522</version>
+ <description>SPI master 0.</description>
+ <baseAddress>0x40003000</baseAddress>
+ <groupName>SPI</groupName>
+ <size>32</size>
+ <access>read-write</access>
+ <headerStructName>SPI</headerStructName>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+
+ <registers>
+
+ <register>
+ <name>EVENTS_READY</name>
+ <description>TXD byte sent and RXD byte received.</description>
+ <addressOffset>0x108</addressOffset>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Enable interrupt on READY event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Disable interrupt on READY event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ENABLE</name>
+ <description>Enable SPI.</description>
+ <addressOffset>0x500</addressOffset>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable SPI.</description>
+ <lsb>0</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled SPI.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable SPI.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>PSELSCK</name>
+ <description>Pin select for SCK.</description>
+ <addressOffset>0x508</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+ <register>
+ <name>PSELMOSI</name>
+ <description>Pin select for MOSI.</description>
+ <addressOffset>0x50C</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+ <register>
+ <name>PSELMISO</name>
+ <description>Pin select for MISO.</description>
+ <addressOffset>0x510</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+
+ <register>
+ <name>RXD</name>
+ <description>RX data.</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <readAction>modifyExternal</readAction>
+ <fields>
+ <field>
+ <name>RXD</name>
+ <description>RX data from last transfer.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>TX data.</description>
+ <addressOffset>0x51C</addressOffset>
+ <fields>
+ <field>
+ <name>TXD</name>
+ <description>TX data for next transfer.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FREQUENCY</name>
+ <description>SPI frequency</description>
+ <addressOffset>0x524</addressOffset>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>SPI data rate.</description>
+ <lsb>0</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K125</name>
+ <description>125kbps.</description>
+ <value>0x02000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K250</name>
+ <description>250kbps.</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K500</name>
+ <description>500kbps.</description>
+ <value>0x08000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M1</name>
+ <description>1Mbps.</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M2</name>
+ <description>2Mbps.</description>
+ <value>0x20000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M4</name>
+ <description>4Mbps.</description>
+ <value>0x40000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M8</name>
+ <description>8Mbps.</description>
+ <value>0x80000000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register.</description>
+ <addressOffset>0x554</addressOffset>
+ <fields>
+ <field>
+ <name>ORDER</name>
+ <description>Bit order.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MsbFirst</name>
+ <description>Most significant bit transmitted out first.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LsbFirst</name>
+ <description>Least significant bit transmitted out first.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPHA</name>
+ <description>Serial clock (SCK) phase.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Leading</name>
+ <description>Sample on leading edge of the clock. Shift serial data on trailing edge.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Trailing</name>
+ <description>Sample on trailing edge of the clock. Shift serial data on leading edge.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPOL</name>
+ <description>Serial clock (SCK) polarity.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Active high.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Active low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>TWI0</name>
+ <version>522</version>
+ <description>Two-wire interface master 0.</description>
+ <baseAddress>0x40003000</baseAddress>
+ <groupName>TWI</groupName>
+ <size>32</size>
+ <access>read-write</access>
+ <headerStructName>TWI</headerStructName>
+ <alternatePeripheral>SPI0</alternatePeripheral>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_STARTRX</name>
+ <description>Start 2-Wire master receive sequence.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start 2-Wire master transmit sequence.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop 2-Wire transaction.</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend 2-Wire transaction.</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RESUME</name>
+ <description>Resume 2-Wire transaction.</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>Two-wire stopped.</description>
+ <addressOffset>0x104</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_RXDREADY</name>
+ <description>Two-wire ready to deliver new RXD byte received.</description>
+ <addressOffset>0x108</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_TXDSENT</name>
+ <description>Two-wire finished sending last TXD byte.</description>
+ <addressOffset>0x11C</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>Two-wire error detected.</description>
+ <addressOffset>0x124</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_BB</name>
+ <description>Two-wire byte boundary.</description>
+ <addressOffset>0x138</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_SUSPENDED</name>
+ <description>Two-wire suspended.</description>
+ <addressOffset>0x148</addressOffset>
+ </register>
+
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcuts for TWI.</description>
+ <addressOffset>0x200</addressOffset>
+ <fields>
+ <field>
+ <name>BB_SUSPEND</name>
+ <description>Shortcut between BB event and the SUSPEND task.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BB_STOP</name>
+ <description>Shortcut between BB event and the STOP task.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable interrupt on STOPPED event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDREADY</name>
+ <description>Enable interrupt on READY event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDSENT</name>
+ <description>Enable interrupt on TXDSENT event.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable interrupt on ERROR event.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BB</name>
+ <description>Enable interrupt on BB event.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Enable interrupt on SUSPENDED event.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Disable interrupt on STOPPED event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDREADY</name>
+ <description>Disable interrupt on RXDREADY event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDSENT</name>
+ <description>Disable interrupt on TXDSENT event.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Disable interrupt on ERROR event.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BB</name>
+ <description>Disable interrupt on BB event.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Disable interrupt on SUSPENDED event.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ERRORSRC</name>
+ <description>Two-wire error source. Write error field to 1 to clear error.</description>
+ <addressOffset>0x4C4</addressOffset>
+ <fields>
+ <field>
+ <name>OVERRUN</name>
+ <description>Byte received in RXD register before read of the last received byte (data loss).</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Error not present.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Error present.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Clear error on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ANACK</name>
+ <description>NACK received after sending the address.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Error not present.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Error present.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Clear error on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DNACK</name>
+ <description>NACK received after sending a data byte.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Error not present.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Error present.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Clear error on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ENABLE</name>
+ <description>Enable two-wire master.</description>
+ <addressOffset>0x500</addressOffset>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable W2M</description>
+ <lsb>0</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled.</description>
+ <value>0x05</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>PSELSCL</name>
+ <description>Pin select for SCL.</description>
+ <addressOffset>0x508</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+ <register>
+ <name>PSELSDA</name>
+ <description>Pin select for SDA.</description>
+ <addressOffset>0x50C</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+
+ <register>
+ <name>RXD</name>
+ <description>RX data register.</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <readAction>modifyExternal</readAction>
+ <fields>
+ <field>
+ <name>RXD</name>
+ <description>RX data from last transfer.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>TX data register.</description>
+ <addressOffset>0x51C</addressOffset>
+ <fields>
+ <field>
+ <name>TXD</name>
+ <description>TX data for next transfer.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FREQUENCY</name>
+ <description>Two-wire frequency.</description>
+ <addressOffset>0x524</addressOffset>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>Two-wire master clock frequency.</description>
+ <lsb>0</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K100</name>
+ <description>100 kbps.</description>
+ <value>0x01980000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K250</name>
+ <description>250 kbps.</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K400</name>
+ <description>400 kbps (actual rate 410.256 kbps).</description>
+ <value>0x06680000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ADDRESS</name>
+ <description>Address used in the two-wire transfer.</description>
+ <addressOffset>0x588</addressOffset>
+ <fields>
+ <field>
+ <name>ADDRESS</name>
+ <description>Two-wire address.</description>
+ <lsb>0</lsb> <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral derivedFrom="SPI0">
+ <name>SPI1</name>
+ <version>522</version>
+ <description>SPI master 1.</description>
+ <baseAddress>0x40004000</baseAddress>
+ <groupName>SPI</groupName>
+ <size>32</size>
+ <access>read-write</access>
+ <interrupt>
+ <name>SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+
+ <peripheral derivedFrom="TWI0">
+ <name>TWI1</name>
+ <version>522</version>
+ <description>Two-wire interface master 1.</description>
+ <baseAddress>0x40004000</baseAddress>
+ <groupName>TWI</groupName>
+ <size>32</size>
+ <access>read-write</access>
+ <alternatePeripheral>SPI1</alternatePeripheral>
+ <interrupt>
+ <name>SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+
+ <peripheral>
+ <name>SPIS1</name>
+ <version>522</version>
+ <description>SPI slave 1.</description>
+ <baseAddress>0x40004000</baseAddress>
+ <groupName>SPIS</groupName>
+ <size>32</size>
+ <access>read-write</access>
+ <alternatePeripheral>SPI1</alternatePeripheral>
+ <headerStructName>SPIS</headerStructName>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_ACQUIRE</name>
+ <description>Acquire SPI semaphore.</description>
+ <addressOffset>0x024</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RELEASE</name>
+ <description>Release SPI semaphore.</description>
+ <addressOffset>0x028</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_END</name>
+ <description>Granted transaction completed.</description>
+ <addressOffset>0x104</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_ENDRX</name>
+ <description>End of RXD buffer reached</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ACQUIRED</name>
+ <description>Semaphore acquired.</description>
+ <addressOffset>0x128</addressOffset>
+ </register>
+
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcuts for SPIS.</description>
+ <addressOffset>0x200</addressOffset>
+ <fields>
+ <field>
+ <name>END_ACQUIRE</name>
+ <description>Shortcut between END event and the ACQUIRE task.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Enable interrupt on END event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>enable interrupt on ENDRX event.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACQUIRED</name>
+ <description>Enable interrupt on ACQUIRED event.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Disable interrupt on END event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Disable interrupt on ENDRX event.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACQUIRED</name>
+ <description>Disable interrupt on ACQUIRED event.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>SEMSTAT</name>
+ <description>Semaphore status.</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>SEMSTAT</name>
+ <description>Semaphore status.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Free</name>
+ <description>Semaphore is free.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CPU</name>
+ <description>Semaphore is assigned to the CPU.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SPIS</name>
+ <description>Semaphore is assigned to the SPIS.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CPUPending</name>
+ <description>Semaphore is assigned to the SPIS, but a handover to the CPU is pending.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATUS</name>
+ <description>Status from last transaction.</description>
+ <addressOffset>0x440</addressOffset>
+ <fields>
+ <field>
+ <name>OVERREAD</name>
+ <description>TX buffer overread detected, and prevented.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Error not present.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Error present.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Clear on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVERFLOW</name>
+ <description>RX buffer overflow detected, and prevented.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Error not present.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Error present.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Clear on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ENABLE</name>
+ <description>Enable SPIS.</description>
+ <addressOffset>0x500</addressOffset>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable SPIS.</description>
+ <lsb>0</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled SPIS.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable SPIS.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>PSELSCK</name>
+ <description>Pin select for SCK.</description>
+ <addressOffset>0x508</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+ <register>
+ <name>PSELMISO</name>
+ <description>Pin select for MISO.</description>
+ <addressOffset>0x50C</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+ <register>
+ <name>PSELMOSI</name>
+ <description>Pin select for MOSI.</description>
+ <addressOffset>0x510</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+ <register>
+ <name>PSELCSN</name>
+ <description>Pin select for CSN.</description>
+ <addressOffset>0x514</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+
+ <register>
+ <name>RXDPTR</name>
+ <description>RX data pointer.</description>
+ <addressOffset>0x534</addressOffset>
+ </register>
+ <register>
+ <name>MAXRX</name>
+ <description>Maximum number of bytes in the receive buffer.</description>
+ <addressOffset>0x538</addressOffset>
+ <fields>
+ <field>
+ <name>MAXRX</name>
+ <description>Maximum number of bytes in the receive buffer.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNTRX</name>
+ <description>Number of bytes received in last granted transaction.</description>
+ <addressOffset>0x53C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNTRX</name>
+ <description>Number of bytes received in last granted transaction.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>TXDPTR</name>
+ <description>TX data pointer.</description>
+ <addressOffset>0x544</addressOffset>
+ </register>
+ <register>
+ <name>MAXTX</name>
+ <description>Maximum number of bytes in the transmit buffer.</description>
+ <addressOffset>0x548</addressOffset>
+ <fields>
+ <field>
+ <name>MAXTX</name>
+ <description>Maximum number of bytes in the transmit buffer.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNTTX</name>
+ <description>Number of bytes transmitted in last granted transaction.</description>
+ <addressOffset>0x54C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNTTX</name>
+ <description>Number of bytes transmitted in last granted transaction.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register.</description>
+ <addressOffset>0x554</addressOffset>
+ <fields>
+ <field>
+ <name>ORDER</name>
+ <description>Bit order.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MsbFirst</name>
+ <description>Most significant bit transmitted out first.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LsbFirst</name>
+ <description>Least significant bit transmitted out first.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPHA</name>
+ <description>Serial clock (SCK) phase.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Leading</name>
+ <description>Sample on leading edge of the clock. Shift serial data on trailing edge.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Trailing</name>
+ <description>Sample on trailing edge of the clock. Shift serial data on leading edge.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPOL</name>
+ <description>Serial clock (SCK) polarity.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Active high.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Active low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>DEF</name>
+ <description>Default character.</description>
+ <addressOffset>0x55C</addressOffset>
+ <fields>
+ <field>
+ <name>DEF</name>
+ <description>Default character.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ORC</name>
+ <description>Over-read character.</description>
+ <addressOffset>0x5C0</addressOffset>
+ <fields>
+ <field>
+ <name>ORC</name>
+ <description>Over-read character.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>GPIOTE</name>
+ <version>522</version>
+ <description>GPIO tasks and events.</description>
+ <baseAddress>0x40006000</baseAddress>
+ <groupName>GPIOTE</groupName>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>GPIOTE</name>
+ <value>6</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>TASKS_OUT[%s]</name>
+ <description>Tasks asssociated with GPIOTE channels.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <dim>4</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>EVENTS_IN[%s]</name>
+ <description>Tasks asssociated with GPIOTE channels.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_PORT</name>
+ <description>Event generated from multiple pins.</description>
+ <addressOffset>0x17C</addressOffset>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>IN0</name>
+ <description>Enable interrupt on IN[0] event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN1</name>
+ <description>Enable interrupt on IN[1] event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN2</name>
+ <description>Enable interrupt on IN[2] event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN3</name>
+ <description>Enable interrupt on IN[3] event.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Enable interrupt on PORT event.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>IN0</name>
+ <description>Disable interrupt on IN[0] event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN1</name>
+ <description>Disable interrupt on IN[1] event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN2</name>
+ <description>Disable interrupt on IN[2] event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN3</name>
+ <description>Disable interrupt on IN[3] event.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Disable interrupt on PORT event.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <dim>4</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>CONFIG[%s]</name>
+ <description>Channel configuration registers.</description>
+ <addressOffset>0x510</addressOffset>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Mode</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Event</name>
+ <description>Channel configure in event mode.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Task</name>
+ <description>Channel configure in task mode.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PSEL</name>
+ <description>Pin select.</description>
+ <lsb>8</lsb> <msb>12</msb>
+ </field>
+ <field>
+ <name>POLARITY</name>
+ <description>Effects on output when in Task mode, or events on input that generates an event.</description>
+ <lsb>16</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>None</name>
+ <description>No task or event.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LoToHi</name>
+ <description>Low to high.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>HiToLo</name>
+ <description>High to low.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Toggle</name>
+ <description>Toggle.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OUTINIT</name>
+ <description>Initial value of the output when the GPIOTE channel is configured as a Task.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Initial low output when in task mode.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Initial high output when in task mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>ADC</name>
+ <version>522</version>
+ <description>Analog to digital converter.</description>
+ <baseAddress>0x40007000</baseAddress>
+ <groupName>ADC</groupName>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>ADC</name>
+ <value>7</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start an ADC conversion.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop ADC.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_END</name>
+ <description>ADC conversion complete.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Enable interrupt on END event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Disable interrupt on END event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>BUSY</name>
+ <description>ADC busy register.</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>BUSY</name>
+ <description>ADC busy register.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Ready</name>
+ <description>No ongoing ADC conversion is taking place. ADC is ready.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Busy</name>
+ <description>An ADC conversion is taking place. ADC is busy.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ENABLE</name>
+ <description>ADC enable.</description>
+ <addressOffset>0x500</addressOffset>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>ADC enable.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>ADC is disabled.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>ADC is enabled. If an analog input pin is selected as source of the conversion, the selected pin is configured as an analog input.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>CONFIG</name>
+ <description>ADC configuration register.</description>
+ <addressOffset>0x504</addressOffset>
+ <resetValue>0x00000018</resetValue>
+ <fields>
+ <field>
+ <name>RES</name>
+ <description>ADC resolution.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>8bit</name>
+ <description>8bit ADC resolution.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>9bit</name>
+ <description>9bit ADC resolution.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>10bit</name>
+ <description>10bit ADC resolution.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>INPSEL</name>
+ <description>ADC input selection.</description>
+ <lsb>2</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogInputNoPrescaling</name>
+ <description>Analog input specified by PSEL with no prescaling used as input for the conversion.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInputTwoThirdsPrescaling</name>
+ <description>Analog input specified by PSEL with 2/3 prescaling used as input for the conversion.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInputOneThirdPrescaling</name>
+ <description>Analog input specified by PSEL with 1/3 prescaling used as input for the conversion.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SupplyTwoThirdsPrescaling</name>
+ <description>Supply voltage with 2/3 prescaling used as input for the conversion.</description>
+ <value>0x05</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SupplyOneThirdPrescaling</name>
+ <description>Supply voltage with 1/3 prescaling used as input for the conversion.</description>
+ <value>0x06</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REFSEL</name>
+ <description>ADC reference selection.</description>
+ <lsb>5</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>VBG</name>
+ <description>Use internal 1.2V bandgap voltage as reference for conversion.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>External</name>
+ <description>Use external source configured by EXTREFSEL as reference for conversion.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SupplyOneHalfPrescaling</name>
+ <description>Use supply voltage with 1/2 prescaling as reference for conversion. Only usable when supply voltage is between 1.7V and 2.6V.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SupplyOneThirdPrescaling</name>
+ <description>Use supply voltage with 1/3 prescaling as reference for conversion. Only usable when supply voltage is between 2.5V and 3.6V.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PSEL</name>
+ <description>ADC analog pin selection.</description>
+ <lsb>8</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Analog input pins disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>Use analog input 0 as analog input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>Use analog input 1 as analog input.</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>Use analog input 2 as analog input.</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>Use analog input 3 as analog input.</description>
+ <value>8</value>
+ </enumeratedValue><enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>Use analog input 4 as analog input.</description>
+ <value>16</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>Use analog input 5 as analog input.</description>
+ <value>32</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>Use analog input 6 as analog input.</description>
+ <value>64</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput7</name>
+ <description>Use analog input 7 as analog input.</description>
+ <value>128</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EXTREFSEL</name>
+ <description>ADC external reference pin selection.</description>
+ <lsb>16</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>None</name>
+ <description>Analog external reference inputs disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference0</name>
+ <description>Use analog reference 0 as reference.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference1</name>
+ <description>Use analog reference 1 as reference.</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>RESULT</name>
+ <description>Result of ADC conversion.</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RESULT</name>
+ <description>Result of ADC conversion.</description>
+ <lsb>0</lsb> <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>TIMER0</name>
+ <version>522</version>
+ <description>Timer 0.</description>
+ <baseAddress>0x40008000</baseAddress>
+ <groupName>TIMER</groupName>
+ <size>32</size>
+ <access>read-write</access>
+ <headerStructName>TIMER</headerStructName>
+
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>TIMER0</name>
+ <value>8</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start Timer.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop Timer.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_COUNT</name>
+ <description>Increment Timer (In counter mode).</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CLEAR</name>
+ <description>Clear timer.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SHUTDOWN</name>
+ <description>Shutdown timer.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>TASKS_CAPTURE[%s]</name>
+ <description>Capture Timer value to CC[n] registers.</description>
+ <addressOffset>0x040</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <dim>4</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>EVENTS_COMPARE[%s]</name>
+ <description>Compare event on CC[n] match.</description>
+ <addressOffset>0x140</addressOffset>
+ </register>
+
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcuts for Timer.</description>
+ <addressOffset>0x200</addressOffset>
+ <fields>
+ <field>
+ <name>COMPARE0_CLEAR</name>
+ <description>Shortcut between CC[0] event and the CLEAR task.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1_CLEAR</name>
+ <description>Shortcut between CC[1] event and the CLEAR task.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2_CLEAR</name>
+ <description>Shortcut between CC[2] event and the CLEAR task.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3_CLEAR</name>
+ <description>Shortcut between CC[3] event and the CLEAR task.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0_STOP</name>
+ <description>Shortcut between CC[0] event and the STOP task.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1_STOP</name>
+ <description>Shortcut between CC[1] event and the STOP task.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2_STOP</name>
+ <description>Shortcut between CC[2] event and the STOP task.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3_STOP</name>
+ <description>Shortcut between CC[3] event and the STOP task.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>COMPARE0</name>
+ <description>Enable interrupt on COMPARE[0]</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Enable interrupt on COMPARE[1]</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Enable interrupt on COMPARE[2]</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Enable interrupt on COMPARE[3]</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>COMPARE0</name>
+ <description>Disable interrupt on COMPARE[0]</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Disable interrupt on COMPARE[1]</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Disable interrupt on COMPARE[2]</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Disable interrupt on COMPARE[3]</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>MODE</name>
+ <description>Timer Mode selection.</description>
+ <addressOffset>0x504</addressOffset>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Select Normal or Counter mode.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Counter</name>
+ <description>Timer in Counter mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Timer</name>
+ <description>Timer in Normal mode.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>BITMODE</name>
+ <description>Sets timer behaviour.</description>
+ <addressOffset>0x508</addressOffset>
+ <fields>
+ <field>
+ <name>BITMODE</name>
+ <description>Sets timer behaviour ro be like the implementation of a timer with width as indicated.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>16Bit</name>
+ <description>16-bit timer behaviour.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>08Bit</name>
+ <description>8-bit timer behaviour.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>24Bit</name>
+ <description>24-bit timer behaviour.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32Bit</name>
+ <description>32-bit timer behaviour.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PRESCALER</name>
+ <description>4-bit prescaler to source clock frequency (max value 9). Source clock frequency is divided by 2^SCALE.</description>
+ <addressOffset>0x510</addressOffset>
+ <resetValue>0x00000004</resetValue>
+ <fields>
+ <field>
+ <name>PRESCALER</name>
+ <description>Timer PRESCALER value. Max value is 9.</description>
+ <lsb>0</lsb> <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <dim>4</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>CC[%s]</name>
+ <description>Capture/compare registers.</description>
+ <addressOffset>0x540</addressOffset>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral derivedFrom="TIMER0">
+ <name>TIMER1</name>
+ <version>522</version>
+ <description>Timer 1.</description>
+ <baseAddress>0x40009000</baseAddress>
+ <groupName>TIMER</groupName>
+ <size>32</size>
+ <access>read-write</access>
+ <interrupt>
+ <name>TIMER1</name>
+ <value>9</value>
+ </interrupt>
+ </peripheral>
+
+ <peripheral derivedFrom="TIMER0">
+ <name>TIMER2</name>
+ <version>522</version>
+ <description>Timer 2.</description>
+ <baseAddress>0x4000A000</baseAddress>
+ <groupName>TIMER</groupName>
+ <size>32</size>
+ <access>read-write</access>
+ <interrupt>
+ <name>TIMER2</name>
+ <value>10</value>
+ </interrupt>
+ </peripheral>
+
+ <peripheral>
+ <name>RTC0</name>
+ <version>522</version>
+ <description>Real time counter 0.</description>
+ <baseAddress>0x4000B000</baseAddress>
+ <groupName>RTC</groupName>
+ <size>32</size>
+ <access>read-write</access>
+ <headerStructName>RTC</headerStructName>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>RTC0</name>
+ <value>11</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start RTC Counter.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop RTC Counter.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CLEAR</name>
+ <description>Clear RTC Counter.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_TRIGOVRFLW</name>
+ <description>Set COUNTER to 0xFFFFFFF0.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_TICK</name>
+ <description>Event on COUNTER increment.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_OVRFLW</name>
+ <description>Event on COUNTER overflow.</description>
+ <addressOffset>0x104</addressOffset>
+ </register>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>EVENTS_COMPARE[%s]</name>
+ <description>Compare event on CC[n] match.</description>
+ <addressOffset>0x140</addressOffset>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Enable interrupt on TICK event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Enable interrupt on OVRFLW event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Enable interrupt on COMPARE[0] event.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Enable interrupt on COMPARE[1] event.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Enable interrupt on COMPARE[2] event.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Enable interrupt on COMPARE[3] event.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Disable interrupt on TICK event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Disable interrupt on OVRFLW event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Disable interrupt on COMPARE[0] event.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Disable interrupt on COMPARE[1] event.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Disable interrupt on COMPARE[2] event.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Disable interrupt on COMPARE[3] event.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>EVTEN</name>
+ <description>Configures event enable routing to PPI for each RTC event.</description>
+ <addressOffset>0x340</addressOffset>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>TICK event enable.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>OVRFLW event enable.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>COMPARE[0] event enable.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>COMPARE[1] event enable.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>COMPARE[2] event enable.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>COMPARE[3] event enable.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVTENSET</name>
+ <description>Enable events routing to PPI. The reading of this register gives the value of EVTEN.</description>
+ <addressOffset>0x344</addressOffset>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Enable routing to PPI of TICK event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable event on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Enable routing to PPI of OVRFLW event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable event on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Enable routing to PPI of COMPARE[0] event.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable event on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Enable routing to PPI of COMPARE[1] event.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable event on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Enable routing to PPI of COMPARE[2] event.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable event on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Enable routing to PPI of COMPARE[3] event.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable event on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVTENCLR</name>
+ <description>Disable events routing to PPI. The reading of this register gives the value of EVTEN.</description>
+ <addressOffset>0x348</addressOffset>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Disable routing to PPI of TICK event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable event on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Disable routing to PPI of OVRFLW event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable event on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Disable routing to PPI of COMPARE[0] event.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable event on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Disable routing to PPI of COMPARE[1] event.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable event on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Disable routing to PPI of COMPARE[2] event.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable event on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Disable routing to PPI of COMPARE[3] event.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Event disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Event enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable event on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>COUNTER</name>
+ <description>Current COUNTER value.</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>COUNTER</name>
+ <description>Counter value.</description>
+ <lsb>0</lsb> <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>PRESCALER</name>
+ <description>12-bit prescaler for COUNTER frequency (32768/(PRESCALER+1)). Must be written when RTC is STOPed.</description>
+ <addressOffset>0x508</addressOffset>
+ <fields>
+ <field>
+ <name>PRESCALER</name>
+ <description>RTC PRESCALER value.</description>
+ <lsb>0</lsb> <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <dim>4</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>CC[%s]</name>
+ <description>Capture/compare registers.</description>
+ <addressOffset>0x540</addressOffset>
+ <fields>
+ <field>
+ <name>COMPARE</name>
+ <description>Compare value.</description>
+ <lsb>0</lsb> <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>TEMP</name>
+ <version>522</version>
+ <description>Temperature Sensor.</description>
+ <groupName>TEMP</groupName>
+ <baseAddress>0x4000C000</baseAddress>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>TEMP</name>
+ <value>12</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start temperature measurement.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop temperature measurement.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_DATARDY</name>
+ <description>Temperature measurement complete, data ready event.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>DATARDY</name>
+ <description>Enable interrupt on DATARDY event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>DATARDY</name>
+ <description>Disable interrupt on DATARDY event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>TEMP</name>
+ <description>Die temperature in degC, 2's complement format, 0.25 degC pecision.</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>RNG</name>
+ <version>522</version>
+ <description>Random Number Generator.</description>
+ <baseAddress>0x4000D000</baseAddress>
+ <groupName>RNG</groupName>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>RNG</name>
+ <value>13</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start the random number generator.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop the random number generator.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_VALRDY</name>
+ <description>New random number generated and written to VALUE register.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcuts for the RNG.</description>
+ <addressOffset>0x200</addressOffset>
+ <fields>
+ <field>
+ <name>VALRDY_STOP</name>
+ <description>Shortcut between VALRDY event and STOP task.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>VALRDY</name>
+ <description>Enable interrupt on VALRDY event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>VALRDY</name>
+ <description>Disable interrupt on VALRDY event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register.</description>
+ <addressOffset>0x504</addressOffset>
+ <fields>
+ <field>
+ <name>DERCEN</name>
+ <description>Digital error correction enable.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Digital error correction disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Digital error correction enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>VALUE</name>
+ <description>RNG random number.</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>VALUE</name>
+ <description>Generated random number.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>ECB</name>
+ <version>522</version>
+ <description>AES ECB Mode Encryption.</description>
+ <baseAddress>0x4000E000</baseAddress>
+ <groupName>ECB</groupName>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>ECB</name>
+ <value>14</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_STARTECB</name>
+ <description>Start ECB block encrypt. If a crypto operation is running, this will not initiate a new encryption and the ERRORECB event will be triggered.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOPECB</name>
+ <description>Stop current ECB encryption. If a crypto operation is running, this will will trigger the ERRORECB event.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_ENDECB</name>
+ <description>ECB block encrypt complete.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_ERRORECB</name>
+ <description>ECB block encrypt aborted due to a STOPECB task or due to an error.</description>
+ <addressOffset>0x104</addressOffset>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>ENDECB</name>
+ <description>Enable interrupt on ENDECB event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERRORECB</name>
+ <description>Enable interrupt on ERRORECB event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>ENDECB</name>
+ <description>Disable interrupt on ENDECB event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERRORECB</name>
+ <description>Disable interrupt on ERRORECB event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ECBDATAPTR</name>
+ <description>ECB block encrypt memory pointer.</description>
+ <addressOffset>0x504</addressOffset>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>AAR</name>
+ <version>522</version>
+ <description>Accelerated Address Resolver.</description>
+ <baseAddress>0x4000F000</baseAddress>
+ <groupName>AAR</groupName>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>CCM_AAR</name>
+ <value>15</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start resolving addresses based on IRKs specified in the IRK data structure.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop resolving addresses.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_END</name>
+ <description>Address resolution procedure completed.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_RESOLVED</name>
+ <description>Address resolved.</description>
+ <addressOffset>0x104</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_NOTRESOLVED</name>
+ <description>Address not resolved.</description>
+ <addressOffset>0x108</addressOffset>
+ </register>
+
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Enable interrupt on END event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESOLVED</name>
+ <description>Enable interrupt on RESOLVED event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NOTRESOLVED</name>
+ <description>Enable interrupt on NOTRESOLVED event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Disable interrupt on ENDKSGEN event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESOLVED</name>
+ <description>Disable interrupt on RESOLVED event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NOTRESOLVED</name>
+ <description>Disable interrupt on NOTRESOLVED event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>STATUS</name>
+ <description>Resolution status.</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>The IRK used last time an address was resolved.</description>
+ <lsb>0</lsb> <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ENABLE</name>
+ <description>Enable AAR.</description>
+ <addressOffset>0x500</addressOffset>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable AAR.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled AAR.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable AAR.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>NIRK</name>
+ <description>Number of Identity root Keys in the IRK data structure.</description>
+ <addressOffset>0x504</addressOffset>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>NIRK</name>
+ <description>Number of Identity root Keys in the IRK data structure.</description>
+ <lsb>0</lsb> <msb>4</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>IRKPTR</name>
+ <description>Pointer to the IRK data structure.</description>
+ <addressOffset>0x508</addressOffset>
+ </register>
+ <register>
+ <name>ADDRPTR</name>
+ <description>Pointer to the resolvable address (6 bytes).</description>
+ <addressOffset>0x510</addressOffset>
+ </register>
+ <register>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to a scratch data area used for temporary storage during resolution. A minimum of 3 bytes must be reserved.</description>
+ <addressOffset>0x514</addressOffset>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>CCM</name>
+ <version>522</version>
+ <description>AES CCM Mode Encryption.</description>
+ <baseAddress>0x4000F000</baseAddress>
+ <groupName>CCM</groupName>
+ <size>32</size>
+ <access>read-write</access>
+ <alternatePeripheral>AAR</alternatePeripheral>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>CCM_AAR</name>
+ <value>15</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_KSGEN</name>
+ <description>Start generation of key-stream. This operation will stop by itself when completed.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CRYPT</name>
+ <description>Start encrypt/decrypt. This operation will stop by itself when completed.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop encrypt/decrypt.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_ENDKSGEN</name>
+ <description>Keystream generation completed.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_ENDCRYPT</name>
+ <description>Encrypt/decrypt completed.</description>
+ <addressOffset>0x104</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>Error happened.</description>
+ <addressOffset>0x108</addressOffset>
+ </register>
+
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcuts for the CCM.</description>
+ <addressOffset>0x200</addressOffset>
+ <fields>
+ <field>
+ <name>ENDKSGEN_CRYPT</name>
+ <description>Shortcut between ENDKSGEN event and CRYPT task.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>ENDKSGEN</name>
+ <description>Enable interrupt on ENDKSGEN event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDCRYPT</name>
+ <description>Enable interrupt on ENDCRYPT event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable interrupt on ERROR event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>ENDKSGEN</name>
+ <description>Disable interrupt on ENDKSGEN event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDCRYPT</name>
+ <description>Disable interrupt on ENDCRYPT event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Disable interrupt on ERROR event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>MICSTATUS</name>
+ <description>CCM RX MIC check result.</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>MICSTATUS</name>
+ <description>Result of the MIC check performed during the previous CCM RX STARTCRYPT</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>CheckFailed</name>
+ <description>MIC check failed.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CheckPassed</name>
+ <description>MIC check passed.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ENABLE</name>
+ <description>CCM enable.</description>
+ <addressOffset>0x500</addressOffset>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>CCM enable.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>CCM is disabled.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>CCM is enabled.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>MODE</name>
+ <description>Operation mode.</description>
+ <addressOffset>0x504</addressOffset>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>CCM mode operation.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Encryption</name>
+ <description>CCM mode TX</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Decryption</name>
+ <description>CCM mode TX</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>CNFPTR</name>
+ <description>Pointer to a data structure holding AES key and NONCE vector.</description>
+ <addressOffset>0x508</addressOffset>
+ </register>
+ <register>
+ <name>INPTR</name>
+ <description>Pointer to the input packet.</description>
+ <addressOffset>0x50C</addressOffset>
+ </register>
+ <register>
+ <name>OUTPTR</name>
+ <description>Pointer to the output packet.</description>
+ <addressOffset>0x510</addressOffset>
+ </register>
+ <register>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to a scratch data area used for temporary storage during resolution. A minimum of 43 bytes must be reserved.</description>
+ <addressOffset>0x514</addressOffset>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>WDT</name>
+ <version>522</version>
+ <description>Watchdog Timer.</description>
+ <groupName>WDT</groupName>
+ <baseAddress>0x40010000</baseAddress>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>WDT</name>
+ <value>16</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start the watchdog.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_TIMEOUT</name>
+ <description>Watchdog timeout.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>TIMEOUT</name>
+ <description>Enable interrupt on TIMEOUT event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>TIMEOUT</name>
+ <description>Disable interrupt on TIMEOUT event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>RUNSTATUS</name>
+ <description>Watchdog running status.</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RUNSTATUS</name>
+ <description>Watchdog running status.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotRunning</name>
+ <description>Watchdog timer is not running.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Running</name>
+ <description>Watchdog timer is running.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>REQSTATUS</name>
+ <description>Request status.</description>
+ <addressOffset>0x404</addressOffset>
+ <resetValue>0x00000001</resetValue>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RR0</name>
+ <description>Request status for RR[0].</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[0] register is not enabled or has already requested reload.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[0] register is enabled and has not jet requested.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR1</name>
+ <description>Request status for RR[1].</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[1] register is not enabled or has already requested reload.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[1] register is enabled and has not jet requested.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR2</name>
+ <description>Request status for RR[2].</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[2] register is not enabled or has already requested reload.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[2] register is enabled and has not jet requested.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR3</name>
+ <description>Request status for RR[3].</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[3] register is not enabled or has already requested reload.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[3] register is enabled and has not jet requested.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR4</name>
+ <description>Request status for RR[4].</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[4] register is not enabled or has already requested reload.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[4] register is enabled and has not jet requested.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR5</name>
+ <description>Request status for RR[5].</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[5] register is not enabled or has already requested reload.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[5] register is enabled and has not jet requested.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR6</name>
+ <description>Request status for RR[6].</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[6] register is not enabled or has already requested reload.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[6] register is enabled and has not jet requested.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR7</name>
+ <description>Request status for RR[7].</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[7] register is not enabled or has already requested reload.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[7] register is enabled and has not jet requested.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>CRV</name>
+ <description>Counter reload value in number of 32kiHz clock cycles.</description>
+ <addressOffset>0x504</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+
+ <register>
+ <name>RREN</name>
+ <description>Reload request enable.</description>
+ <addressOffset>0x508</addressOffset>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>RR0</name>
+ <description>Enable or disable RR[0] register.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>RR[0] register is disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>RR[0] register is enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR1</name>
+ <description>Enable or disable RR[1] register.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>RR[1] register is disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>RR[1] register is enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR2</name>
+ <description>Enable or disable RR[2] register.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>RR[2] register is disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>RR[2] register is enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR3</name>
+ <description>Enable or disable RR[3] register.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>RR[3] register is disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>RR[3] register is enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR4</name>
+ <description>Enable or disable RR[4] register.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>RR[4] register is disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>RR[4] register is enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR5</name>
+ <description>Enable or disable RR[5] register.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>RR[5] register is disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>RR[5] register is enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR6</name>
+ <description>Enable or disable RR[6] register.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>RR[6] register is disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>RR[6] register is enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR7</name>
+ <description>Enable or disable RR[7] register.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>RR[7] register is disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>RR[7] register is enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register.</description>
+ <addressOffset>0x50C</addressOffset>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>SLEEP</name>
+ <description>Configure the watchdog to pause or not while the CPU is sleeping.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Pause</name>
+ <description>Pause watchdog while the CPU is asleep.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Run</name>
+ <description>Do not pause watchdog while the CPU is asleep.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>HALT</name>
+ <description>Configure the watchdog to pause or not while the CPU is halted by the debugger.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Pause</name>
+ <description>Pause watchdog while the CPU is halted by the debugger.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Run</name>
+ <description>Do not pause watchdog while the CPU is halted by the debugger.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <dim>8</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>RR[%s]</name>
+ <description>Reload requests registers.</description>
+ <addressOffset>0x600</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>RR</name>
+ <description>Reload register.</description>
+ <lsb>0</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Reload</name>
+ <description>Value to request a reload of the watchdog timer.</description>
+ <value>0x6E524635</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral derivedFrom="RTC0">
+ <name>RTC1</name>
+ <version>522</version>
+ <description>Real time counter 1.</description>
+ <baseAddress>0x40011000</baseAddress>
+ <groupName>RTC</groupName>
+ <size>32</size>
+ <access>read-write</access>
+ <interrupt>
+ <name>RTC1</name>
+ <value>17</value>
+ </interrupt>
+ </peripheral>
+
+ <peripheral>
+ <name>QDEC</name>
+ <version>522</version>
+ <description>Rotary decoder.</description>
+ <groupName>QDEC</groupName>
+ <baseAddress>0x40012000</baseAddress>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>QDEC</name>
+ <value>18</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start the quadrature decoder.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop the quadrature decoder.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_READCLRACC</name>
+ <description>Transfers the content from ACC registers to ACCREAD registers, and clears the ACC registers.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_SAMPLERDY</name>
+ <description>A new sample is written to the sample register.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_REPORTRDY</name>
+ <description>REPORTPER number of samples accumulated in ACC register, and ACC register different than zero.</description>
+ <addressOffset>0x104</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_ACCOF</name>
+ <description>ACC or ACCDBL register overflow.</description>
+ <addressOffset>0x108</addressOffset>
+ </register>
+
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcuts for the QDEC.</description>
+ <addressOffset>0x200</addressOffset>
+ <fields>
+ <field>
+ <name>REPORTRDY_READCLRACC</name>
+ <description>Shortcut between REPORTRDY event and READCLRACC task.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SAMPLERDY_STOP</name>
+ <description>Shortcut between SAMPLERDY event and STOP task.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>SAMPLERDY</name>
+ <description>Enable interrupt on SAMPLERDY event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY</name>
+ <description>Enable interrupt on REPORTRDY event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACCOF</name>
+ <description>Enable interrupt on ACCOF event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>SAMPLERDY</name>
+ <description>Disable interrupt on SAMPLERDY event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY</name>
+ <description>Disable interrupt on REPORTRDY event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACCOF</name>
+ <description>Disable interrupt on ACCOF event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ENABLE</name>
+ <description>Enable the QDEC.</description>
+ <addressOffset>0x500</addressOffset>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable QDEC.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled QDEC.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable QDEC.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>LEDPOL</name>
+ <description>LED output pin polarity.</description>
+ <addressOffset>0x504</addressOffset>
+ <fields>
+ <field>
+ <name>LEDPOL</name>
+ <description>LED output pin polarity.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>LED output is active low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>LED output is active high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>SAMPLEPER</name>
+ <description>Sample period.</description>
+ <addressOffset>0x508</addressOffset>
+ <fields>
+ <field>
+ <name>SAMPLEPER</name>
+ <description>Sample period.</description>
+ <lsb>0</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>128us</name>
+ <description>128us sample period.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>256us</name>
+ <description>256us sample period.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>512us</name>
+ <description>512us sample period.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1024us</name>
+ <description>1024us sample period.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2048us</name>
+ <description>2048us sample period.</description>
+ <value>0x04</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>4096us</name>
+ <description>4096us sample period.</description>
+ <value>0x05</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>8192us</name>
+ <description>8192us sample period.</description>
+ <value>0x06</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>16384us</name>
+ <description>16384us sample period.</description>
+ <value>0x07</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>SAMPLE</name>
+ <description>Motion sample value.</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>SAMPLE</name>
+ <description>Last sample taken in compliment to 2.</description>
+ <lsb>0</lsb> <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>REPORTPER</name>
+ <description>Number of samples to generate an EVENT_REPORTRDY.</description>
+ <addressOffset>0x510</addressOffset>
+ <fields>
+ <field>
+ <name>REPORTPER</name>
+ <description>Number of samples to generate an EVENT_REPORTRDY.</description>
+ <lsb>0</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>10Smpl</name>
+ <description>10 samples per report.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>40Smpl</name>
+ <description>40 samples per report.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>80Smpl</name>
+ <description>80 samples per report.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>120Smpl</name>
+ <description>120 samples per report.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>160Smpl</name>
+ <description>160 samples per report.</description>
+ <value>0x04</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>200Smpl</name>
+ <description>200 samples per report.</description>
+ <value>0x05</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>240Smpl</name>
+ <description>240 samples per report.</description>
+ <value>0x06</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>280Smpl</name>
+ <description>280 samples per report.</description>
+ <value>0x07</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ACC</name>
+ <description>Accumulated valid transitions register.</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ </register>
+
+ <register>
+ <name>ACCREAD</name>
+ <description>Snapshot of ACC register. Value generated by the TASKS_READCLEACC task.</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ </register>
+
+ <register>
+ <name>PSELLED</name>
+ <description>Pin select for LED output.</description>
+ <addressOffset>0x51C</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+ <register>
+ <name>PSELA</name>
+ <description>Pin select for phase A input.</description>
+ <addressOffset>0x520</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+ <register>
+ <name>PSELB</name>
+ <description>Pin select for phase B input.</description>
+ <addressOffset>0x524</addressOffset>
+ <resetValue>0xFFFFFFFF</resetValue>
+ </register>
+
+ <register>
+ <name>DBFEN</name>
+ <description>Enable debouncer input filters.</description>
+ <addressOffset>0x528</addressOffset>
+ <fields>
+ <field>
+ <name>DBFEN</name>
+ <description>Enable debounce input filters.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Debounce input filters disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Debounce input filters enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>LEDPRE</name>
+ <description>Time LED is switched ON before the sample.</description>
+ <addressOffset>0x540</addressOffset>
+ <resetValue>0x00000010</resetValue>
+ <fields>
+ <field>
+ <name>LEDPRE</name>
+ <description>Period in us the LED in switched on prior to sampling.</description>
+ <lsb>0</lsb> <msb>8</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ACCDBL</name>
+ <description>Accumulated double (error) transitions register.</description>
+ <addressOffset>0x544</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>ACCDBL</name>
+ <description>Accumulated double (error) transitions.</description>
+ <lsb>0</lsb> <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ACCDBLREAD</name>
+ <description>Snapshot of ACCDBL register. Value generated by the TASKS_READCLEACC task.</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>ACCDBLREAD</name>
+ <description>Snapshot of accumulated double (error) transitions.</description>
+ <lsb>0</lsb> <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>LPCOMP</name>
+ <version>522</version>
+ <description>Low power comparator.</description>
+ <groupName>LPCOMP</groupName>
+ <baseAddress>0x40013000</baseAddress>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>LPCOMP</name>
+ <value>19</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start the comparator.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop the comparator.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SAMPLE</name>
+ <description>Sample comparator value.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+
+ <register>
+ <name>EVENTS_READY</name>
+ <description>LPCOMP is ready and output is valid.</description>
+ <addressOffset>0x100</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_DOWN</name>
+ <description>Input voltage crossed the threshold going down.</description>
+ <addressOffset>0x104</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_UP</name>
+ <description>Input voltage crossed the threshold going up.</description>
+ <addressOffset>0x108</addressOffset>
+ </register>
+ <register>
+ <name>EVENTS_CROSS</name>
+ <description>Input voltage crossed the threshold in any direction.</description>
+ <addressOffset>0x10C</addressOffset>
+ </register>
+
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcuts for the LPCOMP.</description>
+ <addressOffset>0x200</addressOffset>
+ <fields>
+ <field>
+ <name>READY_SAMPLE</name>
+ <description>Shortcut between READY event and SAMPLE task.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READY_STOP</name>
+ <description>Shortcut between RADY event and STOP task.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN_STOP</name>
+ <description>Shortcut between DOWN event and STOP task.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP_STOP</name>
+ <description>Shortcut between UP event and STOP task.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS_STOP</name>
+ <description>Shortcut between CROSS event and STOP task.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Shortcut disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Shortcut enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>INTENSET</name>
+ <description>Interrupt enable set register.</description>
+ <addressOffset>0x304</addressOffset>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Enable interrupt on READY event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Enable interrupt on DOWN event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Enable interrupt on UP event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Enable interrupt on CROSS event.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Interrupt enable clear register.</description>
+ <addressOffset>0x308</addressOffset>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Disable interrupt on READY event.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Disable interrupt on DOWN event.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Disable interrupt on UP event.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Disable interrupt on CROSS event.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Interrupt disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Interrupt enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable interrupt on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>RESULT</name>
+ <description>Result of last compare.</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RESULT</name>
+ <description>Result of last compare. Decision point SAMPLE task.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Below</name>
+ <description>Input voltage is bellow the reference threshold.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Above</name>
+ <description>Input voltage is above the reference threshold.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ENABLE</name>
+ <description>Enable the LPCOMP.</description>
+ <addressOffset>0x500</addressOffset>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable LPCOMP.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled LPCOMP.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable LPCOMP.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>PSEL</name>
+ <description>Input pin select.</description>
+ <addressOffset>0x504</addressOffset>
+ <fields>
+ <field>
+ <name>PSEL</name>
+ <description>Analog input pin select.</description>
+ <lsb>0</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>Use analog input 0 as analog input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>Use analog input 1 as analog input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>Use analog input 2 as analog input.</description>
+ <value>2</value>
+ </enumeratedValue><enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>Use analog input 3 as analog input.</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>Use analog input 4 as analog input.</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>Use analog input 5 as analog input.</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>Use analog input 6 as analog input.</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput7</name>
+ <description>Use analog input 7 as analog input.</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>REFSEL</name>
+ <description>Reference select.</description>
+ <addressOffset>0x508</addressOffset>
+ <fields>
+ <field>
+ <name>REFSEL</name>
+ <description>Reference select.</description>
+ <lsb>0</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>SupplyOneEighthPrescaling</name>
+ <description>Use supply with a 1/8 prescaler as reference.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SupplyTwoEighthsPrescaling</name>
+ <description>Use supply with a 2/8 prescaler as reference.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SupplyThreeEighthsPrescaling</name>
+ <description>Use supply with a 3/8 prescaler as reference.</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SupplyFourEighthsPrescaling</name>
+ <description>Use supply with a 4/8 prescaler as reference.</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SupplyFiveEighthsPrescaling</name>
+ <description>Use supply with a 5/8 prescaler as reference.</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SupplySixEighthsPrescaling</name>
+ <description>Use supply with a 6/8 prescaler as reference.</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SupplySevenEighthsPrescaling</name>
+ <description>Use supply with a 7/8 prescaler as reference.</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ARef</name>
+ <description>Use external analog reference as reference.</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>EXTREFSEL</name>
+ <description>External reference select.</description>
+ <addressOffset>0x50C</addressOffset>
+ <fields>
+ <field>
+ <name>EXTREFSEL</name>
+ <description>External analog reference pin selection.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogReference0</name>
+ <description>Use analog reference 0 as reference.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference1</name>
+ <description>Use analog reference 1 as reference.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ANADETECT</name>
+ <description>Analog detect configuration.</description>
+ <addressOffset>0x520</addressOffset>
+ <fields>
+ <field>
+ <name>ANADETECT</name>
+ <description>Analog detect configuration.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Cross</name>
+ <description>Generate ANADETEC on crossing, both upwards and downwards crossing.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Up</name>
+ <description>Generate ANADETEC on upwards crossing only.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Down</name>
+ <description>Generate ANADETEC on downwards crossing only.</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <addressOffset>0xFFC</addressOffset>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Module power disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Module power enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>SWI</name>
+ <version>522</version>
+ <description>SW Interrupts.</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40014000</baseAddress>
+ <size>32</size>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x6000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <interrupt>
+ <name>SWI0</name>
+ <value>20</value>
+ </interrupt>
+ <interrupt>
+ <name>SWI1</name>
+ <value>21</value>
+ </interrupt>
+ <interrupt>
+ <name>SWI2</name>
+ <value>22</value>
+ </interrupt>
+ <interrupt>
+ <name>SWI3</name>
+ <value>23</value>
+ </interrupt>
+ <interrupt>
+ <name>SWI4</name>
+ <value>24</value>
+ </interrupt>
+ <interrupt>
+ <name>SWI5</name>
+ <value>25</value>
+ </interrupt>
+
+ <registers>
+ <register>
+ <name>UNUSED</name>
+ <description>Unused.</description>
+ <addressOffset>0x000</addressOffset>
+ <resetValue>0x00000000</resetValue>
+ <access>read-only</access>
+ </register>
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>NVMC</name>
+ <version>522</version>
+ <description>Non Volatile Memory Controller.</description>
+ <groupName>NVMC</groupName>
+ <baseAddress>0x4001E000</baseAddress>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <registers>
+ <register>
+ <name>READY</name>
+ <description>Ready flag.</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>NVMC ready.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Busy</name>
+ <description>NVMC is busy (on-going write or erase operation).</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ready</name>
+ <description>NVMC is ready.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register.</description>
+ <addressOffset>0x504</addressOffset>
+ <fields>
+ <field>
+ <name>WEN</name>
+ <description>Program write enable.</description>
+ <lsb>0</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Ren</name>
+ <description>Read only access.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Wen</name>
+ <description>Write enabled.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Een</name>
+ <description>Erase enabled.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ERASEPAGE</name>
+ <description>Register for erasing a non-protected non-volatile memory page.</description>
+ <addressOffset>0x508</addressOffset>
+ </register>
+ <register>
+ <name>ERASEPCR1</name>
+ <description>Register for erasing a non-protected non-volatile memory page.</description>
+ <addressOffset>0x508</addressOffset>
+ <alternateRegister>ERASEPAGE</alternateRegister>
+ </register>
+
+ <register>
+ <name>ERASEALL</name>
+ <description>Register for erasing all non-volatile user memory.</description>
+ <addressOffset>0x50C</addressOffset>
+ <fields>
+ <field>
+ <name>ERASEALL</name>
+ <description>Starts the erasing of all user NVM (code region 0/1 and UICR registers).</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoOperation</name>
+ <description>No operation.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Erase</name>
+ <description>Start chip erase.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>ERASEPCR0</name>
+ <description>Register for erasing a protected non-volatile memory page.</description>
+ <addressOffset>0x510</addressOffset>
+ </register>
+
+ <register>
+ <name>ERASEUICR</name>
+ <description>Register for start erasing User Information Congfiguration Registers.</description>
+ <addressOffset>0x514</addressOffset>
+ <fields>
+ <field>
+ <name>ERASEUICR</name>
+ <description>It can only be used when all contents of code region 1 are erased.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoOperation</name>
+ <description>No operation.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Erase</name>
+ <description>Start UICR erase.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>PPI</name>
+ <version>522</version>
+ <description>PPI controller.</description>
+ <baseAddress>0x4001F000</baseAddress>
+ <groupName>PPI</groupName>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <registers>
+ <cluster>
+ <dim>4</dim>
+ <dimIncrement>0x08</dimIncrement>
+ <name>TASKS_CHG[%s]</name>
+ <description>Channel group tasks.</description>
+ <addressOffset>0x000</addressOffset>
+ <register>
+ <name>EN</name>
+ <description>Enable channel group.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>DIS</name>
+ <description>Disable channel group.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ </cluster>
+
+ <register>
+ <name>CHEN</name>
+ <description>Channel enable.</description>
+ <addressOffset>0x500</addressOffset>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Enable PPI channel 0.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Enable PPI channel 1.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Enable PPI channel 2.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Enable PPI channel 3.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Enable PPI channel 4.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Enable PPI channel 5.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Enable PPI channel 6.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Enable PPI channel 7.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Enable PPI channel 8.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Enable PPI channel 9.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Enable PPI channel 10.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Enable PPI channel 11.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Enable PPI channel 12.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Enable PPI channel 13.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Enable PPI channel 14.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Enable PPI channel 15.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Enable PPI channel 20.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Enable PPI channel 21.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Enable PPI channel 22.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Enable PPI channel 23.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Enable PPI channel 24.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Enable PPI channel 25.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Enable PPI channel 26.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Enable PPI channel 27.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Enable PPI channel 28.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Enable PPI channel 29.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Enable PPI channel 30.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Enable PPI channel 31.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CHENSET</name>
+ <description>Channel enable set.</description>
+ <addressOffset>0x504</addressOffset>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Enable PPI channel 0.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Enable PPI channel 1.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Enable PPI channel 2.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Enable PPI channel 3.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Enable PPI channel 4.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Enable PPI channel 5.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Enable PPI channel 6.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Enable PPI channel 7.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Enable PPI channel 8.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Enable PPI channel 9.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Enable PPI channel 10.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Enable PPI channel 11.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Enable PPI channel 12.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Enable PPI channel 13.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Enable PPI channel 14.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Enable PPI channel 15.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Enable PPI channel 20.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Enable PPI channel 21.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Enable PPI channel 22.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Enable PPI channel 23.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Enable PPI channel 24.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Enable PPI channel 25.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Enable PPI channel 26.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Enable PPI channel 27.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Enable PPI channel 28.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Enable PPI channel 29.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Enable PPI channel 30.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Enable PPI channel 31.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CHENCLR</name>
+ <description>Channel enable clear.</description>
+ <addressOffset>0x508</addressOffset>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Disable PPI channel 0.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Disable PPI channel 1.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Disable PPI channel 2.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Disable PPI channel 3.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Disable PPI channel 4.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Disable PPI channel 5.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Disable PPI channel 6.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Disable PPI channel 7.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Disable PPI channel 8.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Disable PPI channel 9.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Disable PPI channel 10.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Disable PPI channel 11.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Disable PPI channel 12.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Disable PPI channel 13.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Disable PPI channel 14.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Disable PPI channel 15.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Disable PPI channel 20.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Disable PPI channel 21.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Disable PPI channel 22.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Disable PPI channel 23.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Disable PPI channel 24.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Disable PPI channel 25.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Disable PPI channel 26.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Disable PPI channel 27.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Disable PPI channel 28.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Disable PPI channel 29.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Disable PPI channel 30.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Disable PPI channel 31.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Channel disabled.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Channel enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable channel on write.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <cluster>
+ <dim>16</dim>
+ <dimIncrement>0x08</dimIncrement>
+ <name>CH[%s]</name>
+ <description>PPI Channel.</description>
+ <addressOffset>0x510</addressOffset>
+ <register>
+ <name>EEP</name>
+ <description>Channel event end-point.</description>
+ <addressOffset>0x000</addressOffset>
+ </register>
+ <register>
+ <name>TEP</name>
+ <description>Channel task end-point.</description>
+ <addressOffset>0x004</addressOffset>
+ </register>
+ </cluster>
+
+ <register>
+ <dim>4</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>CHG[%s]</name>
+ <description>Channel group configuration.</description>
+ <addressOffset>0x800</addressOffset>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Include CH0 in channel group.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Include CH1 in channel group.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Include CH2 in channel group.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Include CH3 in channel group.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Include CH4 in channel group.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Include CH5 in channel group.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Include CH6 in channel group.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Include CH7 in channel group.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Include CH8 in channel group.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Include CH9 in channel group.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Include CH10 in channel group.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Include CH11 in channel group.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Include CH12 in channel group.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Include CH13 in channel group.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Include CH14 in channel group.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Include CH15 in channel group.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Include CH20 in channel group.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Include CH21 in channel group.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Include CH22 in channel group.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Include CH23 in channel group.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Include CH24 in channel group.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Include CH25 in channel group.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Include CH26 in channel group.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Include CH27 in channel group.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Include CH28 in channel group.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Include CH29 in channel group.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Include CH30 in channel group.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Include CH31 in channel group.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Channel excluded.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Channel included.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>FICR</name>
+ <version>522</version>
+ <description>Factory Information Configuration.</description>
+ <groupName>FICR</groupName>
+ <baseAddress>0x10000000</baseAddress>
+ <size>32</size>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <registers>
+ <register>
+ <name>CODEPAGESIZE</name>
+ <description>Code memory page size in bytes.</description>
+ <addressOffset>0x010</addressOffset>
+ </register>
+ <register>
+ <name>CODESIZE</name>
+ <description>Code memory size in pages.</description>
+ <addressOffset>0x014</addressOffset>
+ </register>
+
+ <register>
+ <name>CLENR0</name>
+ <description>Length of code region 0 in bytes.</description>
+ <addressOffset>0x028</addressOffset>
+ </register>
+ <register>
+ <name>PPFC</name>
+ <description>Pre-programmed factory code present.</description>
+ <addressOffset>0x02C</addressOffset>
+ <fields>
+ <field>
+ <name>PPFC</name>
+ <description>Pre-programmed factory code present.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Not present.</description>
+ <value>0xFF</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Present.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>NUMRAMBLOCK</name>
+ <description>Number of individualy controllable RAM blocks.</description>
+ <addressOffset>0x034</addressOffset>
+ </register>
+ <register>
+ <name>SIZERAMBLOCKS</name>
+ <description>Size of RAM blocks in bytes.</description>
+ <addressOffset>0x038</addressOffset>
+ </register>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>SIZERAMBLOCK[%s]</name>
+ <description>Deprecated array of size of RAM block in bytes. This name is kept for backward compatinility purposes. Use SIZERAMBLOCKS instead.</description>
+ <addressOffset>0x038</addressOffset>
+ <alternateRegister>SIZERAMBLOCKS</alternateRegister>
+ </register>
+
+ <register>
+ <name>CONFIGID</name>
+ <description>Configuration identifier.</description>
+ <addressOffset>0x05C</addressOffset>
+ <fields>
+ <field>
+ <name>HWID</name>
+ <description>Hardware Identification Number.</description>
+ <lsb>0</lsb> <msb>15</msb>
+ </field>
+ <field>
+ <name>FWID</name>
+ <description>Firmware Identification Number pre-loaded into the flash.</description>
+ <lsb>16</lsb> <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <dim>2</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>DEVICEID[%s]</name>
+ <description>Device identifier.</description>
+ <addressOffset>0x060</addressOffset>
+ </register>
+
+ <register>
+ <dim>4</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>ER[%s]</name>
+ <description>Encryption root.</description>
+ <addressOffset>0x080</addressOffset>
+ </register>
+
+ <register>
+ <dim>4</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>IR[%s]</name>
+ <description>Identity root.</description>
+ <addressOffset>0x090</addressOffset>
+ </register>
+
+ <register>
+ <name>DEVICEADDRTYPE</name>
+ <description>Device address type.</description>
+ <addressOffset>0x0A0</addressOffset>
+ <fields>
+ <field>
+ <name>DEVICEADDRTYPE</name>
+ <description>Device address type.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Public</name>
+ <description>Public address.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Random</name>
+ <description>Random address.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <dim>2</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>DEVICEADDR[%s]</name>
+ <description>Device address.</description>
+ <addressOffset>0x0A4</addressOffset>
+ </register>
+
+ <register>
+ <name>OVERRIDEEN</name>
+ <description>Radio calibration override enable.</description>
+ <addressOffset>0x0AC</addressOffset>
+ <fields>
+ <field>
+ <name>NRF_1MBIT</name>
+ <description>Override default values for NRF_1Mbit mode.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Override</name>
+ <description>Override the default values for NRF_1Mbit mode.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NotOverride</name>
+ <description>Do not override the default values for NRF_1Mbit mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BLE_1MBIT</name>
+ <description>Override default values for BLE_1Mbit mode.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Override</name>
+ <description>Override the default values for BLE_1Mbit mode.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NotOverride</name>
+ <description>Do not override the default values for BLE_1Mbit mode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <dim>5</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>NRF_1MBIT[%s]</name>
+ <description>Override values for the OVERRIDEn registers in RADIO for NRF_1Mbit mode.</description>
+ <addressOffset>0x0B0</addressOffset>
+ </register>
+ <register>
+ <dim>5</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>BLE_1MBIT[%s]</name>
+ <description>Override values for the OVERRIDEn registers in RADIO for BLE_1Mbit mode.</description>
+ <addressOffset>0x0EC</addressOffset>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>UICR</name>
+ <version>522</version>
+ <description>User Information Configuration.</description>
+ <groupName>UICR</groupName>
+ <baseAddress>0x10001000</baseAddress>
+ <size>32</size>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <registers>
+ <register>
+ <name>CLENR0</name>
+ <description>Length of code region 0.</description>
+ <addressOffset>0x000</addressOffset>
+ </register>
+
+ <register>
+ <name>RBPCONF</name>
+ <description>Readback protection configuration.</description>
+ <addressOffset>0x004</addressOffset>
+ <fields>
+ <field>
+ <name>PR0</name>
+ <description>Readback protect region 0. Will be ignored if pre-programmed factory code is present on the chip.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0xFF</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PALL</name>
+ <description>Readback protect all code in the device.</description>
+ <lsb>8</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0xFF</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>XTALFREQ</name>
+ <description>Reset value for CLOCK XTALFREQ register.</description>
+ <addressOffset>0x008</addressOffset>
+ <fields>
+ <field>
+ <name>XTALFREQ</name>
+ <description>Reset value for CLOCK XTALFREQ register.</description>
+ <lsb>0</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>16MHz</name>
+ <description>16MHz Xtal is used.</description>
+ <value>0xFF</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MHz</name>
+ <description>32MHz Xtal is used.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>FWID</name>
+ <description>Firmware ID.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>FWID</name>
+ <description>Identification number for the firmware loaded into the chip.</description>
+ <lsb>0</lsb> <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>BOOTLOADERADDR</name>
+ <description>Bootloader start address.</description>
+ <addressOffset>0x014</addressOffset>
+ </register>
+
+ <register>
+ <dim>15</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>NRFFW[%s]</name>
+ <description>Reserved for Nordic firmware design.</description>
+ <addressOffset>0x014</addressOffset>
+ <alternateRegister>BOOTLOADERADDR</alternateRegister>
+ </register>
+ <register>
+ <dim>12</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>NRFHW[%s]</name>
+ <description>Reserved for Nordic hardware design.</description>
+ <addressOffset>0x050</addressOffset>
+ </register>
+ <register>
+ <dim>32</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>CUSTOMER[%s]</name>
+ <description>Reserved for customer.</description>
+ <addressOffset>0x080</addressOffset>
+ </register>
+
+ </registers>
+ </peripheral>
+
+ <peripheral>
+ <name>GPIO</name>
+ <version>522</version>
+ <description>General purpose input and output.</description>
+ <baseAddress>0x50000000</baseAddress>
+ <groupName>GPIO</groupName>
+ <size>32</size>
+ <access>read-write</access>
+
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+
+ <registers>
+ <register>
+ <name>OUT</name>
+ <description>Write GPIO port.</description>
+ <addressOffset>0x504</addressOffset>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OUTSET</name>
+ <description>Set individual bits in GPIO port.</description>
+ <addressOffset>0x508</addressOffset>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin driver high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OUTCLR</name>
+ <description>Clear individual bits in GPIO port.</description>
+ <addressOffset>0x50C</addressOffset>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin driver low.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>IN</name>
+ <description>Read GPIO port.</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+ <register>
+ <name>DIR</name>
+ <description>Direction of GPIO pins.</description>
+ <addressOffset>0x514</addressOffset>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIRSET</name>
+ <description>DIR set register.</description>
+ <addressOffset>0x518</addressOffset>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Set as output pin 0.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Set as output pin 1.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Set as output pin 2.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Set as output pin 3.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Set as output pin 4.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Set as output pin 5.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Set as output pin 6.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Set as output pin 7.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Set as output pin 8.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Set as output pin 9.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Set as output pin 10.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Set as output pin 11.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Set as output pin 12.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Set as output pin 13.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Set as output pin 14.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Set as output pin 15.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Set as output pin 16.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Set as output pin 17.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Set as output pin 18.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Set as output pin 19.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Set as output pin 20.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Set as output pin 21.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Set as output pin 22.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Set as output pin 23.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Set as output pin 24.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Set as output pin 25.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Set as output pin 26.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Set as output pin 27.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Set as output pin 28.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Set as output pin 29.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Set as output pin 30.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Set as output pin 31.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Set pin as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIRCLR</name>
+ <description>DIR clear register.</description>
+ <addressOffset>0x51C</addressOffset>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Set as input pin 0.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Set as input pin 1.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Set as input pin 2.</description>
+ <lsb>2</lsb> <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Set as input pin 3.</description>
+ <lsb>3</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Set as input pin 4.</description>
+ <lsb>4</lsb> <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Set as input pin 5.</description>
+ <lsb>5</lsb> <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Set as input pin 6.</description>
+ <lsb>6</lsb> <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Set as input pin 7.</description>
+ <lsb>7</lsb> <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Set as input pin 8.</description>
+ <lsb>8</lsb> <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Set as input pin 9.</description>
+ <lsb>9</lsb> <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Set as input pin 10.</description>
+ <lsb>10</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Set as input pin 11.</description>
+ <lsb>11</lsb> <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Set as input pin 12.</description>
+ <lsb>12</lsb> <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Set as input pin 13.</description>
+ <lsb>13</lsb> <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Set as input pin 14.</description>
+ <lsb>14</lsb> <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Set as input pin 15.</description>
+ <lsb>15</lsb> <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Set as input pin 16.</description>
+ <lsb>16</lsb> <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Set as input pin 17.</description>
+ <lsb>17</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Set as input pin 18.</description>
+ <lsb>18</lsb> <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Set as input pin 19.</description>
+ <lsb>19</lsb> <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Set as input pin 20.</description>
+ <lsb>20</lsb> <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Set as input pin 21.</description>
+ <lsb>21</lsb> <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Set as input pin 22.</description>
+ <lsb>22</lsb> <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Set as input pin 23.</description>
+ <lsb>23</lsb> <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Set as input pin 24.</description>
+ <lsb>24</lsb> <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Set as input pin 25.</description>
+ <lsb>25</lsb> <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Set as input pin 26.</description>
+ <lsb>26</lsb> <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Set as input pin 27.</description>
+ <lsb>27</lsb> <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Set as input pin 28.</description>
+ <lsb>28</lsb> <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Set as input pin 29.</description>
+ <lsb>29</lsb> <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Set as input pin 30.</description>
+ <lsb>30</lsb> <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Set as input pin 31.</description>
+ <lsb>31</lsb> <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Set pin as input.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+
+
+ <register>
+ <dim>32</dim>
+ <dimIncrement>0x04</dimIncrement>
+ <name>PIN_CNF[%s]</name>
+ <description>Configuration of GPIO pins.</description>
+ <addressOffset>0x700</addressOffset>
+ <resetValue>0x00000002</resetValue>
+ <fields>
+ <field>
+ <name>DIR</name>
+ <description>Pin direction.</description>
+ <lsb>0</lsb> <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Configure pin as an input pin.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Configure pin as an output pin.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>INPUT</name>
+ <description>Connect or disconnect input path.</description>
+ <lsb>1</lsb> <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Connect</name>
+ <description>Connect input pin.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Disconnect</name>
+ <description>Disconnect input pin.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PULL</name>
+ <description>Pull-up or -down configuration.</description>
+ <lsb>2</lsb> <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>No pull.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pulldown</name>
+ <description>Pulldown on pin.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pullup</name>
+ <description>Pullup on pin.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DRIVE</name>
+ <description>Drive configuration.</description>
+ <lsb>8</lsb> <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>S0S1</name>
+ <description>Standard '0', Standard '1'.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>H0S1</name>
+ <description>High '0', Standard '1'.</description>
+ <value>0x01</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>S0H1</name>
+ <description>Standard '0', High '1'.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>H0H1</name>
+ <description>High '0', High '1'.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>D0S1</name>
+ <description>Disconnected '0', Standard '1'.</description>
+ <value>0x04</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>D0H1</name>
+ <description>Disconnected '0', High '1'.</description>
+ <value>0x05</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>S0D1</name>
+ <description>Standard '0', Disconnected '1'.</description>
+ <value>0x06</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>H0D1</name>
+ <description>High '0', Disconnected '1'.</description>
+ <value>0x07</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SENSE</name>
+ <description>Pin sensing mechanism.</description>
+ <lsb>16</lsb> <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Wakeup on high level.</description>
+ <value>0x02</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Wakeup on low level.</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+
+ </peripherals>
+</device>
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51422_peripherals.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51422_peripherals.h
new file mode 100644
index 0000000..b65a716
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51422_peripherals.h
@@ -0,0 +1,165 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+/* This file is deprecated */
+#ifndef _NRF51422_PERIPHERALS_H
+#define _NRF51422_PERIPHERALS_H
+
+
+/* Power Peripheral */
+#define POWER_PRESENT
+#define POWER_COUNT 1
+
+#define POWER_FEATURE_RAMON_REGISTERS_PRESENT
+
+/* Software Interrupts */
+#define SWI_PRESENT
+#define SWI_COUNT 6
+
+/* GPIO */
+#define GPIO_PRESENT
+#define GPIO_COUNT 1
+
+#define P0_PIN_NUM 32
+
+/* MPU and BPROT */
+#define BPROT_PRESENT
+
+#define BPROT_REGIONS_SIZE 4096
+#define BPROT_REGIONS_NUM 64
+
+/* Radio */
+#define RADIO_PRESENT
+#define RADIO_COUNT 1
+
+/* Accelerated Address Resolver */
+#define AAR_PRESENT
+#define AAR_COUNT 1
+
+#define AAR_MAX_IRK_NUM 8
+
+/* AES Electronic CodeBook mode encryption */
+#define ECB_PRESENT
+#define ECB_COUNT 1
+
+/* AES CCM mode encryption */
+#define CCM_PRESENT
+#define CCM_COUNT 1
+
+/* Peripheral to Peripheral Interconnect */
+#define PPI_PRESENT
+#define PPI_COUNT 1
+
+#define PPI_CH_NUM 16
+#define PPI_FIXED_CH_NUM 12
+#define PPI_GROUP_NUM 4
+
+/* Timer/Counter */
+#define TIMER_PRESENT
+#define TIMER_COUNT 3
+
+#define TIMER0_MAX_SIZE 32
+#define TIMER1_MAX_SIZE 16
+#define TIMER2_MAX_SIZE 16
+
+#define TIMER0_CC_NUM 4
+#define TIMER1_CC_NUM 4
+#define TIMER2_CC_NUM 4
+
+/* Real Time Counter */
+#define RTC_PRESENT
+#define RTC_COUNT 2
+
+#define RTC0_CC_NUM 3
+#define RTC1_CC_NUM 4
+
+/* RNG */
+#define RNG_PRESENT
+#define RNG_COUNT 1
+
+/* Watchdog Timer */
+#define WDT_PRESENT
+#define WDT_COUNT 1
+
+/* Temperature Sensor */
+#define TEMP_PRESENT
+#define TEMP_COUNT 1
+
+/* Serial Peripheral Interface Master */
+#define SPI_PRESENT
+#define SPI_COUNT 2
+
+/* Serial Peripheral Interface Slave with DMA */
+#define SPIS_PRESENT
+#define SPIS_COUNT 1
+
+#define SPIS1_EASYDMA_MAXCNT_SIZE 8
+
+/* Two Wire Interface Master */
+#define TWI_PRESENT
+#define TWI_COUNT 2
+
+/* Universal Asynchronous Receiver-Transmitter */
+#define UART_PRESENT
+#define UART_COUNT 1
+
+/* Quadrature Decoder */
+#define QDEC_PRESENT
+#define QDEC_COUNT 1
+
+/* Analog to Digital Converter */
+#define ADC_PRESENT
+#define ADC_COUNT 1
+
+/* GPIO Tasks and Events */
+#define GPIOTE_PRESENT
+#define GPIOTE_COUNT 1
+
+#define GPIOTE_CH_NUM 4
+
+/* Low Power Comparator */
+#define LPCOMP_PRESENT
+#define LPCOMP_COUNT 1
+
+#define LPCOMP_REFSEL_RESOLUTION 8
+
+
+#endif // _NRF51422_PERIPHERALS_H
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51801_peripherals.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51801_peripherals.h
new file mode 100644
index 0000000..28de185
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51801_peripherals.h
@@ -0,0 +1,165 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+/* This file is deprecated */
+#ifndef _NRF51801_PERIPHERALS_H
+#define _NRF51801_PERIPHERALS_H
+
+
+/* Power Peripheral */
+#define POWER_PRESENT
+#define POWER_COUNT 1
+
+#define POWER_FEATURE_RAMON_REGISTERS_PRESENT
+
+/* Software Interrupts */
+#define SWI_PRESENT
+#define SWI_COUNT 6
+
+/* GPIO */
+#define GPIO_PRESENT
+#define GPIO_COUNT 1
+
+#define P0_PIN_NUM 32
+
+/* MPU and BPROT */
+#define BPROT_PRESENT
+
+#define BPROT_REGIONS_SIZE 4096
+#define BPROT_REGIONS_NUM 64
+
+/* Radio */
+#define RADIO_PRESENT
+#define RADIO_COUNT 1
+
+/* Accelerated Address Resolver */
+#define AAR_PRESENT
+#define AAR_COUNT 1
+
+#define AAR_MAX_IRK_NUM 8
+
+/* AES Electronic CodeBook mode encryption */
+#define ECB_PRESENT
+#define ECB_COUNT 1
+
+/* AES CCM mode encryption */
+#define CCM_PRESENT
+#define CCM_COUNT 1
+
+/* Peripheral to Peripheral Interconnect */
+#define PPI_PRESENT
+#define PPI_COUNT 1
+
+#define PPI_CH_NUM 16
+#define PPI_FIXED_CH_NUM 12
+#define PPI_GROUP_NUM 4
+
+/* Timer/Counter */
+#define TIMER_PRESENT
+#define TIMER_COUNT 3
+
+#define TIMER0_MAX_SIZE 32
+#define TIMER1_MAX_SIZE 16
+#define TIMER2_MAX_SIZE 16
+
+#define TIMER0_CC_NUM 4
+#define TIMER1_CC_NUM 4
+#define TIMER2_CC_NUM 4
+
+/* Real Time Counter */
+#define RTC_PRESENT
+#define RTC_COUNT 2
+
+#define RTC0_CC_NUM 3
+#define RTC1_CC_NUM 4
+
+/* RNG */
+#define RNG_PRESENT
+#define RNG_COUNT 1
+
+/* Watchdog Timer */
+#define WDT_PRESENT
+#define WDT_COUNT 1
+
+/* Temperature Sensor */
+#define TEMP_PRESENT
+#define TEMP_COUNT 1
+
+/* Serial Peripheral Interface Master */
+#define SPI_PRESENT
+#define SPI_COUNT 2
+
+/* Serial Peripheral Interface Slave with DMA */
+#define SPIS_PRESENT
+#define SPIS_COUNT 1
+
+#define SPIS1_EASYDMA_MAXCNT_SIZE 8
+
+/* Two Wire Interface Master */
+#define TWI_PRESENT
+#define TWI_COUNT 2
+
+/* Universal Asynchronous Receiver-Transmitter */
+#define UART_PRESENT
+#define UART_COUNT 1
+
+/* Quadrature Decoder */
+#define QDEC_PRESENT
+#define QDEC_COUNT 1
+
+/* Analog to Digital Converter */
+#define ADC_PRESENT
+#define ADC_COUNT 1
+
+/* GPIO Tasks and Events */
+#define GPIOTE_PRESENT
+#define GPIOTE_COUNT 1
+
+#define GPIOTE_CH_NUM 4
+
+/* Low Power Comparator */
+#define LPCOMP_PRESENT
+#define LPCOMP_COUNT 1
+
+#define LPCOMP_REFSEL_RESOLUTION 8
+
+
+#endif // _NRF51801_PERIPHERALS_H
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51801_xxab.ld b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51801_xxab.ld
new file mode 100644
index 0000000..5406e58
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51801_xxab.ld
@@ -0,0 +1,13 @@
+/* Linker script to configure memory regions. */
+
+SEARCH_DIR(.)
+GROUP(-lgcc -lc -lnosys)
+
+MEMORY
+{
+ FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x30000
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
+}
+
+
+INCLUDE "nrf_common.ld"
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51802_peripherals.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51802_peripherals.h
new file mode 100644
index 0000000..06d77bc
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51802_peripherals.h
@@ -0,0 +1,165 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+/* This file is deprecated */
+#ifndef _NRF51802_PERIPHERALS_H
+#define _NRF51802_PERIPHERALS_H
+
+
+/* Power Peripheral */
+#define POWER_PRESENT
+#define POWER_COUNT 1
+
+#define POWER_FEATURE_RAMON_REGISTERS_PRESENT
+
+/* Software Interrupts */
+#define SWI_PRESENT
+#define SWI_COUNT 6
+
+/* GPIO */
+#define GPIO_PRESENT
+#define GPIO_COUNT 1
+
+#define P0_PIN_NUM 32
+
+/* MPU and BPROT */
+#define BPROT_PRESENT
+
+#define BPROT_REGIONS_SIZE 4096
+#define BPROT_REGIONS_NUM 64
+
+/* Radio */
+#define RADIO_PRESENT
+#define RADIO_COUNT 1
+
+/* Accelerated Address Resolver */
+#define AAR_PRESENT
+#define AAR_COUNT 1
+
+#define AAR_MAX_IRK_NUM 8
+
+/* AES Electronic CodeBook mode encryption */
+#define ECB_PRESENT
+#define ECB_COUNT 1
+
+/* AES CCM mode encryption */
+#define CCM_PRESENT
+#define CCM_COUNT 1
+
+/* Peripheral to Peripheral Interconnect */
+#define PPI_PRESENT
+#define PPI_COUNT 1
+
+#define PPI_CH_NUM 16
+#define PPI_FIXED_CH_NUM 12
+#define PPI_GROUP_NUM 4
+
+/* Timer/Counter */
+#define TIMER_PRESENT
+#define TIMER_COUNT 3
+
+#define TIMER0_MAX_SIZE 32
+#define TIMER1_MAX_SIZE 16
+#define TIMER2_MAX_SIZE 16
+
+#define TIMER0_CC_NUM 4
+#define TIMER1_CC_NUM 4
+#define TIMER2_CC_NUM 4
+
+/* Real Time Counter */
+#define RTC_PRESENT
+#define RTC_COUNT 2
+
+#define RTC0_CC_NUM 3
+#define RTC1_CC_NUM 4
+
+/* RNG */
+#define RNG_PRESENT
+#define RNG_COUNT 1
+
+/* Watchdog Timer */
+#define WDT_PRESENT
+#define WDT_COUNT 1
+
+/* Temperature Sensor */
+#define TEMP_PRESENT
+#define TEMP_COUNT 1
+
+/* Serial Peripheral Interface Master */
+#define SPI_PRESENT
+#define SPI_COUNT 2
+
+/* Serial Peripheral Interface Slave with DMA */
+#define SPIS_PRESENT
+#define SPIS_COUNT 1
+
+#define SPIS1_EASYDMA_MAXCNT_SIZE 8
+
+/* Two Wire Interface Master */
+#define TWI_PRESENT
+#define TWI_COUNT 2
+
+/* Universal Asynchronous Receiver-Transmitter */
+#define UART_PRESENT
+#define UART_COUNT 1
+
+/* Quadrature Decoder */
+#define QDEC_PRESENT
+#define QDEC_COUNT 1
+
+/* Analog to Digital Converter */
+#define ADC_PRESENT
+#define ADC_COUNT 1
+
+/* GPIO Tasks and Events */
+#define GPIOTE_PRESENT
+#define GPIOTE_COUNT 1
+
+#define GPIOTE_CH_NUM 4
+
+/* Low Power Comparator */
+#define LPCOMP_PRESENT
+#define LPCOMP_COUNT 1
+
+#define LPCOMP_REFSEL_RESOLUTION 8
+
+
+#endif // _NRF51802_PERIPHERALS_H
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51822_peripherals.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51822_peripherals.h
new file mode 100644
index 0000000..b9a890a
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51822_peripherals.h
@@ -0,0 +1,166 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+
+/* This file is deprecated */
+#ifndef _NRF51822_PERIPHERALS_H
+#define _NRF51822_PERIPHERALS_H
+
+
+/* Power Peripheral */
+#define POWER_PRESENT
+#define POWER_COUNT 1
+
+#define POWER_FEATURE_RAMON_REGISTERS_PRESENT
+
+/* Software Interrupts */
+#define SWI_PRESENT
+#define SWI_COUNT 6
+
+/* GPIO */
+#define GPIO_PRESENT
+#define GPIO_COUNT 1
+
+#define P0_PIN_NUM 32
+
+/* MPU and BPROT */
+#define BPROT_PRESENT
+
+#define BPROT_REGIONS_SIZE 4096
+#define BPROT_REGIONS_NUM 64
+
+/* Radio */
+#define RADIO_PRESENT
+#define RADIO_COUNT 1
+
+/* Accelerated Address Resolver */
+#define AAR_PRESENT
+#define AAR_COUNT 1
+
+#define AAR_MAX_IRK_NUM 8
+
+/* AES Electronic CodeBook mode encryption */
+#define ECB_PRESENT
+#define ECB_COUNT 1
+
+/* AES CCM mode encryption */
+#define CCM_PRESENT
+#define CCM_COUNT 1
+
+/* Peripheral to Peripheral Interconnect */
+#define PPI_PRESENT
+#define PPI_COUNT 1
+
+#define PPI_CH_NUM 16
+#define PPI_FIXED_CH_NUM 12
+#define PPI_GROUP_NUM 4
+
+/* Timer/Counter */
+#define TIMER_PRESENT
+#define TIMER_COUNT 3
+
+#define TIMER0_MAX_SIZE 32
+#define TIMER1_MAX_SIZE 16
+#define TIMER2_MAX_SIZE 16
+
+#define TIMER0_CC_NUM 4
+#define TIMER1_CC_NUM 4
+#define TIMER2_CC_NUM 4
+
+/* Real Time Counter */
+#define RTC_PRESENT
+#define RTC_COUNT 2
+
+#define RTC0_CC_NUM 3
+#define RTC1_CC_NUM 4
+
+/* RNG */
+#define RNG_PRESENT
+#define RNG_COUNT 1
+
+/* Watchdog Timer */
+#define WDT_PRESENT
+#define WDT_COUNT 1
+
+/* Temperature Sensor */
+#define TEMP_PRESENT
+#define TEMP_COUNT 1
+
+/* Serial Peripheral Interface Master */
+#define SPI_PRESENT
+#define SPI_COUNT 2
+
+/* Serial Peripheral Interface Slave with DMA */
+#define SPIS_PRESENT
+#define SPIS_COUNT 1
+
+#define SPIS1_EASYDMA_MAXCNT_SIZE 8
+
+/* Two Wire Interface Master */
+#define TWI_PRESENT
+#define TWI_COUNT 2
+
+/* Universal Asynchronous Receiver-Transmitter */
+#define UART_PRESENT
+#define UART_COUNT 1
+
+/* Quadrature Decoder */
+#define QDEC_PRESENT
+#define QDEC_COUNT 1
+
+/* Analog to Digital Converter */
+#define ADC_PRESENT
+#define ADC_COUNT 1
+
+/* GPIO Tasks and Events */
+#define GPIOTE_PRESENT
+#define GPIOTE_COUNT 1
+
+#define GPIOTE_CH_NUM 4
+
+/* Low Power Comparator */
+#define LPCOMP_PRESENT
+#define LPCOMP_COUNT 1
+
+#define LPCOMP_REFSEL_RESOLUTION 8
+
+
+#endif // _NRF51822_PERIPHERALS_H
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51824_peripherals.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51824_peripherals.h
new file mode 100644
index 0000000..36ff87d
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51824_peripherals.h
@@ -0,0 +1,166 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+
+/* This file is deprecated */
+#ifndef _NRF51824_PERIPHERALS_H
+#define _NRF51824_PERIPHERALS_H
+
+
+/* Power Peripheral */
+#define POWER_PRESENT
+#define POWER_COUNT 1
+
+#define POWER_FEATURE_RAMON_REGISTERS_PRESENT
+
+/* Software Interrupts */
+#define SWI_PRESENT
+#define SWI_COUNT 6
+
+/* GPIO */
+#define GPIO_PRESENT
+#define GPIO_COUNT 1
+
+#define P0_PIN_NUM 32
+
+/* MPU and BPROT */
+#define BPROT_PRESENT
+
+#define BPROT_REGIONS_SIZE 4096
+#define BPROT_REGIONS_NUM 64
+
+/* Radio */
+#define RADIO_PRESENT
+#define RADIO_COUNT 1
+
+/* Accelerated Address Resolver */
+#define AAR_PRESENT
+#define AAR_COUNT 1
+
+#define AAR_MAX_IRK_NUM 8
+
+/* AES Electronic CodeBook mode encryption */
+#define ECB_PRESENT
+#define ECB_COUNT 1
+
+/* AES CCM mode encryption */
+#define CCM_PRESENT
+#define CCM_COUNT 1
+
+/* Peripheral to Peripheral Interconnect */
+#define PPI_PRESENT
+#define PPI_COUNT 1
+
+#define PPI_CH_NUM 16
+#define PPI_FIXED_CH_NUM 12
+#define PPI_GROUP_NUM 4
+
+/* Timer/Counter */
+#define TIMER_PRESENT
+#define TIMER_COUNT 3
+
+#define TIMER0_MAX_SIZE 32
+#define TIMER1_MAX_SIZE 16
+#define TIMER2_MAX_SIZE 16
+
+#define TIMER0_CC_NUM 4
+#define TIMER1_CC_NUM 4
+#define TIMER2_CC_NUM 4
+
+/* Real Time Counter */
+#define RTC_PRESENT
+#define RTC_COUNT 2
+
+#define RTC0_CC_NUM 3
+#define RTC1_CC_NUM 4
+
+/* RNG */
+#define RNG_PRESENT
+#define RNG_COUNT 1
+
+/* Watchdog Timer */
+#define WDT_PRESENT
+#define WDT_COUNT 1
+
+/* Temperature Sensor */
+#define TEMP_PRESENT
+#define TEMP_COUNT 1
+
+/* Serial Peripheral Interface Master */
+#define SPI_PRESENT
+#define SPI_COUNT 2
+
+/* Serial Peripheral Interface Slave with DMA */
+#define SPIS_PRESENT
+#define SPIS_COUNT 1
+
+#define SPIS1_EASYDMA_MAXCNT_SIZE 8
+
+/* Two Wire Interface Master */
+#define TWI_PRESENT
+#define TWI_COUNT 2
+
+/* Universal Asynchronous Receiver-Transmitter */
+#define UART_PRESENT
+#define UART_COUNT 1
+
+/* Quadrature Decoder */
+#define QDEC_PRESENT
+#define QDEC_COUNT 1
+
+/* Analog to Digital Converter */
+#define ADC_PRESENT
+#define ADC_COUNT 1
+
+/* GPIO Tasks and Events */
+#define GPIOTE_PRESENT
+#define GPIOTE_COUNT 1
+
+#define GPIOTE_CH_NUM 4
+
+/* Low Power Comparator */
+#define LPCOMP_PRESENT
+#define LPCOMP_COUNT 1
+
+#define LPCOMP_REFSEL_RESOLUTION 8
+
+
+#endif // _NRF51824_PERIPHERALS_H
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_bitfields.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_bitfields.h
new file mode 100644
index 0000000..007b337
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_bitfields.h
@@ -0,0 +1,6140 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef __NRF51_BITS_H
+#define __NRF51_BITS_H
+
+/*lint ++flb "Enter library region" */
+
+/* Peripheral: AAR */
+/* Description: Accelerated Address Resolver. */
+
+/* Register: AAR_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 2 : Enable interrupt on NOTRESOLVED event. */
+#define AAR_INTENSET_NOTRESOLVED_Pos (2UL) /*!< Position of NOTRESOLVED field. */
+#define AAR_INTENSET_NOTRESOLVED_Msk (0x1UL << AAR_INTENSET_NOTRESOLVED_Pos) /*!< Bit mask of NOTRESOLVED field. */
+#define AAR_INTENSET_NOTRESOLVED_Disabled (0UL) /*!< Interrupt disabled. */
+#define AAR_INTENSET_NOTRESOLVED_Enabled (1UL) /*!< Interrupt enabled. */
+#define AAR_INTENSET_NOTRESOLVED_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 1 : Enable interrupt on RESOLVED event. */
+#define AAR_INTENSET_RESOLVED_Pos (1UL) /*!< Position of RESOLVED field. */
+#define AAR_INTENSET_RESOLVED_Msk (0x1UL << AAR_INTENSET_RESOLVED_Pos) /*!< Bit mask of RESOLVED field. */
+#define AAR_INTENSET_RESOLVED_Disabled (0UL) /*!< Interrupt disabled. */
+#define AAR_INTENSET_RESOLVED_Enabled (1UL) /*!< Interrupt enabled. */
+#define AAR_INTENSET_RESOLVED_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 0 : Enable interrupt on END event. */
+#define AAR_INTENSET_END_Pos (0UL) /*!< Position of END field. */
+#define AAR_INTENSET_END_Msk (0x1UL << AAR_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define AAR_INTENSET_END_Disabled (0UL) /*!< Interrupt disabled. */
+#define AAR_INTENSET_END_Enabled (1UL) /*!< Interrupt enabled. */
+#define AAR_INTENSET_END_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: AAR_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 2 : Disable interrupt on NOTRESOLVED event. */
+#define AAR_INTENCLR_NOTRESOLVED_Pos (2UL) /*!< Position of NOTRESOLVED field. */
+#define AAR_INTENCLR_NOTRESOLVED_Msk (0x1UL << AAR_INTENCLR_NOTRESOLVED_Pos) /*!< Bit mask of NOTRESOLVED field. */
+#define AAR_INTENCLR_NOTRESOLVED_Disabled (0UL) /*!< Interrupt disabled. */
+#define AAR_INTENCLR_NOTRESOLVED_Enabled (1UL) /*!< Interrupt enabled. */
+#define AAR_INTENCLR_NOTRESOLVED_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 1 : Disable interrupt on RESOLVED event. */
+#define AAR_INTENCLR_RESOLVED_Pos (1UL) /*!< Position of RESOLVED field. */
+#define AAR_INTENCLR_RESOLVED_Msk (0x1UL << AAR_INTENCLR_RESOLVED_Pos) /*!< Bit mask of RESOLVED field. */
+#define AAR_INTENCLR_RESOLVED_Disabled (0UL) /*!< Interrupt disabled. */
+#define AAR_INTENCLR_RESOLVED_Enabled (1UL) /*!< Interrupt enabled. */
+#define AAR_INTENCLR_RESOLVED_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 0 : Disable interrupt on ENDKSGEN event. */
+#define AAR_INTENCLR_END_Pos (0UL) /*!< Position of END field. */
+#define AAR_INTENCLR_END_Msk (0x1UL << AAR_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define AAR_INTENCLR_END_Disabled (0UL) /*!< Interrupt disabled. */
+#define AAR_INTENCLR_END_Enabled (1UL) /*!< Interrupt enabled. */
+#define AAR_INTENCLR_END_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: AAR_STATUS */
+/* Description: Resolution status. */
+
+/* Bits 3..0 : The IRK used last time an address was resolved. */
+#define AAR_STATUS_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define AAR_STATUS_STATUS_Msk (0xFUL << AAR_STATUS_STATUS_Pos) /*!< Bit mask of STATUS field. */
+
+/* Register: AAR_ENABLE */
+/* Description: Enable AAR. */
+
+/* Bits 1..0 : Enable AAR. */
+#define AAR_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define AAR_ENABLE_ENABLE_Msk (0x3UL << AAR_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define AAR_ENABLE_ENABLE_Disabled (0x00UL) /*!< Disabled AAR. */
+#define AAR_ENABLE_ENABLE_Enabled (0x03UL) /*!< Enable AAR. */
+
+/* Register: AAR_NIRK */
+/* Description: Number of Identity root Keys in the IRK data structure. */
+
+/* Bits 4..0 : Number of Identity root Keys in the IRK data structure. */
+#define AAR_NIRK_NIRK_Pos (0UL) /*!< Position of NIRK field. */
+#define AAR_NIRK_NIRK_Msk (0x1FUL << AAR_NIRK_NIRK_Pos) /*!< Bit mask of NIRK field. */
+
+/* Register: AAR_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define AAR_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define AAR_POWER_POWER_Msk (0x1UL << AAR_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define AAR_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define AAR_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: ADC */
+/* Description: Analog to digital converter. */
+
+/* Register: ADC_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 0 : Enable interrupt on END event. */
+#define ADC_INTENSET_END_Pos (0UL) /*!< Position of END field. */
+#define ADC_INTENSET_END_Msk (0x1UL << ADC_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define ADC_INTENSET_END_Disabled (0UL) /*!< Interrupt disabled. */
+#define ADC_INTENSET_END_Enabled (1UL) /*!< Interrupt enabled. */
+#define ADC_INTENSET_END_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: ADC_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 0 : Disable interrupt on END event. */
+#define ADC_INTENCLR_END_Pos (0UL) /*!< Position of END field. */
+#define ADC_INTENCLR_END_Msk (0x1UL << ADC_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define ADC_INTENCLR_END_Disabled (0UL) /*!< Interrupt disabled. */
+#define ADC_INTENCLR_END_Enabled (1UL) /*!< Interrupt enabled. */
+#define ADC_INTENCLR_END_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: ADC_BUSY */
+/* Description: ADC busy register. */
+
+/* Bit 0 : ADC busy register. */
+#define ADC_BUSY_BUSY_Pos (0UL) /*!< Position of BUSY field. */
+#define ADC_BUSY_BUSY_Msk (0x1UL << ADC_BUSY_BUSY_Pos) /*!< Bit mask of BUSY field. */
+#define ADC_BUSY_BUSY_Ready (0UL) /*!< No ongoing ADC conversion is taking place. ADC is ready. */
+#define ADC_BUSY_BUSY_Busy (1UL) /*!< An ADC conversion is taking place. ADC is busy. */
+
+/* Register: ADC_ENABLE */
+/* Description: ADC enable. */
+
+/* Bits 1..0 : ADC enable. */
+#define ADC_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define ADC_ENABLE_ENABLE_Msk (0x3UL << ADC_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define ADC_ENABLE_ENABLE_Disabled (0x00UL) /*!< ADC is disabled. */
+#define ADC_ENABLE_ENABLE_Enabled (0x01UL) /*!< ADC is enabled. If an analog input pin is selected as source of the conversion, the selected pin is configured as an analog input. */
+
+/* Register: ADC_CONFIG */
+/* Description: ADC configuration register. */
+
+/* Bits 17..16 : ADC external reference pin selection. */
+#define ADC_CONFIG_EXTREFSEL_Pos (16UL) /*!< Position of EXTREFSEL field. */
+#define ADC_CONFIG_EXTREFSEL_Msk (0x3UL << ADC_CONFIG_EXTREFSEL_Pos) /*!< Bit mask of EXTREFSEL field. */
+#define ADC_CONFIG_EXTREFSEL_None (0UL) /*!< Analog external reference inputs disabled. */
+#define ADC_CONFIG_EXTREFSEL_AnalogReference0 (1UL) /*!< Use analog reference 0 as reference. */
+#define ADC_CONFIG_EXTREFSEL_AnalogReference1 (2UL) /*!< Use analog reference 1 as reference. */
+
+/* Bits 15..8 : ADC analog pin selection. */
+#define ADC_CONFIG_PSEL_Pos (8UL) /*!< Position of PSEL field. */
+#define ADC_CONFIG_PSEL_Msk (0xFFUL << ADC_CONFIG_PSEL_Pos) /*!< Bit mask of PSEL field. */
+#define ADC_CONFIG_PSEL_Disabled (0UL) /*!< Analog input pins disabled. */
+#define ADC_CONFIG_PSEL_AnalogInput0 (1UL) /*!< Use analog input 0 as analog input. */
+#define ADC_CONFIG_PSEL_AnalogInput1 (2UL) /*!< Use analog input 1 as analog input. */
+#define ADC_CONFIG_PSEL_AnalogInput2 (4UL) /*!< Use analog input 2 as analog input. */
+#define ADC_CONFIG_PSEL_AnalogInput3 (8UL) /*!< Use analog input 3 as analog input. */
+#define ADC_CONFIG_PSEL_AnalogInput4 (16UL) /*!< Use analog input 4 as analog input. */
+#define ADC_CONFIG_PSEL_AnalogInput5 (32UL) /*!< Use analog input 5 as analog input. */
+#define ADC_CONFIG_PSEL_AnalogInput6 (64UL) /*!< Use analog input 6 as analog input. */
+#define ADC_CONFIG_PSEL_AnalogInput7 (128UL) /*!< Use analog input 7 as analog input. */
+
+/* Bits 6..5 : ADC reference selection. */
+#define ADC_CONFIG_REFSEL_Pos (5UL) /*!< Position of REFSEL field. */
+#define ADC_CONFIG_REFSEL_Msk (0x3UL << ADC_CONFIG_REFSEL_Pos) /*!< Bit mask of REFSEL field. */
+#define ADC_CONFIG_REFSEL_VBG (0x00UL) /*!< Use internal 1.2V bandgap voltage as reference for conversion. */
+#define ADC_CONFIG_REFSEL_External (0x01UL) /*!< Use external source configured by EXTREFSEL as reference for conversion. */
+#define ADC_CONFIG_REFSEL_SupplyOneHalfPrescaling (0x02UL) /*!< Use supply voltage with 1/2 prescaling as reference for conversion. Only usable when supply voltage is between 1.7V and 2.6V. */
+#define ADC_CONFIG_REFSEL_SupplyOneThirdPrescaling (0x03UL) /*!< Use supply voltage with 1/3 prescaling as reference for conversion. Only usable when supply voltage is between 2.5V and 3.6V. */
+
+/* Bits 4..2 : ADC input selection. */
+#define ADC_CONFIG_INPSEL_Pos (2UL) /*!< Position of INPSEL field. */
+#define ADC_CONFIG_INPSEL_Msk (0x7UL << ADC_CONFIG_INPSEL_Pos) /*!< Bit mask of INPSEL field. */
+#define ADC_CONFIG_INPSEL_AnalogInputNoPrescaling (0x00UL) /*!< Analog input specified by PSEL with no prescaling used as input for the conversion. */
+#define ADC_CONFIG_INPSEL_AnalogInputTwoThirdsPrescaling (0x01UL) /*!< Analog input specified by PSEL with 2/3 prescaling used as input for the conversion. */
+#define ADC_CONFIG_INPSEL_AnalogInputOneThirdPrescaling (0x02UL) /*!< Analog input specified by PSEL with 1/3 prescaling used as input for the conversion. */
+#define ADC_CONFIG_INPSEL_SupplyTwoThirdsPrescaling (0x05UL) /*!< Supply voltage with 2/3 prescaling used as input for the conversion. */
+#define ADC_CONFIG_INPSEL_SupplyOneThirdPrescaling (0x06UL) /*!< Supply voltage with 1/3 prescaling used as input for the conversion. */
+
+/* Bits 1..0 : ADC resolution. */
+#define ADC_CONFIG_RES_Pos (0UL) /*!< Position of RES field. */
+#define ADC_CONFIG_RES_Msk (0x3UL << ADC_CONFIG_RES_Pos) /*!< Bit mask of RES field. */
+#define ADC_CONFIG_RES_8bit (0x00UL) /*!< 8bit ADC resolution. */
+#define ADC_CONFIG_RES_9bit (0x01UL) /*!< 9bit ADC resolution. */
+#define ADC_CONFIG_RES_10bit (0x02UL) /*!< 10bit ADC resolution. */
+
+/* Register: ADC_RESULT */
+/* Description: Result of ADC conversion. */
+
+/* Bits 9..0 : Result of ADC conversion. */
+#define ADC_RESULT_RESULT_Pos (0UL) /*!< Position of RESULT field. */
+#define ADC_RESULT_RESULT_Msk (0x3FFUL << ADC_RESULT_RESULT_Pos) /*!< Bit mask of RESULT field. */
+
+/* Register: ADC_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define ADC_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define ADC_POWER_POWER_Msk (0x1UL << ADC_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define ADC_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define ADC_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: CCM */
+/* Description: AES CCM Mode Encryption. */
+
+/* Register: CCM_SHORTS */
+/* Description: Shortcuts for the CCM. */
+
+/* Bit 0 : Shortcut between ENDKSGEN event and CRYPT task. */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Pos (0UL) /*!< Position of ENDKSGEN_CRYPT field. */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Msk (0x1UL << CCM_SHORTS_ENDKSGEN_CRYPT_Pos) /*!< Bit mask of ENDKSGEN_CRYPT field. */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Disabled (0UL) /*!< Shortcut disabled. */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Register: CCM_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 2 : Enable interrupt on ERROR event. */
+#define CCM_INTENSET_ERROR_Pos (2UL) /*!< Position of ERROR field. */
+#define CCM_INTENSET_ERROR_Msk (0x1UL << CCM_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define CCM_INTENSET_ERROR_Disabled (0UL) /*!< Interrupt disabled. */
+#define CCM_INTENSET_ERROR_Enabled (1UL) /*!< Interrupt enabled. */
+#define CCM_INTENSET_ERROR_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 1 : Enable interrupt on ENDCRYPT event. */
+#define CCM_INTENSET_ENDCRYPT_Pos (1UL) /*!< Position of ENDCRYPT field. */
+#define CCM_INTENSET_ENDCRYPT_Msk (0x1UL << CCM_INTENSET_ENDCRYPT_Pos) /*!< Bit mask of ENDCRYPT field. */
+#define CCM_INTENSET_ENDCRYPT_Disabled (0UL) /*!< Interrupt disabled. */
+#define CCM_INTENSET_ENDCRYPT_Enabled (1UL) /*!< Interrupt enabled. */
+#define CCM_INTENSET_ENDCRYPT_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 0 : Enable interrupt on ENDKSGEN event. */
+#define CCM_INTENSET_ENDKSGEN_Pos (0UL) /*!< Position of ENDKSGEN field. */
+#define CCM_INTENSET_ENDKSGEN_Msk (0x1UL << CCM_INTENSET_ENDKSGEN_Pos) /*!< Bit mask of ENDKSGEN field. */
+#define CCM_INTENSET_ENDKSGEN_Disabled (0UL) /*!< Interrupt disabled. */
+#define CCM_INTENSET_ENDKSGEN_Enabled (1UL) /*!< Interrupt enabled. */
+#define CCM_INTENSET_ENDKSGEN_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: CCM_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 2 : Disable interrupt on ERROR event. */
+#define CCM_INTENCLR_ERROR_Pos (2UL) /*!< Position of ERROR field. */
+#define CCM_INTENCLR_ERROR_Msk (0x1UL << CCM_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define CCM_INTENCLR_ERROR_Disabled (0UL) /*!< Interrupt disabled. */
+#define CCM_INTENCLR_ERROR_Enabled (1UL) /*!< Interrupt enabled. */
+#define CCM_INTENCLR_ERROR_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 1 : Disable interrupt on ENDCRYPT event. */
+#define CCM_INTENCLR_ENDCRYPT_Pos (1UL) /*!< Position of ENDCRYPT field. */
+#define CCM_INTENCLR_ENDCRYPT_Msk (0x1UL << CCM_INTENCLR_ENDCRYPT_Pos) /*!< Bit mask of ENDCRYPT field. */
+#define CCM_INTENCLR_ENDCRYPT_Disabled (0UL) /*!< Interrupt disabled. */
+#define CCM_INTENCLR_ENDCRYPT_Enabled (1UL) /*!< Interrupt enabled. */
+#define CCM_INTENCLR_ENDCRYPT_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 0 : Disable interrupt on ENDKSGEN event. */
+#define CCM_INTENCLR_ENDKSGEN_Pos (0UL) /*!< Position of ENDKSGEN field. */
+#define CCM_INTENCLR_ENDKSGEN_Msk (0x1UL << CCM_INTENCLR_ENDKSGEN_Pos) /*!< Bit mask of ENDKSGEN field. */
+#define CCM_INTENCLR_ENDKSGEN_Disabled (0UL) /*!< Interrupt disabled. */
+#define CCM_INTENCLR_ENDKSGEN_Enabled (1UL) /*!< Interrupt enabled. */
+#define CCM_INTENCLR_ENDKSGEN_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: CCM_MICSTATUS */
+/* Description: CCM RX MIC check result. */
+
+/* Bit 0 : Result of the MIC check performed during the previous CCM RX STARTCRYPT */
+#define CCM_MICSTATUS_MICSTATUS_Pos (0UL) /*!< Position of MICSTATUS field. */
+#define CCM_MICSTATUS_MICSTATUS_Msk (0x1UL << CCM_MICSTATUS_MICSTATUS_Pos) /*!< Bit mask of MICSTATUS field. */
+#define CCM_MICSTATUS_MICSTATUS_CheckFailed (0UL) /*!< MIC check failed. */
+#define CCM_MICSTATUS_MICSTATUS_CheckPassed (1UL) /*!< MIC check passed. */
+
+/* Register: CCM_ENABLE */
+/* Description: CCM enable. */
+
+/* Bits 1..0 : CCM enable. */
+#define CCM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define CCM_ENABLE_ENABLE_Msk (0x3UL << CCM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define CCM_ENABLE_ENABLE_Disabled (0x00UL) /*!< CCM is disabled. */
+#define CCM_ENABLE_ENABLE_Enabled (0x02UL) /*!< CCM is enabled. */
+
+/* Register: CCM_MODE */
+/* Description: Operation mode. */
+
+/* Bit 0 : CCM mode operation. */
+#define CCM_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define CCM_MODE_MODE_Msk (0x1UL << CCM_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define CCM_MODE_MODE_Encryption (0UL) /*!< CCM mode TX */
+#define CCM_MODE_MODE_Decryption (1UL) /*!< CCM mode TX */
+
+/* Register: CCM_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define CCM_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define CCM_POWER_POWER_Msk (0x1UL << CCM_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define CCM_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define CCM_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: CLOCK */
+/* Description: Clock control. */
+
+/* Register: CLOCK_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 4 : Enable interrupt on CTTO event. */
+#define CLOCK_INTENSET_CTTO_Pos (4UL) /*!< Position of CTTO field. */
+#define CLOCK_INTENSET_CTTO_Msk (0x1UL << CLOCK_INTENSET_CTTO_Pos) /*!< Bit mask of CTTO field. */
+#define CLOCK_INTENSET_CTTO_Disabled (0UL) /*!< Interrupt disabled. */
+#define CLOCK_INTENSET_CTTO_Enabled (1UL) /*!< Interrupt enabled. */
+#define CLOCK_INTENSET_CTTO_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 3 : Enable interrupt on DONE event. */
+#define CLOCK_INTENSET_DONE_Pos (3UL) /*!< Position of DONE field. */
+#define CLOCK_INTENSET_DONE_Msk (0x1UL << CLOCK_INTENSET_DONE_Pos) /*!< Bit mask of DONE field. */
+#define CLOCK_INTENSET_DONE_Disabled (0UL) /*!< Interrupt disabled. */
+#define CLOCK_INTENSET_DONE_Enabled (1UL) /*!< Interrupt enabled. */
+#define CLOCK_INTENSET_DONE_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 1 : Enable interrupt on LFCLKSTARTED event. */
+#define CLOCK_INTENSET_LFCLKSTARTED_Pos (1UL) /*!< Position of LFCLKSTARTED field. */
+#define CLOCK_INTENSET_LFCLKSTARTED_Msk (0x1UL << CLOCK_INTENSET_LFCLKSTARTED_Pos) /*!< Bit mask of LFCLKSTARTED field. */
+#define CLOCK_INTENSET_LFCLKSTARTED_Disabled (0UL) /*!< Interrupt disabled. */
+#define CLOCK_INTENSET_LFCLKSTARTED_Enabled (1UL) /*!< Interrupt enabled. */
+#define CLOCK_INTENSET_LFCLKSTARTED_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 0 : Enable interrupt on HFCLKSTARTED event. */
+#define CLOCK_INTENSET_HFCLKSTARTED_Pos (0UL) /*!< Position of HFCLKSTARTED field. */
+#define CLOCK_INTENSET_HFCLKSTARTED_Msk (0x1UL << CLOCK_INTENSET_HFCLKSTARTED_Pos) /*!< Bit mask of HFCLKSTARTED field. */
+#define CLOCK_INTENSET_HFCLKSTARTED_Disabled (0UL) /*!< Interrupt disabled. */
+#define CLOCK_INTENSET_HFCLKSTARTED_Enabled (1UL) /*!< Interrupt enabled. */
+#define CLOCK_INTENSET_HFCLKSTARTED_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: CLOCK_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 4 : Disable interrupt on CTTO event. */
+#define CLOCK_INTENCLR_CTTO_Pos (4UL) /*!< Position of CTTO field. */
+#define CLOCK_INTENCLR_CTTO_Msk (0x1UL << CLOCK_INTENCLR_CTTO_Pos) /*!< Bit mask of CTTO field. */
+#define CLOCK_INTENCLR_CTTO_Disabled (0UL) /*!< Interrupt disabled. */
+#define CLOCK_INTENCLR_CTTO_Enabled (1UL) /*!< Interrupt enabled. */
+#define CLOCK_INTENCLR_CTTO_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 3 : Disable interrupt on DONE event. */
+#define CLOCK_INTENCLR_DONE_Pos (3UL) /*!< Position of DONE field. */
+#define CLOCK_INTENCLR_DONE_Msk (0x1UL << CLOCK_INTENCLR_DONE_Pos) /*!< Bit mask of DONE field. */
+#define CLOCK_INTENCLR_DONE_Disabled (0UL) /*!< Interrupt disabled. */
+#define CLOCK_INTENCLR_DONE_Enabled (1UL) /*!< Interrupt enabled. */
+#define CLOCK_INTENCLR_DONE_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 1 : Disable interrupt on LFCLKSTARTED event. */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Pos (1UL) /*!< Position of LFCLKSTARTED field. */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Msk (0x1UL << CLOCK_INTENCLR_LFCLKSTARTED_Pos) /*!< Bit mask of LFCLKSTARTED field. */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Disabled (0UL) /*!< Interrupt disabled. */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Enabled (1UL) /*!< Interrupt enabled. */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 0 : Disable interrupt on HFCLKSTARTED event. */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Pos (0UL) /*!< Position of HFCLKSTARTED field. */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Msk (0x1UL << CLOCK_INTENCLR_HFCLKSTARTED_Pos) /*!< Bit mask of HFCLKSTARTED field. */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Disabled (0UL) /*!< Interrupt disabled. */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Enabled (1UL) /*!< Interrupt enabled. */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: CLOCK_HFCLKRUN */
+/* Description: Task HFCLKSTART trigger status. */
+
+/* Bit 0 : Task HFCLKSTART trigger status. */
+#define CLOCK_HFCLKRUN_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define CLOCK_HFCLKRUN_STATUS_Msk (0x1UL << CLOCK_HFCLKRUN_STATUS_Pos) /*!< Bit mask of STATUS field. */
+#define CLOCK_HFCLKRUN_STATUS_NotTriggered (0UL) /*!< Task HFCLKSTART has not been triggered. */
+#define CLOCK_HFCLKRUN_STATUS_Triggered (1UL) /*!< Task HFCLKSTART has been triggered. */
+
+/* Register: CLOCK_HFCLKSTAT */
+/* Description: High frequency clock status. */
+
+/* Bit 16 : State for the HFCLK. */
+#define CLOCK_HFCLKSTAT_STATE_Pos (16UL) /*!< Position of STATE field. */
+#define CLOCK_HFCLKSTAT_STATE_Msk (0x1UL << CLOCK_HFCLKSTAT_STATE_Pos) /*!< Bit mask of STATE field. */
+#define CLOCK_HFCLKSTAT_STATE_NotRunning (0UL) /*!< HFCLK clock not running. */
+#define CLOCK_HFCLKSTAT_STATE_Running (1UL) /*!< HFCLK clock running. */
+
+/* Bit 0 : Active clock source for the HF clock. */
+#define CLOCK_HFCLKSTAT_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_HFCLKSTAT_SRC_Msk (0x1UL << CLOCK_HFCLKSTAT_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_HFCLKSTAT_SRC_RC (0UL) /*!< Internal 16MHz RC oscillator running and generating the HFCLK clock. */
+#define CLOCK_HFCLKSTAT_SRC_Xtal (1UL) /*!< External 16MHz/32MHz crystal oscillator running and generating the HFCLK clock. */
+
+/* Register: CLOCK_LFCLKRUN */
+/* Description: Task LFCLKSTART triggered status. */
+
+/* Bit 0 : Task LFCLKSTART triggered status. */
+#define CLOCK_LFCLKRUN_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define CLOCK_LFCLKRUN_STATUS_Msk (0x1UL << CLOCK_LFCLKRUN_STATUS_Pos) /*!< Bit mask of STATUS field. */
+#define CLOCK_LFCLKRUN_STATUS_NotTriggered (0UL) /*!< Task LFCLKSTART has not been triggered. */
+#define CLOCK_LFCLKRUN_STATUS_Triggered (1UL) /*!< Task LFCLKSTART has been triggered. */
+
+/* Register: CLOCK_LFCLKSTAT */
+/* Description: Low frequency clock status. */
+
+/* Bit 16 : State for the LF clock. */
+#define CLOCK_LFCLKSTAT_STATE_Pos (16UL) /*!< Position of STATE field. */
+#define CLOCK_LFCLKSTAT_STATE_Msk (0x1UL << CLOCK_LFCLKSTAT_STATE_Pos) /*!< Bit mask of STATE field. */
+#define CLOCK_LFCLKSTAT_STATE_NotRunning (0UL) /*!< LFCLK clock not running. */
+#define CLOCK_LFCLKSTAT_STATE_Running (1UL) /*!< LFCLK clock running. */
+
+/* Bits 1..0 : Active clock source for the LF clock. */
+#define CLOCK_LFCLKSTAT_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_LFCLKSTAT_SRC_Msk (0x3UL << CLOCK_LFCLKSTAT_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_LFCLKSTAT_SRC_RC (0UL) /*!< Internal 32KiHz RC oscillator running and generating the LFCLK clock. */
+#define CLOCK_LFCLKSTAT_SRC_Xtal (1UL) /*!< External 32KiHz crystal oscillator running and generating the LFCLK clock. */
+#define CLOCK_LFCLKSTAT_SRC_Synth (2UL) /*!< Internal 32KiHz synthesizer from the HFCLK running and generating the LFCLK clock. */
+
+/* Register: CLOCK_LFCLKSRCCOPY */
+/* Description: Clock source for the LFCLK clock, set when task LKCLKSTART is triggered. */
+
+/* Bits 1..0 : Clock source for the LFCLK clock, set when task LKCLKSTART is triggered. */
+#define CLOCK_LFCLKSRCCOPY_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_LFCLKSRCCOPY_SRC_Msk (0x3UL << CLOCK_LFCLKSRCCOPY_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_LFCLKSRCCOPY_SRC_RC (0UL) /*!< Internal 32KiHz RC oscillator. */
+#define CLOCK_LFCLKSRCCOPY_SRC_Xtal (1UL) /*!< External 32KiHz crystal. */
+#define CLOCK_LFCLKSRCCOPY_SRC_Synth (2UL) /*!< Internal 32KiHz synthesizer from HFCLK system clock. */
+
+/* Register: CLOCK_LFCLKSRC */
+/* Description: Clock source for the LFCLK clock. */
+
+/* Bits 1..0 : Clock source. */
+#define CLOCK_LFCLKSRC_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_LFCLKSRC_SRC_Msk (0x3UL << CLOCK_LFCLKSRC_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_LFCLKSRC_SRC_RC (0UL) /*!< Internal 32KiHz RC oscillator. */
+#define CLOCK_LFCLKSRC_SRC_Xtal (1UL) /*!< External 32KiHz crystal. */
+#define CLOCK_LFCLKSRC_SRC_Synth (2UL) /*!< Internal 32KiHz synthesizer from HFCLK system clock. */
+
+/* Register: CLOCK_CTIV */
+/* Description: Calibration timer interval. */
+
+/* Bits 6..0 : Calibration timer interval in 0.25s resolution. */
+#define CLOCK_CTIV_CTIV_Pos (0UL) /*!< Position of CTIV field. */
+#define CLOCK_CTIV_CTIV_Msk (0x7FUL << CLOCK_CTIV_CTIV_Pos) /*!< Bit mask of CTIV field. */
+
+/* Register: CLOCK_XTALFREQ */
+/* Description: Crystal frequency. */
+
+/* Bits 7..0 : External Xtal frequency selection. */
+#define CLOCK_XTALFREQ_XTALFREQ_Pos (0UL) /*!< Position of XTALFREQ field. */
+#define CLOCK_XTALFREQ_XTALFREQ_Msk (0xFFUL << CLOCK_XTALFREQ_XTALFREQ_Pos) /*!< Bit mask of XTALFREQ field. */
+#define CLOCK_XTALFREQ_XTALFREQ_32MHz (0x00UL) /*!< 32MHz xtal is used as source for the HFCLK oscillator. */
+#define CLOCK_XTALFREQ_XTALFREQ_16MHz (0xFFUL) /*!< 16MHz xtal is used as source for the HFCLK oscillator. */
+
+
+/* Peripheral: ECB */
+/* Description: AES ECB Mode Encryption. */
+
+/* Register: ECB_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 1 : Enable interrupt on ERRORECB event. */
+#define ECB_INTENSET_ERRORECB_Pos (1UL) /*!< Position of ERRORECB field. */
+#define ECB_INTENSET_ERRORECB_Msk (0x1UL << ECB_INTENSET_ERRORECB_Pos) /*!< Bit mask of ERRORECB field. */
+#define ECB_INTENSET_ERRORECB_Disabled (0UL) /*!< Interrupt disabled. */
+#define ECB_INTENSET_ERRORECB_Enabled (1UL) /*!< Interrupt enabled. */
+#define ECB_INTENSET_ERRORECB_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 0 : Enable interrupt on ENDECB event. */
+#define ECB_INTENSET_ENDECB_Pos (0UL) /*!< Position of ENDECB field. */
+#define ECB_INTENSET_ENDECB_Msk (0x1UL << ECB_INTENSET_ENDECB_Pos) /*!< Bit mask of ENDECB field. */
+#define ECB_INTENSET_ENDECB_Disabled (0UL) /*!< Interrupt disabled. */
+#define ECB_INTENSET_ENDECB_Enabled (1UL) /*!< Interrupt enabled. */
+#define ECB_INTENSET_ENDECB_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: ECB_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 1 : Disable interrupt on ERRORECB event. */
+#define ECB_INTENCLR_ERRORECB_Pos (1UL) /*!< Position of ERRORECB field. */
+#define ECB_INTENCLR_ERRORECB_Msk (0x1UL << ECB_INTENCLR_ERRORECB_Pos) /*!< Bit mask of ERRORECB field. */
+#define ECB_INTENCLR_ERRORECB_Disabled (0UL) /*!< Interrupt disabled. */
+#define ECB_INTENCLR_ERRORECB_Enabled (1UL) /*!< Interrupt enabled. */
+#define ECB_INTENCLR_ERRORECB_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 0 : Disable interrupt on ENDECB event. */
+#define ECB_INTENCLR_ENDECB_Pos (0UL) /*!< Position of ENDECB field. */
+#define ECB_INTENCLR_ENDECB_Msk (0x1UL << ECB_INTENCLR_ENDECB_Pos) /*!< Bit mask of ENDECB field. */
+#define ECB_INTENCLR_ENDECB_Disabled (0UL) /*!< Interrupt disabled. */
+#define ECB_INTENCLR_ENDECB_Enabled (1UL) /*!< Interrupt enabled. */
+#define ECB_INTENCLR_ENDECB_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: ECB_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define ECB_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define ECB_POWER_POWER_Msk (0x1UL << ECB_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define ECB_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define ECB_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: FICR */
+/* Description: Factory Information Configuration. */
+
+/* Register: FICR_PPFC */
+/* Description: Pre-programmed factory code present. */
+
+/* Bits 7..0 : Pre-programmed factory code present. */
+#define FICR_PPFC_PPFC_Pos (0UL) /*!< Position of PPFC field. */
+#define FICR_PPFC_PPFC_Msk (0xFFUL << FICR_PPFC_PPFC_Pos) /*!< Bit mask of PPFC field. */
+#define FICR_PPFC_PPFC_Present (0x00UL) /*!< Present. */
+#define FICR_PPFC_PPFC_NotPresent (0xFFUL) /*!< Not present. */
+
+/* Register: FICR_CONFIGID */
+/* Description: Configuration identifier. */
+
+/* Bits 31..16 : Firmware Identification Number pre-loaded into the flash. */
+#define FICR_CONFIGID_FWID_Pos (16UL) /*!< Position of FWID field. */
+#define FICR_CONFIGID_FWID_Msk (0xFFFFUL << FICR_CONFIGID_FWID_Pos) /*!< Bit mask of FWID field. */
+
+/* Bits 15..0 : Hardware Identification Number. */
+#define FICR_CONFIGID_HWID_Pos (0UL) /*!< Position of HWID field. */
+#define FICR_CONFIGID_HWID_Msk (0xFFFFUL << FICR_CONFIGID_HWID_Pos) /*!< Bit mask of HWID field. */
+
+/* Register: FICR_DEVICEADDRTYPE */
+/* Description: Device address type. */
+
+/* Bit 0 : Device address type. */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Pos (0UL) /*!< Position of DEVICEADDRTYPE field. */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Msk (0x1UL << FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Pos) /*!< Bit mask of DEVICEADDRTYPE field. */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Public (0UL) /*!< Public address. */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Random (1UL) /*!< Random address. */
+
+/* Register: FICR_OVERRIDEEN */
+/* Description: Radio calibration override enable. */
+
+/* Bit 3 : Override default values for BLE_1Mbit mode. */
+#define FICR_OVERRIDEEN_BLE_1MBIT_Pos (3UL) /*!< Position of BLE_1MBIT field. */
+#define FICR_OVERRIDEEN_BLE_1MBIT_Msk (0x1UL << FICR_OVERRIDEEN_BLE_1MBIT_Pos) /*!< Bit mask of BLE_1MBIT field. */
+#define FICR_OVERRIDEEN_BLE_1MBIT_Override (0UL) /*!< Override the default values for BLE_1Mbit mode. */
+#define FICR_OVERRIDEEN_BLE_1MBIT_NotOverride (1UL) /*!< Do not override the default values for BLE_1Mbit mode. */
+
+/* Bit 0 : Override default values for NRF_1Mbit mode. */
+#define FICR_OVERRIDEEN_NRF_1MBIT_Pos (0UL) /*!< Position of NRF_1MBIT field. */
+#define FICR_OVERRIDEEN_NRF_1MBIT_Msk (0x1UL << FICR_OVERRIDEEN_NRF_1MBIT_Pos) /*!< Bit mask of NRF_1MBIT field. */
+#define FICR_OVERRIDEEN_NRF_1MBIT_Override (0UL) /*!< Override the default values for NRF_1Mbit mode. */
+#define FICR_OVERRIDEEN_NRF_1MBIT_NotOverride (1UL) /*!< Do not override the default values for NRF_1Mbit mode. */
+
+
+/* Peripheral: GPIO */
+/* Description: General purpose input and output. */
+
+/* Register: GPIO_OUT */
+/* Description: Write GPIO port. */
+
+/* Bit 31 : Pin 31. */
+#define GPIO_OUT_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_OUT_PIN31_Msk (0x1UL << GPIO_OUT_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_OUT_PIN31_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN31_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 30 : Pin 30. */
+#define GPIO_OUT_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_OUT_PIN30_Msk (0x1UL << GPIO_OUT_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_OUT_PIN30_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN30_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 29 : Pin 29. */
+#define GPIO_OUT_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_OUT_PIN29_Msk (0x1UL << GPIO_OUT_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_OUT_PIN29_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN29_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 28 : Pin 28. */
+#define GPIO_OUT_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_OUT_PIN28_Msk (0x1UL << GPIO_OUT_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_OUT_PIN28_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN28_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 27 : Pin 27. */
+#define GPIO_OUT_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_OUT_PIN27_Msk (0x1UL << GPIO_OUT_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_OUT_PIN27_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN27_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 26 : Pin 26. */
+#define GPIO_OUT_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_OUT_PIN26_Msk (0x1UL << GPIO_OUT_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_OUT_PIN26_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN26_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 25 : Pin 25. */
+#define GPIO_OUT_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_OUT_PIN25_Msk (0x1UL << GPIO_OUT_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_OUT_PIN25_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN25_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 24 : Pin 24. */
+#define GPIO_OUT_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_OUT_PIN24_Msk (0x1UL << GPIO_OUT_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_OUT_PIN24_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN24_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 23 : Pin 23. */
+#define GPIO_OUT_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_OUT_PIN23_Msk (0x1UL << GPIO_OUT_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_OUT_PIN23_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN23_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 22 : Pin 22. */
+#define GPIO_OUT_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_OUT_PIN22_Msk (0x1UL << GPIO_OUT_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_OUT_PIN22_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN22_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 21 : Pin 21. */
+#define GPIO_OUT_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_OUT_PIN21_Msk (0x1UL << GPIO_OUT_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_OUT_PIN21_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN21_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 20 : Pin 20. */
+#define GPIO_OUT_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_OUT_PIN20_Msk (0x1UL << GPIO_OUT_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_OUT_PIN20_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN20_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 19 : Pin 19. */
+#define GPIO_OUT_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_OUT_PIN19_Msk (0x1UL << GPIO_OUT_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_OUT_PIN19_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN19_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 18 : Pin 18. */
+#define GPIO_OUT_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_OUT_PIN18_Msk (0x1UL << GPIO_OUT_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_OUT_PIN18_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN18_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 17 : Pin 17. */
+#define GPIO_OUT_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_OUT_PIN17_Msk (0x1UL << GPIO_OUT_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_OUT_PIN17_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN17_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 16 : Pin 16. */
+#define GPIO_OUT_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_OUT_PIN16_Msk (0x1UL << GPIO_OUT_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_OUT_PIN16_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN16_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 15 : Pin 15. */
+#define GPIO_OUT_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_OUT_PIN15_Msk (0x1UL << GPIO_OUT_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_OUT_PIN15_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN15_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 14 : Pin 14. */
+#define GPIO_OUT_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_OUT_PIN14_Msk (0x1UL << GPIO_OUT_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_OUT_PIN14_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN14_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 13 : Pin 13. */
+#define GPIO_OUT_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_OUT_PIN13_Msk (0x1UL << GPIO_OUT_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_OUT_PIN13_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN13_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 12 : Pin 12. */
+#define GPIO_OUT_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_OUT_PIN12_Msk (0x1UL << GPIO_OUT_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_OUT_PIN12_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN12_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 11 : Pin 11. */
+#define GPIO_OUT_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_OUT_PIN11_Msk (0x1UL << GPIO_OUT_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_OUT_PIN11_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN11_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 10 : Pin 10. */
+#define GPIO_OUT_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_OUT_PIN10_Msk (0x1UL << GPIO_OUT_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_OUT_PIN10_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN10_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 9 : Pin 9. */
+#define GPIO_OUT_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_OUT_PIN9_Msk (0x1UL << GPIO_OUT_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_OUT_PIN9_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN9_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 8 : Pin 8. */
+#define GPIO_OUT_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_OUT_PIN8_Msk (0x1UL << GPIO_OUT_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_OUT_PIN8_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN8_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 7 : Pin 7. */
+#define GPIO_OUT_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_OUT_PIN7_Msk (0x1UL << GPIO_OUT_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_OUT_PIN7_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN7_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 6 : Pin 6. */
+#define GPIO_OUT_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_OUT_PIN6_Msk (0x1UL << GPIO_OUT_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_OUT_PIN6_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN6_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 5 : Pin 5. */
+#define GPIO_OUT_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_OUT_PIN5_Msk (0x1UL << GPIO_OUT_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_OUT_PIN5_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN5_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 4 : Pin 4. */
+#define GPIO_OUT_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_OUT_PIN4_Msk (0x1UL << GPIO_OUT_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_OUT_PIN4_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN4_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 3 : Pin 3. */
+#define GPIO_OUT_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_OUT_PIN3_Msk (0x1UL << GPIO_OUT_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_OUT_PIN3_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN3_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 2 : Pin 2. */
+#define GPIO_OUT_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_OUT_PIN2_Msk (0x1UL << GPIO_OUT_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_OUT_PIN2_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN2_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 1 : Pin 1. */
+#define GPIO_OUT_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_OUT_PIN1_Msk (0x1UL << GPIO_OUT_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_OUT_PIN1_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN1_High (1UL) /*!< Pin driver is high. */
+
+/* Bit 0 : Pin 0. */
+#define GPIO_OUT_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_OUT_PIN0_Msk (0x1UL << GPIO_OUT_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_OUT_PIN0_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUT_PIN0_High (1UL) /*!< Pin driver is high. */
+
+/* Register: GPIO_OUTSET */
+/* Description: Set individual bits in GPIO port. */
+
+/* Bit 31 : Pin 31. */
+#define GPIO_OUTSET_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_OUTSET_PIN31_Msk (0x1UL << GPIO_OUTSET_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_OUTSET_PIN31_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN31_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN31_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 30 : Pin 30. */
+#define GPIO_OUTSET_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_OUTSET_PIN30_Msk (0x1UL << GPIO_OUTSET_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_OUTSET_PIN30_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN30_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN30_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 29 : Pin 29. */
+#define GPIO_OUTSET_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_OUTSET_PIN29_Msk (0x1UL << GPIO_OUTSET_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_OUTSET_PIN29_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN29_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN29_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 28 : Pin 28. */
+#define GPIO_OUTSET_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_OUTSET_PIN28_Msk (0x1UL << GPIO_OUTSET_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_OUTSET_PIN28_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN28_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN28_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 27 : Pin 27. */
+#define GPIO_OUTSET_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_OUTSET_PIN27_Msk (0x1UL << GPIO_OUTSET_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_OUTSET_PIN27_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN27_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN27_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 26 : Pin 26. */
+#define GPIO_OUTSET_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_OUTSET_PIN26_Msk (0x1UL << GPIO_OUTSET_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_OUTSET_PIN26_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN26_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN26_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 25 : Pin 25. */
+#define GPIO_OUTSET_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_OUTSET_PIN25_Msk (0x1UL << GPIO_OUTSET_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_OUTSET_PIN25_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN25_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN25_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 24 : Pin 24. */
+#define GPIO_OUTSET_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_OUTSET_PIN24_Msk (0x1UL << GPIO_OUTSET_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_OUTSET_PIN24_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN24_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN24_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 23 : Pin 23. */
+#define GPIO_OUTSET_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_OUTSET_PIN23_Msk (0x1UL << GPIO_OUTSET_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_OUTSET_PIN23_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN23_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN23_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 22 : Pin 22. */
+#define GPIO_OUTSET_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_OUTSET_PIN22_Msk (0x1UL << GPIO_OUTSET_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_OUTSET_PIN22_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN22_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN22_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 21 : Pin 21. */
+#define GPIO_OUTSET_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_OUTSET_PIN21_Msk (0x1UL << GPIO_OUTSET_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_OUTSET_PIN21_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN21_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN21_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 20 : Pin 20. */
+#define GPIO_OUTSET_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_OUTSET_PIN20_Msk (0x1UL << GPIO_OUTSET_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_OUTSET_PIN20_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN20_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN20_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 19 : Pin 19. */
+#define GPIO_OUTSET_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_OUTSET_PIN19_Msk (0x1UL << GPIO_OUTSET_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_OUTSET_PIN19_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN19_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN19_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 18 : Pin 18. */
+#define GPIO_OUTSET_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_OUTSET_PIN18_Msk (0x1UL << GPIO_OUTSET_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_OUTSET_PIN18_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN18_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN18_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 17 : Pin 17. */
+#define GPIO_OUTSET_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_OUTSET_PIN17_Msk (0x1UL << GPIO_OUTSET_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_OUTSET_PIN17_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN17_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN17_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 16 : Pin 16. */
+#define GPIO_OUTSET_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_OUTSET_PIN16_Msk (0x1UL << GPIO_OUTSET_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_OUTSET_PIN16_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN16_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN16_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 15 : Pin 15. */
+#define GPIO_OUTSET_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_OUTSET_PIN15_Msk (0x1UL << GPIO_OUTSET_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_OUTSET_PIN15_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN15_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN15_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 14 : Pin 14. */
+#define GPIO_OUTSET_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_OUTSET_PIN14_Msk (0x1UL << GPIO_OUTSET_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_OUTSET_PIN14_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN14_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN14_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 13 : Pin 13. */
+#define GPIO_OUTSET_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_OUTSET_PIN13_Msk (0x1UL << GPIO_OUTSET_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_OUTSET_PIN13_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN13_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN13_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 12 : Pin 12. */
+#define GPIO_OUTSET_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_OUTSET_PIN12_Msk (0x1UL << GPIO_OUTSET_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_OUTSET_PIN12_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN12_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN12_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 11 : Pin 11. */
+#define GPIO_OUTSET_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_OUTSET_PIN11_Msk (0x1UL << GPIO_OUTSET_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_OUTSET_PIN11_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN11_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN11_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 10 : Pin 10. */
+#define GPIO_OUTSET_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_OUTSET_PIN10_Msk (0x1UL << GPIO_OUTSET_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_OUTSET_PIN10_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN10_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN10_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 9 : Pin 9. */
+#define GPIO_OUTSET_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_OUTSET_PIN9_Msk (0x1UL << GPIO_OUTSET_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_OUTSET_PIN9_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN9_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN9_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 8 : Pin 8. */
+#define GPIO_OUTSET_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_OUTSET_PIN8_Msk (0x1UL << GPIO_OUTSET_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_OUTSET_PIN8_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN8_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN8_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 7 : Pin 7. */
+#define GPIO_OUTSET_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_OUTSET_PIN7_Msk (0x1UL << GPIO_OUTSET_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_OUTSET_PIN7_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN7_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN7_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 6 : Pin 6. */
+#define GPIO_OUTSET_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_OUTSET_PIN6_Msk (0x1UL << GPIO_OUTSET_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_OUTSET_PIN6_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN6_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN6_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 5 : Pin 5. */
+#define GPIO_OUTSET_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_OUTSET_PIN5_Msk (0x1UL << GPIO_OUTSET_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_OUTSET_PIN5_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN5_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN5_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 4 : Pin 4. */
+#define GPIO_OUTSET_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_OUTSET_PIN4_Msk (0x1UL << GPIO_OUTSET_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_OUTSET_PIN4_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN4_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN4_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 3 : Pin 3. */
+#define GPIO_OUTSET_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_OUTSET_PIN3_Msk (0x1UL << GPIO_OUTSET_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_OUTSET_PIN3_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN3_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN3_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 2 : Pin 2. */
+#define GPIO_OUTSET_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_OUTSET_PIN2_Msk (0x1UL << GPIO_OUTSET_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_OUTSET_PIN2_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN2_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN2_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 1 : Pin 1. */
+#define GPIO_OUTSET_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_OUTSET_PIN1_Msk (0x1UL << GPIO_OUTSET_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_OUTSET_PIN1_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN1_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN1_Set (1UL) /*!< Set pin driver high. */
+
+/* Bit 0 : Pin 0. */
+#define GPIO_OUTSET_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_OUTSET_PIN0_Msk (0x1UL << GPIO_OUTSET_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_OUTSET_PIN0_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTSET_PIN0_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTSET_PIN0_Set (1UL) /*!< Set pin driver high. */
+
+/* Register: GPIO_OUTCLR */
+/* Description: Clear individual bits in GPIO port. */
+
+/* Bit 31 : Pin 31. */
+#define GPIO_OUTCLR_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_OUTCLR_PIN31_Msk (0x1UL << GPIO_OUTCLR_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_OUTCLR_PIN31_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN31_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN31_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 30 : Pin 30. */
+#define GPIO_OUTCLR_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_OUTCLR_PIN30_Msk (0x1UL << GPIO_OUTCLR_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_OUTCLR_PIN30_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN30_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN30_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 29 : Pin 29. */
+#define GPIO_OUTCLR_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_OUTCLR_PIN29_Msk (0x1UL << GPIO_OUTCLR_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_OUTCLR_PIN29_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN29_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN29_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 28 : Pin 28. */
+#define GPIO_OUTCLR_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_OUTCLR_PIN28_Msk (0x1UL << GPIO_OUTCLR_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_OUTCLR_PIN28_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN28_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN28_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 27 : Pin 27. */
+#define GPIO_OUTCLR_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_OUTCLR_PIN27_Msk (0x1UL << GPIO_OUTCLR_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_OUTCLR_PIN27_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN27_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN27_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 26 : Pin 26. */
+#define GPIO_OUTCLR_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_OUTCLR_PIN26_Msk (0x1UL << GPIO_OUTCLR_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_OUTCLR_PIN26_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN26_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN26_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 25 : Pin 25. */
+#define GPIO_OUTCLR_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_OUTCLR_PIN25_Msk (0x1UL << GPIO_OUTCLR_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_OUTCLR_PIN25_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN25_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN25_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 24 : Pin 24. */
+#define GPIO_OUTCLR_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_OUTCLR_PIN24_Msk (0x1UL << GPIO_OUTCLR_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_OUTCLR_PIN24_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN24_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN24_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 23 : Pin 23. */
+#define GPIO_OUTCLR_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_OUTCLR_PIN23_Msk (0x1UL << GPIO_OUTCLR_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_OUTCLR_PIN23_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN23_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN23_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 22 : Pin 22. */
+#define GPIO_OUTCLR_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_OUTCLR_PIN22_Msk (0x1UL << GPIO_OUTCLR_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_OUTCLR_PIN22_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN22_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN22_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 21 : Pin 21. */
+#define GPIO_OUTCLR_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_OUTCLR_PIN21_Msk (0x1UL << GPIO_OUTCLR_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_OUTCLR_PIN21_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN21_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN21_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 20 : Pin 20. */
+#define GPIO_OUTCLR_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_OUTCLR_PIN20_Msk (0x1UL << GPIO_OUTCLR_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_OUTCLR_PIN20_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN20_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN20_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 19 : Pin 19. */
+#define GPIO_OUTCLR_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_OUTCLR_PIN19_Msk (0x1UL << GPIO_OUTCLR_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_OUTCLR_PIN19_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN19_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN19_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 18 : Pin 18. */
+#define GPIO_OUTCLR_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_OUTCLR_PIN18_Msk (0x1UL << GPIO_OUTCLR_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_OUTCLR_PIN18_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN18_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN18_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 17 : Pin 17. */
+#define GPIO_OUTCLR_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_OUTCLR_PIN17_Msk (0x1UL << GPIO_OUTCLR_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_OUTCLR_PIN17_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN17_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN17_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 16 : Pin 16. */
+#define GPIO_OUTCLR_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_OUTCLR_PIN16_Msk (0x1UL << GPIO_OUTCLR_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_OUTCLR_PIN16_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN16_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN16_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 15 : Pin 15. */
+#define GPIO_OUTCLR_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_OUTCLR_PIN15_Msk (0x1UL << GPIO_OUTCLR_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_OUTCLR_PIN15_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN15_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN15_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 14 : Pin 14. */
+#define GPIO_OUTCLR_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_OUTCLR_PIN14_Msk (0x1UL << GPIO_OUTCLR_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_OUTCLR_PIN14_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN14_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN14_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 13 : Pin 13. */
+#define GPIO_OUTCLR_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_OUTCLR_PIN13_Msk (0x1UL << GPIO_OUTCLR_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_OUTCLR_PIN13_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN13_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN13_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 12 : Pin 12. */
+#define GPIO_OUTCLR_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_OUTCLR_PIN12_Msk (0x1UL << GPIO_OUTCLR_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_OUTCLR_PIN12_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN12_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN12_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 11 : Pin 11. */
+#define GPIO_OUTCLR_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_OUTCLR_PIN11_Msk (0x1UL << GPIO_OUTCLR_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_OUTCLR_PIN11_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN11_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN11_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 10 : Pin 10. */
+#define GPIO_OUTCLR_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_OUTCLR_PIN10_Msk (0x1UL << GPIO_OUTCLR_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_OUTCLR_PIN10_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN10_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN10_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 9 : Pin 9. */
+#define GPIO_OUTCLR_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_OUTCLR_PIN9_Msk (0x1UL << GPIO_OUTCLR_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_OUTCLR_PIN9_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN9_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN9_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 8 : Pin 8. */
+#define GPIO_OUTCLR_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_OUTCLR_PIN8_Msk (0x1UL << GPIO_OUTCLR_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_OUTCLR_PIN8_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN8_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN8_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 7 : Pin 7. */
+#define GPIO_OUTCLR_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_OUTCLR_PIN7_Msk (0x1UL << GPIO_OUTCLR_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_OUTCLR_PIN7_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN7_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN7_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 6 : Pin 6. */
+#define GPIO_OUTCLR_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_OUTCLR_PIN6_Msk (0x1UL << GPIO_OUTCLR_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_OUTCLR_PIN6_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN6_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN6_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 5 : Pin 5. */
+#define GPIO_OUTCLR_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_OUTCLR_PIN5_Msk (0x1UL << GPIO_OUTCLR_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_OUTCLR_PIN5_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN5_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN5_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 4 : Pin 4. */
+#define GPIO_OUTCLR_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_OUTCLR_PIN4_Msk (0x1UL << GPIO_OUTCLR_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_OUTCLR_PIN4_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN4_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN4_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 3 : Pin 3. */
+#define GPIO_OUTCLR_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_OUTCLR_PIN3_Msk (0x1UL << GPIO_OUTCLR_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_OUTCLR_PIN3_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN3_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN3_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 2 : Pin 2. */
+#define GPIO_OUTCLR_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_OUTCLR_PIN2_Msk (0x1UL << GPIO_OUTCLR_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_OUTCLR_PIN2_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN2_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN2_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 1 : Pin 1. */
+#define GPIO_OUTCLR_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_OUTCLR_PIN1_Msk (0x1UL << GPIO_OUTCLR_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_OUTCLR_PIN1_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN1_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN1_Clear (1UL) /*!< Set pin driver low. */
+
+/* Bit 0 : Pin 0. */
+#define GPIO_OUTCLR_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_OUTCLR_PIN0_Msk (0x1UL << GPIO_OUTCLR_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_OUTCLR_PIN0_Low (0UL) /*!< Pin driver is low. */
+#define GPIO_OUTCLR_PIN0_High (1UL) /*!< Pin driver is high. */
+#define GPIO_OUTCLR_PIN0_Clear (1UL) /*!< Set pin driver low. */
+
+/* Register: GPIO_IN */
+/* Description: Read GPIO port. */
+
+/* Bit 31 : Pin 31. */
+#define GPIO_IN_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_IN_PIN31_Msk (0x1UL << GPIO_IN_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_IN_PIN31_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN31_High (1UL) /*!< Pin input is high. */
+
+/* Bit 30 : Pin 30. */
+#define GPIO_IN_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_IN_PIN30_Msk (0x1UL << GPIO_IN_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_IN_PIN30_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN30_High (1UL) /*!< Pin input is high. */
+
+/* Bit 29 : Pin 29. */
+#define GPIO_IN_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_IN_PIN29_Msk (0x1UL << GPIO_IN_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_IN_PIN29_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN29_High (1UL) /*!< Pin input is high. */
+
+/* Bit 28 : Pin 28. */
+#define GPIO_IN_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_IN_PIN28_Msk (0x1UL << GPIO_IN_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_IN_PIN28_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN28_High (1UL) /*!< Pin input is high. */
+
+/* Bit 27 : Pin 27. */
+#define GPIO_IN_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_IN_PIN27_Msk (0x1UL << GPIO_IN_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_IN_PIN27_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN27_High (1UL) /*!< Pin input is high. */
+
+/* Bit 26 : Pin 26. */
+#define GPIO_IN_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_IN_PIN26_Msk (0x1UL << GPIO_IN_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_IN_PIN26_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN26_High (1UL) /*!< Pin input is high. */
+
+/* Bit 25 : Pin 25. */
+#define GPIO_IN_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_IN_PIN25_Msk (0x1UL << GPIO_IN_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_IN_PIN25_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN25_High (1UL) /*!< Pin input is high. */
+
+/* Bit 24 : Pin 24. */
+#define GPIO_IN_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_IN_PIN24_Msk (0x1UL << GPIO_IN_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_IN_PIN24_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN24_High (1UL) /*!< Pin input is high. */
+
+/* Bit 23 : Pin 23. */
+#define GPIO_IN_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_IN_PIN23_Msk (0x1UL << GPIO_IN_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_IN_PIN23_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN23_High (1UL) /*!< Pin input is high. */
+
+/* Bit 22 : Pin 22. */
+#define GPIO_IN_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_IN_PIN22_Msk (0x1UL << GPIO_IN_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_IN_PIN22_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN22_High (1UL) /*!< Pin input is high. */
+
+/* Bit 21 : Pin 21. */
+#define GPIO_IN_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_IN_PIN21_Msk (0x1UL << GPIO_IN_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_IN_PIN21_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN21_High (1UL) /*!< Pin input is high. */
+
+/* Bit 20 : Pin 20. */
+#define GPIO_IN_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_IN_PIN20_Msk (0x1UL << GPIO_IN_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_IN_PIN20_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN20_High (1UL) /*!< Pin input is high. */
+
+/* Bit 19 : Pin 19. */
+#define GPIO_IN_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_IN_PIN19_Msk (0x1UL << GPIO_IN_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_IN_PIN19_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN19_High (1UL) /*!< Pin input is high. */
+
+/* Bit 18 : Pin 18. */
+#define GPIO_IN_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_IN_PIN18_Msk (0x1UL << GPIO_IN_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_IN_PIN18_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN18_High (1UL) /*!< Pin input is high. */
+
+/* Bit 17 : Pin 17. */
+#define GPIO_IN_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_IN_PIN17_Msk (0x1UL << GPIO_IN_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_IN_PIN17_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN17_High (1UL) /*!< Pin input is high. */
+
+/* Bit 16 : Pin 16. */
+#define GPIO_IN_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_IN_PIN16_Msk (0x1UL << GPIO_IN_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_IN_PIN16_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN16_High (1UL) /*!< Pin input is high. */
+
+/* Bit 15 : Pin 15. */
+#define GPIO_IN_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_IN_PIN15_Msk (0x1UL << GPIO_IN_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_IN_PIN15_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN15_High (1UL) /*!< Pin input is high. */
+
+/* Bit 14 : Pin 14. */
+#define GPIO_IN_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_IN_PIN14_Msk (0x1UL << GPIO_IN_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_IN_PIN14_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN14_High (1UL) /*!< Pin input is high. */
+
+/* Bit 13 : Pin 13. */
+#define GPIO_IN_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_IN_PIN13_Msk (0x1UL << GPIO_IN_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_IN_PIN13_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN13_High (1UL) /*!< Pin input is high. */
+
+/* Bit 12 : Pin 12. */
+#define GPIO_IN_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_IN_PIN12_Msk (0x1UL << GPIO_IN_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_IN_PIN12_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN12_High (1UL) /*!< Pin input is high. */
+
+/* Bit 11 : Pin 11. */
+#define GPIO_IN_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_IN_PIN11_Msk (0x1UL << GPIO_IN_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_IN_PIN11_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN11_High (1UL) /*!< Pin input is high. */
+
+/* Bit 10 : Pin 10. */
+#define GPIO_IN_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_IN_PIN10_Msk (0x1UL << GPIO_IN_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_IN_PIN10_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN10_High (1UL) /*!< Pin input is high. */
+
+/* Bit 9 : Pin 9. */
+#define GPIO_IN_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_IN_PIN9_Msk (0x1UL << GPIO_IN_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_IN_PIN9_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN9_High (1UL) /*!< Pin input is high. */
+
+/* Bit 8 : Pin 8. */
+#define GPIO_IN_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_IN_PIN8_Msk (0x1UL << GPIO_IN_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_IN_PIN8_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN8_High (1UL) /*!< Pin input is high. */
+
+/* Bit 7 : Pin 7. */
+#define GPIO_IN_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_IN_PIN7_Msk (0x1UL << GPIO_IN_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_IN_PIN7_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN7_High (1UL) /*!< Pin input is high. */
+
+/* Bit 6 : Pin 6. */
+#define GPIO_IN_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_IN_PIN6_Msk (0x1UL << GPIO_IN_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_IN_PIN6_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN6_High (1UL) /*!< Pin input is high. */
+
+/* Bit 5 : Pin 5. */
+#define GPIO_IN_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_IN_PIN5_Msk (0x1UL << GPIO_IN_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_IN_PIN5_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN5_High (1UL) /*!< Pin input is high. */
+
+/* Bit 4 : Pin 4. */
+#define GPIO_IN_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_IN_PIN4_Msk (0x1UL << GPIO_IN_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_IN_PIN4_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN4_High (1UL) /*!< Pin input is high. */
+
+/* Bit 3 : Pin 3. */
+#define GPIO_IN_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_IN_PIN3_Msk (0x1UL << GPIO_IN_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_IN_PIN3_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN3_High (1UL) /*!< Pin input is high. */
+
+/* Bit 2 : Pin 2. */
+#define GPIO_IN_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_IN_PIN2_Msk (0x1UL << GPIO_IN_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_IN_PIN2_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN2_High (1UL) /*!< Pin input is high. */
+
+/* Bit 1 : Pin 1. */
+#define GPIO_IN_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_IN_PIN1_Msk (0x1UL << GPIO_IN_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_IN_PIN1_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN1_High (1UL) /*!< Pin input is high. */
+
+/* Bit 0 : Pin 0. */
+#define GPIO_IN_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_IN_PIN0_Msk (0x1UL << GPIO_IN_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_IN_PIN0_Low (0UL) /*!< Pin input is low. */
+#define GPIO_IN_PIN0_High (1UL) /*!< Pin input is high. */
+
+/* Register: GPIO_DIR */
+/* Description: Direction of GPIO pins. */
+
+/* Bit 31 : Pin 31. */
+#define GPIO_DIR_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_DIR_PIN31_Msk (0x1UL << GPIO_DIR_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_DIR_PIN31_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN31_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 30 : Pin 30. */
+#define GPIO_DIR_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_DIR_PIN30_Msk (0x1UL << GPIO_DIR_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_DIR_PIN30_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN30_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 29 : Pin 29. */
+#define GPIO_DIR_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_DIR_PIN29_Msk (0x1UL << GPIO_DIR_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_DIR_PIN29_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN29_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 28 : Pin 28. */
+#define GPIO_DIR_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_DIR_PIN28_Msk (0x1UL << GPIO_DIR_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_DIR_PIN28_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN28_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 27 : Pin 27. */
+#define GPIO_DIR_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_DIR_PIN27_Msk (0x1UL << GPIO_DIR_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_DIR_PIN27_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN27_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 26 : Pin 26. */
+#define GPIO_DIR_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_DIR_PIN26_Msk (0x1UL << GPIO_DIR_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_DIR_PIN26_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN26_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 25 : Pin 25. */
+#define GPIO_DIR_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_DIR_PIN25_Msk (0x1UL << GPIO_DIR_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_DIR_PIN25_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN25_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 24 : Pin 24. */
+#define GPIO_DIR_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_DIR_PIN24_Msk (0x1UL << GPIO_DIR_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_DIR_PIN24_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN24_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 23 : Pin 23. */
+#define GPIO_DIR_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_DIR_PIN23_Msk (0x1UL << GPIO_DIR_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_DIR_PIN23_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN23_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 22 : Pin 22. */
+#define GPIO_DIR_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_DIR_PIN22_Msk (0x1UL << GPIO_DIR_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_DIR_PIN22_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN22_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 21 : Pin 21. */
+#define GPIO_DIR_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_DIR_PIN21_Msk (0x1UL << GPIO_DIR_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_DIR_PIN21_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN21_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 20 : Pin 20. */
+#define GPIO_DIR_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_DIR_PIN20_Msk (0x1UL << GPIO_DIR_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_DIR_PIN20_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN20_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 19 : Pin 19. */
+#define GPIO_DIR_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_DIR_PIN19_Msk (0x1UL << GPIO_DIR_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_DIR_PIN19_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN19_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 18 : Pin 18. */
+#define GPIO_DIR_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_DIR_PIN18_Msk (0x1UL << GPIO_DIR_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_DIR_PIN18_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN18_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 17 : Pin 17. */
+#define GPIO_DIR_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_DIR_PIN17_Msk (0x1UL << GPIO_DIR_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_DIR_PIN17_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN17_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 16 : Pin 16. */
+#define GPIO_DIR_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_DIR_PIN16_Msk (0x1UL << GPIO_DIR_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_DIR_PIN16_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN16_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 15 : Pin 15. */
+#define GPIO_DIR_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_DIR_PIN15_Msk (0x1UL << GPIO_DIR_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_DIR_PIN15_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN15_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 14 : Pin 14. */
+#define GPIO_DIR_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_DIR_PIN14_Msk (0x1UL << GPIO_DIR_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_DIR_PIN14_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN14_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 13 : Pin 13. */
+#define GPIO_DIR_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_DIR_PIN13_Msk (0x1UL << GPIO_DIR_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_DIR_PIN13_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN13_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 12 : Pin 12. */
+#define GPIO_DIR_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_DIR_PIN12_Msk (0x1UL << GPIO_DIR_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_DIR_PIN12_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN12_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 11 : Pin 11. */
+#define GPIO_DIR_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_DIR_PIN11_Msk (0x1UL << GPIO_DIR_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_DIR_PIN11_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN11_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 10 : Pin 10. */
+#define GPIO_DIR_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_DIR_PIN10_Msk (0x1UL << GPIO_DIR_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_DIR_PIN10_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN10_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 9 : Pin 9. */
+#define GPIO_DIR_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_DIR_PIN9_Msk (0x1UL << GPIO_DIR_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_DIR_PIN9_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN9_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 8 : Pin 8. */
+#define GPIO_DIR_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_DIR_PIN8_Msk (0x1UL << GPIO_DIR_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_DIR_PIN8_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN8_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 7 : Pin 7. */
+#define GPIO_DIR_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_DIR_PIN7_Msk (0x1UL << GPIO_DIR_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_DIR_PIN7_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN7_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 6 : Pin 6. */
+#define GPIO_DIR_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_DIR_PIN6_Msk (0x1UL << GPIO_DIR_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_DIR_PIN6_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN6_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 5 : Pin 5. */
+#define GPIO_DIR_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_DIR_PIN5_Msk (0x1UL << GPIO_DIR_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_DIR_PIN5_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN5_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 4 : Pin 4. */
+#define GPIO_DIR_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_DIR_PIN4_Msk (0x1UL << GPIO_DIR_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_DIR_PIN4_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN4_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 3 : Pin 3. */
+#define GPIO_DIR_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_DIR_PIN3_Msk (0x1UL << GPIO_DIR_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_DIR_PIN3_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN3_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 2 : Pin 2. */
+#define GPIO_DIR_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_DIR_PIN2_Msk (0x1UL << GPIO_DIR_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_DIR_PIN2_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN2_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 1 : Pin 1. */
+#define GPIO_DIR_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_DIR_PIN1_Msk (0x1UL << GPIO_DIR_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_DIR_PIN1_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN1_Output (1UL) /*!< Pin set as output. */
+
+/* Bit 0 : Pin 0. */
+#define GPIO_DIR_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_DIR_PIN0_Msk (0x1UL << GPIO_DIR_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_DIR_PIN0_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIR_PIN0_Output (1UL) /*!< Pin set as output. */
+
+/* Register: GPIO_DIRSET */
+/* Description: DIR set register. */
+
+/* Bit 31 : Set as output pin 31. */
+#define GPIO_DIRSET_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_DIRSET_PIN31_Msk (0x1UL << GPIO_DIRSET_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_DIRSET_PIN31_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN31_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN31_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 30 : Set as output pin 30. */
+#define GPIO_DIRSET_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_DIRSET_PIN30_Msk (0x1UL << GPIO_DIRSET_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_DIRSET_PIN30_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN30_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN30_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 29 : Set as output pin 29. */
+#define GPIO_DIRSET_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_DIRSET_PIN29_Msk (0x1UL << GPIO_DIRSET_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_DIRSET_PIN29_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN29_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN29_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 28 : Set as output pin 28. */
+#define GPIO_DIRSET_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_DIRSET_PIN28_Msk (0x1UL << GPIO_DIRSET_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_DIRSET_PIN28_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN28_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN28_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 27 : Set as output pin 27. */
+#define GPIO_DIRSET_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_DIRSET_PIN27_Msk (0x1UL << GPIO_DIRSET_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_DIRSET_PIN27_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN27_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN27_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 26 : Set as output pin 26. */
+#define GPIO_DIRSET_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_DIRSET_PIN26_Msk (0x1UL << GPIO_DIRSET_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_DIRSET_PIN26_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN26_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN26_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 25 : Set as output pin 25. */
+#define GPIO_DIRSET_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_DIRSET_PIN25_Msk (0x1UL << GPIO_DIRSET_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_DIRSET_PIN25_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN25_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN25_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 24 : Set as output pin 24. */
+#define GPIO_DIRSET_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_DIRSET_PIN24_Msk (0x1UL << GPIO_DIRSET_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_DIRSET_PIN24_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN24_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN24_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 23 : Set as output pin 23. */
+#define GPIO_DIRSET_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_DIRSET_PIN23_Msk (0x1UL << GPIO_DIRSET_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_DIRSET_PIN23_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN23_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN23_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 22 : Set as output pin 22. */
+#define GPIO_DIRSET_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_DIRSET_PIN22_Msk (0x1UL << GPIO_DIRSET_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_DIRSET_PIN22_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN22_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN22_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 21 : Set as output pin 21. */
+#define GPIO_DIRSET_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_DIRSET_PIN21_Msk (0x1UL << GPIO_DIRSET_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_DIRSET_PIN21_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN21_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN21_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 20 : Set as output pin 20. */
+#define GPIO_DIRSET_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_DIRSET_PIN20_Msk (0x1UL << GPIO_DIRSET_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_DIRSET_PIN20_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN20_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN20_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 19 : Set as output pin 19. */
+#define GPIO_DIRSET_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_DIRSET_PIN19_Msk (0x1UL << GPIO_DIRSET_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_DIRSET_PIN19_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN19_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN19_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 18 : Set as output pin 18. */
+#define GPIO_DIRSET_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_DIRSET_PIN18_Msk (0x1UL << GPIO_DIRSET_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_DIRSET_PIN18_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN18_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN18_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 17 : Set as output pin 17. */
+#define GPIO_DIRSET_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_DIRSET_PIN17_Msk (0x1UL << GPIO_DIRSET_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_DIRSET_PIN17_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN17_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN17_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 16 : Set as output pin 16. */
+#define GPIO_DIRSET_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_DIRSET_PIN16_Msk (0x1UL << GPIO_DIRSET_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_DIRSET_PIN16_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN16_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN16_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 15 : Set as output pin 15. */
+#define GPIO_DIRSET_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_DIRSET_PIN15_Msk (0x1UL << GPIO_DIRSET_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_DIRSET_PIN15_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN15_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN15_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 14 : Set as output pin 14. */
+#define GPIO_DIRSET_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_DIRSET_PIN14_Msk (0x1UL << GPIO_DIRSET_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_DIRSET_PIN14_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN14_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN14_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 13 : Set as output pin 13. */
+#define GPIO_DIRSET_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_DIRSET_PIN13_Msk (0x1UL << GPIO_DIRSET_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_DIRSET_PIN13_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN13_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN13_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 12 : Set as output pin 12. */
+#define GPIO_DIRSET_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_DIRSET_PIN12_Msk (0x1UL << GPIO_DIRSET_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_DIRSET_PIN12_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN12_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN12_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 11 : Set as output pin 11. */
+#define GPIO_DIRSET_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_DIRSET_PIN11_Msk (0x1UL << GPIO_DIRSET_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_DIRSET_PIN11_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN11_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN11_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 10 : Set as output pin 10. */
+#define GPIO_DIRSET_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_DIRSET_PIN10_Msk (0x1UL << GPIO_DIRSET_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_DIRSET_PIN10_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN10_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN10_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 9 : Set as output pin 9. */
+#define GPIO_DIRSET_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_DIRSET_PIN9_Msk (0x1UL << GPIO_DIRSET_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_DIRSET_PIN9_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN9_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN9_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 8 : Set as output pin 8. */
+#define GPIO_DIRSET_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_DIRSET_PIN8_Msk (0x1UL << GPIO_DIRSET_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_DIRSET_PIN8_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN8_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN8_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 7 : Set as output pin 7. */
+#define GPIO_DIRSET_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_DIRSET_PIN7_Msk (0x1UL << GPIO_DIRSET_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_DIRSET_PIN7_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN7_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN7_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 6 : Set as output pin 6. */
+#define GPIO_DIRSET_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_DIRSET_PIN6_Msk (0x1UL << GPIO_DIRSET_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_DIRSET_PIN6_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN6_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN6_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 5 : Set as output pin 5. */
+#define GPIO_DIRSET_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_DIRSET_PIN5_Msk (0x1UL << GPIO_DIRSET_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_DIRSET_PIN5_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN5_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN5_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 4 : Set as output pin 4. */
+#define GPIO_DIRSET_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_DIRSET_PIN4_Msk (0x1UL << GPIO_DIRSET_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_DIRSET_PIN4_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN4_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN4_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 3 : Set as output pin 3. */
+#define GPIO_DIRSET_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_DIRSET_PIN3_Msk (0x1UL << GPIO_DIRSET_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_DIRSET_PIN3_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN3_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN3_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 2 : Set as output pin 2. */
+#define GPIO_DIRSET_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_DIRSET_PIN2_Msk (0x1UL << GPIO_DIRSET_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_DIRSET_PIN2_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN2_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN2_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 1 : Set as output pin 1. */
+#define GPIO_DIRSET_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_DIRSET_PIN1_Msk (0x1UL << GPIO_DIRSET_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_DIRSET_PIN1_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN1_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN1_Set (1UL) /*!< Set pin as output. */
+
+/* Bit 0 : Set as output pin 0. */
+#define GPIO_DIRSET_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_DIRSET_PIN0_Msk (0x1UL << GPIO_DIRSET_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_DIRSET_PIN0_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRSET_PIN0_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRSET_PIN0_Set (1UL) /*!< Set pin as output. */
+
+/* Register: GPIO_DIRCLR */
+/* Description: DIR clear register. */
+
+/* Bit 31 : Set as input pin 31. */
+#define GPIO_DIRCLR_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_DIRCLR_PIN31_Msk (0x1UL << GPIO_DIRCLR_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_DIRCLR_PIN31_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN31_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN31_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 30 : Set as input pin 30. */
+#define GPIO_DIRCLR_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_DIRCLR_PIN30_Msk (0x1UL << GPIO_DIRCLR_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_DIRCLR_PIN30_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN30_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN30_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 29 : Set as input pin 29. */
+#define GPIO_DIRCLR_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_DIRCLR_PIN29_Msk (0x1UL << GPIO_DIRCLR_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_DIRCLR_PIN29_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN29_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN29_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 28 : Set as input pin 28. */
+#define GPIO_DIRCLR_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_DIRCLR_PIN28_Msk (0x1UL << GPIO_DIRCLR_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_DIRCLR_PIN28_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN28_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN28_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 27 : Set as input pin 27. */
+#define GPIO_DIRCLR_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_DIRCLR_PIN27_Msk (0x1UL << GPIO_DIRCLR_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_DIRCLR_PIN27_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN27_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN27_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 26 : Set as input pin 26. */
+#define GPIO_DIRCLR_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_DIRCLR_PIN26_Msk (0x1UL << GPIO_DIRCLR_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_DIRCLR_PIN26_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN26_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN26_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 25 : Set as input pin 25. */
+#define GPIO_DIRCLR_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_DIRCLR_PIN25_Msk (0x1UL << GPIO_DIRCLR_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_DIRCLR_PIN25_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN25_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN25_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 24 : Set as input pin 24. */
+#define GPIO_DIRCLR_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_DIRCLR_PIN24_Msk (0x1UL << GPIO_DIRCLR_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_DIRCLR_PIN24_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN24_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN24_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 23 : Set as input pin 23. */
+#define GPIO_DIRCLR_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_DIRCLR_PIN23_Msk (0x1UL << GPIO_DIRCLR_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_DIRCLR_PIN23_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN23_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN23_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 22 : Set as input pin 22. */
+#define GPIO_DIRCLR_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_DIRCLR_PIN22_Msk (0x1UL << GPIO_DIRCLR_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_DIRCLR_PIN22_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN22_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN22_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 21 : Set as input pin 21. */
+#define GPIO_DIRCLR_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_DIRCLR_PIN21_Msk (0x1UL << GPIO_DIRCLR_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_DIRCLR_PIN21_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN21_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN21_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 20 : Set as input pin 20. */
+#define GPIO_DIRCLR_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_DIRCLR_PIN20_Msk (0x1UL << GPIO_DIRCLR_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_DIRCLR_PIN20_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN20_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN20_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 19 : Set as input pin 19. */
+#define GPIO_DIRCLR_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_DIRCLR_PIN19_Msk (0x1UL << GPIO_DIRCLR_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_DIRCLR_PIN19_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN19_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN19_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 18 : Set as input pin 18. */
+#define GPIO_DIRCLR_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_DIRCLR_PIN18_Msk (0x1UL << GPIO_DIRCLR_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_DIRCLR_PIN18_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN18_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN18_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 17 : Set as input pin 17. */
+#define GPIO_DIRCLR_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_DIRCLR_PIN17_Msk (0x1UL << GPIO_DIRCLR_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_DIRCLR_PIN17_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN17_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN17_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 16 : Set as input pin 16. */
+#define GPIO_DIRCLR_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_DIRCLR_PIN16_Msk (0x1UL << GPIO_DIRCLR_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_DIRCLR_PIN16_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN16_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN16_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 15 : Set as input pin 15. */
+#define GPIO_DIRCLR_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_DIRCLR_PIN15_Msk (0x1UL << GPIO_DIRCLR_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_DIRCLR_PIN15_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN15_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN15_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 14 : Set as input pin 14. */
+#define GPIO_DIRCLR_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_DIRCLR_PIN14_Msk (0x1UL << GPIO_DIRCLR_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_DIRCLR_PIN14_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN14_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN14_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 13 : Set as input pin 13. */
+#define GPIO_DIRCLR_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_DIRCLR_PIN13_Msk (0x1UL << GPIO_DIRCLR_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_DIRCLR_PIN13_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN13_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN13_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 12 : Set as input pin 12. */
+#define GPIO_DIRCLR_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_DIRCLR_PIN12_Msk (0x1UL << GPIO_DIRCLR_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_DIRCLR_PIN12_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN12_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN12_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 11 : Set as input pin 11. */
+#define GPIO_DIRCLR_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_DIRCLR_PIN11_Msk (0x1UL << GPIO_DIRCLR_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_DIRCLR_PIN11_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN11_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN11_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 10 : Set as input pin 10. */
+#define GPIO_DIRCLR_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_DIRCLR_PIN10_Msk (0x1UL << GPIO_DIRCLR_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_DIRCLR_PIN10_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN10_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN10_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 9 : Set as input pin 9. */
+#define GPIO_DIRCLR_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_DIRCLR_PIN9_Msk (0x1UL << GPIO_DIRCLR_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_DIRCLR_PIN9_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN9_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN9_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 8 : Set as input pin 8. */
+#define GPIO_DIRCLR_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_DIRCLR_PIN8_Msk (0x1UL << GPIO_DIRCLR_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_DIRCLR_PIN8_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN8_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN8_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 7 : Set as input pin 7. */
+#define GPIO_DIRCLR_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_DIRCLR_PIN7_Msk (0x1UL << GPIO_DIRCLR_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_DIRCLR_PIN7_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN7_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN7_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 6 : Set as input pin 6. */
+#define GPIO_DIRCLR_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_DIRCLR_PIN6_Msk (0x1UL << GPIO_DIRCLR_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_DIRCLR_PIN6_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN6_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN6_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 5 : Set as input pin 5. */
+#define GPIO_DIRCLR_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_DIRCLR_PIN5_Msk (0x1UL << GPIO_DIRCLR_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_DIRCLR_PIN5_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN5_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN5_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 4 : Set as input pin 4. */
+#define GPIO_DIRCLR_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_DIRCLR_PIN4_Msk (0x1UL << GPIO_DIRCLR_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_DIRCLR_PIN4_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN4_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN4_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 3 : Set as input pin 3. */
+#define GPIO_DIRCLR_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_DIRCLR_PIN3_Msk (0x1UL << GPIO_DIRCLR_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_DIRCLR_PIN3_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN3_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN3_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 2 : Set as input pin 2. */
+#define GPIO_DIRCLR_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_DIRCLR_PIN2_Msk (0x1UL << GPIO_DIRCLR_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_DIRCLR_PIN2_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN2_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN2_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 1 : Set as input pin 1. */
+#define GPIO_DIRCLR_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_DIRCLR_PIN1_Msk (0x1UL << GPIO_DIRCLR_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_DIRCLR_PIN1_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN1_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN1_Clear (1UL) /*!< Set pin as input. */
+
+/* Bit 0 : Set as input pin 0. */
+#define GPIO_DIRCLR_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_DIRCLR_PIN0_Msk (0x1UL << GPIO_DIRCLR_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_DIRCLR_PIN0_Input (0UL) /*!< Pin set as input. */
+#define GPIO_DIRCLR_PIN0_Output (1UL) /*!< Pin set as output. */
+#define GPIO_DIRCLR_PIN0_Clear (1UL) /*!< Set pin as input. */
+
+/* Register: GPIO_PIN_CNF */
+/* Description: Configuration of GPIO pins. */
+
+/* Bits 17..16 : Pin sensing mechanism. */
+#define GPIO_PIN_CNF_SENSE_Pos (16UL) /*!< Position of SENSE field. */
+#define GPIO_PIN_CNF_SENSE_Msk (0x3UL << GPIO_PIN_CNF_SENSE_Pos) /*!< Bit mask of SENSE field. */
+#define GPIO_PIN_CNF_SENSE_Disabled (0x00UL) /*!< Disabled. */
+#define GPIO_PIN_CNF_SENSE_High (0x02UL) /*!< Wakeup on high level. */
+#define GPIO_PIN_CNF_SENSE_Low (0x03UL) /*!< Wakeup on low level. */
+
+/* Bits 10..8 : Drive configuration. */
+#define GPIO_PIN_CNF_DRIVE_Pos (8UL) /*!< Position of DRIVE field. */
+#define GPIO_PIN_CNF_DRIVE_Msk (0x7UL << GPIO_PIN_CNF_DRIVE_Pos) /*!< Bit mask of DRIVE field. */
+#define GPIO_PIN_CNF_DRIVE_S0S1 (0x00UL) /*!< Standard '0', Standard '1'. */
+#define GPIO_PIN_CNF_DRIVE_H0S1 (0x01UL) /*!< High '0', Standard '1'. */
+#define GPIO_PIN_CNF_DRIVE_S0H1 (0x02UL) /*!< Standard '0', High '1'. */
+#define GPIO_PIN_CNF_DRIVE_H0H1 (0x03UL) /*!< High '0', High '1'. */
+#define GPIO_PIN_CNF_DRIVE_D0S1 (0x04UL) /*!< Disconnected '0', Standard '1'. */
+#define GPIO_PIN_CNF_DRIVE_D0H1 (0x05UL) /*!< Disconnected '0', High '1'. */
+#define GPIO_PIN_CNF_DRIVE_S0D1 (0x06UL) /*!< Standard '0', Disconnected '1'. */
+#define GPIO_PIN_CNF_DRIVE_H0D1 (0x07UL) /*!< High '0', Disconnected '1'. */
+
+/* Bits 3..2 : Pull-up or -down configuration. */
+#define GPIO_PIN_CNF_PULL_Pos (2UL) /*!< Position of PULL field. */
+#define GPIO_PIN_CNF_PULL_Msk (0x3UL << GPIO_PIN_CNF_PULL_Pos) /*!< Bit mask of PULL field. */
+#define GPIO_PIN_CNF_PULL_Disabled (0x00UL) /*!< No pull. */
+#define GPIO_PIN_CNF_PULL_Pulldown (0x01UL) /*!< Pulldown on pin. */
+#define GPIO_PIN_CNF_PULL_Pullup (0x03UL) /*!< Pullup on pin. */
+
+/* Bit 1 : Connect or disconnect input path. */
+#define GPIO_PIN_CNF_INPUT_Pos (1UL) /*!< Position of INPUT field. */
+#define GPIO_PIN_CNF_INPUT_Msk (0x1UL << GPIO_PIN_CNF_INPUT_Pos) /*!< Bit mask of INPUT field. */
+#define GPIO_PIN_CNF_INPUT_Connect (0UL) /*!< Connect input pin. */
+#define GPIO_PIN_CNF_INPUT_Disconnect (1UL) /*!< Disconnect input pin. */
+
+/* Bit 0 : Pin direction. */
+#define GPIO_PIN_CNF_DIR_Pos (0UL) /*!< Position of DIR field. */
+#define GPIO_PIN_CNF_DIR_Msk (0x1UL << GPIO_PIN_CNF_DIR_Pos) /*!< Bit mask of DIR field. */
+#define GPIO_PIN_CNF_DIR_Input (0UL) /*!< Configure pin as an input pin. */
+#define GPIO_PIN_CNF_DIR_Output (1UL) /*!< Configure pin as an output pin. */
+
+
+/* Peripheral: GPIOTE */
+/* Description: GPIO tasks and events. */
+
+/* Register: GPIOTE_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 31 : Enable interrupt on PORT event. */
+#define GPIOTE_INTENSET_PORT_Pos (31UL) /*!< Position of PORT field. */
+#define GPIOTE_INTENSET_PORT_Msk (0x1UL << GPIOTE_INTENSET_PORT_Pos) /*!< Bit mask of PORT field. */
+#define GPIOTE_INTENSET_PORT_Disabled (0UL) /*!< Interrupt disabled. */
+#define GPIOTE_INTENSET_PORT_Enabled (1UL) /*!< Interrupt enabled. */
+#define GPIOTE_INTENSET_PORT_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 3 : Enable interrupt on IN[3] event. */
+#define GPIOTE_INTENSET_IN3_Pos (3UL) /*!< Position of IN3 field. */
+#define GPIOTE_INTENSET_IN3_Msk (0x1UL << GPIOTE_INTENSET_IN3_Pos) /*!< Bit mask of IN3 field. */
+#define GPIOTE_INTENSET_IN3_Disabled (0UL) /*!< Interrupt disabled. */
+#define GPIOTE_INTENSET_IN3_Enabled (1UL) /*!< Interrupt enabled. */
+#define GPIOTE_INTENSET_IN3_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 2 : Enable interrupt on IN[2] event. */
+#define GPIOTE_INTENSET_IN2_Pos (2UL) /*!< Position of IN2 field. */
+#define GPIOTE_INTENSET_IN2_Msk (0x1UL << GPIOTE_INTENSET_IN2_Pos) /*!< Bit mask of IN2 field. */
+#define GPIOTE_INTENSET_IN2_Disabled (0UL) /*!< Interrupt disabled. */
+#define GPIOTE_INTENSET_IN2_Enabled (1UL) /*!< Interrupt enabled. */
+#define GPIOTE_INTENSET_IN2_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 1 : Enable interrupt on IN[1] event. */
+#define GPIOTE_INTENSET_IN1_Pos (1UL) /*!< Position of IN1 field. */
+#define GPIOTE_INTENSET_IN1_Msk (0x1UL << GPIOTE_INTENSET_IN1_Pos) /*!< Bit mask of IN1 field. */
+#define GPIOTE_INTENSET_IN1_Disabled (0UL) /*!< Interrupt disabled. */
+#define GPIOTE_INTENSET_IN1_Enabled (1UL) /*!< Interrupt enabled. */
+#define GPIOTE_INTENSET_IN1_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 0 : Enable interrupt on IN[0] event. */
+#define GPIOTE_INTENSET_IN0_Pos (0UL) /*!< Position of IN0 field. */
+#define GPIOTE_INTENSET_IN0_Msk (0x1UL << GPIOTE_INTENSET_IN0_Pos) /*!< Bit mask of IN0 field. */
+#define GPIOTE_INTENSET_IN0_Disabled (0UL) /*!< Interrupt disabled. */
+#define GPIOTE_INTENSET_IN0_Enabled (1UL) /*!< Interrupt enabled. */
+#define GPIOTE_INTENSET_IN0_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: GPIOTE_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 31 : Disable interrupt on PORT event. */
+#define GPIOTE_INTENCLR_PORT_Pos (31UL) /*!< Position of PORT field. */
+#define GPIOTE_INTENCLR_PORT_Msk (0x1UL << GPIOTE_INTENCLR_PORT_Pos) /*!< Bit mask of PORT field. */
+#define GPIOTE_INTENCLR_PORT_Disabled (0UL) /*!< Interrupt disabled. */
+#define GPIOTE_INTENCLR_PORT_Enabled (1UL) /*!< Interrupt enabled. */
+#define GPIOTE_INTENCLR_PORT_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 3 : Disable interrupt on IN[3] event. */
+#define GPIOTE_INTENCLR_IN3_Pos (3UL) /*!< Position of IN3 field. */
+#define GPIOTE_INTENCLR_IN3_Msk (0x1UL << GPIOTE_INTENCLR_IN3_Pos) /*!< Bit mask of IN3 field. */
+#define GPIOTE_INTENCLR_IN3_Disabled (0UL) /*!< Interrupt disabled. */
+#define GPIOTE_INTENCLR_IN3_Enabled (1UL) /*!< Interrupt enabled. */
+#define GPIOTE_INTENCLR_IN3_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 2 : Disable interrupt on IN[2] event. */
+#define GPIOTE_INTENCLR_IN2_Pos (2UL) /*!< Position of IN2 field. */
+#define GPIOTE_INTENCLR_IN2_Msk (0x1UL << GPIOTE_INTENCLR_IN2_Pos) /*!< Bit mask of IN2 field. */
+#define GPIOTE_INTENCLR_IN2_Disabled (0UL) /*!< Interrupt disabled. */
+#define GPIOTE_INTENCLR_IN2_Enabled (1UL) /*!< Interrupt enabled. */
+#define GPIOTE_INTENCLR_IN2_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 1 : Disable interrupt on IN[1] event. */
+#define GPIOTE_INTENCLR_IN1_Pos (1UL) /*!< Position of IN1 field. */
+#define GPIOTE_INTENCLR_IN1_Msk (0x1UL << GPIOTE_INTENCLR_IN1_Pos) /*!< Bit mask of IN1 field. */
+#define GPIOTE_INTENCLR_IN1_Disabled (0UL) /*!< Interrupt disabled. */
+#define GPIOTE_INTENCLR_IN1_Enabled (1UL) /*!< Interrupt enabled. */
+#define GPIOTE_INTENCLR_IN1_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 0 : Disable interrupt on IN[0] event. */
+#define GPIOTE_INTENCLR_IN0_Pos (0UL) /*!< Position of IN0 field. */
+#define GPIOTE_INTENCLR_IN0_Msk (0x1UL << GPIOTE_INTENCLR_IN0_Pos) /*!< Bit mask of IN0 field. */
+#define GPIOTE_INTENCLR_IN0_Disabled (0UL) /*!< Interrupt disabled. */
+#define GPIOTE_INTENCLR_IN0_Enabled (1UL) /*!< Interrupt enabled. */
+#define GPIOTE_INTENCLR_IN0_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: GPIOTE_CONFIG */
+/* Description: Channel configuration registers. */
+
+/* Bit 20 : Initial value of the output when the GPIOTE channel is configured as a Task. */
+#define GPIOTE_CONFIG_OUTINIT_Pos (20UL) /*!< Position of OUTINIT field. */
+#define GPIOTE_CONFIG_OUTINIT_Msk (0x1UL << GPIOTE_CONFIG_OUTINIT_Pos) /*!< Bit mask of OUTINIT field. */
+#define GPIOTE_CONFIG_OUTINIT_Low (0UL) /*!< Initial low output when in task mode. */
+#define GPIOTE_CONFIG_OUTINIT_High (1UL) /*!< Initial high output when in task mode. */
+
+/* Bits 17..16 : Effects on output when in Task mode, or events on input that generates an event. */
+#define GPIOTE_CONFIG_POLARITY_Pos (16UL) /*!< Position of POLARITY field. */
+#define GPIOTE_CONFIG_POLARITY_Msk (0x3UL << GPIOTE_CONFIG_POLARITY_Pos) /*!< Bit mask of POLARITY field. */
+#define GPIOTE_CONFIG_POLARITY_None (0x00UL) /*!< No task or event. */
+#define GPIOTE_CONFIG_POLARITY_LoToHi (0x01UL) /*!< Low to high. */
+#define GPIOTE_CONFIG_POLARITY_HiToLo (0x02UL) /*!< High to low. */
+#define GPIOTE_CONFIG_POLARITY_Toggle (0x03UL) /*!< Toggle. */
+
+/* Bits 12..8 : Pin select. */
+#define GPIOTE_CONFIG_PSEL_Pos (8UL) /*!< Position of PSEL field. */
+#define GPIOTE_CONFIG_PSEL_Msk (0x1FUL << GPIOTE_CONFIG_PSEL_Pos) /*!< Bit mask of PSEL field. */
+
+/* Bits 1..0 : Mode */
+#define GPIOTE_CONFIG_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define GPIOTE_CONFIG_MODE_Msk (0x3UL << GPIOTE_CONFIG_MODE_Pos) /*!< Bit mask of MODE field. */
+#define GPIOTE_CONFIG_MODE_Disabled (0x00UL) /*!< Disabled. */
+#define GPIOTE_CONFIG_MODE_Event (0x01UL) /*!< Channel configure in event mode. */
+#define GPIOTE_CONFIG_MODE_Task (0x03UL) /*!< Channel configure in task mode. */
+
+/* Register: GPIOTE_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define GPIOTE_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define GPIOTE_POWER_POWER_Msk (0x1UL << GPIOTE_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define GPIOTE_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define GPIOTE_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: LPCOMP */
+/* Description: Low power comparator. */
+
+/* Register: LPCOMP_SHORTS */
+/* Description: Shortcuts for the LPCOMP. */
+
+/* Bit 4 : Shortcut between CROSS event and STOP task. */
+#define LPCOMP_SHORTS_CROSS_STOP_Pos (4UL) /*!< Position of CROSS_STOP field. */
+#define LPCOMP_SHORTS_CROSS_STOP_Msk (0x1UL << LPCOMP_SHORTS_CROSS_STOP_Pos) /*!< Bit mask of CROSS_STOP field. */
+#define LPCOMP_SHORTS_CROSS_STOP_Disabled (0UL) /*!< Shortcut disabled. */
+#define LPCOMP_SHORTS_CROSS_STOP_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 3 : Shortcut between UP event and STOP task. */
+#define LPCOMP_SHORTS_UP_STOP_Pos (3UL) /*!< Position of UP_STOP field. */
+#define LPCOMP_SHORTS_UP_STOP_Msk (0x1UL << LPCOMP_SHORTS_UP_STOP_Pos) /*!< Bit mask of UP_STOP field. */
+#define LPCOMP_SHORTS_UP_STOP_Disabled (0UL) /*!< Shortcut disabled. */
+#define LPCOMP_SHORTS_UP_STOP_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 2 : Shortcut between DOWN event and STOP task. */
+#define LPCOMP_SHORTS_DOWN_STOP_Pos (2UL) /*!< Position of DOWN_STOP field. */
+#define LPCOMP_SHORTS_DOWN_STOP_Msk (0x1UL << LPCOMP_SHORTS_DOWN_STOP_Pos) /*!< Bit mask of DOWN_STOP field. */
+#define LPCOMP_SHORTS_DOWN_STOP_Disabled (0UL) /*!< Shortcut disabled. */
+#define LPCOMP_SHORTS_DOWN_STOP_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 1 : Shortcut between RADY event and STOP task. */
+#define LPCOMP_SHORTS_READY_STOP_Pos (1UL) /*!< Position of READY_STOP field. */
+#define LPCOMP_SHORTS_READY_STOP_Msk (0x1UL << LPCOMP_SHORTS_READY_STOP_Pos) /*!< Bit mask of READY_STOP field. */
+#define LPCOMP_SHORTS_READY_STOP_Disabled (0UL) /*!< Shortcut disabled. */
+#define LPCOMP_SHORTS_READY_STOP_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 0 : Shortcut between READY event and SAMPLE task. */
+#define LPCOMP_SHORTS_READY_SAMPLE_Pos (0UL) /*!< Position of READY_SAMPLE field. */
+#define LPCOMP_SHORTS_READY_SAMPLE_Msk (0x1UL << LPCOMP_SHORTS_READY_SAMPLE_Pos) /*!< Bit mask of READY_SAMPLE field. */
+#define LPCOMP_SHORTS_READY_SAMPLE_Disabled (0UL) /*!< Shortcut disabled. */
+#define LPCOMP_SHORTS_READY_SAMPLE_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Register: LPCOMP_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 3 : Enable interrupt on CROSS event. */
+#define LPCOMP_INTENSET_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define LPCOMP_INTENSET_CROSS_Msk (0x1UL << LPCOMP_INTENSET_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define LPCOMP_INTENSET_CROSS_Disabled (0UL) /*!< Interrupt disabled. */
+#define LPCOMP_INTENSET_CROSS_Enabled (1UL) /*!< Interrupt enabled. */
+#define LPCOMP_INTENSET_CROSS_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 2 : Enable interrupt on UP event. */
+#define LPCOMP_INTENSET_UP_Pos (2UL) /*!< Position of UP field. */
+#define LPCOMP_INTENSET_UP_Msk (0x1UL << LPCOMP_INTENSET_UP_Pos) /*!< Bit mask of UP field. */
+#define LPCOMP_INTENSET_UP_Disabled (0UL) /*!< Interrupt disabled. */
+#define LPCOMP_INTENSET_UP_Enabled (1UL) /*!< Interrupt enabled. */
+#define LPCOMP_INTENSET_UP_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 1 : Enable interrupt on DOWN event. */
+#define LPCOMP_INTENSET_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define LPCOMP_INTENSET_DOWN_Msk (0x1UL << LPCOMP_INTENSET_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define LPCOMP_INTENSET_DOWN_Disabled (0UL) /*!< Interrupt disabled. */
+#define LPCOMP_INTENSET_DOWN_Enabled (1UL) /*!< Interrupt enabled. */
+#define LPCOMP_INTENSET_DOWN_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 0 : Enable interrupt on READY event. */
+#define LPCOMP_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define LPCOMP_INTENSET_READY_Msk (0x1UL << LPCOMP_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define LPCOMP_INTENSET_READY_Disabled (0UL) /*!< Interrupt disabled. */
+#define LPCOMP_INTENSET_READY_Enabled (1UL) /*!< Interrupt enabled. */
+#define LPCOMP_INTENSET_READY_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: LPCOMP_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 3 : Disable interrupt on CROSS event. */
+#define LPCOMP_INTENCLR_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define LPCOMP_INTENCLR_CROSS_Msk (0x1UL << LPCOMP_INTENCLR_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define LPCOMP_INTENCLR_CROSS_Disabled (0UL) /*!< Interrupt disabled. */
+#define LPCOMP_INTENCLR_CROSS_Enabled (1UL) /*!< Interrupt enabled. */
+#define LPCOMP_INTENCLR_CROSS_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 2 : Disable interrupt on UP event. */
+#define LPCOMP_INTENCLR_UP_Pos (2UL) /*!< Position of UP field. */
+#define LPCOMP_INTENCLR_UP_Msk (0x1UL << LPCOMP_INTENCLR_UP_Pos) /*!< Bit mask of UP field. */
+#define LPCOMP_INTENCLR_UP_Disabled (0UL) /*!< Interrupt disabled. */
+#define LPCOMP_INTENCLR_UP_Enabled (1UL) /*!< Interrupt enabled. */
+#define LPCOMP_INTENCLR_UP_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 1 : Disable interrupt on DOWN event. */
+#define LPCOMP_INTENCLR_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define LPCOMP_INTENCLR_DOWN_Msk (0x1UL << LPCOMP_INTENCLR_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define LPCOMP_INTENCLR_DOWN_Disabled (0UL) /*!< Interrupt disabled. */
+#define LPCOMP_INTENCLR_DOWN_Enabled (1UL) /*!< Interrupt enabled. */
+#define LPCOMP_INTENCLR_DOWN_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 0 : Disable interrupt on READY event. */
+#define LPCOMP_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define LPCOMP_INTENCLR_READY_Msk (0x1UL << LPCOMP_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define LPCOMP_INTENCLR_READY_Disabled (0UL) /*!< Interrupt disabled. */
+#define LPCOMP_INTENCLR_READY_Enabled (1UL) /*!< Interrupt enabled. */
+#define LPCOMP_INTENCLR_READY_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: LPCOMP_RESULT */
+/* Description: Result of last compare. */
+
+/* Bit 0 : Result of last compare. Decision point SAMPLE task. */
+#define LPCOMP_RESULT_RESULT_Pos (0UL) /*!< Position of RESULT field. */
+#define LPCOMP_RESULT_RESULT_Msk (0x1UL << LPCOMP_RESULT_RESULT_Pos) /*!< Bit mask of RESULT field. */
+#define LPCOMP_RESULT_RESULT_Below (0UL) /*!< Input voltage is bellow the reference threshold. */
+#define LPCOMP_RESULT_RESULT_Above (1UL) /*!< Input voltage is above the reference threshold. */
+
+/* Register: LPCOMP_ENABLE */
+/* Description: Enable the LPCOMP. */
+
+/* Bits 1..0 : Enable or disable LPCOMP. */
+#define LPCOMP_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define LPCOMP_ENABLE_ENABLE_Msk (0x3UL << LPCOMP_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define LPCOMP_ENABLE_ENABLE_Disabled (0x00UL) /*!< Disabled LPCOMP. */
+#define LPCOMP_ENABLE_ENABLE_Enabled (0x01UL) /*!< Enable LPCOMP. */
+
+/* Register: LPCOMP_PSEL */
+/* Description: Input pin select. */
+
+/* Bits 2..0 : Analog input pin select. */
+#define LPCOMP_PSEL_PSEL_Pos (0UL) /*!< Position of PSEL field. */
+#define LPCOMP_PSEL_PSEL_Msk (0x7UL << LPCOMP_PSEL_PSEL_Pos) /*!< Bit mask of PSEL field. */
+#define LPCOMP_PSEL_PSEL_AnalogInput0 (0UL) /*!< Use analog input 0 as analog input. */
+#define LPCOMP_PSEL_PSEL_AnalogInput1 (1UL) /*!< Use analog input 1 as analog input. */
+#define LPCOMP_PSEL_PSEL_AnalogInput2 (2UL) /*!< Use analog input 2 as analog input. */
+#define LPCOMP_PSEL_PSEL_AnalogInput3 (3UL) /*!< Use analog input 3 as analog input. */
+#define LPCOMP_PSEL_PSEL_AnalogInput4 (4UL) /*!< Use analog input 4 as analog input. */
+#define LPCOMP_PSEL_PSEL_AnalogInput5 (5UL) /*!< Use analog input 5 as analog input. */
+#define LPCOMP_PSEL_PSEL_AnalogInput6 (6UL) /*!< Use analog input 6 as analog input. */
+#define LPCOMP_PSEL_PSEL_AnalogInput7 (7UL) /*!< Use analog input 7 as analog input. */
+
+/* Register: LPCOMP_REFSEL */
+/* Description: Reference select. */
+
+/* Bits 2..0 : Reference select. */
+#define LPCOMP_REFSEL_REFSEL_Pos (0UL) /*!< Position of REFSEL field. */
+#define LPCOMP_REFSEL_REFSEL_Msk (0x7UL << LPCOMP_REFSEL_REFSEL_Pos) /*!< Bit mask of REFSEL field. */
+#define LPCOMP_REFSEL_REFSEL_SupplyOneEighthPrescaling (0UL) /*!< Use supply with a 1/8 prescaler as reference. */
+#define LPCOMP_REFSEL_REFSEL_SupplyTwoEighthsPrescaling (1UL) /*!< Use supply with a 2/8 prescaler as reference. */
+#define LPCOMP_REFSEL_REFSEL_SupplyThreeEighthsPrescaling (2UL) /*!< Use supply with a 3/8 prescaler as reference. */
+#define LPCOMP_REFSEL_REFSEL_SupplyFourEighthsPrescaling (3UL) /*!< Use supply with a 4/8 prescaler as reference. */
+#define LPCOMP_REFSEL_REFSEL_SupplyFiveEighthsPrescaling (4UL) /*!< Use supply with a 5/8 prescaler as reference. */
+#define LPCOMP_REFSEL_REFSEL_SupplySixEighthsPrescaling (5UL) /*!< Use supply with a 6/8 prescaler as reference. */
+#define LPCOMP_REFSEL_REFSEL_SupplySevenEighthsPrescaling (6UL) /*!< Use supply with a 7/8 prescaler as reference. */
+#define LPCOMP_REFSEL_REFSEL_ARef (7UL) /*!< Use external analog reference as reference. */
+
+/* Register: LPCOMP_EXTREFSEL */
+/* Description: External reference select. */
+
+/* Bit 0 : External analog reference pin selection. */
+#define LPCOMP_EXTREFSEL_EXTREFSEL_Pos (0UL) /*!< Position of EXTREFSEL field. */
+#define LPCOMP_EXTREFSEL_EXTREFSEL_Msk (0x1UL << LPCOMP_EXTREFSEL_EXTREFSEL_Pos) /*!< Bit mask of EXTREFSEL field. */
+#define LPCOMP_EXTREFSEL_EXTREFSEL_AnalogReference0 (0UL) /*!< Use analog reference 0 as reference. */
+#define LPCOMP_EXTREFSEL_EXTREFSEL_AnalogReference1 (1UL) /*!< Use analog reference 1 as reference. */
+
+/* Register: LPCOMP_ANADETECT */
+/* Description: Analog detect configuration. */
+
+/* Bits 1..0 : Analog detect configuration. */
+#define LPCOMP_ANADETECT_ANADETECT_Pos (0UL) /*!< Position of ANADETECT field. */
+#define LPCOMP_ANADETECT_ANADETECT_Msk (0x3UL << LPCOMP_ANADETECT_ANADETECT_Pos) /*!< Bit mask of ANADETECT field. */
+#define LPCOMP_ANADETECT_ANADETECT_Cross (0UL) /*!< Generate ANADETEC on crossing, both upwards and downwards crossing. */
+#define LPCOMP_ANADETECT_ANADETECT_Up (1UL) /*!< Generate ANADETEC on upwards crossing only. */
+#define LPCOMP_ANADETECT_ANADETECT_Down (2UL) /*!< Generate ANADETEC on downwards crossing only. */
+
+/* Register: LPCOMP_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define LPCOMP_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define LPCOMP_POWER_POWER_Msk (0x1UL << LPCOMP_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define LPCOMP_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define LPCOMP_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: MPU */
+/* Description: Memory Protection Unit. */
+
+/* Register: MPU_PERR0 */
+/* Description: Configuration of peripherals in mpu regions. */
+
+/* Bit 31 : PPI region configuration. */
+#define MPU_PERR0_PPI_Pos (31UL) /*!< Position of PPI field. */
+#define MPU_PERR0_PPI_Msk (0x1UL << MPU_PERR0_PPI_Pos) /*!< Bit mask of PPI field. */
+#define MPU_PERR0_PPI_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_PPI_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 30 : NVMC region configuration. */
+#define MPU_PERR0_NVMC_Pos (30UL) /*!< Position of NVMC field. */
+#define MPU_PERR0_NVMC_Msk (0x1UL << MPU_PERR0_NVMC_Pos) /*!< Bit mask of NVMC field. */
+#define MPU_PERR0_NVMC_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_NVMC_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 19 : LPCOMP region configuration. */
+#define MPU_PERR0_LPCOMP_Pos (19UL) /*!< Position of LPCOMP field. */
+#define MPU_PERR0_LPCOMP_Msk (0x1UL << MPU_PERR0_LPCOMP_Pos) /*!< Bit mask of LPCOMP field. */
+#define MPU_PERR0_LPCOMP_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_LPCOMP_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 18 : QDEC region configuration. */
+#define MPU_PERR0_QDEC_Pos (18UL) /*!< Position of QDEC field. */
+#define MPU_PERR0_QDEC_Msk (0x1UL << MPU_PERR0_QDEC_Pos) /*!< Bit mask of QDEC field. */
+#define MPU_PERR0_QDEC_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_QDEC_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 17 : RTC1 region configuration. */
+#define MPU_PERR0_RTC1_Pos (17UL) /*!< Position of RTC1 field. */
+#define MPU_PERR0_RTC1_Msk (0x1UL << MPU_PERR0_RTC1_Pos) /*!< Bit mask of RTC1 field. */
+#define MPU_PERR0_RTC1_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_RTC1_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 16 : WDT region configuration. */
+#define MPU_PERR0_WDT_Pos (16UL) /*!< Position of WDT field. */
+#define MPU_PERR0_WDT_Msk (0x1UL << MPU_PERR0_WDT_Pos) /*!< Bit mask of WDT field. */
+#define MPU_PERR0_WDT_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_WDT_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 15 : CCM and AAR region configuration. */
+#define MPU_PERR0_CCM_AAR_Pos (15UL) /*!< Position of CCM_AAR field. */
+#define MPU_PERR0_CCM_AAR_Msk (0x1UL << MPU_PERR0_CCM_AAR_Pos) /*!< Bit mask of CCM_AAR field. */
+#define MPU_PERR0_CCM_AAR_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_CCM_AAR_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 14 : ECB region configuration. */
+#define MPU_PERR0_ECB_Pos (14UL) /*!< Position of ECB field. */
+#define MPU_PERR0_ECB_Msk (0x1UL << MPU_PERR0_ECB_Pos) /*!< Bit mask of ECB field. */
+#define MPU_PERR0_ECB_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_ECB_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 13 : RNG region configuration. */
+#define MPU_PERR0_RNG_Pos (13UL) /*!< Position of RNG field. */
+#define MPU_PERR0_RNG_Msk (0x1UL << MPU_PERR0_RNG_Pos) /*!< Bit mask of RNG field. */
+#define MPU_PERR0_RNG_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_RNG_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 12 : TEMP region configuration. */
+#define MPU_PERR0_TEMP_Pos (12UL) /*!< Position of TEMP field. */
+#define MPU_PERR0_TEMP_Msk (0x1UL << MPU_PERR0_TEMP_Pos) /*!< Bit mask of TEMP field. */
+#define MPU_PERR0_TEMP_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_TEMP_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 11 : RTC0 region configuration. */
+#define MPU_PERR0_RTC0_Pos (11UL) /*!< Position of RTC0 field. */
+#define MPU_PERR0_RTC0_Msk (0x1UL << MPU_PERR0_RTC0_Pos) /*!< Bit mask of RTC0 field. */
+#define MPU_PERR0_RTC0_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_RTC0_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 10 : TIMER2 region configuration. */
+#define MPU_PERR0_TIMER2_Pos (10UL) /*!< Position of TIMER2 field. */
+#define MPU_PERR0_TIMER2_Msk (0x1UL << MPU_PERR0_TIMER2_Pos) /*!< Bit mask of TIMER2 field. */
+#define MPU_PERR0_TIMER2_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_TIMER2_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 9 : TIMER1 region configuration. */
+#define MPU_PERR0_TIMER1_Pos (9UL) /*!< Position of TIMER1 field. */
+#define MPU_PERR0_TIMER1_Msk (0x1UL << MPU_PERR0_TIMER1_Pos) /*!< Bit mask of TIMER1 field. */
+#define MPU_PERR0_TIMER1_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_TIMER1_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 8 : TIMER0 region configuration. */
+#define MPU_PERR0_TIMER0_Pos (8UL) /*!< Position of TIMER0 field. */
+#define MPU_PERR0_TIMER0_Msk (0x1UL << MPU_PERR0_TIMER0_Pos) /*!< Bit mask of TIMER0 field. */
+#define MPU_PERR0_TIMER0_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_TIMER0_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 7 : ADC region configuration. */
+#define MPU_PERR0_ADC_Pos (7UL) /*!< Position of ADC field. */
+#define MPU_PERR0_ADC_Msk (0x1UL << MPU_PERR0_ADC_Pos) /*!< Bit mask of ADC field. */
+#define MPU_PERR0_ADC_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_ADC_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 6 : GPIOTE region configuration. */
+#define MPU_PERR0_GPIOTE_Pos (6UL) /*!< Position of GPIOTE field. */
+#define MPU_PERR0_GPIOTE_Msk (0x1UL << MPU_PERR0_GPIOTE_Pos) /*!< Bit mask of GPIOTE field. */
+#define MPU_PERR0_GPIOTE_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_GPIOTE_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 4 : SPI1 and TWI1 region configuration. */
+#define MPU_PERR0_SPI1_TWI1_Pos (4UL) /*!< Position of SPI1_TWI1 field. */
+#define MPU_PERR0_SPI1_TWI1_Msk (0x1UL << MPU_PERR0_SPI1_TWI1_Pos) /*!< Bit mask of SPI1_TWI1 field. */
+#define MPU_PERR0_SPI1_TWI1_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_SPI1_TWI1_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 3 : SPI0 and TWI0 region configuration. */
+#define MPU_PERR0_SPI0_TWI0_Pos (3UL) /*!< Position of SPI0_TWI0 field. */
+#define MPU_PERR0_SPI0_TWI0_Msk (0x1UL << MPU_PERR0_SPI0_TWI0_Pos) /*!< Bit mask of SPI0_TWI0 field. */
+#define MPU_PERR0_SPI0_TWI0_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_SPI0_TWI0_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 2 : UART0 region configuration. */
+#define MPU_PERR0_UART0_Pos (2UL) /*!< Position of UART0 field. */
+#define MPU_PERR0_UART0_Msk (0x1UL << MPU_PERR0_UART0_Pos) /*!< Bit mask of UART0 field. */
+#define MPU_PERR0_UART0_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_UART0_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 1 : RADIO region configuration. */
+#define MPU_PERR0_RADIO_Pos (1UL) /*!< Position of RADIO field. */
+#define MPU_PERR0_RADIO_Msk (0x1UL << MPU_PERR0_RADIO_Pos) /*!< Bit mask of RADIO field. */
+#define MPU_PERR0_RADIO_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_RADIO_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Bit 0 : POWER_CLOCK region configuration. */
+#define MPU_PERR0_POWER_CLOCK_Pos (0UL) /*!< Position of POWER_CLOCK field. */
+#define MPU_PERR0_POWER_CLOCK_Msk (0x1UL << MPU_PERR0_POWER_CLOCK_Pos) /*!< Bit mask of POWER_CLOCK field. */
+#define MPU_PERR0_POWER_CLOCK_InRegion1 (0UL) /*!< Peripheral configured in region 1. */
+#define MPU_PERR0_POWER_CLOCK_InRegion0 (1UL) /*!< Peripheral configured in region 0. */
+
+/* Register: MPU_PROTENSET0 */
+/* Description: Erase and write protection bit enable set register. */
+
+/* Bit 31 : Protection enable for region 31. */
+#define MPU_PROTENSET0_PROTREG31_Pos (31UL) /*!< Position of PROTREG31 field. */
+#define MPU_PROTENSET0_PROTREG31_Msk (0x1UL << MPU_PROTENSET0_PROTREG31_Pos) /*!< Bit mask of PROTREG31 field. */
+#define MPU_PROTENSET0_PROTREG31_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG31_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG31_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 30 : Protection enable for region 30. */
+#define MPU_PROTENSET0_PROTREG30_Pos (30UL) /*!< Position of PROTREG30 field. */
+#define MPU_PROTENSET0_PROTREG30_Msk (0x1UL << MPU_PROTENSET0_PROTREG30_Pos) /*!< Bit mask of PROTREG30 field. */
+#define MPU_PROTENSET0_PROTREG30_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG30_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG30_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 29 : Protection enable for region 29. */
+#define MPU_PROTENSET0_PROTREG29_Pos (29UL) /*!< Position of PROTREG29 field. */
+#define MPU_PROTENSET0_PROTREG29_Msk (0x1UL << MPU_PROTENSET0_PROTREG29_Pos) /*!< Bit mask of PROTREG29 field. */
+#define MPU_PROTENSET0_PROTREG29_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG29_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG29_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 28 : Protection enable for region 28. */
+#define MPU_PROTENSET0_PROTREG28_Pos (28UL) /*!< Position of PROTREG28 field. */
+#define MPU_PROTENSET0_PROTREG28_Msk (0x1UL << MPU_PROTENSET0_PROTREG28_Pos) /*!< Bit mask of PROTREG28 field. */
+#define MPU_PROTENSET0_PROTREG28_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG28_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG28_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 27 : Protection enable for region 27. */
+#define MPU_PROTENSET0_PROTREG27_Pos (27UL) /*!< Position of PROTREG27 field. */
+#define MPU_PROTENSET0_PROTREG27_Msk (0x1UL << MPU_PROTENSET0_PROTREG27_Pos) /*!< Bit mask of PROTREG27 field. */
+#define MPU_PROTENSET0_PROTREG27_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG27_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG27_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 26 : Protection enable for region 26. */
+#define MPU_PROTENSET0_PROTREG26_Pos (26UL) /*!< Position of PROTREG26 field. */
+#define MPU_PROTENSET0_PROTREG26_Msk (0x1UL << MPU_PROTENSET0_PROTREG26_Pos) /*!< Bit mask of PROTREG26 field. */
+#define MPU_PROTENSET0_PROTREG26_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG26_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG26_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 25 : Protection enable for region 25. */
+#define MPU_PROTENSET0_PROTREG25_Pos (25UL) /*!< Position of PROTREG25 field. */
+#define MPU_PROTENSET0_PROTREG25_Msk (0x1UL << MPU_PROTENSET0_PROTREG25_Pos) /*!< Bit mask of PROTREG25 field. */
+#define MPU_PROTENSET0_PROTREG25_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG25_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG25_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 24 : Protection enable for region 24. */
+#define MPU_PROTENSET0_PROTREG24_Pos (24UL) /*!< Position of PROTREG24 field. */
+#define MPU_PROTENSET0_PROTREG24_Msk (0x1UL << MPU_PROTENSET0_PROTREG24_Pos) /*!< Bit mask of PROTREG24 field. */
+#define MPU_PROTENSET0_PROTREG24_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG24_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG24_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 23 : Protection enable for region 23. */
+#define MPU_PROTENSET0_PROTREG23_Pos (23UL) /*!< Position of PROTREG23 field. */
+#define MPU_PROTENSET0_PROTREG23_Msk (0x1UL << MPU_PROTENSET0_PROTREG23_Pos) /*!< Bit mask of PROTREG23 field. */
+#define MPU_PROTENSET0_PROTREG23_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG23_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG23_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 22 : Protection enable for region 22. */
+#define MPU_PROTENSET0_PROTREG22_Pos (22UL) /*!< Position of PROTREG22 field. */
+#define MPU_PROTENSET0_PROTREG22_Msk (0x1UL << MPU_PROTENSET0_PROTREG22_Pos) /*!< Bit mask of PROTREG22 field. */
+#define MPU_PROTENSET0_PROTREG22_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG22_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG22_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 21 : Protection enable for region 21. */
+#define MPU_PROTENSET0_PROTREG21_Pos (21UL) /*!< Position of PROTREG21 field. */
+#define MPU_PROTENSET0_PROTREG21_Msk (0x1UL << MPU_PROTENSET0_PROTREG21_Pos) /*!< Bit mask of PROTREG21 field. */
+#define MPU_PROTENSET0_PROTREG21_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG21_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG21_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 20 : Protection enable for region 20. */
+#define MPU_PROTENSET0_PROTREG20_Pos (20UL) /*!< Position of PROTREG20 field. */
+#define MPU_PROTENSET0_PROTREG20_Msk (0x1UL << MPU_PROTENSET0_PROTREG20_Pos) /*!< Bit mask of PROTREG20 field. */
+#define MPU_PROTENSET0_PROTREG20_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG20_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG20_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 19 : Protection enable for region 19. */
+#define MPU_PROTENSET0_PROTREG19_Pos (19UL) /*!< Position of PROTREG19 field. */
+#define MPU_PROTENSET0_PROTREG19_Msk (0x1UL << MPU_PROTENSET0_PROTREG19_Pos) /*!< Bit mask of PROTREG19 field. */
+#define MPU_PROTENSET0_PROTREG19_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG19_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG19_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 18 : Protection enable for region 18. */
+#define MPU_PROTENSET0_PROTREG18_Pos (18UL) /*!< Position of PROTREG18 field. */
+#define MPU_PROTENSET0_PROTREG18_Msk (0x1UL << MPU_PROTENSET0_PROTREG18_Pos) /*!< Bit mask of PROTREG18 field. */
+#define MPU_PROTENSET0_PROTREG18_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG18_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG18_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 17 : Protection enable for region 17. */
+#define MPU_PROTENSET0_PROTREG17_Pos (17UL) /*!< Position of PROTREG17 field. */
+#define MPU_PROTENSET0_PROTREG17_Msk (0x1UL << MPU_PROTENSET0_PROTREG17_Pos) /*!< Bit mask of PROTREG17 field. */
+#define MPU_PROTENSET0_PROTREG17_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG17_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG17_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 16 : Protection enable for region 16. */
+#define MPU_PROTENSET0_PROTREG16_Pos (16UL) /*!< Position of PROTREG16 field. */
+#define MPU_PROTENSET0_PROTREG16_Msk (0x1UL << MPU_PROTENSET0_PROTREG16_Pos) /*!< Bit mask of PROTREG16 field. */
+#define MPU_PROTENSET0_PROTREG16_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG16_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG16_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 15 : Protection enable for region 15. */
+#define MPU_PROTENSET0_PROTREG15_Pos (15UL) /*!< Position of PROTREG15 field. */
+#define MPU_PROTENSET0_PROTREG15_Msk (0x1UL << MPU_PROTENSET0_PROTREG15_Pos) /*!< Bit mask of PROTREG15 field. */
+#define MPU_PROTENSET0_PROTREG15_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG15_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG15_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 14 : Protection enable for region 14. */
+#define MPU_PROTENSET0_PROTREG14_Pos (14UL) /*!< Position of PROTREG14 field. */
+#define MPU_PROTENSET0_PROTREG14_Msk (0x1UL << MPU_PROTENSET0_PROTREG14_Pos) /*!< Bit mask of PROTREG14 field. */
+#define MPU_PROTENSET0_PROTREG14_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG14_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG14_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 13 : Protection enable for region 13. */
+#define MPU_PROTENSET0_PROTREG13_Pos (13UL) /*!< Position of PROTREG13 field. */
+#define MPU_PROTENSET0_PROTREG13_Msk (0x1UL << MPU_PROTENSET0_PROTREG13_Pos) /*!< Bit mask of PROTREG13 field. */
+#define MPU_PROTENSET0_PROTREG13_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG13_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG13_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 12 : Protection enable for region 12. */
+#define MPU_PROTENSET0_PROTREG12_Pos (12UL) /*!< Position of PROTREG12 field. */
+#define MPU_PROTENSET0_PROTREG12_Msk (0x1UL << MPU_PROTENSET0_PROTREG12_Pos) /*!< Bit mask of PROTREG12 field. */
+#define MPU_PROTENSET0_PROTREG12_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG12_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG12_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 11 : Protection enable for region 11. */
+#define MPU_PROTENSET0_PROTREG11_Pos (11UL) /*!< Position of PROTREG11 field. */
+#define MPU_PROTENSET0_PROTREG11_Msk (0x1UL << MPU_PROTENSET0_PROTREG11_Pos) /*!< Bit mask of PROTREG11 field. */
+#define MPU_PROTENSET0_PROTREG11_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG11_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG11_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 10 : Protection enable for region 10. */
+#define MPU_PROTENSET0_PROTREG10_Pos (10UL) /*!< Position of PROTREG10 field. */
+#define MPU_PROTENSET0_PROTREG10_Msk (0x1UL << MPU_PROTENSET0_PROTREG10_Pos) /*!< Bit mask of PROTREG10 field. */
+#define MPU_PROTENSET0_PROTREG10_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG10_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG10_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 9 : Protection enable for region 9. */
+#define MPU_PROTENSET0_PROTREG9_Pos (9UL) /*!< Position of PROTREG9 field. */
+#define MPU_PROTENSET0_PROTREG9_Msk (0x1UL << MPU_PROTENSET0_PROTREG9_Pos) /*!< Bit mask of PROTREG9 field. */
+#define MPU_PROTENSET0_PROTREG9_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG9_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG9_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 8 : Protection enable for region 8. */
+#define MPU_PROTENSET0_PROTREG8_Pos (8UL) /*!< Position of PROTREG8 field. */
+#define MPU_PROTENSET0_PROTREG8_Msk (0x1UL << MPU_PROTENSET0_PROTREG8_Pos) /*!< Bit mask of PROTREG8 field. */
+#define MPU_PROTENSET0_PROTREG8_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG8_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG8_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 7 : Protection enable for region 7. */
+#define MPU_PROTENSET0_PROTREG7_Pos (7UL) /*!< Position of PROTREG7 field. */
+#define MPU_PROTENSET0_PROTREG7_Msk (0x1UL << MPU_PROTENSET0_PROTREG7_Pos) /*!< Bit mask of PROTREG7 field. */
+#define MPU_PROTENSET0_PROTREG7_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG7_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG7_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 6 : Protection enable for region 6. */
+#define MPU_PROTENSET0_PROTREG6_Pos (6UL) /*!< Position of PROTREG6 field. */
+#define MPU_PROTENSET0_PROTREG6_Msk (0x1UL << MPU_PROTENSET0_PROTREG6_Pos) /*!< Bit mask of PROTREG6 field. */
+#define MPU_PROTENSET0_PROTREG6_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG6_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG6_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 5 : Protection enable for region 5. */
+#define MPU_PROTENSET0_PROTREG5_Pos (5UL) /*!< Position of PROTREG5 field. */
+#define MPU_PROTENSET0_PROTREG5_Msk (0x1UL << MPU_PROTENSET0_PROTREG5_Pos) /*!< Bit mask of PROTREG5 field. */
+#define MPU_PROTENSET0_PROTREG5_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG5_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG5_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 4 : Protection enable for region 4. */
+#define MPU_PROTENSET0_PROTREG4_Pos (4UL) /*!< Position of PROTREG4 field. */
+#define MPU_PROTENSET0_PROTREG4_Msk (0x1UL << MPU_PROTENSET0_PROTREG4_Pos) /*!< Bit mask of PROTREG4 field. */
+#define MPU_PROTENSET0_PROTREG4_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG4_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG4_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 3 : Protection enable for region 3. */
+#define MPU_PROTENSET0_PROTREG3_Pos (3UL) /*!< Position of PROTREG3 field. */
+#define MPU_PROTENSET0_PROTREG3_Msk (0x1UL << MPU_PROTENSET0_PROTREG3_Pos) /*!< Bit mask of PROTREG3 field. */
+#define MPU_PROTENSET0_PROTREG3_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG3_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG3_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 2 : Protection enable for region 2. */
+#define MPU_PROTENSET0_PROTREG2_Pos (2UL) /*!< Position of PROTREG2 field. */
+#define MPU_PROTENSET0_PROTREG2_Msk (0x1UL << MPU_PROTENSET0_PROTREG2_Pos) /*!< Bit mask of PROTREG2 field. */
+#define MPU_PROTENSET0_PROTREG2_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG2_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG2_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 1 : Protection enable for region 1. */
+#define MPU_PROTENSET0_PROTREG1_Pos (1UL) /*!< Position of PROTREG1 field. */
+#define MPU_PROTENSET0_PROTREG1_Msk (0x1UL << MPU_PROTENSET0_PROTREG1_Pos) /*!< Bit mask of PROTREG1 field. */
+#define MPU_PROTENSET0_PROTREG1_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG1_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG1_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 0 : Protection enable for region 0. */
+#define MPU_PROTENSET0_PROTREG0_Pos (0UL) /*!< Position of PROTREG0 field. */
+#define MPU_PROTENSET0_PROTREG0_Msk (0x1UL << MPU_PROTENSET0_PROTREG0_Pos) /*!< Bit mask of PROTREG0 field. */
+#define MPU_PROTENSET0_PROTREG0_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET0_PROTREG0_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET0_PROTREG0_Set (1UL) /*!< Enable protection on write. */
+
+/* Register: MPU_PROTENSET1 */
+/* Description: Erase and write protection bit enable set register. */
+
+/* Bit 31 : Protection enable for region 63. */
+#define MPU_PROTENSET1_PROTREG63_Pos (31UL) /*!< Position of PROTREG63 field. */
+#define MPU_PROTENSET1_PROTREG63_Msk (0x1UL << MPU_PROTENSET1_PROTREG63_Pos) /*!< Bit mask of PROTREG63 field. */
+#define MPU_PROTENSET1_PROTREG63_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG63_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG63_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 30 : Protection enable for region 62. */
+#define MPU_PROTENSET1_PROTREG62_Pos (30UL) /*!< Position of PROTREG62 field. */
+#define MPU_PROTENSET1_PROTREG62_Msk (0x1UL << MPU_PROTENSET1_PROTREG62_Pos) /*!< Bit mask of PROTREG62 field. */
+#define MPU_PROTENSET1_PROTREG62_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG62_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG62_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 29 : Protection enable for region 61. */
+#define MPU_PROTENSET1_PROTREG61_Pos (29UL) /*!< Position of PROTREG61 field. */
+#define MPU_PROTENSET1_PROTREG61_Msk (0x1UL << MPU_PROTENSET1_PROTREG61_Pos) /*!< Bit mask of PROTREG61 field. */
+#define MPU_PROTENSET1_PROTREG61_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG61_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG61_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 28 : Protection enable for region 60. */
+#define MPU_PROTENSET1_PROTREG60_Pos (28UL) /*!< Position of PROTREG60 field. */
+#define MPU_PROTENSET1_PROTREG60_Msk (0x1UL << MPU_PROTENSET1_PROTREG60_Pos) /*!< Bit mask of PROTREG60 field. */
+#define MPU_PROTENSET1_PROTREG60_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG60_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG60_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 27 : Protection enable for region 59. */
+#define MPU_PROTENSET1_PROTREG59_Pos (27UL) /*!< Position of PROTREG59 field. */
+#define MPU_PROTENSET1_PROTREG59_Msk (0x1UL << MPU_PROTENSET1_PROTREG59_Pos) /*!< Bit mask of PROTREG59 field. */
+#define MPU_PROTENSET1_PROTREG59_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG59_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG59_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 26 : Protection enable for region 58. */
+#define MPU_PROTENSET1_PROTREG58_Pos (26UL) /*!< Position of PROTREG58 field. */
+#define MPU_PROTENSET1_PROTREG58_Msk (0x1UL << MPU_PROTENSET1_PROTREG58_Pos) /*!< Bit mask of PROTREG58 field. */
+#define MPU_PROTENSET1_PROTREG58_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG58_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG58_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 25 : Protection enable for region 57. */
+#define MPU_PROTENSET1_PROTREG57_Pos (25UL) /*!< Position of PROTREG57 field. */
+#define MPU_PROTENSET1_PROTREG57_Msk (0x1UL << MPU_PROTENSET1_PROTREG57_Pos) /*!< Bit mask of PROTREG57 field. */
+#define MPU_PROTENSET1_PROTREG57_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG57_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG57_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 24 : Protection enable for region 56. */
+#define MPU_PROTENSET1_PROTREG56_Pos (24UL) /*!< Position of PROTREG56 field. */
+#define MPU_PROTENSET1_PROTREG56_Msk (0x1UL << MPU_PROTENSET1_PROTREG56_Pos) /*!< Bit mask of PROTREG56 field. */
+#define MPU_PROTENSET1_PROTREG56_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG56_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG56_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 23 : Protection enable for region 55. */
+#define MPU_PROTENSET1_PROTREG55_Pos (23UL) /*!< Position of PROTREG55 field. */
+#define MPU_PROTENSET1_PROTREG55_Msk (0x1UL << MPU_PROTENSET1_PROTREG55_Pos) /*!< Bit mask of PROTREG55 field. */
+#define MPU_PROTENSET1_PROTREG55_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG55_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG55_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 22 : Protection enable for region 54. */
+#define MPU_PROTENSET1_PROTREG54_Pos (22UL) /*!< Position of PROTREG54 field. */
+#define MPU_PROTENSET1_PROTREG54_Msk (0x1UL << MPU_PROTENSET1_PROTREG54_Pos) /*!< Bit mask of PROTREG54 field. */
+#define MPU_PROTENSET1_PROTREG54_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG54_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG54_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 21 : Protection enable for region 53. */
+#define MPU_PROTENSET1_PROTREG53_Pos (21UL) /*!< Position of PROTREG53 field. */
+#define MPU_PROTENSET1_PROTREG53_Msk (0x1UL << MPU_PROTENSET1_PROTREG53_Pos) /*!< Bit mask of PROTREG53 field. */
+#define MPU_PROTENSET1_PROTREG53_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG53_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG53_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 20 : Protection enable for region 52. */
+#define MPU_PROTENSET1_PROTREG52_Pos (20UL) /*!< Position of PROTREG52 field. */
+#define MPU_PROTENSET1_PROTREG52_Msk (0x1UL << MPU_PROTENSET1_PROTREG52_Pos) /*!< Bit mask of PROTREG52 field. */
+#define MPU_PROTENSET1_PROTREG52_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG52_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG52_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 19 : Protection enable for region 51. */
+#define MPU_PROTENSET1_PROTREG51_Pos (19UL) /*!< Position of PROTREG51 field. */
+#define MPU_PROTENSET1_PROTREG51_Msk (0x1UL << MPU_PROTENSET1_PROTREG51_Pos) /*!< Bit mask of PROTREG51 field. */
+#define MPU_PROTENSET1_PROTREG51_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG51_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG51_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 18 : Protection enable for region 50. */
+#define MPU_PROTENSET1_PROTREG50_Pos (18UL) /*!< Position of PROTREG50 field. */
+#define MPU_PROTENSET1_PROTREG50_Msk (0x1UL << MPU_PROTENSET1_PROTREG50_Pos) /*!< Bit mask of PROTREG50 field. */
+#define MPU_PROTENSET1_PROTREG50_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG50_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG50_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 17 : Protection enable for region 49. */
+#define MPU_PROTENSET1_PROTREG49_Pos (17UL) /*!< Position of PROTREG49 field. */
+#define MPU_PROTENSET1_PROTREG49_Msk (0x1UL << MPU_PROTENSET1_PROTREG49_Pos) /*!< Bit mask of PROTREG49 field. */
+#define MPU_PROTENSET1_PROTREG49_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG49_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG49_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 16 : Protection enable for region 48. */
+#define MPU_PROTENSET1_PROTREG48_Pos (16UL) /*!< Position of PROTREG48 field. */
+#define MPU_PROTENSET1_PROTREG48_Msk (0x1UL << MPU_PROTENSET1_PROTREG48_Pos) /*!< Bit mask of PROTREG48 field. */
+#define MPU_PROTENSET1_PROTREG48_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG48_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG48_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 15 : Protection enable for region 47. */
+#define MPU_PROTENSET1_PROTREG47_Pos (15UL) /*!< Position of PROTREG47 field. */
+#define MPU_PROTENSET1_PROTREG47_Msk (0x1UL << MPU_PROTENSET1_PROTREG47_Pos) /*!< Bit mask of PROTREG47 field. */
+#define MPU_PROTENSET1_PROTREG47_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG47_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG47_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 14 : Protection enable for region 46. */
+#define MPU_PROTENSET1_PROTREG46_Pos (14UL) /*!< Position of PROTREG46 field. */
+#define MPU_PROTENSET1_PROTREG46_Msk (0x1UL << MPU_PROTENSET1_PROTREG46_Pos) /*!< Bit mask of PROTREG46 field. */
+#define MPU_PROTENSET1_PROTREG46_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG46_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG46_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 13 : Protection enable for region 45. */
+#define MPU_PROTENSET1_PROTREG45_Pos (13UL) /*!< Position of PROTREG45 field. */
+#define MPU_PROTENSET1_PROTREG45_Msk (0x1UL << MPU_PROTENSET1_PROTREG45_Pos) /*!< Bit mask of PROTREG45 field. */
+#define MPU_PROTENSET1_PROTREG45_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG45_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG45_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 12 : Protection enable for region 44. */
+#define MPU_PROTENSET1_PROTREG44_Pos (12UL) /*!< Position of PROTREG44 field. */
+#define MPU_PROTENSET1_PROTREG44_Msk (0x1UL << MPU_PROTENSET1_PROTREG44_Pos) /*!< Bit mask of PROTREG44 field. */
+#define MPU_PROTENSET1_PROTREG44_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG44_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG44_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 11 : Protection enable for region 43. */
+#define MPU_PROTENSET1_PROTREG43_Pos (11UL) /*!< Position of PROTREG43 field. */
+#define MPU_PROTENSET1_PROTREG43_Msk (0x1UL << MPU_PROTENSET1_PROTREG43_Pos) /*!< Bit mask of PROTREG43 field. */
+#define MPU_PROTENSET1_PROTREG43_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG43_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG43_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 10 : Protection enable for region 42. */
+#define MPU_PROTENSET1_PROTREG42_Pos (10UL) /*!< Position of PROTREG42 field. */
+#define MPU_PROTENSET1_PROTREG42_Msk (0x1UL << MPU_PROTENSET1_PROTREG42_Pos) /*!< Bit mask of PROTREG42 field. */
+#define MPU_PROTENSET1_PROTREG42_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG42_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG42_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 9 : Protection enable for region 41. */
+#define MPU_PROTENSET1_PROTREG41_Pos (9UL) /*!< Position of PROTREG41 field. */
+#define MPU_PROTENSET1_PROTREG41_Msk (0x1UL << MPU_PROTENSET1_PROTREG41_Pos) /*!< Bit mask of PROTREG41 field. */
+#define MPU_PROTENSET1_PROTREG41_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG41_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG41_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 8 : Protection enable for region 40. */
+#define MPU_PROTENSET1_PROTREG40_Pos (8UL) /*!< Position of PROTREG40 field. */
+#define MPU_PROTENSET1_PROTREG40_Msk (0x1UL << MPU_PROTENSET1_PROTREG40_Pos) /*!< Bit mask of PROTREG40 field. */
+#define MPU_PROTENSET1_PROTREG40_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG40_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG40_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 7 : Protection enable for region 39. */
+#define MPU_PROTENSET1_PROTREG39_Pos (7UL) /*!< Position of PROTREG39 field. */
+#define MPU_PROTENSET1_PROTREG39_Msk (0x1UL << MPU_PROTENSET1_PROTREG39_Pos) /*!< Bit mask of PROTREG39 field. */
+#define MPU_PROTENSET1_PROTREG39_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG39_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG39_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 6 : Protection enable for region 38. */
+#define MPU_PROTENSET1_PROTREG38_Pos (6UL) /*!< Position of PROTREG38 field. */
+#define MPU_PROTENSET1_PROTREG38_Msk (0x1UL << MPU_PROTENSET1_PROTREG38_Pos) /*!< Bit mask of PROTREG38 field. */
+#define MPU_PROTENSET1_PROTREG38_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG38_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG38_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 5 : Protection enable for region 37. */
+#define MPU_PROTENSET1_PROTREG37_Pos (5UL) /*!< Position of PROTREG37 field. */
+#define MPU_PROTENSET1_PROTREG37_Msk (0x1UL << MPU_PROTENSET1_PROTREG37_Pos) /*!< Bit mask of PROTREG37 field. */
+#define MPU_PROTENSET1_PROTREG37_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG37_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG37_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 4 : Protection enable for region 36. */
+#define MPU_PROTENSET1_PROTREG36_Pos (4UL) /*!< Position of PROTREG36 field. */
+#define MPU_PROTENSET1_PROTREG36_Msk (0x1UL << MPU_PROTENSET1_PROTREG36_Pos) /*!< Bit mask of PROTREG36 field. */
+#define MPU_PROTENSET1_PROTREG36_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG36_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG36_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 3 : Protection enable for region 35. */
+#define MPU_PROTENSET1_PROTREG35_Pos (3UL) /*!< Position of PROTREG35 field. */
+#define MPU_PROTENSET1_PROTREG35_Msk (0x1UL << MPU_PROTENSET1_PROTREG35_Pos) /*!< Bit mask of PROTREG35 field. */
+#define MPU_PROTENSET1_PROTREG35_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG35_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG35_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 2 : Protection enable for region 34. */
+#define MPU_PROTENSET1_PROTREG34_Pos (2UL) /*!< Position of PROTREG34 field. */
+#define MPU_PROTENSET1_PROTREG34_Msk (0x1UL << MPU_PROTENSET1_PROTREG34_Pos) /*!< Bit mask of PROTREG34 field. */
+#define MPU_PROTENSET1_PROTREG34_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG34_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG34_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 1 : Protection enable for region 33. */
+#define MPU_PROTENSET1_PROTREG33_Pos (1UL) /*!< Position of PROTREG33 field. */
+#define MPU_PROTENSET1_PROTREG33_Msk (0x1UL << MPU_PROTENSET1_PROTREG33_Pos) /*!< Bit mask of PROTREG33 field. */
+#define MPU_PROTENSET1_PROTREG33_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG33_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG33_Set (1UL) /*!< Enable protection on write. */
+
+/* Bit 0 : Protection enable for region 32. */
+#define MPU_PROTENSET1_PROTREG32_Pos (0UL) /*!< Position of PROTREG32 field. */
+#define MPU_PROTENSET1_PROTREG32_Msk (0x1UL << MPU_PROTENSET1_PROTREG32_Pos) /*!< Bit mask of PROTREG32 field. */
+#define MPU_PROTENSET1_PROTREG32_Disabled (0UL) /*!< Protection disabled. */
+#define MPU_PROTENSET1_PROTREG32_Enabled (1UL) /*!< Protection enabled. */
+#define MPU_PROTENSET1_PROTREG32_Set (1UL) /*!< Enable protection on write. */
+
+/* Register: MPU_DISABLEINDEBUG */
+/* Description: Disable erase and write protection mechanism in debug mode. */
+
+/* Bit 0 : Disable protection mechanism in debug mode. */
+#define MPU_DISABLEINDEBUG_DISABLEINDEBUG_Pos (0UL) /*!< Position of DISABLEINDEBUG field. */
+#define MPU_DISABLEINDEBUG_DISABLEINDEBUG_Msk (0x1UL << MPU_DISABLEINDEBUG_DISABLEINDEBUG_Pos) /*!< Bit mask of DISABLEINDEBUG field. */
+#define MPU_DISABLEINDEBUG_DISABLEINDEBUG_Enabled (0UL) /*!< Protection enabled. */
+#define MPU_DISABLEINDEBUG_DISABLEINDEBUG_Disabled (1UL) /*!< Protection disabled. */
+
+/* Register: MPU_PROTBLOCKSIZE */
+/* Description: Erase and write protection block size. */
+
+/* Bits 1..0 : Erase and write protection block size. */
+#define MPU_PROTBLOCKSIZE_PROTBLOCKSIZE_Pos (0UL) /*!< Position of PROTBLOCKSIZE field. */
+#define MPU_PROTBLOCKSIZE_PROTBLOCKSIZE_Msk (0x3UL << MPU_PROTBLOCKSIZE_PROTBLOCKSIZE_Pos) /*!< Bit mask of PROTBLOCKSIZE field. */
+#define MPU_PROTBLOCKSIZE_PROTBLOCKSIZE_4k (0UL) /*!< Erase and write protection block size is 4k. */
+
+
+/* Peripheral: NVMC */
+/* Description: Non Volatile Memory Controller. */
+
+/* Register: NVMC_READY */
+/* Description: Ready flag. */
+
+/* Bit 0 : NVMC ready. */
+#define NVMC_READY_READY_Pos (0UL) /*!< Position of READY field. */
+#define NVMC_READY_READY_Msk (0x1UL << NVMC_READY_READY_Pos) /*!< Bit mask of READY field. */
+#define NVMC_READY_READY_Busy (0UL) /*!< NVMC is busy (on-going write or erase operation). */
+#define NVMC_READY_READY_Ready (1UL) /*!< NVMC is ready. */
+
+/* Register: NVMC_CONFIG */
+/* Description: Configuration register. */
+
+/* Bits 1..0 : Program write enable. */
+#define NVMC_CONFIG_WEN_Pos (0UL) /*!< Position of WEN field. */
+#define NVMC_CONFIG_WEN_Msk (0x3UL << NVMC_CONFIG_WEN_Pos) /*!< Bit mask of WEN field. */
+#define NVMC_CONFIG_WEN_Ren (0x00UL) /*!< Read only access. */
+#define NVMC_CONFIG_WEN_Wen (0x01UL) /*!< Write enabled. */
+#define NVMC_CONFIG_WEN_Een (0x02UL) /*!< Erase enabled. */
+
+/* Register: NVMC_ERASEALL */
+/* Description: Register for erasing all non-volatile user memory. */
+
+/* Bit 0 : Starts the erasing of all user NVM (code region 0/1 and UICR registers). */
+#define NVMC_ERASEALL_ERASEALL_Pos (0UL) /*!< Position of ERASEALL field. */
+#define NVMC_ERASEALL_ERASEALL_Msk (0x1UL << NVMC_ERASEALL_ERASEALL_Pos) /*!< Bit mask of ERASEALL field. */
+#define NVMC_ERASEALL_ERASEALL_NoOperation (0UL) /*!< No operation. */
+#define NVMC_ERASEALL_ERASEALL_Erase (1UL) /*!< Start chip erase. */
+
+/* Register: NVMC_ERASEUICR */
+/* Description: Register for start erasing User Information Congfiguration Registers. */
+
+/* Bit 0 : It can only be used when all contents of code region 1 are erased. */
+#define NVMC_ERASEUICR_ERASEUICR_Pos (0UL) /*!< Position of ERASEUICR field. */
+#define NVMC_ERASEUICR_ERASEUICR_Msk (0x1UL << NVMC_ERASEUICR_ERASEUICR_Pos) /*!< Bit mask of ERASEUICR field. */
+#define NVMC_ERASEUICR_ERASEUICR_NoOperation (0UL) /*!< No operation. */
+#define NVMC_ERASEUICR_ERASEUICR_Erase (1UL) /*!< Start UICR erase. */
+
+
+/* Peripheral: POWER */
+/* Description: Power Control. */
+
+/* Register: POWER_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 2 : Enable interrupt on POFWARN event. */
+#define POWER_INTENSET_POFWARN_Pos (2UL) /*!< Position of POFWARN field. */
+#define POWER_INTENSET_POFWARN_Msk (0x1UL << POWER_INTENSET_POFWARN_Pos) /*!< Bit mask of POFWARN field. */
+#define POWER_INTENSET_POFWARN_Disabled (0UL) /*!< Interrupt disabled. */
+#define POWER_INTENSET_POFWARN_Enabled (1UL) /*!< Interrupt enabled. */
+#define POWER_INTENSET_POFWARN_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: POWER_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 2 : Disable interrupt on POFWARN event. */
+#define POWER_INTENCLR_POFWARN_Pos (2UL) /*!< Position of POFWARN field. */
+#define POWER_INTENCLR_POFWARN_Msk (0x1UL << POWER_INTENCLR_POFWARN_Pos) /*!< Bit mask of POFWARN field. */
+#define POWER_INTENCLR_POFWARN_Disabled (0UL) /*!< Interrupt disabled. */
+#define POWER_INTENCLR_POFWARN_Enabled (1UL) /*!< Interrupt enabled. */
+#define POWER_INTENCLR_POFWARN_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: POWER_RESETREAS */
+/* Description: Reset reason. */
+
+/* Bit 18 : Reset from wake-up from OFF mode detected by entering into debug interface mode. */
+#define POWER_RESETREAS_DIF_Pos (18UL) /*!< Position of DIF field. */
+#define POWER_RESETREAS_DIF_Msk (0x1UL << POWER_RESETREAS_DIF_Pos) /*!< Bit mask of DIF field. */
+#define POWER_RESETREAS_DIF_NotDetected (0UL) /*!< Reset not detected. */
+#define POWER_RESETREAS_DIF_Detected (1UL) /*!< Reset detected. */
+
+/* Bit 17 : Reset from wake-up from OFF mode detected by the use of ANADETECT signal from LPCOMP. */
+#define POWER_RESETREAS_LPCOMP_Pos (17UL) /*!< Position of LPCOMP field. */
+#define POWER_RESETREAS_LPCOMP_Msk (0x1UL << POWER_RESETREAS_LPCOMP_Pos) /*!< Bit mask of LPCOMP field. */
+#define POWER_RESETREAS_LPCOMP_NotDetected (0UL) /*!< Reset not detected. */
+#define POWER_RESETREAS_LPCOMP_Detected (1UL) /*!< Reset detected. */
+
+/* Bit 16 : Reset from wake-up from OFF mode detected by the use of DETECT signal from GPIO. */
+#define POWER_RESETREAS_OFF_Pos (16UL) /*!< Position of OFF field. */
+#define POWER_RESETREAS_OFF_Msk (0x1UL << POWER_RESETREAS_OFF_Pos) /*!< Bit mask of OFF field. */
+#define POWER_RESETREAS_OFF_NotDetected (0UL) /*!< Reset not detected. */
+#define POWER_RESETREAS_OFF_Detected (1UL) /*!< Reset detected. */
+
+/* Bit 3 : Reset from CPU lock-up detected. */
+#define POWER_RESETREAS_LOCKUP_Pos (3UL) /*!< Position of LOCKUP field. */
+#define POWER_RESETREAS_LOCKUP_Msk (0x1UL << POWER_RESETREAS_LOCKUP_Pos) /*!< Bit mask of LOCKUP field. */
+#define POWER_RESETREAS_LOCKUP_NotDetected (0UL) /*!< Reset not detected. */
+#define POWER_RESETREAS_LOCKUP_Detected (1UL) /*!< Reset detected. */
+
+/* Bit 2 : Reset from AIRCR.SYSRESETREQ detected. */
+#define POWER_RESETREAS_SREQ_Pos (2UL) /*!< Position of SREQ field. */
+#define POWER_RESETREAS_SREQ_Msk (0x1UL << POWER_RESETREAS_SREQ_Pos) /*!< Bit mask of SREQ field. */
+#define POWER_RESETREAS_SREQ_NotDetected (0UL) /*!< Reset not detected. */
+#define POWER_RESETREAS_SREQ_Detected (1UL) /*!< Reset detected. */
+
+/* Bit 1 : Reset from watchdog detected. */
+#define POWER_RESETREAS_DOG_Pos (1UL) /*!< Position of DOG field. */
+#define POWER_RESETREAS_DOG_Msk (0x1UL << POWER_RESETREAS_DOG_Pos) /*!< Bit mask of DOG field. */
+#define POWER_RESETREAS_DOG_NotDetected (0UL) /*!< Reset not detected. */
+#define POWER_RESETREAS_DOG_Detected (1UL) /*!< Reset detected. */
+
+/* Bit 0 : Reset from pin-reset detected. */
+#define POWER_RESETREAS_RESETPIN_Pos (0UL) /*!< Position of RESETPIN field. */
+#define POWER_RESETREAS_RESETPIN_Msk (0x1UL << POWER_RESETREAS_RESETPIN_Pos) /*!< Bit mask of RESETPIN field. */
+#define POWER_RESETREAS_RESETPIN_NotDetected (0UL) /*!< Reset not detected. */
+#define POWER_RESETREAS_RESETPIN_Detected (1UL) /*!< Reset detected. */
+
+/* Register: POWER_RAMSTATUS */
+/* Description: Ram status register. */
+
+/* Bit 3 : RAM block 3 status. */
+#define POWER_RAMSTATUS_RAMBLOCK3_Pos (3UL) /*!< Position of RAMBLOCK3 field. */
+#define POWER_RAMSTATUS_RAMBLOCK3_Msk (0x1UL << POWER_RAMSTATUS_RAMBLOCK3_Pos) /*!< Bit mask of RAMBLOCK3 field. */
+#define POWER_RAMSTATUS_RAMBLOCK3_Off (0UL) /*!< RAM block 3 is off or powering up. */
+#define POWER_RAMSTATUS_RAMBLOCK3_On (1UL) /*!< RAM block 3 is on. */
+
+/* Bit 2 : RAM block 2 status. */
+#define POWER_RAMSTATUS_RAMBLOCK2_Pos (2UL) /*!< Position of RAMBLOCK2 field. */
+#define POWER_RAMSTATUS_RAMBLOCK2_Msk (0x1UL << POWER_RAMSTATUS_RAMBLOCK2_Pos) /*!< Bit mask of RAMBLOCK2 field. */
+#define POWER_RAMSTATUS_RAMBLOCK2_Off (0UL) /*!< RAM block 2 is off or powering up. */
+#define POWER_RAMSTATUS_RAMBLOCK2_On (1UL) /*!< RAM block 2 is on. */
+
+/* Bit 1 : RAM block 1 status. */
+#define POWER_RAMSTATUS_RAMBLOCK1_Pos (1UL) /*!< Position of RAMBLOCK1 field. */
+#define POWER_RAMSTATUS_RAMBLOCK1_Msk (0x1UL << POWER_RAMSTATUS_RAMBLOCK1_Pos) /*!< Bit mask of RAMBLOCK1 field. */
+#define POWER_RAMSTATUS_RAMBLOCK1_Off (0UL) /*!< RAM block 1 is off or powering up. */
+#define POWER_RAMSTATUS_RAMBLOCK1_On (1UL) /*!< RAM block 1 is on. */
+
+/* Bit 0 : RAM block 0 status. */
+#define POWER_RAMSTATUS_RAMBLOCK0_Pos (0UL) /*!< Position of RAMBLOCK0 field. */
+#define POWER_RAMSTATUS_RAMBLOCK0_Msk (0x1UL << POWER_RAMSTATUS_RAMBLOCK0_Pos) /*!< Bit mask of RAMBLOCK0 field. */
+#define POWER_RAMSTATUS_RAMBLOCK0_Off (0UL) /*!< RAM block 0 is off or powering up. */
+#define POWER_RAMSTATUS_RAMBLOCK0_On (1UL) /*!< RAM block 0 is on. */
+
+/* Register: POWER_SYSTEMOFF */
+/* Description: System off register. */
+
+/* Bit 0 : Enter system off mode. */
+#define POWER_SYSTEMOFF_SYSTEMOFF_Pos (0UL) /*!< Position of SYSTEMOFF field. */
+#define POWER_SYSTEMOFF_SYSTEMOFF_Msk (0x1UL << POWER_SYSTEMOFF_SYSTEMOFF_Pos) /*!< Bit mask of SYSTEMOFF field. */
+#define POWER_SYSTEMOFF_SYSTEMOFF_Enter (1UL) /*!< Enter system off mode. */
+
+/* Register: POWER_POFCON */
+/* Description: Power failure configuration. */
+
+/* Bits 2..1 : Set threshold level. */
+#define POWER_POFCON_THRESHOLD_Pos (1UL) /*!< Position of THRESHOLD field. */
+#define POWER_POFCON_THRESHOLD_Msk (0x3UL << POWER_POFCON_THRESHOLD_Pos) /*!< Bit mask of THRESHOLD field. */
+#define POWER_POFCON_THRESHOLD_V21 (0x00UL) /*!< Set threshold to 2.1Volts. */
+#define POWER_POFCON_THRESHOLD_V23 (0x01UL) /*!< Set threshold to 2.3Volts. */
+#define POWER_POFCON_THRESHOLD_V25 (0x02UL) /*!< Set threshold to 2.5Volts. */
+#define POWER_POFCON_THRESHOLD_V27 (0x03UL) /*!< Set threshold to 2.7Volts. */
+
+/* Bit 0 : Power failure comparator enable. */
+#define POWER_POFCON_POF_Pos (0UL) /*!< Position of POF field. */
+#define POWER_POFCON_POF_Msk (0x1UL << POWER_POFCON_POF_Pos) /*!< Bit mask of POF field. */
+#define POWER_POFCON_POF_Disabled (0UL) /*!< Disabled. */
+#define POWER_POFCON_POF_Enabled (1UL) /*!< Enabled. */
+
+/* Register: POWER_GPREGRET */
+/* Description: General purpose retention register. This register is a retained register. */
+
+/* Bits 7..0 : General purpose retention register. */
+#define POWER_GPREGRET_GPREGRET_Pos (0UL) /*!< Position of GPREGRET field. */
+#define POWER_GPREGRET_GPREGRET_Msk (0xFFUL << POWER_GPREGRET_GPREGRET_Pos) /*!< Bit mask of GPREGRET field. */
+
+/* Register: POWER_RAMON */
+/* Description: Ram on/off. */
+
+/* Bit 17 : RAM block 1 behaviour in OFF mode. */
+#define POWER_RAMON_OFFRAM1_Pos (17UL) /*!< Position of OFFRAM1 field. */
+#define POWER_RAMON_OFFRAM1_Msk (0x1UL << POWER_RAMON_OFFRAM1_Pos) /*!< Bit mask of OFFRAM1 field. */
+#define POWER_RAMON_OFFRAM1_RAM1Off (0UL) /*!< RAM block 1 OFF in OFF mode. */
+#define POWER_RAMON_OFFRAM1_RAM1On (1UL) /*!< RAM block 1 ON in OFF mode. */
+
+/* Bit 16 : RAM block 0 behaviour in OFF mode. */
+#define POWER_RAMON_OFFRAM0_Pos (16UL) /*!< Position of OFFRAM0 field. */
+#define POWER_RAMON_OFFRAM0_Msk (0x1UL << POWER_RAMON_OFFRAM0_Pos) /*!< Bit mask of OFFRAM0 field. */
+#define POWER_RAMON_OFFRAM0_RAM0Off (0UL) /*!< RAM block 0 OFF in OFF mode. */
+#define POWER_RAMON_OFFRAM0_RAM0On (1UL) /*!< RAM block 0 ON in OFF mode. */
+
+/* Bit 1 : RAM block 1 behaviour in ON mode. */
+#define POWER_RAMON_ONRAM1_Pos (1UL) /*!< Position of ONRAM1 field. */
+#define POWER_RAMON_ONRAM1_Msk (0x1UL << POWER_RAMON_ONRAM1_Pos) /*!< Bit mask of ONRAM1 field. */
+#define POWER_RAMON_ONRAM1_RAM1Off (0UL) /*!< RAM block 1 OFF in ON mode. */
+#define POWER_RAMON_ONRAM1_RAM1On (1UL) /*!< RAM block 1 ON in ON mode. */
+
+/* Bit 0 : RAM block 0 behaviour in ON mode. */
+#define POWER_RAMON_ONRAM0_Pos (0UL) /*!< Position of ONRAM0 field. */
+#define POWER_RAMON_ONRAM0_Msk (0x1UL << POWER_RAMON_ONRAM0_Pos) /*!< Bit mask of ONRAM0 field. */
+#define POWER_RAMON_ONRAM0_RAM0Off (0UL) /*!< RAM block 0 OFF in ON mode. */
+#define POWER_RAMON_ONRAM0_RAM0On (1UL) /*!< RAM block 0 ON in ON mode. */
+
+/* Register: POWER_RESET */
+/* Description: Pin reset functionality configuration register. This register is a retained register. */
+
+/* Bit 0 : Enable or disable pin reset in debug interface mode. */
+#define POWER_RESET_RESET_Pos (0UL) /*!< Position of RESET field. */
+#define POWER_RESET_RESET_Msk (0x1UL << POWER_RESET_RESET_Pos) /*!< Bit mask of RESET field. */
+#define POWER_RESET_RESET_Disabled (0UL) /*!< Pin reset in debug interface mode disabled. */
+#define POWER_RESET_RESET_Enabled (1UL) /*!< Pin reset in debug interface mode enabled. */
+
+/* Register: POWER_RAMONB */
+/* Description: Ram on/off. */
+
+/* Bit 17 : RAM block 3 behaviour in OFF mode. */
+#define POWER_RAMONB_OFFRAM3_Pos (17UL) /*!< Position of OFFRAM3 field. */
+#define POWER_RAMONB_OFFRAM3_Msk (0x1UL << POWER_RAMONB_OFFRAM3_Pos) /*!< Bit mask of OFFRAM3 field. */
+#define POWER_RAMONB_OFFRAM3_RAM3Off (0UL) /*!< RAM block 3 OFF in OFF mode. */
+#define POWER_RAMONB_OFFRAM3_RAM3On (1UL) /*!< RAM block 3 ON in OFF mode. */
+
+/* Bit 16 : RAM block 2 behaviour in OFF mode. */
+#define POWER_RAMONB_OFFRAM2_Pos (16UL) /*!< Position of OFFRAM2 field. */
+#define POWER_RAMONB_OFFRAM2_Msk (0x1UL << POWER_RAMONB_OFFRAM2_Pos) /*!< Bit mask of OFFRAM2 field. */
+#define POWER_RAMONB_OFFRAM2_RAM2Off (0UL) /*!< RAM block 2 OFF in OFF mode. */
+#define POWER_RAMONB_OFFRAM2_RAM2On (1UL) /*!< RAM block 2 ON in OFF mode. */
+
+/* Bit 1 : RAM block 3 behaviour in ON mode. */
+#define POWER_RAMONB_ONRAM3_Pos (1UL) /*!< Position of ONRAM3 field. */
+#define POWER_RAMONB_ONRAM3_Msk (0x1UL << POWER_RAMONB_ONRAM3_Pos) /*!< Bit mask of ONRAM3 field. */
+#define POWER_RAMONB_ONRAM3_RAM3Off (0UL) /*!< RAM block 33 OFF in ON mode. */
+#define POWER_RAMONB_ONRAM3_RAM3On (1UL) /*!< RAM block 3 ON in ON mode. */
+
+/* Bit 0 : RAM block 2 behaviour in ON mode. */
+#define POWER_RAMONB_ONRAM2_Pos (0UL) /*!< Position of ONRAM2 field. */
+#define POWER_RAMONB_ONRAM2_Msk (0x1UL << POWER_RAMONB_ONRAM2_Pos) /*!< Bit mask of ONRAM2 field. */
+#define POWER_RAMONB_ONRAM2_RAM2Off (0UL) /*!< RAM block 2 OFF in ON mode. */
+#define POWER_RAMONB_ONRAM2_RAM2On (1UL) /*!< RAM block 2 ON in ON mode. */
+
+/* Register: POWER_DCDCEN */
+/* Description: DCDC converter enable configuration register. */
+
+/* Bit 0 : Enable DCDC converter. */
+#define POWER_DCDCEN_DCDCEN_Pos (0UL) /*!< Position of DCDCEN field. */
+#define POWER_DCDCEN_DCDCEN_Msk (0x1UL << POWER_DCDCEN_DCDCEN_Pos) /*!< Bit mask of DCDCEN field. */
+#define POWER_DCDCEN_DCDCEN_Disabled (0UL) /*!< DCDC converter disabled. */
+#define POWER_DCDCEN_DCDCEN_Enabled (1UL) /*!< DCDC converter enabled. */
+
+/* Register: POWER_DCDCFORCE */
+/* Description: DCDC power-up force register. */
+
+/* Bit 1 : DCDC power-up force on. */
+#define POWER_DCDCFORCE_FORCEON_Pos (1UL) /*!< Position of FORCEON field. */
+#define POWER_DCDCFORCE_FORCEON_Msk (0x1UL << POWER_DCDCFORCE_FORCEON_Pos) /*!< Bit mask of FORCEON field. */
+#define POWER_DCDCFORCE_FORCEON_NoForce (0UL) /*!< No force. */
+#define POWER_DCDCFORCE_FORCEON_Force (1UL) /*!< Force. */
+
+/* Bit 0 : DCDC power-up force off. */
+#define POWER_DCDCFORCE_FORCEOFF_Pos (0UL) /*!< Position of FORCEOFF field. */
+#define POWER_DCDCFORCE_FORCEOFF_Msk (0x1UL << POWER_DCDCFORCE_FORCEOFF_Pos) /*!< Bit mask of FORCEOFF field. */
+#define POWER_DCDCFORCE_FORCEOFF_NoForce (0UL) /*!< No force. */
+#define POWER_DCDCFORCE_FORCEOFF_Force (1UL) /*!< Force. */
+
+
+/* Peripheral: PPI */
+/* Description: PPI controller. */
+
+/* Register: PPI_CHEN */
+/* Description: Channel enable. */
+
+/* Bit 31 : Enable PPI channel 31. */
+#define PPI_CHEN_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHEN_CH31_Msk (0x1UL << PPI_CHEN_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHEN_CH31_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH31_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 30 : Enable PPI channel 30. */
+#define PPI_CHEN_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHEN_CH30_Msk (0x1UL << PPI_CHEN_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHEN_CH30_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH30_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 29 : Enable PPI channel 29. */
+#define PPI_CHEN_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHEN_CH29_Msk (0x1UL << PPI_CHEN_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHEN_CH29_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH29_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 28 : Enable PPI channel 28. */
+#define PPI_CHEN_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHEN_CH28_Msk (0x1UL << PPI_CHEN_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHEN_CH28_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH28_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 27 : Enable PPI channel 27. */
+#define PPI_CHEN_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHEN_CH27_Msk (0x1UL << PPI_CHEN_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHEN_CH27_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH27_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 26 : Enable PPI channel 26. */
+#define PPI_CHEN_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHEN_CH26_Msk (0x1UL << PPI_CHEN_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHEN_CH26_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH26_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 25 : Enable PPI channel 25. */
+#define PPI_CHEN_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHEN_CH25_Msk (0x1UL << PPI_CHEN_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHEN_CH25_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH25_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 24 : Enable PPI channel 24. */
+#define PPI_CHEN_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHEN_CH24_Msk (0x1UL << PPI_CHEN_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHEN_CH24_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH24_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 23 : Enable PPI channel 23. */
+#define PPI_CHEN_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHEN_CH23_Msk (0x1UL << PPI_CHEN_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHEN_CH23_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH23_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 22 : Enable PPI channel 22. */
+#define PPI_CHEN_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHEN_CH22_Msk (0x1UL << PPI_CHEN_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHEN_CH22_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH22_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 21 : Enable PPI channel 21. */
+#define PPI_CHEN_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHEN_CH21_Msk (0x1UL << PPI_CHEN_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHEN_CH21_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH21_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 20 : Enable PPI channel 20. */
+#define PPI_CHEN_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHEN_CH20_Msk (0x1UL << PPI_CHEN_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHEN_CH20_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH20_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 15 : Enable PPI channel 15. */
+#define PPI_CHEN_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHEN_CH15_Msk (0x1UL << PPI_CHEN_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHEN_CH15_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH15_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 14 : Enable PPI channel 14. */
+#define PPI_CHEN_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHEN_CH14_Msk (0x1UL << PPI_CHEN_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHEN_CH14_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH14_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 13 : Enable PPI channel 13. */
+#define PPI_CHEN_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHEN_CH13_Msk (0x1UL << PPI_CHEN_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHEN_CH13_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH13_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 12 : Enable PPI channel 12. */
+#define PPI_CHEN_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHEN_CH12_Msk (0x1UL << PPI_CHEN_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHEN_CH12_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH12_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 11 : Enable PPI channel 11. */
+#define PPI_CHEN_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHEN_CH11_Msk (0x1UL << PPI_CHEN_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHEN_CH11_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH11_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 10 : Enable PPI channel 10. */
+#define PPI_CHEN_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHEN_CH10_Msk (0x1UL << PPI_CHEN_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHEN_CH10_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH10_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 9 : Enable PPI channel 9. */
+#define PPI_CHEN_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHEN_CH9_Msk (0x1UL << PPI_CHEN_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHEN_CH9_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH9_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 8 : Enable PPI channel 8. */
+#define PPI_CHEN_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHEN_CH8_Msk (0x1UL << PPI_CHEN_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHEN_CH8_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH8_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 7 : Enable PPI channel 7. */
+#define PPI_CHEN_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHEN_CH7_Msk (0x1UL << PPI_CHEN_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHEN_CH7_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH7_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 6 : Enable PPI channel 6. */
+#define PPI_CHEN_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHEN_CH6_Msk (0x1UL << PPI_CHEN_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHEN_CH6_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH6_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 5 : Enable PPI channel 5. */
+#define PPI_CHEN_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHEN_CH5_Msk (0x1UL << PPI_CHEN_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHEN_CH5_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH5_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 4 : Enable PPI channel 4. */
+#define PPI_CHEN_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHEN_CH4_Msk (0x1UL << PPI_CHEN_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHEN_CH4_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH4_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 3 : Enable PPI channel 3. */
+#define PPI_CHEN_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHEN_CH3_Msk (0x1UL << PPI_CHEN_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHEN_CH3_Disabled (0UL) /*!< Channel disabled */
+#define PPI_CHEN_CH3_Enabled (1UL) /*!< Channel enabled */
+
+/* Bit 2 : Enable PPI channel 2. */
+#define PPI_CHEN_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHEN_CH2_Msk (0x1UL << PPI_CHEN_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHEN_CH2_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH2_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 1 : Enable PPI channel 1. */
+#define PPI_CHEN_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHEN_CH1_Msk (0x1UL << PPI_CHEN_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHEN_CH1_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH1_Enabled (1UL) /*!< Channel enabled. */
+
+/* Bit 0 : Enable PPI channel 0. */
+#define PPI_CHEN_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHEN_CH0_Msk (0x1UL << PPI_CHEN_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHEN_CH0_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHEN_CH0_Enabled (1UL) /*!< Channel enabled. */
+
+/* Register: PPI_CHENSET */
+/* Description: Channel enable set. */
+
+/* Bit 31 : Enable PPI channel 31. */
+#define PPI_CHENSET_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHENSET_CH31_Msk (0x1UL << PPI_CHENSET_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHENSET_CH31_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH31_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH31_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 30 : Enable PPI channel 30. */
+#define PPI_CHENSET_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHENSET_CH30_Msk (0x1UL << PPI_CHENSET_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHENSET_CH30_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH30_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH30_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 29 : Enable PPI channel 29. */
+#define PPI_CHENSET_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHENSET_CH29_Msk (0x1UL << PPI_CHENSET_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHENSET_CH29_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH29_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH29_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 28 : Enable PPI channel 28. */
+#define PPI_CHENSET_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHENSET_CH28_Msk (0x1UL << PPI_CHENSET_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHENSET_CH28_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH28_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH28_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 27 : Enable PPI channel 27. */
+#define PPI_CHENSET_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHENSET_CH27_Msk (0x1UL << PPI_CHENSET_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHENSET_CH27_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH27_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH27_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 26 : Enable PPI channel 26. */
+#define PPI_CHENSET_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHENSET_CH26_Msk (0x1UL << PPI_CHENSET_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHENSET_CH26_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH26_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH26_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 25 : Enable PPI channel 25. */
+#define PPI_CHENSET_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHENSET_CH25_Msk (0x1UL << PPI_CHENSET_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHENSET_CH25_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH25_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH25_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 24 : Enable PPI channel 24. */
+#define PPI_CHENSET_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHENSET_CH24_Msk (0x1UL << PPI_CHENSET_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHENSET_CH24_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH24_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH24_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 23 : Enable PPI channel 23. */
+#define PPI_CHENSET_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHENSET_CH23_Msk (0x1UL << PPI_CHENSET_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHENSET_CH23_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH23_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH23_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 22 : Enable PPI channel 22. */
+#define PPI_CHENSET_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHENSET_CH22_Msk (0x1UL << PPI_CHENSET_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHENSET_CH22_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH22_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH22_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 21 : Enable PPI channel 21. */
+#define PPI_CHENSET_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHENSET_CH21_Msk (0x1UL << PPI_CHENSET_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHENSET_CH21_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH21_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH21_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 20 : Enable PPI channel 20. */
+#define PPI_CHENSET_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHENSET_CH20_Msk (0x1UL << PPI_CHENSET_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHENSET_CH20_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH20_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH20_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 15 : Enable PPI channel 15. */
+#define PPI_CHENSET_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHENSET_CH15_Msk (0x1UL << PPI_CHENSET_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHENSET_CH15_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH15_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH15_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 14 : Enable PPI channel 14. */
+#define PPI_CHENSET_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHENSET_CH14_Msk (0x1UL << PPI_CHENSET_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHENSET_CH14_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH14_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH14_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 13 : Enable PPI channel 13. */
+#define PPI_CHENSET_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHENSET_CH13_Msk (0x1UL << PPI_CHENSET_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHENSET_CH13_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH13_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH13_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 12 : Enable PPI channel 12. */
+#define PPI_CHENSET_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHENSET_CH12_Msk (0x1UL << PPI_CHENSET_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHENSET_CH12_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH12_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH12_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 11 : Enable PPI channel 11. */
+#define PPI_CHENSET_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHENSET_CH11_Msk (0x1UL << PPI_CHENSET_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHENSET_CH11_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH11_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH11_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 10 : Enable PPI channel 10. */
+#define PPI_CHENSET_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHENSET_CH10_Msk (0x1UL << PPI_CHENSET_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHENSET_CH10_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH10_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH10_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 9 : Enable PPI channel 9. */
+#define PPI_CHENSET_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHENSET_CH9_Msk (0x1UL << PPI_CHENSET_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHENSET_CH9_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH9_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH9_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 8 : Enable PPI channel 8. */
+#define PPI_CHENSET_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHENSET_CH8_Msk (0x1UL << PPI_CHENSET_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHENSET_CH8_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH8_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH8_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 7 : Enable PPI channel 7. */
+#define PPI_CHENSET_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHENSET_CH7_Msk (0x1UL << PPI_CHENSET_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHENSET_CH7_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH7_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH7_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 6 : Enable PPI channel 6. */
+#define PPI_CHENSET_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHENSET_CH6_Msk (0x1UL << PPI_CHENSET_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHENSET_CH6_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH6_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH6_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 5 : Enable PPI channel 5. */
+#define PPI_CHENSET_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHENSET_CH5_Msk (0x1UL << PPI_CHENSET_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHENSET_CH5_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH5_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH5_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 4 : Enable PPI channel 4. */
+#define PPI_CHENSET_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHENSET_CH4_Msk (0x1UL << PPI_CHENSET_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHENSET_CH4_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH4_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH4_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 3 : Enable PPI channel 3. */
+#define PPI_CHENSET_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHENSET_CH3_Msk (0x1UL << PPI_CHENSET_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHENSET_CH3_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH3_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH3_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 2 : Enable PPI channel 2. */
+#define PPI_CHENSET_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHENSET_CH2_Msk (0x1UL << PPI_CHENSET_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHENSET_CH2_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH2_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH2_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 1 : Enable PPI channel 1. */
+#define PPI_CHENSET_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHENSET_CH1_Msk (0x1UL << PPI_CHENSET_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHENSET_CH1_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH1_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH1_Set (1UL) /*!< Enable channel on write. */
+
+/* Bit 0 : Enable PPI channel 0. */
+#define PPI_CHENSET_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHENSET_CH0_Msk (0x1UL << PPI_CHENSET_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHENSET_CH0_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENSET_CH0_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENSET_CH0_Set (1UL) /*!< Enable channel on write. */
+
+/* Register: PPI_CHENCLR */
+/* Description: Channel enable clear. */
+
+/* Bit 31 : Disable PPI channel 31. */
+#define PPI_CHENCLR_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHENCLR_CH31_Msk (0x1UL << PPI_CHENCLR_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHENCLR_CH31_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH31_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH31_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 30 : Disable PPI channel 30. */
+#define PPI_CHENCLR_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHENCLR_CH30_Msk (0x1UL << PPI_CHENCLR_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHENCLR_CH30_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH30_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH30_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 29 : Disable PPI channel 29. */
+#define PPI_CHENCLR_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHENCLR_CH29_Msk (0x1UL << PPI_CHENCLR_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHENCLR_CH29_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH29_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH29_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 28 : Disable PPI channel 28. */
+#define PPI_CHENCLR_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHENCLR_CH28_Msk (0x1UL << PPI_CHENCLR_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHENCLR_CH28_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH28_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH28_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 27 : Disable PPI channel 27. */
+#define PPI_CHENCLR_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHENCLR_CH27_Msk (0x1UL << PPI_CHENCLR_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHENCLR_CH27_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH27_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH27_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 26 : Disable PPI channel 26. */
+#define PPI_CHENCLR_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHENCLR_CH26_Msk (0x1UL << PPI_CHENCLR_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHENCLR_CH26_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH26_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH26_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 25 : Disable PPI channel 25. */
+#define PPI_CHENCLR_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHENCLR_CH25_Msk (0x1UL << PPI_CHENCLR_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHENCLR_CH25_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH25_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH25_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 24 : Disable PPI channel 24. */
+#define PPI_CHENCLR_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHENCLR_CH24_Msk (0x1UL << PPI_CHENCLR_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHENCLR_CH24_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH24_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH24_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 23 : Disable PPI channel 23. */
+#define PPI_CHENCLR_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHENCLR_CH23_Msk (0x1UL << PPI_CHENCLR_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHENCLR_CH23_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH23_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH23_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 22 : Disable PPI channel 22. */
+#define PPI_CHENCLR_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHENCLR_CH22_Msk (0x1UL << PPI_CHENCLR_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHENCLR_CH22_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH22_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH22_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 21 : Disable PPI channel 21. */
+#define PPI_CHENCLR_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHENCLR_CH21_Msk (0x1UL << PPI_CHENCLR_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHENCLR_CH21_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH21_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH21_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 20 : Disable PPI channel 20. */
+#define PPI_CHENCLR_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHENCLR_CH20_Msk (0x1UL << PPI_CHENCLR_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHENCLR_CH20_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH20_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH20_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 15 : Disable PPI channel 15. */
+#define PPI_CHENCLR_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHENCLR_CH15_Msk (0x1UL << PPI_CHENCLR_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHENCLR_CH15_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH15_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH15_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 14 : Disable PPI channel 14. */
+#define PPI_CHENCLR_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHENCLR_CH14_Msk (0x1UL << PPI_CHENCLR_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHENCLR_CH14_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH14_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH14_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 13 : Disable PPI channel 13. */
+#define PPI_CHENCLR_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHENCLR_CH13_Msk (0x1UL << PPI_CHENCLR_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHENCLR_CH13_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH13_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH13_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 12 : Disable PPI channel 12. */
+#define PPI_CHENCLR_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHENCLR_CH12_Msk (0x1UL << PPI_CHENCLR_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHENCLR_CH12_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH12_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH12_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 11 : Disable PPI channel 11. */
+#define PPI_CHENCLR_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHENCLR_CH11_Msk (0x1UL << PPI_CHENCLR_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHENCLR_CH11_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH11_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH11_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 10 : Disable PPI channel 10. */
+#define PPI_CHENCLR_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHENCLR_CH10_Msk (0x1UL << PPI_CHENCLR_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHENCLR_CH10_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH10_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH10_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 9 : Disable PPI channel 9. */
+#define PPI_CHENCLR_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHENCLR_CH9_Msk (0x1UL << PPI_CHENCLR_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHENCLR_CH9_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH9_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH9_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 8 : Disable PPI channel 8. */
+#define PPI_CHENCLR_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHENCLR_CH8_Msk (0x1UL << PPI_CHENCLR_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHENCLR_CH8_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH8_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH8_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 7 : Disable PPI channel 7. */
+#define PPI_CHENCLR_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHENCLR_CH7_Msk (0x1UL << PPI_CHENCLR_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHENCLR_CH7_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH7_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH7_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 6 : Disable PPI channel 6. */
+#define PPI_CHENCLR_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHENCLR_CH6_Msk (0x1UL << PPI_CHENCLR_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHENCLR_CH6_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH6_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH6_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 5 : Disable PPI channel 5. */
+#define PPI_CHENCLR_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHENCLR_CH5_Msk (0x1UL << PPI_CHENCLR_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHENCLR_CH5_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH5_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH5_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 4 : Disable PPI channel 4. */
+#define PPI_CHENCLR_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHENCLR_CH4_Msk (0x1UL << PPI_CHENCLR_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHENCLR_CH4_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH4_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH4_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 3 : Disable PPI channel 3. */
+#define PPI_CHENCLR_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHENCLR_CH3_Msk (0x1UL << PPI_CHENCLR_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHENCLR_CH3_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH3_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH3_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 2 : Disable PPI channel 2. */
+#define PPI_CHENCLR_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHENCLR_CH2_Msk (0x1UL << PPI_CHENCLR_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHENCLR_CH2_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH2_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH2_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 1 : Disable PPI channel 1. */
+#define PPI_CHENCLR_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHENCLR_CH1_Msk (0x1UL << PPI_CHENCLR_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHENCLR_CH1_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH1_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH1_Clear (1UL) /*!< Disable channel on write. */
+
+/* Bit 0 : Disable PPI channel 0. */
+#define PPI_CHENCLR_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHENCLR_CH0_Msk (0x1UL << PPI_CHENCLR_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHENCLR_CH0_Disabled (0UL) /*!< Channel disabled. */
+#define PPI_CHENCLR_CH0_Enabled (1UL) /*!< Channel enabled. */
+#define PPI_CHENCLR_CH0_Clear (1UL) /*!< Disable channel on write. */
+
+/* Register: PPI_CHG */
+/* Description: Channel group configuration. */
+
+/* Bit 31 : Include CH31 in channel group. */
+#define PPI_CHG_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHG_CH31_Msk (0x1UL << PPI_CHG_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHG_CH31_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH31_Included (1UL) /*!< Channel included. */
+
+/* Bit 30 : Include CH30 in channel group. */
+#define PPI_CHG_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHG_CH30_Msk (0x1UL << PPI_CHG_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHG_CH30_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH30_Included (1UL) /*!< Channel included. */
+
+/* Bit 29 : Include CH29 in channel group. */
+#define PPI_CHG_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHG_CH29_Msk (0x1UL << PPI_CHG_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHG_CH29_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH29_Included (1UL) /*!< Channel included. */
+
+/* Bit 28 : Include CH28 in channel group. */
+#define PPI_CHG_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHG_CH28_Msk (0x1UL << PPI_CHG_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHG_CH28_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH28_Included (1UL) /*!< Channel included. */
+
+/* Bit 27 : Include CH27 in channel group. */
+#define PPI_CHG_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHG_CH27_Msk (0x1UL << PPI_CHG_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHG_CH27_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH27_Included (1UL) /*!< Channel included. */
+
+/* Bit 26 : Include CH26 in channel group. */
+#define PPI_CHG_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHG_CH26_Msk (0x1UL << PPI_CHG_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHG_CH26_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH26_Included (1UL) /*!< Channel included. */
+
+/* Bit 25 : Include CH25 in channel group. */
+#define PPI_CHG_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHG_CH25_Msk (0x1UL << PPI_CHG_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHG_CH25_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH25_Included (1UL) /*!< Channel included. */
+
+/* Bit 24 : Include CH24 in channel group. */
+#define PPI_CHG_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHG_CH24_Msk (0x1UL << PPI_CHG_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHG_CH24_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH24_Included (1UL) /*!< Channel included. */
+
+/* Bit 23 : Include CH23 in channel group. */
+#define PPI_CHG_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHG_CH23_Msk (0x1UL << PPI_CHG_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHG_CH23_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH23_Included (1UL) /*!< Channel included. */
+
+/* Bit 22 : Include CH22 in channel group. */
+#define PPI_CHG_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHG_CH22_Msk (0x1UL << PPI_CHG_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHG_CH22_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH22_Included (1UL) /*!< Channel included. */
+
+/* Bit 21 : Include CH21 in channel group. */
+#define PPI_CHG_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHG_CH21_Msk (0x1UL << PPI_CHG_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHG_CH21_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH21_Included (1UL) /*!< Channel included. */
+
+/* Bit 20 : Include CH20 in channel group. */
+#define PPI_CHG_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHG_CH20_Msk (0x1UL << PPI_CHG_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHG_CH20_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH20_Included (1UL) /*!< Channel included. */
+
+/* Bit 15 : Include CH15 in channel group. */
+#define PPI_CHG_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHG_CH15_Msk (0x1UL << PPI_CHG_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHG_CH15_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH15_Included (1UL) /*!< Channel included. */
+
+/* Bit 14 : Include CH14 in channel group. */
+#define PPI_CHG_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHG_CH14_Msk (0x1UL << PPI_CHG_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHG_CH14_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH14_Included (1UL) /*!< Channel included. */
+
+/* Bit 13 : Include CH13 in channel group. */
+#define PPI_CHG_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHG_CH13_Msk (0x1UL << PPI_CHG_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHG_CH13_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH13_Included (1UL) /*!< Channel included. */
+
+/* Bit 12 : Include CH12 in channel group. */
+#define PPI_CHG_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHG_CH12_Msk (0x1UL << PPI_CHG_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHG_CH12_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH12_Included (1UL) /*!< Channel included. */
+
+/* Bit 11 : Include CH11 in channel group. */
+#define PPI_CHG_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHG_CH11_Msk (0x1UL << PPI_CHG_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHG_CH11_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH11_Included (1UL) /*!< Channel included. */
+
+/* Bit 10 : Include CH10 in channel group. */
+#define PPI_CHG_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHG_CH10_Msk (0x1UL << PPI_CHG_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHG_CH10_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH10_Included (1UL) /*!< Channel included. */
+
+/* Bit 9 : Include CH9 in channel group. */
+#define PPI_CHG_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHG_CH9_Msk (0x1UL << PPI_CHG_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHG_CH9_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH9_Included (1UL) /*!< Channel included. */
+
+/* Bit 8 : Include CH8 in channel group. */
+#define PPI_CHG_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHG_CH8_Msk (0x1UL << PPI_CHG_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHG_CH8_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH8_Included (1UL) /*!< Channel included. */
+
+/* Bit 7 : Include CH7 in channel group. */
+#define PPI_CHG_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHG_CH7_Msk (0x1UL << PPI_CHG_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHG_CH7_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH7_Included (1UL) /*!< Channel included. */
+
+/* Bit 6 : Include CH6 in channel group. */
+#define PPI_CHG_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHG_CH6_Msk (0x1UL << PPI_CHG_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHG_CH6_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH6_Included (1UL) /*!< Channel included. */
+
+/* Bit 5 : Include CH5 in channel group. */
+#define PPI_CHG_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHG_CH5_Msk (0x1UL << PPI_CHG_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHG_CH5_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH5_Included (1UL) /*!< Channel included. */
+
+/* Bit 4 : Include CH4 in channel group. */
+#define PPI_CHG_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHG_CH4_Msk (0x1UL << PPI_CHG_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHG_CH4_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH4_Included (1UL) /*!< Channel included. */
+
+/* Bit 3 : Include CH3 in channel group. */
+#define PPI_CHG_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHG_CH3_Msk (0x1UL << PPI_CHG_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHG_CH3_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH3_Included (1UL) /*!< Channel included. */
+
+/* Bit 2 : Include CH2 in channel group. */
+#define PPI_CHG_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHG_CH2_Msk (0x1UL << PPI_CHG_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHG_CH2_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH2_Included (1UL) /*!< Channel included. */
+
+/* Bit 1 : Include CH1 in channel group. */
+#define PPI_CHG_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHG_CH1_Msk (0x1UL << PPI_CHG_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHG_CH1_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH1_Included (1UL) /*!< Channel included. */
+
+/* Bit 0 : Include CH0 in channel group. */
+#define PPI_CHG_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHG_CH0_Msk (0x1UL << PPI_CHG_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHG_CH0_Excluded (0UL) /*!< Channel excluded. */
+#define PPI_CHG_CH0_Included (1UL) /*!< Channel included. */
+
+
+/* Peripheral: QDEC */
+/* Description: Rotary decoder. */
+
+/* Register: QDEC_SHORTS */
+/* Description: Shortcuts for the QDEC. */
+
+/* Bit 1 : Shortcut between SAMPLERDY event and STOP task. */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Pos (1UL) /*!< Position of SAMPLERDY_STOP field. */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Msk (0x1UL << QDEC_SHORTS_SAMPLERDY_STOP_Pos) /*!< Bit mask of SAMPLERDY_STOP field. */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Disabled (0UL) /*!< Shortcut disabled. */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 0 : Shortcut between REPORTRDY event and READCLRACC task. */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Pos (0UL) /*!< Position of REPORTRDY_READCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Msk (0x1UL << QDEC_SHORTS_REPORTRDY_READCLRACC_Pos) /*!< Bit mask of REPORTRDY_READCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Disabled (0UL) /*!< Shortcut disabled. */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Register: QDEC_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 2 : Enable interrupt on ACCOF event. */
+#define QDEC_INTENSET_ACCOF_Pos (2UL) /*!< Position of ACCOF field. */
+#define QDEC_INTENSET_ACCOF_Msk (0x1UL << QDEC_INTENSET_ACCOF_Pos) /*!< Bit mask of ACCOF field. */
+#define QDEC_INTENSET_ACCOF_Disabled (0UL) /*!< Interrupt disabled. */
+#define QDEC_INTENSET_ACCOF_Enabled (1UL) /*!< Interrupt enabled. */
+#define QDEC_INTENSET_ACCOF_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 1 : Enable interrupt on REPORTRDY event. */
+#define QDEC_INTENSET_REPORTRDY_Pos (1UL) /*!< Position of REPORTRDY field. */
+#define QDEC_INTENSET_REPORTRDY_Msk (0x1UL << QDEC_INTENSET_REPORTRDY_Pos) /*!< Bit mask of REPORTRDY field. */
+#define QDEC_INTENSET_REPORTRDY_Disabled (0UL) /*!< Interrupt disabled. */
+#define QDEC_INTENSET_REPORTRDY_Enabled (1UL) /*!< Interrupt enabled. */
+#define QDEC_INTENSET_REPORTRDY_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 0 : Enable interrupt on SAMPLERDY event. */
+#define QDEC_INTENSET_SAMPLERDY_Pos (0UL) /*!< Position of SAMPLERDY field. */
+#define QDEC_INTENSET_SAMPLERDY_Msk (0x1UL << QDEC_INTENSET_SAMPLERDY_Pos) /*!< Bit mask of SAMPLERDY field. */
+#define QDEC_INTENSET_SAMPLERDY_Disabled (0UL) /*!< Interrupt disabled. */
+#define QDEC_INTENSET_SAMPLERDY_Enabled (1UL) /*!< Interrupt enabled. */
+#define QDEC_INTENSET_SAMPLERDY_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: QDEC_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 2 : Disable interrupt on ACCOF event. */
+#define QDEC_INTENCLR_ACCOF_Pos (2UL) /*!< Position of ACCOF field. */
+#define QDEC_INTENCLR_ACCOF_Msk (0x1UL << QDEC_INTENCLR_ACCOF_Pos) /*!< Bit mask of ACCOF field. */
+#define QDEC_INTENCLR_ACCOF_Disabled (0UL) /*!< Interrupt disabled. */
+#define QDEC_INTENCLR_ACCOF_Enabled (1UL) /*!< Interrupt enabled. */
+#define QDEC_INTENCLR_ACCOF_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 1 : Disable interrupt on REPORTRDY event. */
+#define QDEC_INTENCLR_REPORTRDY_Pos (1UL) /*!< Position of REPORTRDY field. */
+#define QDEC_INTENCLR_REPORTRDY_Msk (0x1UL << QDEC_INTENCLR_REPORTRDY_Pos) /*!< Bit mask of REPORTRDY field. */
+#define QDEC_INTENCLR_REPORTRDY_Disabled (0UL) /*!< Interrupt disabled. */
+#define QDEC_INTENCLR_REPORTRDY_Enabled (1UL) /*!< Interrupt enabled. */
+#define QDEC_INTENCLR_REPORTRDY_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 0 : Disable interrupt on SAMPLERDY event. */
+#define QDEC_INTENCLR_SAMPLERDY_Pos (0UL) /*!< Position of SAMPLERDY field. */
+#define QDEC_INTENCLR_SAMPLERDY_Msk (0x1UL << QDEC_INTENCLR_SAMPLERDY_Pos) /*!< Bit mask of SAMPLERDY field. */
+#define QDEC_INTENCLR_SAMPLERDY_Disabled (0UL) /*!< Interrupt disabled. */
+#define QDEC_INTENCLR_SAMPLERDY_Enabled (1UL) /*!< Interrupt enabled. */
+#define QDEC_INTENCLR_SAMPLERDY_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: QDEC_ENABLE */
+/* Description: Enable the QDEC. */
+
+/* Bit 0 : Enable or disable QDEC. */
+#define QDEC_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define QDEC_ENABLE_ENABLE_Msk (0x1UL << QDEC_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define QDEC_ENABLE_ENABLE_Disabled (0UL) /*!< Disabled QDEC. */
+#define QDEC_ENABLE_ENABLE_Enabled (1UL) /*!< Enable QDEC. */
+
+/* Register: QDEC_LEDPOL */
+/* Description: LED output pin polarity. */
+
+/* Bit 0 : LED output pin polarity. */
+#define QDEC_LEDPOL_LEDPOL_Pos (0UL) /*!< Position of LEDPOL field. */
+#define QDEC_LEDPOL_LEDPOL_Msk (0x1UL << QDEC_LEDPOL_LEDPOL_Pos) /*!< Bit mask of LEDPOL field. */
+#define QDEC_LEDPOL_LEDPOL_ActiveLow (0UL) /*!< LED output is active low. */
+#define QDEC_LEDPOL_LEDPOL_ActiveHigh (1UL) /*!< LED output is active high. */
+
+/* Register: QDEC_SAMPLEPER */
+/* Description: Sample period. */
+
+/* Bits 2..0 : Sample period. */
+#define QDEC_SAMPLEPER_SAMPLEPER_Pos (0UL) /*!< Position of SAMPLEPER field. */
+#define QDEC_SAMPLEPER_SAMPLEPER_Msk (0x7UL << QDEC_SAMPLEPER_SAMPLEPER_Pos) /*!< Bit mask of SAMPLEPER field. */
+#define QDEC_SAMPLEPER_SAMPLEPER_128us (0x00UL) /*!< 128us sample period. */
+#define QDEC_SAMPLEPER_SAMPLEPER_256us (0x01UL) /*!< 256us sample period. */
+#define QDEC_SAMPLEPER_SAMPLEPER_512us (0x02UL) /*!< 512us sample period. */
+#define QDEC_SAMPLEPER_SAMPLEPER_1024us (0x03UL) /*!< 1024us sample period. */
+#define QDEC_SAMPLEPER_SAMPLEPER_2048us (0x04UL) /*!< 2048us sample period. */
+#define QDEC_SAMPLEPER_SAMPLEPER_4096us (0x05UL) /*!< 4096us sample period. */
+#define QDEC_SAMPLEPER_SAMPLEPER_8192us (0x06UL) /*!< 8192us sample period. */
+#define QDEC_SAMPLEPER_SAMPLEPER_16384us (0x07UL) /*!< 16384us sample period. */
+
+/* Register: QDEC_SAMPLE */
+/* Description: Motion sample value. */
+
+/* Bits 31..0 : Last sample taken in compliment to 2. */
+#define QDEC_SAMPLE_SAMPLE_Pos (0UL) /*!< Position of SAMPLE field. */
+#define QDEC_SAMPLE_SAMPLE_Msk (0xFFFFFFFFUL << QDEC_SAMPLE_SAMPLE_Pos) /*!< Bit mask of SAMPLE field. */
+
+/* Register: QDEC_REPORTPER */
+/* Description: Number of samples to generate an EVENT_REPORTRDY. */
+
+/* Bits 2..0 : Number of samples to generate an EVENT_REPORTRDY. */
+#define QDEC_REPORTPER_REPORTPER_Pos (0UL) /*!< Position of REPORTPER field. */
+#define QDEC_REPORTPER_REPORTPER_Msk (0x7UL << QDEC_REPORTPER_REPORTPER_Pos) /*!< Bit mask of REPORTPER field. */
+#define QDEC_REPORTPER_REPORTPER_10Smpl (0x00UL) /*!< 10 samples per report. */
+#define QDEC_REPORTPER_REPORTPER_40Smpl (0x01UL) /*!< 40 samples per report. */
+#define QDEC_REPORTPER_REPORTPER_80Smpl (0x02UL) /*!< 80 samples per report. */
+#define QDEC_REPORTPER_REPORTPER_120Smpl (0x03UL) /*!< 120 samples per report. */
+#define QDEC_REPORTPER_REPORTPER_160Smpl (0x04UL) /*!< 160 samples per report. */
+#define QDEC_REPORTPER_REPORTPER_200Smpl (0x05UL) /*!< 200 samples per report. */
+#define QDEC_REPORTPER_REPORTPER_240Smpl (0x06UL) /*!< 240 samples per report. */
+#define QDEC_REPORTPER_REPORTPER_280Smpl (0x07UL) /*!< 280 samples per report. */
+
+/* Register: QDEC_DBFEN */
+/* Description: Enable debouncer input filters. */
+
+/* Bit 0 : Enable debounce input filters. */
+#define QDEC_DBFEN_DBFEN_Pos (0UL) /*!< Position of DBFEN field. */
+#define QDEC_DBFEN_DBFEN_Msk (0x1UL << QDEC_DBFEN_DBFEN_Pos) /*!< Bit mask of DBFEN field. */
+#define QDEC_DBFEN_DBFEN_Disabled (0UL) /*!< Debounce input filters disabled. */
+#define QDEC_DBFEN_DBFEN_Enabled (1UL) /*!< Debounce input filters enabled. */
+
+/* Register: QDEC_LEDPRE */
+/* Description: Time LED is switched ON before the sample. */
+
+/* Bits 8..0 : Period in us the LED in switched on prior to sampling. */
+#define QDEC_LEDPRE_LEDPRE_Pos (0UL) /*!< Position of LEDPRE field. */
+#define QDEC_LEDPRE_LEDPRE_Msk (0x1FFUL << QDEC_LEDPRE_LEDPRE_Pos) /*!< Bit mask of LEDPRE field. */
+
+/* Register: QDEC_ACCDBL */
+/* Description: Accumulated double (error) transitions register. */
+
+/* Bits 3..0 : Accumulated double (error) transitions. */
+#define QDEC_ACCDBL_ACCDBL_Pos (0UL) /*!< Position of ACCDBL field. */
+#define QDEC_ACCDBL_ACCDBL_Msk (0xFUL << QDEC_ACCDBL_ACCDBL_Pos) /*!< Bit mask of ACCDBL field. */
+
+/* Register: QDEC_ACCDBLREAD */
+/* Description: Snapshot of ACCDBL register. Value generated by the TASKS_READCLEACC task. */
+
+/* Bits 3..0 : Snapshot of accumulated double (error) transitions. */
+#define QDEC_ACCDBLREAD_ACCDBLREAD_Pos (0UL) /*!< Position of ACCDBLREAD field. */
+#define QDEC_ACCDBLREAD_ACCDBLREAD_Msk (0xFUL << QDEC_ACCDBLREAD_ACCDBLREAD_Pos) /*!< Bit mask of ACCDBLREAD field. */
+
+/* Register: QDEC_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define QDEC_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define QDEC_POWER_POWER_Msk (0x1UL << QDEC_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define QDEC_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define QDEC_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: RADIO */
+/* Description: The radio. */
+
+/* Register: RADIO_SHORTS */
+/* Description: Shortcuts for the radio. */
+
+/* Bit 8 : Shortcut between DISABLED event and RSSISTOP task. */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Pos (8UL) /*!< Position of DISABLED_RSSISTOP field. */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Msk (0x1UL << RADIO_SHORTS_DISABLED_RSSISTOP_Pos) /*!< Bit mask of DISABLED_RSSISTOP field. */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Disabled (0UL) /*!< Shortcut disabled. */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 6 : Shortcut between ADDRESS event and BCSTART task. */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Pos (6UL) /*!< Position of ADDRESS_BCSTART field. */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Msk (0x1UL << RADIO_SHORTS_ADDRESS_BCSTART_Pos) /*!< Bit mask of ADDRESS_BCSTART field. */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Disabled (0UL) /*!< Shortcut disabled. */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 5 : Shortcut between END event and START task. */
+#define RADIO_SHORTS_END_START_Pos (5UL) /*!< Position of END_START field. */
+#define RADIO_SHORTS_END_START_Msk (0x1UL << RADIO_SHORTS_END_START_Pos) /*!< Bit mask of END_START field. */
+#define RADIO_SHORTS_END_START_Disabled (0UL) /*!< Shortcut disabled. */
+#define RADIO_SHORTS_END_START_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 4 : Shortcut between ADDRESS event and RSSISTART task. */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Pos (4UL) /*!< Position of ADDRESS_RSSISTART field. */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Msk (0x1UL << RADIO_SHORTS_ADDRESS_RSSISTART_Pos) /*!< Bit mask of ADDRESS_RSSISTART field. */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Disabled (0UL) /*!< Shortcut disabled. */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 3 : Shortcut between DISABLED event and RXEN task. */
+#define RADIO_SHORTS_DISABLED_RXEN_Pos (3UL) /*!< Position of DISABLED_RXEN field. */
+#define RADIO_SHORTS_DISABLED_RXEN_Msk (0x1UL << RADIO_SHORTS_DISABLED_RXEN_Pos) /*!< Bit mask of DISABLED_RXEN field. */
+#define RADIO_SHORTS_DISABLED_RXEN_Disabled (0UL) /*!< Shortcut disabled. */
+#define RADIO_SHORTS_DISABLED_RXEN_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 2 : Shortcut between DISABLED event and TXEN task. */
+#define RADIO_SHORTS_DISABLED_TXEN_Pos (2UL) /*!< Position of DISABLED_TXEN field. */
+#define RADIO_SHORTS_DISABLED_TXEN_Msk (0x1UL << RADIO_SHORTS_DISABLED_TXEN_Pos) /*!< Bit mask of DISABLED_TXEN field. */
+#define RADIO_SHORTS_DISABLED_TXEN_Disabled (0UL) /*!< Shortcut disabled. */
+#define RADIO_SHORTS_DISABLED_TXEN_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 1 : Shortcut between END event and DISABLE task. */
+#define RADIO_SHORTS_END_DISABLE_Pos (1UL) /*!< Position of END_DISABLE field. */
+#define RADIO_SHORTS_END_DISABLE_Msk (0x1UL << RADIO_SHORTS_END_DISABLE_Pos) /*!< Bit mask of END_DISABLE field. */
+#define RADIO_SHORTS_END_DISABLE_Disabled (0UL) /*!< Shortcut disabled. */
+#define RADIO_SHORTS_END_DISABLE_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 0 : Shortcut between READY event and START task. */
+#define RADIO_SHORTS_READY_START_Pos (0UL) /*!< Position of READY_START field. */
+#define RADIO_SHORTS_READY_START_Msk (0x1UL << RADIO_SHORTS_READY_START_Pos) /*!< Bit mask of READY_START field. */
+#define RADIO_SHORTS_READY_START_Disabled (0UL) /*!< Shortcut disabled. */
+#define RADIO_SHORTS_READY_START_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Register: RADIO_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 10 : Enable interrupt on BCMATCH event. */
+#define RADIO_INTENSET_BCMATCH_Pos (10UL) /*!< Position of BCMATCH field. */
+#define RADIO_INTENSET_BCMATCH_Msk (0x1UL << RADIO_INTENSET_BCMATCH_Pos) /*!< Bit mask of BCMATCH field. */
+#define RADIO_INTENSET_BCMATCH_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENSET_BCMATCH_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENSET_BCMATCH_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 7 : Enable interrupt on RSSIEND event. */
+#define RADIO_INTENSET_RSSIEND_Pos (7UL) /*!< Position of RSSIEND field. */
+#define RADIO_INTENSET_RSSIEND_Msk (0x1UL << RADIO_INTENSET_RSSIEND_Pos) /*!< Bit mask of RSSIEND field. */
+#define RADIO_INTENSET_RSSIEND_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENSET_RSSIEND_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENSET_RSSIEND_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 6 : Enable interrupt on DEVMISS event. */
+#define RADIO_INTENSET_DEVMISS_Pos (6UL) /*!< Position of DEVMISS field. */
+#define RADIO_INTENSET_DEVMISS_Msk (0x1UL << RADIO_INTENSET_DEVMISS_Pos) /*!< Bit mask of DEVMISS field. */
+#define RADIO_INTENSET_DEVMISS_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENSET_DEVMISS_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENSET_DEVMISS_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 5 : Enable interrupt on DEVMATCH event. */
+#define RADIO_INTENSET_DEVMATCH_Pos (5UL) /*!< Position of DEVMATCH field. */
+#define RADIO_INTENSET_DEVMATCH_Msk (0x1UL << RADIO_INTENSET_DEVMATCH_Pos) /*!< Bit mask of DEVMATCH field. */
+#define RADIO_INTENSET_DEVMATCH_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENSET_DEVMATCH_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENSET_DEVMATCH_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 4 : Enable interrupt on DISABLED event. */
+#define RADIO_INTENSET_DISABLED_Pos (4UL) /*!< Position of DISABLED field. */
+#define RADIO_INTENSET_DISABLED_Msk (0x1UL << RADIO_INTENSET_DISABLED_Pos) /*!< Bit mask of DISABLED field. */
+#define RADIO_INTENSET_DISABLED_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENSET_DISABLED_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENSET_DISABLED_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 3 : Enable interrupt on END event. */
+#define RADIO_INTENSET_END_Pos (3UL) /*!< Position of END field. */
+#define RADIO_INTENSET_END_Msk (0x1UL << RADIO_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define RADIO_INTENSET_END_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENSET_END_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENSET_END_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 2 : Enable interrupt on PAYLOAD event. */
+#define RADIO_INTENSET_PAYLOAD_Pos (2UL) /*!< Position of PAYLOAD field. */
+#define RADIO_INTENSET_PAYLOAD_Msk (0x1UL << RADIO_INTENSET_PAYLOAD_Pos) /*!< Bit mask of PAYLOAD field. */
+#define RADIO_INTENSET_PAYLOAD_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENSET_PAYLOAD_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENSET_PAYLOAD_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 1 : Enable interrupt on ADDRESS event. */
+#define RADIO_INTENSET_ADDRESS_Pos (1UL) /*!< Position of ADDRESS field. */
+#define RADIO_INTENSET_ADDRESS_Msk (0x1UL << RADIO_INTENSET_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+#define RADIO_INTENSET_ADDRESS_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENSET_ADDRESS_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENSET_ADDRESS_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 0 : Enable interrupt on READY event. */
+#define RADIO_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define RADIO_INTENSET_READY_Msk (0x1UL << RADIO_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define RADIO_INTENSET_READY_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENSET_READY_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENSET_READY_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: RADIO_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 10 : Disable interrupt on BCMATCH event. */
+#define RADIO_INTENCLR_BCMATCH_Pos (10UL) /*!< Position of BCMATCH field. */
+#define RADIO_INTENCLR_BCMATCH_Msk (0x1UL << RADIO_INTENCLR_BCMATCH_Pos) /*!< Bit mask of BCMATCH field. */
+#define RADIO_INTENCLR_BCMATCH_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENCLR_BCMATCH_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENCLR_BCMATCH_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 7 : Disable interrupt on RSSIEND event. */
+#define RADIO_INTENCLR_RSSIEND_Pos (7UL) /*!< Position of RSSIEND field. */
+#define RADIO_INTENCLR_RSSIEND_Msk (0x1UL << RADIO_INTENCLR_RSSIEND_Pos) /*!< Bit mask of RSSIEND field. */
+#define RADIO_INTENCLR_RSSIEND_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENCLR_RSSIEND_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENCLR_RSSIEND_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 6 : Disable interrupt on DEVMISS event. */
+#define RADIO_INTENCLR_DEVMISS_Pos (6UL) /*!< Position of DEVMISS field. */
+#define RADIO_INTENCLR_DEVMISS_Msk (0x1UL << RADIO_INTENCLR_DEVMISS_Pos) /*!< Bit mask of DEVMISS field. */
+#define RADIO_INTENCLR_DEVMISS_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENCLR_DEVMISS_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENCLR_DEVMISS_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 5 : Disable interrupt on DEVMATCH event. */
+#define RADIO_INTENCLR_DEVMATCH_Pos (5UL) /*!< Position of DEVMATCH field. */
+#define RADIO_INTENCLR_DEVMATCH_Msk (0x1UL << RADIO_INTENCLR_DEVMATCH_Pos) /*!< Bit mask of DEVMATCH field. */
+#define RADIO_INTENCLR_DEVMATCH_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENCLR_DEVMATCH_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENCLR_DEVMATCH_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 4 : Disable interrupt on DISABLED event. */
+#define RADIO_INTENCLR_DISABLED_Pos (4UL) /*!< Position of DISABLED field. */
+#define RADIO_INTENCLR_DISABLED_Msk (0x1UL << RADIO_INTENCLR_DISABLED_Pos) /*!< Bit mask of DISABLED field. */
+#define RADIO_INTENCLR_DISABLED_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENCLR_DISABLED_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENCLR_DISABLED_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 3 : Disable interrupt on END event. */
+#define RADIO_INTENCLR_END_Pos (3UL) /*!< Position of END field. */
+#define RADIO_INTENCLR_END_Msk (0x1UL << RADIO_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define RADIO_INTENCLR_END_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENCLR_END_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENCLR_END_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 2 : Disable interrupt on PAYLOAD event. */
+#define RADIO_INTENCLR_PAYLOAD_Pos (2UL) /*!< Position of PAYLOAD field. */
+#define RADIO_INTENCLR_PAYLOAD_Msk (0x1UL << RADIO_INTENCLR_PAYLOAD_Pos) /*!< Bit mask of PAYLOAD field. */
+#define RADIO_INTENCLR_PAYLOAD_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENCLR_PAYLOAD_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENCLR_PAYLOAD_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 1 : Disable interrupt on ADDRESS event. */
+#define RADIO_INTENCLR_ADDRESS_Pos (1UL) /*!< Position of ADDRESS field. */
+#define RADIO_INTENCLR_ADDRESS_Msk (0x1UL << RADIO_INTENCLR_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+#define RADIO_INTENCLR_ADDRESS_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENCLR_ADDRESS_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENCLR_ADDRESS_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 0 : Disable interrupt on READY event. */
+#define RADIO_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define RADIO_INTENCLR_READY_Msk (0x1UL << RADIO_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define RADIO_INTENCLR_READY_Disabled (0UL) /*!< Interrupt disabled. */
+#define RADIO_INTENCLR_READY_Enabled (1UL) /*!< Interrupt enabled. */
+#define RADIO_INTENCLR_READY_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: RADIO_CRCSTATUS */
+/* Description: CRC status of received packet. */
+
+/* Bit 0 : CRC status of received packet. */
+#define RADIO_CRCSTATUS_CRCSTATUS_Pos (0UL) /*!< Position of CRCSTATUS field. */
+#define RADIO_CRCSTATUS_CRCSTATUS_Msk (0x1UL << RADIO_CRCSTATUS_CRCSTATUS_Pos) /*!< Bit mask of CRCSTATUS field. */
+#define RADIO_CRCSTATUS_CRCSTATUS_CRCError (0UL) /*!< Packet received with CRC error. */
+#define RADIO_CRCSTATUS_CRCSTATUS_CRCOk (1UL) /*!< Packet received with CRC ok. */
+
+/* Register: RADIO_RXMATCH */
+/* Description: Received address. */
+
+/* Bits 2..0 : Logical address in which previous packet was received. */
+#define RADIO_RXMATCH_RXMATCH_Pos (0UL) /*!< Position of RXMATCH field. */
+#define RADIO_RXMATCH_RXMATCH_Msk (0x7UL << RADIO_RXMATCH_RXMATCH_Pos) /*!< Bit mask of RXMATCH field. */
+
+/* Register: RADIO_RXCRC */
+/* Description: Received CRC. */
+
+/* Bits 23..0 : CRC field of previously received packet. */
+#define RADIO_RXCRC_RXCRC_Pos (0UL) /*!< Position of RXCRC field. */
+#define RADIO_RXCRC_RXCRC_Msk (0xFFFFFFUL << RADIO_RXCRC_RXCRC_Pos) /*!< Bit mask of RXCRC field. */
+
+/* Register: RADIO_DAI */
+/* Description: Device address match index. */
+
+/* Bits 2..0 : Index (n) of device address (see DAB[n] and DAP[n]) that obtained an address match. */
+#define RADIO_DAI_DAI_Pos (0UL) /*!< Position of DAI field. */
+#define RADIO_DAI_DAI_Msk (0x7UL << RADIO_DAI_DAI_Pos) /*!< Bit mask of DAI field. */
+
+/* Register: RADIO_FREQUENCY */
+/* Description: Frequency. */
+
+/* Bits 6..0 : Radio channel frequency offset in MHz: RF Frequency = 2400 + FREQUENCY (MHz). Decision point: TXEN or RXEN task. */
+#define RADIO_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define RADIO_FREQUENCY_FREQUENCY_Msk (0x7FUL << RADIO_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+
+/* Register: RADIO_TXPOWER */
+/* Description: Output power. */
+
+/* Bits 7..0 : Radio output power. Decision point: TXEN task. */
+#define RADIO_TXPOWER_TXPOWER_Pos (0UL) /*!< Position of TXPOWER field. */
+#define RADIO_TXPOWER_TXPOWER_Msk (0xFFUL << RADIO_TXPOWER_TXPOWER_Pos) /*!< Bit mask of TXPOWER field. */
+#define RADIO_TXPOWER_TXPOWER_0dBm (0x00UL) /*!< 0dBm. */
+#define RADIO_TXPOWER_TXPOWER_Pos4dBm (0x04UL) /*!< +4dBm. */
+#define RADIO_TXPOWER_TXPOWER_Neg30dBm (0xD8UL) /*!< -30dBm. */
+#define RADIO_TXPOWER_TXPOWER_Neg20dBm (0xECUL) /*!< -20dBm. */
+#define RADIO_TXPOWER_TXPOWER_Neg16dBm (0xF0UL) /*!< -16dBm. */
+#define RADIO_TXPOWER_TXPOWER_Neg12dBm (0xF4UL) /*!< -12dBm. */
+#define RADIO_TXPOWER_TXPOWER_Neg8dBm (0xF8UL) /*!< -8dBm. */
+#define RADIO_TXPOWER_TXPOWER_Neg4dBm (0xFCUL) /*!< -4dBm. */
+
+/* Register: RADIO_MODE */
+/* Description: Data rate and modulation. */
+
+/* Bits 1..0 : Radio data rate and modulation setting. Decision point: TXEN or RXEN task. */
+#define RADIO_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define RADIO_MODE_MODE_Msk (0x3UL << RADIO_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define RADIO_MODE_MODE_Nrf_1Mbit (0x00UL) /*!< 1Mbit/s Nordic propietary radio mode. */
+#define RADIO_MODE_MODE_Nrf_2Mbit (0x01UL) /*!< 2Mbit/s Nordic propietary radio mode. */
+#define RADIO_MODE_MODE_Nrf_250Kbit (0x02UL) /*!< 250kbit/s Nordic propietary radio mode. */
+#define RADIO_MODE_MODE_Ble_1Mbit (0x03UL) /*!< 1Mbit/s Bluetooth Low Energy */
+
+/* Register: RADIO_PCNF0 */
+/* Description: Packet configuration 0. */
+
+/* Bits 19..16 : Length of S1 field in number of bits. Decision point: START task. */
+#define RADIO_PCNF0_S1LEN_Pos (16UL) /*!< Position of S1LEN field. */
+#define RADIO_PCNF0_S1LEN_Msk (0xFUL << RADIO_PCNF0_S1LEN_Pos) /*!< Bit mask of S1LEN field. */
+
+/* Bit 8 : Length of S0 field in number of bytes. Decision point: START task. */
+#define RADIO_PCNF0_S0LEN_Pos (8UL) /*!< Position of S0LEN field. */
+#define RADIO_PCNF0_S0LEN_Msk (0x1UL << RADIO_PCNF0_S0LEN_Pos) /*!< Bit mask of S0LEN field. */
+
+/* Bits 3..0 : Length of length field in number of bits. Decision point: START task. */
+#define RADIO_PCNF0_LFLEN_Pos (0UL) /*!< Position of LFLEN field. */
+#define RADIO_PCNF0_LFLEN_Msk (0xFUL << RADIO_PCNF0_LFLEN_Pos) /*!< Bit mask of LFLEN field. */
+
+/* Register: RADIO_PCNF1 */
+/* Description: Packet configuration 1. */
+
+/* Bit 25 : Packet whitening enable. */
+#define RADIO_PCNF1_WHITEEN_Pos (25UL) /*!< Position of WHITEEN field. */
+#define RADIO_PCNF1_WHITEEN_Msk (0x1UL << RADIO_PCNF1_WHITEEN_Pos) /*!< Bit mask of WHITEEN field. */
+#define RADIO_PCNF1_WHITEEN_Disabled (0UL) /*!< Whitening disabled. */
+#define RADIO_PCNF1_WHITEEN_Enabled (1UL) /*!< Whitening enabled. */
+
+/* Bit 24 : On air endianness of packet length field. Decision point: START task. */
+#define RADIO_PCNF1_ENDIAN_Pos (24UL) /*!< Position of ENDIAN field. */
+#define RADIO_PCNF1_ENDIAN_Msk (0x1UL << RADIO_PCNF1_ENDIAN_Pos) /*!< Bit mask of ENDIAN field. */
+#define RADIO_PCNF1_ENDIAN_Little (0UL) /*!< Least significant bit on air first */
+#define RADIO_PCNF1_ENDIAN_Big (1UL) /*!< Most significant bit on air first */
+
+/* Bits 18..16 : Base address length in number of bytes. Decision point: START task. */
+#define RADIO_PCNF1_BALEN_Pos (16UL) /*!< Position of BALEN field. */
+#define RADIO_PCNF1_BALEN_Msk (0x7UL << RADIO_PCNF1_BALEN_Pos) /*!< Bit mask of BALEN field. */
+
+/* Bits 15..8 : Static length in number of bytes. Decision point: START task. */
+#define RADIO_PCNF1_STATLEN_Pos (8UL) /*!< Position of STATLEN field. */
+#define RADIO_PCNF1_STATLEN_Msk (0xFFUL << RADIO_PCNF1_STATLEN_Pos) /*!< Bit mask of STATLEN field. */
+
+/* Bits 7..0 : Maximum length of packet payload in number of bytes. */
+#define RADIO_PCNF1_MAXLEN_Pos (0UL) /*!< Position of MAXLEN field. */
+#define RADIO_PCNF1_MAXLEN_Msk (0xFFUL << RADIO_PCNF1_MAXLEN_Pos) /*!< Bit mask of MAXLEN field. */
+
+/* Register: RADIO_PREFIX0 */
+/* Description: Prefixes bytes for logical addresses 0 to 3. */
+
+/* Bits 31..24 : Address prefix 3. Decision point: START task. */
+#define RADIO_PREFIX0_AP3_Pos (24UL) /*!< Position of AP3 field. */
+#define RADIO_PREFIX0_AP3_Msk (0xFFUL << RADIO_PREFIX0_AP3_Pos) /*!< Bit mask of AP3 field. */
+
+/* Bits 23..16 : Address prefix 2. Decision point: START task. */
+#define RADIO_PREFIX0_AP2_Pos (16UL) /*!< Position of AP2 field. */
+#define RADIO_PREFIX0_AP2_Msk (0xFFUL << RADIO_PREFIX0_AP2_Pos) /*!< Bit mask of AP2 field. */
+
+/* Bits 15..8 : Address prefix 1. Decision point: START task. */
+#define RADIO_PREFIX0_AP1_Pos (8UL) /*!< Position of AP1 field. */
+#define RADIO_PREFIX0_AP1_Msk (0xFFUL << RADIO_PREFIX0_AP1_Pos) /*!< Bit mask of AP1 field. */
+
+/* Bits 7..0 : Address prefix 0. Decision point: START task. */
+#define RADIO_PREFIX0_AP0_Pos (0UL) /*!< Position of AP0 field. */
+#define RADIO_PREFIX0_AP0_Msk (0xFFUL << RADIO_PREFIX0_AP0_Pos) /*!< Bit mask of AP0 field. */
+
+/* Register: RADIO_PREFIX1 */
+/* Description: Prefixes bytes for logical addresses 4 to 7. */
+
+/* Bits 31..24 : Address prefix 7. Decision point: START task. */
+#define RADIO_PREFIX1_AP7_Pos (24UL) /*!< Position of AP7 field. */
+#define RADIO_PREFIX1_AP7_Msk (0xFFUL << RADIO_PREFIX1_AP7_Pos) /*!< Bit mask of AP7 field. */
+
+/* Bits 23..16 : Address prefix 6. Decision point: START task. */
+#define RADIO_PREFIX1_AP6_Pos (16UL) /*!< Position of AP6 field. */
+#define RADIO_PREFIX1_AP6_Msk (0xFFUL << RADIO_PREFIX1_AP6_Pos) /*!< Bit mask of AP6 field. */
+
+/* Bits 15..8 : Address prefix 5. Decision point: START task. */
+#define RADIO_PREFIX1_AP5_Pos (8UL) /*!< Position of AP5 field. */
+#define RADIO_PREFIX1_AP5_Msk (0xFFUL << RADIO_PREFIX1_AP5_Pos) /*!< Bit mask of AP5 field. */
+
+/* Bits 7..0 : Address prefix 4. Decision point: START task. */
+#define RADIO_PREFIX1_AP4_Pos (0UL) /*!< Position of AP4 field. */
+#define RADIO_PREFIX1_AP4_Msk (0xFFUL << RADIO_PREFIX1_AP4_Pos) /*!< Bit mask of AP4 field. */
+
+/* Register: RADIO_TXADDRESS */
+/* Description: Transmit address select. */
+
+/* Bits 2..0 : Logical address to be used when transmitting a packet. Decision point: START task. */
+#define RADIO_TXADDRESS_TXADDRESS_Pos (0UL) /*!< Position of TXADDRESS field. */
+#define RADIO_TXADDRESS_TXADDRESS_Msk (0x7UL << RADIO_TXADDRESS_TXADDRESS_Pos) /*!< Bit mask of TXADDRESS field. */
+
+/* Register: RADIO_RXADDRESSES */
+/* Description: Receive address select. */
+
+/* Bit 7 : Enable reception on logical address 7. Decision point: START task. */
+#define RADIO_RXADDRESSES_ADDR7_Pos (7UL) /*!< Position of ADDR7 field. */
+#define RADIO_RXADDRESSES_ADDR7_Msk (0x1UL << RADIO_RXADDRESSES_ADDR7_Pos) /*!< Bit mask of ADDR7 field. */
+#define RADIO_RXADDRESSES_ADDR7_Disabled (0UL) /*!< Reception disabled. */
+#define RADIO_RXADDRESSES_ADDR7_Enabled (1UL) /*!< Reception enabled. */
+
+/* Bit 6 : Enable reception on logical address 6. Decision point: START task. */
+#define RADIO_RXADDRESSES_ADDR6_Pos (6UL) /*!< Position of ADDR6 field. */
+#define RADIO_RXADDRESSES_ADDR6_Msk (0x1UL << RADIO_RXADDRESSES_ADDR6_Pos) /*!< Bit mask of ADDR6 field. */
+#define RADIO_RXADDRESSES_ADDR6_Disabled (0UL) /*!< Reception disabled. */
+#define RADIO_RXADDRESSES_ADDR6_Enabled (1UL) /*!< Reception enabled. */
+
+/* Bit 5 : Enable reception on logical address 5. Decision point: START task. */
+#define RADIO_RXADDRESSES_ADDR5_Pos (5UL) /*!< Position of ADDR5 field. */
+#define RADIO_RXADDRESSES_ADDR5_Msk (0x1UL << RADIO_RXADDRESSES_ADDR5_Pos) /*!< Bit mask of ADDR5 field. */
+#define RADIO_RXADDRESSES_ADDR5_Disabled (0UL) /*!< Reception disabled. */
+#define RADIO_RXADDRESSES_ADDR5_Enabled (1UL) /*!< Reception enabled. */
+
+/* Bit 4 : Enable reception on logical address 4. Decision point: START task. */
+#define RADIO_RXADDRESSES_ADDR4_Pos (4UL) /*!< Position of ADDR4 field. */
+#define RADIO_RXADDRESSES_ADDR4_Msk (0x1UL << RADIO_RXADDRESSES_ADDR4_Pos) /*!< Bit mask of ADDR4 field. */
+#define RADIO_RXADDRESSES_ADDR4_Disabled (0UL) /*!< Reception disabled. */
+#define RADIO_RXADDRESSES_ADDR4_Enabled (1UL) /*!< Reception enabled. */
+
+/* Bit 3 : Enable reception on logical address 3. Decision point: START task. */
+#define RADIO_RXADDRESSES_ADDR3_Pos (3UL) /*!< Position of ADDR3 field. */
+#define RADIO_RXADDRESSES_ADDR3_Msk (0x1UL << RADIO_RXADDRESSES_ADDR3_Pos) /*!< Bit mask of ADDR3 field. */
+#define RADIO_RXADDRESSES_ADDR3_Disabled (0UL) /*!< Reception disabled. */
+#define RADIO_RXADDRESSES_ADDR3_Enabled (1UL) /*!< Reception enabled. */
+
+/* Bit 2 : Enable reception on logical address 2. Decision point: START task. */
+#define RADIO_RXADDRESSES_ADDR2_Pos (2UL) /*!< Position of ADDR2 field. */
+#define RADIO_RXADDRESSES_ADDR2_Msk (0x1UL << RADIO_RXADDRESSES_ADDR2_Pos) /*!< Bit mask of ADDR2 field. */
+#define RADIO_RXADDRESSES_ADDR2_Disabled (0UL) /*!< Reception disabled. */
+#define RADIO_RXADDRESSES_ADDR2_Enabled (1UL) /*!< Reception enabled. */
+
+/* Bit 1 : Enable reception on logical address 1. Decision point: START task. */
+#define RADIO_RXADDRESSES_ADDR1_Pos (1UL) /*!< Position of ADDR1 field. */
+#define RADIO_RXADDRESSES_ADDR1_Msk (0x1UL << RADIO_RXADDRESSES_ADDR1_Pos) /*!< Bit mask of ADDR1 field. */
+#define RADIO_RXADDRESSES_ADDR1_Disabled (0UL) /*!< Reception disabled. */
+#define RADIO_RXADDRESSES_ADDR1_Enabled (1UL) /*!< Reception enabled. */
+
+/* Bit 0 : Enable reception on logical address 0. Decision point: START task. */
+#define RADIO_RXADDRESSES_ADDR0_Pos (0UL) /*!< Position of ADDR0 field. */
+#define RADIO_RXADDRESSES_ADDR0_Msk (0x1UL << RADIO_RXADDRESSES_ADDR0_Pos) /*!< Bit mask of ADDR0 field. */
+#define RADIO_RXADDRESSES_ADDR0_Disabled (0UL) /*!< Reception disabled. */
+#define RADIO_RXADDRESSES_ADDR0_Enabled (1UL) /*!< Reception enabled. */
+
+/* Register: RADIO_CRCCNF */
+/* Description: CRC configuration. */
+
+/* Bit 8 : Leave packet address field out of the CRC calculation. Decision point: START task. */
+#define RADIO_CRCCNF_SKIPADDR_Pos (8UL) /*!< Position of SKIPADDR field. */
+#define RADIO_CRCCNF_SKIPADDR_Msk (0x1UL << RADIO_CRCCNF_SKIPADDR_Pos) /*!< Bit mask of SKIPADDR field. */
+#define RADIO_CRCCNF_SKIPADDR_Include (0UL) /*!< Include packet address in CRC calculation. */
+#define RADIO_CRCCNF_SKIPADDR_Skip (1UL) /*!< Packet address is skipped in CRC calculation. The CRC calculation will start at the first byte after the address. */
+
+/* Bits 1..0 : CRC length. Decision point: START task. */
+#define RADIO_CRCCNF_LEN_Pos (0UL) /*!< Position of LEN field. */
+#define RADIO_CRCCNF_LEN_Msk (0x3UL << RADIO_CRCCNF_LEN_Pos) /*!< Bit mask of LEN field. */
+#define RADIO_CRCCNF_LEN_Disabled (0UL) /*!< CRC calculation disabled. */
+#define RADIO_CRCCNF_LEN_One (1UL) /*!< One byte long CRC. */
+#define RADIO_CRCCNF_LEN_Two (2UL) /*!< Two bytes long CRC. */
+#define RADIO_CRCCNF_LEN_Three (3UL) /*!< Three bytes long CRC. */
+
+/* Register: RADIO_CRCPOLY */
+/* Description: CRC polynomial. */
+
+/* Bits 23..0 : CRC polynomial. Decision point: START task. */
+#define RADIO_CRCPOLY_CRCPOLY_Pos (0UL) /*!< Position of CRCPOLY field. */
+#define RADIO_CRCPOLY_CRCPOLY_Msk (0xFFFFFFUL << RADIO_CRCPOLY_CRCPOLY_Pos) /*!< Bit mask of CRCPOLY field. */
+
+/* Register: RADIO_CRCINIT */
+/* Description: CRC initial value. */
+
+/* Bits 23..0 : Initial value for CRC calculation. Decision point: START task. */
+#define RADIO_CRCINIT_CRCINIT_Pos (0UL) /*!< Position of CRCINIT field. */
+#define RADIO_CRCINIT_CRCINIT_Msk (0xFFFFFFUL << RADIO_CRCINIT_CRCINIT_Pos) /*!< Bit mask of CRCINIT field. */
+
+/* Register: RADIO_TEST */
+/* Description: Test features enable register. */
+
+/* Bit 1 : PLL lock. Decision point: TXEN or RXEN task. */
+#define RADIO_TEST_PLLLOCK_Pos (1UL) /*!< Position of PLLLOCK field. */
+#define RADIO_TEST_PLLLOCK_Msk (0x1UL << RADIO_TEST_PLLLOCK_Pos) /*!< Bit mask of PLLLOCK field. */
+#define RADIO_TEST_PLLLOCK_Disabled (0UL) /*!< PLL lock disabled. */
+#define RADIO_TEST_PLLLOCK_Enabled (1UL) /*!< PLL lock enabled. */
+
+/* Bit 0 : Constant carrier. Decision point: TXEN task. */
+#define RADIO_TEST_CONSTCARRIER_Pos (0UL) /*!< Position of CONSTCARRIER field. */
+#define RADIO_TEST_CONSTCARRIER_Msk (0x1UL << RADIO_TEST_CONSTCARRIER_Pos) /*!< Bit mask of CONSTCARRIER field. */
+#define RADIO_TEST_CONSTCARRIER_Disabled (0UL) /*!< Constant carrier disabled. */
+#define RADIO_TEST_CONSTCARRIER_Enabled (1UL) /*!< Constant carrier enabled. */
+
+/* Register: RADIO_TIFS */
+/* Description: Inter Frame Spacing in microseconds. */
+
+/* Bits 7..0 : Inter frame spacing in microseconds. Decision point: START rask */
+#define RADIO_TIFS_TIFS_Pos (0UL) /*!< Position of TIFS field. */
+#define RADIO_TIFS_TIFS_Msk (0xFFUL << RADIO_TIFS_TIFS_Pos) /*!< Bit mask of TIFS field. */
+
+/* Register: RADIO_RSSISAMPLE */
+/* Description: RSSI sample. */
+
+/* Bits 6..0 : RSSI sample result. The result is read as a positive value so that ReceivedSignalStrength = -RSSISAMPLE dBm */
+#define RADIO_RSSISAMPLE_RSSISAMPLE_Pos (0UL) /*!< Position of RSSISAMPLE field. */
+#define RADIO_RSSISAMPLE_RSSISAMPLE_Msk (0x7FUL << RADIO_RSSISAMPLE_RSSISAMPLE_Pos) /*!< Bit mask of RSSISAMPLE field. */
+
+/* Register: RADIO_STATE */
+/* Description: Current radio state. */
+
+/* Bits 3..0 : Current radio state. */
+#define RADIO_STATE_STATE_Pos (0UL) /*!< Position of STATE field. */
+#define RADIO_STATE_STATE_Msk (0xFUL << RADIO_STATE_STATE_Pos) /*!< Bit mask of STATE field. */
+#define RADIO_STATE_STATE_Disabled (0x00UL) /*!< Radio is in the Disabled state. */
+#define RADIO_STATE_STATE_RxRu (0x01UL) /*!< Radio is in the Rx Ramp Up state. */
+#define RADIO_STATE_STATE_RxIdle (0x02UL) /*!< Radio is in the Rx Idle state. */
+#define RADIO_STATE_STATE_Rx (0x03UL) /*!< Radio is in the Rx state. */
+#define RADIO_STATE_STATE_RxDisable (0x04UL) /*!< Radio is in the Rx Disable state. */
+#define RADIO_STATE_STATE_TxRu (0x09UL) /*!< Radio is in the Tx Ramp Up state. */
+#define RADIO_STATE_STATE_TxIdle (0x0AUL) /*!< Radio is in the Tx Idle state. */
+#define RADIO_STATE_STATE_Tx (0x0BUL) /*!< Radio is in the Tx state. */
+#define RADIO_STATE_STATE_TxDisable (0x0CUL) /*!< Radio is in the Tx Disable state. */
+
+/* Register: RADIO_DATAWHITEIV */
+/* Description: Data whitening initial value. */
+
+/* Bits 6..0 : Data whitening initial value. Bit 0 corresponds to Position 0 of the LSFR, Bit 1 to position 5... Decision point: TXEN or RXEN task. */
+#define RADIO_DATAWHITEIV_DATAWHITEIV_Pos (0UL) /*!< Position of DATAWHITEIV field. */
+#define RADIO_DATAWHITEIV_DATAWHITEIV_Msk (0x7FUL << RADIO_DATAWHITEIV_DATAWHITEIV_Pos) /*!< Bit mask of DATAWHITEIV field. */
+
+/* Register: RADIO_DAP */
+/* Description: Device address prefix. */
+
+/* Bits 15..0 : Device address prefix. */
+#define RADIO_DAP_DAP_Pos (0UL) /*!< Position of DAP field. */
+#define RADIO_DAP_DAP_Msk (0xFFFFUL << RADIO_DAP_DAP_Pos) /*!< Bit mask of DAP field. */
+
+/* Register: RADIO_DACNF */
+/* Description: Device address match configuration. */
+
+/* Bit 15 : TxAdd for device address 7. */
+#define RADIO_DACNF_TXADD7_Pos (15UL) /*!< Position of TXADD7 field. */
+#define RADIO_DACNF_TXADD7_Msk (0x1UL << RADIO_DACNF_TXADD7_Pos) /*!< Bit mask of TXADD7 field. */
+
+/* Bit 14 : TxAdd for device address 6. */
+#define RADIO_DACNF_TXADD6_Pos (14UL) /*!< Position of TXADD6 field. */
+#define RADIO_DACNF_TXADD6_Msk (0x1UL << RADIO_DACNF_TXADD6_Pos) /*!< Bit mask of TXADD6 field. */
+
+/* Bit 13 : TxAdd for device address 5. */
+#define RADIO_DACNF_TXADD5_Pos (13UL) /*!< Position of TXADD5 field. */
+#define RADIO_DACNF_TXADD5_Msk (0x1UL << RADIO_DACNF_TXADD5_Pos) /*!< Bit mask of TXADD5 field. */
+
+/* Bit 12 : TxAdd for device address 4. */
+#define RADIO_DACNF_TXADD4_Pos (12UL) /*!< Position of TXADD4 field. */
+#define RADIO_DACNF_TXADD4_Msk (0x1UL << RADIO_DACNF_TXADD4_Pos) /*!< Bit mask of TXADD4 field. */
+
+/* Bit 11 : TxAdd for device address 3. */
+#define RADIO_DACNF_TXADD3_Pos (11UL) /*!< Position of TXADD3 field. */
+#define RADIO_DACNF_TXADD3_Msk (0x1UL << RADIO_DACNF_TXADD3_Pos) /*!< Bit mask of TXADD3 field. */
+
+/* Bit 10 : TxAdd for device address 2. */
+#define RADIO_DACNF_TXADD2_Pos (10UL) /*!< Position of TXADD2 field. */
+#define RADIO_DACNF_TXADD2_Msk (0x1UL << RADIO_DACNF_TXADD2_Pos) /*!< Bit mask of TXADD2 field. */
+
+/* Bit 9 : TxAdd for device address 1. */
+#define RADIO_DACNF_TXADD1_Pos (9UL) /*!< Position of TXADD1 field. */
+#define RADIO_DACNF_TXADD1_Msk (0x1UL << RADIO_DACNF_TXADD1_Pos) /*!< Bit mask of TXADD1 field. */
+
+/* Bit 8 : TxAdd for device address 0. */
+#define RADIO_DACNF_TXADD0_Pos (8UL) /*!< Position of TXADD0 field. */
+#define RADIO_DACNF_TXADD0_Msk (0x1UL << RADIO_DACNF_TXADD0_Pos) /*!< Bit mask of TXADD0 field. */
+
+/* Bit 7 : Enable or disable device address matching using device address 7. */
+#define RADIO_DACNF_ENA7_Pos (7UL) /*!< Position of ENA7 field. */
+#define RADIO_DACNF_ENA7_Msk (0x1UL << RADIO_DACNF_ENA7_Pos) /*!< Bit mask of ENA7 field. */
+#define RADIO_DACNF_ENA7_Disabled (0UL) /*!< Disabled. */
+#define RADIO_DACNF_ENA7_Enabled (1UL) /*!< Enabled. */
+
+/* Bit 6 : Enable or disable device address matching using device address 6. */
+#define RADIO_DACNF_ENA6_Pos (6UL) /*!< Position of ENA6 field. */
+#define RADIO_DACNF_ENA6_Msk (0x1UL << RADIO_DACNF_ENA6_Pos) /*!< Bit mask of ENA6 field. */
+#define RADIO_DACNF_ENA6_Disabled (0UL) /*!< Disabled. */
+#define RADIO_DACNF_ENA6_Enabled (1UL) /*!< Enabled. */
+
+/* Bit 5 : Enable or disable device address matching using device address 5. */
+#define RADIO_DACNF_ENA5_Pos (5UL) /*!< Position of ENA5 field. */
+#define RADIO_DACNF_ENA5_Msk (0x1UL << RADIO_DACNF_ENA5_Pos) /*!< Bit mask of ENA5 field. */
+#define RADIO_DACNF_ENA5_Disabled (0UL) /*!< Disabled. */
+#define RADIO_DACNF_ENA5_Enabled (1UL) /*!< Enabled. */
+
+/* Bit 4 : Enable or disable device address matching using device address 4. */
+#define RADIO_DACNF_ENA4_Pos (4UL) /*!< Position of ENA4 field. */
+#define RADIO_DACNF_ENA4_Msk (0x1UL << RADIO_DACNF_ENA4_Pos) /*!< Bit mask of ENA4 field. */
+#define RADIO_DACNF_ENA4_Disabled (0UL) /*!< Disabled. */
+#define RADIO_DACNF_ENA4_Enabled (1UL) /*!< Enabled. */
+
+/* Bit 3 : Enable or disable device address matching using device address 3. */
+#define RADIO_DACNF_ENA3_Pos (3UL) /*!< Position of ENA3 field. */
+#define RADIO_DACNF_ENA3_Msk (0x1UL << RADIO_DACNF_ENA3_Pos) /*!< Bit mask of ENA3 field. */
+#define RADIO_DACNF_ENA3_Disabled (0UL) /*!< Disabled. */
+#define RADIO_DACNF_ENA3_Enabled (1UL) /*!< Enabled. */
+
+/* Bit 2 : Enable or disable device address matching using device address 2. */
+#define RADIO_DACNF_ENA2_Pos (2UL) /*!< Position of ENA2 field. */
+#define RADIO_DACNF_ENA2_Msk (0x1UL << RADIO_DACNF_ENA2_Pos) /*!< Bit mask of ENA2 field. */
+#define RADIO_DACNF_ENA2_Disabled (0UL) /*!< Disabled. */
+#define RADIO_DACNF_ENA2_Enabled (1UL) /*!< Enabled. */
+
+/* Bit 1 : Enable or disable device address matching using device address 1. */
+#define RADIO_DACNF_ENA1_Pos (1UL) /*!< Position of ENA1 field. */
+#define RADIO_DACNF_ENA1_Msk (0x1UL << RADIO_DACNF_ENA1_Pos) /*!< Bit mask of ENA1 field. */
+#define RADIO_DACNF_ENA1_Disabled (0UL) /*!< Disabled. */
+#define RADIO_DACNF_ENA1_Enabled (1UL) /*!< Enabled. */
+
+/* Bit 0 : Enable or disable device address matching using device address 0. */
+#define RADIO_DACNF_ENA0_Pos (0UL) /*!< Position of ENA0 field. */
+#define RADIO_DACNF_ENA0_Msk (0x1UL << RADIO_DACNF_ENA0_Pos) /*!< Bit mask of ENA0 field. */
+#define RADIO_DACNF_ENA0_Disabled (0UL) /*!< Disabled. */
+#define RADIO_DACNF_ENA0_Enabled (1UL) /*!< Enabled. */
+
+/* Register: RADIO_OVERRIDE0 */
+/* Description: Trim value override register 0. */
+
+/* Bits 31..0 : Trim value override 0. */
+#define RADIO_OVERRIDE0_OVERRIDE0_Pos (0UL) /*!< Position of OVERRIDE0 field. */
+#define RADIO_OVERRIDE0_OVERRIDE0_Msk (0xFFFFFFFFUL << RADIO_OVERRIDE0_OVERRIDE0_Pos) /*!< Bit mask of OVERRIDE0 field. */
+
+/* Register: RADIO_OVERRIDE1 */
+/* Description: Trim value override register 1. */
+
+/* Bits 31..0 : Trim value override 1. */
+#define RADIO_OVERRIDE1_OVERRIDE1_Pos (0UL) /*!< Position of OVERRIDE1 field. */
+#define RADIO_OVERRIDE1_OVERRIDE1_Msk (0xFFFFFFFFUL << RADIO_OVERRIDE1_OVERRIDE1_Pos) /*!< Bit mask of OVERRIDE1 field. */
+
+/* Register: RADIO_OVERRIDE2 */
+/* Description: Trim value override register 2. */
+
+/* Bits 31..0 : Trim value override 2. */
+#define RADIO_OVERRIDE2_OVERRIDE2_Pos (0UL) /*!< Position of OVERRIDE2 field. */
+#define RADIO_OVERRIDE2_OVERRIDE2_Msk (0xFFFFFFFFUL << RADIO_OVERRIDE2_OVERRIDE2_Pos) /*!< Bit mask of OVERRIDE2 field. */
+
+/* Register: RADIO_OVERRIDE3 */
+/* Description: Trim value override register 3. */
+
+/* Bits 31..0 : Trim value override 3. */
+#define RADIO_OVERRIDE3_OVERRIDE3_Pos (0UL) /*!< Position of OVERRIDE3 field. */
+#define RADIO_OVERRIDE3_OVERRIDE3_Msk (0xFFFFFFFFUL << RADIO_OVERRIDE3_OVERRIDE3_Pos) /*!< Bit mask of OVERRIDE3 field. */
+
+/* Register: RADIO_OVERRIDE4 */
+/* Description: Trim value override register 4. */
+
+/* Bit 31 : Enable or disable override of default trim values. */
+#define RADIO_OVERRIDE4_ENABLE_Pos (31UL) /*!< Position of ENABLE field. */
+#define RADIO_OVERRIDE4_ENABLE_Msk (0x1UL << RADIO_OVERRIDE4_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define RADIO_OVERRIDE4_ENABLE_Disabled (0UL) /*!< Override trim values disabled. */
+#define RADIO_OVERRIDE4_ENABLE_Enabled (1UL) /*!< Override trim values enabled. */
+
+/* Bits 27..0 : Trim value override 4. */
+#define RADIO_OVERRIDE4_OVERRIDE4_Pos (0UL) /*!< Position of OVERRIDE4 field. */
+#define RADIO_OVERRIDE4_OVERRIDE4_Msk (0xFFFFFFFUL << RADIO_OVERRIDE4_OVERRIDE4_Pos) /*!< Bit mask of OVERRIDE4 field. */
+
+/* Register: RADIO_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define RADIO_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define RADIO_POWER_POWER_Msk (0x1UL << RADIO_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define RADIO_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define RADIO_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: RNG */
+/* Description: Random Number Generator. */
+
+/* Register: RNG_SHORTS */
+/* Description: Shortcuts for the RNG. */
+
+/* Bit 0 : Shortcut between VALRDY event and STOP task. */
+#define RNG_SHORTS_VALRDY_STOP_Pos (0UL) /*!< Position of VALRDY_STOP field. */
+#define RNG_SHORTS_VALRDY_STOP_Msk (0x1UL << RNG_SHORTS_VALRDY_STOP_Pos) /*!< Bit mask of VALRDY_STOP field. */
+#define RNG_SHORTS_VALRDY_STOP_Disabled (0UL) /*!< Shortcut disabled. */
+#define RNG_SHORTS_VALRDY_STOP_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Register: RNG_INTENSET */
+/* Description: Interrupt enable set register */
+
+/* Bit 0 : Enable interrupt on VALRDY event. */
+#define RNG_INTENSET_VALRDY_Pos (0UL) /*!< Position of VALRDY field. */
+#define RNG_INTENSET_VALRDY_Msk (0x1UL << RNG_INTENSET_VALRDY_Pos) /*!< Bit mask of VALRDY field. */
+#define RNG_INTENSET_VALRDY_Disabled (0UL) /*!< Interrupt disabled. */
+#define RNG_INTENSET_VALRDY_Enabled (1UL) /*!< Interrupt enabled. */
+#define RNG_INTENSET_VALRDY_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: RNG_INTENCLR */
+/* Description: Interrupt enable clear register */
+
+/* Bit 0 : Disable interrupt on VALRDY event. */
+#define RNG_INTENCLR_VALRDY_Pos (0UL) /*!< Position of VALRDY field. */
+#define RNG_INTENCLR_VALRDY_Msk (0x1UL << RNG_INTENCLR_VALRDY_Pos) /*!< Bit mask of VALRDY field. */
+#define RNG_INTENCLR_VALRDY_Disabled (0UL) /*!< Interrupt disabled. */
+#define RNG_INTENCLR_VALRDY_Enabled (1UL) /*!< Interrupt enabled. */
+#define RNG_INTENCLR_VALRDY_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: RNG_CONFIG */
+/* Description: Configuration register. */
+
+/* Bit 0 : Digital error correction enable. */
+#define RNG_CONFIG_DERCEN_Pos (0UL) /*!< Position of DERCEN field. */
+#define RNG_CONFIG_DERCEN_Msk (0x1UL << RNG_CONFIG_DERCEN_Pos) /*!< Bit mask of DERCEN field. */
+#define RNG_CONFIG_DERCEN_Disabled (0UL) /*!< Digital error correction disabled. */
+#define RNG_CONFIG_DERCEN_Enabled (1UL) /*!< Digital error correction enabled. */
+
+/* Register: RNG_VALUE */
+/* Description: RNG random number. */
+
+/* Bits 7..0 : Generated random number. */
+#define RNG_VALUE_VALUE_Pos (0UL) /*!< Position of VALUE field. */
+#define RNG_VALUE_VALUE_Msk (0xFFUL << RNG_VALUE_VALUE_Pos) /*!< Bit mask of VALUE field. */
+
+/* Register: RNG_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define RNG_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define RNG_POWER_POWER_Msk (0x1UL << RNG_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define RNG_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define RNG_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: RTC */
+/* Description: Real time counter 0. */
+
+/* Register: RTC_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 19 : Enable interrupt on COMPARE[3] event. */
+#define RTC_INTENSET_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_INTENSET_COMPARE3_Msk (0x1UL << RTC_INTENSET_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_INTENSET_COMPARE3_Disabled (0UL) /*!< Interrupt disabled. */
+#define RTC_INTENSET_COMPARE3_Enabled (1UL) /*!< Interrupt enabled. */
+#define RTC_INTENSET_COMPARE3_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 18 : Enable interrupt on COMPARE[2] event. */
+#define RTC_INTENSET_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_INTENSET_COMPARE2_Msk (0x1UL << RTC_INTENSET_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_INTENSET_COMPARE2_Disabled (0UL) /*!< Interrupt disabled. */
+#define RTC_INTENSET_COMPARE2_Enabled (1UL) /*!< Interrupt enabled. */
+#define RTC_INTENSET_COMPARE2_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 17 : Enable interrupt on COMPARE[1] event. */
+#define RTC_INTENSET_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_INTENSET_COMPARE1_Msk (0x1UL << RTC_INTENSET_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_INTENSET_COMPARE1_Disabled (0UL) /*!< Interrupt disabled. */
+#define RTC_INTENSET_COMPARE1_Enabled (1UL) /*!< Interrupt enabled. */
+#define RTC_INTENSET_COMPARE1_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 16 : Enable interrupt on COMPARE[0] event. */
+#define RTC_INTENSET_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_INTENSET_COMPARE0_Msk (0x1UL << RTC_INTENSET_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_INTENSET_COMPARE0_Disabled (0UL) /*!< Interrupt disabled. */
+#define RTC_INTENSET_COMPARE0_Enabled (1UL) /*!< Interrupt enabled. */
+#define RTC_INTENSET_COMPARE0_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 1 : Enable interrupt on OVRFLW event. */
+#define RTC_INTENSET_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_INTENSET_OVRFLW_Msk (0x1UL << RTC_INTENSET_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_INTENSET_OVRFLW_Disabled (0UL) /*!< Interrupt disabled. */
+#define RTC_INTENSET_OVRFLW_Enabled (1UL) /*!< Interrupt enabled. */
+#define RTC_INTENSET_OVRFLW_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 0 : Enable interrupt on TICK event. */
+#define RTC_INTENSET_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_INTENSET_TICK_Msk (0x1UL << RTC_INTENSET_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_INTENSET_TICK_Disabled (0UL) /*!< Interrupt disabled. */
+#define RTC_INTENSET_TICK_Enabled (1UL) /*!< Interrupt enabled. */
+#define RTC_INTENSET_TICK_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: RTC_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 19 : Disable interrupt on COMPARE[3] event. */
+#define RTC_INTENCLR_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_INTENCLR_COMPARE3_Msk (0x1UL << RTC_INTENCLR_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_INTENCLR_COMPARE3_Disabled (0UL) /*!< Interrupt disabled. */
+#define RTC_INTENCLR_COMPARE3_Enabled (1UL) /*!< Interrupt enabled. */
+#define RTC_INTENCLR_COMPARE3_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 18 : Disable interrupt on COMPARE[2] event. */
+#define RTC_INTENCLR_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_INTENCLR_COMPARE2_Msk (0x1UL << RTC_INTENCLR_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_INTENCLR_COMPARE2_Disabled (0UL) /*!< Interrupt disabled. */
+#define RTC_INTENCLR_COMPARE2_Enabled (1UL) /*!< Interrupt enabled. */
+#define RTC_INTENCLR_COMPARE2_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 17 : Disable interrupt on COMPARE[1] event. */
+#define RTC_INTENCLR_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_INTENCLR_COMPARE1_Msk (0x1UL << RTC_INTENCLR_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_INTENCLR_COMPARE1_Disabled (0UL) /*!< Interrupt disabled. */
+#define RTC_INTENCLR_COMPARE1_Enabled (1UL) /*!< Interrupt enabled. */
+#define RTC_INTENCLR_COMPARE1_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 16 : Disable interrupt on COMPARE[0] event. */
+#define RTC_INTENCLR_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_INTENCLR_COMPARE0_Msk (0x1UL << RTC_INTENCLR_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_INTENCLR_COMPARE0_Disabled (0UL) /*!< Interrupt disabled. */
+#define RTC_INTENCLR_COMPARE0_Enabled (1UL) /*!< Interrupt enabled. */
+#define RTC_INTENCLR_COMPARE0_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 1 : Disable interrupt on OVRFLW event. */
+#define RTC_INTENCLR_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_INTENCLR_OVRFLW_Msk (0x1UL << RTC_INTENCLR_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_INTENCLR_OVRFLW_Disabled (0UL) /*!< Interrupt disabled. */
+#define RTC_INTENCLR_OVRFLW_Enabled (1UL) /*!< Interrupt enabled. */
+#define RTC_INTENCLR_OVRFLW_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 0 : Disable interrupt on TICK event. */
+#define RTC_INTENCLR_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_INTENCLR_TICK_Msk (0x1UL << RTC_INTENCLR_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_INTENCLR_TICK_Disabled (0UL) /*!< Interrupt disabled. */
+#define RTC_INTENCLR_TICK_Enabled (1UL) /*!< Interrupt enabled. */
+#define RTC_INTENCLR_TICK_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: RTC_EVTEN */
+/* Description: Configures event enable routing to PPI for each RTC event. */
+
+/* Bit 19 : COMPARE[3] event enable. */
+#define RTC_EVTEN_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_EVTEN_COMPARE3_Msk (0x1UL << RTC_EVTEN_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_EVTEN_COMPARE3_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTEN_COMPARE3_Enabled (1UL) /*!< Event enabled. */
+
+/* Bit 18 : COMPARE[2] event enable. */
+#define RTC_EVTEN_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_EVTEN_COMPARE2_Msk (0x1UL << RTC_EVTEN_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_EVTEN_COMPARE2_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTEN_COMPARE2_Enabled (1UL) /*!< Event enabled. */
+
+/* Bit 17 : COMPARE[1] event enable. */
+#define RTC_EVTEN_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_EVTEN_COMPARE1_Msk (0x1UL << RTC_EVTEN_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_EVTEN_COMPARE1_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTEN_COMPARE1_Enabled (1UL) /*!< Event enabled. */
+
+/* Bit 16 : COMPARE[0] event enable. */
+#define RTC_EVTEN_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_EVTEN_COMPARE0_Msk (0x1UL << RTC_EVTEN_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_EVTEN_COMPARE0_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTEN_COMPARE0_Enabled (1UL) /*!< Event enabled. */
+
+/* Bit 1 : OVRFLW event enable. */
+#define RTC_EVTEN_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_EVTEN_OVRFLW_Msk (0x1UL << RTC_EVTEN_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_EVTEN_OVRFLW_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTEN_OVRFLW_Enabled (1UL) /*!< Event enabled. */
+
+/* Bit 0 : TICK event enable. */
+#define RTC_EVTEN_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_EVTEN_TICK_Msk (0x1UL << RTC_EVTEN_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_EVTEN_TICK_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTEN_TICK_Enabled (1UL) /*!< Event enabled. */
+
+/* Register: RTC_EVTENSET */
+/* Description: Enable events routing to PPI. The reading of this register gives the value of EVTEN. */
+
+/* Bit 19 : Enable routing to PPI of COMPARE[3] event. */
+#define RTC_EVTENSET_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_EVTENSET_COMPARE3_Msk (0x1UL << RTC_EVTENSET_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_EVTENSET_COMPARE3_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTENSET_COMPARE3_Enabled (1UL) /*!< Event enabled. */
+#define RTC_EVTENSET_COMPARE3_Set (1UL) /*!< Enable event on write. */
+
+/* Bit 18 : Enable routing to PPI of COMPARE[2] event. */
+#define RTC_EVTENSET_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_EVTENSET_COMPARE2_Msk (0x1UL << RTC_EVTENSET_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_EVTENSET_COMPARE2_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTENSET_COMPARE2_Enabled (1UL) /*!< Event enabled. */
+#define RTC_EVTENSET_COMPARE2_Set (1UL) /*!< Enable event on write. */
+
+/* Bit 17 : Enable routing to PPI of COMPARE[1] event. */
+#define RTC_EVTENSET_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_EVTENSET_COMPARE1_Msk (0x1UL << RTC_EVTENSET_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_EVTENSET_COMPARE1_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTENSET_COMPARE1_Enabled (1UL) /*!< Event enabled. */
+#define RTC_EVTENSET_COMPARE1_Set (1UL) /*!< Enable event on write. */
+
+/* Bit 16 : Enable routing to PPI of COMPARE[0] event. */
+#define RTC_EVTENSET_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_EVTENSET_COMPARE0_Msk (0x1UL << RTC_EVTENSET_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_EVTENSET_COMPARE0_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTENSET_COMPARE0_Enabled (1UL) /*!< Event enabled. */
+#define RTC_EVTENSET_COMPARE0_Set (1UL) /*!< Enable event on write. */
+
+/* Bit 1 : Enable routing to PPI of OVRFLW event. */
+#define RTC_EVTENSET_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_EVTENSET_OVRFLW_Msk (0x1UL << RTC_EVTENSET_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_EVTENSET_OVRFLW_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTENSET_OVRFLW_Enabled (1UL) /*!< Event enabled. */
+#define RTC_EVTENSET_OVRFLW_Set (1UL) /*!< Enable event on write. */
+
+/* Bit 0 : Enable routing to PPI of TICK event. */
+#define RTC_EVTENSET_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_EVTENSET_TICK_Msk (0x1UL << RTC_EVTENSET_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_EVTENSET_TICK_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTENSET_TICK_Enabled (1UL) /*!< Event enabled. */
+#define RTC_EVTENSET_TICK_Set (1UL) /*!< Enable event on write. */
+
+/* Register: RTC_EVTENCLR */
+/* Description: Disable events routing to PPI. The reading of this register gives the value of EVTEN. */
+
+/* Bit 19 : Disable routing to PPI of COMPARE[3] event. */
+#define RTC_EVTENCLR_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_EVTENCLR_COMPARE3_Msk (0x1UL << RTC_EVTENCLR_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_EVTENCLR_COMPARE3_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTENCLR_COMPARE3_Enabled (1UL) /*!< Event enabled. */
+#define RTC_EVTENCLR_COMPARE3_Clear (1UL) /*!< Disable event on write. */
+
+/* Bit 18 : Disable routing to PPI of COMPARE[2] event. */
+#define RTC_EVTENCLR_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_EVTENCLR_COMPARE2_Msk (0x1UL << RTC_EVTENCLR_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_EVTENCLR_COMPARE2_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTENCLR_COMPARE2_Enabled (1UL) /*!< Event enabled. */
+#define RTC_EVTENCLR_COMPARE2_Clear (1UL) /*!< Disable event on write. */
+
+/* Bit 17 : Disable routing to PPI of COMPARE[1] event. */
+#define RTC_EVTENCLR_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_EVTENCLR_COMPARE1_Msk (0x1UL << RTC_EVTENCLR_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_EVTENCLR_COMPARE1_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTENCLR_COMPARE1_Enabled (1UL) /*!< Event enabled. */
+#define RTC_EVTENCLR_COMPARE1_Clear (1UL) /*!< Disable event on write. */
+
+/* Bit 16 : Disable routing to PPI of COMPARE[0] event. */
+#define RTC_EVTENCLR_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_EVTENCLR_COMPARE0_Msk (0x1UL << RTC_EVTENCLR_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_EVTENCLR_COMPARE0_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTENCLR_COMPARE0_Enabled (1UL) /*!< Event enabled. */
+#define RTC_EVTENCLR_COMPARE0_Clear (1UL) /*!< Disable event on write. */
+
+/* Bit 1 : Disable routing to PPI of OVRFLW event. */
+#define RTC_EVTENCLR_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_EVTENCLR_OVRFLW_Msk (0x1UL << RTC_EVTENCLR_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_EVTENCLR_OVRFLW_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTENCLR_OVRFLW_Enabled (1UL) /*!< Event enabled. */
+#define RTC_EVTENCLR_OVRFLW_Clear (1UL) /*!< Disable event on write. */
+
+/* Bit 0 : Disable routing to PPI of TICK event. */
+#define RTC_EVTENCLR_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_EVTENCLR_TICK_Msk (0x1UL << RTC_EVTENCLR_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_EVTENCLR_TICK_Disabled (0UL) /*!< Event disabled. */
+#define RTC_EVTENCLR_TICK_Enabled (1UL) /*!< Event enabled. */
+#define RTC_EVTENCLR_TICK_Clear (1UL) /*!< Disable event on write. */
+
+/* Register: RTC_COUNTER */
+/* Description: Current COUNTER value. */
+
+/* Bits 23..0 : Counter value. */
+#define RTC_COUNTER_COUNTER_Pos (0UL) /*!< Position of COUNTER field. */
+#define RTC_COUNTER_COUNTER_Msk (0xFFFFFFUL << RTC_COUNTER_COUNTER_Pos) /*!< Bit mask of COUNTER field. */
+
+/* Register: RTC_PRESCALER */
+/* Description: 12-bit prescaler for COUNTER frequency (32768/(PRESCALER+1)). Must be written when RTC is STOPed. */
+
+/* Bits 11..0 : RTC PRESCALER value. */
+#define RTC_PRESCALER_PRESCALER_Pos (0UL) /*!< Position of PRESCALER field. */
+#define RTC_PRESCALER_PRESCALER_Msk (0xFFFUL << RTC_PRESCALER_PRESCALER_Pos) /*!< Bit mask of PRESCALER field. */
+
+/* Register: RTC_CC */
+/* Description: Capture/compare registers. */
+
+/* Bits 23..0 : Compare value. */
+#define RTC_CC_COMPARE_Pos (0UL) /*!< Position of COMPARE field. */
+#define RTC_CC_COMPARE_Msk (0xFFFFFFUL << RTC_CC_COMPARE_Pos) /*!< Bit mask of COMPARE field. */
+
+/* Register: RTC_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define RTC_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define RTC_POWER_POWER_Msk (0x1UL << RTC_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define RTC_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define RTC_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: SPI */
+/* Description: SPI master 0. */
+
+/* Register: SPI_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 2 : Enable interrupt on READY event. */
+#define SPI_INTENSET_READY_Pos (2UL) /*!< Position of READY field. */
+#define SPI_INTENSET_READY_Msk (0x1UL << SPI_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define SPI_INTENSET_READY_Disabled (0UL) /*!< Interrupt disabled. */
+#define SPI_INTENSET_READY_Enabled (1UL) /*!< Interrupt enabled. */
+#define SPI_INTENSET_READY_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: SPI_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 2 : Disable interrupt on READY event. */
+#define SPI_INTENCLR_READY_Pos (2UL) /*!< Position of READY field. */
+#define SPI_INTENCLR_READY_Msk (0x1UL << SPI_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define SPI_INTENCLR_READY_Disabled (0UL) /*!< Interrupt disabled. */
+#define SPI_INTENCLR_READY_Enabled (1UL) /*!< Interrupt enabled. */
+#define SPI_INTENCLR_READY_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: SPI_ENABLE */
+/* Description: Enable SPI. */
+
+/* Bits 2..0 : Enable or disable SPI. */
+#define SPI_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SPI_ENABLE_ENABLE_Msk (0x7UL << SPI_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SPI_ENABLE_ENABLE_Disabled (0x00UL) /*!< Disabled SPI. */
+#define SPI_ENABLE_ENABLE_Enabled (0x01UL) /*!< Enable SPI. */
+
+/* Register: SPI_RXD */
+/* Description: RX data. */
+
+/* Bits 7..0 : RX data from last transfer. */
+#define SPI_RXD_RXD_Pos (0UL) /*!< Position of RXD field. */
+#define SPI_RXD_RXD_Msk (0xFFUL << SPI_RXD_RXD_Pos) /*!< Bit mask of RXD field. */
+
+/* Register: SPI_TXD */
+/* Description: TX data. */
+
+/* Bits 7..0 : TX data for next transfer. */
+#define SPI_TXD_TXD_Pos (0UL) /*!< Position of TXD field. */
+#define SPI_TXD_TXD_Msk (0xFFUL << SPI_TXD_TXD_Pos) /*!< Bit mask of TXD field. */
+
+/* Register: SPI_FREQUENCY */
+/* Description: SPI frequency */
+
+/* Bits 31..0 : SPI data rate. */
+#define SPI_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define SPI_FREQUENCY_FREQUENCY_Msk (0xFFFFFFFFUL << SPI_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+#define SPI_FREQUENCY_FREQUENCY_K125 (0x02000000UL) /*!< 125kbps. */
+#define SPI_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250kbps. */
+#define SPI_FREQUENCY_FREQUENCY_K500 (0x08000000UL) /*!< 500kbps. */
+#define SPI_FREQUENCY_FREQUENCY_M1 (0x10000000UL) /*!< 1Mbps. */
+#define SPI_FREQUENCY_FREQUENCY_M2 (0x20000000UL) /*!< 2Mbps. */
+#define SPI_FREQUENCY_FREQUENCY_M4 (0x40000000UL) /*!< 4Mbps. */
+#define SPI_FREQUENCY_FREQUENCY_M8 (0x80000000UL) /*!< 8Mbps. */
+
+/* Register: SPI_CONFIG */
+/* Description: Configuration register. */
+
+/* Bit 2 : Serial clock (SCK) polarity. */
+#define SPI_CONFIG_CPOL_Pos (2UL) /*!< Position of CPOL field. */
+#define SPI_CONFIG_CPOL_Msk (0x1UL << SPI_CONFIG_CPOL_Pos) /*!< Bit mask of CPOL field. */
+#define SPI_CONFIG_CPOL_ActiveHigh (0UL) /*!< Active high. */
+#define SPI_CONFIG_CPOL_ActiveLow (1UL) /*!< Active low. */
+
+/* Bit 1 : Serial clock (SCK) phase. */
+#define SPI_CONFIG_CPHA_Pos (1UL) /*!< Position of CPHA field. */
+#define SPI_CONFIG_CPHA_Msk (0x1UL << SPI_CONFIG_CPHA_Pos) /*!< Bit mask of CPHA field. */
+#define SPI_CONFIG_CPHA_Leading (0UL) /*!< Sample on leading edge of the clock. Shift serial data on trailing edge. */
+#define SPI_CONFIG_CPHA_Trailing (1UL) /*!< Sample on trailing edge of the clock. Shift serial data on leading edge. */
+
+/* Bit 0 : Bit order. */
+#define SPI_CONFIG_ORDER_Pos (0UL) /*!< Position of ORDER field. */
+#define SPI_CONFIG_ORDER_Msk (0x1UL << SPI_CONFIG_ORDER_Pos) /*!< Bit mask of ORDER field. */
+#define SPI_CONFIG_ORDER_MsbFirst (0UL) /*!< Most significant bit transmitted out first. */
+#define SPI_CONFIG_ORDER_LsbFirst (1UL) /*!< Least significant bit transmitted out first. */
+
+/* Register: SPI_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define SPI_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define SPI_POWER_POWER_Msk (0x1UL << SPI_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define SPI_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define SPI_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: SPIS */
+/* Description: SPI slave 1. */
+
+/* Register: SPIS_SHORTS */
+/* Description: Shortcuts for SPIS. */
+
+/* Bit 2 : Shortcut between END event and the ACQUIRE task. */
+#define SPIS_SHORTS_END_ACQUIRE_Pos (2UL) /*!< Position of END_ACQUIRE field. */
+#define SPIS_SHORTS_END_ACQUIRE_Msk (0x1UL << SPIS_SHORTS_END_ACQUIRE_Pos) /*!< Bit mask of END_ACQUIRE field. */
+#define SPIS_SHORTS_END_ACQUIRE_Disabled (0UL) /*!< Shortcut disabled. */
+#define SPIS_SHORTS_END_ACQUIRE_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Register: SPIS_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 10 : Enable interrupt on ACQUIRED event. */
+#define SPIS_INTENSET_ACQUIRED_Pos (10UL) /*!< Position of ACQUIRED field. */
+#define SPIS_INTENSET_ACQUIRED_Msk (0x1UL << SPIS_INTENSET_ACQUIRED_Pos) /*!< Bit mask of ACQUIRED field. */
+#define SPIS_INTENSET_ACQUIRED_Disabled (0UL) /*!< Interrupt disabled. */
+#define SPIS_INTENSET_ACQUIRED_Enabled (1UL) /*!< Interrupt enabled. */
+#define SPIS_INTENSET_ACQUIRED_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 4 : enable interrupt on ENDRX event. */
+#define SPIS_INTENSET_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIS_INTENSET_ENDRX_Msk (0x1UL << SPIS_INTENSET_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIS_INTENSET_ENDRX_Disabled (0UL) /*!< Interrupt disabled. */
+#define SPIS_INTENSET_ENDRX_Enabled (1UL) /*!< Interrupt enabled. */
+#define SPIS_INTENSET_ENDRX_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 1 : Enable interrupt on END event. */
+#define SPIS_INTENSET_END_Pos (1UL) /*!< Position of END field. */
+#define SPIS_INTENSET_END_Msk (0x1UL << SPIS_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define SPIS_INTENSET_END_Disabled (0UL) /*!< Interrupt disabled. */
+#define SPIS_INTENSET_END_Enabled (1UL) /*!< Interrupt enabled. */
+#define SPIS_INTENSET_END_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: SPIS_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 10 : Disable interrupt on ACQUIRED event. */
+#define SPIS_INTENCLR_ACQUIRED_Pos (10UL) /*!< Position of ACQUIRED field. */
+#define SPIS_INTENCLR_ACQUIRED_Msk (0x1UL << SPIS_INTENCLR_ACQUIRED_Pos) /*!< Bit mask of ACQUIRED field. */
+#define SPIS_INTENCLR_ACQUIRED_Disabled (0UL) /*!< Interrupt disabled. */
+#define SPIS_INTENCLR_ACQUIRED_Enabled (1UL) /*!< Interrupt enabled. */
+#define SPIS_INTENCLR_ACQUIRED_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 4 : Disable interrupt on ENDRX event. */
+#define SPIS_INTENCLR_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIS_INTENCLR_ENDRX_Msk (0x1UL << SPIS_INTENCLR_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIS_INTENCLR_ENDRX_Disabled (0UL) /*!< Interrupt disabled. */
+#define SPIS_INTENCLR_ENDRX_Enabled (1UL) /*!< Interrupt enabled. */
+#define SPIS_INTENCLR_ENDRX_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 1 : Disable interrupt on END event. */
+#define SPIS_INTENCLR_END_Pos (1UL) /*!< Position of END field. */
+#define SPIS_INTENCLR_END_Msk (0x1UL << SPIS_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define SPIS_INTENCLR_END_Disabled (0UL) /*!< Interrupt disabled. */
+#define SPIS_INTENCLR_END_Enabled (1UL) /*!< Interrupt enabled. */
+#define SPIS_INTENCLR_END_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: SPIS_SEMSTAT */
+/* Description: Semaphore status. */
+
+/* Bits 1..0 : Semaphore status. */
+#define SPIS_SEMSTAT_SEMSTAT_Pos (0UL) /*!< Position of SEMSTAT field. */
+#define SPIS_SEMSTAT_SEMSTAT_Msk (0x3UL << SPIS_SEMSTAT_SEMSTAT_Pos) /*!< Bit mask of SEMSTAT field. */
+#define SPIS_SEMSTAT_SEMSTAT_Free (0x00UL) /*!< Semaphore is free. */
+#define SPIS_SEMSTAT_SEMSTAT_CPU (0x01UL) /*!< Semaphore is assigned to the CPU. */
+#define SPIS_SEMSTAT_SEMSTAT_SPIS (0x02UL) /*!< Semaphore is assigned to the SPIS. */
+#define SPIS_SEMSTAT_SEMSTAT_CPUPending (0x03UL) /*!< Semaphore is assigned to the SPIS, but a handover to the CPU is pending. */
+
+/* Register: SPIS_STATUS */
+/* Description: Status from last transaction. */
+
+/* Bit 1 : RX buffer overflow detected, and prevented. */
+#define SPIS_STATUS_OVERFLOW_Pos (1UL) /*!< Position of OVERFLOW field. */
+#define SPIS_STATUS_OVERFLOW_Msk (0x1UL << SPIS_STATUS_OVERFLOW_Pos) /*!< Bit mask of OVERFLOW field. */
+#define SPIS_STATUS_OVERFLOW_NotPresent (0UL) /*!< Error not present. */
+#define SPIS_STATUS_OVERFLOW_Present (1UL) /*!< Error present. */
+#define SPIS_STATUS_OVERFLOW_Clear (1UL) /*!< Clear on write. */
+
+/* Bit 0 : TX buffer overread detected, and prevented. */
+#define SPIS_STATUS_OVERREAD_Pos (0UL) /*!< Position of OVERREAD field. */
+#define SPIS_STATUS_OVERREAD_Msk (0x1UL << SPIS_STATUS_OVERREAD_Pos) /*!< Bit mask of OVERREAD field. */
+#define SPIS_STATUS_OVERREAD_NotPresent (0UL) /*!< Error not present. */
+#define SPIS_STATUS_OVERREAD_Present (1UL) /*!< Error present. */
+#define SPIS_STATUS_OVERREAD_Clear (1UL) /*!< Clear on write. */
+
+/* Register: SPIS_ENABLE */
+/* Description: Enable SPIS. */
+
+/* Bits 2..0 : Enable or disable SPIS. */
+#define SPIS_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SPIS_ENABLE_ENABLE_Msk (0x7UL << SPIS_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SPIS_ENABLE_ENABLE_Disabled (0x00UL) /*!< Disabled SPIS. */
+#define SPIS_ENABLE_ENABLE_Enabled (0x02UL) /*!< Enable SPIS. */
+
+/* Register: SPIS_MAXRX */
+/* Description: Maximum number of bytes in the receive buffer. */
+
+/* Bits 7..0 : Maximum number of bytes in the receive buffer. */
+#define SPIS_MAXRX_MAXRX_Pos (0UL) /*!< Position of MAXRX field. */
+#define SPIS_MAXRX_MAXRX_Msk (0xFFUL << SPIS_MAXRX_MAXRX_Pos) /*!< Bit mask of MAXRX field. */
+
+/* Register: SPIS_AMOUNTRX */
+/* Description: Number of bytes received in last granted transaction. */
+
+/* Bits 7..0 : Number of bytes received in last granted transaction. */
+#define SPIS_AMOUNTRX_AMOUNTRX_Pos (0UL) /*!< Position of AMOUNTRX field. */
+#define SPIS_AMOUNTRX_AMOUNTRX_Msk (0xFFUL << SPIS_AMOUNTRX_AMOUNTRX_Pos) /*!< Bit mask of AMOUNTRX field. */
+
+/* Register: SPIS_MAXTX */
+/* Description: Maximum number of bytes in the transmit buffer. */
+
+/* Bits 7..0 : Maximum number of bytes in the transmit buffer. */
+#define SPIS_MAXTX_MAXTX_Pos (0UL) /*!< Position of MAXTX field. */
+#define SPIS_MAXTX_MAXTX_Msk (0xFFUL << SPIS_MAXTX_MAXTX_Pos) /*!< Bit mask of MAXTX field. */
+
+/* Register: SPIS_AMOUNTTX */
+/* Description: Number of bytes transmitted in last granted transaction. */
+
+/* Bits 7..0 : Number of bytes transmitted in last granted transaction. */
+#define SPIS_AMOUNTTX_AMOUNTTX_Pos (0UL) /*!< Position of AMOUNTTX field. */
+#define SPIS_AMOUNTTX_AMOUNTTX_Msk (0xFFUL << SPIS_AMOUNTTX_AMOUNTTX_Pos) /*!< Bit mask of AMOUNTTX field. */
+
+/* Register: SPIS_CONFIG */
+/* Description: Configuration register. */
+
+/* Bit 2 : Serial clock (SCK) polarity. */
+#define SPIS_CONFIG_CPOL_Pos (2UL) /*!< Position of CPOL field. */
+#define SPIS_CONFIG_CPOL_Msk (0x1UL << SPIS_CONFIG_CPOL_Pos) /*!< Bit mask of CPOL field. */
+#define SPIS_CONFIG_CPOL_ActiveHigh (0UL) /*!< Active high. */
+#define SPIS_CONFIG_CPOL_ActiveLow (1UL) /*!< Active low. */
+
+/* Bit 1 : Serial clock (SCK) phase. */
+#define SPIS_CONFIG_CPHA_Pos (1UL) /*!< Position of CPHA field. */
+#define SPIS_CONFIG_CPHA_Msk (0x1UL << SPIS_CONFIG_CPHA_Pos) /*!< Bit mask of CPHA field. */
+#define SPIS_CONFIG_CPHA_Leading (0UL) /*!< Sample on leading edge of the clock. Shift serial data on trailing edge. */
+#define SPIS_CONFIG_CPHA_Trailing (1UL) /*!< Sample on trailing edge of the clock. Shift serial data on leading edge. */
+
+/* Bit 0 : Bit order. */
+#define SPIS_CONFIG_ORDER_Pos (0UL) /*!< Position of ORDER field. */
+#define SPIS_CONFIG_ORDER_Msk (0x1UL << SPIS_CONFIG_ORDER_Pos) /*!< Bit mask of ORDER field. */
+#define SPIS_CONFIG_ORDER_MsbFirst (0UL) /*!< Most significant bit transmitted out first. */
+#define SPIS_CONFIG_ORDER_LsbFirst (1UL) /*!< Least significant bit transmitted out first. */
+
+/* Register: SPIS_DEF */
+/* Description: Default character. */
+
+/* Bits 7..0 : Default character. */
+#define SPIS_DEF_DEF_Pos (0UL) /*!< Position of DEF field. */
+#define SPIS_DEF_DEF_Msk (0xFFUL << SPIS_DEF_DEF_Pos) /*!< Bit mask of DEF field. */
+
+/* Register: SPIS_ORC */
+/* Description: Over-read character. */
+
+/* Bits 7..0 : Over-read character. */
+#define SPIS_ORC_ORC_Pos (0UL) /*!< Position of ORC field. */
+#define SPIS_ORC_ORC_Msk (0xFFUL << SPIS_ORC_ORC_Pos) /*!< Bit mask of ORC field. */
+
+/* Register: SPIS_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define SPIS_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define SPIS_POWER_POWER_Msk (0x1UL << SPIS_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define SPIS_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define SPIS_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: TEMP */
+/* Description: Temperature Sensor. */
+
+/* Register: TEMP_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 0 : Enable interrupt on DATARDY event. */
+#define TEMP_INTENSET_DATARDY_Pos (0UL) /*!< Position of DATARDY field. */
+#define TEMP_INTENSET_DATARDY_Msk (0x1UL << TEMP_INTENSET_DATARDY_Pos) /*!< Bit mask of DATARDY field. */
+#define TEMP_INTENSET_DATARDY_Disabled (0UL) /*!< Interrupt disabled. */
+#define TEMP_INTENSET_DATARDY_Enabled (1UL) /*!< Interrupt enabled. */
+#define TEMP_INTENSET_DATARDY_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: TEMP_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 0 : Disable interrupt on DATARDY event. */
+#define TEMP_INTENCLR_DATARDY_Pos (0UL) /*!< Position of DATARDY field. */
+#define TEMP_INTENCLR_DATARDY_Msk (0x1UL << TEMP_INTENCLR_DATARDY_Pos) /*!< Bit mask of DATARDY field. */
+#define TEMP_INTENCLR_DATARDY_Disabled (0UL) /*!< Interrupt disabled. */
+#define TEMP_INTENCLR_DATARDY_Enabled (1UL) /*!< Interrupt enabled. */
+#define TEMP_INTENCLR_DATARDY_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: TEMP_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define TEMP_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define TEMP_POWER_POWER_Msk (0x1UL << TEMP_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define TEMP_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define TEMP_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: TIMER */
+/* Description: Timer 0. */
+
+/* Register: TIMER_SHORTS */
+/* Description: Shortcuts for Timer. */
+
+/* Bit 11 : Shortcut between CC[3] event and the STOP task. */
+#define TIMER_SHORTS_COMPARE3_STOP_Pos (11UL) /*!< Position of COMPARE3_STOP field. */
+#define TIMER_SHORTS_COMPARE3_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE3_STOP_Pos) /*!< Bit mask of COMPARE3_STOP field. */
+#define TIMER_SHORTS_COMPARE3_STOP_Disabled (0UL) /*!< Shortcut disabled. */
+#define TIMER_SHORTS_COMPARE3_STOP_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 10 : Shortcut between CC[2] event and the STOP task. */
+#define TIMER_SHORTS_COMPARE2_STOP_Pos (10UL) /*!< Position of COMPARE2_STOP field. */
+#define TIMER_SHORTS_COMPARE2_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE2_STOP_Pos) /*!< Bit mask of COMPARE2_STOP field. */
+#define TIMER_SHORTS_COMPARE2_STOP_Disabled (0UL) /*!< Shortcut disabled. */
+#define TIMER_SHORTS_COMPARE2_STOP_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 9 : Shortcut between CC[1] event and the STOP task. */
+#define TIMER_SHORTS_COMPARE1_STOP_Pos (9UL) /*!< Position of COMPARE1_STOP field. */
+#define TIMER_SHORTS_COMPARE1_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE1_STOP_Pos) /*!< Bit mask of COMPARE1_STOP field. */
+#define TIMER_SHORTS_COMPARE1_STOP_Disabled (0UL) /*!< Shortcut disabled. */
+#define TIMER_SHORTS_COMPARE1_STOP_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 8 : Shortcut between CC[0] event and the STOP task. */
+#define TIMER_SHORTS_COMPARE0_STOP_Pos (8UL) /*!< Position of COMPARE0_STOP field. */
+#define TIMER_SHORTS_COMPARE0_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE0_STOP_Pos) /*!< Bit mask of COMPARE0_STOP field. */
+#define TIMER_SHORTS_COMPARE0_STOP_Disabled (0UL) /*!< Shortcut disabled. */
+#define TIMER_SHORTS_COMPARE0_STOP_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 3 : Shortcut between CC[3] event and the CLEAR task. */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Pos (3UL) /*!< Position of COMPARE3_CLEAR field. */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE3_CLEAR_Pos) /*!< Bit mask of COMPARE3_CLEAR field. */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Disabled (0UL) /*!< Shortcut disabled. */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 2 : Shortcut between CC[2] event and the CLEAR task. */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Pos (2UL) /*!< Position of COMPARE2_CLEAR field. */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE2_CLEAR_Pos) /*!< Bit mask of COMPARE2_CLEAR field. */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Disabled (0UL) /*!< Shortcut disabled. */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 1 : Shortcut between CC[1] event and the CLEAR task. */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Pos (1UL) /*!< Position of COMPARE1_CLEAR field. */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE1_CLEAR_Pos) /*!< Bit mask of COMPARE1_CLEAR field. */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Disabled (0UL) /*!< Shortcut disabled. */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 0 : Shortcut between CC[0] event and the CLEAR task. */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Pos (0UL) /*!< Position of COMPARE0_CLEAR field. */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE0_CLEAR_Pos) /*!< Bit mask of COMPARE0_CLEAR field. */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Disabled (0UL) /*!< Shortcut disabled. */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Register: TIMER_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 19 : Enable interrupt on COMPARE[3] */
+#define TIMER_INTENSET_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define TIMER_INTENSET_COMPARE3_Msk (0x1UL << TIMER_INTENSET_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define TIMER_INTENSET_COMPARE3_Disabled (0UL) /*!< Interrupt disabled. */
+#define TIMER_INTENSET_COMPARE3_Enabled (1UL) /*!< Interrupt enabled. */
+#define TIMER_INTENSET_COMPARE3_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 18 : Enable interrupt on COMPARE[2] */
+#define TIMER_INTENSET_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define TIMER_INTENSET_COMPARE2_Msk (0x1UL << TIMER_INTENSET_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define TIMER_INTENSET_COMPARE2_Disabled (0UL) /*!< Interrupt disabled. */
+#define TIMER_INTENSET_COMPARE2_Enabled (1UL) /*!< Interrupt enabled. */
+#define TIMER_INTENSET_COMPARE2_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 17 : Enable interrupt on COMPARE[1] */
+#define TIMER_INTENSET_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define TIMER_INTENSET_COMPARE1_Msk (0x1UL << TIMER_INTENSET_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define TIMER_INTENSET_COMPARE1_Disabled (0UL) /*!< Interrupt disabled. */
+#define TIMER_INTENSET_COMPARE1_Enabled (1UL) /*!< Interrupt enabled. */
+#define TIMER_INTENSET_COMPARE1_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 16 : Enable interrupt on COMPARE[0] */
+#define TIMER_INTENSET_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define TIMER_INTENSET_COMPARE0_Msk (0x1UL << TIMER_INTENSET_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define TIMER_INTENSET_COMPARE0_Disabled (0UL) /*!< Interrupt disabled. */
+#define TIMER_INTENSET_COMPARE0_Enabled (1UL) /*!< Interrupt enabled. */
+#define TIMER_INTENSET_COMPARE0_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: TIMER_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 19 : Disable interrupt on COMPARE[3] */
+#define TIMER_INTENCLR_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define TIMER_INTENCLR_COMPARE3_Msk (0x1UL << TIMER_INTENCLR_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define TIMER_INTENCLR_COMPARE3_Disabled (0UL) /*!< Interrupt disabled. */
+#define TIMER_INTENCLR_COMPARE3_Enabled (1UL) /*!< Interrupt enabled. */
+#define TIMER_INTENCLR_COMPARE3_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 18 : Disable interrupt on COMPARE[2] */
+#define TIMER_INTENCLR_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define TIMER_INTENCLR_COMPARE2_Msk (0x1UL << TIMER_INTENCLR_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define TIMER_INTENCLR_COMPARE2_Disabled (0UL) /*!< Interrupt disabled. */
+#define TIMER_INTENCLR_COMPARE2_Enabled (1UL) /*!< Interrupt enabled. */
+#define TIMER_INTENCLR_COMPARE2_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 17 : Disable interrupt on COMPARE[1] */
+#define TIMER_INTENCLR_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define TIMER_INTENCLR_COMPARE1_Msk (0x1UL << TIMER_INTENCLR_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define TIMER_INTENCLR_COMPARE1_Disabled (0UL) /*!< Interrupt disabled. */
+#define TIMER_INTENCLR_COMPARE1_Enabled (1UL) /*!< Interrupt enabled. */
+#define TIMER_INTENCLR_COMPARE1_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 16 : Disable interrupt on COMPARE[0] */
+#define TIMER_INTENCLR_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define TIMER_INTENCLR_COMPARE0_Msk (0x1UL << TIMER_INTENCLR_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define TIMER_INTENCLR_COMPARE0_Disabled (0UL) /*!< Interrupt disabled. */
+#define TIMER_INTENCLR_COMPARE0_Enabled (1UL) /*!< Interrupt enabled. */
+#define TIMER_INTENCLR_COMPARE0_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: TIMER_MODE */
+/* Description: Timer Mode selection. */
+
+/* Bit 0 : Select Normal or Counter mode. */
+#define TIMER_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define TIMER_MODE_MODE_Msk (0x1UL << TIMER_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define TIMER_MODE_MODE_Timer (0UL) /*!< Timer in Normal mode. */
+#define TIMER_MODE_MODE_Counter (1UL) /*!< Timer in Counter mode. */
+
+/* Register: TIMER_BITMODE */
+/* Description: Sets timer behaviour. */
+
+/* Bits 1..0 : Sets timer behaviour ro be like the implementation of a timer with width as indicated. */
+#define TIMER_BITMODE_BITMODE_Pos (0UL) /*!< Position of BITMODE field. */
+#define TIMER_BITMODE_BITMODE_Msk (0x3UL << TIMER_BITMODE_BITMODE_Pos) /*!< Bit mask of BITMODE field. */
+#define TIMER_BITMODE_BITMODE_16Bit (0x00UL) /*!< 16-bit timer behaviour. */
+#define TIMER_BITMODE_BITMODE_08Bit (0x01UL) /*!< 8-bit timer behaviour. */
+#define TIMER_BITMODE_BITMODE_24Bit (0x02UL) /*!< 24-bit timer behaviour. */
+#define TIMER_BITMODE_BITMODE_32Bit (0x03UL) /*!< 32-bit timer behaviour. */
+
+/* Register: TIMER_PRESCALER */
+/* Description: 4-bit prescaler to source clock frequency (max value 9). Source clock frequency is divided by 2^SCALE. */
+
+/* Bits 3..0 : Timer PRESCALER value. Max value is 9. */
+#define TIMER_PRESCALER_PRESCALER_Pos (0UL) /*!< Position of PRESCALER field. */
+#define TIMER_PRESCALER_PRESCALER_Msk (0xFUL << TIMER_PRESCALER_PRESCALER_Pos) /*!< Bit mask of PRESCALER field. */
+
+/* Register: TIMER_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define TIMER_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define TIMER_POWER_POWER_Msk (0x1UL << TIMER_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define TIMER_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define TIMER_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: TWI */
+/* Description: Two-wire interface master 0. */
+
+/* Register: TWI_SHORTS */
+/* Description: Shortcuts for TWI. */
+
+/* Bit 1 : Shortcut between BB event and the STOP task. */
+#define TWI_SHORTS_BB_STOP_Pos (1UL) /*!< Position of BB_STOP field. */
+#define TWI_SHORTS_BB_STOP_Msk (0x1UL << TWI_SHORTS_BB_STOP_Pos) /*!< Bit mask of BB_STOP field. */
+#define TWI_SHORTS_BB_STOP_Disabled (0UL) /*!< Shortcut disabled. */
+#define TWI_SHORTS_BB_STOP_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 0 : Shortcut between BB event and the SUSPEND task. */
+#define TWI_SHORTS_BB_SUSPEND_Pos (0UL) /*!< Position of BB_SUSPEND field. */
+#define TWI_SHORTS_BB_SUSPEND_Msk (0x1UL << TWI_SHORTS_BB_SUSPEND_Pos) /*!< Bit mask of BB_SUSPEND field. */
+#define TWI_SHORTS_BB_SUSPEND_Disabled (0UL) /*!< Shortcut disabled. */
+#define TWI_SHORTS_BB_SUSPEND_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Register: TWI_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 18 : Enable interrupt on SUSPENDED event. */
+#define TWI_INTENSET_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWI_INTENSET_SUSPENDED_Msk (0x1UL << TWI_INTENSET_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWI_INTENSET_SUSPENDED_Disabled (0UL) /*!< Interrupt disabled. */
+#define TWI_INTENSET_SUSPENDED_Enabled (1UL) /*!< Interrupt enabled. */
+#define TWI_INTENSET_SUSPENDED_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 14 : Enable interrupt on BB event. */
+#define TWI_INTENSET_BB_Pos (14UL) /*!< Position of BB field. */
+#define TWI_INTENSET_BB_Msk (0x1UL << TWI_INTENSET_BB_Pos) /*!< Bit mask of BB field. */
+#define TWI_INTENSET_BB_Disabled (0UL) /*!< Interrupt disabled. */
+#define TWI_INTENSET_BB_Enabled (1UL) /*!< Interrupt enabled. */
+#define TWI_INTENSET_BB_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 9 : Enable interrupt on ERROR event. */
+#define TWI_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWI_INTENSET_ERROR_Msk (0x1UL << TWI_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWI_INTENSET_ERROR_Disabled (0UL) /*!< Interrupt disabled. */
+#define TWI_INTENSET_ERROR_Enabled (1UL) /*!< Interrupt enabled. */
+#define TWI_INTENSET_ERROR_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 7 : Enable interrupt on TXDSENT event. */
+#define TWI_INTENSET_TXDSENT_Pos (7UL) /*!< Position of TXDSENT field. */
+#define TWI_INTENSET_TXDSENT_Msk (0x1UL << TWI_INTENSET_TXDSENT_Pos) /*!< Bit mask of TXDSENT field. */
+#define TWI_INTENSET_TXDSENT_Disabled (0UL) /*!< Interrupt disabled. */
+#define TWI_INTENSET_TXDSENT_Enabled (1UL) /*!< Interrupt enabled. */
+#define TWI_INTENSET_TXDSENT_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 2 : Enable interrupt on READY event. */
+#define TWI_INTENSET_RXDREADY_Pos (2UL) /*!< Position of RXDREADY field. */
+#define TWI_INTENSET_RXDREADY_Msk (0x1UL << TWI_INTENSET_RXDREADY_Pos) /*!< Bit mask of RXDREADY field. */
+#define TWI_INTENSET_RXDREADY_Disabled (0UL) /*!< Interrupt disabled. */
+#define TWI_INTENSET_RXDREADY_Enabled (1UL) /*!< Interrupt enabled. */
+#define TWI_INTENSET_RXDREADY_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 1 : Enable interrupt on STOPPED event. */
+#define TWI_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWI_INTENSET_STOPPED_Msk (0x1UL << TWI_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWI_INTENSET_STOPPED_Disabled (0UL) /*!< Interrupt disabled. */
+#define TWI_INTENSET_STOPPED_Enabled (1UL) /*!< Interrupt enabled. */
+#define TWI_INTENSET_STOPPED_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: TWI_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 18 : Disable interrupt on SUSPENDED event. */
+#define TWI_INTENCLR_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWI_INTENCLR_SUSPENDED_Msk (0x1UL << TWI_INTENCLR_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWI_INTENCLR_SUSPENDED_Disabled (0UL) /*!< Interrupt disabled. */
+#define TWI_INTENCLR_SUSPENDED_Enabled (1UL) /*!< Interrupt enabled. */
+#define TWI_INTENCLR_SUSPENDED_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 14 : Disable interrupt on BB event. */
+#define TWI_INTENCLR_BB_Pos (14UL) /*!< Position of BB field. */
+#define TWI_INTENCLR_BB_Msk (0x1UL << TWI_INTENCLR_BB_Pos) /*!< Bit mask of BB field. */
+#define TWI_INTENCLR_BB_Disabled (0UL) /*!< Interrupt disabled. */
+#define TWI_INTENCLR_BB_Enabled (1UL) /*!< Interrupt enabled. */
+#define TWI_INTENCLR_BB_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 9 : Disable interrupt on ERROR event. */
+#define TWI_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWI_INTENCLR_ERROR_Msk (0x1UL << TWI_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWI_INTENCLR_ERROR_Disabled (0UL) /*!< Interrupt disabled. */
+#define TWI_INTENCLR_ERROR_Enabled (1UL) /*!< Interrupt enabled. */
+#define TWI_INTENCLR_ERROR_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 7 : Disable interrupt on TXDSENT event. */
+#define TWI_INTENCLR_TXDSENT_Pos (7UL) /*!< Position of TXDSENT field. */
+#define TWI_INTENCLR_TXDSENT_Msk (0x1UL << TWI_INTENCLR_TXDSENT_Pos) /*!< Bit mask of TXDSENT field. */
+#define TWI_INTENCLR_TXDSENT_Disabled (0UL) /*!< Interrupt disabled. */
+#define TWI_INTENCLR_TXDSENT_Enabled (1UL) /*!< Interrupt enabled. */
+#define TWI_INTENCLR_TXDSENT_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 2 : Disable interrupt on RXDREADY event. */
+#define TWI_INTENCLR_RXDREADY_Pos (2UL) /*!< Position of RXDREADY field. */
+#define TWI_INTENCLR_RXDREADY_Msk (0x1UL << TWI_INTENCLR_RXDREADY_Pos) /*!< Bit mask of RXDREADY field. */
+#define TWI_INTENCLR_RXDREADY_Disabled (0UL) /*!< Interrupt disabled. */
+#define TWI_INTENCLR_RXDREADY_Enabled (1UL) /*!< Interrupt enabled. */
+#define TWI_INTENCLR_RXDREADY_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 1 : Disable interrupt on STOPPED event. */
+#define TWI_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWI_INTENCLR_STOPPED_Msk (0x1UL << TWI_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWI_INTENCLR_STOPPED_Disabled (0UL) /*!< Interrupt disabled. */
+#define TWI_INTENCLR_STOPPED_Enabled (1UL) /*!< Interrupt enabled. */
+#define TWI_INTENCLR_STOPPED_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: TWI_ERRORSRC */
+/* Description: Two-wire error source. Write error field to 1 to clear error. */
+
+/* Bit 2 : NACK received after sending a data byte. */
+#define TWI_ERRORSRC_DNACK_Pos (2UL) /*!< Position of DNACK field. */
+#define TWI_ERRORSRC_DNACK_Msk (0x1UL << TWI_ERRORSRC_DNACK_Pos) /*!< Bit mask of DNACK field. */
+#define TWI_ERRORSRC_DNACK_NotPresent (0UL) /*!< Error not present. */
+#define TWI_ERRORSRC_DNACK_Present (1UL) /*!< Error present. */
+#define TWI_ERRORSRC_DNACK_Clear (1UL) /*!< Clear error on write. */
+
+/* Bit 1 : NACK received after sending the address. */
+#define TWI_ERRORSRC_ANACK_Pos (1UL) /*!< Position of ANACK field. */
+#define TWI_ERRORSRC_ANACK_Msk (0x1UL << TWI_ERRORSRC_ANACK_Pos) /*!< Bit mask of ANACK field. */
+#define TWI_ERRORSRC_ANACK_NotPresent (0UL) /*!< Error not present. */
+#define TWI_ERRORSRC_ANACK_Present (1UL) /*!< Error present. */
+#define TWI_ERRORSRC_ANACK_Clear (1UL) /*!< Clear error on write. */
+
+/* Bit 0 : Byte received in RXD register before read of the last received byte (data loss). */
+#define TWI_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
+#define TWI_ERRORSRC_OVERRUN_Msk (0x1UL << TWI_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define TWI_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Error not present. */
+#define TWI_ERRORSRC_OVERRUN_Present (1UL) /*!< Error present. */
+#define TWI_ERRORSRC_OVERRUN_Clear (1UL) /*!< Clear error on write. */
+
+/* Register: TWI_ENABLE */
+/* Description: Enable two-wire master. */
+
+/* Bits 2..0 : Enable or disable W2M */
+#define TWI_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define TWI_ENABLE_ENABLE_Msk (0x7UL << TWI_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define TWI_ENABLE_ENABLE_Disabled (0x00UL) /*!< Disabled. */
+#define TWI_ENABLE_ENABLE_Enabled (0x05UL) /*!< Enabled. */
+
+/* Register: TWI_RXD */
+/* Description: RX data register. */
+
+/* Bits 7..0 : RX data from last transfer. */
+#define TWI_RXD_RXD_Pos (0UL) /*!< Position of RXD field. */
+#define TWI_RXD_RXD_Msk (0xFFUL << TWI_RXD_RXD_Pos) /*!< Bit mask of RXD field. */
+
+/* Register: TWI_TXD */
+/* Description: TX data register. */
+
+/* Bits 7..0 : TX data for next transfer. */
+#define TWI_TXD_TXD_Pos (0UL) /*!< Position of TXD field. */
+#define TWI_TXD_TXD_Msk (0xFFUL << TWI_TXD_TXD_Pos) /*!< Bit mask of TXD field. */
+
+/* Register: TWI_FREQUENCY */
+/* Description: Two-wire frequency. */
+
+/* Bits 31..0 : Two-wire master clock frequency. */
+#define TWI_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define TWI_FREQUENCY_FREQUENCY_Msk (0xFFFFFFFFUL << TWI_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+#define TWI_FREQUENCY_FREQUENCY_K100 (0x01980000UL) /*!< 100 kbps. */
+#define TWI_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250 kbps. */
+#define TWI_FREQUENCY_FREQUENCY_K400 (0x06680000UL) /*!< 400 kbps (actual rate 410.256 kbps). */
+
+/* Register: TWI_ADDRESS */
+/* Description: Address used in the two-wire transfer. */
+
+/* Bits 6..0 : Two-wire address. */
+#define TWI_ADDRESS_ADDRESS_Pos (0UL) /*!< Position of ADDRESS field. */
+#define TWI_ADDRESS_ADDRESS_Msk (0x7FUL << TWI_ADDRESS_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+
+/* Register: TWI_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define TWI_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define TWI_POWER_POWER_Msk (0x1UL << TWI_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define TWI_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define TWI_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: UART */
+/* Description: Universal Asynchronous Receiver/Transmitter. */
+
+/* Register: UART_SHORTS */
+/* Description: Shortcuts for UART. */
+
+/* Bit 4 : Shortcut between NCTS event and STOPRX task. */
+#define UART_SHORTS_NCTS_STOPRX_Pos (4UL) /*!< Position of NCTS_STOPRX field. */
+#define UART_SHORTS_NCTS_STOPRX_Msk (0x1UL << UART_SHORTS_NCTS_STOPRX_Pos) /*!< Bit mask of NCTS_STOPRX field. */
+#define UART_SHORTS_NCTS_STOPRX_Disabled (0UL) /*!< Shortcut disabled. */
+#define UART_SHORTS_NCTS_STOPRX_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Bit 3 : Shortcut between CTS event and STARTRX task. */
+#define UART_SHORTS_CTS_STARTRX_Pos (3UL) /*!< Position of CTS_STARTRX field. */
+#define UART_SHORTS_CTS_STARTRX_Msk (0x1UL << UART_SHORTS_CTS_STARTRX_Pos) /*!< Bit mask of CTS_STARTRX field. */
+#define UART_SHORTS_CTS_STARTRX_Disabled (0UL) /*!< Shortcut disabled. */
+#define UART_SHORTS_CTS_STARTRX_Enabled (1UL) /*!< Shortcut enabled. */
+
+/* Register: UART_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 17 : Enable interrupt on RXTO event. */
+#define UART_INTENSET_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UART_INTENSET_RXTO_Msk (0x1UL << UART_INTENSET_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UART_INTENSET_RXTO_Disabled (0UL) /*!< Interrupt disabled. */
+#define UART_INTENSET_RXTO_Enabled (1UL) /*!< Interrupt enabled. */
+#define UART_INTENSET_RXTO_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 9 : Enable interrupt on ERROR event. */
+#define UART_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UART_INTENSET_ERROR_Msk (0x1UL << UART_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UART_INTENSET_ERROR_Disabled (0UL) /*!< Interrupt disabled. */
+#define UART_INTENSET_ERROR_Enabled (1UL) /*!< Interrupt enabled. */
+#define UART_INTENSET_ERROR_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 7 : Enable interrupt on TXRDY event. */
+#define UART_INTENSET_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UART_INTENSET_TXDRDY_Msk (0x1UL << UART_INTENSET_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UART_INTENSET_TXDRDY_Disabled (0UL) /*!< Interrupt disabled. */
+#define UART_INTENSET_TXDRDY_Enabled (1UL) /*!< Interrupt enabled. */
+#define UART_INTENSET_TXDRDY_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 2 : Enable interrupt on RXRDY event. */
+#define UART_INTENSET_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UART_INTENSET_RXDRDY_Msk (0x1UL << UART_INTENSET_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UART_INTENSET_RXDRDY_Disabled (0UL) /*!< Interrupt disabled. */
+#define UART_INTENSET_RXDRDY_Enabled (1UL) /*!< Interrupt enabled. */
+#define UART_INTENSET_RXDRDY_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 1 : Enable interrupt on NCTS event. */
+#define UART_INTENSET_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UART_INTENSET_NCTS_Msk (0x1UL << UART_INTENSET_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UART_INTENSET_NCTS_Disabled (0UL) /*!< Interrupt disabled. */
+#define UART_INTENSET_NCTS_Enabled (1UL) /*!< Interrupt enabled. */
+#define UART_INTENSET_NCTS_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Bit 0 : Enable interrupt on CTS event. */
+#define UART_INTENSET_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UART_INTENSET_CTS_Msk (0x1UL << UART_INTENSET_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UART_INTENSET_CTS_Disabled (0UL) /*!< Interrupt disabled. */
+#define UART_INTENSET_CTS_Enabled (1UL) /*!< Interrupt enabled. */
+#define UART_INTENSET_CTS_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: UART_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 17 : Disable interrupt on RXTO event. */
+#define UART_INTENCLR_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UART_INTENCLR_RXTO_Msk (0x1UL << UART_INTENCLR_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UART_INTENCLR_RXTO_Disabled (0UL) /*!< Interrupt disabled. */
+#define UART_INTENCLR_RXTO_Enabled (1UL) /*!< Interrupt enabled. */
+#define UART_INTENCLR_RXTO_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 9 : Disable interrupt on ERROR event. */
+#define UART_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UART_INTENCLR_ERROR_Msk (0x1UL << UART_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UART_INTENCLR_ERROR_Disabled (0UL) /*!< Interrupt disabled. */
+#define UART_INTENCLR_ERROR_Enabled (1UL) /*!< Interrupt enabled. */
+#define UART_INTENCLR_ERROR_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 7 : Disable interrupt on TXRDY event. */
+#define UART_INTENCLR_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UART_INTENCLR_TXDRDY_Msk (0x1UL << UART_INTENCLR_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UART_INTENCLR_TXDRDY_Disabled (0UL) /*!< Interrupt disabled. */
+#define UART_INTENCLR_TXDRDY_Enabled (1UL) /*!< Interrupt enabled. */
+#define UART_INTENCLR_TXDRDY_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 2 : Disable interrupt on RXRDY event. */
+#define UART_INTENCLR_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UART_INTENCLR_RXDRDY_Msk (0x1UL << UART_INTENCLR_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UART_INTENCLR_RXDRDY_Disabled (0UL) /*!< Interrupt disabled. */
+#define UART_INTENCLR_RXDRDY_Enabled (1UL) /*!< Interrupt enabled. */
+#define UART_INTENCLR_RXDRDY_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 1 : Disable interrupt on NCTS event. */
+#define UART_INTENCLR_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UART_INTENCLR_NCTS_Msk (0x1UL << UART_INTENCLR_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UART_INTENCLR_NCTS_Disabled (0UL) /*!< Interrupt disabled. */
+#define UART_INTENCLR_NCTS_Enabled (1UL) /*!< Interrupt enabled. */
+#define UART_INTENCLR_NCTS_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Bit 0 : Disable interrupt on CTS event. */
+#define UART_INTENCLR_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UART_INTENCLR_CTS_Msk (0x1UL << UART_INTENCLR_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UART_INTENCLR_CTS_Disabled (0UL) /*!< Interrupt disabled. */
+#define UART_INTENCLR_CTS_Enabled (1UL) /*!< Interrupt enabled. */
+#define UART_INTENCLR_CTS_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: UART_ERRORSRC */
+/* Description: Error source. Write error field to 1 to clear error. */
+
+/* Bit 3 : The serial data input is '0' for longer than the length of a data frame. */
+#define UART_ERRORSRC_BREAK_Pos (3UL) /*!< Position of BREAK field. */
+#define UART_ERRORSRC_BREAK_Msk (0x1UL << UART_ERRORSRC_BREAK_Pos) /*!< Bit mask of BREAK field. */
+#define UART_ERRORSRC_BREAK_NotPresent (0UL) /*!< Error not present. */
+#define UART_ERRORSRC_BREAK_Present (1UL) /*!< Error present. */
+#define UART_ERRORSRC_BREAK_Clear (1UL) /*!< Clear error on write. */
+
+/* Bit 2 : A valid stop bit is not detected on the serial data input after all bits in a character have been received. */
+#define UART_ERRORSRC_FRAMING_Pos (2UL) /*!< Position of FRAMING field. */
+#define UART_ERRORSRC_FRAMING_Msk (0x1UL << UART_ERRORSRC_FRAMING_Pos) /*!< Bit mask of FRAMING field. */
+#define UART_ERRORSRC_FRAMING_NotPresent (0UL) /*!< Error not present. */
+#define UART_ERRORSRC_FRAMING_Present (1UL) /*!< Error present. */
+#define UART_ERRORSRC_FRAMING_Clear (1UL) /*!< Clear error on write. */
+
+/* Bit 1 : A character with bad parity is received. Only checked if HW parity control is enabled. */
+#define UART_ERRORSRC_PARITY_Pos (1UL) /*!< Position of PARITY field. */
+#define UART_ERRORSRC_PARITY_Msk (0x1UL << UART_ERRORSRC_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define UART_ERRORSRC_PARITY_NotPresent (0UL) /*!< Error not present. */
+#define UART_ERRORSRC_PARITY_Present (1UL) /*!< Error present. */
+#define UART_ERRORSRC_PARITY_Clear (1UL) /*!< Clear error on write. */
+
+/* Bit 0 : A start bit is received while the previous data still lies in RXD. (Data loss). */
+#define UART_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
+#define UART_ERRORSRC_OVERRUN_Msk (0x1UL << UART_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define UART_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Error not present. */
+#define UART_ERRORSRC_OVERRUN_Present (1UL) /*!< Error present. */
+#define UART_ERRORSRC_OVERRUN_Clear (1UL) /*!< Clear error on write. */
+
+/* Register: UART_ENABLE */
+/* Description: Enable UART and acquire IOs. */
+
+/* Bits 2..0 : Enable or disable UART and acquire IOs. */
+#define UART_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define UART_ENABLE_ENABLE_Msk (0x7UL << UART_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define UART_ENABLE_ENABLE_Disabled (0x00UL) /*!< UART disabled. */
+#define UART_ENABLE_ENABLE_Enabled (0x04UL) /*!< UART enabled. */
+
+/* Register: UART_RXD */
+/* Description: RXD register. On read action the buffer pointer is displaced. Once read the character is consumed. If read when no character available, the UART will stop working. */
+
+/* Bits 7..0 : RX data from previous transfer. Double buffered. */
+#define UART_RXD_RXD_Pos (0UL) /*!< Position of RXD field. */
+#define UART_RXD_RXD_Msk (0xFFUL << UART_RXD_RXD_Pos) /*!< Bit mask of RXD field. */
+
+/* Register: UART_TXD */
+/* Description: TXD register. */
+
+/* Bits 7..0 : TX data for transfer. */
+#define UART_TXD_TXD_Pos (0UL) /*!< Position of TXD field. */
+#define UART_TXD_TXD_Msk (0xFFUL << UART_TXD_TXD_Pos) /*!< Bit mask of TXD field. */
+
+/* Register: UART_BAUDRATE */
+/* Description: UART Baudrate. */
+
+/* Bits 31..0 : UART baudrate. */
+#define UART_BAUDRATE_BAUDRATE_Pos (0UL) /*!< Position of BAUDRATE field. */
+#define UART_BAUDRATE_BAUDRATE_Msk (0xFFFFFFFFUL << UART_BAUDRATE_BAUDRATE_Pos) /*!< Bit mask of BAUDRATE field. */
+#define UART_BAUDRATE_BAUDRATE_Baud1200 (0x0004F000UL) /*!< 1200 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud2400 (0x0009D000UL) /*!< 2400 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud4800 (0x0013B000UL) /*!< 4800 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud9600 (0x00275000UL) /*!< 9600 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud14400 (0x003B0000UL) /*!< 14400 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud19200 (0x004EA000UL) /*!< 19200 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud28800 (0x0075F000UL) /*!< 28800 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud31250 (0x00800000UL) /*!< 31250 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud38400 (0x009D5000UL) /*!< 38400 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud56000 (0x00E50000UL) /*!< 56000 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud57600 (0x00EBF000UL) /*!< 57600 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud76800 (0x013A9000UL) /*!< 76800 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud115200 (0x01D7E000UL) /*!< 115200 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud230400 (0x03AFB000UL) /*!< 230400 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud250000 (0x04000000UL) /*!< 250000 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud460800 (0x075F7000UL) /*!< 460800 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud921600 (0x0EBED000UL) /*!< 921600 baud. */
+#define UART_BAUDRATE_BAUDRATE_Baud1M (0x10000000UL) /*!< 1M baud. */
+
+/* Register: UART_CONFIG */
+/* Description: Configuration of parity and hardware flow control register. */
+
+/* Bits 3..1 : Include parity bit. */
+#define UART_CONFIG_PARITY_Pos (1UL) /*!< Position of PARITY field. */
+#define UART_CONFIG_PARITY_Msk (0x7UL << UART_CONFIG_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define UART_CONFIG_PARITY_Excluded (0UL) /*!< Parity bit excluded. */
+#define UART_CONFIG_PARITY_Included (7UL) /*!< Parity bit included. */
+
+/* Bit 0 : Hardware flow control. */
+#define UART_CONFIG_HWFC_Pos (0UL) /*!< Position of HWFC field. */
+#define UART_CONFIG_HWFC_Msk (0x1UL << UART_CONFIG_HWFC_Pos) /*!< Bit mask of HWFC field. */
+#define UART_CONFIG_HWFC_Disabled (0UL) /*!< Hardware flow control disabled. */
+#define UART_CONFIG_HWFC_Enabled (1UL) /*!< Hardware flow control enabled. */
+
+/* Register: UART_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define UART_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define UART_POWER_POWER_Msk (0x1UL << UART_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define UART_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define UART_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/* Peripheral: UICR */
+/* Description: User Information Configuration. */
+
+/* Register: UICR_RBPCONF */
+/* Description: Readback protection configuration. */
+
+/* Bits 15..8 : Readback protect all code in the device. */
+#define UICR_RBPCONF_PALL_Pos (8UL) /*!< Position of PALL field. */
+#define UICR_RBPCONF_PALL_Msk (0xFFUL << UICR_RBPCONF_PALL_Pos) /*!< Bit mask of PALL field. */
+#define UICR_RBPCONF_PALL_Enabled (0x00UL) /*!< Enabled. */
+#define UICR_RBPCONF_PALL_Disabled (0xFFUL) /*!< Disabled. */
+
+/* Bits 7..0 : Readback protect region 0. Will be ignored if pre-programmed factory code is present on the chip. */
+#define UICR_RBPCONF_PR0_Pos (0UL) /*!< Position of PR0 field. */
+#define UICR_RBPCONF_PR0_Msk (0xFFUL << UICR_RBPCONF_PR0_Pos) /*!< Bit mask of PR0 field. */
+#define UICR_RBPCONF_PR0_Enabled (0x00UL) /*!< Enabled. */
+#define UICR_RBPCONF_PR0_Disabled (0xFFUL) /*!< Disabled. */
+
+/* Register: UICR_XTALFREQ */
+/* Description: Reset value for CLOCK XTALFREQ register. */
+
+/* Bits 7..0 : Reset value for CLOCK XTALFREQ register. */
+#define UICR_XTALFREQ_XTALFREQ_Pos (0UL) /*!< Position of XTALFREQ field. */
+#define UICR_XTALFREQ_XTALFREQ_Msk (0xFFUL << UICR_XTALFREQ_XTALFREQ_Pos) /*!< Bit mask of XTALFREQ field. */
+#define UICR_XTALFREQ_XTALFREQ_32MHz (0x00UL) /*!< 32MHz Xtal is used. */
+#define UICR_XTALFREQ_XTALFREQ_16MHz (0xFFUL) /*!< 16MHz Xtal is used. */
+
+/* Register: UICR_FWID */
+/* Description: Firmware ID. */
+
+/* Bits 15..0 : Identification number for the firmware loaded into the chip. */
+#define UICR_FWID_FWID_Pos (0UL) /*!< Position of FWID field. */
+#define UICR_FWID_FWID_Msk (0xFFFFUL << UICR_FWID_FWID_Pos) /*!< Bit mask of FWID field. */
+
+
+/* Peripheral: WDT */
+/* Description: Watchdog Timer. */
+
+/* Register: WDT_INTENSET */
+/* Description: Interrupt enable set register. */
+
+/* Bit 0 : Enable interrupt on TIMEOUT event. */
+#define WDT_INTENSET_TIMEOUT_Pos (0UL) /*!< Position of TIMEOUT field. */
+#define WDT_INTENSET_TIMEOUT_Msk (0x1UL << WDT_INTENSET_TIMEOUT_Pos) /*!< Bit mask of TIMEOUT field. */
+#define WDT_INTENSET_TIMEOUT_Disabled (0UL) /*!< Interrupt disabled. */
+#define WDT_INTENSET_TIMEOUT_Enabled (1UL) /*!< Interrupt enabled. */
+#define WDT_INTENSET_TIMEOUT_Set (1UL) /*!< Enable interrupt on write. */
+
+/* Register: WDT_INTENCLR */
+/* Description: Interrupt enable clear register. */
+
+/* Bit 0 : Disable interrupt on TIMEOUT event. */
+#define WDT_INTENCLR_TIMEOUT_Pos (0UL) /*!< Position of TIMEOUT field. */
+#define WDT_INTENCLR_TIMEOUT_Msk (0x1UL << WDT_INTENCLR_TIMEOUT_Pos) /*!< Bit mask of TIMEOUT field. */
+#define WDT_INTENCLR_TIMEOUT_Disabled (0UL) /*!< Interrupt disabled. */
+#define WDT_INTENCLR_TIMEOUT_Enabled (1UL) /*!< Interrupt enabled. */
+#define WDT_INTENCLR_TIMEOUT_Clear (1UL) /*!< Disable interrupt on write. */
+
+/* Register: WDT_RUNSTATUS */
+/* Description: Watchdog running status. */
+
+/* Bit 0 : Watchdog running status. */
+#define WDT_RUNSTATUS_RUNSTATUS_Pos (0UL) /*!< Position of RUNSTATUS field. */
+#define WDT_RUNSTATUS_RUNSTATUS_Msk (0x1UL << WDT_RUNSTATUS_RUNSTATUS_Pos) /*!< Bit mask of RUNSTATUS field. */
+#define WDT_RUNSTATUS_RUNSTATUS_NotRunning (0UL) /*!< Watchdog timer is not running. */
+#define WDT_RUNSTATUS_RUNSTATUS_Running (1UL) /*!< Watchdog timer is running. */
+
+/* Register: WDT_REQSTATUS */
+/* Description: Request status. */
+
+/* Bit 7 : Request status for RR[7]. */
+#define WDT_REQSTATUS_RR7_Pos (7UL) /*!< Position of RR7 field. */
+#define WDT_REQSTATUS_RR7_Msk (0x1UL << WDT_REQSTATUS_RR7_Pos) /*!< Bit mask of RR7 field. */
+#define WDT_REQSTATUS_RR7_DisabledOrRequested (0UL) /*!< RR[7] register is not enabled or has already requested reload. */
+#define WDT_REQSTATUS_RR7_EnabledAndUnrequested (1UL) /*!< RR[7] register is enabled and has not jet requested. */
+
+/* Bit 6 : Request status for RR[6]. */
+#define WDT_REQSTATUS_RR6_Pos (6UL) /*!< Position of RR6 field. */
+#define WDT_REQSTATUS_RR6_Msk (0x1UL << WDT_REQSTATUS_RR6_Pos) /*!< Bit mask of RR6 field. */
+#define WDT_REQSTATUS_RR6_DisabledOrRequested (0UL) /*!< RR[6] register is not enabled or has already requested reload. */
+#define WDT_REQSTATUS_RR6_EnabledAndUnrequested (1UL) /*!< RR[6] register is enabled and has not jet requested. */
+
+/* Bit 5 : Request status for RR[5]. */
+#define WDT_REQSTATUS_RR5_Pos (5UL) /*!< Position of RR5 field. */
+#define WDT_REQSTATUS_RR5_Msk (0x1UL << WDT_REQSTATUS_RR5_Pos) /*!< Bit mask of RR5 field. */
+#define WDT_REQSTATUS_RR5_DisabledOrRequested (0UL) /*!< RR[5] register is not enabled or has already requested reload. */
+#define WDT_REQSTATUS_RR5_EnabledAndUnrequested (1UL) /*!< RR[5] register is enabled and has not jet requested. */
+
+/* Bit 4 : Request status for RR[4]. */
+#define WDT_REQSTATUS_RR4_Pos (4UL) /*!< Position of RR4 field. */
+#define WDT_REQSTATUS_RR4_Msk (0x1UL << WDT_REQSTATUS_RR4_Pos) /*!< Bit mask of RR4 field. */
+#define WDT_REQSTATUS_RR4_DisabledOrRequested (0UL) /*!< RR[4] register is not enabled or has already requested reload. */
+#define WDT_REQSTATUS_RR4_EnabledAndUnrequested (1UL) /*!< RR[4] register is enabled and has not jet requested. */
+
+/* Bit 3 : Request status for RR[3]. */
+#define WDT_REQSTATUS_RR3_Pos (3UL) /*!< Position of RR3 field. */
+#define WDT_REQSTATUS_RR3_Msk (0x1UL << WDT_REQSTATUS_RR3_Pos) /*!< Bit mask of RR3 field. */
+#define WDT_REQSTATUS_RR3_DisabledOrRequested (0UL) /*!< RR[3] register is not enabled or has already requested reload. */
+#define WDT_REQSTATUS_RR3_EnabledAndUnrequested (1UL) /*!< RR[3] register is enabled and has not jet requested. */
+
+/* Bit 2 : Request status for RR[2]. */
+#define WDT_REQSTATUS_RR2_Pos (2UL) /*!< Position of RR2 field. */
+#define WDT_REQSTATUS_RR2_Msk (0x1UL << WDT_REQSTATUS_RR2_Pos) /*!< Bit mask of RR2 field. */
+#define WDT_REQSTATUS_RR2_DisabledOrRequested (0UL) /*!< RR[2] register is not enabled or has already requested reload. */
+#define WDT_REQSTATUS_RR2_EnabledAndUnrequested (1UL) /*!< RR[2] register is enabled and has not jet requested. */
+
+/* Bit 1 : Request status for RR[1]. */
+#define WDT_REQSTATUS_RR1_Pos (1UL) /*!< Position of RR1 field. */
+#define WDT_REQSTATUS_RR1_Msk (0x1UL << WDT_REQSTATUS_RR1_Pos) /*!< Bit mask of RR1 field. */
+#define WDT_REQSTATUS_RR1_DisabledOrRequested (0UL) /*!< RR[1] register is not enabled or has already requested reload. */
+#define WDT_REQSTATUS_RR1_EnabledAndUnrequested (1UL) /*!< RR[1] register is enabled and has not jet requested. */
+
+/* Bit 0 : Request status for RR[0]. */
+#define WDT_REQSTATUS_RR0_Pos (0UL) /*!< Position of RR0 field. */
+#define WDT_REQSTATUS_RR0_Msk (0x1UL << WDT_REQSTATUS_RR0_Pos) /*!< Bit mask of RR0 field. */
+#define WDT_REQSTATUS_RR0_DisabledOrRequested (0UL) /*!< RR[0] register is not enabled or has already requested reload. */
+#define WDT_REQSTATUS_RR0_EnabledAndUnrequested (1UL) /*!< RR[0] register is enabled and has not jet requested. */
+
+/* Register: WDT_RREN */
+/* Description: Reload request enable. */
+
+/* Bit 7 : Enable or disable RR[7] register. */
+#define WDT_RREN_RR7_Pos (7UL) /*!< Position of RR7 field. */
+#define WDT_RREN_RR7_Msk (0x1UL << WDT_RREN_RR7_Pos) /*!< Bit mask of RR7 field. */
+#define WDT_RREN_RR7_Disabled (0UL) /*!< RR[7] register is disabled. */
+#define WDT_RREN_RR7_Enabled (1UL) /*!< RR[7] register is enabled. */
+
+/* Bit 6 : Enable or disable RR[6] register. */
+#define WDT_RREN_RR6_Pos (6UL) /*!< Position of RR6 field. */
+#define WDT_RREN_RR6_Msk (0x1UL << WDT_RREN_RR6_Pos) /*!< Bit mask of RR6 field. */
+#define WDT_RREN_RR6_Disabled (0UL) /*!< RR[6] register is disabled. */
+#define WDT_RREN_RR6_Enabled (1UL) /*!< RR[6] register is enabled. */
+
+/* Bit 5 : Enable or disable RR[5] register. */
+#define WDT_RREN_RR5_Pos (5UL) /*!< Position of RR5 field. */
+#define WDT_RREN_RR5_Msk (0x1UL << WDT_RREN_RR5_Pos) /*!< Bit mask of RR5 field. */
+#define WDT_RREN_RR5_Disabled (0UL) /*!< RR[5] register is disabled. */
+#define WDT_RREN_RR5_Enabled (1UL) /*!< RR[5] register is enabled. */
+
+/* Bit 4 : Enable or disable RR[4] register. */
+#define WDT_RREN_RR4_Pos (4UL) /*!< Position of RR4 field. */
+#define WDT_RREN_RR4_Msk (0x1UL << WDT_RREN_RR4_Pos) /*!< Bit mask of RR4 field. */
+#define WDT_RREN_RR4_Disabled (0UL) /*!< RR[4] register is disabled. */
+#define WDT_RREN_RR4_Enabled (1UL) /*!< RR[4] register is enabled. */
+
+/* Bit 3 : Enable or disable RR[3] register. */
+#define WDT_RREN_RR3_Pos (3UL) /*!< Position of RR3 field. */
+#define WDT_RREN_RR3_Msk (0x1UL << WDT_RREN_RR3_Pos) /*!< Bit mask of RR3 field. */
+#define WDT_RREN_RR3_Disabled (0UL) /*!< RR[3] register is disabled. */
+#define WDT_RREN_RR3_Enabled (1UL) /*!< RR[3] register is enabled. */
+
+/* Bit 2 : Enable or disable RR[2] register. */
+#define WDT_RREN_RR2_Pos (2UL) /*!< Position of RR2 field. */
+#define WDT_RREN_RR2_Msk (0x1UL << WDT_RREN_RR2_Pos) /*!< Bit mask of RR2 field. */
+#define WDT_RREN_RR2_Disabled (0UL) /*!< RR[2] register is disabled. */
+#define WDT_RREN_RR2_Enabled (1UL) /*!< RR[2] register is enabled. */
+
+/* Bit 1 : Enable or disable RR[1] register. */
+#define WDT_RREN_RR1_Pos (1UL) /*!< Position of RR1 field. */
+#define WDT_RREN_RR1_Msk (0x1UL << WDT_RREN_RR1_Pos) /*!< Bit mask of RR1 field. */
+#define WDT_RREN_RR1_Disabled (0UL) /*!< RR[1] register is disabled. */
+#define WDT_RREN_RR1_Enabled (1UL) /*!< RR[1] register is enabled. */
+
+/* Bit 0 : Enable or disable RR[0] register. */
+#define WDT_RREN_RR0_Pos (0UL) /*!< Position of RR0 field. */
+#define WDT_RREN_RR0_Msk (0x1UL << WDT_RREN_RR0_Pos) /*!< Bit mask of RR0 field. */
+#define WDT_RREN_RR0_Disabled (0UL) /*!< RR[0] register is disabled. */
+#define WDT_RREN_RR0_Enabled (1UL) /*!< RR[0] register is enabled. */
+
+/* Register: WDT_CONFIG */
+/* Description: Configuration register. */
+
+/* Bit 3 : Configure the watchdog to pause or not while the CPU is halted by the debugger. */
+#define WDT_CONFIG_HALT_Pos (3UL) /*!< Position of HALT field. */
+#define WDT_CONFIG_HALT_Msk (0x1UL << WDT_CONFIG_HALT_Pos) /*!< Bit mask of HALT field. */
+#define WDT_CONFIG_HALT_Pause (0UL) /*!< Pause watchdog while the CPU is halted by the debugger. */
+#define WDT_CONFIG_HALT_Run (1UL) /*!< Do not pause watchdog while the CPU is halted by the debugger. */
+
+/* Bit 0 : Configure the watchdog to pause or not while the CPU is sleeping. */
+#define WDT_CONFIG_SLEEP_Pos (0UL) /*!< Position of SLEEP field. */
+#define WDT_CONFIG_SLEEP_Msk (0x1UL << WDT_CONFIG_SLEEP_Pos) /*!< Bit mask of SLEEP field. */
+#define WDT_CONFIG_SLEEP_Pause (0UL) /*!< Pause watchdog while the CPU is asleep. */
+#define WDT_CONFIG_SLEEP_Run (1UL) /*!< Do not pause watchdog while the CPU is asleep. */
+
+/* Register: WDT_RR */
+/* Description: Reload requests registers. */
+
+/* Bits 31..0 : Reload register. */
+#define WDT_RR_RR_Pos (0UL) /*!< Position of RR field. */
+#define WDT_RR_RR_Msk (0xFFFFFFFFUL << WDT_RR_RR_Pos) /*!< Bit mask of RR field. */
+#define WDT_RR_RR_Reload (0x6E524635UL) /*!< Value to request a reload of the watchdog timer. */
+
+/* Register: WDT_POWER */
+/* Description: Peripheral power control. */
+
+/* Bit 0 : Peripheral power control. */
+#define WDT_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define WDT_POWER_POWER_Msk (0x1UL << WDT_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define WDT_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
+#define WDT_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
+
+
+/*lint --flb "Leave library region" */
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_common.ld b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_common.ld
new file mode 100644
index 0000000..6f5e4c5
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_common.ld
@@ -0,0 +1,170 @@
+/* Deprecated linker script for Nordic Semiconductor nRF51 devices
+ * please use nrfx_common.ld. This version exists for backwards
+ * compatibility.
+ *
+ * Version: Sourcery G++ 4.5-1
+ * Support: https://support.codesourcery.com/GNUToolchain/
+ *
+ * Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.
+ *
+ * The authors hereby grant permission to use, copy, modify, distribute,
+ * and license this software and its documentation for any purpose, provided
+ * that existing copyright notices are retained in all copies and that this
+ * notice is included verbatim in any distributions. No written agreement,
+ * license, or royalty fee is required for any of the authorized uses.
+ * Modifications to this software may be copyrighted by their authors
+ * and need not follow the licensing terms described here, provided that
+ * the new terms are clearly indicated on the first page of each file where
+ * they apply.
+ */
+OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
+
+/* Linker script to place sections and symbol values. Should be used together
+ * with other linker script that defines memory regions FLASH and RAM.
+ * It references following symbols, which must be defined in code:
+ * Reset_Handler : Entry of reset handler
+ *
+ * It defines following symbols, which code can use without definition:
+ * __exidx_start
+ * __exidx_end
+ * __etext
+ * __data_start__
+ * __preinit_array_start
+ * __preinit_array_end
+ * __init_array_start
+ * __init_array_end
+ * __fini_array_start
+ * __fini_array_end
+ * __data_end__
+ * __bss_start__
+ * __bss_end__
+ * __end__
+ * end
+ * __HeapBase
+ * __HeapLimit
+ * __StackLimit
+ * __StackTop
+ * __stack
+ */
+ENTRY(Reset_Handler)
+
+SECTIONS
+{
+ .text :
+ {
+ KEEP(*(.isr_vector))
+ *(.text*)
+
+ KEEP(*(.init))
+ KEEP(*(.fini))
+
+ /* .ctors */
+ *crtbegin.o(.ctors)
+ *crtbegin?.o(.ctors)
+ *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
+ *(SORT(.ctors.*))
+ *(.ctors)
+
+ /* .dtors */
+ *crtbegin.o(.dtors)
+ *crtbegin?.o(.dtors)
+ *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
+ *(SORT(.dtors.*))
+ *(.dtors)
+
+ *(.rodata*)
+
+ KEEP(*(.eh_frame*))
+ } > FLASH
+
+ .ARM.extab :
+ {
+ *(.ARM.extab* .gnu.linkonce.armextab.*)
+ } > FLASH
+
+ __exidx_start = .;
+ .ARM.exidx :
+ {
+ *(.ARM.exidx* .gnu.linkonce.armexidx.*)
+ } > FLASH
+ __exidx_end = .;
+
+ __etext = .;
+
+ .data : AT (__etext)
+ {
+ __data_start__ = .;
+ *(vtable)
+ *(.data*)
+
+ . = ALIGN(4);
+ /* preinit data */
+ PROVIDE_HIDDEN (__preinit_array_start = .);
+ KEEP(*(.preinit_array))
+ PROVIDE_HIDDEN (__preinit_array_end = .);
+
+ . = ALIGN(4);
+ /* init data */
+ PROVIDE_HIDDEN (__init_array_start = .);
+ KEEP(*(SORT(.init_array.*)))
+ KEEP(*(.init_array))
+ PROVIDE_HIDDEN (__init_array_end = .);
+
+
+ . = ALIGN(4);
+ /* finit data */
+ PROVIDE_HIDDEN (__fini_array_start = .);
+ KEEP(*(SORT(.fini_array.*)))
+ KEEP(*(.fini_array))
+ PROVIDE_HIDDEN (__fini_array_end = .);
+
+ KEEP(*(.jcr*))
+ . = ALIGN(4);
+ /* All data end */
+ __data_end__ = .;
+
+ } > RAM
+
+ .bss :
+ {
+ . = ALIGN(4);
+ __bss_start__ = .;
+ *(.bss*)
+ *(COMMON)
+ . = ALIGN(4);
+ __bss_end__ = .;
+ } > RAM
+
+ .heap (COPY):
+ {
+ __HeapBase = .;
+ __end__ = .;
+ PROVIDE(end = .);
+ KEEP(*(.heap*))
+ __HeapLimit = .;
+ } > RAM
+
+ /* .stack_dummy section doesn't contains any symbols. It is only
+ * used for linker to calculate size of stack sections, and assign
+ * values to stack symbols later */
+ .stack_dummy (COPY):
+ {
+ KEEP(*(.stack*))
+ } > RAM
+
+ /* Set stack top to end of RAM, and stack limit move down by
+ * size of stack_dummy section */
+ __StackTop = ORIGIN(RAM) + LENGTH(RAM);
+ __StackLimit = __StackTop - SIZEOF(.stack_dummy);
+ PROVIDE(__stack = __StackTop);
+
+ /* Check if data + heap + stack exceeds RAM limit */
+ ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
+
+ /* Check if text sections + data exceeds FLASH limit */
+ DataInitFlashUsed = __bss_start__ - __data_start__;
+ CodeFlashUsed = __etext - ORIGIN(FLASH);
+ TotalFlashUsed = CodeFlashUsed + DataInitFlashUsed;
+ ASSERT(TotalFlashUsed <= LENGTH(FLASH), "region FLASH overflowed with .data and user data")
+
+}
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_deprecated.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_deprecated.h
new file mode 100644
index 0000000..3d2a262
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_deprecated.h
@@ -0,0 +1,455 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef NRF51_DEPRECATED_H
+#define NRF51_DEPRECATED_H
+
+/*lint ++flb "Enter library region */
+
+/* This file is given to prevent your SW from not compiling with the updates made to nrf51.h and
+ * nrf51_bitfields.h. The macros defined in this file were available previously. Do not use these
+ * macros on purpose. Use the ones defined in nrf51.h and nrf51_bitfields.h instead.
+ */
+
+/* NVMC */
+/* The register ERASEPROTECTEDPAGE is called ERASEPCR0 in the documentation. */
+#define ERASEPROTECTEDPAGE ERASEPCR0
+
+
+/* LPCOMP */
+/* The interrupt ISR was renamed. Adding old name to the macros. */
+#define LPCOMP_COMP_IRQHandler LPCOMP_IRQHandler
+#define LPCOMP_COMP_IRQn LPCOMP_IRQn
+/* Corrected typo in RESULT register. */
+#define LPCOMP_RESULT_RESULT_Bellow LPCOMP_RESULT_RESULT_Below
+
+
+/* MPU */
+/* The field MPU.PERR0.LPCOMP_COMP was renamed. Added into deprecated in case somebody was using the macros defined for it. */
+#define MPU_PERR0_LPCOMP_COMP_Pos MPU_PERR0_LPCOMP_Pos
+#define MPU_PERR0_LPCOMP_COMP_Msk MPU_PERR0_LPCOMP_Msk
+#define MPU_PERR0_LPCOMP_COMP_InRegion1 MPU_PERR0_LPCOMP_InRegion1
+#define MPU_PERR0_LPCOMP_COMP_InRegion0 MPU_PERR0_LPCOMP_InRegion0
+
+
+/* POWER */
+/* The field POWER.RAMON.OFFRAM3 was eliminated. Added into deprecated in case somebody was using the macros defined for it. */
+#define POWER_RAMON_OFFRAM3_Pos (19UL)
+#define POWER_RAMON_OFFRAM3_Msk (0x1UL << POWER_RAMON_OFFRAM3_Pos)
+#define POWER_RAMON_OFFRAM3_RAM3Off (0UL)
+#define POWER_RAMON_OFFRAM3_RAM3On (1UL)
+/* The field POWER.RAMON.OFFRAM2 was eliminated. Added into deprecated in case somebody was using the macros defined for it. */
+#define POWER_RAMON_OFFRAM2_Pos (18UL)
+#define POWER_RAMON_OFFRAM2_Msk (0x1UL << POWER_RAMON_OFFRAM2_Pos)
+#define POWER_RAMON_OFFRAM2_RAM2Off (0UL)
+#define POWER_RAMON_OFFRAM2_RAM2On (1UL)
+/* The field POWER.RAMON.ONRAM3 was eliminated. Added into deprecated in case somebody was using the macros defined for it. */
+#define POWER_RAMON_ONRAM3_Pos (3UL)
+#define POWER_RAMON_ONRAM3_Msk (0x1UL << POWER_RAMON_ONRAM3_Pos)
+#define POWER_RAMON_ONRAM3_RAM3Off (0UL)
+#define POWER_RAMON_ONRAM3_RAM3On (1UL)
+/* The field POWER.RAMON.ONRAM2 was eliminated. Added into deprecated in case somebody was using the macros defined for it. */
+#define POWER_RAMON_ONRAM2_Pos (2UL)
+#define POWER_RAMON_ONRAM2_Msk (0x1UL << POWER_RAMON_ONRAM2_Pos)
+#define POWER_RAMON_ONRAM2_RAM2Off (0UL)
+#define POWER_RAMON_ONRAM2_RAM2On (1UL)
+
+
+/* RADIO */
+/* The enumerated value RADIO.TXPOWER.TXPOWER.Neg40dBm was renamed. Added into deprecated with the new macro name. */
+#define RADIO_TXPOWER_TXPOWER_Neg40dBm RADIO_TXPOWER_TXPOWER_Neg30dBm
+/* The name of the field SKIPADDR was corrected. Old macros added for compatibility. */
+#define RADIO_CRCCNF_SKIP_ADDR_Pos RADIO_CRCCNF_SKIPADDR_Pos
+#define RADIO_CRCCNF_SKIP_ADDR_Msk RADIO_CRCCNF_SKIPADDR_Msk
+#define RADIO_CRCCNF_SKIP_ADDR_Include RADIO_CRCCNF_SKIPADDR_Include
+#define RADIO_CRCCNF_SKIP_ADDR_Skip RADIO_CRCCNF_SKIPADDR_Skip
+/* The name of the field PLLLOCK was corrected. Old macros added for compatibility. */
+#define RADIO_TEST_PLL_LOCK_Pos RADIO_TEST_PLLLOCK_Pos
+#define RADIO_TEST_PLL_LOCK_Msk RADIO_TEST_PLLLOCK_Msk
+#define RADIO_TEST_PLL_LOCK_Disabled RADIO_TEST_PLLLOCK_Disabled
+#define RADIO_TEST_PLL_LOCK_Enabled RADIO_TEST_PLLLOCK_Enabled
+/* The name of the field CONSTCARRIER was corrected. Old macros added for compatibility. */
+#define RADIO_TEST_CONST_CARRIER_Pos RADIO_TEST_CONSTCARRIER_Pos
+#define RADIO_TEST_CONST_CARRIER_Msk RADIO_TEST_CONSTCARRIER_Msk
+#define RADIO_TEST_CONST_CARRIER_Disabled RADIO_TEST_CONSTCARRIER_Disabled
+#define RADIO_TEST_CONST_CARRIER_Enabled RADIO_TEST_CONSTCARRIER_Enabled
+
+
+/* FICR */
+/* The registers FICR.SIZERAMBLOCK0, FICR.SIZERAMBLOCK1, FICR.SIZERAMBLOCK2 and FICR.SIZERAMBLOCK3 were renamed into an array. */
+#define SIZERAMBLOCK0 SIZERAMBLOCKS
+#define SIZERAMBLOCK1 SIZERAMBLOCKS
+#define SIZERAMBLOCK2 SIZERAMBLOCK[2] /*!< Note that this macro will disapear when SIZERAMBLOCK array is eliminated. SIZERAMBLOCK is a deprecated array. */
+#define SIZERAMBLOCK3 SIZERAMBLOCK[3] /*!< Note that this macro will disapear when SIZERAMBLOCK array is eliminated. SIZERAMBLOCK is a deprecated array. */
+/* The registers FICR.DEVICEID0 and FICR.DEVICEID1 were renamed into an array. */
+#define DEVICEID0 DEVICEID[0]
+#define DEVICEID1 DEVICEID[1]
+/* The registers FICR.ER0, FICR.ER1, FICR.ER2 and FICR.ER3 were renamed into an array. */
+#define ER0 ER[0]
+#define ER1 ER[1]
+#define ER2 ER[2]
+#define ER3 ER[3]
+/* The registers FICR.IR0, FICR.IR1, FICR.IR2 and FICR.IR3 were renamed into an array. */
+#define IR0 IR[0]
+#define IR1 IR[1]
+#define IR2 IR[2]
+#define IR3 IR[3]
+/* The registers FICR.DEVICEADDR0 and FICR.DEVICEADDR1 were renamed into an array. */
+#define DEVICEADDR0 DEVICEADDR[0]
+#define DEVICEADDR1 DEVICEADDR[1]
+
+
+/* PPI */
+/* The tasks PPI.TASKS_CHGxEN and PPI.TASKS_CHGxDIS were renamed into an array of structs. */
+#define TASKS_CHG0EN TASKS_CHG[0].EN
+#define TASKS_CHG0DIS TASKS_CHG[0].DIS
+#define TASKS_CHG1EN TASKS_CHG[1].EN
+#define TASKS_CHG1DIS TASKS_CHG[1].DIS
+#define TASKS_CHG2EN TASKS_CHG[2].EN
+#define TASKS_CHG2DIS TASKS_CHG[2].DIS
+#define TASKS_CHG3EN TASKS_CHG[3].EN
+#define TASKS_CHG3DIS TASKS_CHG[3].DIS
+/* The registers PPI.CHx_EEP and PPI.CHx_TEP were renamed into an array of structs. */
+#define CH0_EEP CH[0].EEP
+#define CH0_TEP CH[0].TEP
+#define CH1_EEP CH[1].EEP
+#define CH1_TEP CH[1].TEP
+#define CH2_EEP CH[2].EEP
+#define CH2_TEP CH[2].TEP
+#define CH3_EEP CH[3].EEP
+#define CH3_TEP CH[3].TEP
+#define CH4_EEP CH[4].EEP
+#define CH4_TEP CH[4].TEP
+#define CH5_EEP CH[5].EEP
+#define CH5_TEP CH[5].TEP
+#define CH6_EEP CH[6].EEP
+#define CH6_TEP CH[6].TEP
+#define CH7_EEP CH[7].EEP
+#define CH7_TEP CH[7].TEP
+#define CH8_EEP CH[8].EEP
+#define CH8_TEP CH[8].TEP
+#define CH9_EEP CH[9].EEP
+#define CH9_TEP CH[9].TEP
+#define CH10_EEP CH[10].EEP
+#define CH10_TEP CH[10].TEP
+#define CH11_EEP CH[11].EEP
+#define CH11_TEP CH[11].TEP
+#define CH12_EEP CH[12].EEP
+#define CH12_TEP CH[12].TEP
+#define CH13_EEP CH[13].EEP
+#define CH13_TEP CH[13].TEP
+#define CH14_EEP CH[14].EEP
+#define CH14_TEP CH[14].TEP
+#define CH15_EEP CH[15].EEP
+#define CH15_TEP CH[15].TEP
+/* The registers PPI.CHG0, PPI.CHG1, PPI.CHG2 and PPI.CHG3 were renamed into an array. */
+#define CHG0 CHG[0]
+#define CHG1 CHG[1]
+#define CHG2 CHG[2]
+#define CHG3 CHG[3]
+/* All bitfield macros for the CHGx registers therefore changed name. */
+#define PPI_CHG0_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG0_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG0_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG0_CH15_Included PPI_CHG_CH15_Included
+#define PPI_CHG0_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG0_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG0_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG0_CH14_Included PPI_CHG_CH14_Included
+#define PPI_CHG0_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG0_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG0_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG0_CH13_Included PPI_CHG_CH13_Included
+#define PPI_CHG0_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG0_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG0_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG0_CH12_Included PPI_CHG_CH12_Included
+#define PPI_CHG0_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG0_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG0_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG0_CH11_Included PPI_CHG_CH11_Included
+#define PPI_CHG0_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG0_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG0_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG0_CH10_Included PPI_CHG_CH10_Included
+#define PPI_CHG0_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG0_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG0_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG0_CH9_Included PPI_CHG_CH9_Included
+#define PPI_CHG0_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG0_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG0_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG0_CH8_Included PPI_CHG_CH8_Included
+#define PPI_CHG0_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG0_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG0_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG0_CH7_Included PPI_CHG_CH7_Included
+#define PPI_CHG0_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG0_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG0_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG0_CH6_Included PPI_CHG_CH6_Included
+#define PPI_CHG0_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG0_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG0_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG0_CH5_Included PPI_CHG_CH5_Included
+#define PPI_CHG0_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG0_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG0_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG0_CH4_Included PPI_CHG_CH4_Included
+#define PPI_CHG0_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG0_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG0_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG0_CH3_Included PPI_CHG_CH3_Included
+#define PPI_CHG0_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG0_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG0_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG0_CH2_Included PPI_CHG_CH2_Included
+#define PPI_CHG0_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG0_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG0_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG0_CH1_Included PPI_CHG_CH1_Included
+#define PPI_CHG0_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG0_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG0_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG0_CH0_Included PPI_CHG_CH0_Included
+#define PPI_CHG1_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG1_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG1_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG1_CH15_Included PPI_CHG_CH15_Included
+#define PPI_CHG1_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG1_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG1_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG1_CH14_Included PPI_CHG_CH14_Included
+#define PPI_CHG1_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG1_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG1_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG1_CH13_Included PPI_CHG_CH13_Included
+#define PPI_CHG1_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG1_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG1_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG1_CH12_Included PPI_CHG_CH12_Included
+#define PPI_CHG1_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG1_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG1_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG1_CH11_Included PPI_CHG_CH11_Included
+#define PPI_CHG1_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG1_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG1_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG1_CH10_Included PPI_CHG_CH10_Included
+#define PPI_CHG1_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG1_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG1_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG1_CH9_Included PPI_CHG_CH9_Included
+#define PPI_CHG1_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG1_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG1_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG1_CH8_Included PPI_CHG_CH8_Included
+#define PPI_CHG1_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG1_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG1_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG1_CH7_Included PPI_CHG_CH7_Included
+#define PPI_CHG1_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG1_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG1_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG1_CH6_Included PPI_CHG_CH6_Included
+#define PPI_CHG1_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG1_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG1_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG1_CH5_Included PPI_CHG_CH5_Included
+#define PPI_CHG1_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG1_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG1_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG1_CH4_Included PPI_CHG_CH4_Included
+#define PPI_CHG1_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG1_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG1_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG1_CH3_Included PPI_CHG_CH3_Included
+#define PPI_CHG1_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG1_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG1_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG1_CH2_Included PPI_CHG_CH2_Included
+#define PPI_CHG1_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG1_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG1_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG1_CH1_Included PPI_CHG_CH1_Included
+#define PPI_CHG1_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG1_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG1_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG1_CH0_Included PPI_CHG_CH0_Included
+#define PPI_CHG2_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG2_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG2_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG2_CH15_Included PPI_CHG_CH15_Included
+#define PPI_CHG2_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG2_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG2_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG2_CH14_Included PPI_CHG_CH14_Included
+#define PPI_CHG2_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG2_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG2_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG2_CH13_Included PPI_CHG_CH13_Included
+#define PPI_CHG2_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG2_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG2_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG2_CH12_Included PPI_CHG_CH12_Included
+#define PPI_CHG2_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG2_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG2_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG2_CH11_Included PPI_CHG_CH11_Included
+#define PPI_CHG2_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG2_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG2_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG2_CH10_Included PPI_CHG_CH10_Included
+#define PPI_CHG2_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG2_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG2_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG2_CH9_Included PPI_CHG_CH9_Included
+#define PPI_CHG2_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG2_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG2_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG2_CH8_Included PPI_CHG_CH8_Included
+#define PPI_CHG2_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG2_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG2_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG2_CH7_Included PPI_CHG_CH7_Included
+#define PPI_CHG2_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG2_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG2_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG2_CH6_Included PPI_CHG_CH6_Included
+#define PPI_CHG2_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG2_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG2_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG2_CH5_Included PPI_CHG_CH5_Included
+#define PPI_CHG2_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG2_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG2_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG2_CH4_Included PPI_CHG_CH4_Included
+#define PPI_CHG2_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG2_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG2_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG2_CH3_Included PPI_CHG_CH3_Included
+#define PPI_CHG2_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG2_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG2_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG2_CH2_Included PPI_CHG_CH2_Included
+#define PPI_CHG2_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG2_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG2_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG2_CH1_Included PPI_CHG_CH1_Included
+#define PPI_CHG2_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG2_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG2_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG2_CH0_Included PPI_CHG_CH0_Included
+#define PPI_CHG3_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG3_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG3_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG3_CH15_Included PPI_CHG_CH15_Included
+#define PPI_CHG3_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG3_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG3_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG3_CH14_Included PPI_CHG_CH14_Included
+#define PPI_CHG3_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG3_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG3_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG3_CH13_Included PPI_CHG_CH13_Included
+#define PPI_CHG3_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG3_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG3_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG3_CH12_Included PPI_CHG_CH12_Included
+#define PPI_CHG3_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG3_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG3_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG3_CH11_Included PPI_CHG_CH11_Included
+#define PPI_CHG3_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG3_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG3_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG3_CH10_Included PPI_CHG_CH10_Included
+#define PPI_CHG3_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG3_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG3_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG3_CH9_Included PPI_CHG_CH9_Included
+#define PPI_CHG3_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG3_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG3_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG3_CH8_Included PPI_CHG_CH8_Included
+#define PPI_CHG3_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG3_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG3_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG3_CH7_Included PPI_CHG_CH7_Included
+#define PPI_CHG3_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG3_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG3_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG3_CH6_Included PPI_CHG_CH6_Included
+#define PPI_CHG3_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG3_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG3_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG3_CH5_Included PPI_CHG_CH5_Included
+#define PPI_CHG3_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG3_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG3_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG3_CH4_Included PPI_CHG_CH4_Included
+#define PPI_CHG3_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG3_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG3_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG3_CH3_Included PPI_CHG_CH3_Included
+#define PPI_CHG3_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG3_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG3_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG3_CH2_Included PPI_CHG_CH2_Included
+#define PPI_CHG3_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG3_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG3_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG3_CH1_Included PPI_CHG_CH1_Included
+#define PPI_CHG3_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG3_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG3_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG3_CH0_Included PPI_CHG_CH0_Included
+
+/* SPIS */
+/* nRF51 devices do not have an SPIS0, only SPIS1. SPIS0_EASYDMA_MAXCNT_SIZE was therefore renamed. */
+#define SPIS0_EASYDMA_MAXCNT_SIZE SPIS1_EASYDMA_MAXCNT_SIZE
+
+
+
+/*lint --flb "Leave library region" */
+
+#endif /* NRF51_DEPRECATED_H */
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_peripherals.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_peripherals.h
new file mode 100644
index 0000000..e533ad5
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_peripherals.h
@@ -0,0 +1,164 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef _NRF51_PERIPHERALS_H
+#define _NRF51_PERIPHERALS_H
+
+
+/* Power Peripheral */
+#define POWER_PRESENT
+#define POWER_COUNT 1
+
+#define POWER_FEATURE_RAMON_REGISTERS_PRESENT
+
+/* Software Interrupts */
+#define SWI_PRESENT
+#define SWI_COUNT 6
+
+/* GPIO */
+#define GPIO_PRESENT
+#define GPIO_COUNT 1
+
+#define P0_PIN_NUM 32
+
+/* MPU and BPROT */
+#define BPROT_PRESENT
+
+#define BPROT_REGIONS_SIZE 4096
+#define BPROT_REGIONS_NUM 64
+
+/* Radio */
+#define RADIO_PRESENT
+#define RADIO_COUNT 1
+
+/* Accelerated Address Resolver */
+#define AAR_PRESENT
+#define AAR_COUNT 1
+
+#define AAR_MAX_IRK_NUM 8
+
+/* AES Electronic CodeBook mode encryption */
+#define ECB_PRESENT
+#define ECB_COUNT 1
+
+/* AES CCM mode encryption */
+#define CCM_PRESENT
+#define CCM_COUNT 1
+
+/* Peripheral to Peripheral Interconnect */
+#define PPI_PRESENT
+#define PPI_COUNT 1
+
+#define PPI_CH_NUM 16
+#define PPI_FIXED_CH_NUM 12
+#define PPI_GROUP_NUM 4
+
+/* Timer/Counter */
+#define TIMER_PRESENT
+#define TIMER_COUNT 3
+
+#define TIMER0_MAX_SIZE 32
+#define TIMER1_MAX_SIZE 16
+#define TIMER2_MAX_SIZE 16
+
+#define TIMER0_CC_NUM 4
+#define TIMER1_CC_NUM 4
+#define TIMER2_CC_NUM 4
+
+/* Real Time Counter */
+#define RTC_PRESENT
+#define RTC_COUNT 2
+
+#define RTC0_CC_NUM 3
+#define RTC1_CC_NUM 4
+
+/* RNG */
+#define RNG_PRESENT
+#define RNG_COUNT 1
+
+/* Watchdog Timer */
+#define WDT_PRESENT
+#define WDT_COUNT 1
+
+/* Temperature Sensor */
+#define TEMP_PRESENT
+#define TEMP_COUNT 1
+
+/* Serial Peripheral Interface Master */
+#define SPI_PRESENT
+#define SPI_COUNT 2
+
+/* Serial Peripheral Interface Slave with DMA */
+#define SPIS_PRESENT
+#define SPIS_COUNT 1
+
+#define SPIS1_EASYDMA_MAXCNT_SIZE 8
+
+/* Two Wire Interface Master */
+#define TWI_PRESENT
+#define TWI_COUNT 2
+
+/* Universal Asynchronous Receiver-Transmitter */
+#define UART_PRESENT
+#define UART_COUNT 1
+
+/* Quadrature Decoder */
+#define QDEC_PRESENT
+#define QDEC_COUNT 1
+
+/* Analog to Digital Converter */
+#define ADC_PRESENT
+#define ADC_COUNT 1
+
+/* GPIO Tasks and Events */
+#define GPIOTE_PRESENT
+#define GPIOTE_COUNT 1
+
+#define GPIOTE_CH_NUM 4
+
+/* Low Power Comparator */
+#define LPCOMP_PRESENT
+#define LPCOMP_COUNT 1
+
+#define LPCOMP_REFSEL_RESOLUTION 8
+
+
+#endif // _NRF51_PERIPHERALS_H
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_to_nrf52.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_to_nrf52.h
new file mode 100644
index 0000000..6bbb7cc
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_to_nrf52.h
@@ -0,0 +1,963 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef NRF51_TO_NRF52_H
+#define NRF51_TO_NRF52_H
+
+/*lint ++flb "Enter library region */
+
+/* This file is given to prevent your SW from not compiling with the name changes between nRF51 and nRF52 devices.
+ * It redefines the old nRF51 names into the new ones as long as the functionality is still supported. If the
+ * functionality is gone, there old names are not defined, so compilation will fail. Note that also includes macros
+ * from the nrf51_deprecated.h file. */
+
+
+/* IRQ */
+/* Several peripherals have been added to several indexes. Names of IRQ handlers and IRQ numbers have changed. */
+#define UART0_IRQHandler UARTE0_UART0_IRQHandler
+#define SPI0_TWI0_IRQHandler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#define SPI1_TWI1_IRQHandler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#define ADC_IRQHandler SAADC_IRQHandler
+#define LPCOMP_IRQHandler COMP_LPCOMP_IRQHandler
+#define SWI0_IRQHandler SWI0_EGU0_IRQHandler
+#define SWI1_IRQHandler SWI1_EGU1_IRQHandler
+#define SWI2_IRQHandler SWI2_EGU2_IRQHandler
+#define SWI3_IRQHandler SWI3_EGU3_IRQHandler
+#define SWI4_IRQHandler SWI4_EGU4_IRQHandler
+#define SWI5_IRQHandler SWI5_EGU5_IRQHandler
+
+#define UART0_IRQn UARTE0_UART0_IRQn
+#define SPI0_TWI0_IRQn SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn
+#define SPI1_TWI1_IRQn SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn
+#define ADC_IRQn SAADC_IRQn
+#define LPCOMP_IRQn COMP_LPCOMP_IRQn
+#define SWI0_IRQn SWI0_EGU0_IRQn
+#define SWI1_IRQn SWI1_EGU1_IRQn
+#define SWI2_IRQn SWI2_EGU2_IRQn
+#define SWI3_IRQn SWI3_EGU3_IRQn
+#define SWI4_IRQn SWI4_EGU4_IRQn
+#define SWI5_IRQn SWI5_EGU5_IRQn
+
+
+/* UICR */
+/* Register RBPCONF was renamed to APPROTECT. */
+#define RBPCONF APPROTECT
+
+#define UICR_RBPCONF_PALL_Pos UICR_APPROTECT_PALL_Pos
+#define UICR_RBPCONF_PALL_Msk UICR_APPROTECT_PALL_Msk
+#define UICR_RBPCONF_PALL_Enabled UICR_APPROTECT_PALL_Enabled
+#define UICR_RBPCONF_PALL_Disabled UICR_APPROTECT_PALL_Disabled
+
+
+/* GPIO */
+/* GPIO port was renamed to P0. */
+#define NRF_GPIO NRF_P0
+#define NRF_GPIO_BASE NRF_P0_BASE
+
+
+/* QDEC */
+/* The registers PSELA, PSELB and PSELLED were restructured into a struct. */
+#define PSELLED PSEL.LED
+#define PSELA PSEL.A
+#define PSELB PSEL.B
+
+
+/* SPIS */
+/* The registers PSELSCK, PSELMISO, PSELMOSI, PSELCSN were restructured into a struct. */
+#define PSELSCK PSEL.SCK
+#define PSELMISO PSEL.MISO
+#define PSELMOSI PSEL.MOSI
+#define PSELCSN PSEL.CSN
+
+/* The registers RXDPTR, MAXRX, AMOUNTRX were restructured into a struct */
+#define RXDPTR RXD.PTR
+#define MAXRX RXD.MAXCNT
+#define AMOUNTRX RXD.AMOUNT
+
+#define SPIS_MAXRX_MAXRX_Pos SPIS_RXD_MAXCNT_MAXCNT_Pos
+#define SPIS_MAXRX_MAXRX_Msk SPIS_RXD_MAXCNT_MAXCNT_Msk
+
+#define SPIS_AMOUNTRX_AMOUNTRX_Pos SPIS_RXD_AMOUNT_AMOUNT_Pos
+#define SPIS_AMOUNTRX_AMOUNTRX_Msk SPIS_RXD_AMOUNT_AMOUNT_Msk
+
+/* The registers TXDPTR, MAXTX, AMOUNTTX were restructured into a struct */
+#define TXDPTR TXD.PTR
+#define MAXTX TXD.MAXCNT
+#define AMOUNTTX TXD.AMOUNT
+
+#define SPIS_MAXTX_MAXTX_Pos SPIS_TXD_MAXCNT_MAXCNT_Pos
+#define SPIS_MAXTX_MAXTX_Msk SPIS_TXD_MAXCNT_MAXCNT_Msk
+
+#define SPIS_AMOUNTTX_AMOUNTTX_Pos SPIS_TXD_AMOUNT_AMOUNT_Pos
+#define SPIS_AMOUNTTX_AMOUNTTX_Msk SPIS_TXD_AMOUNT_AMOUNT_Msk
+
+
+/* MPU */
+/* Part of MPU module was renamed BPROT, while the rest was eliminated. */
+#define NRF_MPU NRF_BPROT
+
+/* Register DISABLEINDEBUG macros were affected. */
+#define MPU_DISABLEINDEBUG_DISABLEINDEBUG_Pos BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Pos
+#define MPU_DISABLEINDEBUG_DISABLEINDEBUG_Msk BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Msk
+#define MPU_DISABLEINDEBUG_DISABLEINDEBUG_Enabled BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Enabled
+#define MPU_DISABLEINDEBUG_DISABLEINDEBUG_Disabled BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Disabled
+
+/* Registers PROTENSET0 and PROTENSET1 were affected and renamed as CONFIG0 and CONFIG1. */
+#define PROTENSET0 CONFIG0
+#define PROTENSET1 CONFIG1
+
+#define MPU_PROTENSET1_PROTREG63_Pos BPROT_CONFIG1_REGION63_Pos
+#define MPU_PROTENSET1_PROTREG63_Msk BPROT_CONFIG1_REGION63_Msk
+#define MPU_PROTENSET1_PROTREG63_Disabled BPROT_CONFIG1_REGION63_Disabled
+#define MPU_PROTENSET1_PROTREG63_Enabled BPROT_CONFIG1_REGION63_Enabled
+#define MPU_PROTENSET1_PROTREG63_Set BPROT_CONFIG1_REGION63_Enabled
+
+#define MPU_PROTENSET1_PROTREG62_Pos BPROT_CONFIG1_REGION62_Pos
+#define MPU_PROTENSET1_PROTREG62_Msk BPROT_CONFIG1_REGION62_Msk
+#define MPU_PROTENSET1_PROTREG62_Disabled BPROT_CONFIG1_REGION62_Disabled
+#define MPU_PROTENSET1_PROTREG62_Enabled BPROT_CONFIG1_REGION62_Enabled
+#define MPU_PROTENSET1_PROTREG62_Set BPROT_CONFIG1_REGION62_Enabled
+
+#define MPU_PROTENSET1_PROTREG61_Pos BPROT_CONFIG1_REGION61_Pos
+#define MPU_PROTENSET1_PROTREG61_Msk BPROT_CONFIG1_REGION61_Msk
+#define MPU_PROTENSET1_PROTREG61_Disabled BPROT_CONFIG1_REGION61_Disabled
+#define MPU_PROTENSET1_PROTREG61_Enabled BPROT_CONFIG1_REGION61_Enabled
+#define MPU_PROTENSET1_PROTREG61_Set BPROT_CONFIG1_REGION61_Enabled
+
+#define MPU_PROTENSET1_PROTREG60_Pos BPROT_CONFIG1_REGION60_Pos
+#define MPU_PROTENSET1_PROTREG60_Msk BPROT_CONFIG1_REGION60_Msk
+#define MPU_PROTENSET1_PROTREG60_Disabled BPROT_CONFIG1_REGION60_Disabled
+#define MPU_PROTENSET1_PROTREG60_Enabled BPROT_CONFIG1_REGION60_Enabled
+#define MPU_PROTENSET1_PROTREG60_Set BPROT_CONFIG1_REGION60_Enabled
+
+#define MPU_PROTENSET1_PROTREG59_Pos BPROT_CONFIG1_REGION59_Pos
+#define MPU_PROTENSET1_PROTREG59_Msk BPROT_CONFIG1_REGION59_Msk
+#define MPU_PROTENSET1_PROTREG59_Disabled BPROT_CONFIG1_REGION59_Disabled
+#define MPU_PROTENSET1_PROTREG59_Enabled BPROT_CONFIG1_REGION59_Enabled
+#define MPU_PROTENSET1_PROTREG59_Set BPROT_CONFIG1_REGION59_Enabled
+
+#define MPU_PROTENSET1_PROTREG58_Pos BPROT_CONFIG1_REGION58_Pos
+#define MPU_PROTENSET1_PROTREG58_Msk BPROT_CONFIG1_REGION58_Msk
+#define MPU_PROTENSET1_PROTREG58_Disabled BPROT_CONFIG1_REGION58_Disabled
+#define MPU_PROTENSET1_PROTREG58_Enabled BPROT_CONFIG1_REGION58_Enabled
+#define MPU_PROTENSET1_PROTREG58_Set BPROT_CONFIG1_REGION58_Enabled
+
+#define MPU_PROTENSET1_PROTREG57_Pos BPROT_CONFIG1_REGION57_Pos
+#define MPU_PROTENSET1_PROTREG57_Msk BPROT_CONFIG1_REGION57_Msk
+#define MPU_PROTENSET1_PROTREG57_Disabled BPROT_CONFIG1_REGION57_Disabled
+#define MPU_PROTENSET1_PROTREG57_Enabled BPROT_CONFIG1_REGION57_Enabled
+#define MPU_PROTENSET1_PROTREG57_Set BPROT_CONFIG1_REGION57_Enabled
+
+#define MPU_PROTENSET1_PROTREG56_Pos BPROT_CONFIG1_REGION56_Pos
+#define MPU_PROTENSET1_PROTREG56_Msk BPROT_CONFIG1_REGION56_Msk
+#define MPU_PROTENSET1_PROTREG56_Disabled BPROT_CONFIG1_REGION56_Disabled
+#define MPU_PROTENSET1_PROTREG56_Enabled BPROT_CONFIG1_REGION56_Enabled
+#define MPU_PROTENSET1_PROTREG56_Set BPROT_CONFIG1_REGION56_Enabled
+
+#define MPU_PROTENSET1_PROTREG55_Pos BPROT_CONFIG1_REGION55_Pos
+#define MPU_PROTENSET1_PROTREG55_Msk BPROT_CONFIG1_REGION55_Msk
+#define MPU_PROTENSET1_PROTREG55_Disabled BPROT_CONFIG1_REGION55_Disabled
+#define MPU_PROTENSET1_PROTREG55_Enabled BPROT_CONFIG1_REGION55_Enabled
+#define MPU_PROTENSET1_PROTREG55_Set BPROT_CONFIG1_REGION55_Enabled
+
+#define MPU_PROTENSET1_PROTREG54_Pos BPROT_CONFIG1_REGION54_Pos
+#define MPU_PROTENSET1_PROTREG54_Msk BPROT_CONFIG1_REGION54_Msk
+#define MPU_PROTENSET1_PROTREG54_Disabled BPROT_CONFIG1_REGION54_Disabled
+#define MPU_PROTENSET1_PROTREG54_Enabled BPROT_CONFIG1_REGION54_Enabled
+#define MPU_PROTENSET1_PROTREG54_Set BPROT_CONFIG1_REGION54_Enabled
+
+#define MPU_PROTENSET1_PROTREG53_Pos BPROT_CONFIG1_REGION53_Pos
+#define MPU_PROTENSET1_PROTREG53_Msk BPROT_CONFIG1_REGION53_Msk
+#define MPU_PROTENSET1_PROTREG53_Disabled BPROT_CONFIG1_REGION53_Disabled
+#define MPU_PROTENSET1_PROTREG53_Enabled BPROT_CONFIG1_REGION53_Enabled
+#define MPU_PROTENSET1_PROTREG53_Set BPROT_CONFIG1_REGION53_Enabled
+
+#define MPU_PROTENSET1_PROTREG52_Pos BPROT_CONFIG1_REGION52_Pos
+#define MPU_PROTENSET1_PROTREG52_Msk BPROT_CONFIG1_REGION52_Msk
+#define MPU_PROTENSET1_PROTREG52_Disabled BPROT_CONFIG1_REGION52_Disabled
+#define MPU_PROTENSET1_PROTREG52_Enabled BPROT_CONFIG1_REGION52_Enabled
+#define MPU_PROTENSET1_PROTREG52_Set BPROT_CONFIG1_REGION52_Enabled
+
+#define MPU_PROTENSET1_PROTREG51_Pos BPROT_CONFIG1_REGION51_Pos
+#define MPU_PROTENSET1_PROTREG51_Msk BPROT_CONFIG1_REGION51_Msk
+#define MPU_PROTENSET1_PROTREG51_Disabled BPROT_CONFIG1_REGION51_Disabled
+#define MPU_PROTENSET1_PROTREG51_Enabled BPROT_CONFIG1_REGION51_Enabled
+#define MPU_PROTENSET1_PROTREG51_Set BPROT_CONFIG1_REGION51_Enabled
+
+#define MPU_PROTENSET1_PROTREG50_Pos BPROT_CONFIG1_REGION50_Pos
+#define MPU_PROTENSET1_PROTREG50_Msk BPROT_CONFIG1_REGION50_Msk
+#define MPU_PROTENSET1_PROTREG50_Disabled BPROT_CONFIG1_REGION50_Disabled
+#define MPU_PROTENSET1_PROTREG50_Enabled BPROT_CONFIG1_REGION50_Enabled
+#define MPU_PROTENSET1_PROTREG50_Set BPROT_CONFIG1_REGION50_Enabled
+
+#define MPU_PROTENSET1_PROTREG49_Pos BPROT_CONFIG1_REGION49_Pos
+#define MPU_PROTENSET1_PROTREG49_Msk BPROT_CONFIG1_REGION49_Msk
+#define MPU_PROTENSET1_PROTREG49_Disabled BPROT_CONFIG1_REGION49_Disabled
+#define MPU_PROTENSET1_PROTREG49_Enabled BPROT_CONFIG1_REGION49_Enabled
+#define MPU_PROTENSET1_PROTREG49_Set BPROT_CONFIG1_REGION49_Enabled
+
+#define MPU_PROTENSET1_PROTREG48_Pos BPROT_CONFIG1_REGION48_Pos
+#define MPU_PROTENSET1_PROTREG48_Msk BPROT_CONFIG1_REGION48_Msk
+#define MPU_PROTENSET1_PROTREG48_Disabled BPROT_CONFIG1_REGION48_Disabled
+#define MPU_PROTENSET1_PROTREG48_Enabled BPROT_CONFIG1_REGION48_Enabled
+#define MPU_PROTENSET1_PROTREG48_Set BPROT_CONFIG1_REGION48_Enabled
+
+#define MPU_PROTENSET1_PROTREG47_Pos BPROT_CONFIG1_REGION47_Pos
+#define MPU_PROTENSET1_PROTREG47_Msk BPROT_CONFIG1_REGION47_Msk
+#define MPU_PROTENSET1_PROTREG47_Disabled BPROT_CONFIG1_REGION47_Disabled
+#define MPU_PROTENSET1_PROTREG47_Enabled BPROT_CONFIG1_REGION47_Enabled
+#define MPU_PROTENSET1_PROTREG47_Set BPROT_CONFIG1_REGION47_Enabled
+
+#define MPU_PROTENSET1_PROTREG46_Pos BPROT_CONFIG1_REGION46_Pos
+#define MPU_PROTENSET1_PROTREG46_Msk BPROT_CONFIG1_REGION46_Msk
+#define MPU_PROTENSET1_PROTREG46_Disabled BPROT_CONFIG1_REGION46_Disabled
+#define MPU_PROTENSET1_PROTREG46_Enabled BPROT_CONFIG1_REGION46_Enabled
+#define MPU_PROTENSET1_PROTREG46_Set BPROT_CONFIG1_REGION46_Enabled
+
+#define MPU_PROTENSET1_PROTREG45_Pos BPROT_CONFIG1_REGION45_Pos
+#define MPU_PROTENSET1_PROTREG45_Msk BPROT_CONFIG1_REGION45_Msk
+#define MPU_PROTENSET1_PROTREG45_Disabled BPROT_CONFIG1_REGION45_Disabled
+#define MPU_PROTENSET1_PROTREG45_Enabled BPROT_CONFIG1_REGION45_Enabled
+#define MPU_PROTENSET1_PROTREG45_Set BPROT_CONFIG1_REGION45_Enabled
+
+#define MPU_PROTENSET1_PROTREG44_Pos BPROT_CONFIG1_REGION44_Pos
+#define MPU_PROTENSET1_PROTREG44_Msk BPROT_CONFIG1_REGION44_Msk
+#define MPU_PROTENSET1_PROTREG44_Disabled BPROT_CONFIG1_REGION44_Disabled
+#define MPU_PROTENSET1_PROTREG44_Enabled BPROT_CONFIG1_REGION44_Enabled
+#define MPU_PROTENSET1_PROTREG44_Set BPROT_CONFIG1_REGION44_Enabled
+
+#define MPU_PROTENSET1_PROTREG43_Pos BPROT_CONFIG1_REGION43_Pos
+#define MPU_PROTENSET1_PROTREG43_Msk BPROT_CONFIG1_REGION43_Msk
+#define MPU_PROTENSET1_PROTREG43_Disabled BPROT_CONFIG1_REGION43_Disabled
+#define MPU_PROTENSET1_PROTREG43_Enabled BPROT_CONFIG1_REGION43_Enabled
+#define MPU_PROTENSET1_PROTREG43_Set BPROT_CONFIG1_REGION43_Enabled
+
+#define MPU_PROTENSET1_PROTREG42_Pos BPROT_CONFIG1_REGION42_Pos
+#define MPU_PROTENSET1_PROTREG42_Msk BPROT_CONFIG1_REGION42_Msk
+#define MPU_PROTENSET1_PROTREG42_Disabled BPROT_CONFIG1_REGION42_Disabled
+#define MPU_PROTENSET1_PROTREG42_Enabled BPROT_CONFIG1_REGION42_Enabled
+#define MPU_PROTENSET1_PROTREG42_Set BPROT_CONFIG1_REGION42_Enabled
+
+#define MPU_PROTENSET1_PROTREG41_Pos BPROT_CONFIG1_REGION41_Pos
+#define MPU_PROTENSET1_PROTREG41_Msk BPROT_CONFIG1_REGION41_Msk
+#define MPU_PROTENSET1_PROTREG41_Disabled BPROT_CONFIG1_REGION41_Disabled
+#define MPU_PROTENSET1_PROTREG41_Enabled BPROT_CONFIG1_REGION41_Enabled
+#define MPU_PROTENSET1_PROTREG41_Set BPROT_CONFIG1_REGION41_Enabled
+
+#define MPU_PROTENSET1_PROTREG40_Pos BPROT_CONFIG1_REGION40_Pos
+#define MPU_PROTENSET1_PROTREG40_Msk BPROT_CONFIG1_REGION40_Msk
+#define MPU_PROTENSET1_PROTREG40_Disabled BPROT_CONFIG1_REGION40_Disabled
+#define MPU_PROTENSET1_PROTREG40_Enabled BPROT_CONFIG1_REGION40_Enabled
+#define MPU_PROTENSET1_PROTREG40_Set BPROT_CONFIG1_REGION40_Enabled
+
+#define MPU_PROTENSET1_PROTREG39_Pos BPROT_CONFIG1_REGION39_Pos
+#define MPU_PROTENSET1_PROTREG39_Msk BPROT_CONFIG1_REGION39_Msk
+#define MPU_PROTENSET1_PROTREG39_Disabled BPROT_CONFIG1_REGION39_Disabled
+#define MPU_PROTENSET1_PROTREG39_Enabled BPROT_CONFIG1_REGION39_Enabled
+#define MPU_PROTENSET1_PROTREG39_Set BPROT_CONFIG1_REGION39_Enabled
+
+#define MPU_PROTENSET1_PROTREG38_Pos BPROT_CONFIG1_REGION38_Pos
+#define MPU_PROTENSET1_PROTREG38_Msk BPROT_CONFIG1_REGION38_Msk
+#define MPU_PROTENSET1_PROTREG38_Disabled BPROT_CONFIG1_REGION38_Disabled
+#define MPU_PROTENSET1_PROTREG38_Enabled BPROT_CONFIG1_REGION38_Enabled
+#define MPU_PROTENSET1_PROTREG38_Set BPROT_CONFIG1_REGION38_Enabled
+
+#define MPU_PROTENSET1_PROTREG37_Pos BPROT_CONFIG1_REGION37_Pos
+#define MPU_PROTENSET1_PROTREG37_Msk BPROT_CONFIG1_REGION37_Msk
+#define MPU_PROTENSET1_PROTREG37_Disabled BPROT_CONFIG1_REGION37_Disabled
+#define MPU_PROTENSET1_PROTREG37_Enabled BPROT_CONFIG1_REGION37_Enabled
+#define MPU_PROTENSET1_PROTREG37_Set BPROT_CONFIG1_REGION37_Enabled
+
+#define MPU_PROTENSET1_PROTREG36_Pos BPROT_CONFIG1_REGION36_Pos
+#define MPU_PROTENSET1_PROTREG36_Msk BPROT_CONFIG1_REGION36_Msk
+#define MPU_PROTENSET1_PROTREG36_Disabled BPROT_CONFIG1_REGION36_Disabled
+#define MPU_PROTENSET1_PROTREG36_Enabled BPROT_CONFIG1_REGION36_Enabled
+#define MPU_PROTENSET1_PROTREG36_Set BPROT_CONFIG1_REGION36_Enabled
+
+#define MPU_PROTENSET1_PROTREG35_Pos BPROT_CONFIG1_REGION35_Pos
+#define MPU_PROTENSET1_PROTREG35_Msk BPROT_CONFIG1_REGION35_Msk
+#define MPU_PROTENSET1_PROTREG35_Disabled BPROT_CONFIG1_REGION35_Disabled
+#define MPU_PROTENSET1_PROTREG35_Enabled BPROT_CONFIG1_REGION35_Enabled
+#define MPU_PROTENSET1_PROTREG35_Set BPROT_CONFIG1_REGION35_Enabled
+
+#define MPU_PROTENSET1_PROTREG34_Pos BPROT_CONFIG1_REGION34_Pos
+#define MPU_PROTENSET1_PROTREG34_Msk BPROT_CONFIG1_REGION34_Msk
+#define MPU_PROTENSET1_PROTREG34_Disabled BPROT_CONFIG1_REGION34_Disabled
+#define MPU_PROTENSET1_PROTREG34_Enabled BPROT_CONFIG1_REGION34_Enabled
+#define MPU_PROTENSET1_PROTREG34_Set BPROT_CONFIG1_REGION34_Enabled
+
+#define MPU_PROTENSET1_PROTREG33_Pos BPROT_CONFIG1_REGION33_Pos
+#define MPU_PROTENSET1_PROTREG33_Msk BPROT_CONFIG1_REGION33_Msk
+#define MPU_PROTENSET1_PROTREG33_Disabled BPROT_CONFIG1_REGION33_Disabled
+#define MPU_PROTENSET1_PROTREG33_Enabled BPROT_CONFIG1_REGION33_Enabled
+#define MPU_PROTENSET1_PROTREG33_Set BPROT_CONFIG1_REGION33_Enabled
+
+#define MPU_PROTENSET1_PROTREG32_Pos BPROT_CONFIG1_REGION32_Pos
+#define MPU_PROTENSET1_PROTREG32_Msk BPROT_CONFIG1_REGION32_Msk
+#define MPU_PROTENSET1_PROTREG32_Disabled BPROT_CONFIG1_REGION32_Disabled
+#define MPU_PROTENSET1_PROTREG32_Enabled BPROT_CONFIG1_REGION32_Enabled
+#define MPU_PROTENSET1_PROTREG32_Set BPROT_CONFIG1_REGION32_Enabled
+
+#define MPU_PROTENSET0_PROTREG31_Pos BPROT_CONFIG0_REGION31_Pos
+#define MPU_PROTENSET0_PROTREG31_Msk BPROT_CONFIG0_REGION31_Msk
+#define MPU_PROTENSET0_PROTREG31_Disabled BPROT_CONFIG0_REGION31_Disabled
+#define MPU_PROTENSET0_PROTREG31_Enabled BPROT_CONFIG0_REGION31_Enabled
+#define MPU_PROTENSET0_PROTREG31_Set BPROT_CONFIG0_REGION31_Enabled
+
+#define MPU_PROTENSET0_PROTREG30_Pos BPROT_CONFIG0_REGION30_Pos
+#define MPU_PROTENSET0_PROTREG30_Msk BPROT_CONFIG0_REGION30_Msk
+#define MPU_PROTENSET0_PROTREG30_Disabled BPROT_CONFIG0_REGION30_Disabled
+#define MPU_PROTENSET0_PROTREG30_Enabled BPROT_CONFIG0_REGION30_Enabled
+#define MPU_PROTENSET0_PROTREG30_Set BPROT_CONFIG0_REGION30_Enabled
+
+#define MPU_PROTENSET0_PROTREG29_Pos BPROT_CONFIG0_REGION29_Pos
+#define MPU_PROTENSET0_PROTREG29_Msk BPROT_CONFIG0_REGION29_Msk
+#define MPU_PROTENSET0_PROTREG29_Disabled BPROT_CONFIG0_REGION29_Disabled
+#define MPU_PROTENSET0_PROTREG29_Enabled BPROT_CONFIG0_REGION29_Enabled
+#define MPU_PROTENSET0_PROTREG29_Set BPROT_CONFIG0_REGION29_Enabled
+
+#define MPU_PROTENSET0_PROTREG28_Pos BPROT_CONFIG0_REGION28_Pos
+#define MPU_PROTENSET0_PROTREG28_Msk BPROT_CONFIG0_REGION28_Msk
+#define MPU_PROTENSET0_PROTREG28_Disabled BPROT_CONFIG0_REGION28_Disabled
+#define MPU_PROTENSET0_PROTREG28_Enabled BPROT_CONFIG0_REGION28_Enabled
+#define MPU_PROTENSET0_PROTREG28_Set BPROT_CONFIG0_REGION28_Enabled
+
+#define MPU_PROTENSET0_PROTREG27_Pos BPROT_CONFIG0_REGION27_Pos
+#define MPU_PROTENSET0_PROTREG27_Msk BPROT_CONFIG0_REGION27_Msk
+#define MPU_PROTENSET0_PROTREG27_Disabled BPROT_CONFIG0_REGION27_Disabled
+#define MPU_PROTENSET0_PROTREG27_Enabled BPROT_CONFIG0_REGION27_Enabled
+#define MPU_PROTENSET0_PROTREG27_Set BPROT_CONFIG0_REGION27_Enabled
+
+#define MPU_PROTENSET0_PROTREG26_Pos BPROT_CONFIG0_REGION26_Pos
+#define MPU_PROTENSET0_PROTREG26_Msk BPROT_CONFIG0_REGION26_Msk
+#define MPU_PROTENSET0_PROTREG26_Disabled BPROT_CONFIG0_REGION26_Disabled
+#define MPU_PROTENSET0_PROTREG26_Enabled BPROT_CONFIG0_REGION26_Enabled
+#define MPU_PROTENSET0_PROTREG26_Set BPROT_CONFIG0_REGION26_Enabled
+
+#define MPU_PROTENSET0_PROTREG25_Pos BPROT_CONFIG0_REGION25_Pos
+#define MPU_PROTENSET0_PROTREG25_Msk BPROT_CONFIG0_REGION25_Msk
+#define MPU_PROTENSET0_PROTREG25_Disabled BPROT_CONFIG0_REGION25_Disabled
+#define MPU_PROTENSET0_PROTREG25_Enabled BPROT_CONFIG0_REGION25_Enabled
+#define MPU_PROTENSET0_PROTREG25_Set BPROT_CONFIG0_REGION25_Enabled
+
+#define MPU_PROTENSET0_PROTREG24_Pos BPROT_CONFIG0_REGION24_Pos
+#define MPU_PROTENSET0_PROTREG24_Msk BPROT_CONFIG0_REGION24_Msk
+#define MPU_PROTENSET0_PROTREG24_Disabled BPROT_CONFIG0_REGION24_Disabled
+#define MPU_PROTENSET0_PROTREG24_Enabled BPROT_CONFIG0_REGION24_Enabled
+#define MPU_PROTENSET0_PROTREG24_Set BPROT_CONFIG0_REGION24_Enabled
+
+#define MPU_PROTENSET0_PROTREG23_Pos BPROT_CONFIG0_REGION23_Pos
+#define MPU_PROTENSET0_PROTREG23_Msk BPROT_CONFIG0_REGION23_Msk
+#define MPU_PROTENSET0_PROTREG23_Disabled BPROT_CONFIG0_REGION23_Disabled
+#define MPU_PROTENSET0_PROTREG23_Enabled BPROT_CONFIG0_REGION23_Enabled
+#define MPU_PROTENSET0_PROTREG23_Set BPROT_CONFIG0_REGION23_Enabled
+
+#define MPU_PROTENSET0_PROTREG22_Pos BPROT_CONFIG0_REGION22_Pos
+#define MPU_PROTENSET0_PROTREG22_Msk BPROT_CONFIG0_REGION22_Msk
+#define MPU_PROTENSET0_PROTREG22_Disabled BPROT_CONFIG0_REGION22_Disabled
+#define MPU_PROTENSET0_PROTREG22_Enabled BPROT_CONFIG0_REGION22_Enabled
+#define MPU_PROTENSET0_PROTREG22_Set BPROT_CONFIG0_REGION22_Enabled
+
+#define MPU_PROTENSET0_PROTREG21_Pos BPROT_CONFIG0_REGION21_Pos
+#define MPU_PROTENSET0_PROTREG21_Msk BPROT_CONFIG0_REGION21_Msk
+#define MPU_PROTENSET0_PROTREG21_Disabled BPROT_CONFIG0_REGION21_Disabled
+#define MPU_PROTENSET0_PROTREG21_Enabled BPROT_CONFIG0_REGION21_Enabled
+#define MPU_PROTENSET0_PROTREG21_Set BPROT_CONFIG0_REGION21_Enabled
+
+#define MPU_PROTENSET0_PROTREG20_Pos BPROT_CONFIG0_REGION20_Pos
+#define MPU_PROTENSET0_PROTREG20_Msk BPROT_CONFIG0_REGION20_Msk
+#define MPU_PROTENSET0_PROTREG20_Disabled BPROT_CONFIG0_REGION20_Disabled
+#define MPU_PROTENSET0_PROTREG20_Enabled BPROT_CONFIG0_REGION20_Enabled
+#define MPU_PROTENSET0_PROTREG20_Set BPROT_CONFIG0_REGION20_Enabled
+
+#define MPU_PROTENSET0_PROTREG19_Pos BPROT_CONFIG0_REGION19_Pos
+#define MPU_PROTENSET0_PROTREG19_Msk BPROT_CONFIG0_REGION19_Msk
+#define MPU_PROTENSET0_PROTREG19_Disabled BPROT_CONFIG0_REGION19_Disabled
+#define MPU_PROTENSET0_PROTREG19_Enabled BPROT_CONFIG0_REGION19_Enabled
+#define MPU_PROTENSET0_PROTREG19_Set BPROT_CONFIG0_REGION19_Enabled
+
+#define MPU_PROTENSET0_PROTREG18_Pos BPROT_CONFIG0_REGION18_Pos
+#define MPU_PROTENSET0_PROTREG18_Msk BPROT_CONFIG0_REGION18_Msk
+#define MPU_PROTENSET0_PROTREG18_Disabled BPROT_CONFIG0_REGION18_Disabled
+#define MPU_PROTENSET0_PROTREG18_Enabled BPROT_CONFIG0_REGION18_Enabled
+#define MPU_PROTENSET0_PROTREG18_Set BPROT_CONFIG0_REGION18_Enabled
+
+#define MPU_PROTENSET0_PROTREG17_Pos BPROT_CONFIG0_REGION17_Pos
+#define MPU_PROTENSET0_PROTREG17_Msk BPROT_CONFIG0_REGION17_Msk
+#define MPU_PROTENSET0_PROTREG17_Disabled BPROT_CONFIG0_REGION17_Disabled
+#define MPU_PROTENSET0_PROTREG17_Enabled BPROT_CONFIG0_REGION17_Enabled
+#define MPU_PROTENSET0_PROTREG17_Set BPROT_CONFIG0_REGION17_Enabled
+
+#define MPU_PROTENSET0_PROTREG16_Pos BPROT_CONFIG0_REGION16_Pos
+#define MPU_PROTENSET0_PROTREG16_Msk BPROT_CONFIG0_REGION16_Msk
+#define MPU_PROTENSET0_PROTREG16_Disabled BPROT_CONFIG0_REGION16_Disabled
+#define MPU_PROTENSET0_PROTREG16_Enabled BPROT_CONFIG0_REGION16_Enabled
+#define MPU_PROTENSET0_PROTREG16_Set BPROT_CONFIG0_REGION16_Enabled
+
+#define MPU_PROTENSET0_PROTREG15_Pos BPROT_CONFIG0_REGION15_Pos
+#define MPU_PROTENSET0_PROTREG15_Msk BPROT_CONFIG0_REGION15_Msk
+#define MPU_PROTENSET0_PROTREG15_Disabled BPROT_CONFIG0_REGION15_Disabled
+#define MPU_PROTENSET0_PROTREG15_Enabled BPROT_CONFIG0_REGION15_Enabled
+#define MPU_PROTENSET0_PROTREG15_Set BPROT_CONFIG0_REGION15_Enabled
+
+#define MPU_PROTENSET0_PROTREG14_Pos BPROT_CONFIG0_REGION14_Pos
+#define MPU_PROTENSET0_PROTREG14_Msk BPROT_CONFIG0_REGION14_Msk
+#define MPU_PROTENSET0_PROTREG14_Disabled BPROT_CONFIG0_REGION14_Disabled
+#define MPU_PROTENSET0_PROTREG14_Enabled BPROT_CONFIG0_REGION14_Enabled
+#define MPU_PROTENSET0_PROTREG14_Set BPROT_CONFIG0_REGION14_Enabled
+
+#define MPU_PROTENSET0_PROTREG13_Pos BPROT_CONFIG0_REGION13_Pos
+#define MPU_PROTENSET0_PROTREG13_Msk BPROT_CONFIG0_REGION13_Msk
+#define MPU_PROTENSET0_PROTREG13_Disabled BPROT_CONFIG0_REGION13_Disabled
+#define MPU_PROTENSET0_PROTREG13_Enabled BPROT_CONFIG0_REGION13_Enabled
+#define MPU_PROTENSET0_PROTREG13_Set BPROT_CONFIG0_REGION13_Enabled
+
+#define MPU_PROTENSET0_PROTREG12_Pos BPROT_CONFIG0_REGION12_Pos
+#define MPU_PROTENSET0_PROTREG12_Msk BPROT_CONFIG0_REGION12_Msk
+#define MPU_PROTENSET0_PROTREG12_Disabled BPROT_CONFIG0_REGION12_Disabled
+#define MPU_PROTENSET0_PROTREG12_Enabled BPROT_CONFIG0_REGION12_Enabled
+#define MPU_PROTENSET0_PROTREG12_Set BPROT_CONFIG0_REGION12_Enabled
+
+#define MPU_PROTENSET0_PROTREG11_Pos BPROT_CONFIG0_REGION11_Pos
+#define MPU_PROTENSET0_PROTREG11_Msk BPROT_CONFIG0_REGION11_Msk
+#define MPU_PROTENSET0_PROTREG11_Disabled BPROT_CONFIG0_REGION11_Disabled
+#define MPU_PROTENSET0_PROTREG11_Enabled BPROT_CONFIG0_REGION11_Enabled
+#define MPU_PROTENSET0_PROTREG11_Set BPROT_CONFIG0_REGION11_Enabled
+
+#define MPU_PROTENSET0_PROTREG10_Pos BPROT_CONFIG0_REGION10_Pos
+#define MPU_PROTENSET0_PROTREG10_Msk BPROT_CONFIG0_REGION10_Msk
+#define MPU_PROTENSET0_PROTREG10_Disabled BPROT_CONFIG0_REGION10_Disabled
+#define MPU_PROTENSET0_PROTREG10_Enabled BPROT_CONFIG0_REGION10_Enabled
+#define MPU_PROTENSET0_PROTREG10_Set BPROT_CONFIG0_REGION10_Enabled
+
+#define MPU_PROTENSET0_PROTREG9_Pos BPROT_CONFIG0_REGION9_Pos
+#define MPU_PROTENSET0_PROTREG9_Msk BPROT_CONFIG0_REGION9_Msk
+#define MPU_PROTENSET0_PROTREG9_Disabled BPROT_CONFIG0_REGION9_Disabled
+#define MPU_PROTENSET0_PROTREG9_Enabled BPROT_CONFIG0_REGION9_Enabled
+#define MPU_PROTENSET0_PROTREG9_Set BPROT_CONFIG0_REGION9_Enabled
+
+#define MPU_PROTENSET0_PROTREG8_Pos BPROT_CONFIG0_REGION8_Pos
+#define MPU_PROTENSET0_PROTREG8_Msk BPROT_CONFIG0_REGION8_Msk
+#define MPU_PROTENSET0_PROTREG8_Disabled BPROT_CONFIG0_REGION8_Disabled
+#define MPU_PROTENSET0_PROTREG8_Enabled BPROT_CONFIG0_REGION8_Enabled
+#define MPU_PROTENSET0_PROTREG8_Set BPROT_CONFIG0_REGION8_Enabled
+
+#define MPU_PROTENSET0_PROTREG7_Pos BPROT_CONFIG0_REGION7_Pos
+#define MPU_PROTENSET0_PROTREG7_Msk BPROT_CONFIG0_REGION7_Msk
+#define MPU_PROTENSET0_PROTREG7_Disabled BPROT_CONFIG0_REGION7_Disabled
+#define MPU_PROTENSET0_PROTREG7_Enabled BPROT_CONFIG0_REGION7_Enabled
+#define MPU_PROTENSET0_PROTREG7_Set BPROT_CONFIG0_REGION7_Enabled
+
+#define MPU_PROTENSET0_PROTREG6_Pos BPROT_CONFIG0_REGION6_Pos
+#define MPU_PROTENSET0_PROTREG6_Msk BPROT_CONFIG0_REGION6_Msk
+#define MPU_PROTENSET0_PROTREG6_Disabled BPROT_CONFIG0_REGION6_Disabled
+#define MPU_PROTENSET0_PROTREG6_Enabled BPROT_CONFIG0_REGION6_Enabled
+#define MPU_PROTENSET0_PROTREG6_Set BPROT_CONFIG0_REGION6_Enabled
+
+#define MPU_PROTENSET0_PROTREG5_Pos BPROT_CONFIG0_REGION5_Pos
+#define MPU_PROTENSET0_PROTREG5_Msk BPROT_CONFIG0_REGION5_Msk
+#define MPU_PROTENSET0_PROTREG5_Disabled BPROT_CONFIG0_REGION5_Disabled
+#define MPU_PROTENSET0_PROTREG5_Enabled BPROT_CONFIG0_REGION5_Enabled
+#define MPU_PROTENSET0_PROTREG5_Set BPROT_CONFIG0_REGION5_Enabled
+
+#define MPU_PROTENSET0_PROTREG4_Pos BPROT_CONFIG0_REGION4_Pos
+#define MPU_PROTENSET0_PROTREG4_Msk BPROT_CONFIG0_REGION4_Msk
+#define MPU_PROTENSET0_PROTREG4_Disabled BPROT_CONFIG0_REGION4_Disabled
+#define MPU_PROTENSET0_PROTREG4_Enabled BPROT_CONFIG0_REGION4_Enabled
+#define MPU_PROTENSET0_PROTREG4_Set BPROT_CONFIG0_REGION4_Enabled
+
+#define MPU_PROTENSET0_PROTREG3_Pos BPROT_CONFIG0_REGION3_Pos
+#define MPU_PROTENSET0_PROTREG3_Msk BPROT_CONFIG0_REGION3_Msk
+#define MPU_PROTENSET0_PROTREG3_Disabled BPROT_CONFIG0_REGION3_Disabled
+#define MPU_PROTENSET0_PROTREG3_Enabled BPROT_CONFIG0_REGION3_Enabled
+#define MPU_PROTENSET0_PROTREG3_Set BPROT_CONFIG0_REGION3_Enabled
+
+#define MPU_PROTENSET0_PROTREG2_Pos BPROT_CONFIG0_REGION2_Pos
+#define MPU_PROTENSET0_PROTREG2_Msk BPROT_CONFIG0_REGION2_Msk
+#define MPU_PROTENSET0_PROTREG2_Disabled BPROT_CONFIG0_REGION2_Disabled
+#define MPU_PROTENSET0_PROTREG2_Enabled BPROT_CONFIG0_REGION2_Enabled
+#define MPU_PROTENSET0_PROTREG2_Set BPROT_CONFIG0_REGION2_Enabled
+
+#define MPU_PROTENSET0_PROTREG1_Pos BPROT_CONFIG0_REGION1_Pos
+#define MPU_PROTENSET0_PROTREG1_Msk BPROT_CONFIG0_REGION1_Msk
+#define MPU_PROTENSET0_PROTREG1_Disabled BPROT_CONFIG0_REGION1_Disabled
+#define MPU_PROTENSET0_PROTREG1_Enabled BPROT_CONFIG0_REGION1_Enabled
+#define MPU_PROTENSET0_PROTREG1_Set BPROT_CONFIG0_REGION1_Enabled
+
+#define MPU_PROTENSET0_PROTREG0_Pos BPROT_CONFIG0_REGION0_Pos
+#define MPU_PROTENSET0_PROTREG0_Msk BPROT_CONFIG0_REGION0_Msk
+#define MPU_PROTENSET0_PROTREG0_Disabled BPROT_CONFIG0_REGION0_Disabled
+#define MPU_PROTENSET0_PROTREG0_Enabled BPROT_CONFIG0_REGION0_Enabled
+#define MPU_PROTENSET0_PROTREG0_Set BPROT_CONFIG0_REGION0_Enabled
+
+
+/* From nrf51_deprecated.h */
+
+/* NVMC */
+/* The register ERASEPROTECTEDPAGE changed name to ERASEPCR0 in the documentation. */
+#define ERASEPROTECTEDPAGE ERASEPCR0
+
+
+/* IRQ */
+/* COMP module was eliminated. Adapted to nrf52 headers. */
+#define LPCOMP_COMP_IRQHandler COMP_LPCOMP_IRQHandler
+#define LPCOMP_COMP_IRQn COMP_LPCOMP_IRQn
+
+
+/* REFSEL register redefined enumerated values and added some more. */
+#define LPCOMP_REFSEL_REFSEL_SupplyOneEighthPrescaling LPCOMP_REFSEL_REFSEL_Ref1_8Vdd
+#define LPCOMP_REFSEL_REFSEL_SupplyTwoEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref2_8Vdd
+#define LPCOMP_REFSEL_REFSEL_SupplyThreeEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref3_8Vdd
+#define LPCOMP_REFSEL_REFSEL_SupplyFourEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref4_8Vdd
+#define LPCOMP_REFSEL_REFSEL_SupplyFiveEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref5_8Vdd
+#define LPCOMP_REFSEL_REFSEL_SupplySixEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref6_8Vdd
+#define LPCOMP_REFSEL_REFSEL_SupplySevenEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref7_8Vdd
+
+
+/* RADIO */
+/* The name of the field SKIPADDR was corrected. Old macros added for compatibility. */
+#define RADIO_CRCCNF_SKIP_ADDR_Pos RADIO_CRCCNF_SKIPADDR_Pos
+#define RADIO_CRCCNF_SKIP_ADDR_Msk RADIO_CRCCNF_SKIPADDR_Msk
+#define RADIO_CRCCNF_SKIP_ADDR_Include RADIO_CRCCNF_SKIPADDR_Include
+#define RADIO_CRCCNF_SKIP_ADDR_Skip RADIO_CRCCNF_SKIPADDR_Skip
+
+
+/* FICR */
+/* The registers FICR.DEVICEID0 and FICR.DEVICEID1 were renamed into an array. */
+#define DEVICEID0 DEVICEID[0]
+#define DEVICEID1 DEVICEID[1]
+
+/* The registers FICR.ER0, FICR.ER1, FICR.ER2 and FICR.ER3 were renamed into an array. */
+#define ER0 ER[0]
+#define ER1 ER[1]
+#define ER2 ER[2]
+#define ER3 ER[3]
+
+/* The registers FICR.IR0, FICR.IR1, FICR.IR2 and FICR.IR3 were renamed into an array. */
+#define IR0 IR[0]
+#define IR1 IR[1]
+#define IR2 IR[2]
+#define IR3 IR[3]
+
+/* The registers FICR.DEVICEADDR0 and FICR.DEVICEADDR1 were renamed into an array. */
+#define DEVICEADDR0 DEVICEADDR[0]
+#define DEVICEADDR1 DEVICEADDR[1]
+
+
+/* PPI */
+/* The tasks PPI.TASKS_CHGxEN and PPI.TASKS_CHGxDIS were renamed into an array of structs. */
+#define TASKS_CHG0EN TASKS_CHG[0].EN
+#define TASKS_CHG0DIS TASKS_CHG[0].DIS
+#define TASKS_CHG1EN TASKS_CHG[1].EN
+#define TASKS_CHG1DIS TASKS_CHG[1].DIS
+#define TASKS_CHG2EN TASKS_CHG[2].EN
+#define TASKS_CHG2DIS TASKS_CHG[2].DIS
+#define TASKS_CHG3EN TASKS_CHG[3].EN
+#define TASKS_CHG3DIS TASKS_CHG[3].DIS
+
+/* The registers PPI.CHx_EEP and PPI.CHx_TEP were renamed into an array of structs. */
+#define CH0_EEP CH[0].EEP
+#define CH0_TEP CH[0].TEP
+#define CH1_EEP CH[1].EEP
+#define CH1_TEP CH[1].TEP
+#define CH2_EEP CH[2].EEP
+#define CH2_TEP CH[2].TEP
+#define CH3_EEP CH[3].EEP
+#define CH3_TEP CH[3].TEP
+#define CH4_EEP CH[4].EEP
+#define CH4_TEP CH[4].TEP
+#define CH5_EEP CH[5].EEP
+#define CH5_TEP CH[5].TEP
+#define CH6_EEP CH[6].EEP
+#define CH6_TEP CH[6].TEP
+#define CH7_EEP CH[7].EEP
+#define CH7_TEP CH[7].TEP
+#define CH8_EEP CH[8].EEP
+#define CH8_TEP CH[8].TEP
+#define CH9_EEP CH[9].EEP
+#define CH9_TEP CH[9].TEP
+#define CH10_EEP CH[10].EEP
+#define CH10_TEP CH[10].TEP
+#define CH11_EEP CH[11].EEP
+#define CH11_TEP CH[11].TEP
+#define CH12_EEP CH[12].EEP
+#define CH12_TEP CH[12].TEP
+#define CH13_EEP CH[13].EEP
+#define CH13_TEP CH[13].TEP
+#define CH14_EEP CH[14].EEP
+#define CH14_TEP CH[14].TEP
+#define CH15_EEP CH[15].EEP
+#define CH15_TEP CH[15].TEP
+
+/* The registers PPI.CHG0, PPI.CHG1, PPI.CHG2 and PPI.CHG3 were renamed into an array. */
+#define CHG0 CHG[0]
+#define CHG1 CHG[1]
+#define CHG2 CHG[2]
+#define CHG3 CHG[3]
+
+/* All bitfield macros for the CHGx registers therefore changed name. */
+#define PPI_CHG0_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG0_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG0_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG0_CH15_Included PPI_CHG_CH15_Included
+
+#define PPI_CHG0_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG0_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG0_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG0_CH14_Included PPI_CHG_CH14_Included
+
+#define PPI_CHG0_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG0_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG0_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG0_CH13_Included PPI_CHG_CH13_Included
+
+#define PPI_CHG0_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG0_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG0_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG0_CH12_Included PPI_CHG_CH12_Included
+
+#define PPI_CHG0_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG0_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG0_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG0_CH11_Included PPI_CHG_CH11_Included
+
+#define PPI_CHG0_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG0_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG0_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG0_CH10_Included PPI_CHG_CH10_Included
+
+#define PPI_CHG0_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG0_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG0_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG0_CH9_Included PPI_CHG_CH9_Included
+
+#define PPI_CHG0_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG0_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG0_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG0_CH8_Included PPI_CHG_CH8_Included
+
+#define PPI_CHG0_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG0_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG0_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG0_CH7_Included PPI_CHG_CH7_Included
+
+#define PPI_CHG0_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG0_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG0_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG0_CH6_Included PPI_CHG_CH6_Included
+
+#define PPI_CHG0_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG0_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG0_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG0_CH5_Included PPI_CHG_CH5_Included
+
+#define PPI_CHG0_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG0_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG0_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG0_CH4_Included PPI_CHG_CH4_Included
+
+#define PPI_CHG0_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG0_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG0_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG0_CH3_Included PPI_CHG_CH3_Included
+
+#define PPI_CHG0_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG0_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG0_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG0_CH2_Included PPI_CHG_CH2_Included
+
+#define PPI_CHG0_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG0_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG0_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG0_CH1_Included PPI_CHG_CH1_Included
+
+#define PPI_CHG0_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG0_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG0_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG0_CH0_Included PPI_CHG_CH0_Included
+
+#define PPI_CHG1_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG1_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG1_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG1_CH15_Included PPI_CHG_CH15_Included
+
+#define PPI_CHG1_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG1_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG1_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG1_CH14_Included PPI_CHG_CH14_Included
+
+#define PPI_CHG1_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG1_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG1_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG1_CH13_Included PPI_CHG_CH13_Included
+
+#define PPI_CHG1_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG1_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG1_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG1_CH12_Included PPI_CHG_CH12_Included
+
+#define PPI_CHG1_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG1_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG1_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG1_CH11_Included PPI_CHG_CH11_Included
+
+#define PPI_CHG1_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG1_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG1_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG1_CH10_Included PPI_CHG_CH10_Included
+
+#define PPI_CHG1_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG1_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG1_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG1_CH9_Included PPI_CHG_CH9_Included
+
+#define PPI_CHG1_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG1_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG1_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG1_CH8_Included PPI_CHG_CH8_Included
+
+#define PPI_CHG1_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG1_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG1_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG1_CH7_Included PPI_CHG_CH7_Included
+
+#define PPI_CHG1_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG1_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG1_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG1_CH6_Included PPI_CHG_CH6_Included
+
+#define PPI_CHG1_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG1_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG1_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG1_CH5_Included PPI_CHG_CH5_Included
+
+#define PPI_CHG1_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG1_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG1_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG1_CH4_Included PPI_CHG_CH4_Included
+
+#define PPI_CHG1_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG1_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG1_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG1_CH3_Included PPI_CHG_CH3_Included
+
+#define PPI_CHG1_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG1_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG1_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG1_CH2_Included PPI_CHG_CH2_Included
+
+#define PPI_CHG1_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG1_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG1_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG1_CH1_Included PPI_CHG_CH1_Included
+
+#define PPI_CHG1_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG1_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG1_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG1_CH0_Included PPI_CHG_CH0_Included
+
+#define PPI_CHG2_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG2_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG2_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG2_CH15_Included PPI_CHG_CH15_Included
+
+#define PPI_CHG2_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG2_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG2_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG2_CH14_Included PPI_CHG_CH14_Included
+
+#define PPI_CHG2_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG2_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG2_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG2_CH13_Included PPI_CHG_CH13_Included
+
+#define PPI_CHG2_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG2_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG2_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG2_CH12_Included PPI_CHG_CH12_Included
+
+#define PPI_CHG2_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG2_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG2_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG2_CH11_Included PPI_CHG_CH11_Included
+
+#define PPI_CHG2_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG2_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG2_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG2_CH10_Included PPI_CHG_CH10_Included
+
+#define PPI_CHG2_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG2_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG2_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG2_CH9_Included PPI_CHG_CH9_Included
+
+#define PPI_CHG2_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG2_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG2_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG2_CH8_Included PPI_CHG_CH8_Included
+
+#define PPI_CHG2_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG2_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG2_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG2_CH7_Included PPI_CHG_CH7_Included
+
+#define PPI_CHG2_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG2_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG2_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG2_CH6_Included PPI_CHG_CH6_Included
+
+#define PPI_CHG2_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG2_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG2_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG2_CH5_Included PPI_CHG_CH5_Included
+
+#define PPI_CHG2_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG2_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG2_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG2_CH4_Included PPI_CHG_CH4_Included
+
+#define PPI_CHG2_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG2_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG2_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG2_CH3_Included PPI_CHG_CH3_Included
+
+#define PPI_CHG2_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG2_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG2_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG2_CH2_Included PPI_CHG_CH2_Included
+
+#define PPI_CHG2_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG2_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG2_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG2_CH1_Included PPI_CHG_CH1_Included
+
+#define PPI_CHG2_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG2_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG2_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG2_CH0_Included PPI_CHG_CH0_Included
+
+#define PPI_CHG3_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG3_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG3_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG3_CH15_Included PPI_CHG_CH15_Included
+
+#define PPI_CHG3_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG3_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG3_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG3_CH14_Included PPI_CHG_CH14_Included
+
+#define PPI_CHG3_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG3_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG3_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG3_CH13_Included PPI_CHG_CH13_Included
+
+#define PPI_CHG3_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG3_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG3_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG3_CH12_Included PPI_CHG_CH12_Included
+
+#define PPI_CHG3_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG3_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG3_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG3_CH11_Included PPI_CHG_CH11_Included
+
+#define PPI_CHG3_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG3_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG3_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG3_CH10_Included PPI_CHG_CH10_Included
+
+#define PPI_CHG3_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG3_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG3_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG3_CH9_Included PPI_CHG_CH9_Included
+
+#define PPI_CHG3_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG3_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG3_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG3_CH8_Included PPI_CHG_CH8_Included
+
+#define PPI_CHG3_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG3_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG3_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG3_CH7_Included PPI_CHG_CH7_Included
+
+#define PPI_CHG3_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG3_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG3_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG3_CH6_Included PPI_CHG_CH6_Included
+
+#define PPI_CHG3_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG3_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG3_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG3_CH5_Included PPI_CHG_CH5_Included
+
+#define PPI_CHG3_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG3_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG3_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG3_CH4_Included PPI_CHG_CH4_Included
+
+#define PPI_CHG3_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG3_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG3_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG3_CH3_Included PPI_CHG_CH3_Included
+
+#define PPI_CHG3_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG3_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG3_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG3_CH2_Included PPI_CHG_CH2_Included
+
+#define PPI_CHG3_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG3_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG3_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG3_CH1_Included PPI_CHG_CH1_Included
+
+#define PPI_CHG3_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG3_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG3_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG3_CH0_Included PPI_CHG_CH0_Included
+
+
+
+
+/*lint --flb "Leave library region" */
+
+#endif /* NRF51_TO_NRF52_H */
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_to_nrf52810.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_to_nrf52810.h
new file mode 100644
index 0000000..4031ff4
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_to_nrf52810.h
@@ -0,0 +1,532 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef NRF51_TO_NRF52810_H
+#define NRF51_TO_NRF52810_H
+
+/*lint ++flb "Enter library region */
+
+/* This file is given to prevent your SW from not compiling with the name changes between nRF51 and nRF52840 devices.
+ * It redefines the old nRF51 names into the new ones as long as the functionality is still supported. If the
+ * functionality is gone, there old names are not defined, so compilation will fail. Note that also includes macros
+ * from the nrf51_deprecated.h file. */
+
+
+ /* Differences between latest nRF51 headers and nRF52810 headers. */
+
+/* IRQ */
+/* Several peripherals have been added to several indexes. Names of IRQ handlers and IRQ numbers have changed. */
+#define SWI0_IRQHandler SWI0_EGU0_IRQHandler
+#define SWI1_IRQHandler SWI1_EGU1_IRQHandler
+
+#define SWI0_IRQn SWI0_EGU0_IRQn
+#define SWI1_IRQn SWI1_EGU1_IRQn
+
+
+/* UICR */
+/* Register RBPCONF was renamed to APPROTECT. */
+#define RBPCONF APPROTECT
+
+#define UICR_RBPCONF_PALL_Pos UICR_APPROTECT_PALL_Pos
+#define UICR_RBPCONF_PALL_Msk UICR_APPROTECT_PALL_Msk
+#define UICR_RBPCONF_PALL_Enabled UICR_APPROTECT_PALL_Enabled
+#define UICR_RBPCONF_PALL_Disabled UICR_APPROTECT_PALL_Disabled
+
+
+/* GPIO */
+/* GPIO port was renamed to P0. */
+#define NRF_GPIO NRF_P0
+#define NRF_GPIO_BASE NRF_P0_BASE
+
+
+/* QDEC */
+/* The registers PSELA, PSELB and PSELLED were restructured into a struct. */
+#define PSELLED PSEL.LED
+#define PSELA PSEL.A
+#define PSELB PSEL.B
+
+
+/* SPIS */
+/* The registers PSELSCK, PSELMISO, PSELMOSI, PSELCSN were restructured into a struct. */
+#define PSELSCK PSEL.SCK
+#define PSELMISO PSEL.MISO
+#define PSELMOSI PSEL.MOSI
+#define PSELCSN PSEL.CSN
+
+/* The registers RXDPTR, MAXRX, AMOUNTRX were restructured into a struct */
+#define RXDPTR RXD.PTR
+#define MAXRX RXD.MAXCNT
+#define AMOUNTRX RXD.AMOUNT
+
+#define SPIS_MAXRX_MAXRX_Pos SPIS_RXD_MAXCNT_MAXCNT_Pos
+#define SPIS_MAXRX_MAXRX_Msk SPIS_RXD_MAXCNT_MAXCNT_Msk
+
+#define SPIS_AMOUNTRX_AMOUNTRX_Pos SPIS_RXD_AMOUNT_AMOUNT_Pos
+#define SPIS_AMOUNTRX_AMOUNTRX_Msk SPIS_RXD_AMOUNT_AMOUNT_Msk
+
+/* The registers TXDPTR, MAXTX, AMOUNTTX were restructured into a struct */
+#define TXDPTR TXD.PTR
+#define MAXTX TXD.MAXCNT
+#define AMOUNTTX TXD.AMOUNT
+
+#define SPIS_MAXTX_MAXTX_Pos SPIS_TXD_MAXCNT_MAXCNT_Pos
+#define SPIS_MAXTX_MAXTX_Msk SPIS_TXD_MAXCNT_MAXCNT_Msk
+
+#define SPIS_AMOUNTTX_AMOUNTTX_Pos SPIS_TXD_AMOUNT_AMOUNT_Pos
+#define SPIS_AMOUNTTX_AMOUNTTX_Msk SPIS_TXD_AMOUNT_AMOUNT_Msk
+
+
+/* From nrf51_deprecated.h. Several macros changed in different versions of nRF52 headers. By defining the following, any code written for any version of nRF52 headers will still compile. */
+
+/* NVMC */
+/* The register ERASEPROTECTEDPAGE changed name to ERASEPCR0 in the documentation. */
+#define ERASEPROTECTEDPAGE ERASEPCR0
+
+
+/* RADIO */
+/* The name of the field SKIPADDR was corrected. Old macros added for compatibility. */
+#define RADIO_CRCCNF_SKIP_ADDR_Pos RADIO_CRCCNF_SKIPADDR_Pos
+#define RADIO_CRCCNF_SKIP_ADDR_Msk RADIO_CRCCNF_SKIPADDR_Msk
+#define RADIO_CRCCNF_SKIP_ADDR_Include RADIO_CRCCNF_SKIPADDR_Include
+#define RADIO_CRCCNF_SKIP_ADDR_Skip RADIO_CRCCNF_SKIPADDR_Skip
+
+
+/* FICR */
+/* The registers FICR.DEVICEID0 and FICR.DEVICEID1 were renamed into an array. */
+#define DEVICEID0 DEVICEID[0]
+#define DEVICEID1 DEVICEID[1]
+
+/* The registers FICR.ER0, FICR.ER1, FICR.ER2 and FICR.ER3 were renamed into an array. */
+#define ER0 ER[0]
+#define ER1 ER[1]
+#define ER2 ER[2]
+#define ER3 ER[3]
+
+/* The registers FICR.IR0, FICR.IR1, FICR.IR2 and FICR.IR3 were renamed into an array. */
+#define IR0 IR[0]
+#define IR1 IR[1]
+#define IR2 IR[2]
+#define IR3 IR[3]
+
+/* The registers FICR.DEVICEADDR0 and FICR.DEVICEADDR1 were renamed into an array. */
+#define DEVICEADDR0 DEVICEADDR[0]
+#define DEVICEADDR1 DEVICEADDR[1]
+
+
+/* PPI */
+/* The tasks PPI.TASKS_CHGxEN and PPI.TASKS_CHGxDIS were renamed into an array of structs. */
+#define TASKS_CHG0EN TASKS_CHG[0].EN
+#define TASKS_CHG0DIS TASKS_CHG[0].DIS
+#define TASKS_CHG1EN TASKS_CHG[1].EN
+#define TASKS_CHG1DIS TASKS_CHG[1].DIS
+#define TASKS_CHG2EN TASKS_CHG[2].EN
+#define TASKS_CHG2DIS TASKS_CHG[2].DIS
+#define TASKS_CHG3EN TASKS_CHG[3].EN
+#define TASKS_CHG3DIS TASKS_CHG[3].DIS
+
+/* The registers PPI.CHx_EEP and PPI.CHx_TEP were renamed into an array of structs. */
+#define CH0_EEP CH[0].EEP
+#define CH0_TEP CH[0].TEP
+#define CH1_EEP CH[1].EEP
+#define CH1_TEP CH[1].TEP
+#define CH2_EEP CH[2].EEP
+#define CH2_TEP CH[2].TEP
+#define CH3_EEP CH[3].EEP
+#define CH3_TEP CH[3].TEP
+#define CH4_EEP CH[4].EEP
+#define CH4_TEP CH[4].TEP
+#define CH5_EEP CH[5].EEP
+#define CH5_TEP CH[5].TEP
+#define CH6_EEP CH[6].EEP
+#define CH6_TEP CH[6].TEP
+#define CH7_EEP CH[7].EEP
+#define CH7_TEP CH[7].TEP
+#define CH8_EEP CH[8].EEP
+#define CH8_TEP CH[8].TEP
+#define CH9_EEP CH[9].EEP
+#define CH9_TEP CH[9].TEP
+#define CH10_EEP CH[10].EEP
+#define CH10_TEP CH[10].TEP
+#define CH11_EEP CH[11].EEP
+#define CH11_TEP CH[11].TEP
+#define CH12_EEP CH[12].EEP
+#define CH12_TEP CH[12].TEP
+#define CH13_EEP CH[13].EEP
+#define CH13_TEP CH[13].TEP
+#define CH14_EEP CH[14].EEP
+#define CH14_TEP CH[14].TEP
+#define CH15_EEP CH[15].EEP
+#define CH15_TEP CH[15].TEP
+
+/* The registers PPI.CHG0, PPI.CHG1, PPI.CHG2 and PPI.CHG3 were renamed into an array. */
+#define CHG0 CHG[0]
+#define CHG1 CHG[1]
+#define CHG2 CHG[2]
+#define CHG3 CHG[3]
+
+/* All bitfield macros for the CHGx registers therefore changed name. */
+#define PPI_CHG0_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG0_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG0_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG0_CH15_Included PPI_CHG_CH15_Included
+
+#define PPI_CHG0_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG0_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG0_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG0_CH14_Included PPI_CHG_CH14_Included
+
+#define PPI_CHG0_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG0_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG0_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG0_CH13_Included PPI_CHG_CH13_Included
+
+#define PPI_CHG0_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG0_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG0_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG0_CH12_Included PPI_CHG_CH12_Included
+
+#define PPI_CHG0_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG0_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG0_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG0_CH11_Included PPI_CHG_CH11_Included
+
+#define PPI_CHG0_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG0_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG0_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG0_CH10_Included PPI_CHG_CH10_Included
+
+#define PPI_CHG0_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG0_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG0_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG0_CH9_Included PPI_CHG_CH9_Included
+
+#define PPI_CHG0_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG0_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG0_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG0_CH8_Included PPI_CHG_CH8_Included
+
+#define PPI_CHG0_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG0_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG0_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG0_CH7_Included PPI_CHG_CH7_Included
+
+#define PPI_CHG0_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG0_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG0_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG0_CH6_Included PPI_CHG_CH6_Included
+
+#define PPI_CHG0_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG0_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG0_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG0_CH5_Included PPI_CHG_CH5_Included
+
+#define PPI_CHG0_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG0_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG0_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG0_CH4_Included PPI_CHG_CH4_Included
+
+#define PPI_CHG0_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG0_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG0_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG0_CH3_Included PPI_CHG_CH3_Included
+
+#define PPI_CHG0_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG0_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG0_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG0_CH2_Included PPI_CHG_CH2_Included
+
+#define PPI_CHG0_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG0_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG0_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG0_CH1_Included PPI_CHG_CH1_Included
+
+#define PPI_CHG0_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG0_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG0_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG0_CH0_Included PPI_CHG_CH0_Included
+
+#define PPI_CHG1_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG1_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG1_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG1_CH15_Included PPI_CHG_CH15_Included
+
+#define PPI_CHG1_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG1_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG1_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG1_CH14_Included PPI_CHG_CH14_Included
+
+#define PPI_CHG1_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG1_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG1_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG1_CH13_Included PPI_CHG_CH13_Included
+
+#define PPI_CHG1_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG1_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG1_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG1_CH12_Included PPI_CHG_CH12_Included
+
+#define PPI_CHG1_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG1_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG1_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG1_CH11_Included PPI_CHG_CH11_Included
+
+#define PPI_CHG1_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG1_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG1_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG1_CH10_Included PPI_CHG_CH10_Included
+
+#define PPI_CHG1_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG1_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG1_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG1_CH9_Included PPI_CHG_CH9_Included
+
+#define PPI_CHG1_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG1_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG1_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG1_CH8_Included PPI_CHG_CH8_Included
+
+#define PPI_CHG1_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG1_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG1_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG1_CH7_Included PPI_CHG_CH7_Included
+
+#define PPI_CHG1_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG1_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG1_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG1_CH6_Included PPI_CHG_CH6_Included
+
+#define PPI_CHG1_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG1_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG1_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG1_CH5_Included PPI_CHG_CH5_Included
+
+#define PPI_CHG1_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG1_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG1_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG1_CH4_Included PPI_CHG_CH4_Included
+
+#define PPI_CHG1_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG1_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG1_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG1_CH3_Included PPI_CHG_CH3_Included
+
+#define PPI_CHG1_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG1_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG1_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG1_CH2_Included PPI_CHG_CH2_Included
+
+#define PPI_CHG1_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG1_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG1_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG1_CH1_Included PPI_CHG_CH1_Included
+
+#define PPI_CHG1_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG1_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG1_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG1_CH0_Included PPI_CHG_CH0_Included
+
+#define PPI_CHG2_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG2_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG2_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG2_CH15_Included PPI_CHG_CH15_Included
+
+#define PPI_CHG2_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG2_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG2_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG2_CH14_Included PPI_CHG_CH14_Included
+
+#define PPI_CHG2_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG2_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG2_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG2_CH13_Included PPI_CHG_CH13_Included
+
+#define PPI_CHG2_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG2_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG2_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG2_CH12_Included PPI_CHG_CH12_Included
+
+#define PPI_CHG2_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG2_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG2_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG2_CH11_Included PPI_CHG_CH11_Included
+
+#define PPI_CHG2_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG2_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG2_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG2_CH10_Included PPI_CHG_CH10_Included
+
+#define PPI_CHG2_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG2_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG2_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG2_CH9_Included PPI_CHG_CH9_Included
+
+#define PPI_CHG2_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG2_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG2_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG2_CH8_Included PPI_CHG_CH8_Included
+
+#define PPI_CHG2_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG2_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG2_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG2_CH7_Included PPI_CHG_CH7_Included
+
+#define PPI_CHG2_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG2_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG2_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG2_CH6_Included PPI_CHG_CH6_Included
+
+#define PPI_CHG2_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG2_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG2_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG2_CH5_Included PPI_CHG_CH5_Included
+
+#define PPI_CHG2_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG2_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG2_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG2_CH4_Included PPI_CHG_CH4_Included
+
+#define PPI_CHG2_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG2_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG2_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG2_CH3_Included PPI_CHG_CH3_Included
+
+#define PPI_CHG2_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG2_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG2_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG2_CH2_Included PPI_CHG_CH2_Included
+
+#define PPI_CHG2_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG2_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG2_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG2_CH1_Included PPI_CHG_CH1_Included
+
+#define PPI_CHG2_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG2_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG2_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG2_CH0_Included PPI_CHG_CH0_Included
+
+#define PPI_CHG3_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG3_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG3_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG3_CH15_Included PPI_CHG_CH15_Included
+
+#define PPI_CHG3_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG3_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG3_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG3_CH14_Included PPI_CHG_CH14_Included
+
+#define PPI_CHG3_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG3_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG3_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG3_CH13_Included PPI_CHG_CH13_Included
+
+#define PPI_CHG3_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG3_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG3_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG3_CH12_Included PPI_CHG_CH12_Included
+
+#define PPI_CHG3_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG3_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG3_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG3_CH11_Included PPI_CHG_CH11_Included
+
+#define PPI_CHG3_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG3_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG3_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG3_CH10_Included PPI_CHG_CH10_Included
+
+#define PPI_CHG3_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG3_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG3_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG3_CH9_Included PPI_CHG_CH9_Included
+
+#define PPI_CHG3_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG3_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG3_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG3_CH8_Included PPI_CHG_CH8_Included
+
+#define PPI_CHG3_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG3_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG3_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG3_CH7_Included PPI_CHG_CH7_Included
+
+#define PPI_CHG3_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG3_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG3_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG3_CH6_Included PPI_CHG_CH6_Included
+
+#define PPI_CHG3_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG3_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG3_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG3_CH5_Included PPI_CHG_CH5_Included
+
+#define PPI_CHG3_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG3_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG3_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG3_CH4_Included PPI_CHG_CH4_Included
+
+#define PPI_CHG3_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG3_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG3_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG3_CH3_Included PPI_CHG_CH3_Included
+
+#define PPI_CHG3_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG3_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG3_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG3_CH2_Included PPI_CHG_CH2_Included
+
+#define PPI_CHG3_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG3_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG3_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG3_CH1_Included PPI_CHG_CH1_Included
+
+#define PPI_CHG3_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG3_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG3_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG3_CH0_Included PPI_CHG_CH0_Included
+
+
+
+
+/*lint --flb "Leave library region" */
+
+#endif /* NRF51_TO_NRF52810_H */
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_to_nrf52840.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_to_nrf52840.h
new file mode 100644
index 0000000..ce19241
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_to_nrf52840.h
@@ -0,0 +1,578 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef NRF51_TO_NRF52840_H
+#define NRF51_TO_NRF52840_H
+
+/*lint ++flb "Enter library region */
+
+/* This file is given to prevent your SW from not compiling with the name changes between nRF51 and nRF52840 devices.
+ * It redefines the old nRF51 names into the new ones as long as the functionality is still supported. If the
+ * functionality is gone, there old names are not defined, so compilation will fail. Note that also includes macros
+ * from the nrf51_deprecated.h file. */
+
+
+/* IRQ */
+/* Several peripherals have been added to several indexes. Names of IRQ handlers and IRQ numbers have changed. */
+#define UART0_IRQHandler UARTE0_UART0_IRQHandler
+#define SPI0_TWI0_IRQHandler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#define SPI1_TWI1_IRQHandler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#define ADC_IRQHandler SAADC_IRQHandler
+#define LPCOMP_IRQHandler COMP_LPCOMP_IRQHandler
+#define SWI0_IRQHandler SWI0_EGU0_IRQHandler
+#define SWI1_IRQHandler SWI1_EGU1_IRQHandler
+#define SWI2_IRQHandler SWI2_EGU2_IRQHandler
+#define SWI3_IRQHandler SWI3_EGU3_IRQHandler
+#define SWI4_IRQHandler SWI4_EGU4_IRQHandler
+#define SWI5_IRQHandler SWI5_EGU5_IRQHandler
+
+#define UART0_IRQn UARTE0_UART0_IRQn
+#define SPI0_TWI0_IRQn SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn
+#define SPI1_TWI1_IRQn SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn
+#define ADC_IRQn SAADC_IRQn
+#define LPCOMP_IRQn COMP_LPCOMP_IRQn
+#define SWI0_IRQn SWI0_EGU0_IRQn
+#define SWI1_IRQn SWI1_EGU1_IRQn
+#define SWI2_IRQn SWI2_EGU2_IRQn
+#define SWI3_IRQn SWI3_EGU3_IRQn
+#define SWI4_IRQn SWI4_EGU4_IRQn
+#define SWI5_IRQn SWI5_EGU5_IRQn
+
+
+/* UICR */
+/* Register RBPCONF was renamed to APPROTECT. */
+#define RBPCONF APPROTECT
+
+#define UICR_RBPCONF_PALL_Pos UICR_APPROTECT_PALL_Pos
+#define UICR_RBPCONF_PALL_Msk UICR_APPROTECT_PALL_Msk
+#define UICR_RBPCONF_PALL_Enabled UICR_APPROTECT_PALL_Enabled
+#define UICR_RBPCONF_PALL_Disabled UICR_APPROTECT_PALL_Disabled
+
+
+/* GPIO */
+/* GPIO port was renamed to P0. */
+#define NRF_GPIO NRF_P0
+#define NRF_GPIO_BASE NRF_P0_BASE
+
+
+/* QDEC */
+/* The registers PSELA, PSELB and PSELLED were restructured into a struct. */
+#define PSELLED PSEL.LED
+#define PSELA PSEL.A
+#define PSELB PSEL.B
+
+
+/* SPIS */
+/* The registers PSELSCK, PSELMISO, PSELMOSI, PSELCSN were restructured into a struct. */
+#define PSELSCK PSEL.SCK
+#define PSELMISO PSEL.MISO
+#define PSELMOSI PSEL.MOSI
+#define PSELCSN PSEL.CSN
+
+/* The registers RXDPTR, MAXRX, AMOUNTRX were restructured into a struct */
+#define RXDPTR RXD.PTR
+#define MAXRX RXD.MAXCNT
+#define AMOUNTRX RXD.AMOUNT
+
+#define SPIS_MAXRX_MAXRX_Pos SPIS_RXD_MAXCNT_MAXCNT_Pos
+#define SPIS_MAXRX_MAXRX_Msk SPIS_RXD_MAXCNT_MAXCNT_Msk
+
+#define SPIS_AMOUNTRX_AMOUNTRX_Pos SPIS_RXD_AMOUNT_AMOUNT_Pos
+#define SPIS_AMOUNTRX_AMOUNTRX_Msk SPIS_RXD_AMOUNT_AMOUNT_Msk
+
+/* The registers TXDPTR, MAXTX, AMOUNTTX were restructured into a struct */
+#define TXDPTR TXD.PTR
+#define MAXTX TXD.MAXCNT
+#define AMOUNTTX TXD.AMOUNT
+
+#define SPIS_MAXTX_MAXTX_Pos SPIS_TXD_MAXCNT_MAXCNT_Pos
+#define SPIS_MAXTX_MAXTX_Msk SPIS_TXD_MAXCNT_MAXCNT_Msk
+
+#define SPIS_AMOUNTTX_AMOUNTTX_Pos SPIS_TXD_AMOUNT_AMOUNT_Pos
+#define SPIS_AMOUNTTX_AMOUNTTX_Msk SPIS_TXD_AMOUNT_AMOUNT_Msk
+
+
+/* UART */
+/* The registers PSELRTS, PSELTXD, PSELCTS, PSELRXD were restructured into a struct. */
+#define PSELRTS PSEL.RTS
+#define PSELTXD PSEL.TXD
+#define PSELCTS PSEL.CTS
+#define PSELRXD PSEL.RXD
+
+/* TWI */
+/* The registers PSELSCL, PSELSDA were restructured into a struct. */
+#define PSELSCL PSEL.SCL
+#define PSELSDA PSEL.SDA
+
+
+
+/* From nrf51_deprecated.h */
+
+/* NVMC */
+/* The register ERASEPROTECTEDPAGE changed name to ERASEPCR0 in the documentation. */
+#define ERASEPROTECTEDPAGE ERASEPCR0
+
+
+/* IRQ */
+/* COMP module was eliminated. Adapted to nrf52840 headers. */
+#define LPCOMP_COMP_IRQHandler COMP_LPCOMP_IRQHandler
+#define LPCOMP_COMP_IRQn COMP_LPCOMP_IRQn
+
+
+/* REFSEL register redefined enumerated values and added some more. */
+#define LPCOMP_REFSEL_REFSEL_SupplyOneEighthPrescaling LPCOMP_REFSEL_REFSEL_Ref1_8Vdd
+#define LPCOMP_REFSEL_REFSEL_SupplyTwoEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref2_8Vdd
+#define LPCOMP_REFSEL_REFSEL_SupplyThreeEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref3_8Vdd
+#define LPCOMP_REFSEL_REFSEL_SupplyFourEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref4_8Vdd
+#define LPCOMP_REFSEL_REFSEL_SupplyFiveEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref5_8Vdd
+#define LPCOMP_REFSEL_REFSEL_SupplySixEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref6_8Vdd
+#define LPCOMP_REFSEL_REFSEL_SupplySevenEighthsPrescaling LPCOMP_REFSEL_REFSEL_Ref7_8Vdd
+
+
+/* RADIO */
+/* The name of the field SKIPADDR was corrected. Old macros added for compatibility. */
+#define RADIO_CRCCNF_SKIP_ADDR_Pos RADIO_CRCCNF_SKIPADDR_Pos
+#define RADIO_CRCCNF_SKIP_ADDR_Msk RADIO_CRCCNF_SKIPADDR_Msk
+#define RADIO_CRCCNF_SKIP_ADDR_Include RADIO_CRCCNF_SKIPADDR_Include
+#define RADIO_CRCCNF_SKIP_ADDR_Skip RADIO_CRCCNF_SKIPADDR_Skip
+
+
+/* FICR */
+/* The registers FICR.DEVICEID0 and FICR.DEVICEID1 were renamed into an array. */
+#define DEVICEID0 DEVICEID[0]
+#define DEVICEID1 DEVICEID[1]
+
+/* The registers FICR.ER0, FICR.ER1, FICR.ER2 and FICR.ER3 were renamed into an array. */
+#define ER0 ER[0]
+#define ER1 ER[1]
+#define ER2 ER[2]
+#define ER3 ER[3]
+
+/* The registers FICR.IR0, FICR.IR1, FICR.IR2 and FICR.IR3 were renamed into an array. */
+#define IR0 IR[0]
+#define IR1 IR[1]
+#define IR2 IR[2]
+#define IR3 IR[3]
+
+/* The registers FICR.DEVICEADDR0 and FICR.DEVICEADDR1 were renamed into an array. */
+#define DEVICEADDR0 DEVICEADDR[0]
+#define DEVICEADDR1 DEVICEADDR[1]
+
+
+/* PPI */
+/* The tasks PPI.TASKS_CHGxEN and PPI.TASKS_CHGxDIS were renamed into an array of structs. */
+#define TASKS_CHG0EN TASKS_CHG[0].EN
+#define TASKS_CHG0DIS TASKS_CHG[0].DIS
+#define TASKS_CHG1EN TASKS_CHG[1].EN
+#define TASKS_CHG1DIS TASKS_CHG[1].DIS
+#define TASKS_CHG2EN TASKS_CHG[2].EN
+#define TASKS_CHG2DIS TASKS_CHG[2].DIS
+#define TASKS_CHG3EN TASKS_CHG[3].EN
+#define TASKS_CHG3DIS TASKS_CHG[3].DIS
+
+/* The registers PPI.CHx_EEP and PPI.CHx_TEP were renamed into an array of structs. */
+#define CH0_EEP CH[0].EEP
+#define CH0_TEP CH[0].TEP
+#define CH1_EEP CH[1].EEP
+#define CH1_TEP CH[1].TEP
+#define CH2_EEP CH[2].EEP
+#define CH2_TEP CH[2].TEP
+#define CH3_EEP CH[3].EEP
+#define CH3_TEP CH[3].TEP
+#define CH4_EEP CH[4].EEP
+#define CH4_TEP CH[4].TEP
+#define CH5_EEP CH[5].EEP
+#define CH5_TEP CH[5].TEP
+#define CH6_EEP CH[6].EEP
+#define CH6_TEP CH[6].TEP
+#define CH7_EEP CH[7].EEP
+#define CH7_TEP CH[7].TEP
+#define CH8_EEP CH[8].EEP
+#define CH8_TEP CH[8].TEP
+#define CH9_EEP CH[9].EEP
+#define CH9_TEP CH[9].TEP
+#define CH10_EEP CH[10].EEP
+#define CH10_TEP CH[10].TEP
+#define CH11_EEP CH[11].EEP
+#define CH11_TEP CH[11].TEP
+#define CH12_EEP CH[12].EEP
+#define CH12_TEP CH[12].TEP
+#define CH13_EEP CH[13].EEP
+#define CH13_TEP CH[13].TEP
+#define CH14_EEP CH[14].EEP
+#define CH14_TEP CH[14].TEP
+#define CH15_EEP CH[15].EEP
+#define CH15_TEP CH[15].TEP
+
+/* The registers PPI.CHG0, PPI.CHG1, PPI.CHG2 and PPI.CHG3 were renamed into an array. */
+#define CHG0 CHG[0]
+#define CHG1 CHG[1]
+#define CHG2 CHG[2]
+#define CHG3 CHG[3]
+
+/* All bitfield macros for the CHGx registers therefore changed name. */
+#define PPI_CHG0_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG0_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG0_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG0_CH15_Included PPI_CHG_CH15_Included
+
+#define PPI_CHG0_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG0_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG0_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG0_CH14_Included PPI_CHG_CH14_Included
+
+#define PPI_CHG0_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG0_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG0_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG0_CH13_Included PPI_CHG_CH13_Included
+
+#define PPI_CHG0_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG0_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG0_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG0_CH12_Included PPI_CHG_CH12_Included
+
+#define PPI_CHG0_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG0_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG0_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG0_CH11_Included PPI_CHG_CH11_Included
+
+#define PPI_CHG0_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG0_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG0_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG0_CH10_Included PPI_CHG_CH10_Included
+
+#define PPI_CHG0_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG0_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG0_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG0_CH9_Included PPI_CHG_CH9_Included
+
+#define PPI_CHG0_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG0_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG0_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG0_CH8_Included PPI_CHG_CH8_Included
+
+#define PPI_CHG0_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG0_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG0_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG0_CH7_Included PPI_CHG_CH7_Included
+
+#define PPI_CHG0_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG0_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG0_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG0_CH6_Included PPI_CHG_CH6_Included
+
+#define PPI_CHG0_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG0_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG0_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG0_CH5_Included PPI_CHG_CH5_Included
+
+#define PPI_CHG0_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG0_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG0_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG0_CH4_Included PPI_CHG_CH4_Included
+
+#define PPI_CHG0_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG0_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG0_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG0_CH3_Included PPI_CHG_CH3_Included
+
+#define PPI_CHG0_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG0_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG0_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG0_CH2_Included PPI_CHG_CH2_Included
+
+#define PPI_CHG0_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG0_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG0_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG0_CH1_Included PPI_CHG_CH1_Included
+
+#define PPI_CHG0_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG0_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG0_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG0_CH0_Included PPI_CHG_CH0_Included
+
+#define PPI_CHG1_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG1_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG1_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG1_CH15_Included PPI_CHG_CH15_Included
+
+#define PPI_CHG1_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG1_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG1_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG1_CH14_Included PPI_CHG_CH14_Included
+
+#define PPI_CHG1_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG1_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG1_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG1_CH13_Included PPI_CHG_CH13_Included
+
+#define PPI_CHG1_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG1_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG1_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG1_CH12_Included PPI_CHG_CH12_Included
+
+#define PPI_CHG1_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG1_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG1_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG1_CH11_Included PPI_CHG_CH11_Included
+
+#define PPI_CHG1_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG1_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG1_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG1_CH10_Included PPI_CHG_CH10_Included
+
+#define PPI_CHG1_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG1_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG1_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG1_CH9_Included PPI_CHG_CH9_Included
+
+#define PPI_CHG1_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG1_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG1_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG1_CH8_Included PPI_CHG_CH8_Included
+
+#define PPI_CHG1_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG1_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG1_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG1_CH7_Included PPI_CHG_CH7_Included
+
+#define PPI_CHG1_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG1_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG1_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG1_CH6_Included PPI_CHG_CH6_Included
+
+#define PPI_CHG1_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG1_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG1_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG1_CH5_Included PPI_CHG_CH5_Included
+
+#define PPI_CHG1_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG1_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG1_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG1_CH4_Included PPI_CHG_CH4_Included
+
+#define PPI_CHG1_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG1_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG1_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG1_CH3_Included PPI_CHG_CH3_Included
+
+#define PPI_CHG1_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG1_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG1_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG1_CH2_Included PPI_CHG_CH2_Included
+
+#define PPI_CHG1_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG1_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG1_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG1_CH1_Included PPI_CHG_CH1_Included
+
+#define PPI_CHG1_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG1_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG1_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG1_CH0_Included PPI_CHG_CH0_Included
+
+#define PPI_CHG2_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG2_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG2_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG2_CH15_Included PPI_CHG_CH15_Included
+
+#define PPI_CHG2_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG2_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG2_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG2_CH14_Included PPI_CHG_CH14_Included
+
+#define PPI_CHG2_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG2_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG2_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG2_CH13_Included PPI_CHG_CH13_Included
+
+#define PPI_CHG2_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG2_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG2_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG2_CH12_Included PPI_CHG_CH12_Included
+
+#define PPI_CHG2_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG2_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG2_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG2_CH11_Included PPI_CHG_CH11_Included
+
+#define PPI_CHG2_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG2_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG2_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG2_CH10_Included PPI_CHG_CH10_Included
+
+#define PPI_CHG2_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG2_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG2_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG2_CH9_Included PPI_CHG_CH9_Included
+
+#define PPI_CHG2_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG2_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG2_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG2_CH8_Included PPI_CHG_CH8_Included
+
+#define PPI_CHG2_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG2_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG2_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG2_CH7_Included PPI_CHG_CH7_Included
+
+#define PPI_CHG2_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG2_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG2_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG2_CH6_Included PPI_CHG_CH6_Included
+
+#define PPI_CHG2_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG2_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG2_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG2_CH5_Included PPI_CHG_CH5_Included
+
+#define PPI_CHG2_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG2_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG2_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG2_CH4_Included PPI_CHG_CH4_Included
+
+#define PPI_CHG2_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG2_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG2_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG2_CH3_Included PPI_CHG_CH3_Included
+
+#define PPI_CHG2_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG2_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG2_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG2_CH2_Included PPI_CHG_CH2_Included
+
+#define PPI_CHG2_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG2_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG2_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG2_CH1_Included PPI_CHG_CH1_Included
+
+#define PPI_CHG2_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG2_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG2_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG2_CH0_Included PPI_CHG_CH0_Included
+
+#define PPI_CHG3_CH15_Pos PPI_CHG_CH15_Pos
+#define PPI_CHG3_CH15_Msk PPI_CHG_CH15_Msk
+#define PPI_CHG3_CH15_Excluded PPI_CHG_CH15_Excluded
+#define PPI_CHG3_CH15_Included PPI_CHG_CH15_Included
+
+#define PPI_CHG3_CH14_Pos PPI_CHG_CH14_Pos
+#define PPI_CHG3_CH14_Msk PPI_CHG_CH14_Msk
+#define PPI_CHG3_CH14_Excluded PPI_CHG_CH14_Excluded
+#define PPI_CHG3_CH14_Included PPI_CHG_CH14_Included
+
+#define PPI_CHG3_CH13_Pos PPI_CHG_CH13_Pos
+#define PPI_CHG3_CH13_Msk PPI_CHG_CH13_Msk
+#define PPI_CHG3_CH13_Excluded PPI_CHG_CH13_Excluded
+#define PPI_CHG3_CH13_Included PPI_CHG_CH13_Included
+
+#define PPI_CHG3_CH12_Pos PPI_CHG_CH12_Pos
+#define PPI_CHG3_CH12_Msk PPI_CHG_CH12_Msk
+#define PPI_CHG3_CH12_Excluded PPI_CHG_CH12_Excluded
+#define PPI_CHG3_CH12_Included PPI_CHG_CH12_Included
+
+#define PPI_CHG3_CH11_Pos PPI_CHG_CH11_Pos
+#define PPI_CHG3_CH11_Msk PPI_CHG_CH11_Msk
+#define PPI_CHG3_CH11_Excluded PPI_CHG_CH11_Excluded
+#define PPI_CHG3_CH11_Included PPI_CHG_CH11_Included
+
+#define PPI_CHG3_CH10_Pos PPI_CHG_CH10_Pos
+#define PPI_CHG3_CH10_Msk PPI_CHG_CH10_Msk
+#define PPI_CHG3_CH10_Excluded PPI_CHG_CH10_Excluded
+#define PPI_CHG3_CH10_Included PPI_CHG_CH10_Included
+
+#define PPI_CHG3_CH9_Pos PPI_CHG_CH9_Pos
+#define PPI_CHG3_CH9_Msk PPI_CHG_CH9_Msk
+#define PPI_CHG3_CH9_Excluded PPI_CHG_CH9_Excluded
+#define PPI_CHG3_CH9_Included PPI_CHG_CH9_Included
+
+#define PPI_CHG3_CH8_Pos PPI_CHG_CH8_Pos
+#define PPI_CHG3_CH8_Msk PPI_CHG_CH8_Msk
+#define PPI_CHG3_CH8_Excluded PPI_CHG_CH8_Excluded
+#define PPI_CHG3_CH8_Included PPI_CHG_CH8_Included
+
+#define PPI_CHG3_CH7_Pos PPI_CHG_CH7_Pos
+#define PPI_CHG3_CH7_Msk PPI_CHG_CH7_Msk
+#define PPI_CHG3_CH7_Excluded PPI_CHG_CH7_Excluded
+#define PPI_CHG3_CH7_Included PPI_CHG_CH7_Included
+
+#define PPI_CHG3_CH6_Pos PPI_CHG_CH6_Pos
+#define PPI_CHG3_CH6_Msk PPI_CHG_CH6_Msk
+#define PPI_CHG3_CH6_Excluded PPI_CHG_CH6_Excluded
+#define PPI_CHG3_CH6_Included PPI_CHG_CH6_Included
+
+#define PPI_CHG3_CH5_Pos PPI_CHG_CH5_Pos
+#define PPI_CHG3_CH5_Msk PPI_CHG_CH5_Msk
+#define PPI_CHG3_CH5_Excluded PPI_CHG_CH5_Excluded
+#define PPI_CHG3_CH5_Included PPI_CHG_CH5_Included
+
+#define PPI_CHG3_CH4_Pos PPI_CHG_CH4_Pos
+#define PPI_CHG3_CH4_Msk PPI_CHG_CH4_Msk
+#define PPI_CHG3_CH4_Excluded PPI_CHG_CH4_Excluded
+#define PPI_CHG3_CH4_Included PPI_CHG_CH4_Included
+
+#define PPI_CHG3_CH3_Pos PPI_CHG_CH3_Pos
+#define PPI_CHG3_CH3_Msk PPI_CHG_CH3_Msk
+#define PPI_CHG3_CH3_Excluded PPI_CHG_CH3_Excluded
+#define PPI_CHG3_CH3_Included PPI_CHG_CH3_Included
+
+#define PPI_CHG3_CH2_Pos PPI_CHG_CH2_Pos
+#define PPI_CHG3_CH2_Msk PPI_CHG_CH2_Msk
+#define PPI_CHG3_CH2_Excluded PPI_CHG_CH2_Excluded
+#define PPI_CHG3_CH2_Included PPI_CHG_CH2_Included
+
+#define PPI_CHG3_CH1_Pos PPI_CHG_CH1_Pos
+#define PPI_CHG3_CH1_Msk PPI_CHG_CH1_Msk
+#define PPI_CHG3_CH1_Excluded PPI_CHG_CH1_Excluded
+#define PPI_CHG3_CH1_Included PPI_CHG_CH1_Included
+
+#define PPI_CHG3_CH0_Pos PPI_CHG_CH0_Pos
+#define PPI_CHG3_CH0_Msk PPI_CHG_CH0_Msk
+#define PPI_CHG3_CH0_Excluded PPI_CHG_CH0_Excluded
+#define PPI_CHG3_CH0_Included PPI_CHG_CH0_Included
+
+
+
+
+/*lint --flb "Leave library region" */
+
+#endif /* NRF51_TO_NRF52840_H */
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_xxaa.ld b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_xxaa.ld
new file mode 100644
index 0000000..9e3668a
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_xxaa.ld
@@ -0,0 +1,13 @@
+/* Linker script to configure memory regions. */
+
+SEARCH_DIR(.)
+GROUP(-lgcc -lc -lnosys)
+
+MEMORY
+{
+ FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
+}
+
+
+INCLUDE "nrf_common.ld"
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_xxab.ld b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_xxab.ld
new file mode 100644
index 0000000..36e5fb0
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_xxab.ld
@@ -0,0 +1,13 @@
+/* Linker script to configure memory regions. */
+
+SEARCH_DIR(.)
+GROUP(-lgcc -lc -lnosys)
+
+MEMORY
+{
+ FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x20000
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
+}
+
+
+INCLUDE "nrf_common.ld"
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_xxac.ld b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_xxac.ld
new file mode 100644
index 0000000..ff9780e
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf51_xxac.ld
@@ -0,0 +1,13 @@
+/* Linker script to configure memory regions. */
+
+SEARCH_DIR(.)
+GROUP(-lgcc -lc -lnosys)
+
+MEMORY
+{
+ FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x8000
+}
+
+
+INCLUDE "nrf_common.ld"
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52.h
new file mode 100644
index 0000000..81b0a47
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52.h
@@ -0,0 +1,2100 @@
+
+/****************************************************************************************************//**
+ * @file nrf52.h
+ *
+ * @brief CMSIS Cortex-M4 Peripheral Access Layer Header File for
+ * nrf52 from Nordic Semiconductor.
+ *
+ * @version V1
+ * @date 8. March 2018
+ *
+ * @note Generated with SVDConv V2.81d
+ * from CMSIS SVD File 'nrf52.svd' Version 1,
+ *
+ * @par Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ *
+ *******************************************************************************************************/
+
+
+
+/** @addtogroup Nordic Semiconductor
+ * @{
+ */
+
+/** @addtogroup nrf52
+ * @{
+ */
+
+#ifndef NRF52_H
+#define NRF52_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* ------------------------- Interrupt Number Definition ------------------------ */
+
+typedef enum {
+/* ------------------- Cortex-M4 Processor Exceptions Numbers ------------------- */
+ Reset_IRQn = -15, /*!< 1 Reset Vector, invoked on Power up and warm reset */
+ NonMaskableInt_IRQn = -14, /*!< 2 Non maskable Interrupt, cannot be stopped or preempted */
+ HardFault_IRQn = -13, /*!< 3 Hard Fault, all classes of Fault */
+ MemoryManagement_IRQn = -12, /*!< 4 Memory Management, MPU mismatch, including Access Violation
+ and No Match */
+ BusFault_IRQn = -11, /*!< 5 Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory
+ related Fault */
+ UsageFault_IRQn = -10, /*!< 6 Usage Fault, i.e. Undef Instruction, Illegal State Transition */
+ SVCall_IRQn = -5, /*!< 11 System Service Call via SVC instruction */
+ DebugMonitor_IRQn = -4, /*!< 12 Debug Monitor */
+ PendSV_IRQn = -2, /*!< 14 Pendable request for system service */
+ SysTick_IRQn = -1, /*!< 15 System Tick Timer */
+/* ---------------------- nrf52 Specific Interrupt Numbers ---------------------- */
+ POWER_CLOCK_IRQn = 0, /*!< 0 POWER_CLOCK */
+ RADIO_IRQn = 1, /*!< 1 RADIO */
+ UARTE0_UART0_IRQn = 2, /*!< 2 UARTE0_UART0 */
+ SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn= 3, /*!< 3 SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0 */
+ SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn= 4, /*!< 4 SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1 */
+ NFCT_IRQn = 5, /*!< 5 NFCT */
+ GPIOTE_IRQn = 6, /*!< 6 GPIOTE */
+ SAADC_IRQn = 7, /*!< 7 SAADC */
+ TIMER0_IRQn = 8, /*!< 8 TIMER0 */
+ TIMER1_IRQn = 9, /*!< 9 TIMER1 */
+ TIMER2_IRQn = 10, /*!< 10 TIMER2 */
+ RTC0_IRQn = 11, /*!< 11 RTC0 */
+ TEMP_IRQn = 12, /*!< 12 TEMP */
+ RNG_IRQn = 13, /*!< 13 RNG */
+ ECB_IRQn = 14, /*!< 14 ECB */
+ CCM_AAR_IRQn = 15, /*!< 15 CCM_AAR */
+ WDT_IRQn = 16, /*!< 16 WDT */
+ RTC1_IRQn = 17, /*!< 17 RTC1 */
+ QDEC_IRQn = 18, /*!< 18 QDEC */
+ COMP_LPCOMP_IRQn = 19, /*!< 19 COMP_LPCOMP */
+ SWI0_EGU0_IRQn = 20, /*!< 20 SWI0_EGU0 */
+ SWI1_EGU1_IRQn = 21, /*!< 21 SWI1_EGU1 */
+ SWI2_EGU2_IRQn = 22, /*!< 22 SWI2_EGU2 */
+ SWI3_EGU3_IRQn = 23, /*!< 23 SWI3_EGU3 */
+ SWI4_EGU4_IRQn = 24, /*!< 24 SWI4_EGU4 */
+ SWI5_EGU5_IRQn = 25, /*!< 25 SWI5_EGU5 */
+ TIMER3_IRQn = 26, /*!< 26 TIMER3 */
+ TIMER4_IRQn = 27, /*!< 27 TIMER4 */
+ PWM0_IRQn = 28, /*!< 28 PWM0 */
+ PDM_IRQn = 29, /*!< 29 PDM */
+ MWU_IRQn = 32, /*!< 32 MWU */
+ PWM1_IRQn = 33, /*!< 33 PWM1 */
+ PWM2_IRQn = 34, /*!< 34 PWM2 */
+ SPIM2_SPIS2_SPI2_IRQn = 35, /*!< 35 SPIM2_SPIS2_SPI2 */
+ RTC2_IRQn = 36, /*!< 36 RTC2 */
+ I2S_IRQn = 37, /*!< 37 I2S */
+ FPU_IRQn = 38 /*!< 38 FPU */
+} IRQn_Type;
+
+
+/** @addtogroup Configuration_of_CMSIS
+ * @{
+ */
+
+
+/* ================================================================================ */
+/* ================ Processor and Core Peripheral Section ================ */
+/* ================================================================================ */
+
+/* ----------------Configuration of the Cortex-M4 Processor and Core Peripherals---------------- */
+#define __CM4_REV 0x0001 /*!< Cortex-M4 Core Revision */
+#define __MPU_PRESENT 1 /*!< MPU present or not */
+#define __NVIC_PRIO_BITS 3 /*!< Number of Bits used for Priority Levels */
+#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
+#define __FPU_PRESENT 1 /*!< FPU present or not */
+/** @} */ /* End of group Configuration_of_CMSIS */
+
+#include "core_cm4.h" /*!< Cortex-M4 processor and core peripherals */
+#include "system_nrf52.h" /*!< nrf52 System */
+
+
+/* ================================================================================ */
+/* ================ Device Specific Peripheral Section ================ */
+/* ================================================================================ */
+
+
+/** @addtogroup Device_Peripheral_Registers
+ * @{
+ */
+
+
+/* ------------------- Start of section using anonymous unions ------------------ */
+#if defined(__CC_ARM)
+ #pragma push
+ #pragma anon_unions
+#elif defined(__ICCARM__)
+ #pragma language=extended
+#elif defined(__GNUC__)
+ /* anonymous unions are enabled by default */
+#elif defined(__TMS470__)
+/* anonymous unions are enabled by default */
+#elif defined(__TASKING__)
+ #pragma warning 586
+#else
+ #warning Not supported compiler type
+#endif
+
+
+typedef struct {
+ __I uint32_t PART; /*!< Part code */
+ __I uint32_t VARIANT; /*!< Part Variant, Hardware version and Production configuration */
+ __I uint32_t PACKAGE; /*!< Package option */
+ __I uint32_t RAM; /*!< RAM variant */
+ __I uint32_t FLASH; /*!< Flash variant */
+ __IO uint32_t UNUSED0[3]; /*!< Description collection[0]: Unspecified */
+} FICR_INFO_Type;
+
+typedef struct {
+ __I uint32_t A0; /*!< Slope definition A0. */
+ __I uint32_t A1; /*!< Slope definition A1. */
+ __I uint32_t A2; /*!< Slope definition A2. */
+ __I uint32_t A3; /*!< Slope definition A3. */
+ __I uint32_t A4; /*!< Slope definition A4. */
+ __I uint32_t A5; /*!< Slope definition A5. */
+ __I uint32_t B0; /*!< y-intercept B0. */
+ __I uint32_t B1; /*!< y-intercept B1. */
+ __I uint32_t B2; /*!< y-intercept B2. */
+ __I uint32_t B3; /*!< y-intercept B3. */
+ __I uint32_t B4; /*!< y-intercept B4. */
+ __I uint32_t B5; /*!< y-intercept B5. */
+ __I uint32_t T0; /*!< Segment end T0. */
+ __I uint32_t T1; /*!< Segment end T1. */
+ __I uint32_t T2; /*!< Segment end T2. */
+ __I uint32_t T3; /*!< Segment end T3. */
+ __I uint32_t T4; /*!< Segment end T4. */
+} FICR_TEMP_Type;
+
+typedef struct {
+ __I uint32_t TAGHEADER0; /*!< Default header for NFC Tag. Software can read these values to
+ populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+ __I uint32_t TAGHEADER1; /*!< Default header for NFC Tag. Software can read these values to
+ populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+ __I uint32_t TAGHEADER2; /*!< Default header for NFC Tag. Software can read these values to
+ populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+ __I uint32_t TAGHEADER3; /*!< Default header for NFC Tag. Software can read these values to
+ populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+} FICR_NFC_Type;
+
+typedef struct {
+ __IO uint32_t POWER; /*!< Description cluster[0]: RAM0 power control register */
+ __O uint32_t POWERSET; /*!< Description cluster[0]: RAM0 power control set register */
+ __O uint32_t POWERCLR; /*!< Description cluster[0]: RAM0 power control clear register */
+ __I uint32_t RESERVED0;
+} POWER_RAM_Type;
+
+typedef struct {
+ __IO uint32_t RTS; /*!< Pin select for RTS signal */
+ __IO uint32_t TXD; /*!< Pin select for TXD signal */
+ __IO uint32_t CTS; /*!< Pin select for CTS signal */
+ __IO uint32_t RXD; /*!< Pin select for RXD signal */
+} UARTE_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+} UARTE_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+} UARTE_TXD_Type;
+
+typedef struct {
+ __IO uint32_t SCK; /*!< Pin select for SCK */
+ __IO uint32_t MOSI; /*!< Pin select for MOSI signal */
+ __IO uint32_t MISO; /*!< Pin select for MISO signal */
+} SPIM_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+ __IO uint32_t LIST; /*!< EasyDMA list type */
+} SPIM_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+ __IO uint32_t LIST; /*!< EasyDMA list type */
+} SPIM_TXD_Type;
+
+typedef struct {
+ __IO uint32_t SCK; /*!< Pin select for SCK */
+ __IO uint32_t MISO; /*!< Pin select for MISO signal */
+ __IO uint32_t MOSI; /*!< Pin select for MOSI signal */
+ __IO uint32_t CSN; /*!< Pin select for CSN signal */
+} SPIS_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< RXD data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes received in last granted transaction */
+} SPIS_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< TXD data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transmitted in last granted transaction */
+} SPIS_TXD_Type;
+
+typedef struct {
+ __IO uint32_t SCL; /*!< Pin select for SCL signal */
+ __IO uint32_t SDA; /*!< Pin select for SDA signal */
+} TWIM_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+ __IO uint32_t LIST; /*!< EasyDMA list type */
+} TWIM_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+ __IO uint32_t LIST; /*!< EasyDMA list type */
+} TWIM_TXD_Type;
+
+typedef struct {
+ __IO uint32_t SCL; /*!< Pin select for SCL signal */
+ __IO uint32_t SDA; /*!< Pin select for SDA signal */
+} TWIS_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< RXD Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in RXD buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last RXD transaction */
+} TWIS_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< TXD Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in TXD buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last TXD transaction */
+} TWIS_TXD_Type;
+
+typedef struct {
+ __IO uint32_t SCK; /*!< Pin select for SCK */
+ __IO uint32_t MOSI; /*!< Pin select for MOSI */
+ __IO uint32_t MISO; /*!< Pin select for MISO */
+} SPI_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t RX; /*!< Result of last incoming frames */
+} NFCT_FRAMESTATUS_Type;
+
+typedef struct {
+ __IO uint32_t FRAMECONFIG; /*!< Configuration of outgoing frames */
+ __IO uint32_t AMOUNT; /*!< Size of outgoing frame */
+} NFCT_TXD_Type;
+
+typedef struct {
+ __IO uint32_t FRAMECONFIG; /*!< Configuration of incoming frames */
+ __I uint32_t AMOUNT; /*!< Size of last incoming frame */
+} NFCT_RXD_Type;
+
+typedef struct {
+ __IO uint32_t LIMITH; /*!< Description cluster[0]: Last results is equal or above CH[0].LIMIT.HIGH */
+ __IO uint32_t LIMITL; /*!< Description cluster[0]: Last results is equal or below CH[0].LIMIT.LOW */
+} SAADC_EVENTS_CH_Type;
+
+typedef struct {
+ __IO uint32_t PSELP; /*!< Description cluster[0]: Input positive pin selection for CH[0] */
+ __IO uint32_t PSELN; /*!< Description cluster[0]: Input negative pin selection for CH[0] */
+ __IO uint32_t CONFIG; /*!< Description cluster[0]: Input configuration for CH[0] */
+ __IO uint32_t LIMIT; /*!< Description cluster[0]: High/low limits for event monitoring
+ a channel */
+} SAADC_CH_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of buffer words to transfer */
+ __I uint32_t AMOUNT; /*!< Number of buffer words transferred since last START */
+} SAADC_RESULT_Type;
+
+typedef struct {
+ __IO uint32_t LED; /*!< Pin select for LED signal */
+ __IO uint32_t A; /*!< Pin select for A signal */
+ __IO uint32_t B; /*!< Pin select for B signal */
+} QDEC_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Description cluster[0]: Beginning address in Data RAM of this
+ sequence */
+ __IO uint32_t CNT; /*!< Description cluster[0]: Amount of values (duty cycles) in this
+ sequence */
+ __IO uint32_t REFRESH; /*!< Description cluster[0]: Amount of additional PWM periods between
+ samples loaded into compare register */
+ __IO uint32_t ENDDELAY; /*!< Description cluster[0]: Time added after the sequence */
+ __I uint32_t RESERVED1[4];
+} PWM_SEQ_Type;
+
+typedef struct {
+ __IO uint32_t OUT[4]; /*!< Description collection[0]: Output pin select for PWM channel
+ 0 */
+} PWM_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t CLK; /*!< Pin number configuration for PDM CLK signal */
+ __IO uint32_t DIN; /*!< Pin number configuration for PDM DIN signal */
+} PDM_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< RAM address pointer to write samples to with EasyDMA */
+ __IO uint32_t MAXCNT; /*!< Number of samples to allocate memory for in EasyDMA mode */
+} PDM_SAMPLE_Type;
+
+typedef struct {
+ __O uint32_t EN; /*!< Description cluster[0]: Enable channel group 0 */
+ __O uint32_t DIS; /*!< Description cluster[0]: Disable channel group 0 */
+} PPI_TASKS_CHG_Type;
+
+typedef struct {
+ __IO uint32_t EEP; /*!< Description cluster[0]: Channel 0 event end-point */
+ __IO uint32_t TEP; /*!< Description cluster[0]: Channel 0 task end-point */
+} PPI_CH_Type;
+
+typedef struct {
+ __IO uint32_t TEP; /*!< Description cluster[0]: Channel 0 task end-point */
+} PPI_FORK_Type;
+
+typedef struct {
+ __IO uint32_t WA; /*!< Description cluster[0]: Write access to region 0 detected */
+ __IO uint32_t RA; /*!< Description cluster[0]: Read access to region 0 detected */
+} MWU_EVENTS_REGION_Type;
+
+typedef struct {
+ __IO uint32_t WA; /*!< Description cluster[0]: Write access to peripheral region 0
+ detected */
+ __IO uint32_t RA; /*!< Description cluster[0]: Read access to peripheral region 0 detected */
+} MWU_EVENTS_PREGION_Type;
+
+typedef struct {
+ __IO uint32_t SUBSTATWA; /*!< Description cluster[0]: Source of event/interrupt in region
+ 0, write access detected while corresponding subregion was enabled
+ for watching */
+ __IO uint32_t SUBSTATRA; /*!< Description cluster[0]: Source of event/interrupt in region
+ 0, read access detected while corresponding subregion was enabled
+ for watching */
+} MWU_PERREGION_Type;
+
+typedef struct {
+ __IO uint32_t START; /*!< Description cluster[0]: Start address for region 0 */
+ __IO uint32_t END; /*!< Description cluster[0]: End address of region 0 */
+ __I uint32_t RESERVED2[2];
+} MWU_REGION_Type;
+
+typedef struct {
+ __I uint32_t START; /*!< Description cluster[0]: Reserved for future use */
+ __I uint32_t END; /*!< Description cluster[0]: Reserved for future use */
+ __IO uint32_t SUBS; /*!< Description cluster[0]: Subregions of region 0 */
+ __I uint32_t RESERVED3;
+} MWU_PREGION_Type;
+
+typedef struct {
+ __IO uint32_t MODE; /*!< I2S mode. */
+ __IO uint32_t RXEN; /*!< Reception (RX) enable. */
+ __IO uint32_t TXEN; /*!< Transmission (TX) enable. */
+ __IO uint32_t MCKEN; /*!< Master clock generator enable. */
+ __IO uint32_t MCKFREQ; /*!< Master clock generator frequency. */
+ __IO uint32_t RATIO; /*!< MCK / LRCK ratio. */
+ __IO uint32_t SWIDTH; /*!< Sample width. */
+ __IO uint32_t ALIGN; /*!< Alignment of sample within a frame. */
+ __IO uint32_t FORMAT; /*!< Frame format. */
+ __IO uint32_t CHANNELS; /*!< Enable channels. */
+} I2S_CONFIG_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Receive buffer RAM start address. */
+} I2S_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Transmit buffer RAM start address. */
+} I2S_TXD_Type;
+
+typedef struct {
+ __IO uint32_t MAXCNT; /*!< Size of RXD and TXD buffers. */
+} I2S_RXTXD_Type;
+
+typedef struct {
+ __IO uint32_t MCK; /*!< Pin select for MCK signal. */
+ __IO uint32_t SCK; /*!< Pin select for SCK signal. */
+ __IO uint32_t LRCK; /*!< Pin select for LRCK signal. */
+ __IO uint32_t SDIN; /*!< Pin select for SDIN signal. */
+ __IO uint32_t SDOUT; /*!< Pin select for SDOUT signal. */
+} I2S_PSEL_Type;
+
+
+/* ================================================================================ */
+/* ================ FICR ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Factory Information Configuration Registers (FICR)
+ */
+
+typedef struct { /*!< FICR Structure */
+ __I uint32_t RESERVED0[4];
+ __I uint32_t CODEPAGESIZE; /*!< Code memory page size */
+ __I uint32_t CODESIZE; /*!< Code memory size */
+ __I uint32_t RESERVED1[18];
+ __I uint32_t DEVICEID[2]; /*!< Description collection[0]: Device identifier */
+ __I uint32_t RESERVED2[6];
+ __I uint32_t ER[4]; /*!< Description collection[0]: Encryption Root, word 0 */
+ __I uint32_t IR[4]; /*!< Description collection[0]: Identity Root, word 0 */
+ __I uint32_t DEVICEADDRTYPE; /*!< Device address type */
+ __I uint32_t DEVICEADDR[2]; /*!< Description collection[0]: Device address 0 */
+ __I uint32_t RESERVED3[21];
+ FICR_INFO_Type INFO; /*!< Device info */
+ __I uint32_t RESERVED4[185];
+ FICR_TEMP_Type TEMP; /*!< Registers storing factory TEMP module linearization coefficients */
+ __I uint32_t RESERVED5[2];
+ FICR_NFC_Type NFC; /*!< Unspecified */
+} NRF_FICR_Type;
+
+
+/* ================================================================================ */
+/* ================ UICR ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief User Information Configuration Registers (UICR)
+ */
+
+typedef struct { /*!< UICR Structure */
+ __IO uint32_t UNUSED0; /*!< Unspecified */
+ __IO uint32_t UNUSED1; /*!< Unspecified */
+ __IO uint32_t UNUSED2; /*!< Unspecified */
+ __I uint32_t RESERVED0;
+ __IO uint32_t UNUSED3; /*!< Unspecified */
+ __IO uint32_t NRFFW[15]; /*!< Description collection[0]: Reserved for Nordic firmware design */
+ __IO uint32_t NRFHW[12]; /*!< Description collection[0]: Reserved for Nordic hardware design */
+ __IO uint32_t CUSTOMER[32]; /*!< Description collection[0]: Reserved for customer */
+ __I uint32_t RESERVED1[64];
+ __IO uint32_t PSELRESET[2]; /*!< Description collection[0]: Mapping of the nRESET function (see
+ POWER chapter for details) */
+ __IO uint32_t APPROTECT; /*!< Access Port protection */
+ __IO uint32_t NFCPINS; /*!< Setting of pins dedicated to NFC functionality: NFC antenna
+ or GPIO */
+} NRF_UICR_Type;
+
+
+/* ================================================================================ */
+/* ================ BPROT ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Block Protect (BPROT)
+ */
+
+typedef struct { /*!< BPROT Structure */
+ __I uint32_t RESERVED0[384];
+ __IO uint32_t CONFIG0; /*!< Block protect configuration register 0 */
+ __IO uint32_t CONFIG1; /*!< Block protect configuration register 1 */
+ __IO uint32_t DISABLEINDEBUG; /*!< Disable protection mechanism in debug interface mode */
+ __IO uint32_t UNUSED0; /*!< Unspecified */
+ __IO uint32_t CONFIG2; /*!< Block protect configuration register 2 */
+ __IO uint32_t CONFIG3; /*!< Block protect configuration register 3 */
+} NRF_BPROT_Type;
+
+
+/* ================================================================================ */
+/* ================ POWER ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Power control (POWER)
+ */
+
+typedef struct { /*!< POWER Structure */
+ __I uint32_t RESERVED0[30];
+ __O uint32_t TASKS_CONSTLAT; /*!< Enable constant latency mode */
+ __O uint32_t TASKS_LOWPWR; /*!< Enable low power mode (variable latency) */
+ __I uint32_t RESERVED1[34];
+ __IO uint32_t EVENTS_POFWARN; /*!< Power failure warning */
+ __I uint32_t RESERVED2[2];
+ __IO uint32_t EVENTS_SLEEPENTER; /*!< CPU entered WFI/WFE sleep */
+ __IO uint32_t EVENTS_SLEEPEXIT; /*!< CPU exited WFI/WFE sleep */
+ __I uint32_t RESERVED3[122];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED4[61];
+ __IO uint32_t RESETREAS; /*!< Reset reason */
+ __I uint32_t RESERVED5[9];
+ __I uint32_t RAMSTATUS; /*!< Deprecated register - RAM status register */
+ __I uint32_t RESERVED6[53];
+ __O uint32_t SYSTEMOFF; /*!< System OFF register */
+ __I uint32_t RESERVED7[3];
+ __IO uint32_t POFCON; /*!< Power failure comparator configuration */
+ __I uint32_t RESERVED8[2];
+ __IO uint32_t GPREGRET; /*!< General purpose retention register */
+ __IO uint32_t GPREGRET2; /*!< General purpose retention register */
+ __IO uint32_t RAMON; /*!< Deprecated register - RAM on/off register (this register is
+ retained) */
+ __I uint32_t RESERVED9[11];
+ __IO uint32_t RAMONB; /*!< Deprecated register - RAM on/off register (this register is
+ retained) */
+ __I uint32_t RESERVED10[8];
+ __IO uint32_t DCDCEN; /*!< DC/DC enable register */
+ __I uint32_t RESERVED11[225];
+ POWER_RAM_Type RAM[8]; /*!< Unspecified */
+} NRF_POWER_Type;
+
+
+/* ================================================================================ */
+/* ================ CLOCK ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Clock control (CLOCK)
+ */
+
+typedef struct { /*!< CLOCK Structure */
+ __O uint32_t TASKS_HFCLKSTART; /*!< Start HFCLK crystal oscillator */
+ __O uint32_t TASKS_HFCLKSTOP; /*!< Stop HFCLK crystal oscillator */
+ __O uint32_t TASKS_LFCLKSTART; /*!< Start LFCLK source */
+ __O uint32_t TASKS_LFCLKSTOP; /*!< Stop LFCLK source */
+ __O uint32_t TASKS_CAL; /*!< Start calibration of LFRC oscillator */
+ __O uint32_t TASKS_CTSTART; /*!< Start calibration timer */
+ __O uint32_t TASKS_CTSTOP; /*!< Stop calibration timer */
+ __I uint32_t RESERVED0[57];
+ __IO uint32_t EVENTS_HFCLKSTARTED; /*!< HFCLK oscillator started */
+ __IO uint32_t EVENTS_LFCLKSTARTED; /*!< LFCLK started */
+ __I uint32_t RESERVED1;
+ __IO uint32_t EVENTS_DONE; /*!< Calibration of LFCLK RC oscillator complete event */
+ __IO uint32_t EVENTS_CTTO; /*!< Calibration timer timeout */
+ __I uint32_t RESERVED2[124];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[63];
+ __I uint32_t HFCLKRUN; /*!< Status indicating that HFCLKSTART task has been triggered */
+ __I uint32_t HFCLKSTAT; /*!< HFCLK status */
+ __I uint32_t RESERVED4;
+ __I uint32_t LFCLKRUN; /*!< Status indicating that LFCLKSTART task has been triggered */
+ __I uint32_t LFCLKSTAT; /*!< LFCLK status */
+ __I uint32_t LFCLKSRCCOPY; /*!< Copy of LFCLKSRC register, set when LFCLKSTART task was triggered */
+ __I uint32_t RESERVED5[62];
+ __IO uint32_t LFCLKSRC; /*!< Clock source for the LFCLK */
+ __I uint32_t RESERVED6[7];
+ __IO uint32_t CTIV; /*!< Calibration timer interval */
+ __I uint32_t RESERVED7[8];
+ __IO uint32_t TRACECONFIG; /*!< Clocking options for the Trace Port debug interface */
+} NRF_CLOCK_Type;
+
+
+/* ================================================================================ */
+/* ================ RADIO ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief 2.4 GHz Radio (RADIO)
+ */
+
+typedef struct { /*!< RADIO Structure */
+ __O uint32_t TASKS_TXEN; /*!< Enable RADIO in TX mode */
+ __O uint32_t TASKS_RXEN; /*!< Enable RADIO in RX mode */
+ __O uint32_t TASKS_START; /*!< Start RADIO */
+ __O uint32_t TASKS_STOP; /*!< Stop RADIO */
+ __O uint32_t TASKS_DISABLE; /*!< Disable RADIO */
+ __O uint32_t TASKS_RSSISTART; /*!< Start the RSSI and take one single sample of the receive signal
+ strength. */
+ __O uint32_t TASKS_RSSISTOP; /*!< Stop the RSSI measurement */
+ __O uint32_t TASKS_BCSTART; /*!< Start the bit counter */
+ __O uint32_t TASKS_BCSTOP; /*!< Stop the bit counter */
+ __I uint32_t RESERVED0[55];
+ __IO uint32_t EVENTS_READY; /*!< RADIO has ramped up and is ready to be started */
+ __IO uint32_t EVENTS_ADDRESS; /*!< Address sent or received */
+ __IO uint32_t EVENTS_PAYLOAD; /*!< Packet payload sent or received */
+ __IO uint32_t EVENTS_END; /*!< Packet sent or received */
+ __IO uint32_t EVENTS_DISABLED; /*!< RADIO has been disabled */
+ __IO uint32_t EVENTS_DEVMATCH; /*!< A device address match occurred on the last received packet */
+ __IO uint32_t EVENTS_DEVMISS; /*!< No device address match occurred on the last received packet */
+ __IO uint32_t EVENTS_RSSIEND; /*!< Sampling of receive signal strength complete. */
+ __I uint32_t RESERVED1[2];
+ __IO uint32_t EVENTS_BCMATCH; /*!< Bit counter reached bit count value. */
+ __I uint32_t RESERVED2;
+ __IO uint32_t EVENTS_CRCOK; /*!< Packet received with CRC ok */
+ __IO uint32_t EVENTS_CRCERROR; /*!< Packet received with CRC error */
+ __I uint32_t RESERVED3[50];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED4[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED5[61];
+ __I uint32_t CRCSTATUS; /*!< CRC status */
+ __I uint32_t RESERVED6;
+ __I uint32_t RXMATCH; /*!< Received address */
+ __I uint32_t RXCRC; /*!< CRC field of previously received packet */
+ __I uint32_t DAI; /*!< Device address match index */
+ __I uint32_t RESERVED7[60];
+ __IO uint32_t PACKETPTR; /*!< Packet pointer */
+ __IO uint32_t FREQUENCY; /*!< Frequency */
+ __IO uint32_t TXPOWER; /*!< Output power */
+ __IO uint32_t MODE; /*!< Data rate and modulation */
+ __IO uint32_t PCNF0; /*!< Packet configuration register 0 */
+ __IO uint32_t PCNF1; /*!< Packet configuration register 1 */
+ __IO uint32_t BASE0; /*!< Base address 0 */
+ __IO uint32_t BASE1; /*!< Base address 1 */
+ __IO uint32_t PREFIX0; /*!< Prefixes bytes for logical addresses 0-3 */
+ __IO uint32_t PREFIX1; /*!< Prefixes bytes for logical addresses 4-7 */
+ __IO uint32_t TXADDRESS; /*!< Transmit address select */
+ __IO uint32_t RXADDRESSES; /*!< Receive address select */
+ __IO uint32_t CRCCNF; /*!< CRC configuration */
+ __IO uint32_t CRCPOLY; /*!< CRC polynomial */
+ __IO uint32_t CRCINIT; /*!< CRC initial value */
+ __IO uint32_t UNUSED0; /*!< Unspecified */
+ __IO uint32_t TIFS; /*!< Inter Frame Spacing in us */
+ __I uint32_t RSSISAMPLE; /*!< RSSI sample */
+ __I uint32_t RESERVED8;
+ __I uint32_t STATE; /*!< Current radio state */
+ __IO uint32_t DATAWHITEIV; /*!< Data whitening initial value */
+ __I uint32_t RESERVED9[2];
+ __IO uint32_t BCC; /*!< Bit counter compare */
+ __I uint32_t RESERVED10[39];
+ __IO uint32_t DAB[8]; /*!< Description collection[0]: Device address base segment 0 */
+ __IO uint32_t DAP[8]; /*!< Description collection[0]: Device address prefix 0 */
+ __IO uint32_t DACNF; /*!< Device address match configuration */
+ __I uint32_t RESERVED11[3];
+ __IO uint32_t MODECNF0; /*!< Radio mode configuration register 0 */
+ __I uint32_t RESERVED12[618];
+ __IO uint32_t POWER; /*!< Peripheral power control */
+} NRF_RADIO_Type;
+
+
+/* ================================================================================ */
+/* ================ UARTE ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief UART with EasyDMA (UARTE)
+ */
+
+typedef struct { /*!< UARTE Structure */
+ __O uint32_t TASKS_STARTRX; /*!< Start UART receiver */
+ __O uint32_t TASKS_STOPRX; /*!< Stop UART receiver */
+ __O uint32_t TASKS_STARTTX; /*!< Start UART transmitter */
+ __O uint32_t TASKS_STOPTX; /*!< Stop UART transmitter */
+ __I uint32_t RESERVED0[7];
+ __O uint32_t TASKS_FLUSHRX; /*!< Flush RX FIFO into RX buffer */
+ __I uint32_t RESERVED1[52];
+ __IO uint32_t EVENTS_CTS; /*!< CTS is activated (set low). Clear To Send. */
+ __IO uint32_t EVENTS_NCTS; /*!< CTS is deactivated (set high). Not Clear To Send. */
+ __IO uint32_t EVENTS_RXDRDY; /*!< Data received in RXD (but potentially not yet transferred to
+ Data RAM) */
+ __I uint32_t RESERVED2;
+ __IO uint32_t EVENTS_ENDRX; /*!< Receive buffer is filled up */
+ __I uint32_t RESERVED3[2];
+ __IO uint32_t EVENTS_TXDRDY; /*!< Data sent from TXD */
+ __IO uint32_t EVENTS_ENDTX; /*!< Last TX byte transmitted */
+ __IO uint32_t EVENTS_ERROR; /*!< Error detected */
+ __I uint32_t RESERVED4[7];
+ __IO uint32_t EVENTS_RXTO; /*!< Receiver timeout */
+ __I uint32_t RESERVED5;
+ __IO uint32_t EVENTS_RXSTARTED; /*!< UART receiver has started */
+ __IO uint32_t EVENTS_TXSTARTED; /*!< UART transmitter has started */
+ __I uint32_t RESERVED6;
+ __IO uint32_t EVENTS_TXSTOPPED; /*!< Transmitter stopped */
+ __I uint32_t RESERVED7[41];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED8[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED9[93];
+ __IO uint32_t ERRORSRC; /*!< Error source */
+ __I uint32_t RESERVED10[31];
+ __IO uint32_t ENABLE; /*!< Enable UART */
+ __I uint32_t RESERVED11;
+ UARTE_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED12[3];
+ __IO uint32_t BAUDRATE; /*!< Baud rate. Accuracy depends on the HFCLK source selected. */
+ __I uint32_t RESERVED13[3];
+ UARTE_RXD_Type RXD; /*!< RXD EasyDMA channel */
+ __I uint32_t RESERVED14;
+ UARTE_TXD_Type TXD; /*!< TXD EasyDMA channel */
+ __I uint32_t RESERVED15[7];
+ __IO uint32_t CONFIG; /*!< Configuration of parity and hardware flow control */
+} NRF_UARTE_Type;
+
+
+/* ================================================================================ */
+/* ================ UART ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Universal Asynchronous Receiver/Transmitter (UART)
+ */
+
+typedef struct { /*!< UART Structure */
+ __O uint32_t TASKS_STARTRX; /*!< Start UART receiver */
+ __O uint32_t TASKS_STOPRX; /*!< Stop UART receiver */
+ __O uint32_t TASKS_STARTTX; /*!< Start UART transmitter */
+ __O uint32_t TASKS_STOPTX; /*!< Stop UART transmitter */
+ __I uint32_t RESERVED0[3];
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend UART */
+ __I uint32_t RESERVED1[56];
+ __IO uint32_t EVENTS_CTS; /*!< CTS is activated (set low). Clear To Send. */
+ __IO uint32_t EVENTS_NCTS; /*!< CTS is deactivated (set high). Not Clear To Send. */
+ __IO uint32_t EVENTS_RXDRDY; /*!< Data received in RXD */
+ __I uint32_t RESERVED2[4];
+ __IO uint32_t EVENTS_TXDRDY; /*!< Data sent from TXD */
+ __I uint32_t RESERVED3;
+ __IO uint32_t EVENTS_ERROR; /*!< Error detected */
+ __I uint32_t RESERVED4[7];
+ __IO uint32_t EVENTS_RXTO; /*!< Receiver timeout */
+ __I uint32_t RESERVED5[46];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED6[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED7[93];
+ __IO uint32_t ERRORSRC; /*!< Error source */
+ __I uint32_t RESERVED8[31];
+ __IO uint32_t ENABLE; /*!< Enable UART */
+ __I uint32_t RESERVED9;
+ __IO uint32_t PSELRTS; /*!< Pin select for RTS */
+ __IO uint32_t PSELTXD; /*!< Pin select for TXD */
+ __IO uint32_t PSELCTS; /*!< Pin select for CTS */
+ __IO uint32_t PSELRXD; /*!< Pin select for RXD */
+ __I uint32_t RXD; /*!< RXD register */
+ __O uint32_t TXD; /*!< TXD register */
+ __I uint32_t RESERVED10;
+ __IO uint32_t BAUDRATE; /*!< Baud rate */
+ __I uint32_t RESERVED11[17];
+ __IO uint32_t CONFIG; /*!< Configuration of parity and hardware flow control */
+} NRF_UART_Type;
+
+
+/* ================================================================================ */
+/* ================ SPIM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Serial Peripheral Interface Master with EasyDMA 0 (SPIM)
+ */
+
+typedef struct { /*!< SPIM Structure */
+ __I uint32_t RESERVED0[4];
+ __O uint32_t TASKS_START; /*!< Start SPI transaction */
+ __O uint32_t TASKS_STOP; /*!< Stop SPI transaction */
+ __I uint32_t RESERVED1;
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend SPI transaction */
+ __O uint32_t TASKS_RESUME; /*!< Resume SPI transaction */
+ __I uint32_t RESERVED2[56];
+ __IO uint32_t EVENTS_STOPPED; /*!< SPI transaction has stopped */
+ __I uint32_t RESERVED3[2];
+ __IO uint32_t EVENTS_ENDRX; /*!< End of RXD buffer reached */
+ __I uint32_t RESERVED4;
+ __IO uint32_t EVENTS_END; /*!< End of RXD buffer and TXD buffer reached */
+ __I uint32_t RESERVED5;
+ __IO uint32_t EVENTS_ENDTX; /*!< End of TXD buffer reached */
+ __I uint32_t RESERVED6[10];
+ __IO uint32_t EVENTS_STARTED; /*!< Transaction started */
+ __I uint32_t RESERVED7[44];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED8[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED9[125];
+ __IO uint32_t ENABLE; /*!< Enable SPIM */
+ __I uint32_t RESERVED10;
+ SPIM_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED11[4];
+ __IO uint32_t FREQUENCY; /*!< SPI frequency. Accuracy depends on the HFCLK source selected. */
+ __I uint32_t RESERVED12[3];
+ SPIM_RXD_Type RXD; /*!< RXD EasyDMA channel */
+ SPIM_TXD_Type TXD; /*!< TXD EasyDMA channel */
+ __IO uint32_t CONFIG; /*!< Configuration register */
+ __I uint32_t RESERVED13[26];
+ __IO uint32_t ORC; /*!< Over-read character. Character clocked out in case and over-read
+ of the TXD buffer. */
+} NRF_SPIM_Type;
+
+
+/* ================================================================================ */
+/* ================ SPIS ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief SPI Slave 0 (SPIS)
+ */
+
+typedef struct { /*!< SPIS Structure */
+ __I uint32_t RESERVED0[9];
+ __O uint32_t TASKS_ACQUIRE; /*!< Acquire SPI semaphore */
+ __O uint32_t TASKS_RELEASE; /*!< Release SPI semaphore, enabling the SPI slave to acquire it */
+ __I uint32_t RESERVED1[54];
+ __IO uint32_t EVENTS_END; /*!< Granted transaction completed */
+ __I uint32_t RESERVED2[2];
+ __IO uint32_t EVENTS_ENDRX; /*!< End of RXD buffer reached */
+ __I uint32_t RESERVED3[5];
+ __IO uint32_t EVENTS_ACQUIRED; /*!< Semaphore acquired */
+ __I uint32_t RESERVED4[53];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED5[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED6[61];
+ __I uint32_t SEMSTAT; /*!< Semaphore status register */
+ __I uint32_t RESERVED7[15];
+ __IO uint32_t STATUS; /*!< Status from last transaction */
+ __I uint32_t RESERVED8[47];
+ __IO uint32_t ENABLE; /*!< Enable SPI slave */
+ __I uint32_t RESERVED9;
+ SPIS_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED10[7];
+ SPIS_RXD_Type RXD; /*!< Unspecified */
+ __I uint32_t RESERVED11;
+ SPIS_TXD_Type TXD; /*!< Unspecified */
+ __I uint32_t RESERVED12;
+ __IO uint32_t CONFIG; /*!< Configuration register */
+ __I uint32_t RESERVED13;
+ __IO uint32_t DEF; /*!< Default character. Character clocked out in case of an ignored
+ transaction. */
+ __I uint32_t RESERVED14[24];
+ __IO uint32_t ORC; /*!< Over-read character */
+} NRF_SPIS_Type;
+
+
+/* ================================================================================ */
+/* ================ TWIM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief I2C compatible Two-Wire Master Interface with EasyDMA 0 (TWIM)
+ */
+
+typedef struct { /*!< TWIM Structure */
+ __O uint32_t TASKS_STARTRX; /*!< Start TWI receive sequence */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STARTTX; /*!< Start TWI transmit sequence */
+ __I uint32_t RESERVED1[2];
+ __O uint32_t TASKS_STOP; /*!< Stop TWI transaction. Must be issued while the TWI master is
+ not suspended. */
+ __I uint32_t RESERVED2;
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend TWI transaction */
+ __O uint32_t TASKS_RESUME; /*!< Resume TWI transaction */
+ __I uint32_t RESERVED3[56];
+ __IO uint32_t EVENTS_STOPPED; /*!< TWI stopped */
+ __I uint32_t RESERVED4[7];
+ __IO uint32_t EVENTS_ERROR; /*!< TWI error */
+ __I uint32_t RESERVED5[8];
+ __IO uint32_t EVENTS_SUSPENDED; /*!< Last byte has been sent out after the SUSPEND task has been
+ issued, TWI traffic is now suspended. */
+ __IO uint32_t EVENTS_RXSTARTED; /*!< Receive sequence started */
+ __IO uint32_t EVENTS_TXSTARTED; /*!< Transmit sequence started */
+ __I uint32_t RESERVED6[2];
+ __IO uint32_t EVENTS_LASTRX; /*!< Byte boundary, starting to receive the last byte */
+ __IO uint32_t EVENTS_LASTTX; /*!< Byte boundary, starting to transmit the last byte */
+ __I uint32_t RESERVED7[39];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED8[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED9[110];
+ __IO uint32_t ERRORSRC; /*!< Error source */
+ __I uint32_t RESERVED10[14];
+ __IO uint32_t ENABLE; /*!< Enable TWIM */
+ __I uint32_t RESERVED11;
+ TWIM_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED12[5];
+ __IO uint32_t FREQUENCY; /*!< TWI frequency */
+ __I uint32_t RESERVED13[3];
+ TWIM_RXD_Type RXD; /*!< RXD EasyDMA channel */
+ TWIM_TXD_Type TXD; /*!< TXD EasyDMA channel */
+ __I uint32_t RESERVED14[13];
+ __IO uint32_t ADDRESS; /*!< Address used in the TWI transfer */
+} NRF_TWIM_Type;
+
+
+/* ================================================================================ */
+/* ================ TWIS ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief I2C compatible Two-Wire Slave Interface with EasyDMA 0 (TWIS)
+ */
+
+typedef struct { /*!< TWIS Structure */
+ __I uint32_t RESERVED0[5];
+ __O uint32_t TASKS_STOP; /*!< Stop TWI transaction */
+ __I uint32_t RESERVED1;
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend TWI transaction */
+ __O uint32_t TASKS_RESUME; /*!< Resume TWI transaction */
+ __I uint32_t RESERVED2[3];
+ __O uint32_t TASKS_PREPARERX; /*!< Prepare the TWI slave to respond to a write command */
+ __O uint32_t TASKS_PREPARETX; /*!< Prepare the TWI slave to respond to a read command */
+ __I uint32_t RESERVED3[51];
+ __IO uint32_t EVENTS_STOPPED; /*!< TWI stopped */
+ __I uint32_t RESERVED4[7];
+ __IO uint32_t EVENTS_ERROR; /*!< TWI error */
+ __I uint32_t RESERVED5[9];
+ __IO uint32_t EVENTS_RXSTARTED; /*!< Receive sequence started */
+ __IO uint32_t EVENTS_TXSTARTED; /*!< Transmit sequence started */
+ __I uint32_t RESERVED6[4];
+ __IO uint32_t EVENTS_WRITE; /*!< Write command received */
+ __IO uint32_t EVENTS_READ; /*!< Read command received */
+ __I uint32_t RESERVED7[37];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED8[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED9[113];
+ __IO uint32_t ERRORSRC; /*!< Error source */
+ __I uint32_t MATCH; /*!< Status register indicating which address had a match */
+ __I uint32_t RESERVED10[10];
+ __IO uint32_t ENABLE; /*!< Enable TWIS */
+ __I uint32_t RESERVED11;
+ TWIS_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED12[9];
+ TWIS_RXD_Type RXD; /*!< RXD EasyDMA channel */
+ __I uint32_t RESERVED13;
+ TWIS_TXD_Type TXD; /*!< TXD EasyDMA channel */
+ __I uint32_t RESERVED14[14];
+ __IO uint32_t ADDRESS[2]; /*!< Description collection[0]: TWI slave address 0 */
+ __I uint32_t RESERVED15;
+ __IO uint32_t CONFIG; /*!< Configuration register for the address match mechanism */
+ __I uint32_t RESERVED16[10];
+ __IO uint32_t ORC; /*!< Over-read character. Character sent out in case of an over-read
+ of the transmit buffer. */
+} NRF_TWIS_Type;
+
+
+/* ================================================================================ */
+/* ================ SPI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Serial Peripheral Interface 0 (SPI)
+ */
+
+typedef struct { /*!< SPI Structure */
+ __I uint32_t RESERVED0[66];
+ __IO uint32_t EVENTS_READY; /*!< TXD byte sent and RXD byte received */
+ __I uint32_t RESERVED1[126];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[125];
+ __IO uint32_t ENABLE; /*!< Enable SPI */
+ __I uint32_t RESERVED3;
+ SPI_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED4;
+ __I uint32_t RXD; /*!< RXD register */
+ __IO uint32_t TXD; /*!< TXD register */
+ __I uint32_t RESERVED5;
+ __IO uint32_t FREQUENCY; /*!< SPI frequency */
+ __I uint32_t RESERVED6[11];
+ __IO uint32_t CONFIG; /*!< Configuration register */
+} NRF_SPI_Type;
+
+
+/* ================================================================================ */
+/* ================ TWI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief I2C compatible Two-Wire Interface 0 (TWI)
+ */
+
+typedef struct { /*!< TWI Structure */
+ __O uint32_t TASKS_STARTRX; /*!< Start TWI receive sequence */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STARTTX; /*!< Start TWI transmit sequence */
+ __I uint32_t RESERVED1[2];
+ __O uint32_t TASKS_STOP; /*!< Stop TWI transaction */
+ __I uint32_t RESERVED2;
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend TWI transaction */
+ __O uint32_t TASKS_RESUME; /*!< Resume TWI transaction */
+ __I uint32_t RESERVED3[56];
+ __IO uint32_t EVENTS_STOPPED; /*!< TWI stopped */
+ __IO uint32_t EVENTS_RXDREADY; /*!< TWI RXD byte received */
+ __I uint32_t RESERVED4[4];
+ __IO uint32_t EVENTS_TXDSENT; /*!< TWI TXD byte sent */
+ __I uint32_t RESERVED5;
+ __IO uint32_t EVENTS_ERROR; /*!< TWI error */
+ __I uint32_t RESERVED6[4];
+ __IO uint32_t EVENTS_BB; /*!< TWI byte boundary, generated before each byte that is sent or
+ received */
+ __I uint32_t RESERVED7[3];
+ __IO uint32_t EVENTS_SUSPENDED; /*!< TWI entered the suspended state */
+ __I uint32_t RESERVED8[45];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED9[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED10[110];
+ __IO uint32_t ERRORSRC; /*!< Error source */
+ __I uint32_t RESERVED11[14];
+ __IO uint32_t ENABLE; /*!< Enable TWI */
+ __I uint32_t RESERVED12;
+ __IO uint32_t PSELSCL; /*!< Pin select for SCL */
+ __IO uint32_t PSELSDA; /*!< Pin select for SDA */
+ __I uint32_t RESERVED13[2];
+ __I uint32_t RXD; /*!< RXD register */
+ __IO uint32_t TXD; /*!< TXD register */
+ __I uint32_t RESERVED14;
+ __IO uint32_t FREQUENCY; /*!< TWI frequency */
+ __I uint32_t RESERVED15[24];
+ __IO uint32_t ADDRESS; /*!< Address used in the TWI transfer */
+} NRF_TWI_Type;
+
+
+/* ================================================================================ */
+/* ================ NFCT ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief NFC-A compatible radio (NFCT)
+ */
+
+typedef struct { /*!< NFCT Structure */
+ __O uint32_t TASKS_ACTIVATE; /*!< Activate NFC peripheral for incoming and outgoing frames, change
+ state to activated */
+ __O uint32_t TASKS_DISABLE; /*!< Disable NFC peripheral */
+ __O uint32_t TASKS_SENSE; /*!< Enable NFC sense field mode, change state to sense mode */
+ __O uint32_t TASKS_STARTTX; /*!< Start transmission of a outgoing frame, change state to transmit */
+ __I uint32_t RESERVED0[3];
+ __O uint32_t TASKS_ENABLERXDATA; /*!< Initializes the EasyDMA for receive. */
+ __I uint32_t RESERVED1;
+ __O uint32_t TASKS_GOIDLE; /*!< Force state machine to IDLE state */
+ __O uint32_t TASKS_GOSLEEP; /*!< Force state machine to SLEEP_A state */
+ __I uint32_t RESERVED2[53];
+ __IO uint32_t EVENTS_READY; /*!< The NFC peripheral is ready to receive and send frames */
+ __IO uint32_t EVENTS_FIELDDETECTED; /*!< Remote NFC field detected */
+ __IO uint32_t EVENTS_FIELDLOST; /*!< Remote NFC field lost */
+ __IO uint32_t EVENTS_TXFRAMESTART; /*!< Marks the start of the first symbol of a transmitted frame */
+ __IO uint32_t EVENTS_TXFRAMEEND; /*!< Marks the end of the last transmitted on-air symbol of a frame */
+ __IO uint32_t EVENTS_RXFRAMESTART; /*!< Marks the end of the first symbol of a received frame */
+ __IO uint32_t EVENTS_RXFRAMEEND; /*!< Received data have been checked (CRC, parity) and transferred
+ to RAM, and EasyDMA has ended accessing the RX buffer */
+ __IO uint32_t EVENTS_ERROR; /*!< NFC error reported. The ERRORSTATUS register contains details
+ on the source of the error. */
+ __I uint32_t RESERVED3[2];
+ __IO uint32_t EVENTS_RXERROR; /*!< NFC RX frame error reported. The FRAMESTATUS.RX register contains
+ details on the source of the error. */
+ __IO uint32_t EVENTS_ENDRX; /*!< RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full. */
+ __IO uint32_t EVENTS_ENDTX; /*!< Transmission of data in RAM has ended, and EasyDMA has ended
+ accessing the TX buffer */
+ __I uint32_t RESERVED4;
+ __IO uint32_t EVENTS_AUTOCOLRESSTARTED; /*!< Auto collision resolution process has started */
+ __I uint32_t RESERVED5[3];
+ __IO uint32_t EVENTS_COLLISION; /*!< NFC Auto collision resolution error reported. */
+ __IO uint32_t EVENTS_SELECTED; /*!< NFC Auto collision resolution successfully completed */
+ __IO uint32_t EVENTS_STARTED; /*!< EasyDMA is ready to receive or send frames. */
+ __I uint32_t RESERVED6[43];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED7[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED8[62];
+ __IO uint32_t ERRORSTATUS; /*!< NFC Error Status register */
+ __I uint32_t RESERVED9;
+ NFCT_FRAMESTATUS_Type FRAMESTATUS; /*!< Unspecified */
+ __I uint32_t RESERVED10[8];
+ __I uint32_t CURRENTLOADCTRL; /*!< Current value driven to the NFC Load Control */
+ __I uint32_t RESERVED11[2];
+ __I uint32_t FIELDPRESENT; /*!< Indicates the presence or not of a valid field */
+ __I uint32_t RESERVED12[49];
+ __IO uint32_t FRAMEDELAYMIN; /*!< Minimum frame delay */
+ __IO uint32_t FRAMEDELAYMAX; /*!< Maximum frame delay */
+ __IO uint32_t FRAMEDELAYMODE; /*!< Configuration register for the Frame Delay Timer */
+ __IO uint32_t PACKETPTR; /*!< Packet pointer for TXD and RXD data storage in Data RAM */
+ __IO uint32_t MAXLEN; /*!< Size of allocated for TXD and RXD data storage buffer in Data
+ RAM */
+ NFCT_TXD_Type TXD; /*!< Unspecified */
+ NFCT_RXD_Type RXD; /*!< Unspecified */
+ __I uint32_t RESERVED13[26];
+ __IO uint32_t NFCID1_LAST; /*!< Last NFCID1 part (4, 7 or 10 bytes ID) */
+ __IO uint32_t NFCID1_2ND_LAST; /*!< Second last NFCID1 part (7 or 10 bytes ID) */
+ __IO uint32_t NFCID1_3RD_LAST; /*!< Third last NFCID1 part (10 bytes ID) */
+ __I uint32_t RESERVED14;
+ __IO uint32_t SENSRES; /*!< NFC-A SENS_RES auto-response settings */
+ __IO uint32_t SELRES; /*!< NFC-A SEL_RES auto-response settings */
+} NRF_NFCT_Type;
+
+
+/* ================================================================================ */
+/* ================ GPIOTE ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief GPIO Tasks and Events (GPIOTE)
+ */
+
+typedef struct { /*!< GPIOTE Structure */
+ __O uint32_t TASKS_OUT[8]; /*!< Description collection[0]: Task for writing to pin specified
+ in CONFIG[0].PSEL. Action on pin is configured in CONFIG[0].POLARITY. */
+ __I uint32_t RESERVED0[4];
+ __O uint32_t TASKS_SET[8]; /*!< Description collection[0]: Task for writing to pin specified
+ in CONFIG[0].PSEL. Action on pin is to set it high. */
+ __I uint32_t RESERVED1[4];
+ __O uint32_t TASKS_CLR[8]; /*!< Description collection[0]: Task for writing to pin specified
+ in CONFIG[0].PSEL. Action on pin is to set it low. */
+ __I uint32_t RESERVED2[32];
+ __IO uint32_t EVENTS_IN[8]; /*!< Description collection[0]: Event generated from pin specified
+ in CONFIG[0].PSEL */
+ __I uint32_t RESERVED3[23];
+ __IO uint32_t EVENTS_PORT; /*!< Event generated from multiple input GPIO pins with SENSE mechanism
+ enabled */
+ __I uint32_t RESERVED4[97];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED5[129];
+ __IO uint32_t CONFIG[8]; /*!< Description collection[0]: Configuration for OUT[n], SET[n]
+ and CLR[n] tasks and IN[n] event */
+} NRF_GPIOTE_Type;
+
+
+/* ================================================================================ */
+/* ================ SAADC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Analog to Digital Converter (SAADC)
+ */
+
+typedef struct { /*!< SAADC Structure */
+ __O uint32_t TASKS_START; /*!< Start the ADC and prepare the result buffer in RAM */
+ __O uint32_t TASKS_SAMPLE; /*!< Take one ADC sample, if scan is enabled all channels are sampled */
+ __O uint32_t TASKS_STOP; /*!< Stop the ADC and terminate any on-going conversion */
+ __O uint32_t TASKS_CALIBRATEOFFSET; /*!< Starts offset auto-calibration */
+ __I uint32_t RESERVED0[60];
+ __IO uint32_t EVENTS_STARTED; /*!< The ADC has started */
+ __IO uint32_t EVENTS_END; /*!< The ADC has filled up the Result buffer */
+ __IO uint32_t EVENTS_DONE; /*!< A conversion task has been completed. Depending on the mode,
+ multiple conversions might be needed for a result to be transferred
+ to RAM. */
+ __IO uint32_t EVENTS_RESULTDONE; /*!< A result is ready to get transferred to RAM. */
+ __IO uint32_t EVENTS_CALIBRATEDONE; /*!< Calibration is complete */
+ __IO uint32_t EVENTS_STOPPED; /*!< The ADC has stopped */
+ SAADC_EVENTS_CH_Type EVENTS_CH[8]; /*!< Unspecified */
+ __I uint32_t RESERVED1[106];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[61];
+ __I uint32_t STATUS; /*!< Status */
+ __I uint32_t RESERVED3[63];
+ __IO uint32_t ENABLE; /*!< Enable or disable ADC */
+ __I uint32_t RESERVED4[3];
+ SAADC_CH_Type CH[8]; /*!< Unspecified */
+ __I uint32_t RESERVED5[24];
+ __IO uint32_t RESOLUTION; /*!< Resolution configuration */
+ __IO uint32_t OVERSAMPLE; /*!< Oversampling configuration. OVERSAMPLE should not be combined
+ with SCAN. The RESOLUTION is applied before averaging, thus
+ for high OVERSAMPLE a higher RESOLUTION should be used. */
+ __IO uint32_t SAMPLERATE; /*!< Controls normal or continuous sample rate */
+ __I uint32_t RESERVED6[12];
+ SAADC_RESULT_Type RESULT; /*!< RESULT EasyDMA channel */
+} NRF_SAADC_Type;
+
+
+/* ================================================================================ */
+/* ================ TIMER ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Timer/Counter 0 (TIMER)
+ */
+
+typedef struct { /*!< TIMER Structure */
+ __O uint32_t TASKS_START; /*!< Start Timer */
+ __O uint32_t TASKS_STOP; /*!< Stop Timer */
+ __O uint32_t TASKS_COUNT; /*!< Increment Timer (Counter mode only) */
+ __O uint32_t TASKS_CLEAR; /*!< Clear time */
+ __O uint32_t TASKS_SHUTDOWN; /*!< Deprecated register - Shut down timer */
+ __I uint32_t RESERVED0[11];
+ __O uint32_t TASKS_CAPTURE[6]; /*!< Description collection[0]: Capture Timer value to CC[0] register */
+ __I uint32_t RESERVED1[58];
+ __IO uint32_t EVENTS_COMPARE[6]; /*!< Description collection[0]: Compare event on CC[0] match */
+ __I uint32_t RESERVED2[42];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED3[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED4[126];
+ __IO uint32_t MODE; /*!< Timer mode selection */
+ __IO uint32_t BITMODE; /*!< Configure the number of bits used by the TIMER */
+ __I uint32_t RESERVED5;
+ __IO uint32_t PRESCALER; /*!< Timer prescaler register */
+ __I uint32_t RESERVED6[11];
+ __IO uint32_t CC[6]; /*!< Description collection[0]: Capture/Compare register 0 */
+} NRF_TIMER_Type;
+
+
+/* ================================================================================ */
+/* ================ RTC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Real time counter 0 (RTC)
+ */
+
+typedef struct { /*!< RTC Structure */
+ __O uint32_t TASKS_START; /*!< Start RTC COUNTER */
+ __O uint32_t TASKS_STOP; /*!< Stop RTC COUNTER */
+ __O uint32_t TASKS_CLEAR; /*!< Clear RTC COUNTER */
+ __O uint32_t TASKS_TRIGOVRFLW; /*!< Set COUNTER to 0xFFFFF0 */
+ __I uint32_t RESERVED0[60];
+ __IO uint32_t EVENTS_TICK; /*!< Event on COUNTER increment */
+ __IO uint32_t EVENTS_OVRFLW; /*!< Event on COUNTER overflow */
+ __I uint32_t RESERVED1[14];
+ __IO uint32_t EVENTS_COMPARE[4]; /*!< Description collection[0]: Compare event on CC[0] match */
+ __I uint32_t RESERVED2[109];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[13];
+ __IO uint32_t EVTEN; /*!< Enable or disable event routing */
+ __IO uint32_t EVTENSET; /*!< Enable event routing */
+ __IO uint32_t EVTENCLR; /*!< Disable event routing */
+ __I uint32_t RESERVED4[110];
+ __I uint32_t COUNTER; /*!< Current COUNTER value */
+ __IO uint32_t PRESCALER; /*!< 12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must
+ be written when RTC is stopped */
+ __I uint32_t RESERVED5[13];
+ __IO uint32_t CC[4]; /*!< Description collection[0]: Compare register 0 */
+} NRF_RTC_Type;
+
+
+/* ================================================================================ */
+/* ================ TEMP ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Temperature Sensor (TEMP)
+ */
+
+typedef struct { /*!< TEMP Structure */
+ __O uint32_t TASKS_START; /*!< Start temperature measurement */
+ __O uint32_t TASKS_STOP; /*!< Stop temperature measurement */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_DATARDY; /*!< Temperature measurement complete, data ready */
+ __I uint32_t RESERVED1[128];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[127];
+ __I int32_t TEMP; /*!< Temperature in degC (0.25deg steps) */
+ __I uint32_t RESERVED3[5];
+ __IO uint32_t A0; /*!< Slope of 1st piece wise linear function */
+ __IO uint32_t A1; /*!< Slope of 2nd piece wise linear function */
+ __IO uint32_t A2; /*!< Slope of 3rd piece wise linear function */
+ __IO uint32_t A3; /*!< Slope of 4th piece wise linear function */
+ __IO uint32_t A4; /*!< Slope of 5th piece wise linear function */
+ __IO uint32_t A5; /*!< Slope of 6th piece wise linear function */
+ __I uint32_t RESERVED4[2];
+ __IO uint32_t B0; /*!< y-intercept of 1st piece wise linear function */
+ __IO uint32_t B1; /*!< y-intercept of 2nd piece wise linear function */
+ __IO uint32_t B2; /*!< y-intercept of 3rd piece wise linear function */
+ __IO uint32_t B3; /*!< y-intercept of 4th piece wise linear function */
+ __IO uint32_t B4; /*!< y-intercept of 5th piece wise linear function */
+ __IO uint32_t B5; /*!< y-intercept of 6th piece wise linear function */
+ __I uint32_t RESERVED5[2];
+ __IO uint32_t T0; /*!< End point of 1st piece wise linear function */
+ __IO uint32_t T1; /*!< End point of 2nd piece wise linear function */
+ __IO uint32_t T2; /*!< End point of 3rd piece wise linear function */
+ __IO uint32_t T3; /*!< End point of 4th piece wise linear function */
+ __IO uint32_t T4; /*!< End point of 5th piece wise linear function */
+} NRF_TEMP_Type;
+
+
+/* ================================================================================ */
+/* ================ RNG ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Random Number Generator (RNG)
+ */
+
+typedef struct { /*!< RNG Structure */
+ __O uint32_t TASKS_START; /*!< Task starting the random number generator */
+ __O uint32_t TASKS_STOP; /*!< Task stopping the random number generator */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_VALRDY; /*!< Event being generated for every new random number written to
+ the VALUE register */
+ __I uint32_t RESERVED1[63];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[126];
+ __IO uint32_t CONFIG; /*!< Configuration register */
+ __I uint32_t VALUE; /*!< Output random number */
+} NRF_RNG_Type;
+
+
+/* ================================================================================ */
+/* ================ ECB ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief AES ECB Mode Encryption (ECB)
+ */
+
+typedef struct { /*!< ECB Structure */
+ __O uint32_t TASKS_STARTECB; /*!< Start ECB block encrypt */
+ __O uint32_t TASKS_STOPECB; /*!< Abort a possible executing ECB operation */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_ENDECB; /*!< ECB block encrypt complete */
+ __IO uint32_t EVENTS_ERRORECB; /*!< ECB block encrypt aborted because of a STOPECB task or due to
+ an error */
+ __I uint32_t RESERVED1[127];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[126];
+ __IO uint32_t ECBDATAPTR; /*!< ECB block encrypt memory pointers */
+} NRF_ECB_Type;
+
+
+/* ================================================================================ */
+/* ================ CCM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief AES CCM Mode Encryption (CCM)
+ */
+
+typedef struct { /*!< CCM Structure */
+ __O uint32_t TASKS_KSGEN; /*!< Start generation of key-stream. This operation will stop by
+ itself when completed. */
+ __O uint32_t TASKS_CRYPT; /*!< Start encryption/decryption. This operation will stop by itself
+ when completed. */
+ __O uint32_t TASKS_STOP; /*!< Stop encryption/decryption */
+ __I uint32_t RESERVED0[61];
+ __IO uint32_t EVENTS_ENDKSGEN; /*!< Key-stream generation complete */
+ __IO uint32_t EVENTS_ENDCRYPT; /*!< Encrypt/decrypt complete */
+ __IO uint32_t EVENTS_ERROR; /*!< CCM error event */
+ __I uint32_t RESERVED1[61];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t MICSTATUS; /*!< MIC check result */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< Enable */
+ __IO uint32_t MODE; /*!< Operation mode */
+ __IO uint32_t CNFPTR; /*!< Pointer to data structure holding AES key and NONCE vector */
+ __IO uint32_t INPTR; /*!< Input pointer */
+ __IO uint32_t OUTPTR; /*!< Output pointer */
+ __IO uint32_t SCRATCHPTR; /*!< Pointer to data area used for temporary storage */
+} NRF_CCM_Type;
+
+
+/* ================================================================================ */
+/* ================ AAR ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Accelerated Address Resolver (AAR)
+ */
+
+typedef struct { /*!< AAR Structure */
+ __O uint32_t TASKS_START; /*!< Start resolving addresses based on IRKs specified in the IRK
+ data structure */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STOP; /*!< Stop resolving addresses */
+ __I uint32_t RESERVED1[61];
+ __IO uint32_t EVENTS_END; /*!< Address resolution procedure complete */
+ __IO uint32_t EVENTS_RESOLVED; /*!< Address resolved */
+ __IO uint32_t EVENTS_NOTRESOLVED; /*!< Address not resolved */
+ __I uint32_t RESERVED2[126];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t STATUS; /*!< Resolution status */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< Enable AAR */
+ __IO uint32_t NIRK; /*!< Number of IRKs */
+ __IO uint32_t IRKPTR; /*!< Pointer to IRK data structure */
+ __I uint32_t RESERVED5;
+ __IO uint32_t ADDRPTR; /*!< Pointer to the resolvable address */
+ __IO uint32_t SCRATCHPTR; /*!< Pointer to data area used for temporary storage */
+} NRF_AAR_Type;
+
+
+/* ================================================================================ */
+/* ================ WDT ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Watchdog Timer (WDT)
+ */
+
+typedef struct { /*!< WDT Structure */
+ __O uint32_t TASKS_START; /*!< Start the watchdog */
+ __I uint32_t RESERVED0[63];
+ __IO uint32_t EVENTS_TIMEOUT; /*!< Watchdog timeout */
+ __I uint32_t RESERVED1[128];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[61];
+ __I uint32_t RUNSTATUS; /*!< Run status */
+ __I uint32_t REQSTATUS; /*!< Request status */
+ __I uint32_t RESERVED3[63];
+ __IO uint32_t CRV; /*!< Counter reload value */
+ __IO uint32_t RREN; /*!< Enable register for reload request registers */
+ __IO uint32_t CONFIG; /*!< Configuration register */
+ __I uint32_t RESERVED4[60];
+ __O uint32_t RR[8]; /*!< Description collection[0]: Reload request 0 */
+} NRF_WDT_Type;
+
+
+/* ================================================================================ */
+/* ================ QDEC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Quadrature Decoder (QDEC)
+ */
+
+typedef struct { /*!< QDEC Structure */
+ __O uint32_t TASKS_START; /*!< Task starting the quadrature decoder */
+ __O uint32_t TASKS_STOP; /*!< Task stopping the quadrature decoder */
+ __O uint32_t TASKS_READCLRACC; /*!< Read and clear ACC and ACCDBL */
+ __O uint32_t TASKS_RDCLRACC; /*!< Read and clear ACC */
+ __O uint32_t TASKS_RDCLRDBL; /*!< Read and clear ACCDBL */
+ __I uint32_t RESERVED0[59];
+ __IO uint32_t EVENTS_SAMPLERDY; /*!< Event being generated for every new sample value written to
+ the SAMPLE register */
+ __IO uint32_t EVENTS_REPORTRDY; /*!< Non-null report ready */
+ __IO uint32_t EVENTS_ACCOF; /*!< ACC or ACCDBL register overflow */
+ __IO uint32_t EVENTS_DBLRDY; /*!< Double displacement(s) detected */
+ __IO uint32_t EVENTS_STOPPED; /*!< QDEC has been stopped */
+ __I uint32_t RESERVED1[59];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[125];
+ __IO uint32_t ENABLE; /*!< Enable the quadrature decoder */
+ __IO uint32_t LEDPOL; /*!< LED output pin polarity */
+ __IO uint32_t SAMPLEPER; /*!< Sample period */
+ __I int32_t SAMPLE; /*!< Motion sample value */
+ __IO uint32_t REPORTPER; /*!< Number of samples to be taken before REPORTRDY and DBLRDY events
+ can be generated */
+ __I int32_t ACC; /*!< Register accumulating the valid transitions */
+ __I int32_t ACCREAD; /*!< Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC
+ task */
+ QDEC_PSEL_Type PSEL; /*!< Unspecified */
+ __IO uint32_t DBFEN; /*!< Enable input debounce filters */
+ __I uint32_t RESERVED4[5];
+ __IO uint32_t LEDPRE; /*!< Time period the LED is switched ON prior to sampling */
+ __I uint32_t ACCDBL; /*!< Register accumulating the number of detected double transitions */
+ __I uint32_t ACCDBLREAD; /*!< Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL
+ task */
+} NRF_QDEC_Type;
+
+
+/* ================================================================================ */
+/* ================ COMP ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Comparator (COMP)
+ */
+
+typedef struct { /*!< COMP Structure */
+ __O uint32_t TASKS_START; /*!< Start comparator */
+ __O uint32_t TASKS_STOP; /*!< Stop comparator */
+ __O uint32_t TASKS_SAMPLE; /*!< Sample comparator value */
+ __I uint32_t RESERVED0[61];
+ __IO uint32_t EVENTS_READY; /*!< COMP is ready and output is valid */
+ __IO uint32_t EVENTS_DOWN; /*!< Downward crossing */
+ __IO uint32_t EVENTS_UP; /*!< Upward crossing */
+ __IO uint32_t EVENTS_CROSS; /*!< Downward or upward crossing */
+ __I uint32_t RESERVED1[60];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t RESULT; /*!< Compare result */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< COMP enable */
+ __IO uint32_t PSEL; /*!< Pin select */
+ __IO uint32_t REFSEL; /*!< Reference source select for single-ended mode */
+ __IO uint32_t EXTREFSEL; /*!< External reference select */
+ __I uint32_t RESERVED5[8];
+ __IO uint32_t TH; /*!< Threshold configuration for hysteresis unit */
+ __IO uint32_t MODE; /*!< Mode configuration */
+ __IO uint32_t HYST; /*!< Comparator hysteresis enable */
+ __IO uint32_t ISOURCE; /*!< Current source select on analog input */
+} NRF_COMP_Type;
+
+
+/* ================================================================================ */
+/* ================ LPCOMP ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Low Power Comparator (LPCOMP)
+ */
+
+typedef struct { /*!< LPCOMP Structure */
+ __O uint32_t TASKS_START; /*!< Start comparator */
+ __O uint32_t TASKS_STOP; /*!< Stop comparator */
+ __O uint32_t TASKS_SAMPLE; /*!< Sample comparator value */
+ __I uint32_t RESERVED0[61];
+ __IO uint32_t EVENTS_READY; /*!< LPCOMP is ready and output is valid */
+ __IO uint32_t EVENTS_DOWN; /*!< Downward crossing */
+ __IO uint32_t EVENTS_UP; /*!< Upward crossing */
+ __IO uint32_t EVENTS_CROSS; /*!< Downward or upward crossing */
+ __I uint32_t RESERVED1[60];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t RESULT; /*!< Compare result */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< Enable LPCOMP */
+ __IO uint32_t PSEL; /*!< Input pin select */
+ __IO uint32_t REFSEL; /*!< Reference select */
+ __IO uint32_t EXTREFSEL; /*!< External reference select */
+ __I uint32_t RESERVED5[4];
+ __IO uint32_t ANADETECT; /*!< Analog detect configuration */
+ __I uint32_t RESERVED6[5];
+ __IO uint32_t HYST; /*!< Comparator hysteresis enable */
+} NRF_LPCOMP_Type;
+
+
+/* ================================================================================ */
+/* ================ SWI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Software interrupt 0 (SWI)
+ */
+
+typedef struct { /*!< SWI Structure */
+ __I uint32_t UNUSED; /*!< Unused. */
+} NRF_SWI_Type;
+
+
+/* ================================================================================ */
+/* ================ EGU ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Event Generator Unit 0 (EGU)
+ */
+
+typedef struct { /*!< EGU Structure */
+ __O uint32_t TASKS_TRIGGER[16]; /*!< Description collection[0]: Trigger 0 for triggering the corresponding
+ TRIGGERED[0] event */
+ __I uint32_t RESERVED0[48];
+ __IO uint32_t EVENTS_TRIGGERED[16]; /*!< Description collection[0]: Event number 0 generated by triggering
+ the corresponding TRIGGER[0] task */
+ __I uint32_t RESERVED1[112];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+} NRF_EGU_Type;
+
+
+/* ================================================================================ */
+/* ================ PWM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Pulse Width Modulation Unit 0 (PWM)
+ */
+
+typedef struct { /*!< PWM Structure */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STOP; /*!< Stops PWM pulse generation on all channels at the end of current
+ PWM period, and stops sequence playback */
+ __O uint32_t TASKS_SEQSTART[2]; /*!< Description collection[0]: Loads the first PWM value on all
+ enabled channels from sequence 0, and starts playing that sequence
+ at the rate defined in SEQ[0]REFRESH and/or DECODER.MODE. Causes
+ PWM generation to start it was not running. */
+ __O uint32_t TASKS_NEXTSTEP; /*!< Steps by one value in the current sequence on all enabled channels
+ if DECODER.MODE=NextStep. Does not cause PWM generation to start
+ it was not running. */
+ __I uint32_t RESERVED1[60];
+ __IO uint32_t EVENTS_STOPPED; /*!< Response to STOP task, emitted when PWM pulses are no longer
+ generated */
+ __IO uint32_t EVENTS_SEQSTARTED[2]; /*!< Description collection[0]: First PWM period started on sequence
+ 0 */
+ __IO uint32_t EVENTS_SEQEND[2]; /*!< Description collection[0]: Emitted at end of every sequence
+ 0, when last value from RAM has been applied to wave counter */
+ __IO uint32_t EVENTS_PWMPERIODEND; /*!< Emitted at the end of each PWM period */
+ __IO uint32_t EVENTS_LOOPSDONE; /*!< Concatenated sequences have been played the amount of times
+ defined in LOOP.CNT */
+ __I uint32_t RESERVED2[56];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED3[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED4[125];
+ __IO uint32_t ENABLE; /*!< PWM module enable register */
+ __IO uint32_t MODE; /*!< Selects operating mode of the wave counter */
+ __IO uint32_t COUNTERTOP; /*!< Value up to which the pulse generator counter counts */
+ __IO uint32_t PRESCALER; /*!< Configuration for PWM_CLK */
+ __IO uint32_t DECODER; /*!< Configuration of the decoder */
+ __IO uint32_t LOOP; /*!< Amount of playback of a loop */
+ __I uint32_t RESERVED5[2];
+ PWM_SEQ_Type SEQ[2]; /*!< Unspecified */
+ PWM_PSEL_Type PSEL; /*!< Unspecified */
+} NRF_PWM_Type;
+
+
+/* ================================================================================ */
+/* ================ PDM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Pulse Density Modulation (Digital Microphone) Interface (PDM)
+ */
+
+typedef struct { /*!< PDM Structure */
+ __O uint32_t TASKS_START; /*!< Starts continuous PDM transfer */
+ __O uint32_t TASKS_STOP; /*!< Stops PDM transfer */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_STARTED; /*!< PDM transfer has started */
+ __IO uint32_t EVENTS_STOPPED; /*!< PDM transfer has finished */
+ __IO uint32_t EVENTS_END; /*!< The PDM has written the last sample specified by SAMPLE.MAXCNT
+ (or the last sample after a STOP task has been received) to
+ Data RAM */
+ __I uint32_t RESERVED1[125];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[125];
+ __IO uint32_t ENABLE; /*!< PDM module enable register */
+ __IO uint32_t PDMCLKCTRL; /*!< PDM clock generator control */
+ __IO uint32_t MODE; /*!< Defines the routing of the connected PDM microphones' signals */
+ __I uint32_t RESERVED3[3];
+ __IO uint32_t GAINL; /*!< Left output gain adjustment */
+ __IO uint32_t GAINR; /*!< Right output gain adjustment */
+ __I uint32_t RESERVED4[8];
+ PDM_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED5[6];
+ PDM_SAMPLE_Type SAMPLE; /*!< Unspecified */
+} NRF_PDM_Type;
+
+
+/* ================================================================================ */
+/* ================ NVMC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Non Volatile Memory Controller (NVMC)
+ */
+
+typedef struct { /*!< NVMC Structure */
+ __I uint32_t RESERVED0[256];
+ __I uint32_t READY; /*!< Ready flag */
+ __I uint32_t RESERVED1[64];
+ __IO uint32_t CONFIG; /*!< Configuration register */
+
+ union {
+ __IO uint32_t ERASEPCR1; /*!< Deprecated register - Register for erasing a page in Code area.
+ Equivalent to ERASEPAGE. */
+ __IO uint32_t ERASEPAGE; /*!< Register for erasing a page in Code area */
+ };
+ __IO uint32_t ERASEALL; /*!< Register for erasing all non-volatile user memory */
+ __IO uint32_t ERASEPCR0; /*!< Deprecated register - Register for erasing a page in Code area.
+ Equivalent to ERASEPAGE. */
+ __IO uint32_t ERASEUICR; /*!< Register for erasing User Information Configuration Registers */
+ __I uint32_t RESERVED2[10];
+ __IO uint32_t ICACHECNF; /*!< I-Code cache configuration register. */
+ __I uint32_t RESERVED3;
+ __IO uint32_t IHIT; /*!< I-Code cache hit counter. */
+ __IO uint32_t IMISS; /*!< I-Code cache miss counter. */
+} NRF_NVMC_Type;
+
+
+/* ================================================================================ */
+/* ================ PPI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Programmable Peripheral Interconnect (PPI)
+ */
+
+typedef struct { /*!< PPI Structure */
+ PPI_TASKS_CHG_Type TASKS_CHG[6]; /*!< Channel group tasks */
+ __I uint32_t RESERVED0[308];
+ __IO uint32_t CHEN; /*!< Channel enable register */
+ __IO uint32_t CHENSET; /*!< Channel enable set register */
+ __IO uint32_t CHENCLR; /*!< Channel enable clear register */
+ __I uint32_t RESERVED1;
+ PPI_CH_Type CH[20]; /*!< PPI Channel */
+ __I uint32_t RESERVED2[148];
+ __IO uint32_t CHG[6]; /*!< Description collection[0]: Channel group 0 */
+ __I uint32_t RESERVED3[62];
+ PPI_FORK_Type FORK[32]; /*!< Fork */
+} NRF_PPI_Type;
+
+
+/* ================================================================================ */
+/* ================ MWU ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Memory Watch Unit (MWU)
+ */
+
+typedef struct { /*!< MWU Structure */
+ __I uint32_t RESERVED0[64];
+ MWU_EVENTS_REGION_Type EVENTS_REGION[4]; /*!< Unspecified */
+ __I uint32_t RESERVED1[16];
+ MWU_EVENTS_PREGION_Type EVENTS_PREGION[2]; /*!< Unspecified */
+ __I uint32_t RESERVED2[100];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[5];
+ __IO uint32_t NMIEN; /*!< Enable or disable non-maskable interrupt */
+ __IO uint32_t NMIENSET; /*!< Enable non-maskable interrupt */
+ __IO uint32_t NMIENCLR; /*!< Disable non-maskable interrupt */
+ __I uint32_t RESERVED4[53];
+ MWU_PERREGION_Type PERREGION[2]; /*!< Unspecified */
+ __I uint32_t RESERVED5[64];
+ __IO uint32_t REGIONEN; /*!< Enable/disable regions watch */
+ __IO uint32_t REGIONENSET; /*!< Enable regions watch */
+ __IO uint32_t REGIONENCLR; /*!< Disable regions watch */
+ __I uint32_t RESERVED6[57];
+ MWU_REGION_Type REGION[4]; /*!< Unspecified */
+ __I uint32_t RESERVED7[32];
+ MWU_PREGION_Type PREGION[2]; /*!< Unspecified */
+} NRF_MWU_Type;
+
+
+/* ================================================================================ */
+/* ================ I2S ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Inter-IC Sound (I2S)
+ */
+
+typedef struct { /*!< I2S Structure */
+ __O uint32_t TASKS_START; /*!< Starts continuous I2S transfer. Also starts MCK generator when
+ this is enabled. */
+ __O uint32_t TASKS_STOP; /*!< Stops I2S transfer. Also stops MCK generator. Triggering this
+ task will cause the {event:STOPPED} event to be generated. */
+ __I uint32_t RESERVED0[63];
+ __IO uint32_t EVENTS_RXPTRUPD; /*!< The RXD.PTR register has been copied to internal double-buffers.
+ When the I2S module is started and RX is enabled, this event
+ will be generated for every RXTXD.MAXCNT words that are received
+ on the SDIN pin. */
+ __IO uint32_t EVENTS_STOPPED; /*!< I2S transfer stopped. */
+ __I uint32_t RESERVED1[2];
+ __IO uint32_t EVENTS_TXPTRUPD; /*!< The TDX.PTR register has been copied to internal double-buffers.
+ When the I2S module is started and TX is enabled, this event
+ will be generated for every RXTXD.MAXCNT words that are sent
+ on the SDOUT pin. */
+ __I uint32_t RESERVED2[122];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[125];
+ __IO uint32_t ENABLE; /*!< Enable I2S module. */
+ I2S_CONFIG_Type CONFIG; /*!< Unspecified */
+ __I uint32_t RESERVED4[3];
+ I2S_RXD_Type RXD; /*!< Unspecified */
+ __I uint32_t RESERVED5;
+ I2S_TXD_Type TXD; /*!< Unspecified */
+ __I uint32_t RESERVED6[3];
+ I2S_RXTXD_Type RXTXD; /*!< Unspecified */
+ __I uint32_t RESERVED7[3];
+ I2S_PSEL_Type PSEL; /*!< Unspecified */
+} NRF_I2S_Type;
+
+
+/* ================================================================================ */
+/* ================ FPU ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief FPU (FPU)
+ */
+
+typedef struct { /*!< FPU Structure */
+ __I uint32_t UNUSED; /*!< Unused. */
+} NRF_FPU_Type;
+
+
+/* ================================================================================ */
+/* ================ GPIO ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief GPIO Port 1 (GPIO)
+ */
+
+typedef struct { /*!< GPIO Structure */
+ __I uint32_t RESERVED0[321];
+ __IO uint32_t OUT; /*!< Write GPIO port */
+ __IO uint32_t OUTSET; /*!< Set individual bits in GPIO port */
+ __IO uint32_t OUTCLR; /*!< Clear individual bits in GPIO port */
+ __I uint32_t IN; /*!< Read GPIO port */
+ __IO uint32_t DIR; /*!< Direction of GPIO pins */
+ __IO uint32_t DIRSET; /*!< DIR set register */
+ __IO uint32_t DIRCLR; /*!< DIR clear register */
+ __IO uint32_t LATCH; /*!< Latch register indicating what GPIO pins that have met the criteria
+ set in the PIN_CNF[n].SENSE registers */
+ __IO uint32_t DETECTMODE; /*!< Select between default DETECT signal behaviour and LDETECT mode */
+ __I uint32_t RESERVED1[118];
+ __IO uint32_t PIN_CNF[32]; /*!< Description collection[0]: Configuration of GPIO pins */
+} NRF_GPIO_Type;
+
+
+/* -------------------- End of section using anonymous unions ------------------- */
+#if defined(__CC_ARM)
+ #pragma pop
+#elif defined(__ICCARM__)
+ /* leave anonymous unions enabled */
+#elif defined(__GNUC__)
+ /* anonymous unions are enabled by default */
+#elif defined(__TMS470__)
+ /* anonymous unions are enabled by default */
+#elif defined(__TASKING__)
+ #pragma warning restore
+#else
+ #warning Not supported compiler type
+#endif
+
+
+
+
+/* ================================================================================ */
+/* ================ Peripheral memory map ================ */
+/* ================================================================================ */
+
+#define NRF_FICR_BASE 0x10000000UL
+#define NRF_UICR_BASE 0x10001000UL
+#define NRF_BPROT_BASE 0x40000000UL
+#define NRF_POWER_BASE 0x40000000UL
+#define NRF_CLOCK_BASE 0x40000000UL
+#define NRF_RADIO_BASE 0x40001000UL
+#define NRF_UARTE0_BASE 0x40002000UL
+#define NRF_UART0_BASE 0x40002000UL
+#define NRF_SPIM0_BASE 0x40003000UL
+#define NRF_SPIS0_BASE 0x40003000UL
+#define NRF_TWIM0_BASE 0x40003000UL
+#define NRF_TWIS0_BASE 0x40003000UL
+#define NRF_SPI0_BASE 0x40003000UL
+#define NRF_TWI0_BASE 0x40003000UL
+#define NRF_SPIM1_BASE 0x40004000UL
+#define NRF_SPIS1_BASE 0x40004000UL
+#define NRF_TWIM1_BASE 0x40004000UL
+#define NRF_TWIS1_BASE 0x40004000UL
+#define NRF_SPI1_BASE 0x40004000UL
+#define NRF_TWI1_BASE 0x40004000UL
+#define NRF_NFCT_BASE 0x40005000UL
+#define NRF_GPIOTE_BASE 0x40006000UL
+#define NRF_SAADC_BASE 0x40007000UL
+#define NRF_TIMER0_BASE 0x40008000UL
+#define NRF_TIMER1_BASE 0x40009000UL
+#define NRF_TIMER2_BASE 0x4000A000UL
+#define NRF_RTC0_BASE 0x4000B000UL
+#define NRF_TEMP_BASE 0x4000C000UL
+#define NRF_RNG_BASE 0x4000D000UL
+#define NRF_ECB_BASE 0x4000E000UL
+#define NRF_CCM_BASE 0x4000F000UL
+#define NRF_AAR_BASE 0x4000F000UL
+#define NRF_WDT_BASE 0x40010000UL
+#define NRF_RTC1_BASE 0x40011000UL
+#define NRF_QDEC_BASE 0x40012000UL
+#define NRF_COMP_BASE 0x40013000UL
+#define NRF_LPCOMP_BASE 0x40013000UL
+#define NRF_SWI0_BASE 0x40014000UL
+#define NRF_EGU0_BASE 0x40014000UL
+#define NRF_SWI1_BASE 0x40015000UL
+#define NRF_EGU1_BASE 0x40015000UL
+#define NRF_SWI2_BASE 0x40016000UL
+#define NRF_EGU2_BASE 0x40016000UL
+#define NRF_SWI3_BASE 0x40017000UL
+#define NRF_EGU3_BASE 0x40017000UL
+#define NRF_SWI4_BASE 0x40018000UL
+#define NRF_EGU4_BASE 0x40018000UL
+#define NRF_SWI5_BASE 0x40019000UL
+#define NRF_EGU5_BASE 0x40019000UL
+#define NRF_TIMER3_BASE 0x4001A000UL
+#define NRF_TIMER4_BASE 0x4001B000UL
+#define NRF_PWM0_BASE 0x4001C000UL
+#define NRF_PDM_BASE 0x4001D000UL
+#define NRF_NVMC_BASE 0x4001E000UL
+#define NRF_PPI_BASE 0x4001F000UL
+#define NRF_MWU_BASE 0x40020000UL
+#define NRF_PWM1_BASE 0x40021000UL
+#define NRF_PWM2_BASE 0x40022000UL
+#define NRF_SPIM2_BASE 0x40023000UL
+#define NRF_SPIS2_BASE 0x40023000UL
+#define NRF_SPI2_BASE 0x40023000UL
+#define NRF_RTC2_BASE 0x40024000UL
+#define NRF_I2S_BASE 0x40025000UL
+#define NRF_FPU_BASE 0x40026000UL
+#define NRF_P0_BASE 0x50000000UL
+
+
+/* ================================================================================ */
+/* ================ Peripheral declaration ================ */
+/* ================================================================================ */
+
+#define NRF_FICR ((NRF_FICR_Type *) NRF_FICR_BASE)
+#define NRF_UICR ((NRF_UICR_Type *) NRF_UICR_BASE)
+#define NRF_BPROT ((NRF_BPROT_Type *) NRF_BPROT_BASE)
+#define NRF_POWER ((NRF_POWER_Type *) NRF_POWER_BASE)
+#define NRF_CLOCK ((NRF_CLOCK_Type *) NRF_CLOCK_BASE)
+#define NRF_RADIO ((NRF_RADIO_Type *) NRF_RADIO_BASE)
+#define NRF_UARTE0 ((NRF_UARTE_Type *) NRF_UARTE0_BASE)
+#define NRF_UART0 ((NRF_UART_Type *) NRF_UART0_BASE)
+#define NRF_SPIM0 ((NRF_SPIM_Type *) NRF_SPIM0_BASE)
+#define NRF_SPIS0 ((NRF_SPIS_Type *) NRF_SPIS0_BASE)
+#define NRF_TWIM0 ((NRF_TWIM_Type *) NRF_TWIM0_BASE)
+#define NRF_TWIS0 ((NRF_TWIS_Type *) NRF_TWIS0_BASE)
+#define NRF_SPI0 ((NRF_SPI_Type *) NRF_SPI0_BASE)
+#define NRF_TWI0 ((NRF_TWI_Type *) NRF_TWI0_BASE)
+#define NRF_SPIM1 ((NRF_SPIM_Type *) NRF_SPIM1_BASE)
+#define NRF_SPIS1 ((NRF_SPIS_Type *) NRF_SPIS1_BASE)
+#define NRF_TWIM1 ((NRF_TWIM_Type *) NRF_TWIM1_BASE)
+#define NRF_TWIS1 ((NRF_TWIS_Type *) NRF_TWIS1_BASE)
+#define NRF_SPI1 ((NRF_SPI_Type *) NRF_SPI1_BASE)
+#define NRF_TWI1 ((NRF_TWI_Type *) NRF_TWI1_BASE)
+#define NRF_NFCT ((NRF_NFCT_Type *) NRF_NFCT_BASE)
+#define NRF_GPIOTE ((NRF_GPIOTE_Type *) NRF_GPIOTE_BASE)
+#define NRF_SAADC ((NRF_SAADC_Type *) NRF_SAADC_BASE)
+#define NRF_TIMER0 ((NRF_TIMER_Type *) NRF_TIMER0_BASE)
+#define NRF_TIMER1 ((NRF_TIMER_Type *) NRF_TIMER1_BASE)
+#define NRF_TIMER2 ((NRF_TIMER_Type *) NRF_TIMER2_BASE)
+#define NRF_RTC0 ((NRF_RTC_Type *) NRF_RTC0_BASE)
+#define NRF_TEMP ((NRF_TEMP_Type *) NRF_TEMP_BASE)
+#define NRF_RNG ((NRF_RNG_Type *) NRF_RNG_BASE)
+#define NRF_ECB ((NRF_ECB_Type *) NRF_ECB_BASE)
+#define NRF_CCM ((NRF_CCM_Type *) NRF_CCM_BASE)
+#define NRF_AAR ((NRF_AAR_Type *) NRF_AAR_BASE)
+#define NRF_WDT ((NRF_WDT_Type *) NRF_WDT_BASE)
+#define NRF_RTC1 ((NRF_RTC_Type *) NRF_RTC1_BASE)
+#define NRF_QDEC ((NRF_QDEC_Type *) NRF_QDEC_BASE)
+#define NRF_COMP ((NRF_COMP_Type *) NRF_COMP_BASE)
+#define NRF_LPCOMP ((NRF_LPCOMP_Type *) NRF_LPCOMP_BASE)
+#define NRF_SWI0 ((NRF_SWI_Type *) NRF_SWI0_BASE)
+#define NRF_EGU0 ((NRF_EGU_Type *) NRF_EGU0_BASE)
+#define NRF_SWI1 ((NRF_SWI_Type *) NRF_SWI1_BASE)
+#define NRF_EGU1 ((NRF_EGU_Type *) NRF_EGU1_BASE)
+#define NRF_SWI2 ((NRF_SWI_Type *) NRF_SWI2_BASE)
+#define NRF_EGU2 ((NRF_EGU_Type *) NRF_EGU2_BASE)
+#define NRF_SWI3 ((NRF_SWI_Type *) NRF_SWI3_BASE)
+#define NRF_EGU3 ((NRF_EGU_Type *) NRF_EGU3_BASE)
+#define NRF_SWI4 ((NRF_SWI_Type *) NRF_SWI4_BASE)
+#define NRF_EGU4 ((NRF_EGU_Type *) NRF_EGU4_BASE)
+#define NRF_SWI5 ((NRF_SWI_Type *) NRF_SWI5_BASE)
+#define NRF_EGU5 ((NRF_EGU_Type *) NRF_EGU5_BASE)
+#define NRF_TIMER3 ((NRF_TIMER_Type *) NRF_TIMER3_BASE)
+#define NRF_TIMER4 ((NRF_TIMER_Type *) NRF_TIMER4_BASE)
+#define NRF_PWM0 ((NRF_PWM_Type *) NRF_PWM0_BASE)
+#define NRF_PDM ((NRF_PDM_Type *) NRF_PDM_BASE)
+#define NRF_NVMC ((NRF_NVMC_Type *) NRF_NVMC_BASE)
+#define NRF_PPI ((NRF_PPI_Type *) NRF_PPI_BASE)
+#define NRF_MWU ((NRF_MWU_Type *) NRF_MWU_BASE)
+#define NRF_PWM1 ((NRF_PWM_Type *) NRF_PWM1_BASE)
+#define NRF_PWM2 ((NRF_PWM_Type *) NRF_PWM2_BASE)
+#define NRF_SPIM2 ((NRF_SPIM_Type *) NRF_SPIM2_BASE)
+#define NRF_SPIS2 ((NRF_SPIS_Type *) NRF_SPIS2_BASE)
+#define NRF_SPI2 ((NRF_SPI_Type *) NRF_SPI2_BASE)
+#define NRF_RTC2 ((NRF_RTC_Type *) NRF_RTC2_BASE)
+#define NRF_I2S ((NRF_I2S_Type *) NRF_I2S_BASE)
+#define NRF_FPU ((NRF_FPU_Type *) NRF_FPU_BASE)
+#define NRF_P0 ((NRF_GPIO_Type *) NRF_P0_BASE)
+
+
+/** @} */ /* End of group Device_Peripheral_Registers */
+/** @} */ /* End of group nrf52 */
+/** @} */ /* End of group Nordic Semiconductor */
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* nrf52_H */
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52.svd b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52.svd
new file mode 100644
index 0000000..7416efd
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52.svd
@@ -0,0 +1,42723 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- File naming: <vendor>_<part/series name>_svd.xml -->
+<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" noNamespaceSchemaLocation="CMSIS-SVD.xsd">
+ <vendor>Nordic Semiconductor</vendor>
+ <vendorID>Nordic</vendorID>
+ <name>nrf52</name>
+ <series>nrf52</series>
+ <version>1</version>
+ <description>nRF52832 reference description for radio MCU with ARM 32-bit Cortex-M4 Microcontroller </description>
+ <licenseText>
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA\n
+\n
+All rights reserved.\n
+\n
+Redistribution and use in source and binary forms, with or without modification,\n
+are permitted provided that the following conditions are met:\n
+\n
+1. Redistributions of source code must retain the above copyright notice, this\n
+ list of conditions and the following disclaimer.\n
+\n
+2. Redistributions in binary form, except as embedded into a Nordic\n
+ Semiconductor ASA integrated circuit in a product or a software update for\n
+ such product, must reproduce the above copyright notice, this list of\n
+ conditions and the following disclaimer in the documentation and/or other\n
+ materials provided with the distribution.\n
+\n
+3. Neither the name of Nordic Semiconductor ASA nor the names of its\n
+ contributors may be used to endorse or promote products derived from this\n
+ software without specific prior written permission.\n
+\n
+4. This software, with or without modification, must only be used with a\n
+ Nordic Semiconductor ASA integrated circuit.\n
+\n
+5. Any software provided in binary form under this license must not be reverse\n
+ engineered, decompiled, modified and/or disassembled.\n
+\n
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS\n
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE\n
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE\n
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\n
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n
+ </licenseText>
+ <addressUnitBits>8</addressUnitBits>
+ <width>32</width>
+ <size>32</size>
+ <resetValue>0x00000000</resetValue>
+ <resetMask>0xFFFFFFFF</resetMask>
+ <cpu>
+ <name>CM4</name>
+ <revision>r0p1</revision>
+ <endian>little</endian>
+ <mpuPresent>1</mpuPresent>
+ <fpuPresent>1</fpuPresent>
+ <nvicPrioBits>3</nvicPrioBits>
+ <vendorSystickConfig>0</vendorSystickConfig>
+ </cpu>
+ <headerSystemFilename>system_nrf52</headerSystemFilename>
+ <headerDefinitionsPrefix>NRF_</headerDefinitionsPrefix>
+ <vendorExtensions>
+ <ExampleStackSize>2048</ExampleStackSize>
+ <ExampleHeapSize>2048</ExampleHeapSize>
+ <MaxInterrupts>112</MaxInterrupts>
+ </vendorExtensions>
+ <peripherals>
+ <peripheral>
+ <name>FICR</name>
+ <description>Factory Information Configuration Registers</description>
+ <groupName>FICR</groupName>
+ <baseAddress>0x10000000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <registers>
+ <register>
+ <name>CODEPAGESIZE</name>
+ <description>Code memory page size</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>CODEPAGESIZE</name>
+ <description>Code memory page size</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CODESIZE</name>
+ <description>Code memory size</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>CODESIZE</name>
+ <description>Code memory size in number of pages</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>DEVICEID[%s]</name>
+ <description>Description collection[0]: Device identifier</description>
+ <addressOffset>0x060</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>DEVICEID</name>
+ <description>64 bit unique device identifier</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>ER[%s]</name>
+ <description>Description collection[0]: Encryption Root, word 0</description>
+ <addressOffset>0x080</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>ER</name>
+ <description>Encryption Root, word n</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>IR[%s]</name>
+ <description>Description collection[0]: Identity Root, word 0</description>
+ <addressOffset>0x090</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>IR</name>
+ <description>Identity Root, word n</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DEVICEADDRTYPE</name>
+ <description>Device address type</description>
+ <addressOffset>0x0A0</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>DEVICEADDRTYPE</name>
+ <description>Device address type</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Public</name>
+ <description>Public address</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Random</name>
+ <description>Random address</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>DEVICEADDR[%s]</name>
+ <description>Description collection[0]: Device address 0</description>
+ <addressOffset>0x0A4</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>DEVICEADDR</name>
+ <description>48 bit device address</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>INFO</name>
+ <description>Device info</description>
+ <addressOffset>0x100</addressOffset>
+ <register>
+ <name>PART</name>
+ <description>Part code</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00052832</resetValue>
+ <fields>
+ <field>
+ <name>PART</name>
+ <description>Part code</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>N52832</name>
+ <description>nRF52832</description>
+ <value>0x52832</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>VARIANT</name>
+ <description>Part Variant, Hardware version and Production configuration</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x41414142</resetValue>
+ <fields>
+ <field>
+ <name>VARIANT</name>
+ <description>Part Variant, Hardware version and Production configuration, encoded as ASCII</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AAAA</name>
+ <description>AAAA</description>
+ <value>0x41414141</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AAAB</name>
+ <description>AAAB</description>
+ <value>0x41414142</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AABA</name>
+ <description>AABA</description>
+ <value>0x41414241</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AABB</name>
+ <description>AABB</description>
+ <value>0x41414242</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AAB0</name>
+ <description>AAB0</description>
+ <value>0x41414230</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AAE0</name>
+ <description>AAE0</description>
+ <value>0x41414530</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PACKAGE</name>
+ <description>Package option</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00002000</resetValue>
+ <fields>
+ <field>
+ <name>PACKAGE</name>
+ <description>Package option</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>QF</name>
+ <description>QFxx - 48-pin QFN</description>
+ <value>0x2000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CH</name>
+ <description>CHxx - 7x8 WLCSP 56 balls</description>
+ <value>0x2001</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CI</name>
+ <description>CIxx - 7x8 WLCSP 56 balls</description>
+ <value>0x2002</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CK</name>
+ <description>CKxx - 7x8 WLCSP 56 balls with backside coating for light protection</description>
+ <value>0x2005</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RAM</name>
+ <description>RAM variant</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000040</resetValue>
+ <fields>
+ <field>
+ <name>RAM</name>
+ <description>RAM variant</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K16</name>
+ <description>16 kByte RAM</description>
+ <value>0x10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K32</name>
+ <description>32 kByte RAM</description>
+ <value>0x20</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K64</name>
+ <description>64 kByte RAM</description>
+ <value>0x40</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FLASH</name>
+ <description>Flash variant</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000200</resetValue>
+ <fields>
+ <field>
+ <name>FLASH</name>
+ <description>Flash variant</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K128</name>
+ <description>128 kByte FLASH</description>
+ <value>0x80</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K256</name>
+ <description>256 kByte FLASH</description>
+ <value>0x100</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K512</name>
+ <description>512 kByte FLASH</description>
+ <value>0x200</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>3</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>UNUSED0[%s]</name>
+ <description>Description collection[0]: Unspecified</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-write</access>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TEMP</name>
+ <description>Registers storing factory TEMP module linearization coefficients</description>
+ <addressOffset>0x404</addressOffset>
+ <register>
+ <name>A0</name>
+ <description>Slope definition A0.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000320</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register.</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A1</name>
+ <description>Slope definition A1.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000343</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register.</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A2</name>
+ <description>Slope definition A2.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x0000035D</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register.</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A3</name>
+ <description>Slope definition A3.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000400</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register.</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A4</name>
+ <description>Slope definition A4.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000452</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register.</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A5</name>
+ <description>Slope definition A5.</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x0000037B</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register.</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B0</name>
+ <description>y-intercept B0.</description>
+ <addressOffset>0x018</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00003FCC</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B1</name>
+ <description>y-intercept B1.</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00003F98</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B2</name>
+ <description>y-intercept B2.</description>
+ <addressOffset>0x020</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00003F98</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B3</name>
+ <description>y-intercept B3.</description>
+ <addressOffset>0x024</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000012</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B4</name>
+ <description>y-intercept B4.</description>
+ <addressOffset>0x028</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x0000004D</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B5</name>
+ <description>y-intercept B5.</description>
+ <addressOffset>0x02C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00003E10</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T0</name>
+ <description>Segment end T0.</description>
+ <addressOffset>0x030</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x000000E2</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end)register.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T1</name>
+ <description>Segment end T1.</description>
+ <addressOffset>0x034</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end)register.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T2</name>
+ <description>Segment end T2.</description>
+ <addressOffset>0x038</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000014</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end)register.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T3</name>
+ <description>Segment end T3.</description>
+ <addressOffset>0x03C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000019</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end)register.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T4</name>
+ <description>Segment end T4.</description>
+ <addressOffset>0x040</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000050</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end)register.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>NFC</name>
+ <description>Unspecified</description>
+ <addressOffset>0x450</addressOffset>
+ <register>
+ <name>TAGHEADER0</name>
+ <description>Default header for NFC Tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFF5F</resetValue>
+ <fields>
+ <field>
+ <name>MFGID</name>
+ <description>Default Manufacturer ID: Nordic Semiconductor ASA has ICM 0x5F</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>UD1</name>
+ <description>Unique identifier byte 1</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>UD2</name>
+ <description>Unique identifier byte 2</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>UD3</name>
+ <description>Unique identifier byte 3</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TAGHEADER1</name>
+ <description>Default header for NFC Tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>UD4</name>
+ <description>Unique identifier byte 4</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>UD5</name>
+ <description>Unique identifier byte 5</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>UD6</name>
+ <description>Unique identifier byte 6</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>UD7</name>
+ <description>Unique identifier byte 7</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TAGHEADER2</name>
+ <description>Default header for NFC Tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>UD8</name>
+ <description>Unique identifier byte 8</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>UD9</name>
+ <description>Unique identifier byte 9</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>UD10</name>
+ <description>Unique identifier byte 10</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>UD11</name>
+ <description>Unique identifier byte 11</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TAGHEADER3</name>
+ <description>Default header for NFC Tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>UD12</name>
+ <description>Unique identifier byte 12</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>UD13</name>
+ <description>Unique identifier byte 13</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>UD14</name>
+ <description>Unique identifier byte 14</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>UD15</name>
+ <description>Unique identifier byte 15</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>UICR</name>
+ <description>User Information Configuration Registers</description>
+ <groupName>UICR</groupName>
+ <baseAddress>0x10001000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <registers>
+ <register>
+ <name>UNUSED0</name>
+ <description>Unspecified</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>UNUSED1</name>
+ <description>Unspecified</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>UNUSED2</name>
+ <description>Unspecified</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>UNUSED3</name>
+ <description>Unspecified</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <dim>15</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>NRFFW[%s]</name>
+ <description>Description collection[0]: Reserved for Nordic firmware design</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>NRFFW</name>
+ <description>Reserved for Nordic firmware design</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>12</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>NRFHW[%s]</name>
+ <description>Description collection[0]: Reserved for Nordic hardware design</description>
+ <addressOffset>0x050</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>NRFHW</name>
+ <description>Reserved for Nordic hardware design</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>32</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>CUSTOMER[%s]</name>
+ <description>Description collection[0]: Reserved for customer</description>
+ <addressOffset>0x080</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>CUSTOMER</name>
+ <description>Reserved for customer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>PSELRESET[%s]</name>
+ <description>Description collection[0]: Mapping of the nRESET function (see POWER chapter for details)</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>GPIO number P0.n onto which Reset is exposed</description>
+ <lsb>0</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>APPROTECT</name>
+ <description>Access Port protection</description>
+ <addressOffset>0x208</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PALL</name>
+ <description>Enable or disable Access Port protection. Any other value than 0xFF being written to this field will enable protection.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0xFF</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NFCPINS</name>
+ <description>Setting of pins dedicated to NFC functionality: NFC antenna or GPIO</description>
+ <addressOffset>0x20C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PROTECT</name>
+ <description>Setting of pins dedicated to NFC functionality</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Operation as GPIO pins. Same protection as normal GPIO pins</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NFC</name>
+ <description>Operation as NFC antenna pins. Configures the protection for NFC operation</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>BPROT</name>
+ <description>Block Protect</description>
+ <groupName>BPROT</groupName>
+ <baseAddress>0x40000000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <registers>
+ <register>
+ <name>CONFIG0</name>
+ <description>Block protect configuration register 0</description>
+ <addressOffset>0x600</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0</name>
+ <description>Enable protection for region 0. Write '0' has no effect.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1</name>
+ <description>Enable protection for region 1. Write '0' has no effect.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2</name>
+ <description>Enable protection for region 2. Write '0' has no effect.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3</name>
+ <description>Enable protection for region 3. Write '0' has no effect.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION4</name>
+ <description>Enable protection for region 4. Write '0' has no effect.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION5</name>
+ <description>Enable protection for region 5. Write '0' has no effect.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION6</name>
+ <description>Enable protection for region 6. Write '0' has no effect.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION7</name>
+ <description>Enable protection for region 7. Write '0' has no effect.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION8</name>
+ <description>Enable protection for region 8. Write '0' has no effect.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION9</name>
+ <description>Enable protection for region 9. Write '0' has no effect.</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION10</name>
+ <description>Enable protection for region 10. Write '0' has no effect.</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION11</name>
+ <description>Enable protection for region 11. Write '0' has no effect.</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION12</name>
+ <description>Enable protection for region 12. Write '0' has no effect.</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION13</name>
+ <description>Enable protection for region 13. Write '0' has no effect.</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION14</name>
+ <description>Enable protection for region 14. Write '0' has no effect.</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION15</name>
+ <description>Enable protection for region 15. Write '0' has no effect.</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION16</name>
+ <description>Enable protection for region 16. Write '0' has no effect.</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION17</name>
+ <description>Enable protection for region 17. Write '0' has no effect.</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION18</name>
+ <description>Enable protection for region 18. Write '0' has no effect.</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION19</name>
+ <description>Enable protection for region 19. Write '0' has no effect.</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION20</name>
+ <description>Enable protection for region 20. Write '0' has no effect.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION21</name>
+ <description>Enable protection for region 21. Write '0' has no effect.</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION22</name>
+ <description>Enable protection for region 22. Write '0' has no effect.</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION23</name>
+ <description>Enable protection for region 23. Write '0' has no effect.</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION24</name>
+ <description>Enable protection for region 24. Write '0' has no effect.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION25</name>
+ <description>Enable protection for region 25. Write '0' has no effect.</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION26</name>
+ <description>Enable protection for region 26. Write '0' has no effect.</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION27</name>
+ <description>Enable protection for region 27. Write '0' has no effect.</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION28</name>
+ <description>Enable protection for region 28. Write '0' has no effect.</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION29</name>
+ <description>Enable protection for region 29. Write '0' has no effect.</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION30</name>
+ <description>Enable protection for region 30. Write '0' has no effect.</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION31</name>
+ <description>Enable protection for region 31. Write '0' has no effect.</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG1</name>
+ <description>Block protect configuration register 1</description>
+ <addressOffset>0x604</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION32</name>
+ <description>Enable protection for region 32. Write '0' has no effect.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION33</name>
+ <description>Enable protection for region 33. Write '0' has no effect.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION34</name>
+ <description>Enable protection for region 34. Write '0' has no effect.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION35</name>
+ <description>Enable protection for region 35. Write '0' has no effect.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION36</name>
+ <description>Enable protection for region 36. Write '0' has no effect.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION37</name>
+ <description>Enable protection for region 37. Write '0' has no effect.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION38</name>
+ <description>Enable protection for region 38. Write '0' has no effect.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION39</name>
+ <description>Enable protection for region 39. Write '0' has no effect.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION40</name>
+ <description>Enable protection for region 40. Write '0' has no effect.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION41</name>
+ <description>Enable protection for region 41. Write '0' has no effect.</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION42</name>
+ <description>Enable protection for region 42. Write '0' has no effect.</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION43</name>
+ <description>Enable protection for region 43. Write '0' has no effect.</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION44</name>
+ <description>Enable protection for region 44. Write '0' has no effect.</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION45</name>
+ <description>Enable protection for region 45. Write '0' has no effect.</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION46</name>
+ <description>Enable protection for region 46. Write '0' has no effect.</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION47</name>
+ <description>Enable protection for region 47. Write '0' has no effect.</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION48</name>
+ <description>Enable protection for region 48. Write '0' has no effect.</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION49</name>
+ <description>Enable protection for region 49. Write '0' has no effect.</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION50</name>
+ <description>Enable protection for region 50. Write '0' has no effect.</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION51</name>
+ <description>Enable protection for region 51. Write '0' has no effect.</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION52</name>
+ <description>Enable protection for region 52. Write '0' has no effect.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION53</name>
+ <description>Enable protection for region 53. Write '0' has no effect.</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION54</name>
+ <description>Enable protection for region 54. Write '0' has no effect.</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION55</name>
+ <description>Enable protection for region 55. Write '0' has no effect.</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION56</name>
+ <description>Enable protection for region 56. Write '0' has no effect.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION57</name>
+ <description>Enable protection for region 57. Write '0' has no effect.</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION58</name>
+ <description>Enable protection for region 58. Write '0' has no effect.</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION59</name>
+ <description>Enable protection for region 59. Write '0' has no effect.</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION60</name>
+ <description>Enable protection for region 60. Write '0' has no effect.</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION61</name>
+ <description>Enable protection for region 61. Write '0' has no effect.</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION62</name>
+ <description>Enable protection for region 62. Write '0' has no effect.</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION63</name>
+ <description>Enable protection for region 63. Write '0' has no effect.</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DISABLEINDEBUG</name>
+ <description>Disable protection mechanism in debug interface mode</description>
+ <addressOffset>0x608</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>DISABLEINDEBUG</name>
+ <description>Disable the protection mechanism for NVM regions while in debug interface mode. This register will only disable the protection mechanism if the device is in debug interface mode.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable in debug</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable in debug</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>UNUSED0</name>
+ <description>Unspecified</description>
+ <addressOffset>0x60C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>CONFIG2</name>
+ <description>Block protect configuration register 2</description>
+ <addressOffset>0x610</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION64</name>
+ <description>Enable protection for region 64. Write '0' has no effect.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION65</name>
+ <description>Enable protection for region 65. Write '0' has no effect.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION66</name>
+ <description>Enable protection for region 66. Write '0' has no effect.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION67</name>
+ <description>Enable protection for region 67. Write '0' has no effect.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION68</name>
+ <description>Enable protection for region 68. Write '0' has no effect.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION69</name>
+ <description>Enable protection for region 69. Write '0' has no effect.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION70</name>
+ <description>Enable protection for region 70. Write '0' has no effect.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION71</name>
+ <description>Enable protection for region 71. Write '0' has no effect.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION72</name>
+ <description>Enable protection for region 72. Write '0' has no effect.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION73</name>
+ <description>Enable protection for region 73. Write '0' has no effect.</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION74</name>
+ <description>Enable protection for region 74. Write '0' has no effect.</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION75</name>
+ <description>Enable protection for region 75. Write '0' has no effect.</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION76</name>
+ <description>Enable protection for region 76. Write '0' has no effect.</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION77</name>
+ <description>Enable protection for region 77. Write '0' has no effect.</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION78</name>
+ <description>Enable protection for region 78. Write '0' has no effect.</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION79</name>
+ <description>Enable protection for region 79. Write '0' has no effect.</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION80</name>
+ <description>Enable protection for region 80. Write '0' has no effect.</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION81</name>
+ <description>Enable protection for region 81. Write '0' has no effect.</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION82</name>
+ <description>Enable protection for region 82. Write '0' has no effect.</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION83</name>
+ <description>Enable protection for region 83. Write '0' has no effect.</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION84</name>
+ <description>Enable protection for region 84. Write '0' has no effect.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION85</name>
+ <description>Enable protection for region 85. Write '0' has no effect.</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION86</name>
+ <description>Enable protection for region 86. Write '0' has no effect.</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION87</name>
+ <description>Enable protection for region 87. Write '0' has no effect.</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION88</name>
+ <description>Enable protection for region 88. Write '0' has no effect.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION89</name>
+ <description>Enable protection for region 89. Write '0' has no effect.</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION90</name>
+ <description>Enable protection for region 90. Write '0' has no effect.</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION91</name>
+ <description>Enable protection for region 91. Write '0' has no effect.</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION92</name>
+ <description>Enable protection for region 92. Write '0' has no effect.</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION93</name>
+ <description>Enable protection for region 93. Write '0' has no effect.</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION94</name>
+ <description>Enable protection for region 94. Write '0' has no effect.</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION95</name>
+ <description>Enable protection for region 95. Write '0' has no effect.</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG3</name>
+ <description>Block protect configuration register 3</description>
+ <addressOffset>0x614</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION96</name>
+ <description>Enable protection for region 96. Write '0' has no effect.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION97</name>
+ <description>Enable protection for region 97. Write '0' has no effect.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION98</name>
+ <description>Enable protection for region 98. Write '0' has no effect.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION99</name>
+ <description>Enable protection for region 99. Write '0' has no effect.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION100</name>
+ <description>Enable protection for region 100. Write '0' has no effect.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION101</name>
+ <description>Enable protection for region 101. Write '0' has no effect.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION102</name>
+ <description>Enable protection for region 102. Write '0' has no effect.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION103</name>
+ <description>Enable protection for region 103. Write '0' has no effect.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION104</name>
+ <description>Enable protection for region 104. Write '0' has no effect.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION105</name>
+ <description>Enable protection for region 105. Write '0' has no effect.</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION106</name>
+ <description>Enable protection for region 106. Write '0' has no effect.</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION107</name>
+ <description>Enable protection for region 107. Write '0' has no effect.</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION108</name>
+ <description>Enable protection for region 108. Write '0' has no effect.</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION109</name>
+ <description>Enable protection for region 109. Write '0' has no effect.</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION110</name>
+ <description>Enable protection for region 110. Write '0' has no effect.</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION111</name>
+ <description>Enable protection for region 111. Write '0' has no effect.</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION112</name>
+ <description>Enable protection for region 112. Write '0' has no effect.</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION113</name>
+ <description>Enable protection for region 113. Write '0' has no effect.</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION114</name>
+ <description>Enable protection for region 114. Write '0' has no effect.</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION115</name>
+ <description>Enable protection for region 115. Write '0' has no effect.</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION116</name>
+ <description>Enable protection for region 116. Write '0' has no effect.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION117</name>
+ <description>Enable protection for region 117. Write '0' has no effect.</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION118</name>
+ <description>Enable protection for region 118. Write '0' has no effect.</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION119</name>
+ <description>Enable protection for region 119. Write '0' has no effect.</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION120</name>
+ <description>Enable protection for region 120. Write '0' has no effect.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION121</name>
+ <description>Enable protection for region 121. Write '0' has no effect.</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION122</name>
+ <description>Enable protection for region 122. Write '0' has no effect.</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION123</name>
+ <description>Enable protection for region 123. Write '0' has no effect.</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION124</name>
+ <description>Enable protection for region 124. Write '0' has no effect.</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION125</name>
+ <description>Enable protection for region 125. Write '0' has no effect.</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION126</name>
+ <description>Enable protection for region 126. Write '0' has no effect.</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION127</name>
+ <description>Enable protection for region 127. Write '0' has no effect.</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>POWER</name>
+ <description>Power control</description>
+ <groupName>POWER</groupName>
+ <baseAddress>0x40000000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>BPROT</alternatePeripheral>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>POWER_CLOCK</name>
+ <value>0</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_CONSTLAT</name>
+ <description>Enable constant latency mode</description>
+ <addressOffset>0x078</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_LOWPWR</name>
+ <description>Enable low power mode (variable latency)</description>
+ <addressOffset>0x07C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_POFWARN</name>
+ <description>Power failure warning</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_SLEEPENTER</name>
+ <description>CPU entered WFI/WFE sleep</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_SLEEPEXIT</name>
+ <description>CPU exited WFI/WFE sleep</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>POFWARN</name>
+ <description>Write '1' to Enable interrupt for POFWARN event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SLEEPENTER</name>
+ <description>Write '1' to Enable interrupt for SLEEPENTER event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SLEEPEXIT</name>
+ <description>Write '1' to Enable interrupt for SLEEPEXIT event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>POFWARN</name>
+ <description>Write '1' to Disable interrupt for POFWARN event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SLEEPENTER</name>
+ <description>Write '1' to Disable interrupt for SLEEPENTER event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SLEEPEXIT</name>
+ <description>Write '1' to Disable interrupt for SLEEPEXIT event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RESETREAS</name>
+ <description>Reset reason</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RESETPIN</name>
+ <description>Reset from pin-reset detected</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOG</name>
+ <description>Reset from watchdog detected</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SREQ</name>
+ <description>Reset from soft reset detected</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOCKUP</name>
+ <description>Reset from CPU lock-up detected</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OFF</name>
+ <description>Reset due to wake up from System OFF mode when wakeup is triggered from DETECT signal from GPIO</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LPCOMP</name>
+ <description>Reset due to wake up from System OFF mode when wakeup is triggered from ANADETECT signal from LPCOMP</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DIF</name>
+ <description>Reset due to wake up from System OFF mode when wakeup is triggered from entering into debug interface mode</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NFC</name>
+ <description>Reset due to wake up from System OFF mode by NFC field detect</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RAMSTATUS</name>
+ <description>Deprecated register - RAM status register</description>
+ <addressOffset>0x428</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>RAMBLOCK0</name>
+ <description>RAM block 0 is on or off/powering up</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RAMBLOCK1</name>
+ <description>RAM block 1 is on or off/powering up</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RAMBLOCK2</name>
+ <description>RAM block 2 is on or off/powering up</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RAMBLOCK3</name>
+ <description>RAM block 3 is on or off/powering up</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SYSTEMOFF</name>
+ <description>System OFF register</description>
+ <addressOffset>0x500</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>SYSTEMOFF</name>
+ <description>Enable System OFF mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Enter</name>
+ <description>Enable System OFF mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>POFCON</name>
+ <description>Power failure comparator configuration</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>POF</name>
+ <description>Enable or disable power failure comparator</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>THRESHOLD</name>
+ <description>Power failure comparator threshold setting</description>
+ <lsb>1</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>V17</name>
+ <description>Set threshold to 1.7 V</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V18</name>
+ <description>Set threshold to 1.8 V</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V19</name>
+ <description>Set threshold to 1.9 V</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V20</name>
+ <description>Set threshold to 2.0 V</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V21</name>
+ <description>Set threshold to 2.1 V</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V22</name>
+ <description>Set threshold to 2.2 V</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V23</name>
+ <description>Set threshold to 2.3 V</description>
+ <value>10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V24</name>
+ <description>Set threshold to 2.4 V</description>
+ <value>11</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V25</name>
+ <description>Set threshold to 2.5 V</description>
+ <value>12</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V26</name>
+ <description>Set threshold to 2.6 V</description>
+ <value>13</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V27</name>
+ <description>Set threshold to 2.7 V</description>
+ <value>14</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V28</name>
+ <description>Set threshold to 2.8 V</description>
+ <value>15</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>GPREGRET</name>
+ <description>General purpose retention register</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>GPREGRET</name>
+ <description>General purpose retention register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>GPREGRET2</name>
+ <description>General purpose retention register</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>GPREGRET</name>
+ <description>General purpose retention register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RAMON</name>
+ <description>Deprecated register - RAM on/off register (this register is retained)</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000003</resetValue>
+ <fields>
+ <field>
+ <name>ONRAM0</name>
+ <description>Keep RAM block 0 on or off in system ON Mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM0Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM0On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ONRAM1</name>
+ <description>Keep RAM block 1 on or off in system ON Mode</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM1Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM1On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OFFRAM0</name>
+ <description>Keep retention on RAM block 0 when RAM block is switched off</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM0Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM0On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OFFRAM1</name>
+ <description>Keep retention on RAM block 1 when RAM block is switched off</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM1Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM1On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RAMONB</name>
+ <description>Deprecated register - RAM on/off register (this register is retained)</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000003</resetValue>
+ <fields>
+ <field>
+ <name>ONRAM2</name>
+ <description>Keep RAM block 2 on or off in system ON Mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM2Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM2On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ONRAM3</name>
+ <description>Keep RAM block 3 on or off in system ON Mode</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM3Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM3On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OFFRAM2</name>
+ <description>Keep retention on RAM block 2 when RAM block is switched off</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM2Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM2On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OFFRAM3</name>
+ <description>Keep retention on RAM block 3 when RAM block is switched off</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RAM3Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RAM3On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DCDCEN</name>
+ <description>DC/DC enable register</description>
+ <addressOffset>0x578</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DCDCEN</name>
+ <description>Enable or disable DC/DC converter</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>8</dim>
+ <dimIncrement>16</dimIncrement>
+ <name>RAM[%s]</name>
+ <description>Unspecified</description>
+ <addressOffset>0x900</addressOffset>
+ <register>
+ <name>POWER</name>
+ <description>Description cluster[0]: RAM0 power control register</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000FFFF</resetValue>
+ <fields>
+ <field>
+ <name>S0POWER</name>
+ <description>Keep RAM section S0 ON or OFF in System ON mode.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1POWER</name>
+ <description>Keep RAM section S1 ON or OFF in System ON mode.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S0RETENTION</name>
+ <description>Keep retention on RAM section S0 when RAM section is in OFF</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1RETENTION</name>
+ <description>Keep retention on RAM section S1 when RAM section is in OFF</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>POWERSET</name>
+ <description>Description cluster[0]: RAM0 power control set register</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <resetValue>0x0000FFFF</resetValue>
+ <fields>
+ <field>
+ <name>S0POWER</name>
+ <description>Keep RAM section S0 of RAM0 on or off in System ON mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1POWER</name>
+ <description>Keep RAM section S1 of RAM0 on or off in System ON mode</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S0RETENTION</name>
+ <description>Keep retention on RAM section S0 when RAM section is switched off</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1RETENTION</name>
+ <description>Keep retention on RAM section S1 when RAM section is switched off</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>POWERCLR</name>
+ <description>Description cluster[0]: RAM0 power control clear register</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <resetValue>0x0000FFFF</resetValue>
+ <fields>
+ <field>
+ <name>S0POWER</name>
+ <description>Keep RAM section S0 of RAM0 on or off in System ON mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1POWER</name>
+ <description>Keep RAM section S1 of RAM0 on or off in System ON mode</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S0RETENTION</name>
+ <description>Keep retention on RAM section S0 when RAM section is switched off</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1RETENTION</name>
+ <description>Keep retention on RAM section S1 when RAM section is switched off</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>CLOCK</name>
+ <description>Clock control</description>
+ <groupName>CLOCK</groupName>
+ <baseAddress>0x40000000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>BPROT</alternatePeripheral>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>POWER_CLOCK</name>
+ <value>0</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_HFCLKSTART</name>
+ <description>Start HFCLK crystal oscillator</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_HFCLKSTOP</name>
+ <description>Stop HFCLK crystal oscillator</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_LFCLKSTART</name>
+ <description>Start LFCLK source</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_LFCLKSTOP</name>
+ <description>Stop LFCLK source</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CAL</name>
+ <description>Start calibration of LFRC oscillator</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CTSTART</name>
+ <description>Start calibration timer</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CTSTOP</name>
+ <description>Stop calibration timer</description>
+ <addressOffset>0x018</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_HFCLKSTARTED</name>
+ <description>HFCLK oscillator started</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_LFCLKSTARTED</name>
+ <description>LFCLK started</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_DONE</name>
+ <description>Calibration of LFCLK RC oscillator complete event</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_CTTO</name>
+ <description>Calibration timer timeout</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HFCLKSTARTED</name>
+ <description>Write '1' to Enable interrupt for HFCLKSTARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LFCLKSTARTED</name>
+ <description>Write '1' to Enable interrupt for LFCLKSTARTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Write '1' to Enable interrupt for DONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CTTO</name>
+ <description>Write '1' to Enable interrupt for CTTO event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HFCLKSTARTED</name>
+ <description>Write '1' to Disable interrupt for HFCLKSTARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LFCLKSTARTED</name>
+ <description>Write '1' to Disable interrupt for LFCLKSTARTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Write '1' to Disable interrupt for DONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CTTO</name>
+ <description>Write '1' to Disable interrupt for CTTO event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HFCLKRUN</name>
+ <description>Status indicating that HFCLKSTART task has been triggered</description>
+ <addressOffset>0x408</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>HFCLKSTART task triggered or not</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotTriggered</name>
+ <description>Task not triggered</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Triggered</name>
+ <description>Task triggered</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HFCLKSTAT</name>
+ <description>HFCLK status</description>
+ <addressOffset>0x40C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Source of HFCLK</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>64 MHz internal oscillator (HFINT)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>64 MHz crystal oscillator (HFXO)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STATE</name>
+ <description>HFCLK state</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotRunning</name>
+ <description>HFCLK not running</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Running</name>
+ <description>HFCLK running</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFCLKRUN</name>
+ <description>Status indicating that LFCLKSTART task has been triggered</description>
+ <addressOffset>0x414</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>LFCLKSTART task triggered or not</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotTriggered</name>
+ <description>Task not triggered</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Triggered</name>
+ <description>Task triggered</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFCLKSTAT</name>
+ <description>LFCLK status</description>
+ <addressOffset>0x418</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Source of LFCLK</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>32.768 kHz RC oscillator</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>32.768 kHz crystal oscillator</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Synth</name>
+ <description>32.768 kHz synthesized from HFCLK</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STATE</name>
+ <description>LFCLK state</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotRunning</name>
+ <description>LFCLK not running</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Running</name>
+ <description>LFCLK running</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFCLKSRCCOPY</name>
+ <description>Copy of LFCLKSRC register, set when LFCLKSTART task was triggered</description>
+ <addressOffset>0x41C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Clock source</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>32.768 kHz RC oscillator</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>32.768 kHz crystal oscillator</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Synth</name>
+ <description>32.768 kHz synthesized from HFCLK</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFCLKSRC</name>
+ <description>Clock source for the LFCLK</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Clock source</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>32.768 kHz RC oscillator</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>32.768 kHz crystal oscillator</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Synth</name>
+ <description>32.768 kHz synthesized from HFCLK</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BYPASS</name>
+ <description>Enable or disable bypass of LFCLK crystal oscillator with external clock source</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable (use with Xtal or low-swing external source)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable (use with rail-to-rail external source)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EXTERNAL</name>
+ <description>Enable or disable external source for LFCLK</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable external source (use with Xtal)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable use of external source instead of Xtal (SRC needs to be set to Xtal)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CTIV</name>
+ <description>Calibration timer interval</description>
+ <addressOffset>0x538</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTIV</name>
+ <description>Calibration timer interval in multiple of 0.25 seconds. Range: 0.25 seconds to 31.75 seconds.</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TRACECONFIG</name>
+ <description>Clocking options for the Trace Port debug interface</description>
+ <addressOffset>0x55C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>TRACEPORTSPEED</name>
+ <description>Speed of Trace Port clock. Note that the TRACECLK pin will output this clock divided by two.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>32MHz</name>
+ <description>32 MHz Trace Port clock (TRACECLK = 16 MHz)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>16MHz</name>
+ <description>16 MHz Trace Port clock (TRACECLK = 8 MHz)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>8MHz</name>
+ <description>8 MHz Trace Port clock (TRACECLK = 4 MHz)</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>4MHz</name>
+ <description>4 MHz Trace Port clock (TRACECLK = 2 MHz)</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRACEMUX</name>
+ <description>Pin multiplexing of trace signals.</description>
+ <lsb>16</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>GPIO</name>
+ <description>GPIOs multiplexed onto all trace-pins</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Serial</name>
+ <description>SWO multiplexed onto P0.18, GPIO multiplexed onto other trace pins</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Parallel</name>
+ <description>TRACECLK and TRACEDATA multiplexed onto P0.20, P0.18, P0.16, P0.15 and P0.14.</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>RADIO</name>
+ <description>2.4 GHz Radio</description>
+ <groupName>RADIO</groupName>
+ <baseAddress>0x40001000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>RADIO</name>
+ <value>1</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_TXEN</name>
+ <description>Enable RADIO in TX mode</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RXEN</name>
+ <description>Enable RADIO in RX mode</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start RADIO</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop RADIO</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_DISABLE</name>
+ <description>Disable RADIO</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RSSISTART</name>
+ <description>Start the RSSI and take one single sample of the receive signal strength.</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RSSISTOP</name>
+ <description>Stop the RSSI measurement</description>
+ <addressOffset>0x018</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_BCSTART</name>
+ <description>Start the bit counter</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_BCSTOP</name>
+ <description>Stop the bit counter</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>RADIO has ramped up and is ready to be started</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ADDRESS</name>
+ <description>Address sent or received</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_PAYLOAD</name>
+ <description>Packet payload sent or received</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>Packet sent or received</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_DISABLED</name>
+ <description>RADIO has been disabled</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_DEVMATCH</name>
+ <description>A device address match occurred on the last received packet</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_DEVMISS</name>
+ <description>No device address match occurred on the last received packet</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RSSIEND</name>
+ <description>Sampling of receive signal strength complete.</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_BCMATCH</name>
+ <description>Bit counter reached bit count value.</description>
+ <addressOffset>0x128</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_CRCOK</name>
+ <description>Packet received with CRC ok</description>
+ <addressOffset>0x130</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_CRCERROR</name>
+ <description>Packet received with CRC error</description>
+ <addressOffset>0x134</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY_START</name>
+ <description>Shortcut between READY event and START task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END_DISABLE</name>
+ <description>Shortcut between END event and DISABLE task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED_TXEN</name>
+ <description>Shortcut between DISABLED event and TXEN task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED_RXEN</name>
+ <description>Shortcut between DISABLED event and RXEN task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS_RSSISTART</name>
+ <description>Shortcut between ADDRESS event and RSSISTART task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END_START</name>
+ <description>Shortcut between END event and START task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS_BCSTART</name>
+ <description>Shortcut between ADDRESS event and BCSTART task</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED_RSSISTOP</name>
+ <description>Shortcut between DISABLED event and RSSISTOP task</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Enable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS</name>
+ <description>Write '1' to Enable interrupt for ADDRESS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PAYLOAD</name>
+ <description>Write '1' to Enable interrupt for PAYLOAD event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Enable interrupt for END event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED</name>
+ <description>Write '1' to Enable interrupt for DISABLED event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMATCH</name>
+ <description>Write '1' to Enable interrupt for DEVMATCH event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMISS</name>
+ <description>Write '1' to Enable interrupt for DEVMISS event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RSSIEND</name>
+ <description>Write '1' to Enable interrupt for RSSIEND event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BCMATCH</name>
+ <description>Write '1' to Enable interrupt for BCMATCH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCOK</name>
+ <description>Write '1' to Enable interrupt for CRCOK event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCERROR</name>
+ <description>Write '1' to Enable interrupt for CRCERROR event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS</name>
+ <description>Write '1' to Disable interrupt for ADDRESS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PAYLOAD</name>
+ <description>Write '1' to Disable interrupt for PAYLOAD event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Disable interrupt for END event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED</name>
+ <description>Write '1' to Disable interrupt for DISABLED event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMATCH</name>
+ <description>Write '1' to Disable interrupt for DEVMATCH event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMISS</name>
+ <description>Write '1' to Disable interrupt for DEVMISS event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RSSIEND</name>
+ <description>Write '1' to Disable interrupt for RSSIEND event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BCMATCH</name>
+ <description>Write '1' to Disable interrupt for BCMATCH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCOK</name>
+ <description>Write '1' to Disable interrupt for CRCOK event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCERROR</name>
+ <description>Write '1' to Disable interrupt for CRCERROR event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCSTATUS</name>
+ <description>CRC status</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>CRCSTATUS</name>
+ <description>CRC status of packet received</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>CRCError</name>
+ <description>Packet received with CRC error</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CRCOk</name>
+ <description>Packet received with CRC ok</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXMATCH</name>
+ <description>Received address</description>
+ <addressOffset>0x408</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RXMATCH</name>
+ <description>Received address</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXCRC</name>
+ <description>CRC field of previously received packet</description>
+ <addressOffset>0x40C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RXCRC</name>
+ <description>CRC field of previously received packet</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DAI</name>
+ <description>Device address match index</description>
+ <addressOffset>0x410</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>DAI</name>
+ <description>Device address match index</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PACKETPTR</name>
+ <description>Packet pointer</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PACKETPTR</name>
+ <description>Packet pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FREQUENCY</name>
+ <description>Frequency</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000002</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>Radio channel frequency</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ <field>
+ <name>MAP</name>
+ <description>Channel map selection.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>Channel map between 2400 MHZ .. 2500 MHz</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Channel map between 2360 MHZ .. 2460 MHz</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXPOWER</name>
+ <description>Output power</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TXPOWER</name>
+ <description>RADIO output power.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Pos4dBm</name>
+ <description>+4 dBm</description>
+ <value>0x04</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pos3dBm</name>
+ <description>+3 dBm</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>0dBm</name>
+ <description>0 dBm</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg4dBm</name>
+ <description>-4 dBm</description>
+ <value>0xFC</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg8dBm</name>
+ <description>-8 dBm</description>
+ <value>0xF8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg12dBm</name>
+ <description>-12 dBm</description>
+ <value>0xF4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg16dBm</name>
+ <description>-16 dBm</description>
+ <value>0xF0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg20dBm</name>
+ <description>-20 dBm</description>
+ <value>0xEC</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg30dBm</name>
+ <description>Deprecated enumerator - -40 dBm</description>
+ <value>0xD8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg40dBm</name>
+ <description>-40 dBm</description>
+ <value>0xD8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Data rate and modulation</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Radio data rate and modulation setting. The radio supports Frequency-shift Keying (FSK) modulation.</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Nrf_1Mbit</name>
+ <description>1 Mbit/s Nordic proprietary radio mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Nrf_2Mbit</name>
+ <description>2 Mbit/s Nordic proprietary radio mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Nrf_250Kbit</name>
+ <description>Deprecated enumerator - 250 kbit/s Nordic proprietary radio mode</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ble_1Mbit</name>
+ <description>1 Mbit/s Bluetooth Low Energy</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ble_2Mbit</name>
+ <description>2 Mbit/s Bluetooth Low Energy</description>
+ <value>4</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PCNF0</name>
+ <description>Packet configuration register 0</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LFLEN</name>
+ <description>Length on air of LENGTH field in number of bits.</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ <field>
+ <name>S0LEN</name>
+ <description>Length on air of S0 field in number of bytes.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ </field>
+ <field>
+ <name>S1LEN</name>
+ <description>Length on air of S1 field in number of bits.</description>
+ <lsb>16</lsb>
+ <msb>19</msb>
+ </field>
+ <field>
+ <name>S1INCL</name>
+ <description>Include or exclude S1 field in RAM</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Automatic</name>
+ <description>Include S1 field in RAM only if S1LEN &amp;gt; 0</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Always include S1 field in RAM independent of S1LEN</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PLEN</name>
+ <description>Length of preamble on air. Decision point: TASKS_START task</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>8bit</name>
+ <description>8-bit preamble</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>16bit</name>
+ <description>16-bit preamble</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PCNF1</name>
+ <description>Packet configuration register 1</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXLEN</name>
+ <description>Maximum length of packet payload. If the packet payload is larger than MAXLEN, the radio will truncate the payload to MAXLEN.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>STATLEN</name>
+ <description>Static length in number of bytes</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>BALEN</name>
+ <description>Base address length in number of bytes</description>
+ <lsb>16</lsb>
+ <msb>18</msb>
+ </field>
+ <field>
+ <name>ENDIAN</name>
+ <description>On air endianness of packet, this applies to the S0, LENGTH, S1 and the PAYLOAD fields.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Little</name>
+ <description>Least Significant bit on air first</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Big</name>
+ <description>Most significant bit on air first</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WHITEEN</name>
+ <description>Enable or disable packet whitening</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BASE0</name>
+ <description>Base address 0</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BASE0</name>
+ <description>Base address 0</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BASE1</name>
+ <description>Base address 1</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BASE1</name>
+ <description>Base address 1</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PREFIX0</name>
+ <description>Prefixes bytes for logical addresses 0-3</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>AP0</name>
+ <description>Address prefix 0.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>AP1</name>
+ <description>Address prefix 1.</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>AP2</name>
+ <description>Address prefix 2.</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>AP3</name>
+ <description>Address prefix 3.</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PREFIX1</name>
+ <description>Prefixes bytes for logical addresses 4-7</description>
+ <addressOffset>0x528</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>AP4</name>
+ <description>Address prefix 4.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>AP5</name>
+ <description>Address prefix 5.</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>AP6</name>
+ <description>Address prefix 6.</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>AP7</name>
+ <description>Address prefix 7.</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXADDRESS</name>
+ <description>Transmit address select</description>
+ <addressOffset>0x52C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TXADDRESS</name>
+ <description>Transmit address select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXADDRESSES</name>
+ <description>Receive address select</description>
+ <addressOffset>0x530</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDR0</name>
+ <description>Enable or disable reception on logical address 0.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR1</name>
+ <description>Enable or disable reception on logical address 1.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR2</name>
+ <description>Enable or disable reception on logical address 2.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR3</name>
+ <description>Enable or disable reception on logical address 3.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR4</name>
+ <description>Enable or disable reception on logical address 4.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR5</name>
+ <description>Enable or disable reception on logical address 5.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR6</name>
+ <description>Enable or disable reception on logical address 6.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR7</name>
+ <description>Enable or disable reception on logical address 7.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCCNF</name>
+ <description>CRC configuration</description>
+ <addressOffset>0x534</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LEN</name>
+ <description>CRC length in number of bytes.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>CRC length is zero and CRC calculation is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>One</name>
+ <description>CRC length is one byte and CRC calculation is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Two</name>
+ <description>CRC length is two bytes and CRC calculation is enabled</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Three</name>
+ <description>CRC length is three bytes and CRC calculation is enabled</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SKIPADDR</name>
+ <description>Include or exclude packet address field out of CRC calculation.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>CRC calculation includes address field</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Skip</name>
+ <description>CRC calculation does not include address field. The CRC calculation will start at the first byte after the address.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCPOLY</name>
+ <description>CRC polynomial</description>
+ <addressOffset>0x538</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CRCPOLY</name>
+ <description>CRC polynomial</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCINIT</name>
+ <description>CRC initial value</description>
+ <addressOffset>0x53C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CRCINIT</name>
+ <description>CRC initial value</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>UNUSED0</name>
+ <description>Unspecified</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>TIFS</name>
+ <description>Inter Frame Spacing in us</description>
+ <addressOffset>0x544</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TIFS</name>
+ <description>Inter Frame Spacing in us</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RSSISAMPLE</name>
+ <description>RSSI sample</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RSSISAMPLE</name>
+ <description>RSSI sample</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATE</name>
+ <description>Current radio state</description>
+ <addressOffset>0x550</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATE</name>
+ <description>Current radio state</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>RADIO is in the Disabled state</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RxRu</name>
+ <description>RADIO is in the RXRU state</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RxIdle</name>
+ <description>RADIO is in the RXIDLE state</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Rx</name>
+ <description>RADIO is in the RX state</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RxDisable</name>
+ <description>RADIO is in the RXDISABLED state</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>TxRu</name>
+ <description>RADIO is in the TXRU state</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>TxIdle</name>
+ <description>RADIO is in the TXIDLE state</description>
+ <value>10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Tx</name>
+ <description>RADIO is in the TX state</description>
+ <value>11</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>TxDisable</name>
+ <description>RADIO is in the TXDISABLED state</description>
+ <value>12</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DATAWHITEIV</name>
+ <description>Data whitening initial value</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000040</resetValue>
+ <fields>
+ <field>
+ <name>DATAWHITEIV</name>
+ <description>Data whitening initial value. Bit 6 is hard-wired to '1', writing '0' to it has no effect, and it will always be read back and used by the device as '1'.</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BCC</name>
+ <description>Bit counter compare</description>
+ <addressOffset>0x560</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BCC</name>
+ <description>Bit counter compare</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>DAB[%s]</name>
+ <description>Description collection[0]: Device address base segment 0</description>
+ <addressOffset>0x600</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DAB</name>
+ <description>Device address base segment 0</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>DAP[%s]</name>
+ <description>Description collection[0]: Device address prefix 0</description>
+ <addressOffset>0x620</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DAP</name>
+ <description>Device address prefix 0</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DACNF</name>
+ <description>Device address match configuration</description>
+ <addressOffset>0x640</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENA0</name>
+ <description>Enable or disable device address matching using device address 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA1</name>
+ <description>Enable or disable device address matching using device address 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA2</name>
+ <description>Enable or disable device address matching using device address 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA3</name>
+ <description>Enable or disable device address matching using device address 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA4</name>
+ <description>Enable or disable device address matching using device address 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA5</name>
+ <description>Enable or disable device address matching using device address 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA6</name>
+ <description>Enable or disable device address matching using device address 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA7</name>
+ <description>Enable or disable device address matching using device address 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXADD0</name>
+ <description>TxAdd for device address 0</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ </field>
+ <field>
+ <name>TXADD1</name>
+ <description>TxAdd for device address 1</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ </field>
+ <field>
+ <name>TXADD2</name>
+ <description>TxAdd for device address 2</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ </field>
+ <field>
+ <name>TXADD3</name>
+ <description>TxAdd for device address 3</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ </field>
+ <field>
+ <name>TXADD4</name>
+ <description>TxAdd for device address 4</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ </field>
+ <field>
+ <name>TXADD5</name>
+ <description>TxAdd for device address 5</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ </field>
+ <field>
+ <name>TXADD6</name>
+ <description>TxAdd for device address 6</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ </field>
+ <field>
+ <name>TXADD7</name>
+ <description>TxAdd for device address 7</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODECNF0</name>
+ <description>Radio mode configuration register 0</description>
+ <addressOffset>0x650</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000200</resetValue>
+ <fields>
+ <field>
+ <name>RU</name>
+ <description>Radio ramp-up time</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>Default ramp-up time (tRXEN), compatible with firmware written for nRF51</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Fast</name>
+ <description>Fast ramp-up (tRXEN,FAST), see electrical specification for more information</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DTX</name>
+ <description>Default TX value</description>
+ <lsb>8</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>B1</name>
+ <description>Transmit '1'</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>B0</name>
+ <description>Transmit '0'</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Center</name>
+ <description>Transmit center frequency</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control</description>
+ <addressOffset>0xFFC</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control. The peripheral and its registers will be reset to its initial state by switching the peripheral off and then back on again.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Peripheral is powered off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Peripheral is powered on</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>UARTE0</name>
+ <description>UART with EasyDMA</description>
+ <groupName>UARTE</groupName>
+ <baseAddress>0x40002000</baseAddress>
+ <size>32</size>
+ <headerStructName>UARTE</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>UARTE0_UART0</name>
+ <value>2</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_STARTRX</name>
+ <description>Start UART receiver</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOPRX</name>
+ <description>Stop UART receiver</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start UART transmitter</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOPTX</name>
+ <description>Stop UART transmitter</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_FLUSHRX</name>
+ <description>Flush RX FIFO into RX buffer</description>
+ <addressOffset>0x02C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_CTS</name>
+ <description>CTS is activated (set low). Clear To Send.</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_NCTS</name>
+ <description>CTS is deactivated (set high). Not Clear To Send.</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RXDRDY</name>
+ <description>Data received in RXD (but potentially not yet transferred to Data RAM)</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ENDRX</name>
+ <description>Receive buffer is filled up</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_TXDRDY</name>
+ <description>Data sent from TXD</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ENDTX</name>
+ <description>Last TX byte transmitted</description>
+ <addressOffset>0x120</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>Error detected</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RXTO</name>
+ <description>Receiver timeout</description>
+ <addressOffset>0x144</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RXSTARTED</name>
+ <description>UART receiver has started</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_TXSTARTED</name>
+ <description>UART transmitter has started</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_TXSTOPPED</name>
+ <description>Transmitter stopped</description>
+ <addressOffset>0x158</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDRX_STARTRX</name>
+ <description>Shortcut between ENDRX event and STARTRX task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX_STOPRX</name>
+ <description>Shortcut between ENDRX event and STOPRX task</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Enable or disable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Enable or disable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Enable or disable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Enable or disable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Enable or disable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Enable or disable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable or disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Enable or disable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Enable or disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Enable or disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTOPPED</name>
+ <description>Enable or disable interrupt for TXSTOPPED event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Write '1' to Enable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Write '1' to Enable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Write '1' to Enable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Enable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Write '1' to Enable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to Enable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Write '1' to Enable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to Enable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to Enable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTOPPED</name>
+ <description>Write '1' to Enable interrupt for TXSTOPPED event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Write '1' to Disable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Write '1' to Disable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Write '1' to Disable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Disable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Write '1' to Disable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to Disable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Write '1' to Disable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to Disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to Disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTOPPED</name>
+ <description>Write '1' to Disable interrupt for TXSTOPPED event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source</description>
+ <addressOffset>0x480</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERRUN</name>
+ <description>Overrun error</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITY</name>
+ <description>Parity error</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FRAMING</name>
+ <description>Framing error occurred</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BREAK</name>
+ <description>Break condition</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable UART</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable UARTE</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable UARTE</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable UARTE</description>
+ <value>8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>UARTE_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>RTS</name>
+ <description>Pin select for RTS signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>Pin select for TXD signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CTS</name>
+ <description>Pin select for CTS signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXD</name>
+ <description>Pin select for RXD signal</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>BAUDRATE</name>
+ <description>Baud rate. Accuracy depends on the HFCLK source selected.</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>BAUDRATE</name>
+ <description>Baud rate</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Baud1200</name>
+ <description>1200 baud (actual rate: 1205)</description>
+ <value>0x0004F000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud2400</name>
+ <description>2400 baud (actual rate: 2396)</description>
+ <value>0x0009D000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud4800</name>
+ <description>4800 baud (actual rate: 4808)</description>
+ <value>0x0013B000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud9600</name>
+ <description>9600 baud (actual rate: 9598)</description>
+ <value>0x00275000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud14400</name>
+ <description>14400 baud (actual rate: 14401)</description>
+ <value>0x003AF000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud19200</name>
+ <description>19200 baud (actual rate: 19208)</description>
+ <value>0x004EA000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud28800</name>
+ <description>28800 baud (actual rate: 28777)</description>
+ <value>0x0075C000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud31250</name>
+ <description>31250 baud</description>
+ <value>0x00800000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud38400</name>
+ <description>38400 baud (actual rate: 38369)</description>
+ <value>0x009D0000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud56000</name>
+ <description>56000 baud (actual rate: 55944)</description>
+ <value>0x00E50000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud57600</name>
+ <description>57600 baud (actual rate: 57554)</description>
+ <value>0x00EB0000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud76800</name>
+ <description>76800 baud (actual rate: 76923)</description>
+ <value>0x013A9000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud115200</name>
+ <description>115200 baud (actual rate: 115108)</description>
+ <value>0x01D60000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud230400</name>
+ <description>230400 baud (actual rate: 231884)</description>
+ <value>0x03B00000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud250000</name>
+ <description>250000 baud</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud460800</name>
+ <description>460800 baud (actual rate: 457143)</description>
+ <value>0x07400000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud921600</name>
+ <description>921600 baud (actual rate: 941176)</description>
+ <value>0x0F000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud1M</name>
+ <description>1Mega baud</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>RXD</name>
+ <description>RXD EasyDMA channel</description>
+ <headerStructName>UARTE_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>TXD EasyDMA channel</description>
+ <headerStructName>UARTE_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration of parity and hardware flow control</description>
+ <addressOffset>0x56C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HWFC</name>
+ <description>Hardware flow control</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITY</name>
+ <description>Parity</description>
+ <lsb>1</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude parity bit</description>
+ <value>0x0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include parity bit</description>
+ <value>0x7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>UART0</name>
+ <description>Universal Asynchronous Receiver/Transmitter</description>
+ <groupName>UART</groupName>
+ <baseAddress>0x40002000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>UARTE0</alternatePeripheral>
+ <headerStructName>UART</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>UARTE0_UART0</name>
+ <value>2</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_STARTRX</name>
+ <description>Start UART receiver</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOPRX</name>
+ <description>Stop UART receiver</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start UART transmitter</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOPTX</name>
+ <description>Stop UART transmitter</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend UART</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_CTS</name>
+ <description>CTS is activated (set low). Clear To Send.</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_NCTS</name>
+ <description>CTS is deactivated (set high). Not Clear To Send.</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RXDRDY</name>
+ <description>Data received in RXD</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_TXDRDY</name>
+ <description>Data sent from TXD</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>Error detected</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RXTO</name>
+ <description>Receiver timeout</description>
+ <addressOffset>0x144</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS_STARTRX</name>
+ <description>Shortcut between CTS event and STARTRX task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS_STOPRX</name>
+ <description>Shortcut between NCTS event and STOPRX task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Write '1' to Enable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Write '1' to Enable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Write '1' to Enable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Write '1' to Enable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Write '1' to Enable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Write '1' to Disable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Write '1' to Disable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Write '1' to Disable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Write '1' to Disable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Write '1' to Disable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source</description>
+ <addressOffset>0x480</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERRUN</name>
+ <description>Overrun error</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITY</name>
+ <description>Parity error</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FRAMING</name>
+ <description>Framing error occurred</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BREAK</name>
+ <description>Break condition</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable UART</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable UART</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable UART</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable UART</description>
+ <value>4</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSELRTS</name>
+ <description>Pin select for RTS</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PSELRTS</name>
+ <description>Pin number configuration for UART RTS signal</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSELTXD</name>
+ <description>Pin select for TXD</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PSELTXD</name>
+ <description>Pin number configuration for UART TXD signal</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSELCTS</name>
+ <description>Pin select for CTS</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PSELCTS</name>
+ <description>Pin number configuration for UART CTS signal</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSELRXD</name>
+ <description>Pin select for RXD</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PSELRXD</name>
+ <description>Pin number configuration for UART RXD signal</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXD</name>
+ <description>RXD register</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <readAction>modifyExternal</readAction>
+ <fields>
+ <field>
+ <name>RXD</name>
+ <description>RX data received in previous transfers, double buffered</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>TXD register</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TXD</name>
+ <description>TX data to be transferred</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BAUDRATE</name>
+ <description>Baud rate</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>BAUDRATE</name>
+ <description>Baud rate</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Baud1200</name>
+ <description>1200 baud (actual rate: 1205)</description>
+ <value>0x0004F000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud2400</name>
+ <description>2400 baud (actual rate: 2396)</description>
+ <value>0x0009D000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud4800</name>
+ <description>4800 baud (actual rate: 4808)</description>
+ <value>0x0013B000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud9600</name>
+ <description>9600 baud (actual rate: 9598)</description>
+ <value>0x00275000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud14400</name>
+ <description>14400 baud (actual rate: 14414)</description>
+ <value>0x003B0000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud19200</name>
+ <description>19200 baud (actual rate: 19208)</description>
+ <value>0x004EA000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud28800</name>
+ <description>28800 baud (actual rate: 28829)</description>
+ <value>0x0075F000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud31250</name>
+ <description>31250 baud</description>
+ <value>0x00800000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud38400</name>
+ <description>38400 baud (actual rate: 38462)</description>
+ <value>0x009D5000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud56000</name>
+ <description>56000 baud (actual rate: 55944)</description>
+ <value>0x00E50000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud57600</name>
+ <description>57600 baud (actual rate: 57762)</description>
+ <value>0x00EBF000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud76800</name>
+ <description>76800 baud (actual rate: 76923)</description>
+ <value>0x013A9000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud115200</name>
+ <description>115200 baud (actual rate: 115942)</description>
+ <value>0x01D7E000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud230400</name>
+ <description>230400 baud (actual rate: 231884)</description>
+ <value>0x03AFB000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud250000</name>
+ <description>250000 baud</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud460800</name>
+ <description>460800 baud (actual rate: 470588)</description>
+ <value>0x075F7000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud921600</name>
+ <description>921600 baud (actual rate: 941176)</description>
+ <value>0x0EBED000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud1M</name>
+ <description>1Mega baud</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration of parity and hardware flow control</description>
+ <addressOffset>0x56C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HWFC</name>
+ <description>Hardware flow control</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITY</name>
+ <description>Parity</description>
+ <lsb>1</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude parity bit</description>
+ <value>0x0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include parity bit</description>
+ <value>0x7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SPIM0</name>
+ <description>Serial Peripheral Interface Master with EasyDMA 0</description>
+ <groupName>SPIM</groupName>
+ <baseAddress>0x40003000</baseAddress>
+ <size>32</size>
+ <headerStructName>SPIM</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start SPI transaction</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop SPI transaction</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend SPI transaction</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RESUME</name>
+ <description>Resume SPI transaction</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>SPI transaction has stopped</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ENDRX</name>
+ <description>End of RXD buffer reached</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>End of RXD buffer and TXD buffer reached</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ENDTX</name>
+ <description>End of TXD buffer reached</description>
+ <addressOffset>0x120</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_STARTED</name>
+ <description>Transaction started</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END_START</name>
+ <description>Shortcut between END event and START task</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Enable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Enable interrupt for END event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to Enable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Enable interrupt for STARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Disable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Disable interrupt for END event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to Disable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Disable interrupt for STARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable SPIM</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable SPIM</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable SPIM</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable SPIM</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIM_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCK</name>
+ <description>Pin select for SCK</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MOSI</name>
+ <description>Pin select for MOSI signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MISO</name>
+ <description>Pin select for MISO signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>FREQUENCY</name>
+ <description>SPI frequency. Accuracy depends on the HFCLK source selected.</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>SPI master data rate</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K125</name>
+ <description>125 kbps</description>
+ <value>0x02000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K250</name>
+ <description>250 kbps</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K500</name>
+ <description>500 kbps</description>
+ <value>0x08000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M1</name>
+ <description>1 Mbps</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M2</name>
+ <description>2 Mbps</description>
+ <value>0x20000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M4</name>
+ <description>4 Mbps</description>
+ <value>0x40000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M8</name>
+ <description>8 Mbps</description>
+ <value>0x80000000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>RXD</name>
+ <description>RXD EasyDMA channel</description>
+ <headerStructName>SPIM_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIST</name>
+ <description>EasyDMA list type</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIST</name>
+ <description>List type</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable EasyDMA list</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ArrayList</name>
+ <description>Use array list</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>TXD EasyDMA channel</description>
+ <headerStructName>SPIM_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIST</name>
+ <description>EasyDMA list type</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIST</name>
+ <description>List type</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable EasyDMA list</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ArrayList</name>
+ <description>Use array list</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORDER</name>
+ <description>Bit order</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MsbFirst</name>
+ <description>Most significant bit shifted out first</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LsbFirst</name>
+ <description>Least significant bit shifted out first</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPHA</name>
+ <description>Serial clock (SCK) phase</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Leading</name>
+ <description>Sample on leading edge of clock, shift serial data on trailing edge</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Trailing</name>
+ <description>Sample on trailing edge of clock, shift serial data on leading edge</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPOL</name>
+ <description>Serial clock (SCK) polarity</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Active high</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Active low</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ORC</name>
+ <description>Over-read character. Character clocked out in case and over-read of the TXD buffer.</description>
+ <addressOffset>0x5C0</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORC</name>
+ <description>Over-read character. Character clocked out in case and over-read of the TXD buffer.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SPIS0</name>
+ <description>SPI Slave 0</description>
+ <groupName>SPIS</groupName>
+ <baseAddress>0x40003000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM0</alternatePeripheral>
+ <headerStructName>SPIS</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_ACQUIRE</name>
+ <description>Acquire SPI semaphore</description>
+ <addressOffset>0x024</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RELEASE</name>
+ <description>Release SPI semaphore, enabling the SPI slave to acquire it</description>
+ <addressOffset>0x028</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>Granted transaction completed</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ENDRX</name>
+ <description>End of RXD buffer reached</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ACQUIRED</name>
+ <description>Semaphore acquired</description>
+ <addressOffset>0x128</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END_ACQUIRE</name>
+ <description>Shortcut between END event and ACQUIRE task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Enable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Enable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACQUIRED</name>
+ <description>Write '1' to Enable interrupt for ACQUIRED event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Disable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Disable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACQUIRED</name>
+ <description>Write '1' to Disable interrupt for ACQUIRED event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SEMSTAT</name>
+ <description>Semaphore status register</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>SEMSTAT</name>
+ <description>Semaphore status</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Free</name>
+ <description>Semaphore is free</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CPU</name>
+ <description>Semaphore is assigned to CPU</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SPIS</name>
+ <description>Semaphore is assigned to SPI slave</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CPUPending</name>
+ <description>Semaphore is assigned to SPI but a handover to the CPU is pending</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATUS</name>
+ <description>Status from last transaction</description>
+ <addressOffset>0x440</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>OVERREAD</name>
+ <description>TX buffer over-read detected, and prevented</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: clear error on writing '1'</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVERFLOW</name>
+ <description>RX buffer overflow detected, and prevented</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: clear error on writing '1'</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable SPI slave</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable SPI slave</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable SPI slave</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable SPI slave</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIS_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCK</name>
+ <description>Pin select for SCK</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MISO</name>
+ <description>Pin select for MISO signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MOSI</name>
+ <description>Pin select for MOSI signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CSN</name>
+ <description>Pin select for CSN signal</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>RXD</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIS_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>RXD data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>RXD data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes received in last granted transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes received in the last granted transaction</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIS_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>TXD data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>TXD data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transmitted in last granted transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transmitted in last granted transaction</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORDER</name>
+ <description>Bit order</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MsbFirst</name>
+ <description>Most significant bit shifted out first</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LsbFirst</name>
+ <description>Least significant bit shifted out first</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPHA</name>
+ <description>Serial clock (SCK) phase</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Leading</name>
+ <description>Sample on leading edge of clock, shift serial data on trailing edge</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Trailing</name>
+ <description>Sample on trailing edge of clock, shift serial data on leading edge</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPOL</name>
+ <description>Serial clock (SCK) polarity</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Active high</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Active low</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DEF</name>
+ <description>Default character. Character clocked out in case of an ignored transaction.</description>
+ <addressOffset>0x55C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DEF</name>
+ <description>Default character. Character clocked out in case of an ignored transaction.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ORC</name>
+ <description>Over-read character</description>
+ <addressOffset>0x5C0</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORC</name>
+ <description>Over-read character. Character clocked out after an over-read of the transmit buffer.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TWIM0</name>
+ <description>I2C compatible Two-Wire Master Interface with EasyDMA 0</description>
+ <groupName>TWIM</groupName>
+ <baseAddress>0x40003000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM0</alternatePeripheral>
+ <headerStructName>TWIM</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_STARTRX</name>
+ <description>Start TWI receive sequence</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start TWI transmit sequence</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop TWI transaction. Must be issued while the TWI master is not suspended.</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend TWI transaction</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RESUME</name>
+ <description>Resume TWI transaction</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>TWI stopped</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>TWI error</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_SUSPENDED</name>
+ <description>Last byte has been sent out after the SUSPEND task has been issued, TWI traffic is now suspended.</description>
+ <addressOffset>0x148</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RXSTARTED</name>
+ <description>Receive sequence started</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_TXSTARTED</name>
+ <description>Transmit sequence started</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_LASTRX</name>
+ <description>Byte boundary, starting to receive the last byte</description>
+ <addressOffset>0x15C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_LASTTX</name>
+ <description>Byte boundary, starting to transmit the last byte</description>
+ <addressOffset>0x160</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LASTTX_STARTRX</name>
+ <description>Shortcut between LASTTX event and STARTRX task</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX_SUSPEND</name>
+ <description>Shortcut between LASTTX event and SUSPEND task</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX_STOP</name>
+ <description>Shortcut between LASTTX event and STOP task</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX_STARTTX</name>
+ <description>Shortcut between LASTRX event and STARTTX task</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX_STOP</name>
+ <description>Shortcut between LASTRX event and STOP task</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable or disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Enable or disable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Enable or disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Enable or disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX</name>
+ <description>Enable or disable interrupt for LASTRX event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX</name>
+ <description>Enable or disable interrupt for LASTTX event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Write '1' to Enable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to Enable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to Enable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX</name>
+ <description>Write '1' to Enable interrupt for LASTRX event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX</name>
+ <description>Write '1' to Enable interrupt for LASTTX event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Write '1' to Disable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to Disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to Disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX</name>
+ <description>Write '1' to Disable interrupt for LASTRX event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX</name>
+ <description>Write '1' to Disable interrupt for LASTTX event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source</description>
+ <addressOffset>0x4C4</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERRUN</name>
+ <description>Overrun error</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReceived</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Received</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ANACK</name>
+ <description>NACK received after sending the address (write '1' to clear)</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReceived</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Received</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DNACK</name>
+ <description>NACK received after sending a data byte (write '1' to clear)</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReceived</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Received</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable TWIM</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable TWIM</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable TWIM</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable TWIM</description>
+ <value>6</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>TWIM_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCL</name>
+ <description>Pin select for SCL signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SDA</name>
+ <description>Pin select for SDA signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>FREQUENCY</name>
+ <description>TWI frequency</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>TWI master clock frequency</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K100</name>
+ <description>100 kbps</description>
+ <value>0x01980000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K250</name>
+ <description>250 kbps</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K400</name>
+ <description>400 kbps</description>
+ <value>0x06400000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>RXD</name>
+ <description>RXD EasyDMA channel</description>
+ <headerStructName>TWIM_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction. In case of NACK error, includes the NACK'ed byte.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIST</name>
+ <description>EasyDMA list type</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIST</name>
+ <description>List type</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable EasyDMA list</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ArrayList</name>
+ <description>Use array list</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>TXD EasyDMA channel</description>
+ <headerStructName>TWIM_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction. In case of NACK error, includes the NACK'ed byte.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIST</name>
+ <description>EasyDMA list type</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIST</name>
+ <description>List type</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable EasyDMA list</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ArrayList</name>
+ <description>Use array list</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>ADDRESS</name>
+ <description>Address used in the TWI transfer</description>
+ <addressOffset>0x588</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDRESS</name>
+ <description>Address used in the TWI transfer</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TWIS0</name>
+ <description>I2C compatible Two-Wire Slave Interface with EasyDMA 0</description>
+ <groupName>TWIS</groupName>
+ <baseAddress>0x40003000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM0</alternatePeripheral>
+ <headerStructName>TWIS</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop TWI transaction</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend TWI transaction</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RESUME</name>
+ <description>Resume TWI transaction</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_PREPARERX</name>
+ <description>Prepare the TWI slave to respond to a write command</description>
+ <addressOffset>0x030</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_PREPARETX</name>
+ <description>Prepare the TWI slave to respond to a read command</description>
+ <addressOffset>0x034</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>TWI stopped</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>TWI error</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RXSTARTED</name>
+ <description>Receive sequence started</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_TXSTARTED</name>
+ <description>Transmit sequence started</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_WRITE</name>
+ <description>Write command received</description>
+ <addressOffset>0x164</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_READ</name>
+ <description>Read command received</description>
+ <addressOffset>0x168</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>WRITE_SUSPEND</name>
+ <description>Shortcut between WRITE event and SUSPEND task</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ_SUSPEND</name>
+ <description>Shortcut between READ event and SUSPEND task</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable or disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Enable or disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Enable or disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WRITE</name>
+ <description>Enable or disable interrupt for WRITE event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ</name>
+ <description>Enable or disable interrupt for READ event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to Enable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to Enable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WRITE</name>
+ <description>Write '1' to Enable interrupt for WRITE event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ</name>
+ <description>Write '1' to Enable interrupt for READ event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to Disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to Disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WRITE</name>
+ <description>Write '1' to Disable interrupt for WRITE event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ</name>
+ <description>Write '1' to Disable interrupt for READ event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source</description>
+ <addressOffset>0x4D0</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERFLOW</name>
+ <description>RX buffer overflow detected, and prevented</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DNACK</name>
+ <description>NACK sent after receiving a data byte</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReceived</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Received</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVERREAD</name>
+ <description>TX buffer over-read detected, and prevented</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MATCH</name>
+ <description>Status register indicating which address had a match</description>
+ <addressOffset>0x4D4</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>MATCH</name>
+ <description>Which of the addresses in {ADDRESS} matched the incoming address</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable TWIS</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable TWIS</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable TWIS</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable TWIS</description>
+ <value>9</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>TWIS_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCL</name>
+ <description>Pin select for SCL signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SDA</name>
+ <description>Pin select for SDA signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>RXD</name>
+ <description>RXD EasyDMA channel</description>
+ <headerStructName>TWIS_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>RXD Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>RXD Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in RXD buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in RXD buffer</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last RXD transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last RXD transaction</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>TXD EasyDMA channel</description>
+ <headerStructName>TWIS_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>TXD Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>TXD Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in TXD buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in TXD buffer</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last TXD transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last TXD transaction</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>ADDRESS[%s]</name>
+ <description>Description collection[0]: TWI slave address 0</description>
+ <addressOffset>0x588</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDRESS</name>
+ <description>TWI slave address</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register for the address match mechanism</description>
+ <addressOffset>0x594</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>ADDRESS0</name>
+ <description>Enable or disable address matching on ADDRESS[0]</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS1</name>
+ <description>Enable or disable address matching on ADDRESS[1]</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ORC</name>
+ <description>Over-read character. Character sent out in case of an over-read of the transmit buffer.</description>
+ <addressOffset>0x5C0</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORC</name>
+ <description>Over-read character. Character sent out in case of an over-read of the transmit buffer.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SPI0</name>
+ <description>Serial Peripheral Interface 0</description>
+ <groupName>SPI</groupName>
+ <baseAddress>0x40003000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM0</alternatePeripheral>
+ <headerStructName>SPI</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>TXD byte sent and RXD byte received</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Enable interrupt for READY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Disable interrupt for READY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable SPI</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable SPI</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable SPI</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable SPI</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>SPI_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCK</name>
+ <description>Pin select for SCK</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PSELSCK</name>
+ <description>Pin number configuration for SPI SCK signal</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MOSI</name>
+ <description>Pin select for MOSI</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PSELMOSI</name>
+ <description>Pin number configuration for SPI MOSI signal</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MISO</name>
+ <description>Pin select for MISO</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PSELMISO</name>
+ <description>Pin number configuration for SPI MISO signal</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>RXD</name>
+ <description>RXD register</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <readAction>modifyExternal</readAction>
+ <fields>
+ <field>
+ <name>RXD</name>
+ <description>RX data received. Double buffered</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>TXD register</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TXD</name>
+ <description>TX data to send. Double buffered</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FREQUENCY</name>
+ <description>SPI frequency</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>SPI master data rate</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K125</name>
+ <description>125 kbps</description>
+ <value>0x02000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K250</name>
+ <description>250 kbps</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K500</name>
+ <description>500 kbps</description>
+ <value>0x08000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M1</name>
+ <description>1 Mbps</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M2</name>
+ <description>2 Mbps</description>
+ <value>0x20000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M4</name>
+ <description>4 Mbps</description>
+ <value>0x40000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M8</name>
+ <description>8 Mbps</description>
+ <value>0x80000000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORDER</name>
+ <description>Bit order</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MsbFirst</name>
+ <description>Most significant bit shifted out first</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LsbFirst</name>
+ <description>Least significant bit shifted out first</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPHA</name>
+ <description>Serial clock (SCK) phase</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Leading</name>
+ <description>Sample on leading edge of clock, shift serial data on trailing edge</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Trailing</name>
+ <description>Sample on trailing edge of clock, shift serial data on leading edge</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPOL</name>
+ <description>Serial clock (SCK) polarity</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Active high</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Active low</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TWI0</name>
+ <description>I2C compatible Two-Wire Interface 0</description>
+ <groupName>TWI</groupName>
+ <baseAddress>0x40003000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM0</alternatePeripheral>
+ <headerStructName>TWI</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_STARTRX</name>
+ <description>Start TWI receive sequence</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start TWI transmit sequence</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop TWI transaction</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend TWI transaction</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RESUME</name>
+ <description>Resume TWI transaction</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>TWI stopped</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RXDREADY</name>
+ <description>TWI RXD byte received</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_TXDSENT</name>
+ <description>TWI TXD byte sent</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>TWI error</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_BB</name>
+ <description>TWI byte boundary, generated before each byte that is sent or received</description>
+ <addressOffset>0x138</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_SUSPENDED</name>
+ <description>TWI entered the suspended state</description>
+ <addressOffset>0x148</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BB_SUSPEND</name>
+ <description>Shortcut between BB event and SUSPEND task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BB_STOP</name>
+ <description>Shortcut between BB event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDREADY</name>
+ <description>Write '1' to Enable interrupt for RXDREADY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDSENT</name>
+ <description>Write '1' to Enable interrupt for TXDSENT event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BB</name>
+ <description>Write '1' to Enable interrupt for BB event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Write '1' to Enable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDREADY</name>
+ <description>Write '1' to Disable interrupt for RXDREADY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDSENT</name>
+ <description>Write '1' to Disable interrupt for TXDSENT event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BB</name>
+ <description>Write '1' to Disable interrupt for BB event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Write '1' to Disable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source</description>
+ <addressOffset>0x4C4</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERRUN</name>
+ <description>Overrun error</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: no overrun occured</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: overrun occured</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: clear error on writing '1'</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ANACK</name>
+ <description>NACK received after sending the address (write '1' to clear)</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: clear error on writing '1'</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DNACK</name>
+ <description>NACK received after sending a data byte (write '1' to clear)</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: clear error on writing '1'</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable TWI</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable TWI</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable TWI</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable TWI</description>
+ <value>5</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSELSCL</name>
+ <description>Pin select for SCL</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PSELSCL</name>
+ <description>Pin number configuration for TWI SCL signal</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSELSDA</name>
+ <description>Pin select for SDA</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PSELSDA</name>
+ <description>Pin number configuration for TWI SDA signal</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXD</name>
+ <description>RXD register</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <readAction>modifyExternal</readAction>
+ <fields>
+ <field>
+ <name>RXD</name>
+ <description>RXD register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>TXD register</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TXD</name>
+ <description>TXD register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FREQUENCY</name>
+ <description>TWI frequency</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>TWI master clock frequency</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K100</name>
+ <description>100 kbps</description>
+ <value>0x01980000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K250</name>
+ <description>250 kbps</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K400</name>
+ <description>400 kbps (actual rate 410.256 kbps)</description>
+ <value>0x06680000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ADDRESS</name>
+ <description>Address used in the TWI transfer</description>
+ <addressOffset>0x588</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDRESS</name>
+ <description>Address used in the TWI transfer</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="SPIM0">
+ <name>SPIM1</name>
+ <description>Serial Peripheral Interface Master with EasyDMA 1</description>
+ <groupName>SPIM</groupName>
+ <baseAddress>0x40004000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SPIS0">
+ <name>SPIS1</name>
+ <description>SPI Slave 1</description>
+ <groupName>SPIS</groupName>
+ <baseAddress>0x40004000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM1</alternatePeripheral>
+ <interrupt>
+ <name>SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TWIM0">
+ <name>TWIM1</name>
+ <description>I2C compatible Two-Wire Master Interface with EasyDMA 1</description>
+ <groupName>TWIM</groupName>
+ <baseAddress>0x40004000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM1</alternatePeripheral>
+ <interrupt>
+ <name>SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TWIS0">
+ <name>TWIS1</name>
+ <description>I2C compatible Two-Wire Slave Interface with EasyDMA 1</description>
+ <groupName>TWIS</groupName>
+ <baseAddress>0x40004000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM1</alternatePeripheral>
+ <interrupt>
+ <name>SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SPI0">
+ <name>SPI1</name>
+ <description>Serial Peripheral Interface 1</description>
+ <groupName>SPI</groupName>
+ <baseAddress>0x40004000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM1</alternatePeripheral>
+ <interrupt>
+ <name>SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TWI0">
+ <name>TWI1</name>
+ <description>I2C compatible Two-Wire Interface 1</description>
+ <groupName>TWI</groupName>
+ <baseAddress>0x40004000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM1</alternatePeripheral>
+ <interrupt>
+ <name>SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>NFCT</name>
+ <description>NFC-A compatible radio</description>
+ <groupName>NFCT</groupName>
+ <baseAddress>0x40005000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>NFCT</name>
+ <value>5</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_ACTIVATE</name>
+ <description>Activate NFC peripheral for incoming and outgoing frames, change state to activated</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_DISABLE</name>
+ <description>Disable NFC peripheral</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SENSE</name>
+ <description>Enable NFC sense field mode, change state to sense mode</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start transmission of a outgoing frame, change state to transmit</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_ENABLERXDATA</name>
+ <description>Initializes the EasyDMA for receive.</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_GOIDLE</name>
+ <description>Force state machine to IDLE state</description>
+ <addressOffset>0x024</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_GOSLEEP</name>
+ <description>Force state machine to SLEEP_A state</description>
+ <addressOffset>0x028</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>The NFC peripheral is ready to receive and send frames</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_FIELDDETECTED</name>
+ <description>Remote NFC field detected</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_FIELDLOST</name>
+ <description>Remote NFC field lost</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_TXFRAMESTART</name>
+ <description>Marks the start of the first symbol of a transmitted frame</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_TXFRAMEEND</name>
+ <description>Marks the end of the last transmitted on-air symbol of a frame</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RXFRAMESTART</name>
+ <description>Marks the end of the first symbol of a received frame</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RXFRAMEEND</name>
+ <description>Received data have been checked (CRC, parity) and transferred to RAM, and EasyDMA has ended accessing the RX buffer</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>NFC error reported. The ERRORSTATUS register contains details on the source of the error.</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RXERROR</name>
+ <description>NFC RX frame error reported. The FRAMESTATUS.RX register contains details on the source of the error.</description>
+ <addressOffset>0x128</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ENDRX</name>
+ <description>RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full.</description>
+ <addressOffset>0x12C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ENDTX</name>
+ <description>Transmission of data in RAM has ended, and EasyDMA has ended accessing the TX buffer</description>
+ <addressOffset>0x130</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_AUTOCOLRESSTARTED</name>
+ <description>Auto collision resolution process has started</description>
+ <addressOffset>0x138</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_COLLISION</name>
+ <description>NFC Auto collision resolution error reported.</description>
+ <addressOffset>0x148</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_SELECTED</name>
+ <description>NFC Auto collision resolution successfully completed</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_STARTED</name>
+ <description>EasyDMA is ready to receive or send frames.</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>FIELDDETECTED_ACTIVATE</name>
+ <description>Shortcut between FIELDDETECTED event and ACTIVATE task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDLOST_SENSE</name>
+ <description>Shortcut between FIELDLOST event and SENSE task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Enable or disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDDETECTED</name>
+ <description>Enable or disable interrupt for FIELDDETECTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDLOST</name>
+ <description>Enable or disable interrupt for FIELDLOST event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMESTART</name>
+ <description>Enable or disable interrupt for TXFRAMESTART event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMEEND</name>
+ <description>Enable or disable interrupt for TXFRAMEEND event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXFRAMESTART</name>
+ <description>Enable or disable interrupt for RXFRAMESTART event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXFRAMEEND</name>
+ <description>Enable or disable interrupt for RXFRAMEEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable or disable interrupt for ERROR event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXERROR</name>
+ <description>Enable or disable interrupt for RXERROR event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Enable or disable interrupt for ENDRX event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Enable or disable interrupt for ENDTX event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>AUTOCOLRESSTARTED</name>
+ <description>Enable or disable interrupt for AUTOCOLRESSTARTED event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COLLISION</name>
+ <description>Enable or disable interrupt for COLLISION event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SELECTED</name>
+ <description>Enable or disable interrupt for SELECTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Enable or disable interrupt for STARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Enable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDDETECTED</name>
+ <description>Write '1' to Enable interrupt for FIELDDETECTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDLOST</name>
+ <description>Write '1' to Enable interrupt for FIELDLOST event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMESTART</name>
+ <description>Write '1' to Enable interrupt for TXFRAMESTART event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMEEND</name>
+ <description>Write '1' to Enable interrupt for TXFRAMEEND event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXFRAMESTART</name>
+ <description>Write '1' to Enable interrupt for RXFRAMESTART event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXFRAMEEND</name>
+ <description>Write '1' to Enable interrupt for RXFRAMEEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Enable interrupt for ERROR event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXERROR</name>
+ <description>Write '1' to Enable interrupt for RXERROR event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Enable interrupt for ENDRX event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to Enable interrupt for ENDTX event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>AUTOCOLRESSTARTED</name>
+ <description>Write '1' to Enable interrupt for AUTOCOLRESSTARTED event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COLLISION</name>
+ <description>Write '1' to Enable interrupt for COLLISION event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SELECTED</name>
+ <description>Write '1' to Enable interrupt for SELECTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Enable interrupt for STARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDDETECTED</name>
+ <description>Write '1' to Disable interrupt for FIELDDETECTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDLOST</name>
+ <description>Write '1' to Disable interrupt for FIELDLOST event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMESTART</name>
+ <description>Write '1' to Disable interrupt for TXFRAMESTART event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMEEND</name>
+ <description>Write '1' to Disable interrupt for TXFRAMEEND event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXFRAMESTART</name>
+ <description>Write '1' to Disable interrupt for RXFRAMESTART event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXFRAMEEND</name>
+ <description>Write '1' to Disable interrupt for RXFRAMEEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Disable interrupt for ERROR event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXERROR</name>
+ <description>Write '1' to Disable interrupt for RXERROR event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Disable interrupt for ENDRX event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to Disable interrupt for ENDTX event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>AUTOCOLRESSTARTED</name>
+ <description>Write '1' to Disable interrupt for AUTOCOLRESSTARTED event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COLLISION</name>
+ <description>Write '1' to Disable interrupt for COLLISION event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SELECTED</name>
+ <description>Write '1' to Disable interrupt for SELECTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Disable interrupt for STARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSTATUS</name>
+ <description>NFC Error Status register</description>
+ <addressOffset>0x404</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>FRAMEDELAYTIMEOUT</name>
+ <description>No STARTTX task triggered before expiration of the time set in FRAMEDELAYMAX</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ <field>
+ <name>NFCFIELDTOOSTRONG</name>
+ <description>Field level is too high at max load resistance</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ </field>
+ <field>
+ <name>NFCFIELDTOOWEAK</name>
+ <description>Field level is too low at min load resistance</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>FRAMESTATUS</name>
+ <description>Unspecified</description>
+ <addressOffset>0x40C</addressOffset>
+ <register>
+ <name>RX</name>
+ <description>Result of last incoming frames</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>CRCERROR</name>
+ <description>No valid End of Frame detected</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>CRCCorrect</name>
+ <description>Valid CRC detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CRCError</name>
+ <description>CRC received does not match local check</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITYSTATUS</name>
+ <description>Parity status of received frame</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ParityOK</name>
+ <description>Frame received with parity OK</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ParityError</name>
+ <description>Frame received with parity error</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVERRUN</name>
+ <description>Overrun detected</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoOverrun</name>
+ <description>No overrun detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Overrun</name>
+ <description>Overrun error</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CURRENTLOADCTRL</name>
+ <description>Current value driven to the NFC Load Control</description>
+ <addressOffset>0x430</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CURRENTLOADCTRL</name>
+ <description>Current value driven to the NFC Load Control</description>
+ <lsb>0</lsb>
+ <msb>5</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FIELDPRESENT</name>
+ <description>Indicates the presence or not of a valid field</description>
+ <addressOffset>0x43C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>FIELDPRESENT</name>
+ <description>Indicates the presence or not of a valid field. Available only in the activated state.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoField</name>
+ <description>No valid field detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>FieldPresent</name>
+ <description>Valid field detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOCKDETECT</name>
+ <description>Indicates if the low level has locked to the field</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLocked</name>
+ <description>Not locked to field</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Locked</name>
+ <description>Locked to field</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FRAMEDELAYMIN</name>
+ <description>Minimum frame delay</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000480</resetValue>
+ <fields>
+ <field>
+ <name>FRAMEDELAYMIN</name>
+ <description>Minimum frame delay in number of 13.56 MHz clocks</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FRAMEDELAYMAX</name>
+ <description>Maximum frame delay</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00001000</resetValue>
+ <fields>
+ <field>
+ <name>FRAMEDELAYMAX</name>
+ <description>Maximum frame delay in number of 13.56 MHz clocks</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FRAMEDELAYMODE</name>
+ <description>Configuration register for the Frame Delay Timer</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>FRAMEDELAYMODE</name>
+ <description>Configuration register for the Frame Delay Timer</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>FreeRun</name>
+ <description>Transmission is independent of frame timer and will start when the STARTTX task is triggered. No timeout.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Window</name>
+ <description>Frame is transmitted between FRAMEDELAYMIN and FRAMEDELAYMAX</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ExactVal</name>
+ <description>Frame is transmitted exactly at FRAMEDELAYMAX</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>WindowGrid</name>
+ <description>Frame is transmitted on a bit grid between FRAMEDELAYMIN and FRAMEDELAYMAX</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PACKETPTR</name>
+ <description>Packet pointer for TXD and RXD data storage in Data RAM</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Packet pointer for TXD and RXD data storage in Data RAM. This address is a byte aligned RAM address.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXLEN</name>
+ <description>Size of allocated for TXD and RXD data storage buffer in Data RAM</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXLEN</name>
+ <description>Size of allocated for TXD and RXD data storage buffer in Data RAM</description>
+ <lsb>0</lsb>
+ <msb>8</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>TXD</name>
+ <description>Unspecified</description>
+ <addressOffset>0x518</addressOffset>
+ <register>
+ <name>FRAMECONFIG</name>
+ <description>Configuration of outgoing frames</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000017</resetValue>
+ <fields>
+ <field>
+ <name>PARITY</name>
+ <description>Adding parity or not in the frame</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoParity</name>
+ <description>Parity is not added in TX frames</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Parity</name>
+ <description>Parity is added TX frames</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISCARDMODE</name>
+ <description>Discarding unused bits in start or at end of a Frame</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DiscardEnd</name>
+ <description>Unused bits is discarded at end of frame</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DiscardStart</name>
+ <description>Unused bits is discarded at start of frame</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SOF</name>
+ <description>Adding SoF or not in TX frames</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoSoF</name>
+ <description>Start of Frame symbol not added</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SoF</name>
+ <description>Start of Frame symbol added</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCMODETX</name>
+ <description>CRC mode for outgoing frames</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoCRCTX</name>
+ <description>CRC is not added to the frame</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CRC16TX</name>
+ <description>16 bit CRC added to the frame based on all the data read from RAM that is used in the frame</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Size of outgoing frame</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TXDATABITS</name>
+ <description>Number of bits in the last or first byte read from RAM that shall be included in the frame (excluding parity bit).</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ <field>
+ <name>TXDATABYTES</name>
+ <description>Number of complete bytes that shall be included in the frame, excluding CRC, parity and framing</description>
+ <lsb>3</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>RXD</name>
+ <description>Unspecified</description>
+ <addressOffset>0x520</addressOffset>
+ <register>
+ <name>FRAMECONFIG</name>
+ <description>Configuration of incoming frames</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000015</resetValue>
+ <fields>
+ <field>
+ <name>PARITY</name>
+ <description>Parity expected or not in RX frame</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoParity</name>
+ <description>Parity is not expected in RX frames</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Parity</name>
+ <description>Parity is expected in RX frames</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SOF</name>
+ <description>SoF expected or not in RX frames</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoSoF</name>
+ <description>Start of Frame symbol is not expected in RX frames</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SoF</name>
+ <description>Start of Frame symbol is expected in RX frames</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCMODERX</name>
+ <description>CRC mode for incoming frames</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoCRCRX</name>
+ <description>CRC is not expected in RX frames</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CRC16RX</name>
+ <description>Last 16 bits in RX frame is CRC, CRC is checked and CRCSTATUS updated</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Size of last incoming frame</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RXDATABITS</name>
+ <description>Number of bits in the last byte in the frame, if less than 8 (including CRC, but excluding parity and SoF/EoF framing).</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ <field>
+ <name>RXDATABYTES</name>
+ <description>Number of complete bytes received in the frame (including CRC, but excluding parity and SoF/EoF framing)</description>
+ <lsb>3</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>NFCID1_LAST</name>
+ <description>Last NFCID1 part (4, 7 or 10 bytes ID)</description>
+ <addressOffset>0x590</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00006363</resetValue>
+ <fields>
+ <field>
+ <name>NFCID1_Z</name>
+ <description>NFCID1 byte Z (very last byte sent)</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>NFCID1_Y</name>
+ <description>NFCID1 byte Y</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>NFCID1_X</name>
+ <description>NFCID1 byte X</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>NFCID1_W</name>
+ <description>NFCID1 byte W</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NFCID1_2ND_LAST</name>
+ <description>Second last NFCID1 part (7 or 10 bytes ID)</description>
+ <addressOffset>0x594</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>NFCID1_V</name>
+ <description>NFCID1 byte V</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>NFCID1_U</name>
+ <description>NFCID1 byte U</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>NFCID1_T</name>
+ <description>NFCID1 byte T</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NFCID1_3RD_LAST</name>
+ <description>Third last NFCID1 part (10 bytes ID)</description>
+ <addressOffset>0x598</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>NFCID1_S</name>
+ <description>NFCID1 byte S</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>NFCID1_R</name>
+ <description>NFCID1 byte R</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>NFCID1_Q</name>
+ <description>NFCID1 byte Q</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SENSRES</name>
+ <description>NFC-A SENS_RES auto-response settings</description>
+ <addressOffset>0x5A0</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>BITFRAMESDD</name>
+ <description>Bit frame SDD as defined by the b5:b1 of byte 1 in SENS_RES response in the NFC Forum, NFC Digital Protocol Technical Specification</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>SDD00000</name>
+ <description>SDD pattern 00000</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SDD00001</name>
+ <description>SDD pattern 00001</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SDD00010</name>
+ <description>SDD pattern 00010</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SDD00100</name>
+ <description>SDD pattern 00100</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SDD01000</name>
+ <description>SDD pattern 01000</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SDD10000</name>
+ <description>SDD pattern 10000</description>
+ <value>16</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RFU5</name>
+ <description>Reserved for future use. Shall be 0.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>NFCIDSIZE</name>
+ <description>NFCID1 size. This value is used by the Auto collision resolution engine.</description>
+ <lsb>6</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NFCID1Single</name>
+ <description>NFCID1 size: single (4 bytes)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NFCID1Double</name>
+ <description>NFCID1 size: double (7 bytes)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NFCID1Triple</name>
+ <description>NFCID1 size: triple (10 bytes)</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PLATFCONFIG</name>
+ <description>Tag platform configuration as defined by the b4:b1 of byte 2 in SENS_RES response in the NFC Forum, NFC Digital Protocol Technical Specification</description>
+ <lsb>8</lsb>
+ <msb>11</msb>
+ </field>
+ <field>
+ <name>RFU74</name>
+ <description>Reserved for future use. Shall be 0.</description>
+ <lsb>12</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SELRES</name>
+ <description>NFC-A SEL_RES auto-response settings</description>
+ <addressOffset>0x5A4</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RFU10</name>
+ <description>Reserved for future use. Shall be 0.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ </field>
+ <field>
+ <name>CASCADE</name>
+ <description>Cascade bit (controlled by hardware, write has no effect)</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Complete</name>
+ <description>NFCID1 complete</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NotComplete</name>
+ <description>NFCID1 not complete</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RFU43</name>
+ <description>Reserved for future use. Shall be 0.</description>
+ <lsb>3</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PROTOCOL</name>
+ <description>Protocol as defined by the b7:b6 of SEL_RES response in the NFC Forum, NFC Digital Protocol Technical Specification</description>
+ <lsb>5</lsb>
+ <msb>6</msb>
+ </field>
+ <field>
+ <name>RFU7</name>
+ <description>Reserved for future use. Shall be 0.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>GPIOTE</name>
+ <description>GPIO Tasks and Events</description>
+ <groupName>GPIOTE</groupName>
+ <baseAddress>0x40006000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>GPIOTE</name>
+ <value>6</value>
+ </interrupt>
+ <registers>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>TASKS_OUT[%s]</name>
+ <description>Description collection[0]: Task for writing to pin specified in CONFIG[0].PSEL. Action on pin is configured in CONFIG[0].POLARITY.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>TASKS_SET[%s]</name>
+ <description>Description collection[0]: Task for writing to pin specified in CONFIG[0].PSEL. Action on pin is to set it high.</description>
+ <addressOffset>0x030</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>TASKS_CLR[%s]</name>
+ <description>Description collection[0]: Task for writing to pin specified in CONFIG[0].PSEL. Action on pin is to set it low.</description>
+ <addressOffset>0x060</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>EVENTS_IN[%s]</name>
+ <description>Description collection[0]: Event generated from pin specified in CONFIG[0].PSEL</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_PORT</name>
+ <description>Event generated from multiple input GPIO pins with SENSE mechanism enabled</description>
+ <addressOffset>0x17C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>IN0</name>
+ <description>Write '1' to Enable interrupt for IN[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN1</name>
+ <description>Write '1' to Enable interrupt for IN[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN2</name>
+ <description>Write '1' to Enable interrupt for IN[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN3</name>
+ <description>Write '1' to Enable interrupt for IN[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN4</name>
+ <description>Write '1' to Enable interrupt for IN[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN5</name>
+ <description>Write '1' to Enable interrupt for IN[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN6</name>
+ <description>Write '1' to Enable interrupt for IN[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN7</name>
+ <description>Write '1' to Enable interrupt for IN[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Write '1' to Enable interrupt for PORT event</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>IN0</name>
+ <description>Write '1' to Disable interrupt for IN[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN1</name>
+ <description>Write '1' to Disable interrupt for IN[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN2</name>
+ <description>Write '1' to Disable interrupt for IN[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN3</name>
+ <description>Write '1' to Disable interrupt for IN[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN4</name>
+ <description>Write '1' to Disable interrupt for IN[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN5</name>
+ <description>Write '1' to Disable interrupt for IN[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN6</name>
+ <description>Write '1' to Disable interrupt for IN[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN7</name>
+ <description>Write '1' to Disable interrupt for IN[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Write '1' to Disable interrupt for PORT event</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>CONFIG[%s]</name>
+ <description>Description collection[0]: Configuration for OUT[n], SET[n] and CLR[n] tasks and IN[n] event</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Mode</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled. Pin specified by PSEL will not be acquired by the GPIOTE module.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Event</name>
+ <description>Event mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Task</name>
+ <description>Task mode</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PSEL</name>
+ <description>GPIO number associated with SET[n], CLR[n] and OUT[n] tasks and IN[n] event</description>
+ <lsb>8</lsb>
+ <msb>12</msb>
+ </field>
+ <field>
+ <name>POLARITY</name>
+ <description>When In task mode: Operation to be performed on output when OUT[n] task is triggered. When In event mode: Operation on input that shall trigger IN[n] event.</description>
+ <lsb>16</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>None</name>
+ <description>Task mode: No effect on pin from OUT[n] task. Event mode: no IN[n] event generated on pin activity.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LoToHi</name>
+ <description>Task mode: Set pin from OUT[n] task. Event mode: Generate IN[n] event when rising edge on pin.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>HiToLo</name>
+ <description>Task mode: Clear pin from OUT[n] task. Event mode: Generate IN[n] event when falling edge on pin.</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Toggle</name>
+ <description>Task mode: Toggle pin from OUT[n]. Event mode: Generate IN[n] when any change on pin.</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OUTINIT</name>
+ <description>When in task mode: Initial value of the output when the GPIOTE channel is configured. When in event mode: No effect.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Task mode: Initial value of pin before task triggering is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Task mode: Initial value of pin before task triggering is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SAADC</name>
+ <description>Analog to Digital Converter</description>
+ <groupName>SAADC</groupName>
+ <baseAddress>0x40007000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SAADC</name>
+ <value>7</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start the ADC and prepare the result buffer in RAM</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SAMPLE</name>
+ <description>Take one ADC sample, if scan is enabled all channels are sampled</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop the ADC and terminate any on-going conversion</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CALIBRATEOFFSET</name>
+ <description>Starts offset auto-calibration</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_STARTED</name>
+ <description>The ADC has started</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>The ADC has filled up the Result buffer</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_DONE</name>
+ <description>A conversion task has been completed. Depending on the mode, multiple conversions might be needed for a result to be transferred to RAM.</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RESULTDONE</name>
+ <description>A result is ready to get transferred to RAM.</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_CALIBRATEDONE</name>
+ <description>Calibration is complete</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>The ADC has stopped</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ </register>
+ <cluster>
+ <dim>8</dim>
+ <dimIncrement>8</dimIncrement>
+ <name>EVENTS_CH[%s]</name>
+ <description>Unspecified</description>
+ <addressOffset>0x118</addressOffset>
+ <register>
+ <name>LIMITH</name>
+ <description>Description cluster[0]: Last results is equal or above CH[0].LIMIT.HIGH</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>LIMITL</name>
+ <description>Description cluster[0]: Last results is equal or below CH[0].LIMIT.LOW</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ </register>
+ </cluster>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Enable or disable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Enable or disable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Enable or disable interrupt for DONE event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESULTDONE</name>
+ <description>Enable or disable interrupt for RESULTDONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CALIBRATEDONE</name>
+ <description>Enable or disable interrupt for CALIBRATEDONE event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITH</name>
+ <description>Enable or disable interrupt for CH[0].LIMITH event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITL</name>
+ <description>Enable or disable interrupt for CH[0].LIMITL event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITH</name>
+ <description>Enable or disable interrupt for CH[1].LIMITH event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITL</name>
+ <description>Enable or disable interrupt for CH[1].LIMITL event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITH</name>
+ <description>Enable or disable interrupt for CH[2].LIMITH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITL</name>
+ <description>Enable or disable interrupt for CH[2].LIMITL event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITH</name>
+ <description>Enable or disable interrupt for CH[3].LIMITH event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITL</name>
+ <description>Enable or disable interrupt for CH[3].LIMITL event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITH</name>
+ <description>Enable or disable interrupt for CH[4].LIMITH event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITL</name>
+ <description>Enable or disable interrupt for CH[4].LIMITL event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITH</name>
+ <description>Enable or disable interrupt for CH[5].LIMITH event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITL</name>
+ <description>Enable or disable interrupt for CH[5].LIMITL event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITH</name>
+ <description>Enable or disable interrupt for CH[6].LIMITH event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITL</name>
+ <description>Enable or disable interrupt for CH[6].LIMITL event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITH</name>
+ <description>Enable or disable interrupt for CH[7].LIMITH event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITL</name>
+ <description>Enable or disable interrupt for CH[7].LIMITL event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Enable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Enable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Write '1' to Enable interrupt for DONE event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESULTDONE</name>
+ <description>Write '1' to Enable interrupt for RESULTDONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CALIBRATEDONE</name>
+ <description>Write '1' to Enable interrupt for CALIBRATEDONE event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[0].LIMITH event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[0].LIMITL event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[1].LIMITH event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[1].LIMITL event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[2].LIMITH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[2].LIMITL event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[3].LIMITH event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[3].LIMITL event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[4].LIMITH event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[4].LIMITL event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[5].LIMITH event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[5].LIMITL event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[6].LIMITH event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[6].LIMITL event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[7].LIMITH event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[7].LIMITL event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Disable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Disable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Write '1' to Disable interrupt for DONE event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESULTDONE</name>
+ <description>Write '1' to Disable interrupt for RESULTDONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CALIBRATEDONE</name>
+ <description>Write '1' to Disable interrupt for CALIBRATEDONE event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[0].LIMITH event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[0].LIMITL event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[1].LIMITH event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[1].LIMITL event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[2].LIMITH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[2].LIMITL event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[3].LIMITH event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[3].LIMITL event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[4].LIMITH event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[4].LIMITL event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[5].LIMITH event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[5].LIMITL event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[6].LIMITH event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[6].LIMITL event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[7].LIMITH event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[7].LIMITL event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATUS</name>
+ <description>Status</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>Status</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Ready</name>
+ <description>ADC is ready. No on-going conversion.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Busy</name>
+ <description>ADC is busy. Conversion in progress.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable or disable ADC</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable ADC</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable ADC</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable ADC</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>8</dim>
+ <dimIncrement>16</dimIncrement>
+ <name>CH[%s]</name>
+ <description>Unspecified</description>
+ <addressOffset>0x510</addressOffset>
+ <register>
+ <name>PSELP</name>
+ <description>Description cluster[0]: Input positive pin selection for CH[0]</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PSELP</name>
+ <description>Analog positive input channel</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NC</name>
+ <description>Not connected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>AIN0</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>AIN1</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>AIN2</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>AIN3</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>AIN4</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>AIN5</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>AIN6</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput7</name>
+ <description>AIN7</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD</name>
+ <description>VDD</description>
+ <value>9</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSELN</name>
+ <description>Description cluster[0]: Input negative pin selection for CH[0]</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PSELN</name>
+ <description>Analog negative input, enables differential channel</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NC</name>
+ <description>Not connected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>AIN0</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>AIN1</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>AIN2</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>AIN3</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>AIN4</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>AIN5</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>AIN6</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput7</name>
+ <description>AIN7</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD</name>
+ <description>VDD</description>
+ <value>9</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Description cluster[0]: Input configuration for CH[0]</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00020000</resetValue>
+ <fields>
+ <field>
+ <name>RESP</name>
+ <description>Positive channel resistor control</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Bypass</name>
+ <description>Bypass resistor ladder</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pulldown</name>
+ <description>Pull-down to GND</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pullup</name>
+ <description>Pull-up to VDD</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD1_2</name>
+ <description>Set input at VDD/2</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESN</name>
+ <description>Negative channel resistor control</description>
+ <lsb>4</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Bypass</name>
+ <description>Bypass resistor ladder</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pulldown</name>
+ <description>Pull-down to GND</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pullup</name>
+ <description>Pull-up to VDD</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD1_2</name>
+ <description>Set input at VDD/2</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>GAIN</name>
+ <description>Gain control</description>
+ <lsb>8</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Gain1_6</name>
+ <description>1/6</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1_5</name>
+ <description>1/5</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1_4</name>
+ <description>1/4</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1_3</name>
+ <description>1/3</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1_2</name>
+ <description>1/2</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1</name>
+ <description>1</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain2</name>
+ <description>2</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain4</name>
+ <description>4</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REFSEL</name>
+ <description>Reference control</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Internal</name>
+ <description>Internal reference (0.6 V)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD1_4</name>
+ <description>VDD/4 as reference</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TACQ</name>
+ <description>Acquisition time, the time the ADC uses to sample the input voltage</description>
+ <lsb>16</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>3us</name>
+ <description>3 us</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>5us</name>
+ <description>5 us</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>10us</name>
+ <description>10 us</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>15us</name>
+ <description>15 us</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>20us</name>
+ <description>20 us</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>40us</name>
+ <description>40 us</description>
+ <value>5</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>MODE</name>
+ <description>Enable differential mode</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>SE</name>
+ <description>Single ended, PSELN will be ignored, negative input to ADC shorted to GND</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Diff</name>
+ <description>Differential</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BURST</name>
+ <description>Enable burst mode</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Burst mode is disabled (normal operation)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIMIT</name>
+ <description>Description cluster[0]: High/low limits for event monitoring a channel</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x7FFF8000</resetValue>
+ <fields>
+ <field>
+ <name>LOW</name>
+ <description>Low level limit</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>HIGH</name>
+ <description>High level limit</description>
+ <lsb>16</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>RESOLUTION</name>
+ <description>Resolution configuration</description>
+ <addressOffset>0x5F0</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>VAL</name>
+ <description>Set the resolution</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>8bit</name>
+ <description>8 bit</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>10bit</name>
+ <description>10 bit</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>12bit</name>
+ <description>12 bit</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>14bit</name>
+ <description>14 bit</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OVERSAMPLE</name>
+ <description>Oversampling configuration. OVERSAMPLE should not be combined with SCAN. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used.</description>
+ <addressOffset>0x5F4</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>OVERSAMPLE</name>
+ <description>Oversample control</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Bypass</name>
+ <description>Bypass oversampling</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over2x</name>
+ <description>Oversample 2x</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over4x</name>
+ <description>Oversample 4x</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over8x</name>
+ <description>Oversample 8x</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over16x</name>
+ <description>Oversample 16x</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over32x</name>
+ <description>Oversample 32x</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over64x</name>
+ <description>Oversample 64x</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over128x</name>
+ <description>Oversample 128x</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over256x</name>
+ <description>Oversample 256x</description>
+ <value>8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SAMPLERATE</name>
+ <description>Controls normal or continuous sample rate</description>
+ <addressOffset>0x5F8</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CC</name>
+ <description>Capture and compare value. Sample rate is 16 MHz/CC</description>
+ <lsb>0</lsb>
+ <msb>10</msb>
+ </field>
+ <field>
+ <name>MODE</name>
+ <description>Select mode for sample rate control</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Task</name>
+ <description>Rate is controlled from SAMPLE task</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Timers</name>
+ <description>Rate is controlled from local timer (use CC to control the rate)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>RESULT</name>
+ <description>RESULT EasyDMA channel</description>
+ <addressOffset>0x62C</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of buffer words to transfer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of buffer words to transfer</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of buffer words transferred since last START</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of buffer words transferred since last START. This register can be read after an END or STOPPED event.</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TIMER0</name>
+ <description>Timer/Counter 0</description>
+ <groupName>TIMER</groupName>
+ <baseAddress>0x40008000</baseAddress>
+ <size>32</size>
+ <headerStructName>TIMER</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>TIMER0</name>
+ <value>8</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start Timer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop Timer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_COUNT</name>
+ <description>Increment Timer (Counter mode only)</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CLEAR</name>
+ <description>Clear time</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SHUTDOWN</name>
+ <description>Deprecated register - Shut down timer</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <dim>6</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>TASKS_CAPTURE[%s]</name>
+ <description>Description collection[0]: Capture Timer value to CC[0] register</description>
+ <addressOffset>0x040</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <dim>6</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>EVENTS_COMPARE[%s]</name>
+ <description>Description collection[0]: Compare event on CC[0] match</description>
+ <addressOffset>0x140</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>COMPARE0_CLEAR</name>
+ <description>Shortcut between COMPARE[0] event and CLEAR task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1_CLEAR</name>
+ <description>Shortcut between COMPARE[1] event and CLEAR task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2_CLEAR</name>
+ <description>Shortcut between COMPARE[2] event and CLEAR task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3_CLEAR</name>
+ <description>Shortcut between COMPARE[3] event and CLEAR task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE4_CLEAR</name>
+ <description>Shortcut between COMPARE[4] event and CLEAR task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE5_CLEAR</name>
+ <description>Shortcut between COMPARE[5] event and CLEAR task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0_STOP</name>
+ <description>Shortcut between COMPARE[0] event and STOP task</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1_STOP</name>
+ <description>Shortcut between COMPARE[1] event and STOP task</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2_STOP</name>
+ <description>Shortcut between COMPARE[2] event and STOP task</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3_STOP</name>
+ <description>Shortcut between COMPARE[3] event and STOP task</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE4_STOP</name>
+ <description>Shortcut between COMPARE[4] event and STOP task</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE5_STOP</name>
+ <description>Shortcut between COMPARE[5] event and STOP task</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to Enable interrupt for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to Enable interrupt for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to Enable interrupt for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to Enable interrupt for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE4</name>
+ <description>Write '1' to Enable interrupt for COMPARE[4] event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE5</name>
+ <description>Write '1' to Enable interrupt for COMPARE[5] event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to Disable interrupt for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to Disable interrupt for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to Disable interrupt for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to Disable interrupt for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE4</name>
+ <description>Write '1' to Disable interrupt for COMPARE[4] event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE5</name>
+ <description>Write '1' to Disable interrupt for COMPARE[5] event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Timer mode selection</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Timer mode</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Timer</name>
+ <description>Select Timer mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Counter</name>
+ <description>Deprecated enumerator - Select Counter mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LowPowerCounter</name>
+ <description>Select Low Power Counter mode</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BITMODE</name>
+ <description>Configure the number of bits used by the TIMER</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BITMODE</name>
+ <description>Timer bit width</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>16Bit</name>
+ <description>16 bit timer bit width</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>08Bit</name>
+ <description>8 bit timer bit width</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>24Bit</name>
+ <description>24 bit timer bit width</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32Bit</name>
+ <description>32 bit timer bit width</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PRESCALER</name>
+ <description>Timer prescaler register</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000004</resetValue>
+ <fields>
+ <field>
+ <name>PRESCALER</name>
+ <description>Prescaler value</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>6</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>CC[%s]</name>
+ <description>Description collection[0]: Capture/Compare register 0</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CC</name>
+ <description>Capture/Compare value</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="TIMER0">
+ <name>TIMER1</name>
+ <description>Timer/Counter 1</description>
+ <groupName>TIMER</groupName>
+ <baseAddress>0x40009000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>TIMER1</name>
+ <value>9</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TIMER0">
+ <name>TIMER2</name>
+ <description>Timer/Counter 2</description>
+ <groupName>TIMER</groupName>
+ <baseAddress>0x4000A000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>TIMER2</name>
+ <value>10</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>RTC0</name>
+ <description>Real time counter 0</description>
+ <groupName>RTC</groupName>
+ <baseAddress>0x4000B000</baseAddress>
+ <size>32</size>
+ <headerStructName>RTC</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>RTC0</name>
+ <value>11</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start RTC COUNTER</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop RTC COUNTER</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CLEAR</name>
+ <description>Clear RTC COUNTER</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_TRIGOVRFLW</name>
+ <description>Set COUNTER to 0xFFFFF0</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_TICK</name>
+ <description>Event on COUNTER increment</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_OVRFLW</name>
+ <description>Event on COUNTER overflow</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>EVENTS_COMPARE[%s]</name>
+ <description>Description collection[0]: Compare event on CC[0] match</description>
+ <addressOffset>0x140</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Write '1' to Enable interrupt for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Write '1' to Enable interrupt for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to Enable interrupt for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to Enable interrupt for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to Enable interrupt for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to Enable interrupt for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Write '1' to Disable interrupt for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Write '1' to Disable interrupt for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to Disable interrupt for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to Disable interrupt for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to Disable interrupt for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to Disable interrupt for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVTEN</name>
+ <description>Enable or disable event routing</description>
+ <addressOffset>0x340</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Enable or disable event routing for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Enable or disable event routing for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Enable or disable event routing for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Enable or disable event routing for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Enable or disable event routing for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Enable or disable event routing for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVTENSET</name>
+ <description>Enable event routing</description>
+ <addressOffset>0x344</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Write '1' to Enable event routing for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Write '1' to Enable event routing for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to Enable event routing for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to Enable event routing for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to Enable event routing for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to Enable event routing for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVTENCLR</name>
+ <description>Disable event routing</description>
+ <addressOffset>0x348</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Write '1' to Disable event routing for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Write '1' to Disable event routing for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to Disable event routing for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to Disable event routing for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to Disable event routing for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to Disable event routing for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>COUNTER</name>
+ <description>Current COUNTER value</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>COUNTER</name>
+ <description>Counter value</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PRESCALER</name>
+ <description>12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must be written when RTC is stopped</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PRESCALER</name>
+ <description>Prescaler value</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>CC[%s]</name>
+ <description>Description collection[0]: Compare register 0</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>COMPARE</name>
+ <description>Compare value</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TEMP</name>
+ <description>Temperature Sensor</description>
+ <groupName>TEMP</groupName>
+ <baseAddress>0x4000C000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>TEMP</name>
+ <value>12</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start temperature measurement</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop temperature measurement</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_DATARDY</name>
+ <description>Temperature measurement complete, data ready</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DATARDY</name>
+ <description>Write '1' to Enable interrupt for DATARDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DATARDY</name>
+ <description>Write '1' to Disable interrupt for DATARDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TEMP</name>
+ <description>Temperature in degC (0.25deg steps)</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>TEMP</name>
+ <description>Temperature in degC (0.25deg steps)</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A0</name>
+ <description>Slope of 1st piece wise linear function</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000320</resetValue>
+ <fields>
+ <field>
+ <name>A0</name>
+ <description>Slope of 1st piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A1</name>
+ <description>Slope of 2nd piece wise linear function</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000343</resetValue>
+ <fields>
+ <field>
+ <name>A1</name>
+ <description>Slope of 2nd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A2</name>
+ <description>Slope of 3rd piece wise linear function</description>
+ <addressOffset>0x528</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000035D</resetValue>
+ <fields>
+ <field>
+ <name>A2</name>
+ <description>Slope of 3rd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A3</name>
+ <description>Slope of 4th piece wise linear function</description>
+ <addressOffset>0x52C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000400</resetValue>
+ <fields>
+ <field>
+ <name>A3</name>
+ <description>Slope of 4th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A4</name>
+ <description>Slope of 5th piece wise linear function</description>
+ <addressOffset>0x530</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000047F</resetValue>
+ <fields>
+ <field>
+ <name>A4</name>
+ <description>Slope of 5th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A5</name>
+ <description>Slope of 6th piece wise linear function</description>
+ <addressOffset>0x534</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000037B</resetValue>
+ <fields>
+ <field>
+ <name>A5</name>
+ <description>Slope of 6th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B0</name>
+ <description>y-intercept of 1st piece wise linear function</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00003FCC</resetValue>
+ <fields>
+ <field>
+ <name>B0</name>
+ <description>y-intercept of 1st piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B1</name>
+ <description>y-intercept of 2nd piece wise linear function</description>
+ <addressOffset>0x544</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00003F98</resetValue>
+ <fields>
+ <field>
+ <name>B1</name>
+ <description>y-intercept of 2nd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B2</name>
+ <description>y-intercept of 3rd piece wise linear function</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00003F98</resetValue>
+ <fields>
+ <field>
+ <name>B2</name>
+ <description>y-intercept of 3rd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B3</name>
+ <description>y-intercept of 4th piece wise linear function</description>
+ <addressOffset>0x54C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000012</resetValue>
+ <fields>
+ <field>
+ <name>B3</name>
+ <description>y-intercept of 4th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B4</name>
+ <description>y-intercept of 5th piece wise linear function</description>
+ <addressOffset>0x550</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000006A</resetValue>
+ <fields>
+ <field>
+ <name>B4</name>
+ <description>y-intercept of 5th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B5</name>
+ <description>y-intercept of 6th piece wise linear function</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00003DD0</resetValue>
+ <fields>
+ <field>
+ <name>B5</name>
+ <description>y-intercept of 6th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T0</name>
+ <description>End point of 1st piece wise linear function</description>
+ <addressOffset>0x560</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000000E2</resetValue>
+ <fields>
+ <field>
+ <name>T0</name>
+ <description>End point of 1st piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T1</name>
+ <description>End point of 2nd piece wise linear function</description>
+ <addressOffset>0x564</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>T1</name>
+ <description>End point of 2nd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T2</name>
+ <description>End point of 3rd piece wise linear function</description>
+ <addressOffset>0x568</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000014</resetValue>
+ <fields>
+ <field>
+ <name>T2</name>
+ <description>End point of 3rd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T3</name>
+ <description>End point of 4th piece wise linear function</description>
+ <addressOffset>0x56C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000019</resetValue>
+ <fields>
+ <field>
+ <name>T3</name>
+ <description>End point of 4th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T4</name>
+ <description>End point of 5th piece wise linear function</description>
+ <addressOffset>0x570</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000050</resetValue>
+ <fields>
+ <field>
+ <name>T4</name>
+ <description>End point of 5th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>RNG</name>
+ <description>Random Number Generator</description>
+ <groupName>RNG</groupName>
+ <baseAddress>0x4000D000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>RNG</name>
+ <value>13</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Task starting the random number generator</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Task stopping the random number generator</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_VALRDY</name>
+ <description>Event being generated for every new random number written to the VALUE register</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>VALRDY_STOP</name>
+ <description>Shortcut between VALRDY event and STOP task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>VALRDY</name>
+ <description>Write '1' to Enable interrupt for VALRDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>VALRDY</name>
+ <description>Write '1' to Disable interrupt for VALRDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DERCEN</name>
+ <description>Bias correction</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>VALUE</name>
+ <description>Output random number</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>VALUE</name>
+ <description>Generated random number</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>ECB</name>
+ <description>AES ECB Mode Encryption</description>
+ <groupName>ECB</groupName>
+ <baseAddress>0x4000E000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>ECB</name>
+ <value>14</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_STARTECB</name>
+ <description>Start ECB block encrypt</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOPECB</name>
+ <description>Abort a possible executing ECB operation</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_ENDECB</name>
+ <description>ECB block encrypt complete</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ERRORECB</name>
+ <description>ECB block encrypt aborted because of a STOPECB task or due to an error</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDECB</name>
+ <description>Write '1' to Enable interrupt for ENDECB event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERRORECB</name>
+ <description>Write '1' to Enable interrupt for ERRORECB event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDECB</name>
+ <description>Write '1' to Disable interrupt for ENDECB event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERRORECB</name>
+ <description>Write '1' to Disable interrupt for ERRORECB event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ECBDATAPTR</name>
+ <description>ECB block encrypt memory pointers</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ECBDATAPTR</name>
+ <description>Pointer to the ECB data structure (see Table 1 ECB data structure overview)</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>CCM</name>
+ <description>AES CCM Mode Encryption</description>
+ <groupName>CCM</groupName>
+ <baseAddress>0x4000F000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>CCM_AAR</name>
+ <value>15</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_KSGEN</name>
+ <description>Start generation of key-stream. This operation will stop by itself when completed.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_CRYPT</name>
+ <description>Start encryption/decryption. This operation will stop by itself when completed.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop encryption/decryption</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_ENDKSGEN</name>
+ <description>Key-stream generation complete</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ENDCRYPT</name>
+ <description>Encrypt/decrypt complete</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>CCM error event</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDKSGEN_CRYPT</name>
+ <description>Shortcut between ENDKSGEN event and CRYPT task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDKSGEN</name>
+ <description>Write '1' to Enable interrupt for ENDKSGEN event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDCRYPT</name>
+ <description>Write '1' to Enable interrupt for ENDCRYPT event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Enable interrupt for ERROR event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDKSGEN</name>
+ <description>Write '1' to Disable interrupt for ENDKSGEN event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDCRYPT</name>
+ <description>Write '1' to Disable interrupt for ENDCRYPT event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Disable interrupt for ERROR event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MICSTATUS</name>
+ <description>MIC check result</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>MICSTATUS</name>
+ <description>The result of the MIC check performed during the previous decryption operation</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>CheckFailed</name>
+ <description>MIC check failed</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CheckPassed</name>
+ <description>MIC check passed</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable CCM</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Operation mode</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>The mode of operation to be used</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Encryption</name>
+ <description>AES CCM packet encryption mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Decryption</name>
+ <description>AES CCM packet decryption mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DATARATE</name>
+ <description>Data rate that the CCM shall run in synch with</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>1Mbit</name>
+ <description>In synch with 1 Mbit data rate</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2Mbit</name>
+ <description>In synch with 2 Mbit data rate</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LENGTH</name>
+ <description>Packet length configuration</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>Default length. Effective length of LENGTH field is 5-bit</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Extended</name>
+ <description>Extended length. Effective length of LENGTH field is 8-bit</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CNFPTR</name>
+ <description>Pointer to data structure holding AES key and NONCE vector</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CNFPTR</name>
+ <description>Pointer to the data structure holding the AES key and the CCM NONCE vector (see Table 1 CCM data structure overview)</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INPTR</name>
+ <description>Input pointer</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>INPTR</name>
+ <description>Input pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OUTPTR</name>
+ <description>Output pointer</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>OUTPTR</name>
+ <description>Output pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to data area used for temporary storage</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to a scratch data area used for temporary storage during key-stream generation, MIC generation and encryption/decryption.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>AAR</name>
+ <description>Accelerated Address Resolver</description>
+ <groupName>AAR</groupName>
+ <baseAddress>0x4000F000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>CCM</alternatePeripheral>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>CCM_AAR</name>
+ <value>15</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start resolving addresses based on IRKs specified in the IRK data structure</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop resolving addresses</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>Address resolution procedure complete</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_RESOLVED</name>
+ <description>Address resolved</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_NOTRESOLVED</name>
+ <description>Address not resolved</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Enable interrupt for END event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESOLVED</name>
+ <description>Write '1' to Enable interrupt for RESOLVED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NOTRESOLVED</name>
+ <description>Write '1' to Enable interrupt for NOTRESOLVED event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Disable interrupt for END event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESOLVED</name>
+ <description>Write '1' to Disable interrupt for RESOLVED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NOTRESOLVED</name>
+ <description>Write '1' to Disable interrupt for NOTRESOLVED event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATUS</name>
+ <description>Resolution status</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>The IRK that was used last time an address was resolved</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable AAR</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable AAR</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NIRK</name>
+ <description>Number of IRKs</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>NIRK</name>
+ <description>Number of Identity root keys available in the IRK data structure</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IRKPTR</name>
+ <description>Pointer to IRK data structure</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>IRKPTR</name>
+ <description>Pointer to the IRK data structure</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ADDRPTR</name>
+ <description>Pointer to the resolvable address</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDRPTR</name>
+ <description>Pointer to the resolvable address (6-bytes)</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to data area used for temporary storage</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to a scratch data area used for temporary storage during resolution.A space of minimum 3 bytes must be reserved.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>WDT</name>
+ <description>Watchdog Timer</description>
+ <groupName>WDT</groupName>
+ <baseAddress>0x40010000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>WDT</name>
+ <value>16</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start the watchdog</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_TIMEOUT</name>
+ <description>Watchdog timeout</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TIMEOUT</name>
+ <description>Write '1' to Enable interrupt for TIMEOUT event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TIMEOUT</name>
+ <description>Write '1' to Disable interrupt for TIMEOUT event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RUNSTATUS</name>
+ <description>Run status</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RUNSTATUS</name>
+ <description>Indicates whether or not the watchdog is running</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotRunning</name>
+ <description>Watchdog not running</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Running</name>
+ <description>Watchdog is running</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REQSTATUS</name>
+ <description>Request status</description>
+ <addressOffset>0x404</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>RR0</name>
+ <description>Request status for RR[0] register</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[0] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[0] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR1</name>
+ <description>Request status for RR[1] register</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[1] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[1] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR2</name>
+ <description>Request status for RR[2] register</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[2] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[2] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR3</name>
+ <description>Request status for RR[3] register</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[3] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[3] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR4</name>
+ <description>Request status for RR[4] register</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[4] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[4] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR5</name>
+ <description>Request status for RR[5] register</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[5] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[5] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR6</name>
+ <description>Request status for RR[6] register</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[6] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[6] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR7</name>
+ <description>Request status for RR[7] register</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[7] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[7] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRV</name>
+ <description>Counter reload value</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>CRV</name>
+ <description>Counter reload value in number of cycles of the 32.768 kHz clock</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RREN</name>
+ <description>Enable register for reload request registers</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>RR0</name>
+ <description>Enable or disable RR[0] register</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[0] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[0] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR1</name>
+ <description>Enable or disable RR[1] register</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[1] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[1] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR2</name>
+ <description>Enable or disable RR[2] register</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[2] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[2] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR3</name>
+ <description>Enable or disable RR[3] register</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[3] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[3] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR4</name>
+ <description>Enable or disable RR[4] register</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[4] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[4] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR5</name>
+ <description>Enable or disable RR[5] register</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[5] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[5] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR6</name>
+ <description>Enable or disable RR[6] register</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[6] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[6] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR7</name>
+ <description>Enable or disable RR[7] register</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[7] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[7] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>SLEEP</name>
+ <description>Configure the watchdog to either be paused, or kept running, while the CPU is sleeping</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Pause</name>
+ <description>Pause watchdog while the CPU is sleeping</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Run</name>
+ <description>Keep the watchdog running while the CPU is sleeping</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>HALT</name>
+ <description>Configure the watchdog to either be paused, or kept running, while the CPU is halted by the debugger</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Pause</name>
+ <description>Pause watchdog while the CPU is halted by the debugger</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Run</name>
+ <description>Keep the watchdog running while the CPU is halted by the debugger</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>RR[%s]</name>
+ <description>Description collection[0]: Reload request 0</description>
+ <addressOffset>0x600</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>RR</name>
+ <description>Reload request register</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Reload</name>
+ <description>Value to request a reload of the watchdog timer</description>
+ <value>0x6E524635</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="RTC0">
+ <name>RTC1</name>
+ <description>Real time counter 1</description>
+ <groupName>RTC</groupName>
+ <baseAddress>0x40011000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>RTC1</name>
+ <value>17</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>QDEC</name>
+ <description>Quadrature Decoder</description>
+ <groupName>QDEC</groupName>
+ <baseAddress>0x40012000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>QDEC</name>
+ <value>18</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Task starting the quadrature decoder</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Task stopping the quadrature decoder</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_READCLRACC</name>
+ <description>Read and clear ACC and ACCDBL</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RDCLRACC</name>
+ <description>Read and clear ACC</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_RDCLRDBL</name>
+ <description>Read and clear ACCDBL</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_SAMPLERDY</name>
+ <description>Event being generated for every new sample value written to the SAMPLE register</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_REPORTRDY</name>
+ <description>Non-null report ready</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_ACCOF</name>
+ <description>ACC or ACCDBL register overflow</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_DBLRDY</name>
+ <description>Double displacement(s) detected</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>QDEC has been stopped</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REPORTRDY_READCLRACC</name>
+ <description>Shortcut between REPORTRDY event and READCLRACC task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SAMPLERDY_STOP</name>
+ <description>Shortcut between SAMPLERDY event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY_RDCLRACC</name>
+ <description>Shortcut between REPORTRDY event and RDCLRACC task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY_STOP</name>
+ <description>Shortcut between REPORTRDY event and STOP task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DBLRDY_RDCLRDBL</name>
+ <description>Shortcut between DBLRDY event and RDCLRDBL task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DBLRDY_STOP</name>
+ <description>Shortcut between DBLRDY event and STOP task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SAMPLERDY_READCLRACC</name>
+ <description>Shortcut between SAMPLERDY event and READCLRACC task</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SAMPLERDY</name>
+ <description>Write '1' to Enable interrupt for SAMPLERDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY</name>
+ <description>Write '1' to Enable interrupt for REPORTRDY event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACCOF</name>
+ <description>Write '1' to Enable interrupt for ACCOF event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DBLRDY</name>
+ <description>Write '1' to Enable interrupt for DBLRDY event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SAMPLERDY</name>
+ <description>Write '1' to Disable interrupt for SAMPLERDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY</name>
+ <description>Write '1' to Disable interrupt for REPORTRDY event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACCOF</name>
+ <description>Write '1' to Disable interrupt for ACCOF event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DBLRDY</name>
+ <description>Write '1' to Disable interrupt for DBLRDY event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable the quadrature decoder</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable the quadrature decoder</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LEDPOL</name>
+ <description>LED output pin polarity</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LEDPOL</name>
+ <description>LED output pin polarity</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Led active on output pin low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Led active on output pin high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SAMPLEPER</name>
+ <description>Sample period</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SAMPLEPER</name>
+ <description>Sample period. The SAMPLE register will be updated for every new sample</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>128us</name>
+ <description>128 us</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>256us</name>
+ <description>256 us</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>512us</name>
+ <description>512 us</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1024us</name>
+ <description>1024 us</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2048us</name>
+ <description>2048 us</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>4096us</name>
+ <description>4096 us</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>8192us</name>
+ <description>8192 us</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>16384us</name>
+ <description>16384 us</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32ms</name>
+ <description>32768 us</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>65ms</name>
+ <description>65536 us</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>131ms</name>
+ <description>131072 us</description>
+ <value>10</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SAMPLE</name>
+ <description>Motion sample value</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>SAMPLE</name>
+ <description>Last motion sample</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REPORTPER</name>
+ <description>Number of samples to be taken before REPORTRDY and DBLRDY events can be generated</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REPORTPER</name>
+ <description>Specifies the number of samples to be accumulated in the ACC register before the REPORTRDY and DBLRDY events can be generated</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>10Smpl</name>
+ <description>10 samples / report</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>40Smpl</name>
+ <description>40 samples / report</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>80Smpl</name>
+ <description>80 samples / report</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>120Smpl</name>
+ <description>120 samples / report</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>160Smpl</name>
+ <description>160 samples / report</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>200Smpl</name>
+ <description>200 samples / report</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>240Smpl</name>
+ <description>240 samples / report</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>280Smpl</name>
+ <description>280 samples / report</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1Smpl</name>
+ <description>1 sample / report</description>
+ <value>8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ACC</name>
+ <description>Register accumulating the valid transitions</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>ACC</name>
+ <description>Register accumulating all valid samples (not double transition) read from the SAMPLE register</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ACCREAD</name>
+ <description>Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC task</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>ACCREAD</name>
+ <description>Snapshot of the ACC register.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <addressOffset>0x51C</addressOffset>
+ <register>
+ <name>LED</name>
+ <description>Pin select for LED signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A</name>
+ <description>Pin select for A signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B</name>
+ <description>Pin select for B signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>DBFEN</name>
+ <description>Enable input debounce filters</description>
+ <addressOffset>0x528</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DBFEN</name>
+ <description>Enable input debounce filters</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Debounce input filters disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Debounce input filters enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LEDPRE</name>
+ <description>Time period the LED is switched ON prior to sampling</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000010</resetValue>
+ <fields>
+ <field>
+ <name>LEDPRE</name>
+ <description>Period in us the LED is switched on prior to sampling</description>
+ <lsb>0</lsb>
+ <msb>8</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ACCDBL</name>
+ <description>Register accumulating the number of detected double transitions</description>
+ <addressOffset>0x544</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>ACCDBL</name>
+ <description>Register accumulating the number of detected double or illegal transitions. ( SAMPLE = 2 ).</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ACCDBLREAD</name>
+ <description>Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL task</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>ACCDBLREAD</name>
+ <description>Snapshot of the ACCDBL register. This field is updated when the READCLRACC or RDCLRDBL task is triggered.</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>COMP</name>
+ <description>Comparator</description>
+ <groupName>COMP</groupName>
+ <baseAddress>0x40013000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>COMP_LPCOMP</name>
+ <value>19</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start comparator</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop comparator</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SAMPLE</name>
+ <description>Sample comparator value</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>COMP is ready and output is valid</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_DOWN</name>
+ <description>Downward crossing</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_UP</name>
+ <description>Upward crossing</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_CROSS</name>
+ <description>Downward or upward crossing</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY_SAMPLE</name>
+ <description>Shortcut between READY event and SAMPLE task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READY_STOP</name>
+ <description>Shortcut between READY event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN_STOP</name>
+ <description>Shortcut between DOWN event and STOP task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP_STOP</name>
+ <description>Shortcut between UP event and STOP task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS_STOP</name>
+ <description>Shortcut between CROSS event and STOP task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Enable or disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Enable or disable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Enable or disable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Enable or disable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Enable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Write '1' to Enable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Write '1' to Enable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Write '1' to Enable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Write '1' to Disable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Write '1' to Disable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Write '1' to Disable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RESULT</name>
+ <description>Compare result</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RESULT</name>
+ <description>Result of last compare. Decision point SAMPLE task.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Below</name>
+ <description>Input voltage is below the threshold (VIN+ &amp;lt; VIN-)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Above</name>
+ <description>Input voltage is above the threshold (VIN+ &amp;gt; VIN-)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>COMP enable</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable COMP</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSEL</name>
+ <description>Pin select</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PSEL</name>
+ <description>Analog pin select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>AIN0 selected as analog input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>AIN1 selected as analog input</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>AIN2 selected as analog input</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>AIN3 selected as analog input</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>AIN4 selected as analog input</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>AIN5 selected as analog input</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>AIN6 selected as analog input</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput7</name>
+ <description>AIN7 selected as analog input</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REFSEL</name>
+ <description>Reference source select for single-ended mode</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000004</resetValue>
+ <fields>
+ <field>
+ <name>REFSEL</name>
+ <description>Reference select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Int1V2</name>
+ <description>VREF = internal 1.2 V reference (VDD &amp;gt;= 1.7 V)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Int1V8</name>
+ <description>VREF = internal 1.8 V reference (VDD &amp;gt;= VREF + 0.2 V)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Int2V4</name>
+ <description>VREF = internal 2.4 V reference (VDD &amp;gt;= VREF + 0.2 V)</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD</name>
+ <description>VREF = VDD</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ARef</name>
+ <description>VREF = AREF (VDD &amp;gt;= VREF &amp;gt;= AREFMIN)</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EXTREFSEL</name>
+ <description>External reference select</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EXTREFSEL</name>
+ <description>External analog reference select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogReference0</name>
+ <description>Use AIN0 as external analog reference</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference1</name>
+ <description>Use AIN1 as external analog reference</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference2</name>
+ <description>Use AIN2 as external analog reference</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference3</name>
+ <description>Use AIN3 as external analog reference</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference4</name>
+ <description>Use AIN4 as external analog reference</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference5</name>
+ <description>Use AIN5 as external analog reference</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference6</name>
+ <description>Use AIN6 as external analog reference</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference7</name>
+ <description>Use AIN7 as external analog reference</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TH</name>
+ <description>Threshold configuration for hysteresis unit</description>
+ <addressOffset>0x530</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>THDOWN</name>
+ <description>VDOWN = (THDOWN+1)/64*VREF</description>
+ <lsb>0</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>THUP</name>
+ <description>VUP = (THUP+1)/64*VREF</description>
+ <lsb>8</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Mode configuration</description>
+ <addressOffset>0x534</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SP</name>
+ <description>Speed and power modes</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Low-power mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Normal</name>
+ <description>Normal mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>High-speed mode</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>MAIN</name>
+ <description>Main operation modes</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>SE</name>
+ <description>Single-ended mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Diff</name>
+ <description>Differential mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HYST</name>
+ <description>Comparator hysteresis enable</description>
+ <addressOffset>0x538</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HYST</name>
+ <description>Comparator hysteresis</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoHyst</name>
+ <description>Comparator hysteresis disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Hyst50mV</name>
+ <description>Comparator hysteresis enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ISOURCE</name>
+ <description>Current source select on analog input</description>
+ <addressOffset>0x53C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ISOURCE</name>
+ <description>Comparator hysteresis</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Current source disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ien2mA5</name>
+ <description>Current source enabled (+/- 2.5 uA)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ien5mA</name>
+ <description>Current source enabled (+/- 5 uA)</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ien10mA</name>
+ <description>Current source enabled (+/- 10 uA)</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>LPCOMP</name>
+ <description>Low Power Comparator</description>
+ <groupName>LPCOMP</groupName>
+ <baseAddress>0x40013000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>COMP</alternatePeripheral>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>COMP_LPCOMP</name>
+ <value>19</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start comparator</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop comparator</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_SAMPLE</name>
+ <description>Sample comparator value</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>LPCOMP is ready and output is valid</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_DOWN</name>
+ <description>Downward crossing</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_UP</name>
+ <description>Upward crossing</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_CROSS</name>
+ <description>Downward or upward crossing</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY_SAMPLE</name>
+ <description>Shortcut between READY event and SAMPLE task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READY_STOP</name>
+ <description>Shortcut between READY event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN_STOP</name>
+ <description>Shortcut between DOWN event and STOP task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP_STOP</name>
+ <description>Shortcut between UP event and STOP task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS_STOP</name>
+ <description>Shortcut between CROSS event and STOP task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Enable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Write '1' to Enable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Write '1' to Enable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Write '1' to Enable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Write '1' to Disable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Write '1' to Disable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Write '1' to Disable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RESULT</name>
+ <description>Compare result</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RESULT</name>
+ <description>Result of last compare. Decision point SAMPLE task.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Below</name>
+ <description>Input voltage is below the reference threshold (VIN+ &amp;lt; VIN-).</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Above</name>
+ <description>Input voltage is above the reference threshold (VIN+ &amp;gt; VIN-).</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable LPCOMP</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable LPCOMP</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSEL</name>
+ <description>Input pin select</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PSEL</name>
+ <description>Analog pin select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>AIN0 selected as analog input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>AIN1 selected as analog input</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>AIN2 selected as analog input</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>AIN3 selected as analog input</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>AIN4 selected as analog input</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>AIN5 selected as analog input</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>AIN6 selected as analog input</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput7</name>
+ <description>AIN7 selected as analog input</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REFSEL</name>
+ <description>Reference select</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000004</resetValue>
+ <fields>
+ <field>
+ <name>REFSEL</name>
+ <description>Reference select</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Ref1_8Vdd</name>
+ <description>VDD * 1/8 selected as reference</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref2_8Vdd</name>
+ <description>VDD * 2/8 selected as reference</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref3_8Vdd</name>
+ <description>VDD * 3/8 selected as reference</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref4_8Vdd</name>
+ <description>VDD * 4/8 selected as reference</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref5_8Vdd</name>
+ <description>VDD * 5/8 selected as reference</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref6_8Vdd</name>
+ <description>VDD * 6/8 selected as reference</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref7_8Vdd</name>
+ <description>VDD * 7/8 selected as reference</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ARef</name>
+ <description>External analog reference selected</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref1_16Vdd</name>
+ <description>VDD * 1/16 selected as reference</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref3_16Vdd</name>
+ <description>VDD * 3/16 selected as reference</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref5_16Vdd</name>
+ <description>VDD * 5/16 selected as reference</description>
+ <value>10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref7_16Vdd</name>
+ <description>VDD * 7/16 selected as reference</description>
+ <value>11</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref9_16Vdd</name>
+ <description>VDD * 9/16 selected as reference</description>
+ <value>12</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref11_16Vdd</name>
+ <description>VDD * 11/16 selected as reference</description>
+ <value>13</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref13_16Vdd</name>
+ <description>VDD * 13/16 selected as reference</description>
+ <value>14</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref15_16Vdd</name>
+ <description>VDD * 15/16 selected as reference</description>
+ <value>15</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EXTREFSEL</name>
+ <description>External reference select</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EXTREFSEL</name>
+ <description>External analog reference select</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogReference0</name>
+ <description>Use AIN0 as external analog reference</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference1</name>
+ <description>Use AIN1 as external analog reference</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ANADETECT</name>
+ <description>Analog detect configuration</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ANADETECT</name>
+ <description>Analog detect configuration</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Cross</name>
+ <description>Generate ANADETECT on crossing, both upward crossing and downward crossing</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Up</name>
+ <description>Generate ANADETECT on upward crossing only</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Down</name>
+ <description>Generate ANADETECT on downward crossing only</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HYST</name>
+ <description>Comparator hysteresis enable</description>
+ <addressOffset>0x538</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HYST</name>
+ <description>Comparator hysteresis enable</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoHyst</name>
+ <description>Comparator hysteresis disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Hyst50mV</name>
+ <description>Comparator hysteresis disabled (typ. 50 mV)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SWI0</name>
+ <description>Software interrupt 0</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40014000</baseAddress>
+ <size>32</size>
+ <headerStructName>SWI</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SWI0_EGU0</name>
+ <value>20</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>UNUSED</name>
+ <description>Unused.</description>
+ <addressOffset>0x000</addressOffset>
+ <resetValue>0x00000000</resetValue>
+ <access>read-only</access>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>EGU0</name>
+ <description>Event Generator Unit 0</description>
+ <groupName>EGU</groupName>
+ <baseAddress>0x40014000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SWI0</alternatePeripheral>
+ <headerStructName>EGU</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SWI0_EGU0</name>
+ <value>20</value>
+ </interrupt>
+ <registers>
+ <register>
+ <dim>16</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>TASKS_TRIGGER[%s]</name>
+ <description>Description collection[0]: Trigger 0 for triggering the corresponding TRIGGERED[0] event</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <dim>16</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>EVENTS_TRIGGERED[%s]</name>
+ <description>Description collection[0]: Event number 0 generated by triggering the corresponding TRIGGER[0] task</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TRIGGERED0</name>
+ <description>Enable or disable interrupt for TRIGGERED[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED1</name>
+ <description>Enable or disable interrupt for TRIGGERED[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED2</name>
+ <description>Enable or disable interrupt for TRIGGERED[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED3</name>
+ <description>Enable or disable interrupt for TRIGGERED[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED4</name>
+ <description>Enable or disable interrupt for TRIGGERED[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED5</name>
+ <description>Enable or disable interrupt for TRIGGERED[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED6</name>
+ <description>Enable or disable interrupt for TRIGGERED[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED7</name>
+ <description>Enable or disable interrupt for TRIGGERED[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED8</name>
+ <description>Enable or disable interrupt for TRIGGERED[8] event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED9</name>
+ <description>Enable or disable interrupt for TRIGGERED[9] event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED10</name>
+ <description>Enable or disable interrupt for TRIGGERED[10] event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED11</name>
+ <description>Enable or disable interrupt for TRIGGERED[11] event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED12</name>
+ <description>Enable or disable interrupt for TRIGGERED[12] event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED13</name>
+ <description>Enable or disable interrupt for TRIGGERED[13] event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED14</name>
+ <description>Enable or disable interrupt for TRIGGERED[14] event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED15</name>
+ <description>Enable or disable interrupt for TRIGGERED[15] event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TRIGGERED0</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED1</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED2</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED3</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED4</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED5</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED6</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED7</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED8</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[8] event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED9</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[9] event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED10</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[10] event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED11</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[11] event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED12</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[12] event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED13</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[13] event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED14</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[14] event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED15</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[15] event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TRIGGERED0</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED1</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED2</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED3</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED4</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED5</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED6</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED7</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED8</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[8] event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED9</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[9] event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED10</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[10] event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED11</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[11] event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED12</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[12] event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED13</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[13] event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED14</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[14] event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED15</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[15] event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI1</name>
+ <description>Software interrupt 1</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40015000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>SWI1_EGU1</name>
+ <value>21</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="EGU0">
+ <name>EGU1</name>
+ <description>Event Generator Unit 1</description>
+ <groupName>EGU</groupName>
+ <baseAddress>0x40015000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SWI1</alternatePeripheral>
+ <interrupt>
+ <name>SWI1_EGU1</name>
+ <value>21</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI2</name>
+ <description>Software interrupt 2</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40016000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>SWI2_EGU2</name>
+ <value>22</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="EGU0">
+ <name>EGU2</name>
+ <description>Event Generator Unit 2</description>
+ <groupName>EGU</groupName>
+ <baseAddress>0x40016000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SWI2</alternatePeripheral>
+ <interrupt>
+ <name>SWI2_EGU2</name>
+ <value>22</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI3</name>
+ <description>Software interrupt 3</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40017000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>SWI3_EGU3</name>
+ <value>23</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="EGU0">
+ <name>EGU3</name>
+ <description>Event Generator Unit 3</description>
+ <groupName>EGU</groupName>
+ <baseAddress>0x40017000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SWI3</alternatePeripheral>
+ <interrupt>
+ <name>SWI3_EGU3</name>
+ <value>23</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI4</name>
+ <description>Software interrupt 4</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40018000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>SWI4_EGU4</name>
+ <value>24</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="EGU0">
+ <name>EGU4</name>
+ <description>Event Generator Unit 4</description>
+ <groupName>EGU</groupName>
+ <baseAddress>0x40018000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SWI4</alternatePeripheral>
+ <interrupt>
+ <name>SWI4_EGU4</name>
+ <value>24</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI5</name>
+ <description>Software interrupt 5</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40019000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>SWI5_EGU5</name>
+ <value>25</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="EGU0">
+ <name>EGU5</name>
+ <description>Event Generator Unit 5</description>
+ <groupName>EGU</groupName>
+ <baseAddress>0x40019000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SWI5</alternatePeripheral>
+ <interrupt>
+ <name>SWI5_EGU5</name>
+ <value>25</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TIMER0">
+ <name>TIMER3</name>
+ <description>Timer/Counter 3</description>
+ <groupName>TIMER</groupName>
+ <baseAddress>0x4001A000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>TIMER3</name>
+ <value>26</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TIMER0">
+ <name>TIMER4</name>
+ <description>Timer/Counter 4</description>
+ <groupName>TIMER</groupName>
+ <baseAddress>0x4001B000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>TIMER4</name>
+ <value>27</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>PWM0</name>
+ <description>Pulse Width Modulation Unit 0</description>
+ <groupName>PWM</groupName>
+ <baseAddress>0x4001C000</baseAddress>
+ <size>32</size>
+ <headerStructName>PWM</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>PWM0</name>
+ <value>28</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>TASKS_SEQSTART[%s]</name>
+ <description>Description collection[0]: Loads the first PWM value on all enabled channels from sequence 0, and starts playing that sequence at the rate defined in SEQ[0]REFRESH and/or DECODER.MODE. Causes PWM generation to start it was not running.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_NEXTSTEP</name>
+ <description>Steps by one value in the current sequence on all enabled channels if DECODER.MODE=NextStep. Does not cause PWM generation to start it was not running.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>Response to STOP task, emitted when PWM pulses are no longer generated</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>EVENTS_SEQSTARTED[%s]</name>
+ <description>Description collection[0]: First PWM period started on sequence 0</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>EVENTS_SEQEND[%s]</name>
+ <description>Description collection[0]: Emitted at end of every sequence 0, when last value from RAM has been applied to wave counter</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_PWMPERIODEND</name>
+ <description>Emitted at the end of each PWM period</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_LOOPSDONE</name>
+ <description>Concatenated sequences have been played the amount of times defined in LOOP.CNT</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SEQEND0_STOP</name>
+ <description>Shortcut between SEQEND[0] event and STOP task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND1_STOP</name>
+ <description>Shortcut between SEQEND[1] event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE_SEQSTART0</name>
+ <description>Shortcut between LOOPSDONE event and SEQSTART[0] task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE_SEQSTART1</name>
+ <description>Shortcut between LOOPSDONE event and SEQSTART[1] task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE_STOP</name>
+ <description>Shortcut between LOOPSDONE event and STOP task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED0</name>
+ <description>Enable or disable interrupt for SEQSTARTED[0] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED1</name>
+ <description>Enable or disable interrupt for SEQSTARTED[1] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND0</name>
+ <description>Enable or disable interrupt for SEQEND[0] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND1</name>
+ <description>Enable or disable interrupt for SEQEND[1] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PWMPERIODEND</name>
+ <description>Enable or disable interrupt for PWMPERIODEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE</name>
+ <description>Enable or disable interrupt for LOOPSDONE event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED0</name>
+ <description>Write '1' to Enable interrupt for SEQSTARTED[0] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED1</name>
+ <description>Write '1' to Enable interrupt for SEQSTARTED[1] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND0</name>
+ <description>Write '1' to Enable interrupt for SEQEND[0] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND1</name>
+ <description>Write '1' to Enable interrupt for SEQEND[1] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PWMPERIODEND</name>
+ <description>Write '1' to Enable interrupt for PWMPERIODEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE</name>
+ <description>Write '1' to Enable interrupt for LOOPSDONE event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED0</name>
+ <description>Write '1' to Disable interrupt for SEQSTARTED[0] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED1</name>
+ <description>Write '1' to Disable interrupt for SEQSTARTED[1] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND0</name>
+ <description>Write '1' to Disable interrupt for SEQEND[0] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND1</name>
+ <description>Write '1' to Disable interrupt for SEQEND[1] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PWMPERIODEND</name>
+ <description>Write '1' to Disable interrupt for PWMPERIODEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE</name>
+ <description>Write '1' to Disable interrupt for LOOPSDONE event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>PWM module enable register</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable PWM module</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Selects operating mode of the wave counter</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>UPDOWN</name>
+ <description>Selects up or up and down as wave counter mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Up</name>
+ <description>Up counter - edge aligned PWM duty-cycle</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>UpAndDown</name>
+ <description>Up and down counter - center aligned PWM duty cycle</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>COUNTERTOP</name>
+ <description>Value up to which the pulse generator counter counts</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000003FF</resetValue>
+ <fields>
+ <field>
+ <name>COUNTERTOP</name>
+ <description>Value up to which the pulse generator counter counts. This register is ignored when DECODER.MODE=WaveForm and only values from RAM will be used.</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PRESCALER</name>
+ <description>Configuration for PWM_CLK</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PRESCALER</name>
+ <description>Pre-scaler of PWM_CLK</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DIV_1</name>
+ <description>Divide by 1 (16MHz)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_2</name>
+ <description>Divide by 2 ( 8MHz)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_4</name>
+ <description>Divide by 4 ( 4MHz)</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_8</name>
+ <description>Divide by 8 ( 2MHz)</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_16</name>
+ <description>Divide by 16 ( 1MHz)</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_32</name>
+ <description>Divide by 32 ( 500kHz)</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_64</name>
+ <description>Divide by 64 ( 250kHz)</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_128</name>
+ <description>Divide by 128 ( 125kHz)</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DECODER</name>
+ <description>Configuration of the decoder</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>LOAD</name>
+ <description>How a sequence is read from RAM and spread to the compare register</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Common</name>
+ <description>1st half word (16-bit) used in all PWM channels 0..3</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Grouped</name>
+ <description>1st half word (16-bit) used in channel 0..1; 2nd word in channel 2..3</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Individual</name>
+ <description>1st half word (16-bit) in ch.0; 2nd in ch.1; ...; 4th in ch.3</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>WaveForm</name>
+ <description>1st half word (16-bit) in ch.0; 2nd in ch.1; ...; 4th in COUNTERTOP</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>MODE</name>
+ <description>Selects source for advancing the active sequence</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RefreshCount</name>
+ <description>SEQ[n].REFRESH is used to determine loading internal compare registers</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NextStep</name>
+ <description>NEXTSTEP task causes a new value to be loaded to internal compare registers</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LOOP</name>
+ <description>Amount of playback of a loop</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Amount of playback of pattern cycles</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Looping disabled (stop at the end of the sequence)</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>2</dim>
+ <dimIncrement>32</dimIncrement>
+ <name>SEQ[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>PWM_SEQ</headerStructName>
+ <addressOffset>0x520</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Description cluster[0]: Beginning address in Data RAM of this sequence</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Beginning address in Data RAM of this sequence</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CNT</name>
+ <description>Description cluster[0]: Amount of values (duty cycles) in this sequence</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Amount of values (duty cycles) in this sequence</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Sequence is disabled, and shall not be started as it is empty</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REFRESH</name>
+ <description>Description cluster[0]: Amount of additional PWM periods between samples loaded into compare register</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Amount of additional PWM periods between samples loaded into compare register (load every REFRESH.CNT+1 PWM periods)</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Continuous</name>
+ <description>Update every PWM period</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENDDELAY</name>
+ <description>Description cluster[0]: Time added after the sequence</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Time added after the sequence in PWM periods</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>PWM_PSEL</headerStructName>
+ <addressOffset>0x560</addressOffset>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>OUT[%s]</name>
+ <description>Description collection[0]: Output pin select for PWM channel 0</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>PDM</name>
+ <description>Pulse Density Modulation (Digital Microphone) Interface</description>
+ <groupName>PDM</groupName>
+ <baseAddress>0x4001D000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>PDM</name>
+ <value>29</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Starts continuous PDM transfer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stops PDM transfer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_STARTED</name>
+ <description>PDM transfer has started</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>PDM transfer has finished</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>The PDM has written the last sample specified by SAMPLE.MAXCNT (or the last sample after a STOP task has been received) to Data RAM</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Enable or disable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Enable or disable interrupt for END event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Enable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Enable interrupt for END event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Disable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Disable interrupt for END event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>PDM module enable register</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable PDM module</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PDMCLKCTRL</name>
+ <description>PDM clock generator control</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x08400000</resetValue>
+ <fields>
+ <field>
+ <name>FREQ</name>
+ <description>PDM_CLK frequency</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>1000K</name>
+ <description>PDM_CLK = 32 MHz / 32 = 1.000 MHz</description>
+ <value>0x08000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>PDM_CLK = 32 MHz / 31 = 1.032 MHz</description>
+ <value>0x08400000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1067K</name>
+ <description>PDM_CLK = 32 MHz / 30 = 1.067 MHz</description>
+ <value>0x08800000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Defines the routing of the connected PDM microphones' signals</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>OPERATION</name>
+ <description>Mono or stereo operation</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Stereo</name>
+ <description>Sample and store one pair (Left + Right) of 16bit samples per RAM word R=[31:16]; L=[15:0]</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Mono</name>
+ <description>Sample and store two successive Left samples (16 bit each) per RAM word L1=[31:16]; L0=[15:0]</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EDGE</name>
+ <description>Defines on which PDM_CLK edge Left (or mono) is sampled</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>LeftFalling</name>
+ <description>Left (or mono) is sampled on falling edge of PDM_CLK</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LeftRising</name>
+ <description>Left (or mono) is sampled on rising edge of PDM_CLK</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>GAINL</name>
+ <description>Left output gain adjustment</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000028</resetValue>
+ <fields>
+ <field>
+ <name>GAINL</name>
+ <description>Left output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters) 0x00 -20 dB gain adjust 0x01 -19.5 dB gain adjust (...) 0x27 -0.5 dB gain adjust 0x28 0 dB gain adjust 0x29 +0.5 dB gain adjust (...) 0x4F +19.5 dB gain adjust 0x50 +20 dB gain adjust</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MinGain</name>
+ <description>-20dB gain adjustment (minimum)</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DefaultGain</name>
+ <description>0dB gain adjustment ('2500 RMS' requirement)</description>
+ <value>0x28</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>MaxGain</name>
+ <description>+20dB gain adjustment (maximum)</description>
+ <value>0x50</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>GAINR</name>
+ <description>Right output gain adjustment</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000028</resetValue>
+ <fields>
+ <field>
+ <name>GAINR</name>
+ <description>Right output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters)</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MinGain</name>
+ <description>-20dB gain adjustment (minimum)</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DefaultGain</name>
+ <description>0dB gain adjustment ('2500 RMS' requirement)</description>
+ <value>0x28</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>MaxGain</name>
+ <description>+20dB gain adjustment (maximum)</description>
+ <value>0x50</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <addressOffset>0x540</addressOffset>
+ <register>
+ <name>CLK</name>
+ <description>Pin number configuration for PDM CLK signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIN</name>
+ <description>Pin number configuration for PDM DIN signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>SAMPLE</name>
+ <description>Unspecified</description>
+ <addressOffset>0x560</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>RAM address pointer to write samples to with EasyDMA</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SAMPLEPTR</name>
+ <description>Address to write PDM samples to over DMA</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Number of samples to allocate memory for in EasyDMA mode</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BUFFSIZE</name>
+ <description>Length of DMA RAM allocation in number of samples</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>NVMC</name>
+ <description>Non Volatile Memory Controller</description>
+ <groupName>NVMC</groupName>
+ <baseAddress>0x4001E000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <registers>
+ <register>
+ <name>READY</name>
+ <description>Ready flag</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>NVMC is ready or busy</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Busy</name>
+ <description>NVMC is busy (on-going write or erase operation)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ready</name>
+ <description>NVMC is ready</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>WEN</name>
+ <description>Program memory access mode. It is strongly recommended to only activate erase and write modes when they are actively used. Enabling write or erase will invalidate the cache and keep it invalidated.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Ren</name>
+ <description>Read only access</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Wen</name>
+ <description>Write Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Een</name>
+ <description>Erase enabled</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEPAGE</name>
+ <description>Register for erasing a page in Code area</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEPAGE</name>
+ <description>Register for starting erase of a page in Code area</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEPCR1</name>
+ <description>Deprecated register - Register for erasing a page in Code area. Equivalent to ERASEPAGE.</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <alternateRegister>ERASEPAGE</alternateRegister>
+ <fields>
+ <field>
+ <name>ERASEPCR1</name>
+ <description>Register for erasing a page in Code area. Equivalent to ERASEPAGE.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEALL</name>
+ <description>Register for erasing all non-volatile user memory</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEALL</name>
+ <description>Erase all non-volatile memory including UICR registers. Note that code erase has to be enabled by CONFIG.EEN before the UICR can be erased.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoOperation</name>
+ <description>No operation</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Erase</name>
+ <description>Start chip erase</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEPCR0</name>
+ <description>Deprecated register - Register for erasing a page in Code area. Equivalent to ERASEPAGE.</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEPCR0</name>
+ <description>Register for starting erase of a page in Code area. Equivalent to ERASEPAGE.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEUICR</name>
+ <description>Register for erasing User Information Configuration Registers</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEUICR</name>
+ <description>Register starting erase of all User Information Configuration Registers. Note that code erase has to be enabled by CONFIG.EEN before the UICR can be erased.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoOperation</name>
+ <description>No operation</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Erase</name>
+ <description>Start erase of UICR</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ICACHECNF</name>
+ <description>I-Code cache configuration register.</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CACHEEN</name>
+ <description>Cache enable</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable cache. Invalidates all cache entries.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable cache</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CACHEPROFEN</name>
+ <description>Cache profiling enable</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable cache profiling</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable cache profiling</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IHIT</name>
+ <description>I-Code cache hit counter.</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HITS</name>
+ <description>Number of cache hits</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IMISS</name>
+ <description>I-Code cache miss counter.</description>
+ <addressOffset>0x54C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MISSES</name>
+ <description>Number of cache misses</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>PPI</name>
+ <description>Programmable Peripheral Interconnect</description>
+ <groupName>PPI</groupName>
+ <baseAddress>0x4001F000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <registers>
+ <cluster>
+ <dim>6</dim>
+ <dimIncrement>8</dimIncrement>
+ <name>TASKS_CHG[%s]</name>
+ <description>Channel group tasks</description>
+ <addressOffset>0x000</addressOffset>
+ <register>
+ <name>EN</name>
+ <description>Description cluster[0]: Enable channel group 0</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>DIS</name>
+ <description>Description cluster[0]: Disable channel group 0</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ </cluster>
+ <register>
+ <name>CHEN</name>
+ <description>Channel enable register</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Enable or disable channel 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Enable or disable channel 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Enable or disable channel 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Enable or disable channel 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Enable or disable channel 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Enable or disable channel 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Enable or disable channel 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Enable or disable channel 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Enable or disable channel 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Enable or disable channel 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Enable or disable channel 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Enable or disable channel 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Enable or disable channel 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Enable or disable channel 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Enable or disable channel 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Enable or disable channel 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH16</name>
+ <description>Enable or disable channel 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH17</name>
+ <description>Enable or disable channel 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH18</name>
+ <description>Enable or disable channel 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH19</name>
+ <description>Enable or disable channel 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Enable or disable channel 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Enable or disable channel 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Enable or disable channel 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Enable or disable channel 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Enable or disable channel 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Enable or disable channel 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Enable or disable channel 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Enable or disable channel 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Enable or disable channel 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Enable or disable channel 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Enable or disable channel 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Enable or disable channel 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CHENSET</name>
+ <description>Channel enable set register</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToSet</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Channel 0 enable set register. Writing '0' has no effect</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Channel 1 enable set register. Writing '0' has no effect</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Channel 2 enable set register. Writing '0' has no effect</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Channel 3 enable set register. Writing '0' has no effect</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Channel 4 enable set register. Writing '0' has no effect</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Channel 5 enable set register. Writing '0' has no effect</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Channel 6 enable set register. Writing '0' has no effect</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Channel 7 enable set register. Writing '0' has no effect</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Channel 8 enable set register. Writing '0' has no effect</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Channel 9 enable set register. Writing '0' has no effect</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Channel 10 enable set register. Writing '0' has no effect</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Channel 11 enable set register. Writing '0' has no effect</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Channel 12 enable set register. Writing '0' has no effect</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Channel 13 enable set register. Writing '0' has no effect</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Channel 14 enable set register. Writing '0' has no effect</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Channel 15 enable set register. Writing '0' has no effect</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH16</name>
+ <description>Channel 16 enable set register. Writing '0' has no effect</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH17</name>
+ <description>Channel 17 enable set register. Writing '0' has no effect</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH18</name>
+ <description>Channel 18 enable set register. Writing '0' has no effect</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH19</name>
+ <description>Channel 19 enable set register. Writing '0' has no effect</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Channel 20 enable set register. Writing '0' has no effect</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Channel 21 enable set register. Writing '0' has no effect</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Channel 22 enable set register. Writing '0' has no effect</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Channel 23 enable set register. Writing '0' has no effect</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Channel 24 enable set register. Writing '0' has no effect</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Channel 25 enable set register. Writing '0' has no effect</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Channel 26 enable set register. Writing '0' has no effect</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Channel 27 enable set register. Writing '0' has no effect</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Channel 28 enable set register. Writing '0' has no effect</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Channel 29 enable set register. Writing '0' has no effect</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Channel 30 enable set register. Writing '0' has no effect</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Channel 31 enable set register. Writing '0' has no effect</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CHENCLR</name>
+ <description>Channel enable clear register</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Channel 0 enable clear register. Writing '0' has no effect</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Channel 1 enable clear register. Writing '0' has no effect</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Channel 2 enable clear register. Writing '0' has no effect</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Channel 3 enable clear register. Writing '0' has no effect</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Channel 4 enable clear register. Writing '0' has no effect</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Channel 5 enable clear register. Writing '0' has no effect</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Channel 6 enable clear register. Writing '0' has no effect</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Channel 7 enable clear register. Writing '0' has no effect</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Channel 8 enable clear register. Writing '0' has no effect</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Channel 9 enable clear register. Writing '0' has no effect</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Channel 10 enable clear register. Writing '0' has no effect</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Channel 11 enable clear register. Writing '0' has no effect</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Channel 12 enable clear register. Writing '0' has no effect</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Channel 13 enable clear register. Writing '0' has no effect</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Channel 14 enable clear register. Writing '0' has no effect</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Channel 15 enable clear register. Writing '0' has no effect</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH16</name>
+ <description>Channel 16 enable clear register. Writing '0' has no effect</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH17</name>
+ <description>Channel 17 enable clear register. Writing '0' has no effect</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH18</name>
+ <description>Channel 18 enable clear register. Writing '0' has no effect</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH19</name>
+ <description>Channel 19 enable clear register. Writing '0' has no effect</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Channel 20 enable clear register. Writing '0' has no effect</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Channel 21 enable clear register. Writing '0' has no effect</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Channel 22 enable clear register. Writing '0' has no effect</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Channel 23 enable clear register. Writing '0' has no effect</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Channel 24 enable clear register. Writing '0' has no effect</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Channel 25 enable clear register. Writing '0' has no effect</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Channel 26 enable clear register. Writing '0' has no effect</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Channel 27 enable clear register. Writing '0' has no effect</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Channel 28 enable clear register. Writing '0' has no effect</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Channel 29 enable clear register. Writing '0' has no effect</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Channel 30 enable clear register. Writing '0' has no effect</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Channel 31 enable clear register. Writing '0' has no effect</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>20</dim>
+ <dimIncrement>8</dimIncrement>
+ <name>CH[%s]</name>
+ <description>PPI Channel</description>
+ <addressOffset>0x510</addressOffset>
+ <register>
+ <name>EEP</name>
+ <description>Description cluster[0]: Channel 0 event end-point</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EEP</name>
+ <description>Pointer to event register. Accepts only addresses to registers from the Event group.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TEP</name>
+ <description>Description cluster[0]: Channel 0 task end-point</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TEP</name>
+ <description>Pointer to task register. Accepts only addresses to registers from the Task group.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <dim>6</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>CHG[%s]</name>
+ <description>Description collection[0]: Channel group 0</description>
+ <addressOffset>0x800</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Include or exclude channel 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Include or exclude channel 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Include or exclude channel 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Include or exclude channel 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Include or exclude channel 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Include or exclude channel 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Include or exclude channel 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Include or exclude channel 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Include or exclude channel 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Include or exclude channel 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Include or exclude channel 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Include or exclude channel 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Include or exclude channel 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Include or exclude channel 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Include or exclude channel 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Include or exclude channel 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH16</name>
+ <description>Include or exclude channel 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH17</name>
+ <description>Include or exclude channel 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH18</name>
+ <description>Include or exclude channel 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH19</name>
+ <description>Include or exclude channel 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Include or exclude channel 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Include or exclude channel 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Include or exclude channel 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Include or exclude channel 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Include or exclude channel 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Include or exclude channel 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Include or exclude channel 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Include or exclude channel 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Include or exclude channel 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Include or exclude channel 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Include or exclude channel 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Include or exclude channel 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>32</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>FORK[%s]</name>
+ <description>Fork</description>
+ <addressOffset>0x910</addressOffset>
+ <register>
+ <name>TEP</name>
+ <description>Description cluster[0]: Channel 0 task end-point</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TEP</name>
+ <description>Pointer to task register</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>MWU</name>
+ <description>Memory Watch Unit</description>
+ <groupName>MWU</groupName>
+ <baseAddress>0x40020000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>MWU</name>
+ <value>32</value>
+ </interrupt>
+ <registers>
+ <cluster>
+ <dim>4</dim>
+ <dimIncrement>8</dimIncrement>
+ <name>EVENTS_REGION[%s]</name>
+ <description>Unspecified</description>
+ <addressOffset>0x100</addressOffset>
+ <register>
+ <name>WA</name>
+ <description>Description cluster[0]: Write access to region 0 detected</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>RA</name>
+ <description>Description cluster[0]: Read access to region 0 detected</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ </register>
+ </cluster>
+ <cluster>
+ <dim>2</dim>
+ <dimIncrement>8</dimIncrement>
+ <name>EVENTS_PREGION[%s]</name>
+ <description>Unspecified</description>
+ <addressOffset>0x160</addressOffset>
+ <register>
+ <name>WA</name>
+ <description>Description cluster[0]: Write access to peripheral region 0 detected</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>RA</name>
+ <description>Description cluster[0]: Read access to peripheral region 0 detected</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ </register>
+ </cluster>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0WA</name>
+ <description>Enable or disable interrupt for REGION[0].WA event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION0RA</name>
+ <description>Enable or disable interrupt for REGION[0].RA event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1WA</name>
+ <description>Enable or disable interrupt for REGION[1].WA event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1RA</name>
+ <description>Enable or disable interrupt for REGION[1].RA event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2WA</name>
+ <description>Enable or disable interrupt for REGION[2].WA event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2RA</name>
+ <description>Enable or disable interrupt for REGION[2].RA event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3WA</name>
+ <description>Enable or disable interrupt for REGION[3].WA event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3RA</name>
+ <description>Enable or disable interrupt for REGION[3].RA event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0WA</name>
+ <description>Enable or disable interrupt for PREGION[0].WA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0RA</name>
+ <description>Enable or disable interrupt for PREGION[0].RA event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1WA</name>
+ <description>Enable or disable interrupt for PREGION[1].WA event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1RA</name>
+ <description>Enable or disable interrupt for PREGION[1].RA event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0WA</name>
+ <description>Write '1' to Enable interrupt for REGION[0].WA event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION0RA</name>
+ <description>Write '1' to Enable interrupt for REGION[0].RA event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1WA</name>
+ <description>Write '1' to Enable interrupt for REGION[1].WA event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1RA</name>
+ <description>Write '1' to Enable interrupt for REGION[1].RA event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2WA</name>
+ <description>Write '1' to Enable interrupt for REGION[2].WA event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2RA</name>
+ <description>Write '1' to Enable interrupt for REGION[2].RA event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3WA</name>
+ <description>Write '1' to Enable interrupt for REGION[3].WA event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3RA</name>
+ <description>Write '1' to Enable interrupt for REGION[3].RA event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0WA</name>
+ <description>Write '1' to Enable interrupt for PREGION[0].WA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0RA</name>
+ <description>Write '1' to Enable interrupt for PREGION[0].RA event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1WA</name>
+ <description>Write '1' to Enable interrupt for PREGION[1].WA event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1RA</name>
+ <description>Write '1' to Enable interrupt for PREGION[1].RA event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0WA</name>
+ <description>Write '1' to Disable interrupt for REGION[0].WA event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION0RA</name>
+ <description>Write '1' to Disable interrupt for REGION[0].RA event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1WA</name>
+ <description>Write '1' to Disable interrupt for REGION[1].WA event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1RA</name>
+ <description>Write '1' to Disable interrupt for REGION[1].RA event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2WA</name>
+ <description>Write '1' to Disable interrupt for REGION[2].WA event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2RA</name>
+ <description>Write '1' to Disable interrupt for REGION[2].RA event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3WA</name>
+ <description>Write '1' to Disable interrupt for REGION[3].WA event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3RA</name>
+ <description>Write '1' to Disable interrupt for REGION[3].RA event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0WA</name>
+ <description>Write '1' to Disable interrupt for PREGION[0].WA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0RA</name>
+ <description>Write '1' to Disable interrupt for PREGION[0].RA event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1WA</name>
+ <description>Write '1' to Disable interrupt for PREGION[1].WA event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1RA</name>
+ <description>Write '1' to Disable interrupt for PREGION[1].RA event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NMIEN</name>
+ <description>Enable or disable non-maskable interrupt</description>
+ <addressOffset>0x320</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0WA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[0].WA event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION0RA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[0].RA event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1WA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[1].WA event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1RA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[1].RA event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2WA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[2].WA event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2RA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[2].RA event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3WA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[3].WA event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3RA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[3].RA event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0WA</name>
+ <description>Enable or disable non-maskable interrupt for PREGION[0].WA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0RA</name>
+ <description>Enable or disable non-maskable interrupt for PREGION[0].RA event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1WA</name>
+ <description>Enable or disable non-maskable interrupt for PREGION[1].WA event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1RA</name>
+ <description>Enable or disable non-maskable interrupt for PREGION[1].RA event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NMIENSET</name>
+ <description>Enable non-maskable interrupt</description>
+ <addressOffset>0x324</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0WA</name>
+ <description>Write '1' to Enable non-maskable interrupt for REGION[0].WA event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION0RA</name>
+ <description>Write '1' to Enable non-maskable interrupt for REGION[0].RA event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1WA</name>
+ <description>Write '1' to Enable non-maskable interrupt for REGION[1].WA event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1RA</name>
+ <description>Write '1' to Enable non-maskable interrupt for REGION[1].RA event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2WA</name>
+ <description>Write '1' to Enable non-maskable interrupt for REGION[2].WA event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2RA</name>
+ <description>Write '1' to Enable non-maskable interrupt for REGION[2].RA event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3WA</name>
+ <description>Write '1' to Enable non-maskable interrupt for REGION[3].WA event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3RA</name>
+ <description>Write '1' to Enable non-maskable interrupt for REGION[3].RA event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0WA</name>
+ <description>Write '1' to Enable non-maskable interrupt for PREGION[0].WA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0RA</name>
+ <description>Write '1' to Enable non-maskable interrupt for PREGION[0].RA event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1WA</name>
+ <description>Write '1' to Enable non-maskable interrupt for PREGION[1].WA event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1RA</name>
+ <description>Write '1' to Enable non-maskable interrupt for PREGION[1].RA event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NMIENCLR</name>
+ <description>Disable non-maskable interrupt</description>
+ <addressOffset>0x328</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0WA</name>
+ <description>Write '1' to Disable non-maskable interrupt for REGION[0].WA event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION0RA</name>
+ <description>Write '1' to Disable non-maskable interrupt for REGION[0].RA event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1WA</name>
+ <description>Write '1' to Disable non-maskable interrupt for REGION[1].WA event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1RA</name>
+ <description>Write '1' to Disable non-maskable interrupt for REGION[1].RA event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2WA</name>
+ <description>Write '1' to Disable non-maskable interrupt for REGION[2].WA event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2RA</name>
+ <description>Write '1' to Disable non-maskable interrupt for REGION[2].RA event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3WA</name>
+ <description>Write '1' to Disable non-maskable interrupt for REGION[3].WA event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3RA</name>
+ <description>Write '1' to Disable non-maskable interrupt for REGION[3].RA event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0WA</name>
+ <description>Write '1' to Disable non-maskable interrupt for PREGION[0].WA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0RA</name>
+ <description>Write '1' to Disable non-maskable interrupt for PREGION[0].RA event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1WA</name>
+ <description>Write '1' to Disable non-maskable interrupt for PREGION[1].WA event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1RA</name>
+ <description>Write '1' to Disable non-maskable interrupt for PREGION[1].RA event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>2</dim>
+ <dimIncrement>8</dimIncrement>
+ <name>PERREGION[%s]</name>
+ <description>Unspecified</description>
+ <addressOffset>0x400</addressOffset>
+ <register>
+ <name>SUBSTATWA</name>
+ <description>Description cluster[0]: Source of event/interrupt in region 0, write access detected while corresponding subregion was enabled for watching</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>SR0</name>
+ <description>Subregion 0 in region 0 (write '1' to clear)</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR1</name>
+ <description>Subregion 1 in region 0 (write '1' to clear)</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR2</name>
+ <description>Subregion 2 in region 0 (write '1' to clear)</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR3</name>
+ <description>Subregion 3 in region 0 (write '1' to clear)</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR4</name>
+ <description>Subregion 4 in region 0 (write '1' to clear)</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR5</name>
+ <description>Subregion 5 in region 0 (write '1' to clear)</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR6</name>
+ <description>Subregion 6 in region 0 (write '1' to clear)</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR7</name>
+ <description>Subregion 7 in region 0 (write '1' to clear)</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR8</name>
+ <description>Subregion 8 in region 0 (write '1' to clear)</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR9</name>
+ <description>Subregion 9 in region 0 (write '1' to clear)</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR10</name>
+ <description>Subregion 10 in region 0 (write '1' to clear)</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR11</name>
+ <description>Subregion 11 in region 0 (write '1' to clear)</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR12</name>
+ <description>Subregion 12 in region 0 (write '1' to clear)</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR13</name>
+ <description>Subregion 13 in region 0 (write '1' to clear)</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR14</name>
+ <description>Subregion 14 in region 0 (write '1' to clear)</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR15</name>
+ <description>Subregion 15 in region 0 (write '1' to clear)</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR16</name>
+ <description>Subregion 16 in region 0 (write '1' to clear)</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR17</name>
+ <description>Subregion 17 in region 0 (write '1' to clear)</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR18</name>
+ <description>Subregion 18 in region 0 (write '1' to clear)</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR19</name>
+ <description>Subregion 19 in region 0 (write '1' to clear)</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR20</name>
+ <description>Subregion 20 in region 0 (write '1' to clear)</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR21</name>
+ <description>Subregion 21 in region 0 (write '1' to clear)</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR22</name>
+ <description>Subregion 22 in region 0 (write '1' to clear)</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR23</name>
+ <description>Subregion 23 in region 0 (write '1' to clear)</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR24</name>
+ <description>Subregion 24 in region 0 (write '1' to clear)</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR25</name>
+ <description>Subregion 25 in region 0 (write '1' to clear)</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR26</name>
+ <description>Subregion 26 in region 0 (write '1' to clear)</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR27</name>
+ <description>Subregion 27 in region 0 (write '1' to clear)</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR28</name>
+ <description>Subregion 28 in region 0 (write '1' to clear)</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR29</name>
+ <description>Subregion 29 in region 0 (write '1' to clear)</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR30</name>
+ <description>Subregion 30 in region 0 (write '1' to clear)</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR31</name>
+ <description>Subregion 31 in region 0 (write '1' to clear)</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SUBSTATRA</name>
+ <description>Description cluster[0]: Source of event/interrupt in region 0, read access detected while corresponding subregion was enabled for watching</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>SR0</name>
+ <description>Subregion 0 in region 0 (write '1' to clear)</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR1</name>
+ <description>Subregion 1 in region 0 (write '1' to clear)</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR2</name>
+ <description>Subregion 2 in region 0 (write '1' to clear)</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR3</name>
+ <description>Subregion 3 in region 0 (write '1' to clear)</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR4</name>
+ <description>Subregion 4 in region 0 (write '1' to clear)</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR5</name>
+ <description>Subregion 5 in region 0 (write '1' to clear)</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR6</name>
+ <description>Subregion 6 in region 0 (write '1' to clear)</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR7</name>
+ <description>Subregion 7 in region 0 (write '1' to clear)</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR8</name>
+ <description>Subregion 8 in region 0 (write '1' to clear)</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR9</name>
+ <description>Subregion 9 in region 0 (write '1' to clear)</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR10</name>
+ <description>Subregion 10 in region 0 (write '1' to clear)</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR11</name>
+ <description>Subregion 11 in region 0 (write '1' to clear)</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR12</name>
+ <description>Subregion 12 in region 0 (write '1' to clear)</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR13</name>
+ <description>Subregion 13 in region 0 (write '1' to clear)</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR14</name>
+ <description>Subregion 14 in region 0 (write '1' to clear)</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR15</name>
+ <description>Subregion 15 in region 0 (write '1' to clear)</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR16</name>
+ <description>Subregion 16 in region 0 (write '1' to clear)</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR17</name>
+ <description>Subregion 17 in region 0 (write '1' to clear)</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR18</name>
+ <description>Subregion 18 in region 0 (write '1' to clear)</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR19</name>
+ <description>Subregion 19 in region 0 (write '1' to clear)</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR20</name>
+ <description>Subregion 20 in region 0 (write '1' to clear)</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR21</name>
+ <description>Subregion 21 in region 0 (write '1' to clear)</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR22</name>
+ <description>Subregion 22 in region 0 (write '1' to clear)</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR23</name>
+ <description>Subregion 23 in region 0 (write '1' to clear)</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR24</name>
+ <description>Subregion 24 in region 0 (write '1' to clear)</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR25</name>
+ <description>Subregion 25 in region 0 (write '1' to clear)</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR26</name>
+ <description>Subregion 26 in region 0 (write '1' to clear)</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR27</name>
+ <description>Subregion 27 in region 0 (write '1' to clear)</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR28</name>
+ <description>Subregion 28 in region 0 (write '1' to clear)</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR29</name>
+ <description>Subregion 29 in region 0 (write '1' to clear)</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR30</name>
+ <description>Subregion 30 in region 0 (write '1' to clear)</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR31</name>
+ <description>Subregion 31 in region 0 (write '1' to clear)</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>REGIONEN</name>
+ <description>Enable/disable regions watch</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RGN0WA</name>
+ <description>Enable/disable write access watch in region[0]</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable write access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN0RA</name>
+ <description>Enable/disable read access watch in region[0]</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable read access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN1WA</name>
+ <description>Enable/disable write access watch in region[1]</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable write access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN1RA</name>
+ <description>Enable/disable read access watch in region[1]</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable read access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN2WA</name>
+ <description>Enable/disable write access watch in region[2]</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable write access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN2RA</name>
+ <description>Enable/disable read access watch in region[2]</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable read access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN3WA</name>
+ <description>Enable/disable write access watch in region[3]</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable write access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN3RA</name>
+ <description>Enable/disable read access watch in region[3]</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable read access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN0WA</name>
+ <description>Enable/disable write access watch in PREGION[0]</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable write access watch in this PREGION</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable write access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN0RA</name>
+ <description>Enable/disable read access watch in PREGION[0]</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable read access watch in this PREGION</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable read access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN1WA</name>
+ <description>Enable/disable write access watch in PREGION[1]</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable write access watch in this PREGION</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable write access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN1RA</name>
+ <description>Enable/disable read access watch in PREGION[1]</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable read access watch in this PREGION</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable read access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REGIONENSET</name>
+ <description>Enable regions watch</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RGN0WA</name>
+ <description>Enable write access watch in region[0]</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN0RA</name>
+ <description>Enable read access watch in region[0]</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN1WA</name>
+ <description>Enable write access watch in region[1]</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN1RA</name>
+ <description>Enable read access watch in region[1]</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN2WA</name>
+ <description>Enable write access watch in region[2]</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN2RA</name>
+ <description>Enable read access watch in region[2]</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN3WA</name>
+ <description>Enable write access watch in region[3]</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN3RA</name>
+ <description>Enable read access watch in region[3]</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN0WA</name>
+ <description>Enable write access watch in PREGION[0]</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable write access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN0RA</name>
+ <description>Enable read access watch in PREGION[0]</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable read access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN1WA</name>
+ <description>Enable write access watch in PREGION[1]</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable write access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN1RA</name>
+ <description>Enable read access watch in PREGION[1]</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable read access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REGIONENCLR</name>
+ <description>Disable regions watch</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RGN0WA</name>
+ <description>Disable write access watch in region[0]</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN0RA</name>
+ <description>Disable read access watch in region[0]</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN1WA</name>
+ <description>Disable write access watch in region[1]</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN1RA</name>
+ <description>Disable read access watch in region[1]</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN2WA</name>
+ <description>Disable write access watch in region[2]</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN2RA</name>
+ <description>Disable read access watch in region[2]</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN3WA</name>
+ <description>Disable write access watch in region[3]</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN3RA</name>
+ <description>Disable read access watch in region[3]</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN0WA</name>
+ <description>Disable write access watch in PREGION[0]</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable write access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN0RA</name>
+ <description>Disable read access watch in PREGION[0]</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable read access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN1WA</name>
+ <description>Disable write access watch in PREGION[1]</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable write access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN1RA</name>
+ <description>Disable read access watch in PREGION[1]</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable read access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>4</dim>
+ <dimIncrement>16</dimIncrement>
+ <name>REGION[%s]</name>
+ <description>Unspecified</description>
+ <addressOffset>0x600</addressOffset>
+ <register>
+ <name>START</name>
+ <description>Description cluster[0]: Start address for region 0</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>START</name>
+ <description>Start address for region</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>END</name>
+ <description>Description cluster[0]: End address of region 0</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>End address of region.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <dim>2</dim>
+ <dimIncrement>16</dimIncrement>
+ <name>PREGION[%s]</name>
+ <description>Unspecified</description>
+ <addressOffset>0x6C0</addressOffset>
+ <register>
+ <name>START</name>
+ <description>Description cluster[0]: Reserved for future use</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>START</name>
+ <description>Reserved for future use</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>END</name>
+ <description>Description cluster[0]: Reserved for future use</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Reserved for future use</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SUBS</name>
+ <description>Description cluster[0]: Subregions of region 0</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>SR0</name>
+ <description>Include or exclude subregion 0 in region</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR1</name>
+ <description>Include or exclude subregion 1 in region</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR2</name>
+ <description>Include or exclude subregion 2 in region</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR3</name>
+ <description>Include or exclude subregion 3 in region</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR4</name>
+ <description>Include or exclude subregion 4 in region</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR5</name>
+ <description>Include or exclude subregion 5 in region</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR6</name>
+ <description>Include or exclude subregion 6 in region</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR7</name>
+ <description>Include or exclude subregion 7 in region</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR8</name>
+ <description>Include or exclude subregion 8 in region</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR9</name>
+ <description>Include or exclude subregion 9 in region</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR10</name>
+ <description>Include or exclude subregion 10 in region</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR11</name>
+ <description>Include or exclude subregion 11 in region</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR12</name>
+ <description>Include or exclude subregion 12 in region</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR13</name>
+ <description>Include or exclude subregion 13 in region</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR14</name>
+ <description>Include or exclude subregion 14 in region</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR15</name>
+ <description>Include or exclude subregion 15 in region</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR16</name>
+ <description>Include or exclude subregion 16 in region</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR17</name>
+ <description>Include or exclude subregion 17 in region</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR18</name>
+ <description>Include or exclude subregion 18 in region</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR19</name>
+ <description>Include or exclude subregion 19 in region</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR20</name>
+ <description>Include or exclude subregion 20 in region</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR21</name>
+ <description>Include or exclude subregion 21 in region</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR22</name>
+ <description>Include or exclude subregion 22 in region</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR23</name>
+ <description>Include or exclude subregion 23 in region</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR24</name>
+ <description>Include or exclude subregion 24 in region</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR25</name>
+ <description>Include or exclude subregion 25 in region</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR26</name>
+ <description>Include or exclude subregion 26 in region</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR27</name>
+ <description>Include or exclude subregion 27 in region</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR28</name>
+ <description>Include or exclude subregion 28 in region</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR29</name>
+ <description>Include or exclude subregion 29 in region</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR30</name>
+ <description>Include or exclude subregion 30 in region</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR31</name>
+ <description>Include or exclude subregion 31 in region</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="PWM0">
+ <name>PWM1</name>
+ <description>Pulse Width Modulation Unit 1</description>
+ <groupName>PWM</groupName>
+ <baseAddress>0x40021000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>PWM1</name>
+ <value>33</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="PWM0">
+ <name>PWM2</name>
+ <description>Pulse Width Modulation Unit 2</description>
+ <groupName>PWM</groupName>
+ <baseAddress>0x40022000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>PWM2</name>
+ <value>34</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SPIM0">
+ <name>SPIM2</name>
+ <description>Serial Peripheral Interface Master with EasyDMA 2</description>
+ <groupName>SPIM</groupName>
+ <baseAddress>0x40023000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>SPIM2_SPIS2_SPI2</name>
+ <value>35</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SPIS0">
+ <name>SPIS2</name>
+ <description>SPI Slave 2</description>
+ <groupName>SPIS</groupName>
+ <baseAddress>0x40023000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM2</alternatePeripheral>
+ <interrupt>
+ <name>SPIM2_SPIS2_SPI2</name>
+ <value>35</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SPI0">
+ <name>SPI2</name>
+ <description>Serial Peripheral Interface 2</description>
+ <groupName>SPI</groupName>
+ <baseAddress>0x40023000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM2</alternatePeripheral>
+ <interrupt>
+ <name>SPIM2_SPIS2_SPI2</name>
+ <value>35</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="RTC0">
+ <name>RTC2</name>
+ <description>Real time counter 2</description>
+ <groupName>RTC</groupName>
+ <baseAddress>0x40024000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>RTC2</name>
+ <value>36</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>I2S</name>
+ <description>Inter-IC Sound</description>
+ <groupName>I2S</groupName>
+ <baseAddress>0x40025000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>I2S</name>
+ <value>37</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Starts continuous I2S transfer. Also starts MCK generator when this is enabled.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stops I2S transfer. Also stops MCK generator. Triggering this task will cause the {event:STOPPED} event to be generated.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ </register>
+ <register>
+ <name>EVENTS_RXPTRUPD</name>
+ <description>The RXD.PTR register has been copied to internal double-buffers. When the I2S module is started and RX is enabled, this event will be generated for every RXTXD.MAXCNT words that are received on the SDIN pin.</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>I2S transfer stopped.</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>EVENTS_TXPTRUPD</name>
+ <description>The TDX.PTR register has been copied to internal double-buffers. When the I2S module is started and TX is enabled, this event will be generated for every RXTXD.MAXCNT words that are sent on the SDOUT pin.</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RXPTRUPD</name>
+ <description>Enable or disable interrupt for RXPTRUPD event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXPTRUPD</name>
+ <description>Enable or disable interrupt for TXPTRUPD event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RXPTRUPD</name>
+ <description>Write '1' to Enable interrupt for RXPTRUPD event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXPTRUPD</name>
+ <description>Write '1' to Enable interrupt for TXPTRUPD event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RXPTRUPD</name>
+ <description>Write '1' to Disable interrupt for RXPTRUPD event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXPTRUPD</name>
+ <description>Write '1' to Disable interrupt for TXPTRUPD event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable I2S module.</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable I2S module.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>CONFIG</name>
+ <description>Unspecified</description>
+ <addressOffset>0x504</addressOffset>
+ <register>
+ <name>MODE</name>
+ <description>I2S mode.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>I2S mode.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Master</name>
+ <description>Master mode. SCK and LRCK generated from internal master clcok (MCK) and output on pins defined by PSEL.xxx.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Slave</name>
+ <description>Slave mode. SCK and LRCK generated by external master and received on pins defined by PSEL.xxx</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXEN</name>
+ <description>Reception (RX) enable.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>RXEN</name>
+ <description>Reception (RX) enable.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Reception disabled and now data will be written to the RXD.PTR address.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Reception enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXEN</name>
+ <description>Transmission (TX) enable.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>TXEN</name>
+ <description>Transmission (TX) enable.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Transmission disabled and now data will be read from the RXD.TXD address.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Transmission enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MCKEN</name>
+ <description>Master clock generator enable.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>MCKEN</name>
+ <description>Master clock generator enable.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Master clock generator disabled and PSEL.MCK not connected(available as GPIO).</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Master clock generator running and MCK output on PSEL.MCK.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MCKFREQ</name>
+ <description>Master clock generator frequency.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x20000000</resetValue>
+ <fields>
+ <field>
+ <name>MCKFREQ</name>
+ <description>Master clock generator frequency.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>32MDIV2</name>
+ <description>32 MHz / 2 = 16.0 MHz</description>
+ <value>0x80000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV3</name>
+ <description>32 MHz / 3 = 10.6666667 MHz</description>
+ <value>0x50000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV4</name>
+ <description>32 MHz / 4 = 8.0 MHz</description>
+ <value>0x40000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV5</name>
+ <description>32 MHz / 5 = 6.4 MHz</description>
+ <value>0x30000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV6</name>
+ <description>32 MHz / 6 = 5.3333333 MHz</description>
+ <value>0x28000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV8</name>
+ <description>32 MHz / 8 = 4.0 MHz</description>
+ <value>0x20000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV10</name>
+ <description>32 MHz / 10 = 3.2 MHz</description>
+ <value>0x18000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV11</name>
+ <description>32 MHz / 11 = 2.9090909 MHz</description>
+ <value>0x16000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV15</name>
+ <description>32 MHz / 15 = 2.1333333 MHz</description>
+ <value>0x11000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV16</name>
+ <description>32 MHz / 16 = 2.0 MHz</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV21</name>
+ <description>32 MHz / 21 = 1.5238095</description>
+ <value>0x0C000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV23</name>
+ <description>32 MHz / 23 = 1.3913043 MHz</description>
+ <value>0x0B000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV30</name>
+ <description>32 MHz / 30 = 1.0666667 MHz</description>
+ <value>0x08800000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV31</name>
+ <description>32 MHz / 31 = 1.0322581 MHz</description>
+ <value>0x08400000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV32</name>
+ <description>32 MHz / 32 = 1.0 MHz</description>
+ <value>0x08000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV42</name>
+ <description>32 MHz / 42 = 0.7619048 MHz</description>
+ <value>0x06000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV63</name>
+ <description>32 MHz / 63 = 0.5079365 MHz</description>
+ <value>0x04100000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV125</name>
+ <description>32 MHz / 125 = 0.256 MHz</description>
+ <value>0x020C0000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RATIO</name>
+ <description>MCK / LRCK ratio.</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000006</resetValue>
+ <fields>
+ <field>
+ <name>RATIO</name>
+ <description>MCK / LRCK ratio.</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>32X</name>
+ <description>LRCK = MCK / 32</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>48X</name>
+ <description>LRCK = MCK / 48</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>64X</name>
+ <description>LRCK = MCK / 64</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>96X</name>
+ <description>LRCK = MCK / 96</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>128X</name>
+ <description>LRCK = MCK / 128</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>192X</name>
+ <description>LRCK = MCK / 192</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>256X</name>
+ <description>LRCK = MCK / 256</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>384X</name>
+ <description>LRCK = MCK / 384</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>512X</name>
+ <description>LRCK = MCK / 512</description>
+ <value>8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SWIDTH</name>
+ <description>Sample width.</description>
+ <addressOffset>0x018</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>SWIDTH</name>
+ <description>Sample width.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>8Bit</name>
+ <description>8 bit.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>16Bit</name>
+ <description>16 bit.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>24Bit</name>
+ <description>24 bit.</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ALIGN</name>
+ <description>Alignment of sample within a frame.</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>ALIGN</name>
+ <description>Alignment of sample within a frame.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Left</name>
+ <description>Left-aligned.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Right</name>
+ <description>Right-aligned.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FORMAT</name>
+ <description>Frame format.</description>
+ <addressOffset>0x020</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>FORMAT</name>
+ <description>Frame format.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>I2S</name>
+ <description>Original I2S format.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Aligned</name>
+ <description>Alternate (left- or right-aligned) format.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CHANNELS</name>
+ <description>Enable channels.</description>
+ <addressOffset>0x024</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CHANNELS</name>
+ <description>Enable channels.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Stereo</name>
+ <description>Stereo.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Left</name>
+ <description>Left only.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Right</name>
+ <description>Right only.</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>RXD</name>
+ <description>Unspecified</description>
+ <addressOffset>0x538</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Receive buffer RAM start address.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Receive buffer Data RAM start address. When receiving, words containing samples will be written to this address. This address is a word aligned Data RAM address.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>Unspecified</description>
+ <addressOffset>0x540</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Transmit buffer RAM start address.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Transmit buffer Data RAM start address. When transmitting, words containing samples will be fetched from this address. This address is a word aligned Data RAM address.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>RXTXD</name>
+ <description>Unspecified</description>
+ <addressOffset>0x550</addressOffset>
+ <register>
+ <name>MAXCNT</name>
+ <description>Size of RXD and TXD buffers.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Size of RXD and TXD buffers in number of 32 bit words.</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <addressOffset>0x560</addressOffset>
+ <register>
+ <name>MCK</name>
+ <description>Pin select for MCK signal.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SCK</name>
+ <description>Pin select for SCK signal.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LRCK</name>
+ <description>Pin select for LRCK signal.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SDIN</name>
+ <description>Pin select for SDIN signal.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SDOUT</name>
+ <description>Pin select for SDOUT signal.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>FPU</name>
+ <description>FPU</description>
+ <groupName>FPU</groupName>
+ <baseAddress>0x40026000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>FPU</name>
+ <value>38</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>UNUSED</name>
+ <description>Unused.</description>
+ <addressOffset>0x000</addressOffset>
+ <resetValue>0x00000000</resetValue>
+ <access>read-only</access>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>P0</name>
+ <description>GPIO Port 1</description>
+ <groupName>GPIO</groupName>
+ <baseAddress>0x50000000</baseAddress>
+ <size>32</size>
+ <headerStructName>GPIO</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <registers>
+ <register>
+ <name>OUT</name>
+ <description>Write GPIO port</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OUTSET</name>
+ <description>Set individual bits in GPIO port</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToSet</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OUTCLR</name>
+ <description>Clear individual bits in GPIO port</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IN</name>
+ <description>Read GPIO port</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIR</name>
+ <description>Direction of GPIO pins</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIRSET</name>
+ <description>DIR set register</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToSet</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Set as output pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Set as output pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Set as output pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Set as output pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Set as output pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Set as output pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Set as output pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Set as output pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Set as output pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Set as output pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Set as output pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Set as output pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Set as output pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Set as output pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Set as output pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Set as output pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Set as output pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Set as output pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Set as output pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Set as output pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Set as output pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Set as output pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Set as output pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Set as output pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Set as output pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Set as output pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Set as output pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Set as output pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Set as output pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Set as output pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Set as output pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Set as output pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIRCLR</name>
+ <description>DIR clear register</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Set as input pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Set as input pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Set as input pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Set as input pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Set as input pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Set as input pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Set as input pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Set as input pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Set as input pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Set as input pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Set as input pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Set as input pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Set as input pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Set as input pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Set as input pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Set as input pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Set as input pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Set as input pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Set as input pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Set as input pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Set as input pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Set as input pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Set as input pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Set as input pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Set as input pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Set as input pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Set as input pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Set as input pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Set as input pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Set as input pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Set as input pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Set as input pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LATCH</name>
+ <description>Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF[n].SENSE registers</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Status on whether PIN0 has met criteria set in PIN_CNF0.SENSE register. Write '1' to clear.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Status on whether PIN1 has met criteria set in PIN_CNF1.SENSE register. Write '1' to clear.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Status on whether PIN2 has met criteria set in PIN_CNF2.SENSE register. Write '1' to clear.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Status on whether PIN3 has met criteria set in PIN_CNF3.SENSE register. Write '1' to clear.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Status on whether PIN4 has met criteria set in PIN_CNF4.SENSE register. Write '1' to clear.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Status on whether PIN5 has met criteria set in PIN_CNF5.SENSE register. Write '1' to clear.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Status on whether PIN6 has met criteria set in PIN_CNF6.SENSE register. Write '1' to clear.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Status on whether PIN7 has met criteria set in PIN_CNF7.SENSE register. Write '1' to clear.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Status on whether PIN8 has met criteria set in PIN_CNF8.SENSE register. Write '1' to clear.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Status on whether PIN9 has met criteria set in PIN_CNF9.SENSE register. Write '1' to clear.</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Status on whether PIN10 has met criteria set in PIN_CNF10.SENSE register. Write '1' to clear.</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Status on whether PIN11 has met criteria set in PIN_CNF11.SENSE register. Write '1' to clear.</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Status on whether PIN12 has met criteria set in PIN_CNF12.SENSE register. Write '1' to clear.</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Status on whether PIN13 has met criteria set in PIN_CNF13.SENSE register. Write '1' to clear.</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Status on whether PIN14 has met criteria set in PIN_CNF14.SENSE register. Write '1' to clear.</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Status on whether PIN15 has met criteria set in PIN_CNF15.SENSE register. Write '1' to clear.</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Status on whether PIN16 has met criteria set in PIN_CNF16.SENSE register. Write '1' to clear.</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Status on whether PIN17 has met criteria set in PIN_CNF17.SENSE register. Write '1' to clear.</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Status on whether PIN18 has met criteria set in PIN_CNF18.SENSE register. Write '1' to clear.</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Status on whether PIN19 has met criteria set in PIN_CNF19.SENSE register. Write '1' to clear.</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Status on whether PIN20 has met criteria set in PIN_CNF20.SENSE register. Write '1' to clear.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Status on whether PIN21 has met criteria set in PIN_CNF21.SENSE register. Write '1' to clear.</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Status on whether PIN22 has met criteria set in PIN_CNF22.SENSE register. Write '1' to clear.</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Status on whether PIN23 has met criteria set in PIN_CNF23.SENSE register. Write '1' to clear.</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Status on whether PIN24 has met criteria set in PIN_CNF24.SENSE register. Write '1' to clear.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Status on whether PIN25 has met criteria set in PIN_CNF25.SENSE register. Write '1' to clear.</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Status on whether PIN26 has met criteria set in PIN_CNF26.SENSE register. Write '1' to clear.</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Status on whether PIN27 has met criteria set in PIN_CNF27.SENSE register. Write '1' to clear.</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Status on whether PIN28 has met criteria set in PIN_CNF28.SENSE register. Write '1' to clear.</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Status on whether PIN29 has met criteria set in PIN_CNF29.SENSE register. Write '1' to clear.</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Status on whether PIN30 has met criteria set in PIN_CNF30.SENSE register. Write '1' to clear.</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Status on whether PIN31 has met criteria set in PIN_CNF31.SENSE register. Write '1' to clear.</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DETECTMODE</name>
+ <description>Select between default DETECT signal behaviour and LDETECT mode</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DETECTMODE</name>
+ <description>Select between default DETECT signal behaviour and LDETECT mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>DETECT directly connected to PIN DETECT signals</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LDETECT</name>
+ <description>Use the latched LDETECT behaviour</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>32</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>PIN_CNF[%s]</name>
+ <description>Description collection[0]: Configuration of GPIO pins</description>
+ <addressOffset>0x700</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000002</resetValue>
+ <fields>
+ <field>
+ <name>DIR</name>
+ <description>Pin direction. Same physical register as DIR register</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Configure pin as an input pin</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Configure pin as an output pin</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>INPUT</name>
+ <description>Connect or disconnect input buffer</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Connect</name>
+ <description>Connect input buffer</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Disconnect</name>
+ <description>Disconnect input buffer</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PULL</name>
+ <description>Pull configuration</description>
+ <lsb>2</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>No pull</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pulldown</name>
+ <description>Pull down on pin</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pullup</name>
+ <description>Pull up on pin</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DRIVE</name>
+ <description>Drive configuration</description>
+ <lsb>8</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>S0S1</name>
+ <description>Standard '0', standard '1'</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>H0S1</name>
+ <description>High drive '0', standard '1'</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>S0H1</name>
+ <description>Standard '0', high drive '1'</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>H0H1</name>
+ <description>High drive '0', high 'drive '1''</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>D0S1</name>
+ <description>Disconnect '0' standard '1' (normally used for wired-or connections)</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>D0H1</name>
+ <description>Disconnect '0', high drive '1' (normally used for wired-or connections)</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>S0D1</name>
+ <description>Standard '0'. disconnect '1' (normally used for wired-and connections)</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>H0D1</name>
+ <description>High drive '0', disconnect '1' (normally used for wired-and connections)</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SENSE</name>
+ <description>Pin sensing mechanism</description>
+ <lsb>16</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Sense for high level</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Sense for low level</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ </peripherals>
+</device> \ No newline at end of file
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810.h
new file mode 100644
index 0000000..c206f6a
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810.h
@@ -0,0 +1,1588 @@
+
+/****************************************************************************************************//**
+ * @file nrf52810.h
+ *
+ * @brief CMSIS Cortex-M4 Peripheral Access Layer Header File for
+ * nrf52810 from Nordic Semiconductor.
+ *
+ * @version V1
+ * @date 8. March 2018
+ *
+ * @note Generated with SVDConv V2.81d
+ * from CMSIS SVD File 'nrf52810.svd' Version 1,
+ *
+ * @par Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ *
+ *******************************************************************************************************/
+
+
+
+/** @addtogroup Nordic Semiconductor
+ * @{
+ */
+
+/** @addtogroup nrf52810
+ * @{
+ */
+
+#ifndef NRF52810_H
+#define NRF52810_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* ------------------------- Interrupt Number Definition ------------------------ */
+
+typedef enum {
+/* ------------------- Cortex-M4 Processor Exceptions Numbers ------------------- */
+ Reset_IRQn = -15, /*!< 1 Reset Vector, invoked on Power up and warm reset */
+ NonMaskableInt_IRQn = -14, /*!< 2 Non maskable Interrupt, cannot be stopped or preempted */
+ HardFault_IRQn = -13, /*!< 3 Hard Fault, all classes of Fault */
+ MemoryManagement_IRQn = -12, /*!< 4 Memory Management, MPU mismatch, including Access Violation
+ and No Match */
+ BusFault_IRQn = -11, /*!< 5 Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory
+ related Fault */
+ UsageFault_IRQn = -10, /*!< 6 Usage Fault, i.e. Undef Instruction, Illegal State Transition */
+ SVCall_IRQn = -5, /*!< 11 System Service Call via SVC instruction */
+ DebugMonitor_IRQn = -4, /*!< 12 Debug Monitor */
+ PendSV_IRQn = -2, /*!< 14 Pendable request for system service */
+ SysTick_IRQn = -1, /*!< 15 System Tick Timer */
+/* --------------------- nrf52810 Specific Interrupt Numbers -------------------- */
+ POWER_CLOCK_IRQn = 0, /*!< 0 POWER_CLOCK */
+ RADIO_IRQn = 1, /*!< 1 RADIO */
+ UARTE0_IRQn = 2, /*!< 2 UARTE0 */
+ TWIM0_TWIS0_IRQn = 3, /*!< 3 TWIM0_TWIS0 */
+ SPIM0_SPIS0_IRQn = 4, /*!< 4 SPIM0_SPIS0 */
+ GPIOTE_IRQn = 6, /*!< 6 GPIOTE */
+ SAADC_IRQn = 7, /*!< 7 SAADC */
+ TIMER0_IRQn = 8, /*!< 8 TIMER0 */
+ TIMER1_IRQn = 9, /*!< 9 TIMER1 */
+ TIMER2_IRQn = 10, /*!< 10 TIMER2 */
+ RTC0_IRQn = 11, /*!< 11 RTC0 */
+ TEMP_IRQn = 12, /*!< 12 TEMP */
+ RNG_IRQn = 13, /*!< 13 RNG */
+ ECB_IRQn = 14, /*!< 14 ECB */
+ CCM_AAR_IRQn = 15, /*!< 15 CCM_AAR */
+ WDT_IRQn = 16, /*!< 16 WDT */
+ RTC1_IRQn = 17, /*!< 17 RTC1 */
+ QDEC_IRQn = 18, /*!< 18 QDEC */
+ COMP_IRQn = 19, /*!< 19 COMP */
+ SWI0_EGU0_IRQn = 20, /*!< 20 SWI0_EGU0 */
+ SWI1_EGU1_IRQn = 21, /*!< 21 SWI1_EGU1 */
+ SWI2_IRQn = 22, /*!< 22 SWI2 */
+ SWI3_IRQn = 23, /*!< 23 SWI3 */
+ SWI4_IRQn = 24, /*!< 24 SWI4 */
+ SWI5_IRQn = 25, /*!< 25 SWI5 */
+ PWM0_IRQn = 28, /*!< 28 PWM0 */
+ PDM_IRQn = 29 /*!< 29 PDM */
+} IRQn_Type;
+
+
+/** @addtogroup Configuration_of_CMSIS
+ * @{
+ */
+
+
+/* ================================================================================ */
+/* ================ Processor and Core Peripheral Section ================ */
+/* ================================================================================ */
+
+/* ----------------Configuration of the Cortex-M4 Processor and Core Peripherals---------------- */
+#define __CM4_REV 0x0001 /*!< Cortex-M4 Core Revision */
+#define __MPU_PRESENT 1 /*!< MPU present or not */
+#define __NVIC_PRIO_BITS 3 /*!< Number of Bits used for Priority Levels */
+#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
+#define __FPU_PRESENT 0 /*!< FPU present or not */
+/** @} */ /* End of group Configuration_of_CMSIS */
+
+#include "core_cm4.h" /*!< Cortex-M4 processor and core peripherals */
+#include "system_nrf52810.h" /*!< nrf52810 System */
+
+
+/* ================================================================================ */
+/* ================ Device Specific Peripheral Section ================ */
+/* ================================================================================ */
+
+
+/** @addtogroup Device_Peripheral_Registers
+ * @{
+ */
+
+
+/* ------------------- Start of section using anonymous unions ------------------ */
+#if defined(__CC_ARM)
+ #pragma push
+ #pragma anon_unions
+#elif defined(__ICCARM__)
+ #pragma language=extended
+#elif defined(__GNUC__)
+ /* anonymous unions are enabled by default */
+#elif defined(__TMS470__)
+/* anonymous unions are enabled by default */
+#elif defined(__TASKING__)
+ #pragma warning 586
+#else
+ #warning Not supported compiler type
+#endif
+
+
+typedef struct {
+ __I uint32_t PART; /*!< Part code */
+ __I uint32_t VARIANT; /*!< Part variant, hardware version and production configuration */
+ __I uint32_t PACKAGE; /*!< Package option */
+ __I uint32_t RAM; /*!< RAM variant */
+ __I uint32_t FLASH; /*!< Flash variant */
+ __IO uint32_t UNUSED0[3]; /*!< Description collection[0]: Unspecified */
+} FICR_INFO_Type;
+
+typedef struct {
+ __I uint32_t A0; /*!< Slope definition A0 */
+ __I uint32_t A1; /*!< Slope definition A1 */
+ __I uint32_t A2; /*!< Slope definition A2 */
+ __I uint32_t A3; /*!< Slope definition A3 */
+ __I uint32_t A4; /*!< Slope definition A4 */
+ __I uint32_t A5; /*!< Slope definition A5 */
+ __I uint32_t B0; /*!< Y-intercept B0 */
+ __I uint32_t B1; /*!< Y-intercept B1 */
+ __I uint32_t B2; /*!< Y-intercept B2 */
+ __I uint32_t B3; /*!< Y-intercept B3 */
+ __I uint32_t B4; /*!< Y-intercept B4 */
+ __I uint32_t B5; /*!< Y-intercept B5 */
+ __I uint32_t T0; /*!< Segment end T0 */
+ __I uint32_t T1; /*!< Segment end T1 */
+ __I uint32_t T2; /*!< Segment end T2 */
+ __I uint32_t T3; /*!< Segment end T3 */
+ __I uint32_t T4; /*!< Segment end T4 */
+} FICR_TEMP_Type;
+
+typedef struct {
+ __IO uint32_t POWER; /*!< Description cluster[0]: RAM0 power control register */
+ __O uint32_t POWERSET; /*!< Description cluster[0]: RAM0 power control set register */
+ __O uint32_t POWERCLR; /*!< Description cluster[0]: RAM0 power control clear register */
+ __I uint32_t RESERVED0;
+} POWER_RAM_Type;
+
+typedef struct {
+ __IO uint32_t RTS; /*!< Pin select for RTS signal */
+ __IO uint32_t TXD; /*!< Pin select for TXD signal */
+ __IO uint32_t CTS; /*!< Pin select for CTS signal */
+ __IO uint32_t RXD; /*!< Pin select for RXD signal */
+} UARTE_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+} UARTE_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+} UARTE_TXD_Type;
+
+typedef struct {
+ __IO uint32_t SCL; /*!< Pin select for SCL signal */
+ __IO uint32_t SDA; /*!< Pin select for SDA signal */
+} TWIM_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+ __IO uint32_t LIST; /*!< EasyDMA list type */
+} TWIM_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+ __IO uint32_t LIST; /*!< EasyDMA list type */
+} TWIM_TXD_Type;
+
+typedef struct {
+ __IO uint32_t SCL; /*!< Pin select for SCL signal */
+ __IO uint32_t SDA; /*!< Pin select for SDA signal */
+} TWIS_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< RXD Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in RXD buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last RXD transaction */
+} TWIS_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< TXD Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in TXD buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last TXD transaction */
+} TWIS_TXD_Type;
+
+typedef struct {
+ __IO uint32_t SCK; /*!< Pin select for SCK */
+ __IO uint32_t MOSI; /*!< Pin select for MOSI signal */
+ __IO uint32_t MISO; /*!< Pin select for MISO signal */
+} SPIM_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+ __IO uint32_t LIST; /*!< EasyDMA list type */
+} SPIM_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+ __IO uint32_t LIST; /*!< EasyDMA list type */
+} SPIM_TXD_Type;
+
+typedef struct {
+ __IO uint32_t SCK; /*!< Pin select for SCK */
+ __IO uint32_t MISO; /*!< Pin select for MISO signal */
+ __IO uint32_t MOSI; /*!< Pin select for MOSI signal */
+ __IO uint32_t CSN; /*!< Pin select for CSN signal */
+} SPIS_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< RXD data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes received in last granted transaction */
+} SPIS_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< TXD data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transmitted in last granted transaction */
+} SPIS_TXD_Type;
+
+typedef struct {
+ __IO uint32_t LIMITH; /*!< Description cluster[0]: Last results is equal or above CH[0].LIMIT.HIGH */
+ __IO uint32_t LIMITL; /*!< Description cluster[0]: Last results is equal or below CH[0].LIMIT.LOW */
+} SAADC_EVENTS_CH_Type;
+
+typedef struct {
+ __IO uint32_t PSELP; /*!< Description cluster[0]: Input positive pin selection for CH[0] */
+ __IO uint32_t PSELN; /*!< Description cluster[0]: Input negative pin selection for CH[0] */
+ __IO uint32_t CONFIG; /*!< Description cluster[0]: Input configuration for CH[0] */
+ __IO uint32_t LIMIT; /*!< Description cluster[0]: High/low limits for event monitoring
+ a channel */
+} SAADC_CH_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of buffer words to transfer */
+ __I uint32_t AMOUNT; /*!< Number of buffer words transferred since last START */
+} SAADC_RESULT_Type;
+
+typedef struct {
+ __IO uint32_t LED; /*!< Pin select for LED signal */
+ __IO uint32_t A; /*!< Pin select for A signal */
+ __IO uint32_t B; /*!< Pin select for B signal */
+} QDEC_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Description cluster[0]: Beginning address in RAM of this sequence */
+ __IO uint32_t CNT; /*!< Description cluster[0]: Number of values (duty cycles) in this
+ sequence */
+ __IO uint32_t REFRESH; /*!< Description cluster[0]: Number of additional PWM periods between
+ samples loaded into compare register */
+ __IO uint32_t ENDDELAY; /*!< Description cluster[0]: Time added after the sequence */
+ __I uint32_t RESERVED1[4];
+} PWM_SEQ_Type;
+
+typedef struct {
+ __IO uint32_t OUT[4]; /*!< Description collection[0]: Output pin select for PWM channel
+ 0 */
+} PWM_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t CLK; /*!< Pin number configuration for PDM CLK signal */
+ __IO uint32_t DIN; /*!< Pin number configuration for PDM DIN signal */
+} PDM_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< RAM address pointer to write samples to with EasyDMA */
+ __IO uint32_t MAXCNT; /*!< Number of samples to allocate memory for in EasyDMA mode */
+} PDM_SAMPLE_Type;
+
+typedef struct {
+ __O uint32_t EN; /*!< Description cluster[0]: Enable channel group 0 */
+ __O uint32_t DIS; /*!< Description cluster[0]: Disable channel group 0 */
+} PPI_TASKS_CHG_Type;
+
+typedef struct {
+ __IO uint32_t EEP; /*!< Description cluster[0]: Channel 0 event end-point */
+ __IO uint32_t TEP; /*!< Description cluster[0]: Channel 0 task end-point */
+} PPI_CH_Type;
+
+typedef struct {
+ __IO uint32_t TEP; /*!< Description cluster[0]: Channel 0 task end-point */
+} PPI_FORK_Type;
+
+
+/* ================================================================================ */
+/* ================ FICR ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Factory information configuration registers (FICR)
+ */
+
+typedef struct { /*!< FICR Structure */
+ __I uint32_t RESERVED0[4];
+ __I uint32_t CODEPAGESIZE; /*!< Code memory page size */
+ __I uint32_t CODESIZE; /*!< Code memory size */
+ __I uint32_t RESERVED1[18];
+ __I uint32_t DEVICEID[2]; /*!< Description collection[0]: Device identifier */
+ __I uint32_t RESERVED2[6];
+ __I uint32_t ER[4]; /*!< Description collection[0]: Encryption root, word 0 */
+ __I uint32_t IR[4]; /*!< Description collection[0]: Identity root, word 0 */
+ __I uint32_t DEVICEADDRTYPE; /*!< Device address type */
+ __I uint32_t DEVICEADDR[2]; /*!< Description collection[0]: Device address 0 */
+ __I uint32_t RESERVED3[21];
+ FICR_INFO_Type INFO; /*!< Device info */
+ __I uint32_t RESERVED4[185];
+ FICR_TEMP_Type TEMP; /*!< Registers storing factory TEMP module linearization coefficients */
+} NRF_FICR_Type;
+
+
+/* ================================================================================ */
+/* ================ UICR ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief User information configuration registers (UICR)
+ */
+
+typedef struct { /*!< UICR Structure */
+ __IO uint32_t UNUSED0; /*!< Unspecified */
+ __IO uint32_t UNUSED1; /*!< Unspecified */
+ __IO uint32_t UNUSED2; /*!< Unspecified */
+ __I uint32_t RESERVED0;
+ __IO uint32_t UNUSED3; /*!< Unspecified */
+ __IO uint32_t NRFFW[15]; /*!< Description collection[0]: Reserved for Nordic firmware design */
+ __IO uint32_t NRFHW[12]; /*!< Description collection[0]: Reserved for Nordic hardware design */
+ __IO uint32_t CUSTOMER[32]; /*!< Description collection[0]: Reserved for customer */
+ __I uint32_t RESERVED1[64];
+ __IO uint32_t PSELRESET[2]; /*!< Description collection[0]: Mapping of the nRESET function (see
+ POWER chapter for details) */
+ __IO uint32_t APPROTECT; /*!< Access port protection */
+} NRF_UICR_Type;
+
+
+/* ================================================================================ */
+/* ================ BPROT ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Block Protect (BPROT)
+ */
+
+typedef struct { /*!< BPROT Structure */
+ __I uint32_t RESERVED0[384];
+ __IO uint32_t CONFIG0; /*!< Block protect configuration register 0 */
+ __IO uint32_t CONFIG1; /*!< Block protect configuration register 1 */
+ __IO uint32_t DISABLEINDEBUG; /*!< Disable protection mechanism in debug mode */
+ __IO uint32_t UNUSED0; /*!< Unspecified */
+} NRF_BPROT_Type;
+
+
+/* ================================================================================ */
+/* ================ POWER ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Power control (POWER)
+ */
+
+typedef struct { /*!< POWER Structure */
+ __I uint32_t RESERVED0[30];
+ __O uint32_t TASKS_CONSTLAT; /*!< Enable constant latency mode */
+ __O uint32_t TASKS_LOWPWR; /*!< Enable low power mode (variable latency) */
+ __I uint32_t RESERVED1[34];
+ __IO uint32_t EVENTS_POFWARN; /*!< Power failure warning */
+ __I uint32_t RESERVED2[2];
+ __IO uint32_t EVENTS_SLEEPENTER; /*!< CPU entered WFI/WFE sleep */
+ __IO uint32_t EVENTS_SLEEPEXIT; /*!< CPU exited WFI/WFE sleep */
+ __I uint32_t RESERVED3[122];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED4[61];
+ __IO uint32_t RESETREAS; /*!< Reset reason */
+ __I uint32_t RESERVED5[63];
+ __O uint32_t SYSTEMOFF; /*!< System OFF register */
+ __I uint32_t RESERVED6[3];
+ __IO uint32_t POFCON; /*!< Power failure comparator configuration */
+ __I uint32_t RESERVED7[2];
+ __IO uint32_t GPREGRET; /*!< General purpose retention register */
+ __IO uint32_t GPREGRET2; /*!< General purpose retention register */
+ __I uint32_t RESERVED8[21];
+ __IO uint32_t DCDCEN; /*!< DC/DC enable register */
+ __I uint32_t RESERVED9[225];
+ POWER_RAM_Type RAM[8]; /*!< Unspecified */
+} NRF_POWER_Type;
+
+
+/* ================================================================================ */
+/* ================ CLOCK ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Clock control (CLOCK)
+ */
+
+typedef struct { /*!< CLOCK Structure */
+ __O uint32_t TASKS_HFCLKSTART; /*!< Start HFCLK crystal oscillator */
+ __O uint32_t TASKS_HFCLKSTOP; /*!< Stop HFCLK crystal oscillator */
+ __O uint32_t TASKS_LFCLKSTART; /*!< Start LFCLK source */
+ __O uint32_t TASKS_LFCLKSTOP; /*!< Stop LFCLK source */
+ __O uint32_t TASKS_CAL; /*!< Start calibration of LFRC oscillator */
+ __O uint32_t TASKS_CTSTART; /*!< Start calibration timer */
+ __O uint32_t TASKS_CTSTOP; /*!< Stop calibration timer */
+ __I uint32_t RESERVED0[57];
+ __IO uint32_t EVENTS_HFCLKSTARTED; /*!< HFCLK oscillator started */
+ __IO uint32_t EVENTS_LFCLKSTARTED; /*!< LFCLK started */
+ __I uint32_t RESERVED1;
+ __IO uint32_t EVENTS_DONE; /*!< Calibration of LFCLK RC oscillator complete event */
+ __IO uint32_t EVENTS_CTTO; /*!< Calibration timer timeout */
+ __I uint32_t RESERVED2[124];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[63];
+ __I uint32_t HFCLKRUN; /*!< Status indicating that HFCLKSTART task has been triggered */
+ __I uint32_t HFCLKSTAT; /*!< HFCLK status */
+ __I uint32_t RESERVED4;
+ __I uint32_t LFCLKRUN; /*!< Status indicating that LFCLKSTART task has been triggered */
+ __I uint32_t LFCLKSTAT; /*!< LFCLK status */
+ __I uint32_t LFCLKSRCCOPY; /*!< Copy of LFCLKSRC register, set when LFCLKSTART task was triggered */
+ __I uint32_t RESERVED5[62];
+ __IO uint32_t LFCLKSRC; /*!< Clock source for the LFCLK */
+ __I uint32_t RESERVED6[7];
+ __IO uint32_t CTIV; /*!< Calibration timer interval */
+} NRF_CLOCK_Type;
+
+
+/* ================================================================================ */
+/* ================ RADIO ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief 2.4 GHz Radio (RADIO)
+ */
+
+typedef struct { /*!< RADIO Structure */
+ __O uint32_t TASKS_TXEN; /*!< Enable RADIO in TX mode */
+ __O uint32_t TASKS_RXEN; /*!< Enable RADIO in RX mode */
+ __O uint32_t TASKS_START; /*!< Start RADIO */
+ __O uint32_t TASKS_STOP; /*!< Stop RADIO */
+ __O uint32_t TASKS_DISABLE; /*!< Disable RADIO */
+ __O uint32_t TASKS_RSSISTART; /*!< Start the RSSI and take one single sample of the receive signal
+ strength. */
+ __O uint32_t TASKS_RSSISTOP; /*!< Stop the RSSI measurement */
+ __O uint32_t TASKS_BCSTART; /*!< Start the bit counter */
+ __O uint32_t TASKS_BCSTOP; /*!< Stop the bit counter */
+ __I uint32_t RESERVED0[55];
+ __IO uint32_t EVENTS_READY; /*!< RADIO has ramped up and is ready to be started */
+ __IO uint32_t EVENTS_ADDRESS; /*!< Address sent or received */
+ __IO uint32_t EVENTS_PAYLOAD; /*!< Packet payload sent or received */
+ __IO uint32_t EVENTS_END; /*!< Packet sent or received */
+ __IO uint32_t EVENTS_DISABLED; /*!< RADIO has been disabled */
+ __IO uint32_t EVENTS_DEVMATCH; /*!< A device address match occurred on the last received packet */
+ __IO uint32_t EVENTS_DEVMISS; /*!< No device address match occurred on the last received packet */
+ __IO uint32_t EVENTS_RSSIEND; /*!< Sampling of receive signal strength complete. */
+ __I uint32_t RESERVED1[2];
+ __IO uint32_t EVENTS_BCMATCH; /*!< Bit counter reached bit count value. */
+ __I uint32_t RESERVED2;
+ __IO uint32_t EVENTS_CRCOK; /*!< Packet received with CRC ok */
+ __IO uint32_t EVENTS_CRCERROR; /*!< Packet received with CRC error */
+ __I uint32_t RESERVED3[50];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED4[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED5[61];
+ __I uint32_t CRCSTATUS; /*!< CRC status */
+ __I uint32_t RESERVED6;
+ __I uint32_t RXMATCH; /*!< Received address */
+ __I uint32_t RXCRC; /*!< CRC field of previously received packet */
+ __I uint32_t DAI; /*!< Device address match index */
+ __I uint32_t RESERVED7[60];
+ __IO uint32_t PACKETPTR; /*!< Packet pointer */
+ __IO uint32_t FREQUENCY; /*!< Frequency */
+ __IO uint32_t TXPOWER; /*!< Output power */
+ __IO uint32_t MODE; /*!< Data rate and modulation */
+ __IO uint32_t PCNF0; /*!< Packet configuration register 0 */
+ __IO uint32_t PCNF1; /*!< Packet configuration register 1 */
+ __IO uint32_t BASE0; /*!< Base address 0 */
+ __IO uint32_t BASE1; /*!< Base address 1 */
+ __IO uint32_t PREFIX0; /*!< Prefixes bytes for logical addresses 0-3 */
+ __IO uint32_t PREFIX1; /*!< Prefixes bytes for logical addresses 4-7 */
+ __IO uint32_t TXADDRESS; /*!< Transmit address select */
+ __IO uint32_t RXADDRESSES; /*!< Receive address select */
+ __IO uint32_t CRCCNF; /*!< CRC configuration */
+ __IO uint32_t CRCPOLY; /*!< CRC polynomial */
+ __IO uint32_t CRCINIT; /*!< CRC initial value */
+ __IO uint32_t UNUSED0; /*!< Unspecified */
+ __IO uint32_t TIFS; /*!< Inter Frame Spacing in us */
+ __I uint32_t RSSISAMPLE; /*!< RSSI sample */
+ __I uint32_t RESERVED8;
+ __I uint32_t STATE; /*!< Current radio state */
+ __IO uint32_t DATAWHITEIV; /*!< Data whitening initial value */
+ __I uint32_t RESERVED9[2];
+ __IO uint32_t BCC; /*!< Bit counter compare */
+ __I uint32_t RESERVED10[39];
+ __IO uint32_t DAB[8]; /*!< Description collection[0]: Device address base segment 0 */
+ __IO uint32_t DAP[8]; /*!< Description collection[0]: Device address prefix 0 */
+ __IO uint32_t DACNF; /*!< Device address match configuration */
+ __I uint32_t RESERVED11[3];
+ __IO uint32_t MODECNF0; /*!< Radio mode configuration register 0 */
+ __I uint32_t RESERVED12[618];
+ __IO uint32_t POWER; /*!< Peripheral power control */
+} NRF_RADIO_Type;
+
+
+/* ================================================================================ */
+/* ================ UARTE ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief UART with EasyDMA (UARTE)
+ */
+
+typedef struct { /*!< UARTE Structure */
+ __O uint32_t TASKS_STARTRX; /*!< Start UART receiver */
+ __O uint32_t TASKS_STOPRX; /*!< Stop UART receiver */
+ __O uint32_t TASKS_STARTTX; /*!< Start UART transmitter */
+ __O uint32_t TASKS_STOPTX; /*!< Stop UART transmitter */
+ __I uint32_t RESERVED0[7];
+ __O uint32_t TASKS_FLUSHRX; /*!< Flush RX FIFO into RX buffer */
+ __I uint32_t RESERVED1[52];
+ __IO uint32_t EVENTS_CTS; /*!< CTS is activated (set low). Clear To Send. */
+ __IO uint32_t EVENTS_NCTS; /*!< CTS is deactivated (set high). Not Clear To Send. */
+ __IO uint32_t EVENTS_RXDRDY; /*!< Data received in RXD (but potentially not yet transferred to
+ Data RAM) */
+ __I uint32_t RESERVED2;
+ __IO uint32_t EVENTS_ENDRX; /*!< Receive buffer is filled up */
+ __I uint32_t RESERVED3[2];
+ __IO uint32_t EVENTS_TXDRDY; /*!< Data sent from TXD */
+ __IO uint32_t EVENTS_ENDTX; /*!< Last TX byte transmitted */
+ __IO uint32_t EVENTS_ERROR; /*!< Error detected */
+ __I uint32_t RESERVED4[7];
+ __IO uint32_t EVENTS_RXTO; /*!< Receiver timeout */
+ __I uint32_t RESERVED5;
+ __IO uint32_t EVENTS_RXSTARTED; /*!< UART receiver has started */
+ __IO uint32_t EVENTS_TXSTARTED; /*!< UART transmitter has started */
+ __I uint32_t RESERVED6;
+ __IO uint32_t EVENTS_TXSTOPPED; /*!< Transmitter stopped */
+ __I uint32_t RESERVED7[41];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED8[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED9[93];
+ __IO uint32_t ERRORSRC; /*!< Error source Note : this register is read / write one to clear. */
+ __I uint32_t RESERVED10[31];
+ __IO uint32_t ENABLE; /*!< Enable UART */
+ __I uint32_t RESERVED11;
+ UARTE_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED12[3];
+ __IO uint32_t BAUDRATE; /*!< Baud rate. Accuracy depends on the HFCLK source selected. */
+ __I uint32_t RESERVED13[3];
+ UARTE_RXD_Type RXD; /*!< RXD EasyDMA channel */
+ __I uint32_t RESERVED14;
+ UARTE_TXD_Type TXD; /*!< TXD EasyDMA channel */
+ __I uint32_t RESERVED15[7];
+ __IO uint32_t CONFIG; /*!< Configuration of parity and hardware flow control */
+} NRF_UARTE_Type;
+
+
+/* ================================================================================ */
+/* ================ TWIM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief I2C compatible Two-Wire Master Interface with EasyDMA (TWIM)
+ */
+
+typedef struct { /*!< TWIM Structure */
+ __O uint32_t TASKS_STARTRX; /*!< Start TWI receive sequence */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STARTTX; /*!< Start TWI transmit sequence */
+ __I uint32_t RESERVED1[2];
+ __O uint32_t TASKS_STOP; /*!< Stop TWI transaction. Must be issued while the TWI master is
+ not suspended. */
+ __I uint32_t RESERVED2;
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend TWI transaction */
+ __O uint32_t TASKS_RESUME; /*!< Resume TWI transaction */
+ __I uint32_t RESERVED3[56];
+ __IO uint32_t EVENTS_STOPPED; /*!< TWI stopped */
+ __I uint32_t RESERVED4[7];
+ __IO uint32_t EVENTS_ERROR; /*!< TWI error */
+ __I uint32_t RESERVED5[8];
+ __IO uint32_t EVENTS_SUSPENDED; /*!< Last byte has been sent out after the SUSPEND task has been
+ issued, TWI traffic is now suspended. */
+ __IO uint32_t EVENTS_RXSTARTED; /*!< Receive sequence started */
+ __IO uint32_t EVENTS_TXSTARTED; /*!< Transmit sequence started */
+ __I uint32_t RESERVED6[2];
+ __IO uint32_t EVENTS_LASTRX; /*!< Byte boundary, starting to receive the last byte */
+ __IO uint32_t EVENTS_LASTTX; /*!< Byte boundary, starting to transmit the last byte */
+ __I uint32_t RESERVED7[39];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED8[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED9[110];
+ __IO uint32_t ERRORSRC; /*!< Error source */
+ __I uint32_t RESERVED10[14];
+ __IO uint32_t ENABLE; /*!< Enable TWIM */
+ __I uint32_t RESERVED11;
+ TWIM_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED12[5];
+ __IO uint32_t FREQUENCY; /*!< TWI frequency. Accuracy depends on the HFCLK source selected. */
+ __I uint32_t RESERVED13[3];
+ TWIM_RXD_Type RXD; /*!< RXD EasyDMA channel */
+ TWIM_TXD_Type TXD; /*!< TXD EasyDMA channel */
+ __I uint32_t RESERVED14[13];
+ __IO uint32_t ADDRESS; /*!< Address used in the TWI transfer */
+} NRF_TWIM_Type;
+
+
+/* ================================================================================ */
+/* ================ TWIS ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief I2C compatible Two-Wire Slave Interface with EasyDMA (TWIS)
+ */
+
+typedef struct { /*!< TWIS Structure */
+ __I uint32_t RESERVED0[5];
+ __O uint32_t TASKS_STOP; /*!< Stop TWI transaction */
+ __I uint32_t RESERVED1;
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend TWI transaction */
+ __O uint32_t TASKS_RESUME; /*!< Resume TWI transaction */
+ __I uint32_t RESERVED2[3];
+ __O uint32_t TASKS_PREPARERX; /*!< Prepare the TWI slave to respond to a write command */
+ __O uint32_t TASKS_PREPARETX; /*!< Prepare the TWI slave to respond to a read command */
+ __I uint32_t RESERVED3[51];
+ __IO uint32_t EVENTS_STOPPED; /*!< TWI stopped */
+ __I uint32_t RESERVED4[7];
+ __IO uint32_t EVENTS_ERROR; /*!< TWI error */
+ __I uint32_t RESERVED5[9];
+ __IO uint32_t EVENTS_RXSTARTED; /*!< Receive sequence started */
+ __IO uint32_t EVENTS_TXSTARTED; /*!< Transmit sequence started */
+ __I uint32_t RESERVED6[4];
+ __IO uint32_t EVENTS_WRITE; /*!< Write command received */
+ __IO uint32_t EVENTS_READ; /*!< Read command received */
+ __I uint32_t RESERVED7[37];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED8[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED9[113];
+ __IO uint32_t ERRORSRC; /*!< Error source */
+ __I uint32_t MATCH; /*!< Status register indicating which address had a match */
+ __I uint32_t RESERVED10[10];
+ __IO uint32_t ENABLE; /*!< Enable TWIS */
+ __I uint32_t RESERVED11;
+ TWIS_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED12[9];
+ TWIS_RXD_Type RXD; /*!< RXD EasyDMA channel */
+ __I uint32_t RESERVED13;
+ TWIS_TXD_Type TXD; /*!< TXD EasyDMA channel */
+ __I uint32_t RESERVED14[14];
+ __IO uint32_t ADDRESS[2]; /*!< Description collection[0]: TWI slave address 0 */
+ __I uint32_t RESERVED15;
+ __IO uint32_t CONFIG; /*!< Configuration register for the address match mechanism */
+ __I uint32_t RESERVED16[10];
+ __IO uint32_t ORC; /*!< Over-read character. Character sent out in case of an over-read
+ of the transmit buffer. */
+} NRF_TWIS_Type;
+
+
+/* ================================================================================ */
+/* ================ SPIM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Serial Peripheral Interface Master with EasyDMA (SPIM)
+ */
+
+typedef struct { /*!< SPIM Structure */
+ __I uint32_t RESERVED0[4];
+ __O uint32_t TASKS_START; /*!< Start SPI transaction */
+ __O uint32_t TASKS_STOP; /*!< Stop SPI transaction */
+ __I uint32_t RESERVED1;
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend SPI transaction */
+ __O uint32_t TASKS_RESUME; /*!< Resume SPI transaction */
+ __I uint32_t RESERVED2[56];
+ __IO uint32_t EVENTS_STOPPED; /*!< SPI transaction has stopped */
+ __I uint32_t RESERVED3[2];
+ __IO uint32_t EVENTS_ENDRX; /*!< End of RXD buffer reached */
+ __I uint32_t RESERVED4;
+ __IO uint32_t EVENTS_END; /*!< End of RXD buffer and TXD buffer reached */
+ __I uint32_t RESERVED5;
+ __IO uint32_t EVENTS_ENDTX; /*!< End of TXD buffer reached */
+ __I uint32_t RESERVED6[10];
+ __IO uint32_t EVENTS_STARTED; /*!< Transaction started */
+ __I uint32_t RESERVED7[44];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED8[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED9[125];
+ __IO uint32_t ENABLE; /*!< Enable SPIM */
+ __I uint32_t RESERVED10;
+ SPIM_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED11[4];
+ __IO uint32_t FREQUENCY; /*!< SPI frequency. Accuracy depends on the HFCLK source selected. */
+ __I uint32_t RESERVED12[3];
+ SPIM_RXD_Type RXD; /*!< RXD EasyDMA channel */
+ SPIM_TXD_Type TXD; /*!< TXD EasyDMA channel */
+ __IO uint32_t CONFIG; /*!< Configuration register */
+ __I uint32_t RESERVED13[26];
+ __IO uint32_t ORC; /*!< Over-read character. Character clocked out in case and over-read
+ of the TXD buffer. */
+} NRF_SPIM_Type;
+
+
+/* ================================================================================ */
+/* ================ SPIS ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief SPI Slave (SPIS)
+ */
+
+typedef struct { /*!< SPIS Structure */
+ __I uint32_t RESERVED0[9];
+ __O uint32_t TASKS_ACQUIRE; /*!< Acquire SPI semaphore */
+ __O uint32_t TASKS_RELEASE; /*!< Release SPI semaphore, enabling the SPI slave to acquire it */
+ __I uint32_t RESERVED1[54];
+ __IO uint32_t EVENTS_END; /*!< Granted transaction completed */
+ __I uint32_t RESERVED2[2];
+ __IO uint32_t EVENTS_ENDRX; /*!< End of RXD buffer reached */
+ __I uint32_t RESERVED3[5];
+ __IO uint32_t EVENTS_ACQUIRED; /*!< Semaphore acquired */
+ __I uint32_t RESERVED4[53];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED5[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED6[61];
+ __I uint32_t SEMSTAT; /*!< Semaphore status register */
+ __I uint32_t RESERVED7[15];
+ __IO uint32_t STATUS; /*!< Status from last transaction */
+ __I uint32_t RESERVED8[47];
+ __IO uint32_t ENABLE; /*!< Enable SPI slave */
+ __I uint32_t RESERVED9;
+ SPIS_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED10[7];
+ SPIS_RXD_Type RXD; /*!< Unspecified */
+ __I uint32_t RESERVED11;
+ SPIS_TXD_Type TXD; /*!< Unspecified */
+ __I uint32_t RESERVED12;
+ __IO uint32_t CONFIG; /*!< Configuration register */
+ __I uint32_t RESERVED13;
+ __IO uint32_t DEF; /*!< Default character. Character clocked out in case of an ignored
+ transaction. */
+ __I uint32_t RESERVED14[24];
+ __IO uint32_t ORC; /*!< Over-read character */
+} NRF_SPIS_Type;
+
+
+/* ================================================================================ */
+/* ================ GPIOTE ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief GPIO Tasks and Events (GPIOTE)
+ */
+
+typedef struct { /*!< GPIOTE Structure */
+ __O uint32_t TASKS_OUT[8]; /*!< Description collection[0]: Task for writing to pin specified
+ in CONFIG[0].PSEL. Action on pin is configured in CONFIG[0].POLARITY. */
+ __I uint32_t RESERVED0[4];
+ __O uint32_t TASKS_SET[8]; /*!< Description collection[0]: Task for writing to pin specified
+ in CONFIG[0].PSEL. Action on pin is to set it high. */
+ __I uint32_t RESERVED1[4];
+ __O uint32_t TASKS_CLR[8]; /*!< Description collection[0]: Task for writing to pin specified
+ in CONFIG[0].PSEL. Action on pin is to set it low. */
+ __I uint32_t RESERVED2[32];
+ __IO uint32_t EVENTS_IN[8]; /*!< Description collection[0]: Event generated from pin specified
+ in CONFIG[0].PSEL */
+ __I uint32_t RESERVED3[23];
+ __IO uint32_t EVENTS_PORT; /*!< Event generated from multiple input GPIO pins with SENSE mechanism
+ enabled */
+ __I uint32_t RESERVED4[97];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED5[129];
+ __IO uint32_t CONFIG[8]; /*!< Description collection[0]: Configuration for OUT[n], SET[n]
+ and CLR[n] tasks and IN[n] event */
+} NRF_GPIOTE_Type;
+
+
+/* ================================================================================ */
+/* ================ SAADC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Analog to Digital Converter (SAADC)
+ */
+
+typedef struct { /*!< SAADC Structure */
+ __O uint32_t TASKS_START; /*!< Start the ADC and prepare the result buffer in RAM */
+ __O uint32_t TASKS_SAMPLE; /*!< Take one ADC sample, if scan is enabled all channels are sampled */
+ __O uint32_t TASKS_STOP; /*!< Stop the ADC and terminate any on-going conversion */
+ __O uint32_t TASKS_CALIBRATEOFFSET; /*!< Starts offset auto-calibration */
+ __I uint32_t RESERVED0[60];
+ __IO uint32_t EVENTS_STARTED; /*!< The ADC has started */
+ __IO uint32_t EVENTS_END; /*!< The ADC has filled up the Result buffer */
+ __IO uint32_t EVENTS_DONE; /*!< A conversion task has been completed. Depending on the mode,
+ multiple conversions might be needed for a result to be transferred
+ to RAM. */
+ __IO uint32_t EVENTS_RESULTDONE; /*!< A result is ready to get transferred to RAM. */
+ __IO uint32_t EVENTS_CALIBRATEDONE; /*!< Calibration is complete */
+ __IO uint32_t EVENTS_STOPPED; /*!< The ADC has stopped */
+ SAADC_EVENTS_CH_Type EVENTS_CH[8]; /*!< Unspecified */
+ __I uint32_t RESERVED1[106];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[61];
+ __I uint32_t STATUS; /*!< Status */
+ __I uint32_t RESERVED3[63];
+ __IO uint32_t ENABLE; /*!< Enable or disable ADC */
+ __I uint32_t RESERVED4[3];
+ SAADC_CH_Type CH[8]; /*!< Unspecified */
+ __I uint32_t RESERVED5[24];
+ __IO uint32_t RESOLUTION; /*!< Resolution configuration */
+ __IO uint32_t OVERSAMPLE; /*!< Oversampling configuration. OVERSAMPLE should not be combined
+ with SCAN. The RESOLUTION is applied before averaging, thus
+ for high OVERSAMPLE a higher RESOLUTION should be used. */
+ __IO uint32_t SAMPLERATE; /*!< Controls normal or continuous sample rate */
+ __I uint32_t RESERVED6[12];
+ SAADC_RESULT_Type RESULT; /*!< RESULT EasyDMA channel */
+} NRF_SAADC_Type;
+
+
+/* ================================================================================ */
+/* ================ TIMER ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Timer/Counter 0 (TIMER)
+ */
+
+typedef struct { /*!< TIMER Structure */
+ __O uint32_t TASKS_START; /*!< Start Timer */
+ __O uint32_t TASKS_STOP; /*!< Stop Timer */
+ __O uint32_t TASKS_COUNT; /*!< Increment Timer (Counter mode only) */
+ __O uint32_t TASKS_CLEAR; /*!< Clear time */
+ __O uint32_t TASKS_SHUTDOWN; /*!< Deprecated register - Shut down timer */
+ __I uint32_t RESERVED0[11];
+ __O uint32_t TASKS_CAPTURE[6]; /*!< Description collection[0]: Capture Timer value to CC[0] register */
+ __I uint32_t RESERVED1[58];
+ __IO uint32_t EVENTS_COMPARE[6]; /*!< Description collection[0]: Compare event on CC[0] match */
+ __I uint32_t RESERVED2[42];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED3[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED4[126];
+ __IO uint32_t MODE; /*!< Timer mode selection */
+ __IO uint32_t BITMODE; /*!< Configure the number of bits used by the TIMER */
+ __I uint32_t RESERVED5;
+ __IO uint32_t PRESCALER; /*!< Timer prescaler register */
+ __I uint32_t RESERVED6[11];
+ __IO uint32_t CC[6]; /*!< Description collection[0]: Capture/Compare register 0 */
+} NRF_TIMER_Type;
+
+
+/* ================================================================================ */
+/* ================ RTC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Real time counter 0 (RTC)
+ */
+
+typedef struct { /*!< RTC Structure */
+ __O uint32_t TASKS_START; /*!< Start RTC COUNTER */
+ __O uint32_t TASKS_STOP; /*!< Stop RTC COUNTER */
+ __O uint32_t TASKS_CLEAR; /*!< Clear RTC COUNTER */
+ __O uint32_t TASKS_TRIGOVRFLW; /*!< Set COUNTER to 0xFFFFF0 */
+ __I uint32_t RESERVED0[60];
+ __IO uint32_t EVENTS_TICK; /*!< Event on COUNTER increment */
+ __IO uint32_t EVENTS_OVRFLW; /*!< Event on COUNTER overflow */
+ __I uint32_t RESERVED1[14];
+ __IO uint32_t EVENTS_COMPARE[4]; /*!< Description collection[0]: Compare event on CC[0] match */
+ __I uint32_t RESERVED2[109];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[13];
+ __IO uint32_t EVTEN; /*!< Enable or disable event routing */
+ __IO uint32_t EVTENSET; /*!< Enable event routing */
+ __IO uint32_t EVTENCLR; /*!< Disable event routing */
+ __I uint32_t RESERVED4[110];
+ __I uint32_t COUNTER; /*!< Current COUNTER value */
+ __IO uint32_t PRESCALER; /*!< 12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must
+ be written when RTC is stopped */
+ __I uint32_t RESERVED5[13];
+ __IO uint32_t CC[4]; /*!< Description collection[0]: Compare register 0 */
+} NRF_RTC_Type;
+
+
+/* ================================================================================ */
+/* ================ TEMP ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Temperature Sensor (TEMP)
+ */
+
+typedef struct { /*!< TEMP Structure */
+ __O uint32_t TASKS_START; /*!< Start temperature measurement */
+ __O uint32_t TASKS_STOP; /*!< Stop temperature measurement */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_DATARDY; /*!< Temperature measurement complete, data ready */
+ __I uint32_t RESERVED1[128];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[127];
+ __I int32_t TEMP; /*!< Temperature in degC (0.25deg steps) */
+ __I uint32_t RESERVED3[5];
+ __IO uint32_t A0; /*!< Slope of 1st piece wise linear function */
+ __IO uint32_t A1; /*!< Slope of 2nd piece wise linear function */
+ __IO uint32_t A2; /*!< Slope of 3rd piece wise linear function */
+ __IO uint32_t A3; /*!< Slope of 4th piece wise linear function */
+ __IO uint32_t A4; /*!< Slope of 5th piece wise linear function */
+ __IO uint32_t A5; /*!< Slope of 6th piece wise linear function */
+ __I uint32_t RESERVED4[2];
+ __IO uint32_t B0; /*!< y-intercept of 1st piece wise linear function */
+ __IO uint32_t B1; /*!< y-intercept of 2nd piece wise linear function */
+ __IO uint32_t B2; /*!< y-intercept of 3rd piece wise linear function */
+ __IO uint32_t B3; /*!< y-intercept of 4th piece wise linear function */
+ __IO uint32_t B4; /*!< y-intercept of 5th piece wise linear function */
+ __IO uint32_t B5; /*!< y-intercept of 6th piece wise linear function */
+ __I uint32_t RESERVED5[2];
+ __IO uint32_t T0; /*!< End point of 1st piece wise linear function */
+ __IO uint32_t T1; /*!< End point of 2nd piece wise linear function */
+ __IO uint32_t T2; /*!< End point of 3rd piece wise linear function */
+ __IO uint32_t T3; /*!< End point of 4th piece wise linear function */
+ __IO uint32_t T4; /*!< End point of 5th piece wise linear function */
+} NRF_TEMP_Type;
+
+
+/* ================================================================================ */
+/* ================ RNG ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Random Number Generator (RNG)
+ */
+
+typedef struct { /*!< RNG Structure */
+ __O uint32_t TASKS_START; /*!< Task starting the random number generator */
+ __O uint32_t TASKS_STOP; /*!< Task stopping the random number generator */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_VALRDY; /*!< Event being generated for every new random number written to
+ the VALUE register */
+ __I uint32_t RESERVED1[63];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[126];
+ __IO uint32_t CONFIG; /*!< Configuration register */
+ __I uint32_t VALUE; /*!< Output random number */
+} NRF_RNG_Type;
+
+
+/* ================================================================================ */
+/* ================ ECB ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief AES ECB Mode Encryption (ECB)
+ */
+
+typedef struct { /*!< ECB Structure */
+ __O uint32_t TASKS_STARTECB; /*!< Start ECB block encrypt */
+ __O uint32_t TASKS_STOPECB; /*!< Abort a possible executing ECB operation */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_ENDECB; /*!< ECB block encrypt complete */
+ __IO uint32_t EVENTS_ERRORECB; /*!< ECB block encrypt aborted because of a STOPECB task or due to
+ an error */
+ __I uint32_t RESERVED1[127];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[126];
+ __IO uint32_t ECBDATAPTR; /*!< ECB block encrypt memory pointers */
+} NRF_ECB_Type;
+
+
+/* ================================================================================ */
+/* ================ CCM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief AES CCM Mode Encryption (CCM)
+ */
+
+typedef struct { /*!< CCM Structure */
+ __O uint32_t TASKS_KSGEN; /*!< Start generation of key-stream. This operation will stop by
+ itself when completed. */
+ __O uint32_t TASKS_CRYPT; /*!< Start encryption/decryption. This operation will stop by itself
+ when completed. */
+ __O uint32_t TASKS_STOP; /*!< Stop encryption/decryption */
+ __O uint32_t TASKS_RATEOVERRIDE; /*!< Override DATARATE setting in MODE register with the contents
+ of the RATEOVERRIDE register for any ongoing encryption/decryption */
+ __I uint32_t RESERVED0[60];
+ __IO uint32_t EVENTS_ENDKSGEN; /*!< Key-stream generation complete */
+ __IO uint32_t EVENTS_ENDCRYPT; /*!< Encrypt/decrypt complete */
+ __IO uint32_t EVENTS_ERROR; /*!< Deprecated register - CCM error event */
+ __I uint32_t RESERVED1[61];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t MICSTATUS; /*!< MIC check result */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< Enable */
+ __IO uint32_t MODE; /*!< Operation mode */
+ __IO uint32_t CNFPTR; /*!< Pointer to data structure holding AES key and NONCE vector */
+ __IO uint32_t INPTR; /*!< Input pointer */
+ __IO uint32_t OUTPTR; /*!< Output pointer */
+ __IO uint32_t SCRATCHPTR; /*!< Pointer to data area used for temporary storage */
+ __IO uint32_t MAXPACKETSIZE; /*!< Length of key-stream generated when MODE.LENGTH = Extended. */
+ __IO uint32_t RATEOVERRIDE; /*!< Data rate override setting. */
+} NRF_CCM_Type;
+
+
+/* ================================================================================ */
+/* ================ AAR ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Accelerated Address Resolver (AAR)
+ */
+
+typedef struct { /*!< AAR Structure */
+ __O uint32_t TASKS_START; /*!< Start resolving addresses based on IRKs specified in the IRK
+ data structure */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STOP; /*!< Stop resolving addresses */
+ __I uint32_t RESERVED1[61];
+ __IO uint32_t EVENTS_END; /*!< Address resolution procedure complete */
+ __IO uint32_t EVENTS_RESOLVED; /*!< Address resolved */
+ __IO uint32_t EVENTS_NOTRESOLVED; /*!< Address not resolved */
+ __I uint32_t RESERVED2[126];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t STATUS; /*!< Resolution status */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< Enable AAR */
+ __IO uint32_t NIRK; /*!< Number of IRKs */
+ __IO uint32_t IRKPTR; /*!< Pointer to IRK data structure */
+ __I uint32_t RESERVED5;
+ __IO uint32_t ADDRPTR; /*!< Pointer to the resolvable address */
+ __IO uint32_t SCRATCHPTR; /*!< Pointer to data area used for temporary storage */
+} NRF_AAR_Type;
+
+
+/* ================================================================================ */
+/* ================ WDT ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Watchdog Timer (WDT)
+ */
+
+typedef struct { /*!< WDT Structure */
+ __O uint32_t TASKS_START; /*!< Start the watchdog */
+ __I uint32_t RESERVED0[63];
+ __IO uint32_t EVENTS_TIMEOUT; /*!< Watchdog timeout */
+ __I uint32_t RESERVED1[128];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[61];
+ __I uint32_t RUNSTATUS; /*!< Run status */
+ __I uint32_t REQSTATUS; /*!< Request status */
+ __I uint32_t RESERVED3[63];
+ __IO uint32_t CRV; /*!< Counter reload value */
+ __IO uint32_t RREN; /*!< Enable register for reload request registers */
+ __IO uint32_t CONFIG; /*!< Configuration register */
+ __I uint32_t RESERVED4[60];
+ __O uint32_t RR[8]; /*!< Description collection[0]: Reload request 0 */
+} NRF_WDT_Type;
+
+
+/* ================================================================================ */
+/* ================ QDEC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Quadrature Decoder (QDEC)
+ */
+
+typedef struct { /*!< QDEC Structure */
+ __O uint32_t TASKS_START; /*!< Task starting the quadrature decoder */
+ __O uint32_t TASKS_STOP; /*!< Task stopping the quadrature decoder */
+ __O uint32_t TASKS_READCLRACC; /*!< Read and clear ACC and ACCDBL */
+ __O uint32_t TASKS_RDCLRACC; /*!< Read and clear ACC */
+ __O uint32_t TASKS_RDCLRDBL; /*!< Read and clear ACCDBL */
+ __I uint32_t RESERVED0[59];
+ __IO uint32_t EVENTS_SAMPLERDY; /*!< Event being generated for every new sample value written to
+ the SAMPLE register */
+ __IO uint32_t EVENTS_REPORTRDY; /*!< Non-null report ready */
+ __IO uint32_t EVENTS_ACCOF; /*!< ACC or ACCDBL register overflow */
+ __IO uint32_t EVENTS_DBLRDY; /*!< Double displacement(s) detected */
+ __IO uint32_t EVENTS_STOPPED; /*!< QDEC has been stopped */
+ __I uint32_t RESERVED1[59];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[125];
+ __IO uint32_t ENABLE; /*!< Enable the quadrature decoder */
+ __IO uint32_t LEDPOL; /*!< LED output pin polarity */
+ __IO uint32_t SAMPLEPER; /*!< Sample period */
+ __I int32_t SAMPLE; /*!< Motion sample value */
+ __IO uint32_t REPORTPER; /*!< Number of samples to be taken before REPORTRDY and DBLRDY events
+ can be generated */
+ __I int32_t ACC; /*!< Register accumulating the valid transitions */
+ __I int32_t ACCREAD; /*!< Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC
+ task */
+ QDEC_PSEL_Type PSEL; /*!< Unspecified */
+ __IO uint32_t DBFEN; /*!< Enable input debounce filters */
+ __I uint32_t RESERVED4[5];
+ __IO uint32_t LEDPRE; /*!< Time period the LED is switched ON prior to sampling */
+ __I uint32_t ACCDBL; /*!< Register accumulating the number of detected double transitions */
+ __I uint32_t ACCDBLREAD; /*!< Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL
+ task */
+} NRF_QDEC_Type;
+
+
+/* ================================================================================ */
+/* ================ COMP ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Comparator (COMP)
+ */
+
+typedef struct { /*!< COMP Structure */
+ __O uint32_t TASKS_START; /*!< Start comparator */
+ __O uint32_t TASKS_STOP; /*!< Stop comparator */
+ __O uint32_t TASKS_SAMPLE; /*!< Sample comparator value */
+ __I uint32_t RESERVED0[61];
+ __IO uint32_t EVENTS_READY; /*!< COMP is ready and output is valid */
+ __IO uint32_t EVENTS_DOWN; /*!< Downward crossing */
+ __IO uint32_t EVENTS_UP; /*!< Upward crossing */
+ __IO uint32_t EVENTS_CROSS; /*!< Downward or upward crossing */
+ __I uint32_t RESERVED1[60];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t RESULT; /*!< Compare result */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< COMP enable */
+ __IO uint32_t PSEL; /*!< Pin select */
+ __IO uint32_t REFSEL; /*!< Reference source select for single-ended mode */
+ __IO uint32_t EXTREFSEL; /*!< External reference select */
+ __I uint32_t RESERVED5[8];
+ __IO uint32_t TH; /*!< Threshold configuration for hysteresis unit */
+ __IO uint32_t MODE; /*!< Mode configuration */
+ __IO uint32_t HYST; /*!< Comparator hysteresis enable */
+} NRF_COMP_Type;
+
+
+/* ================================================================================ */
+/* ================ SWI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Software interrupt 0 (SWI)
+ */
+
+typedef struct { /*!< SWI Structure */
+ __I uint32_t UNUSED; /*!< Unused. */
+} NRF_SWI_Type;
+
+
+/* ================================================================================ */
+/* ================ EGU ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Event Generator Unit 0 (EGU)
+ */
+
+typedef struct { /*!< EGU Structure */
+ __O uint32_t TASKS_TRIGGER[16]; /*!< Description collection[0]: Trigger 0 for triggering the corresponding
+ TRIGGERED[0] event */
+ __I uint32_t RESERVED0[48];
+ __IO uint32_t EVENTS_TRIGGERED[16]; /*!< Description collection[0]: Event number 0 generated by triggering
+ the corresponding TRIGGER[0] task */
+ __I uint32_t RESERVED1[112];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+} NRF_EGU_Type;
+
+
+/* ================================================================================ */
+/* ================ PWM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Pulse width modulation unit (PWM)
+ */
+
+typedef struct { /*!< PWM Structure */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STOP; /*!< Stops PWM pulse generation on all channels at the end of current
+ PWM period, and stops sequence playback */
+ __O uint32_t TASKS_SEQSTART[2]; /*!< Description collection[0]: Loads the first PWM value on all
+ enabled channels from sequence 0, and starts playing that sequence
+ at the rate defined in SEQ[0]REFRESH and/or DECODER.MODE. Causes
+ PWM generation to start if not running. */
+ __O uint32_t TASKS_NEXTSTEP; /*!< Steps by one value in the current sequence on all enabled channels
+ if DECODER.MODE=NextStep. Does not cause PWM generation to start
+ if not running. */
+ __I uint32_t RESERVED1[60];
+ __IO uint32_t EVENTS_STOPPED; /*!< Response to STOP task, emitted when PWM pulses are no longer
+ generated */
+ __IO uint32_t EVENTS_SEQSTARTED[2]; /*!< Description collection[0]: First PWM period started on sequence
+ 0 */
+ __IO uint32_t EVENTS_SEQEND[2]; /*!< Description collection[0]: Emitted at end of every sequence
+ 0, when last value from RAM has been applied to wave counter */
+ __IO uint32_t EVENTS_PWMPERIODEND; /*!< Emitted at the end of each PWM period */
+ __IO uint32_t EVENTS_LOOPSDONE; /*!< Concatenated sequences have been played the amount of times
+ defined in LOOP.CNT */
+ __I uint32_t RESERVED2[56];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED3[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED4[125];
+ __IO uint32_t ENABLE; /*!< PWM module enable register */
+ __IO uint32_t MODE; /*!< Selects operating mode of the wave counter */
+ __IO uint32_t COUNTERTOP; /*!< Value up to which the pulse generator counter counts */
+ __IO uint32_t PRESCALER; /*!< Configuration for PWM_CLK */
+ __IO uint32_t DECODER; /*!< Configuration of the decoder */
+ __IO uint32_t LOOP; /*!< Number of playbacks of a loop */
+ __I uint32_t RESERVED5[2];
+ PWM_SEQ_Type SEQ[2]; /*!< Unspecified */
+ PWM_PSEL_Type PSEL; /*!< Unspecified */
+} NRF_PWM_Type;
+
+
+/* ================================================================================ */
+/* ================ PDM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Pulse Density Modulation (Digital Microphone) Interface (PDM)
+ */
+
+typedef struct { /*!< PDM Structure */
+ __O uint32_t TASKS_START; /*!< Starts continuous PDM transfer */
+ __O uint32_t TASKS_STOP; /*!< Stops PDM transfer */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_STARTED; /*!< PDM transfer has started */
+ __IO uint32_t EVENTS_STOPPED; /*!< PDM transfer has finished */
+ __IO uint32_t EVENTS_END; /*!< The PDM has written the last sample specified by SAMPLE.MAXCNT
+ (or the last sample after a STOP task has been received) to
+ Data RAM */
+ __I uint32_t RESERVED1[125];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[125];
+ __IO uint32_t ENABLE; /*!< PDM module enable register */
+ __IO uint32_t PDMCLKCTRL; /*!< PDM clock generator control */
+ __IO uint32_t MODE; /*!< Defines the routing of the connected PDM microphones' signals */
+ __I uint32_t RESERVED3[3];
+ __IO uint32_t GAINL; /*!< Left output gain adjustment */
+ __IO uint32_t GAINR; /*!< Right output gain adjustment */
+ __I uint32_t RESERVED4[8];
+ PDM_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED5[6];
+ PDM_SAMPLE_Type SAMPLE; /*!< Unspecified */
+} NRF_PDM_Type;
+
+
+/* ================================================================================ */
+/* ================ NVMC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Non-volatile memory controller (NVMC)
+ */
+
+typedef struct { /*!< NVMC Structure */
+ __I uint32_t RESERVED0[256];
+ __I uint32_t READY; /*!< Ready flag */
+ __I uint32_t RESERVED1[64];
+ __IO uint32_t CONFIG; /*!< Configuration register */
+
+ union {
+ __IO uint32_t ERASEPAGE; /*!< Register for erasing a page in code area */
+ __IO uint32_t ERASEPCR1; /*!< Deprecated register - Register for erasing a page in code area.
+ Equivalent to ERASEPAGE. */
+ };
+ __IO uint32_t ERASEALL; /*!< Register for erasing all non-volatile user memory */
+ __IO uint32_t ERASEPCR0; /*!< Deprecated register - Register for erasing a page in code area.
+ Equivalent to ERASEPAGE. */
+ __IO uint32_t ERASEUICR; /*!< Register for erasing user information configuration registers */
+} NRF_NVMC_Type;
+
+
+/* ================================================================================ */
+/* ================ PPI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Programmable Peripheral Interconnect (PPI)
+ */
+
+typedef struct { /*!< PPI Structure */
+ PPI_TASKS_CHG_Type TASKS_CHG[6]; /*!< Channel group tasks */
+ __I uint32_t RESERVED0[308];
+ __IO uint32_t CHEN; /*!< Channel enable register */
+ __IO uint32_t CHENSET; /*!< Channel enable set register */
+ __IO uint32_t CHENCLR; /*!< Channel enable clear register */
+ __I uint32_t RESERVED1;
+ PPI_CH_Type CH[20]; /*!< PPI Channel */
+ __I uint32_t RESERVED2[148];
+ __IO uint32_t CHG[6]; /*!< Description collection[0]: Channel group 0 */
+ __I uint32_t RESERVED3[62];
+ PPI_FORK_Type FORK[32]; /*!< Fork */
+} NRF_PPI_Type;
+
+
+/* ================================================================================ */
+/* ================ GPIO ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief GPIO Port (GPIO)
+ */
+
+typedef struct { /*!< GPIO Structure */
+ __I uint32_t RESERVED0[321];
+ __IO uint32_t OUT; /*!< Write GPIO port */
+ __IO uint32_t OUTSET; /*!< Set individual bits in GPIO port */
+ __IO uint32_t OUTCLR; /*!< Clear individual bits in GPIO port */
+ __I uint32_t IN; /*!< Read GPIO port */
+ __IO uint32_t DIR; /*!< Direction of GPIO pins */
+ __IO uint32_t DIRSET; /*!< DIR set register */
+ __IO uint32_t DIRCLR; /*!< DIR clear register */
+ __IO uint32_t LATCH; /*!< Latch register indicating what GPIO pins that have met the criteria
+ set in the PIN_CNF[n].SENSE registers */
+ __IO uint32_t DETECTMODE; /*!< Select between default DETECT signal behaviour and LDETECT mode */
+ __I uint32_t RESERVED1[118];
+ __IO uint32_t PIN_CNF[32]; /*!< Description collection[0]: Configuration of GPIO pins */
+} NRF_GPIO_Type;
+
+
+/* -------------------- End of section using anonymous unions ------------------- */
+#if defined(__CC_ARM)
+ #pragma pop
+#elif defined(__ICCARM__)
+ /* leave anonymous unions enabled */
+#elif defined(__GNUC__)
+ /* anonymous unions are enabled by default */
+#elif defined(__TMS470__)
+ /* anonymous unions are enabled by default */
+#elif defined(__TASKING__)
+ #pragma warning restore
+#else
+ #warning Not supported compiler type
+#endif
+
+
+
+
+/* ================================================================================ */
+/* ================ Peripheral memory map ================ */
+/* ================================================================================ */
+
+#define NRF_FICR_BASE 0x10000000UL
+#define NRF_UICR_BASE 0x10001000UL
+#define NRF_BPROT_BASE 0x40000000UL
+#define NRF_POWER_BASE 0x40000000UL
+#define NRF_CLOCK_BASE 0x40000000UL
+#define NRF_RADIO_BASE 0x40001000UL
+#define NRF_UARTE0_BASE 0x40002000UL
+#define NRF_TWIM0_BASE 0x40003000UL
+#define NRF_TWIS0_BASE 0x40003000UL
+#define NRF_SPIM0_BASE 0x40004000UL
+#define NRF_SPIS0_BASE 0x40004000UL
+#define NRF_GPIOTE_BASE 0x40006000UL
+#define NRF_SAADC_BASE 0x40007000UL
+#define NRF_TIMER0_BASE 0x40008000UL
+#define NRF_TIMER1_BASE 0x40009000UL
+#define NRF_TIMER2_BASE 0x4000A000UL
+#define NRF_RTC0_BASE 0x4000B000UL
+#define NRF_TEMP_BASE 0x4000C000UL
+#define NRF_RNG_BASE 0x4000D000UL
+#define NRF_ECB_BASE 0x4000E000UL
+#define NRF_CCM_BASE 0x4000F000UL
+#define NRF_AAR_BASE 0x4000F000UL
+#define NRF_WDT_BASE 0x40010000UL
+#define NRF_RTC1_BASE 0x40011000UL
+#define NRF_QDEC_BASE 0x40012000UL
+#define NRF_COMP_BASE 0x40013000UL
+#define NRF_SWI0_BASE 0x40014000UL
+#define NRF_EGU0_BASE 0x40014000UL
+#define NRF_SWI1_BASE 0x40015000UL
+#define NRF_EGU1_BASE 0x40015000UL
+#define NRF_SWI2_BASE 0x40016000UL
+#define NRF_SWI3_BASE 0x40017000UL
+#define NRF_SWI4_BASE 0x40018000UL
+#define NRF_SWI5_BASE 0x40019000UL
+#define NRF_PWM0_BASE 0x4001C000UL
+#define NRF_PDM_BASE 0x4001D000UL
+#define NRF_NVMC_BASE 0x4001E000UL
+#define NRF_PPI_BASE 0x4001F000UL
+#define NRF_P0_BASE 0x50000000UL
+
+
+/* ================================================================================ */
+/* ================ Peripheral declaration ================ */
+/* ================================================================================ */
+
+#define NRF_FICR ((NRF_FICR_Type *) NRF_FICR_BASE)
+#define NRF_UICR ((NRF_UICR_Type *) NRF_UICR_BASE)
+#define NRF_BPROT ((NRF_BPROT_Type *) NRF_BPROT_BASE)
+#define NRF_POWER ((NRF_POWER_Type *) NRF_POWER_BASE)
+#define NRF_CLOCK ((NRF_CLOCK_Type *) NRF_CLOCK_BASE)
+#define NRF_RADIO ((NRF_RADIO_Type *) NRF_RADIO_BASE)
+#define NRF_UARTE0 ((NRF_UARTE_Type *) NRF_UARTE0_BASE)
+#define NRF_TWIM0 ((NRF_TWIM_Type *) NRF_TWIM0_BASE)
+#define NRF_TWIS0 ((NRF_TWIS_Type *) NRF_TWIS0_BASE)
+#define NRF_SPIM0 ((NRF_SPIM_Type *) NRF_SPIM0_BASE)
+#define NRF_SPIS0 ((NRF_SPIS_Type *) NRF_SPIS0_BASE)
+#define NRF_GPIOTE ((NRF_GPIOTE_Type *) NRF_GPIOTE_BASE)
+#define NRF_SAADC ((NRF_SAADC_Type *) NRF_SAADC_BASE)
+#define NRF_TIMER0 ((NRF_TIMER_Type *) NRF_TIMER0_BASE)
+#define NRF_TIMER1 ((NRF_TIMER_Type *) NRF_TIMER1_BASE)
+#define NRF_TIMER2 ((NRF_TIMER_Type *) NRF_TIMER2_BASE)
+#define NRF_RTC0 ((NRF_RTC_Type *) NRF_RTC0_BASE)
+#define NRF_TEMP ((NRF_TEMP_Type *) NRF_TEMP_BASE)
+#define NRF_RNG ((NRF_RNG_Type *) NRF_RNG_BASE)
+#define NRF_ECB ((NRF_ECB_Type *) NRF_ECB_BASE)
+#define NRF_CCM ((NRF_CCM_Type *) NRF_CCM_BASE)
+#define NRF_AAR ((NRF_AAR_Type *) NRF_AAR_BASE)
+#define NRF_WDT ((NRF_WDT_Type *) NRF_WDT_BASE)
+#define NRF_RTC1 ((NRF_RTC_Type *) NRF_RTC1_BASE)
+#define NRF_QDEC ((NRF_QDEC_Type *) NRF_QDEC_BASE)
+#define NRF_COMP ((NRF_COMP_Type *) NRF_COMP_BASE)
+#define NRF_SWI0 ((NRF_SWI_Type *) NRF_SWI0_BASE)
+#define NRF_EGU0 ((NRF_EGU_Type *) NRF_EGU0_BASE)
+#define NRF_SWI1 ((NRF_SWI_Type *) NRF_SWI1_BASE)
+#define NRF_EGU1 ((NRF_EGU_Type *) NRF_EGU1_BASE)
+#define NRF_SWI2 ((NRF_SWI_Type *) NRF_SWI2_BASE)
+#define NRF_SWI3 ((NRF_SWI_Type *) NRF_SWI3_BASE)
+#define NRF_SWI4 ((NRF_SWI_Type *) NRF_SWI4_BASE)
+#define NRF_SWI5 ((NRF_SWI_Type *) NRF_SWI5_BASE)
+#define NRF_PWM0 ((NRF_PWM_Type *) NRF_PWM0_BASE)
+#define NRF_PDM ((NRF_PDM_Type *) NRF_PDM_BASE)
+#define NRF_NVMC ((NRF_NVMC_Type *) NRF_NVMC_BASE)
+#define NRF_PPI ((NRF_PPI_Type *) NRF_PPI_BASE)
+#define NRF_P0 ((NRF_GPIO_Type *) NRF_P0_BASE)
+
+
+/** @} */ /* End of group Device_Peripheral_Registers */
+/** @} */ /* End of group nrf52810 */
+/** @} */ /* End of group Nordic Semiconductor */
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* nrf52810_H */
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810.svd b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810.svd
new file mode 100644
index 0000000..6a7aea4
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810.svd
@@ -0,0 +1,31726 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- File naming: <vendor>_<part/series name>_svd.xml -->
+<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" noNamespaceSchemaLocation="CMSIS-SVD.xsd">
+ <vendor>Nordic Semiconductor</vendor>
+ <vendorID>Nordic</vendorID>
+ <name>nrf52810</name>
+ <series>nrf52</series>
+ <version>1</version>
+ <description>nRF52810 reference description for radio MCU with ARM 32-bit Cortex-M4 Microcontroller </description>
+ <licenseText>
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA\n
+\n
+All rights reserved.\n
+\n
+Redistribution and use in source and binary forms, with or without modification,\n
+are permitted provided that the following conditions are met:\n
+\n
+1. Redistributions of source code must retain the above copyright notice, this\n
+ list of conditions and the following disclaimer.\n
+\n
+2. Redistributions in binary form, except as embedded into a Nordic\n
+ Semiconductor ASA integrated circuit in a product or a software update for\n
+ such product, must reproduce the above copyright notice, this list of\n
+ conditions and the following disclaimer in the documentation and/or other\n
+ materials provided with the distribution.\n
+\n
+3. Neither the name of Nordic Semiconductor ASA nor the names of its\n
+ contributors may be used to endorse or promote products derived from this\n
+ software without specific prior written permission.\n
+\n
+4. This software, with or without modification, must only be used with a\n
+ Nordic Semiconductor ASA integrated circuit.\n
+\n
+5. Any software provided in binary form under this license must not be reverse\n
+ engineered, decompiled, modified and/or disassembled.\n
+\n
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS\n
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE\n
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE\n
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\n
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n
+ </licenseText>
+ <addressUnitBits>8</addressUnitBits>
+ <width>32</width>
+ <size>32</size>
+ <resetValue>0x00000000</resetValue>
+ <resetMask>0xFFFFFFFF</resetMask>
+ <cpu>
+ <name>CM4</name>
+ <revision>r0p1</revision>
+ <endian>little</endian>
+ <mpuPresent>1</mpuPresent>
+ <fpuPresent>0</fpuPresent>
+ <nvicPrioBits>3</nvicPrioBits>
+ <vendorSystickConfig>0</vendorSystickConfig>
+ </cpu>
+ <headerSystemFilename>system_nrf52810</headerSystemFilename>
+ <headerDefinitionsPrefix>NRF_</headerDefinitionsPrefix>
+ <vendorExtensions>
+ <ExampleStackSize>2048</ExampleStackSize>
+ <ExampleHeapSize>2048</ExampleHeapSize>
+ <MaxInterrupts>112</MaxInterrupts>
+ </vendorExtensions>
+ <peripherals>
+ <peripheral>
+ <name>FICR</name>
+ <description>Factory information configuration registers</description>
+ <groupName>FICR</groupName>
+ <baseAddress>0x10000000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <registers>
+ <register>
+ <name>CODEPAGESIZE</name>
+ <description>Code memory page size</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00001000</resetValue>
+ <fields>
+ <field>
+ <name>CODEPAGESIZE</name>
+ <description>Code memory page size</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CODESIZE</name>
+ <description>Code memory size</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000030</resetValue>
+ <fields>
+ <field>
+ <name>CODESIZE</name>
+ <description>Code memory size in number of pages</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>DEVICEID[%s]</name>
+ <description>Description collection[0]: Device identifier</description>
+ <addressOffset>0x060</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>DEVICEID</name>
+ <description>64 bit unique device identifier</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>ER[%s]</name>
+ <description>Description collection[0]: Encryption root, word 0</description>
+ <addressOffset>0x080</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>ER</name>
+ <description>Encryption root, word n</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>IR[%s]</name>
+ <description>Description collection[0]: Identity root, word 0</description>
+ <addressOffset>0x090</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>IR</name>
+ <description>Identity root, word n</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DEVICEADDRTYPE</name>
+ <description>Device address type</description>
+ <addressOffset>0x0A0</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>DEVICEADDRTYPE</name>
+ <description>Device address type</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Public</name>
+ <description>Public address</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Random</name>
+ <description>Random address</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>DEVICEADDR[%s]</name>
+ <description>Description collection[0]: Device address 0</description>
+ <addressOffset>0x0A4</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>DEVICEADDR</name>
+ <description>48 bit device address</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>INFO</name>
+ <description>Device info</description>
+ <headerStructName>FICR_INFO</headerStructName>
+ <addressOffset>0x100</addressOffset>
+ <register>
+ <name>PART</name>
+ <description>Part code</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00052810</resetValue>
+ <fields>
+ <field>
+ <name>PART</name>
+ <description>Part code</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>N52810</name>
+ <description>nRF52810</description>
+ <value>0x52810</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>VARIANT</name>
+ <description>Part variant, hardware version and production configuration</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>VARIANT</name>
+ <description>Part variant, hardware version and production configuration, encoded as ASCII</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AAAA</name>
+ <description>AAAA</description>
+ <value>0x41414141</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AAA0</name>
+ <description>AAA0</description>
+ <value>0x41414130</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AABA</name>
+ <description>AABA</description>
+ <value>0x41414241</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AABB</name>
+ <description>AABB</description>
+ <value>0x41414242</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AAB0</name>
+ <description>AAB0</description>
+ <value>0x41414230</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AACA</name>
+ <description>AACA</description>
+ <value>0x41414341</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AACB</name>
+ <description>AACB</description>
+ <value>0x41414342</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AAC0</name>
+ <description>AAC0</description>
+ <value>0x41414330</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PACKAGE</name>
+ <description>Package option</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PACKAGE</name>
+ <description>Package option</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>QF</name>
+ <description>QFxx - 48-pin QFN</description>
+ <value>0x2000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>QC</name>
+ <description>QCxx - 32-pin QFN</description>
+ <value>0x2003</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RAM</name>
+ <description>RAM variant</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000018</resetValue>
+ <fields>
+ <field>
+ <name>RAM</name>
+ <description>RAM variant</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K24</name>
+ <description>24 kByte RAM</description>
+ <value>0x18</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FLASH</name>
+ <description>Flash variant</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x000000C0</resetValue>
+ <fields>
+ <field>
+ <name>FLASH</name>
+ <description>Flash variant</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K192</name>
+ <description>192 kByte flash</description>
+ <value>0xC0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>3</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>UNUSED0[%s]</name>
+ <description>Description collection[0]: Unspecified</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-write</access>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TEMP</name>
+ <description>Registers storing factory TEMP module linearization coefficients</description>
+ <headerStructName>FICR_TEMP</headerStructName>
+ <addressOffset>0x404</addressOffset>
+ <register>
+ <name>A0</name>
+ <description>Slope definition A0</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000320</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A1</name>
+ <description>Slope definition A1</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000343</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A2</name>
+ <description>Slope definition A2</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x0000035D</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A3</name>
+ <description>Slope definition A3</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000400</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A4</name>
+ <description>Slope definition A4</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000452</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A5</name>
+ <description>Slope definition A5</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x0000037B</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B0</name>
+ <description>Y-intercept B0</description>
+ <addressOffset>0x018</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00003FCC</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B1</name>
+ <description>Y-intercept B1</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00003F98</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B2</name>
+ <description>Y-intercept B2</description>
+ <addressOffset>0x020</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00003F98</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B3</name>
+ <description>Y-intercept B3</description>
+ <addressOffset>0x024</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000012</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B4</name>
+ <description>Y-intercept B4</description>
+ <addressOffset>0x028</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x0000004D</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B5</name>
+ <description>Y-intercept B5</description>
+ <addressOffset>0x02C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00003E10</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T0</name>
+ <description>Segment end T0</description>
+ <addressOffset>0x030</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x000000E2</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end) register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T1</name>
+ <description>Segment end T1</description>
+ <addressOffset>0x034</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end) register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T2</name>
+ <description>Segment end T2</description>
+ <addressOffset>0x038</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000014</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end) register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T3</name>
+ <description>Segment end T3</description>
+ <addressOffset>0x03C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000019</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end) register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T4</name>
+ <description>Segment end T4</description>
+ <addressOffset>0x040</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000050</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end) register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>UICR</name>
+ <description>User information configuration registers</description>
+ <groupName>UICR</groupName>
+ <baseAddress>0x10001000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <registers>
+ <register>
+ <name>UNUSED0</name>
+ <description>Unspecified</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>UNUSED1</name>
+ <description>Unspecified</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>UNUSED2</name>
+ <description>Unspecified</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>UNUSED3</name>
+ <description>Unspecified</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <dim>15</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>NRFFW[%s]</name>
+ <description>Description collection[0]: Reserved for Nordic firmware design</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>NRFFW</name>
+ <description>Reserved for Nordic firmware design</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>12</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>NRFHW[%s]</name>
+ <description>Description collection[0]: Reserved for Nordic hardware design</description>
+ <addressOffset>0x050</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>NRFHW</name>
+ <description>Reserved for Nordic hardware design</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>32</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>CUSTOMER[%s]</name>
+ <description>Description collection[0]: Reserved for customer</description>
+ <addressOffset>0x080</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>CUSTOMER</name>
+ <description>Reserved for customer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>PSELRESET[%s]</name>
+ <description>Description collection[0]: Mapping of the nRESET function (see POWER chapter for details)</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>GPIO number P0.n onto which reset is exposed</description>
+ <lsb>0</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>APPROTECT</name>
+ <description>Access port protection</description>
+ <addressOffset>0x208</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PALL</name>
+ <description>Enable or disable access port protection.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0xFF</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>BPROT</name>
+ <description>Block Protect</description>
+ <groupName>BPROT</groupName>
+ <baseAddress>0x40000000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <registers>
+ <register>
+ <name>CONFIG0</name>
+ <description>Block protect configuration register 0</description>
+ <addressOffset>0x600</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0</name>
+ <description>Enable protection for region 0. Write '0' has no effect.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1</name>
+ <description>Enable protection for region 1. Write '0' has no effect.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2</name>
+ <description>Enable protection for region 2. Write '0' has no effect.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3</name>
+ <description>Enable protection for region 3. Write '0' has no effect.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION4</name>
+ <description>Enable protection for region 4. Write '0' has no effect.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION5</name>
+ <description>Enable protection for region 5. Write '0' has no effect.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION6</name>
+ <description>Enable protection for region 6. Write '0' has no effect.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION7</name>
+ <description>Enable protection for region 7. Write '0' has no effect.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION8</name>
+ <description>Enable protection for region 8. Write '0' has no effect.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION9</name>
+ <description>Enable protection for region 9. Write '0' has no effect.</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION10</name>
+ <description>Enable protection for region 10. Write '0' has no effect.</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION11</name>
+ <description>Enable protection for region 11. Write '0' has no effect.</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION12</name>
+ <description>Enable protection for region 12. Write '0' has no effect.</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION13</name>
+ <description>Enable protection for region 13. Write '0' has no effect.</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION14</name>
+ <description>Enable protection for region 14. Write '0' has no effect.</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION15</name>
+ <description>Enable protection for region 15. Write '0' has no effect.</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION16</name>
+ <description>Enable protection for region 16. Write '0' has no effect.</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION17</name>
+ <description>Enable protection for region 17. Write '0' has no effect.</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION18</name>
+ <description>Enable protection for region 18. Write '0' has no effect.</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION19</name>
+ <description>Enable protection for region 19. Write '0' has no effect.</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION20</name>
+ <description>Enable protection for region 20. Write '0' has no effect.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION21</name>
+ <description>Enable protection for region 21. Write '0' has no effect.</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION22</name>
+ <description>Enable protection for region 22. Write '0' has no effect.</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION23</name>
+ <description>Enable protection for region 23. Write '0' has no effect.</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION24</name>
+ <description>Enable protection for region 24. Write '0' has no effect.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION25</name>
+ <description>Enable protection for region 25. Write '0' has no effect.</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION26</name>
+ <description>Enable protection for region 26. Write '0' has no effect.</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION27</name>
+ <description>Enable protection for region 27. Write '0' has no effect.</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION28</name>
+ <description>Enable protection for region 28. Write '0' has no effect.</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION29</name>
+ <description>Enable protection for region 29. Write '0' has no effect.</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION30</name>
+ <description>Enable protection for region 30. Write '0' has no effect.</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION31</name>
+ <description>Enable protection for region 31. Write '0' has no effect.</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG1</name>
+ <description>Block protect configuration register 1</description>
+ <addressOffset>0x604</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION32</name>
+ <description>Enable protection for region 32. Write '0' has no effect.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION33</name>
+ <description>Enable protection for region 33. Write '0' has no effect.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION34</name>
+ <description>Enable protection for region 34. Write '0' has no effect.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION35</name>
+ <description>Enable protection for region 35. Write '0' has no effect.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION36</name>
+ <description>Enable protection for region 36. Write '0' has no effect.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION37</name>
+ <description>Enable protection for region 37. Write '0' has no effect.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION38</name>
+ <description>Enable protection for region 38. Write '0' has no effect.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION39</name>
+ <description>Enable protection for region 39. Write '0' has no effect.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION40</name>
+ <description>Enable protection for region 40. Write '0' has no effect.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION41</name>
+ <description>Enable protection for region 41. Write '0' has no effect.</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION42</name>
+ <description>Enable protection for region 42. Write '0' has no effect.</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION43</name>
+ <description>Enable protection for region 43. Write '0' has no effect.</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION44</name>
+ <description>Enable protection for region 44. Write '0' has no effect.</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION45</name>
+ <description>Enable protection for region 45. Write '0' has no effect.</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION46</name>
+ <description>Enable protection for region 46. Write '0' has no effect.</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION47</name>
+ <description>Enable protection for region 47. Write '0' has no effect.</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Protection disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Protection enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DISABLEINDEBUG</name>
+ <description>Disable protection mechanism in debug mode</description>
+ <addressOffset>0x608</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>DISABLEINDEBUG</name>
+ <description>Disable the protection mechanism for NVM regions while in debug mode. This register will only disable the protection mechanism if the device is in debug mode.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled in debug</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled in debug</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>UNUSED0</name>
+ <description>Unspecified</description>
+ <addressOffset>0x60C</addressOffset>
+ <access>read-write</access>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>POWER</name>
+ <description>Power control</description>
+ <groupName>POWER</groupName>
+ <baseAddress>0x40000000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>BPROT</alternatePeripheral>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>POWER_CLOCK</name>
+ <value>0</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_CONSTLAT</name>
+ <description>Enable constant latency mode</description>
+ <addressOffset>0x078</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CONSTLAT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_LOWPWR</name>
+ <description>Enable low power mode (variable latency)</description>
+ <addressOffset>0x07C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_LOWPWR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_POFWARN</name>
+ <description>Power failure warning</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_POFWARN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_SLEEPENTER</name>
+ <description>CPU entered WFI/WFE sleep</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SLEEPENTER</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_SLEEPEXIT</name>
+ <description>CPU exited WFI/WFE sleep</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SLEEPEXIT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>POFWARN</name>
+ <description>Write '1' to Enable interrupt for POFWARN event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SLEEPENTER</name>
+ <description>Write '1' to Enable interrupt for SLEEPENTER event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SLEEPEXIT</name>
+ <description>Write '1' to Enable interrupt for SLEEPEXIT event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>POFWARN</name>
+ <description>Write '1' to Disable interrupt for POFWARN event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SLEEPENTER</name>
+ <description>Write '1' to Disable interrupt for SLEEPENTER event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SLEEPEXIT</name>
+ <description>Write '1' to Disable interrupt for SLEEPEXIT event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RESETREAS</name>
+ <description>Reset reason</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RESETPIN</name>
+ <description>Reset from pin-reset detected</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOG</name>
+ <description>Reset from watchdog detected</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SREQ</name>
+ <description>Reset from soft reset detected</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOCKUP</name>
+ <description>Reset from CPU lock-up detected</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OFF</name>
+ <description>Reset due to wake up from System OFF mode when wakeup is triggered from DETECT signal from GPIO</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DIF</name>
+ <description>Reset due to wake up from System OFF mode when wakeup is triggered from entering into debug interface mode</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SYSTEMOFF</name>
+ <description>System OFF register</description>
+ <addressOffset>0x500</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>SYSTEMOFF</name>
+ <description>Enable System OFF mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Enter</name>
+ <description>Enable System OFF mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>POFCON</name>
+ <description>Power failure comparator configuration</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>POF</name>
+ <description>Enable or disable power failure comparator</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>THRESHOLD</name>
+ <description>Power failure comparator threshold setting</description>
+ <lsb>1</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>V17</name>
+ <description>Set threshold to 1.7 V</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V18</name>
+ <description>Set threshold to 1.8 V</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V19</name>
+ <description>Set threshold to 1.9 V</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V20</name>
+ <description>Set threshold to 2.0 V</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V21</name>
+ <description>Set threshold to 2.1 V</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V22</name>
+ <description>Set threshold to 2.2 V</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V23</name>
+ <description>Set threshold to 2.3 V</description>
+ <value>10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V24</name>
+ <description>Set threshold to 2.4 V</description>
+ <value>11</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V25</name>
+ <description>Set threshold to 2.5 V</description>
+ <value>12</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V26</name>
+ <description>Set threshold to 2.6 V</description>
+ <value>13</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V27</name>
+ <description>Set threshold to 2.7 V</description>
+ <value>14</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V28</name>
+ <description>Set threshold to 2.8 V</description>
+ <value>15</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>GPREGRET</name>
+ <description>General purpose retention register</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>GPREGRET</name>
+ <description>General purpose retention register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>GPREGRET2</name>
+ <description>General purpose retention register</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>GPREGRET</name>
+ <description>General purpose retention register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DCDCEN</name>
+ <description>DC/DC enable register</description>
+ <addressOffset>0x578</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DCDCEN</name>
+ <description>Enable or disable DC/DC converter</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>8</dim>
+ <dimIncrement>16</dimIncrement>
+ <name>RAM[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>POWER_RAM</headerStructName>
+ <addressOffset>0x900</addressOffset>
+ <register>
+ <name>POWER</name>
+ <description>Description cluster[0]: RAM0 power control register</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000FFFF</resetValue>
+ <fields>
+ <field>
+ <name>S0POWER</name>
+ <description>Keep RAM section S0 ON or OFF in System ON mode.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1POWER</name>
+ <description>Keep RAM section S1 ON or OFF in System ON mode.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S0RETENTION</name>
+ <description>Keep retention on RAM section S0 when RAM section is in OFF</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1RETENTION</name>
+ <description>Keep retention on RAM section S1 when RAM section is in OFF</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>POWERSET</name>
+ <description>Description cluster[0]: RAM0 power control set register</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <resetValue>0x0000FFFF</resetValue>
+ <fields>
+ <field>
+ <name>S0POWER</name>
+ <description>Keep RAM section S0 of RAM0 on or off in System ON mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1POWER</name>
+ <description>Keep RAM section S1 of RAM0 on or off in System ON mode</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S0RETENTION</name>
+ <description>Keep retention on RAM section S0 when RAM section is switched off</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1RETENTION</name>
+ <description>Keep retention on RAM section S1 when RAM section is switched off</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>POWERCLR</name>
+ <description>Description cluster[0]: RAM0 power control clear register</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <resetValue>0x0000FFFF</resetValue>
+ <fields>
+ <field>
+ <name>S0POWER</name>
+ <description>Keep RAM section S0 of RAM0 on or off in System ON mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1POWER</name>
+ <description>Keep RAM section S1 of RAM0 on or off in System ON mode</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S0RETENTION</name>
+ <description>Keep retention on RAM section S0 when RAM section is switched off</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1RETENTION</name>
+ <description>Keep retention on RAM section S1 when RAM section is switched off</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>CLOCK</name>
+ <description>Clock control</description>
+ <groupName>CLOCK</groupName>
+ <baseAddress>0x40000000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>BPROT</alternatePeripheral>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>POWER_CLOCK</name>
+ <value>0</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_HFCLKSTART</name>
+ <description>Start HFCLK crystal oscillator</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_HFCLKSTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_HFCLKSTOP</name>
+ <description>Stop HFCLK crystal oscillator</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_HFCLKSTOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_LFCLKSTART</name>
+ <description>Start LFCLK source</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_LFCLKSTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_LFCLKSTOP</name>
+ <description>Stop LFCLK source</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_LFCLKSTOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CAL</name>
+ <description>Start calibration of LFRC oscillator</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CAL</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CTSTART</name>
+ <description>Start calibration timer</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CTSTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CTSTOP</name>
+ <description>Stop calibration timer</description>
+ <addressOffset>0x018</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CTSTOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_HFCLKSTARTED</name>
+ <description>HFCLK oscillator started</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_HFCLKSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_LFCLKSTARTED</name>
+ <description>LFCLK started</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_LFCLKSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DONE</name>
+ <description>Calibration of LFCLK RC oscillator complete event</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DONE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CTTO</name>
+ <description>Calibration timer timeout</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CTTO</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HFCLKSTARTED</name>
+ <description>Write '1' to Enable interrupt for HFCLKSTARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LFCLKSTARTED</name>
+ <description>Write '1' to Enable interrupt for LFCLKSTARTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Write '1' to Enable interrupt for DONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CTTO</name>
+ <description>Write '1' to Enable interrupt for CTTO event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HFCLKSTARTED</name>
+ <description>Write '1' to Disable interrupt for HFCLKSTARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LFCLKSTARTED</name>
+ <description>Write '1' to Disable interrupt for LFCLKSTARTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Write '1' to Disable interrupt for DONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CTTO</name>
+ <description>Write '1' to Disable interrupt for CTTO event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HFCLKRUN</name>
+ <description>Status indicating that HFCLKSTART task has been triggered</description>
+ <addressOffset>0x408</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>HFCLKSTART task triggered or not</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotTriggered</name>
+ <description>Task not triggered</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Triggered</name>
+ <description>Task triggered</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HFCLKSTAT</name>
+ <description>HFCLK status</description>
+ <addressOffset>0x40C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Source of HFCLK</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>64 MHz internal oscillator (HFINT)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>64 MHz crystal oscillator (HFXO)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STATE</name>
+ <description>HFCLK state</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotRunning</name>
+ <description>HFCLK not running</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Running</name>
+ <description>HFCLK running</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFCLKRUN</name>
+ <description>Status indicating that LFCLKSTART task has been triggered</description>
+ <addressOffset>0x414</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>LFCLKSTART task triggered or not</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotTriggered</name>
+ <description>Task not triggered</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Triggered</name>
+ <description>Task triggered</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFCLKSTAT</name>
+ <description>LFCLK status</description>
+ <addressOffset>0x418</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Source of LFCLK</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>32.768 kHz RC oscillator</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>32.768 kHz crystal oscillator</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Synth</name>
+ <description>32.768 kHz synthesized from HFCLK</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STATE</name>
+ <description>LFCLK state</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotRunning</name>
+ <description>LFCLK not running</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Running</name>
+ <description>LFCLK running</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFCLKSRCCOPY</name>
+ <description>Copy of LFCLKSRC register, set when LFCLKSTART task was triggered</description>
+ <addressOffset>0x41C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Clock source</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>32.768 kHz RC oscillator</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>32.768 kHz crystal oscillator</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Synth</name>
+ <description>32.768 kHz synthesized from HFCLK</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFCLKSRC</name>
+ <description>Clock source for the LFCLK</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Clock source</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>32.768 kHz RC oscillator</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>32.768 kHz crystal oscillator</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Synth</name>
+ <description>32.768 kHz synthesized from HFCLK</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BYPASS</name>
+ <description>Enable or disable bypass of LFCLK crystal oscillator with external clock source</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable (use with Xtal or low-swing external source)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable (use with rail-to-rail external source)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EXTERNAL</name>
+ <description>Enable or disable external source for LFCLK</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable external source (use with Xtal)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable use of external source instead of Xtal (SRC needs to be set to Xtal)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CTIV</name>
+ <description>Calibration timer interval</description>
+ <addressOffset>0x538</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTIV</name>
+ <description>Calibration timer interval in multiple of 0.25 seconds. Range: 0.25 seconds to 31.75 seconds.</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>RADIO</name>
+ <description>2.4 GHz Radio</description>
+ <groupName>RADIO</groupName>
+ <baseAddress>0x40001000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>RADIO</name>
+ <value>1</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_TXEN</name>
+ <description>Enable RADIO in TX mode</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_TXEN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RXEN</name>
+ <description>Enable RADIO in RX mode</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RXEN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start RADIO</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop RADIO</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_DISABLE</name>
+ <description>Disable RADIO</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_DISABLE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RSSISTART</name>
+ <description>Start the RSSI and take one single sample of the receive signal strength.</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RSSISTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RSSISTOP</name>
+ <description>Stop the RSSI measurement</description>
+ <addressOffset>0x018</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RSSISTOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_BCSTART</name>
+ <description>Start the bit counter</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_BCSTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_BCSTOP</name>
+ <description>Stop the bit counter</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_BCSTOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>RADIO has ramped up and is ready to be started</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_READY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ADDRESS</name>
+ <description>Address sent or received</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ADDRESS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_PAYLOAD</name>
+ <description>Packet payload sent or received</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_PAYLOAD</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>Packet sent or received</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_END</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DISABLED</name>
+ <description>RADIO has been disabled</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DISABLED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DEVMATCH</name>
+ <description>A device address match occurred on the last received packet</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DEVMATCH</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DEVMISS</name>
+ <description>No device address match occurred on the last received packet</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DEVMISS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RSSIEND</name>
+ <description>Sampling of receive signal strength complete.</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RSSIEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_BCMATCH</name>
+ <description>Bit counter reached bit count value.</description>
+ <addressOffset>0x128</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_BCMATCH</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CRCOK</name>
+ <description>Packet received with CRC ok</description>
+ <addressOffset>0x130</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CRCOK</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CRCERROR</name>
+ <description>Packet received with CRC error</description>
+ <addressOffset>0x134</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CRCERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY_START</name>
+ <description>Shortcut between READY event and START task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END_DISABLE</name>
+ <description>Shortcut between END event and DISABLE task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED_TXEN</name>
+ <description>Shortcut between DISABLED event and TXEN task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED_RXEN</name>
+ <description>Shortcut between DISABLED event and RXEN task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS_RSSISTART</name>
+ <description>Shortcut between ADDRESS event and RSSISTART task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END_START</name>
+ <description>Shortcut between END event and START task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS_BCSTART</name>
+ <description>Shortcut between ADDRESS event and BCSTART task</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED_RSSISTOP</name>
+ <description>Shortcut between DISABLED event and RSSISTOP task</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Enable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS</name>
+ <description>Write '1' to Enable interrupt for ADDRESS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PAYLOAD</name>
+ <description>Write '1' to Enable interrupt for PAYLOAD event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Enable interrupt for END event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED</name>
+ <description>Write '1' to Enable interrupt for DISABLED event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMATCH</name>
+ <description>Write '1' to Enable interrupt for DEVMATCH event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMISS</name>
+ <description>Write '1' to Enable interrupt for DEVMISS event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RSSIEND</name>
+ <description>Write '1' to Enable interrupt for RSSIEND event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BCMATCH</name>
+ <description>Write '1' to Enable interrupt for BCMATCH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCOK</name>
+ <description>Write '1' to Enable interrupt for CRCOK event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCERROR</name>
+ <description>Write '1' to Enable interrupt for CRCERROR event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS</name>
+ <description>Write '1' to Disable interrupt for ADDRESS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PAYLOAD</name>
+ <description>Write '1' to Disable interrupt for PAYLOAD event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Disable interrupt for END event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED</name>
+ <description>Write '1' to Disable interrupt for DISABLED event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMATCH</name>
+ <description>Write '1' to Disable interrupt for DEVMATCH event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMISS</name>
+ <description>Write '1' to Disable interrupt for DEVMISS event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RSSIEND</name>
+ <description>Write '1' to Disable interrupt for RSSIEND event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BCMATCH</name>
+ <description>Write '1' to Disable interrupt for BCMATCH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCOK</name>
+ <description>Write '1' to Disable interrupt for CRCOK event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCERROR</name>
+ <description>Write '1' to Disable interrupt for CRCERROR event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCSTATUS</name>
+ <description>CRC status</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>CRCSTATUS</name>
+ <description>CRC status of packet received</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>CRCError</name>
+ <description>Packet received with CRC error</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CRCOk</name>
+ <description>Packet received with CRC ok</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXMATCH</name>
+ <description>Received address</description>
+ <addressOffset>0x408</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RXMATCH</name>
+ <description>Received address</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXCRC</name>
+ <description>CRC field of previously received packet</description>
+ <addressOffset>0x40C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RXCRC</name>
+ <description>CRC field of previously received packet</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DAI</name>
+ <description>Device address match index</description>
+ <addressOffset>0x410</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>DAI</name>
+ <description>Device address match index</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PACKETPTR</name>
+ <description>Packet pointer</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PACKETPTR</name>
+ <description>Packet pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FREQUENCY</name>
+ <description>Frequency</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000002</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>Radio channel frequency</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ <field>
+ <name>MAP</name>
+ <description>Channel map selection.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>Channel map between 2400 MHZ .. 2500 MHz</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Channel map between 2360 MHZ .. 2460 MHz</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXPOWER</name>
+ <description>Output power</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TXPOWER</name>
+ <description>RADIO output power.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Pos4dBm</name>
+ <description>+4 dBm</description>
+ <value>0x04</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pos3dBm</name>
+ <description>+3 dBm</description>
+ <value>0x03</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>0dBm</name>
+ <description>0 dBm</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg4dBm</name>
+ <description>-4 dBm</description>
+ <value>0xFC</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg8dBm</name>
+ <description>-8 dBm</description>
+ <value>0xF8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg12dBm</name>
+ <description>-12 dBm</description>
+ <value>0xF4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg16dBm</name>
+ <description>-16 dBm</description>
+ <value>0xF0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg20dBm</name>
+ <description>-20 dBm</description>
+ <value>0xEC</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg30dBm</name>
+ <description>Deprecated enumerator - -40 dBm</description>
+ <value>0xD8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg40dBm</name>
+ <description>-40 dBm</description>
+ <value>0xD8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Data rate and modulation</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Radio data rate and modulation setting. The radio supports Frequency-shift Keying (FSK) modulation.</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Nrf_1Mbit</name>
+ <description>1 Mbit/s Nordic proprietary radio mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Nrf_2Mbit</name>
+ <description>2 Mbit/s Nordic proprietary radio mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ble_1Mbit</name>
+ <description>1 Mbit/s Bluetooth Low Energy</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ble_2Mbit</name>
+ <description>2 Mbit/s Bluetooth Low Energy</description>
+ <value>4</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PCNF0</name>
+ <description>Packet configuration register 0</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LFLEN</name>
+ <description>Length on air of LENGTH field in number of bits.</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ <field>
+ <name>S0LEN</name>
+ <description>Length on air of S0 field in number of bytes.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ </field>
+ <field>
+ <name>S1LEN</name>
+ <description>Length on air of S1 field in number of bits.</description>
+ <lsb>16</lsb>
+ <msb>19</msb>
+ </field>
+ <field>
+ <name>S1INCL</name>
+ <description>Include or exclude S1 field in RAM</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Automatic</name>
+ <description>Include S1 field in RAM only if S1LEN &amp;gt; 0</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Always include S1 field in RAM independent of S1LEN</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PLEN</name>
+ <description>Length of preamble on air. Decision point: TASKS_START task</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>8bit</name>
+ <description>8-bit preamble</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>16bit</name>
+ <description>16-bit preamble</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PCNF1</name>
+ <description>Packet configuration register 1</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXLEN</name>
+ <description>Maximum length of packet payload. If the packet payload is larger than MAXLEN, the radio will truncate the payload to MAXLEN.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>STATLEN</name>
+ <description>Static length in number of bytes</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>BALEN</name>
+ <description>Base address length in number of bytes</description>
+ <lsb>16</lsb>
+ <msb>18</msb>
+ </field>
+ <field>
+ <name>ENDIAN</name>
+ <description>On air endianness of packet, this applies to the S0, LENGTH, S1 and the PAYLOAD fields.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Little</name>
+ <description>Least Significant bit on air first</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Big</name>
+ <description>Most significant bit on air first</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WHITEEN</name>
+ <description>Enable or disable packet whitening</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BASE0</name>
+ <description>Base address 0</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BASE0</name>
+ <description>Base address 0</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BASE1</name>
+ <description>Base address 1</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BASE1</name>
+ <description>Base address 1</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PREFIX0</name>
+ <description>Prefixes bytes for logical addresses 0-3</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>AP0</name>
+ <description>Address prefix 0.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>AP1</name>
+ <description>Address prefix 1.</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>AP2</name>
+ <description>Address prefix 2.</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>AP3</name>
+ <description>Address prefix 3.</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PREFIX1</name>
+ <description>Prefixes bytes for logical addresses 4-7</description>
+ <addressOffset>0x528</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>AP4</name>
+ <description>Address prefix 4.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>AP5</name>
+ <description>Address prefix 5.</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>AP6</name>
+ <description>Address prefix 6.</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>AP7</name>
+ <description>Address prefix 7.</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXADDRESS</name>
+ <description>Transmit address select</description>
+ <addressOffset>0x52C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TXADDRESS</name>
+ <description>Transmit address select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXADDRESSES</name>
+ <description>Receive address select</description>
+ <addressOffset>0x530</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDR0</name>
+ <description>Enable or disable reception on logical address 0.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR1</name>
+ <description>Enable or disable reception on logical address 1.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR2</name>
+ <description>Enable or disable reception on logical address 2.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR3</name>
+ <description>Enable or disable reception on logical address 3.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR4</name>
+ <description>Enable or disable reception on logical address 4.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR5</name>
+ <description>Enable or disable reception on logical address 5.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR6</name>
+ <description>Enable or disable reception on logical address 6.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR7</name>
+ <description>Enable or disable reception on logical address 7.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCCNF</name>
+ <description>CRC configuration</description>
+ <addressOffset>0x534</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LEN</name>
+ <description>CRC length in number of bytes.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>CRC length is zero and CRC calculation is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>One</name>
+ <description>CRC length is one byte and CRC calculation is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Two</name>
+ <description>CRC length is two bytes and CRC calculation is enabled</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Three</name>
+ <description>CRC length is three bytes and CRC calculation is enabled</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SKIPADDR</name>
+ <description>Include or exclude packet address field out of CRC calculation.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>CRC calculation includes address field</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Skip</name>
+ <description>CRC calculation does not include address field. The CRC calculation will start at the first byte after the address.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCPOLY</name>
+ <description>CRC polynomial</description>
+ <addressOffset>0x538</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CRCPOLY</name>
+ <description>CRC polynomial</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCINIT</name>
+ <description>CRC initial value</description>
+ <addressOffset>0x53C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CRCINIT</name>
+ <description>CRC initial value</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>UNUSED0</name>
+ <description>Unspecified</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>TIFS</name>
+ <description>Inter Frame Spacing in us</description>
+ <addressOffset>0x544</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TIFS</name>
+ <description>Inter Frame Spacing in us</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RSSISAMPLE</name>
+ <description>RSSI sample</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RSSISAMPLE</name>
+ <description>RSSI sample</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATE</name>
+ <description>Current radio state</description>
+ <addressOffset>0x550</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATE</name>
+ <description>Current radio state</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>RADIO is in the Disabled state</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RxRu</name>
+ <description>RADIO is in the RXRU state</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RxIdle</name>
+ <description>RADIO is in the RXIDLE state</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Rx</name>
+ <description>RADIO is in the RX state</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RxDisable</name>
+ <description>RADIO is in the RXDISABLED state</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>TxRu</name>
+ <description>RADIO is in the TXRU state</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>TxIdle</name>
+ <description>RADIO is in the TXIDLE state</description>
+ <value>10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Tx</name>
+ <description>RADIO is in the TX state</description>
+ <value>11</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>TxDisable</name>
+ <description>RADIO is in the TXDISABLED state</description>
+ <value>12</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DATAWHITEIV</name>
+ <description>Data whitening initial value</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000040</resetValue>
+ <fields>
+ <field>
+ <name>DATAWHITEIV</name>
+ <description>Data whitening initial value. Bit 6 is hard-wired to '1', writing '0' to it has no effect, and it will always be read back and used by the device as '1'.</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BCC</name>
+ <description>Bit counter compare</description>
+ <addressOffset>0x560</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BCC</name>
+ <description>Bit counter compare</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>DAB[%s]</name>
+ <description>Description collection[0]: Device address base segment 0</description>
+ <addressOffset>0x600</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DAB</name>
+ <description>Device address base segment 0</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>DAP[%s]</name>
+ <description>Description collection[0]: Device address prefix 0</description>
+ <addressOffset>0x620</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DAP</name>
+ <description>Device address prefix 0</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DACNF</name>
+ <description>Device address match configuration</description>
+ <addressOffset>0x640</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENA0</name>
+ <description>Enable or disable device address matching using device address 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA1</name>
+ <description>Enable or disable device address matching using device address 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA2</name>
+ <description>Enable or disable device address matching using device address 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA3</name>
+ <description>Enable or disable device address matching using device address 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA4</name>
+ <description>Enable or disable device address matching using device address 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA5</name>
+ <description>Enable or disable device address matching using device address 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA6</name>
+ <description>Enable or disable device address matching using device address 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA7</name>
+ <description>Enable or disable device address matching using device address 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXADD0</name>
+ <description>TxAdd for device address 0</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ </field>
+ <field>
+ <name>TXADD1</name>
+ <description>TxAdd for device address 1</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ </field>
+ <field>
+ <name>TXADD2</name>
+ <description>TxAdd for device address 2</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ </field>
+ <field>
+ <name>TXADD3</name>
+ <description>TxAdd for device address 3</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ </field>
+ <field>
+ <name>TXADD4</name>
+ <description>TxAdd for device address 4</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ </field>
+ <field>
+ <name>TXADD5</name>
+ <description>TxAdd for device address 5</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ </field>
+ <field>
+ <name>TXADD6</name>
+ <description>TxAdd for device address 6</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ </field>
+ <field>
+ <name>TXADD7</name>
+ <description>TxAdd for device address 7</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODECNF0</name>
+ <description>Radio mode configuration register 0</description>
+ <addressOffset>0x650</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000200</resetValue>
+ <fields>
+ <field>
+ <name>RU</name>
+ <description>Radio ramp-up time</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>Default ramp-up time (tRXEN), compatible with firmware written for nRF51</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Fast</name>
+ <description>Fast ramp-up (tRXEN,FAST), see electrical specification for more information</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DTX</name>
+ <description>Default TX value</description>
+ <lsb>8</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>B1</name>
+ <description>Transmit '1'</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>B0</name>
+ <description>Transmit '0'</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Center</name>
+ <description>Transmit center frequency</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control</description>
+ <addressOffset>0xFFC</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control. The peripheral and its registers will be reset to its initial state by switching the peripheral off and then back on again.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Peripheral is powered off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Peripheral is powered on</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>UARTE0</name>
+ <description>UART with EasyDMA</description>
+ <groupName>UARTE</groupName>
+ <baseAddress>0x40002000</baseAddress>
+ <size>32</size>
+ <headerStructName>UARTE</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>UARTE0</name>
+ <value>2</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_STARTRX</name>
+ <description>Start UART receiver</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOPRX</name>
+ <description>Stop UART receiver</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOPRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start UART transmitter</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOPTX</name>
+ <description>Stop UART transmitter</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOPTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_FLUSHRX</name>
+ <description>Flush RX FIFO into RX buffer</description>
+ <addressOffset>0x02C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_FLUSHRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CTS</name>
+ <description>CTS is activated (set low). Clear To Send.</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CTS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_NCTS</name>
+ <description>CTS is deactivated (set high). Not Clear To Send.</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_NCTS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXDRDY</name>
+ <description>Data received in RXD (but potentially not yet transferred to Data RAM)</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXDRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDRX</name>
+ <description>Receive buffer is filled up</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXDRDY</name>
+ <description>Data sent from TXD</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXDRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDTX</name>
+ <description>Last TX byte transmitted</description>
+ <addressOffset>0x120</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>Error detected</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXTO</name>
+ <description>Receiver timeout</description>
+ <addressOffset>0x144</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXTO</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXSTARTED</name>
+ <description>UART receiver has started</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXSTARTED</name>
+ <description>UART transmitter has started</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXSTOPPED</name>
+ <description>Transmitter stopped</description>
+ <addressOffset>0x158</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXSTOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDRX_STARTRX</name>
+ <description>Shortcut between ENDRX event and STARTRX task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX_STOPRX</name>
+ <description>Shortcut between ENDRX event and STOPRX task</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Enable or disable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Enable or disable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Enable or disable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Enable or disable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Enable or disable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Enable or disable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable or disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Enable or disable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Enable or disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Enable or disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTOPPED</name>
+ <description>Enable or disable interrupt for TXSTOPPED event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Write '1' to Enable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Write '1' to Enable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Write '1' to Enable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Enable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Write '1' to Enable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to Enable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Write '1' to Enable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to Enable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to Enable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTOPPED</name>
+ <description>Write '1' to Enable interrupt for TXSTOPPED event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Write '1' to Disable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Write '1' to Disable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Write '1' to Disable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Disable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Write '1' to Disable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to Disable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Write '1' to Disable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to Disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to Disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTOPPED</name>
+ <description>Write '1' to Disable interrupt for TXSTOPPED event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source Note : this register is read / write one to clear.</description>
+ <addressOffset>0x480</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERRUN</name>
+ <description>Overrun error</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITY</name>
+ <description>Parity error</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FRAMING</name>
+ <description>Framing error occurred</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BREAK</name>
+ <description>Break condition</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable UART</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable UARTE</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable UARTE</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable UARTE</description>
+ <value>8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>UARTE_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>RTS</name>
+ <description>Pin select for RTS signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>Pin select for TXD signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CTS</name>
+ <description>Pin select for CTS signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXD</name>
+ <description>Pin select for RXD signal</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>BAUDRATE</name>
+ <description>Baud rate. Accuracy depends on the HFCLK source selected.</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>BAUDRATE</name>
+ <description>Baud rate</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Baud1200</name>
+ <description>1200 baud (actual rate: 1205)</description>
+ <value>0x0004F000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud2400</name>
+ <description>2400 baud (actual rate: 2396)</description>
+ <value>0x0009D000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud4800</name>
+ <description>4800 baud (actual rate: 4808)</description>
+ <value>0x0013B000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud9600</name>
+ <description>9600 baud (actual rate: 9598)</description>
+ <value>0x00275000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud14400</name>
+ <description>14400 baud (actual rate: 14401)</description>
+ <value>0x003AF000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud19200</name>
+ <description>19200 baud (actual rate: 19208)</description>
+ <value>0x004EA000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud28800</name>
+ <description>28800 baud (actual rate: 28777)</description>
+ <value>0x0075C000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud31250</name>
+ <description>31250 baud</description>
+ <value>0x00800000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud38400</name>
+ <description>38400 baud (actual rate: 38369)</description>
+ <value>0x009D0000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud56000</name>
+ <description>56000 baud (actual rate: 55944)</description>
+ <value>0x00E50000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud57600</name>
+ <description>57600 baud (actual rate: 57554)</description>
+ <value>0x00EB0000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud76800</name>
+ <description>76800 baud (actual rate: 76923)</description>
+ <value>0x013A9000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud115200</name>
+ <description>115200 baud (actual rate: 115108)</description>
+ <value>0x01D60000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud230400</name>
+ <description>230400 baud (actual rate: 231884)</description>
+ <value>0x03B00000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud250000</name>
+ <description>250000 baud</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud460800</name>
+ <description>460800 baud (actual rate: 457143)</description>
+ <value>0x07400000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud921600</name>
+ <description>921600 baud (actual rate: 941176)</description>
+ <value>0x0F000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud1M</name>
+ <description>1Mega baud</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>RXD</name>
+ <description>RXD EasyDMA channel</description>
+ <headerStructName>UARTE_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>TXD EasyDMA channel</description>
+ <headerStructName>UARTE_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration of parity and hardware flow control</description>
+ <addressOffset>0x56C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HWFC</name>
+ <description>Hardware flow control</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITY</name>
+ <description>Parity</description>
+ <lsb>1</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude parity bit</description>
+ <value>0x0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include even parity bit</description>
+ <value>0x7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOP</name>
+ <description>Stop bits</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>One</name>
+ <description>One stop bit</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Two</name>
+ <description>Two stop bits</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TWIM0</name>
+ <description>I2C compatible Two-Wire Master Interface with EasyDMA</description>
+ <groupName>TWIM</groupName>
+ <baseAddress>0x40003000</baseAddress>
+ <size>32</size>
+ <headerStructName>TWIM</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>TWIM0_TWIS0</name>
+ <value>3</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_STARTRX</name>
+ <description>Start TWI receive sequence</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start TWI transmit sequence</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop TWI transaction. Must be issued while the TWI master is not suspended.</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend TWI transaction</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SUSPEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RESUME</name>
+ <description>Resume TWI transaction</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RESUME</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>TWI stopped</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>TWI error</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_SUSPENDED</name>
+ <description>Last byte has been sent out after the SUSPEND task has been issued, TWI traffic is now suspended.</description>
+ <addressOffset>0x148</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SUSPENDED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXSTARTED</name>
+ <description>Receive sequence started</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXSTARTED</name>
+ <description>Transmit sequence started</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_LASTRX</name>
+ <description>Byte boundary, starting to receive the last byte</description>
+ <addressOffset>0x15C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_LASTRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_LASTTX</name>
+ <description>Byte boundary, starting to transmit the last byte</description>
+ <addressOffset>0x160</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_LASTTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LASTTX_STARTRX</name>
+ <description>Shortcut between LASTTX event and STARTRX task</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX_SUSPEND</name>
+ <description>Shortcut between LASTTX event and SUSPEND task</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX_STOP</name>
+ <description>Shortcut between LASTTX event and STOP task</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX_STARTTX</name>
+ <description>Shortcut between LASTRX event and STARTTX task</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX_SUSPEND</name>
+ <description>Shortcut between LASTRX event and SUSPEND task</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX_STOP</name>
+ <description>Shortcut between LASTRX event and STOP task</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable or disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Enable or disable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Enable or disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Enable or disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX</name>
+ <description>Enable or disable interrupt for LASTRX event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX</name>
+ <description>Enable or disable interrupt for LASTTX event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Write '1' to Enable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to Enable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to Enable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX</name>
+ <description>Write '1' to Enable interrupt for LASTRX event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX</name>
+ <description>Write '1' to Enable interrupt for LASTTX event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Write '1' to Disable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to Disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to Disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX</name>
+ <description>Write '1' to Disable interrupt for LASTRX event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX</name>
+ <description>Write '1' to Disable interrupt for LASTTX event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source</description>
+ <addressOffset>0x4C4</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERRUN</name>
+ <description>Overrun error</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReceived</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Received</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ANACK</name>
+ <description>NACK received after sending the address (write '1' to clear)</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReceived</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Received</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DNACK</name>
+ <description>NACK received after sending a data byte (write '1' to clear)</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReceived</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Received</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable TWIM</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable TWIM</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable TWIM</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable TWIM</description>
+ <value>6</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>TWIM_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCL</name>
+ <description>Pin select for SCL signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SDA</name>
+ <description>Pin select for SDA signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>FREQUENCY</name>
+ <description>TWI frequency. Accuracy depends on the HFCLK source selected.</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>TWI master clock frequency</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K100</name>
+ <description>100 kbps</description>
+ <value>0x01980000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K250</name>
+ <description>250 kbps</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K400</name>
+ <description>400 kbps</description>
+ <value>0x06400000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>RXD</name>
+ <description>RXD EasyDMA channel</description>
+ <headerStructName>TWIM_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction. In case of NACK error, includes the NACK'ed byte.</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIST</name>
+ <description>EasyDMA list type</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIST</name>
+ <description>List type</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable EasyDMA list</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ArrayList</name>
+ <description>Use array list</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>TXD EasyDMA channel</description>
+ <headerStructName>TWIM_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction. In case of NACK error, includes the NACK'ed byte.</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIST</name>
+ <description>EasyDMA list type</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIST</name>
+ <description>List type</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable EasyDMA list</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ArrayList</name>
+ <description>Use array list</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>ADDRESS</name>
+ <description>Address used in the TWI transfer</description>
+ <addressOffset>0x588</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDRESS</name>
+ <description>Address used in the TWI transfer</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TWIS0</name>
+ <description>I2C compatible Two-Wire Slave Interface with EasyDMA</description>
+ <groupName>TWIS</groupName>
+ <baseAddress>0x40003000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>TWIM0</alternatePeripheral>
+ <headerStructName>TWIS</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>TWIM0_TWIS0</name>
+ <value>3</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop TWI transaction</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend TWI transaction</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SUSPEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RESUME</name>
+ <description>Resume TWI transaction</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RESUME</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_PREPARERX</name>
+ <description>Prepare the TWI slave to respond to a write command</description>
+ <addressOffset>0x030</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_PREPARERX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_PREPARETX</name>
+ <description>Prepare the TWI slave to respond to a read command</description>
+ <addressOffset>0x034</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_PREPARETX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>TWI stopped</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>TWI error</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXSTARTED</name>
+ <description>Receive sequence started</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXSTARTED</name>
+ <description>Transmit sequence started</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_WRITE</name>
+ <description>Write command received</description>
+ <addressOffset>0x164</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_WRITE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_READ</name>
+ <description>Read command received</description>
+ <addressOffset>0x168</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_READ</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>WRITE_SUSPEND</name>
+ <description>Shortcut between WRITE event and SUSPEND task</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ_SUSPEND</name>
+ <description>Shortcut between READ event and SUSPEND task</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable or disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Enable or disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Enable or disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WRITE</name>
+ <description>Enable or disable interrupt for WRITE event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ</name>
+ <description>Enable or disable interrupt for READ event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to Enable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to Enable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WRITE</name>
+ <description>Write '1' to Enable interrupt for WRITE event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ</name>
+ <description>Write '1' to Enable interrupt for READ event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to Disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to Disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WRITE</name>
+ <description>Write '1' to Disable interrupt for WRITE event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ</name>
+ <description>Write '1' to Disable interrupt for READ event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source</description>
+ <addressOffset>0x4D0</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERFLOW</name>
+ <description>RX buffer overflow detected, and prevented</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DNACK</name>
+ <description>NACK sent after receiving a data byte</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReceived</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Received</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVERREAD</name>
+ <description>TX buffer over-read detected, and prevented</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MATCH</name>
+ <description>Status register indicating which address had a match</description>
+ <addressOffset>0x4D4</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>MATCH</name>
+ <description>Which of the addresses in {ADDRESS} matched the incoming address</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable TWIS</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable TWIS</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable TWIS</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable TWIS</description>
+ <value>9</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>TWIS_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCL</name>
+ <description>Pin select for SCL signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SDA</name>
+ <description>Pin select for SDA signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>RXD</name>
+ <description>RXD EasyDMA channel</description>
+ <headerStructName>TWIS_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>RXD Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>RXD Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in RXD buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in RXD buffer</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last RXD transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last RXD transaction</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>TXD EasyDMA channel</description>
+ <headerStructName>TWIS_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>TXD Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>TXD Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in TXD buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in TXD buffer</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last TXD transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last TXD transaction</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>ADDRESS[%s]</name>
+ <description>Description collection[0]: TWI slave address 0</description>
+ <addressOffset>0x588</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDRESS</name>
+ <description>TWI slave address</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register for the address match mechanism</description>
+ <addressOffset>0x594</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>ADDRESS0</name>
+ <description>Enable or disable address matching on ADDRESS[0]</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS1</name>
+ <description>Enable or disable address matching on ADDRESS[1]</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ORC</name>
+ <description>Over-read character. Character sent out in case of an over-read of the transmit buffer.</description>
+ <addressOffset>0x5C0</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORC</name>
+ <description>Over-read character. Character sent out in case of an over-read of the transmit buffer.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SPIM0</name>
+ <description>Serial Peripheral Interface Master with EasyDMA</description>
+ <groupName>SPIM</groupName>
+ <baseAddress>0x40004000</baseAddress>
+ <size>32</size>
+ <headerStructName>SPIM</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0</name>
+ <value>4</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start SPI transaction</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop SPI transaction</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend SPI transaction</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SUSPEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RESUME</name>
+ <description>Resume SPI transaction</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RESUME</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>SPI transaction has stopped</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDRX</name>
+ <description>End of RXD buffer reached</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>End of RXD buffer and TXD buffer reached</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_END</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDTX</name>
+ <description>End of TXD buffer reached</description>
+ <addressOffset>0x120</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STARTED</name>
+ <description>Transaction started</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END_START</name>
+ <description>Shortcut between END event and START task</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Enable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Enable interrupt for END event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to Enable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Enable interrupt for STARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Disable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Disable interrupt for END event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to Disable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Disable interrupt for STARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable SPIM</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable SPIM</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable SPIM</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable SPIM</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIM_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCK</name>
+ <description>Pin select for SCK</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MOSI</name>
+ <description>Pin select for MOSI signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MISO</name>
+ <description>Pin select for MISO signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>FREQUENCY</name>
+ <description>SPI frequency. Accuracy depends on the HFCLK source selected.</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>SPI master data rate</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K125</name>
+ <description>125 kbps</description>
+ <value>0x02000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K250</name>
+ <description>250 kbps</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K500</name>
+ <description>500 kbps</description>
+ <value>0x08000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M1</name>
+ <description>1 Mbps</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M2</name>
+ <description>2 Mbps</description>
+ <value>0x20000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M4</name>
+ <description>4 Mbps</description>
+ <value>0x40000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M8</name>
+ <description>8 Mbps</description>
+ <value>0x80000000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>RXD</name>
+ <description>RXD EasyDMA channel</description>
+ <headerStructName>SPIM_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIST</name>
+ <description>EasyDMA list type</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIST</name>
+ <description>List type</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable EasyDMA list</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ArrayList</name>
+ <description>Use array list</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>TXD EasyDMA channel</description>
+ <headerStructName>SPIM_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIST</name>
+ <description>EasyDMA list type</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIST</name>
+ <description>List type</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable EasyDMA list</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ArrayList</name>
+ <description>Use array list</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORDER</name>
+ <description>Bit order</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MsbFirst</name>
+ <description>Most significant bit shifted out first</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LsbFirst</name>
+ <description>Least significant bit shifted out first</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPHA</name>
+ <description>Serial clock (SCK) phase</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Leading</name>
+ <description>Sample on leading edge of clock, shift serial data on trailing edge</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Trailing</name>
+ <description>Sample on trailing edge of clock, shift serial data on leading edge</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPOL</name>
+ <description>Serial clock (SCK) polarity</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Active high</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Active low</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ORC</name>
+ <description>Over-read character. Character clocked out in case and over-read of the TXD buffer.</description>
+ <addressOffset>0x5C0</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORC</name>
+ <description>Over-read character. Character clocked out in case and over-read of the TXD buffer.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SPIS0</name>
+ <description>SPI Slave</description>
+ <groupName>SPIS</groupName>
+ <baseAddress>0x40004000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SPIM0</alternatePeripheral>
+ <headerStructName>SPIS</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0</name>
+ <value>4</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_ACQUIRE</name>
+ <description>Acquire SPI semaphore</description>
+ <addressOffset>0x024</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_ACQUIRE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RELEASE</name>
+ <description>Release SPI semaphore, enabling the SPI slave to acquire it</description>
+ <addressOffset>0x028</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RELEASE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>Granted transaction completed</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_END</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDRX</name>
+ <description>End of RXD buffer reached</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ACQUIRED</name>
+ <description>Semaphore acquired</description>
+ <addressOffset>0x128</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ACQUIRED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END_ACQUIRE</name>
+ <description>Shortcut between END event and ACQUIRE task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Enable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Enable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACQUIRED</name>
+ <description>Write '1' to Enable interrupt for ACQUIRED event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Disable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to Disable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACQUIRED</name>
+ <description>Write '1' to Disable interrupt for ACQUIRED event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SEMSTAT</name>
+ <description>Semaphore status register</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>SEMSTAT</name>
+ <description>Semaphore status</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Free</name>
+ <description>Semaphore is free</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CPU</name>
+ <description>Semaphore is assigned to CPU</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SPIS</name>
+ <description>Semaphore is assigned to SPI slave</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CPUPending</name>
+ <description>Semaphore is assigned to SPI but a handover to the CPU is pending</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATUS</name>
+ <description>Status from last transaction</description>
+ <addressOffset>0x440</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>OVERREAD</name>
+ <description>TX buffer over-read detected, and prevented</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: clear error on writing '1'</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVERFLOW</name>
+ <description>RX buffer overflow detected, and prevented</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: clear error on writing '1'</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable SPI slave</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable SPI slave</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable SPI slave</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable SPI slave</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIS_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCK</name>
+ <description>Pin select for SCK</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MISO</name>
+ <description>Pin select for MISO signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MOSI</name>
+ <description>Pin select for MOSI signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CSN</name>
+ <description>Pin select for CSN signal</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>RXD</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIS_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>RXD data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>RXD data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes received in last granted transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes received in the last granted transaction</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIS_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>TXD data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>TXD data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transmitted in last granted transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transmitted in last granted transaction</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORDER</name>
+ <description>Bit order</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MsbFirst</name>
+ <description>Most significant bit shifted out first</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LsbFirst</name>
+ <description>Least significant bit shifted out first</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPHA</name>
+ <description>Serial clock (SCK) phase</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Leading</name>
+ <description>Sample on leading edge of clock, shift serial data on trailing edge</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Trailing</name>
+ <description>Sample on trailing edge of clock, shift serial data on leading edge</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPOL</name>
+ <description>Serial clock (SCK) polarity</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Active high</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Active low</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DEF</name>
+ <description>Default character. Character clocked out in case of an ignored transaction.</description>
+ <addressOffset>0x55C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DEF</name>
+ <description>Default character. Character clocked out in case of an ignored transaction.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ORC</name>
+ <description>Over-read character</description>
+ <addressOffset>0x5C0</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORC</name>
+ <description>Over-read character. Character clocked out after an over-read of the transmit buffer.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>GPIOTE</name>
+ <description>GPIO Tasks and Events</description>
+ <groupName>GPIOTE</groupName>
+ <baseAddress>0x40006000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>GPIOTE</name>
+ <value>6</value>
+ </interrupt>
+ <registers>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>TASKS_OUT[%s]</name>
+ <description>Description collection[0]: Task for writing to pin specified in CONFIG[0].PSEL. Action on pin is configured in CONFIG[0].POLARITY.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_OUT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>TASKS_SET[%s]</name>
+ <description>Description collection[0]: Task for writing to pin specified in CONFIG[0].PSEL. Action on pin is to set it high.</description>
+ <addressOffset>0x030</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SET</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>TASKS_CLR[%s]</name>
+ <description>Description collection[0]: Task for writing to pin specified in CONFIG[0].PSEL. Action on pin is to set it low.</description>
+ <addressOffset>0x060</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CLR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>EVENTS_IN[%s]</name>
+ <description>Description collection[0]: Event generated from pin specified in CONFIG[0].PSEL</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_IN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_PORT</name>
+ <description>Event generated from multiple input GPIO pins with SENSE mechanism enabled</description>
+ <addressOffset>0x17C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_PORT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>IN0</name>
+ <description>Write '1' to Enable interrupt for IN[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN1</name>
+ <description>Write '1' to Enable interrupt for IN[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN2</name>
+ <description>Write '1' to Enable interrupt for IN[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN3</name>
+ <description>Write '1' to Enable interrupt for IN[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN4</name>
+ <description>Write '1' to Enable interrupt for IN[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN5</name>
+ <description>Write '1' to Enable interrupt for IN[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN6</name>
+ <description>Write '1' to Enable interrupt for IN[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN7</name>
+ <description>Write '1' to Enable interrupt for IN[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Write '1' to Enable interrupt for PORT event</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>IN0</name>
+ <description>Write '1' to Disable interrupt for IN[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN1</name>
+ <description>Write '1' to Disable interrupt for IN[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN2</name>
+ <description>Write '1' to Disable interrupt for IN[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN3</name>
+ <description>Write '1' to Disable interrupt for IN[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN4</name>
+ <description>Write '1' to Disable interrupt for IN[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN5</name>
+ <description>Write '1' to Disable interrupt for IN[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN6</name>
+ <description>Write '1' to Disable interrupt for IN[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN7</name>
+ <description>Write '1' to Disable interrupt for IN[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Write '1' to Disable interrupt for PORT event</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>CONFIG[%s]</name>
+ <description>Description collection[0]: Configuration for OUT[n], SET[n] and CLR[n] tasks and IN[n] event</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Mode</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled. Pin specified by PSEL will not be acquired by the GPIOTE module.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Event</name>
+ <description>Event mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Task</name>
+ <description>Task mode</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PSEL</name>
+ <description>GPIO number associated with SET[n], CLR[n] and OUT[n] tasks and IN[n] event</description>
+ <lsb>8</lsb>
+ <msb>12</msb>
+ </field>
+ <field>
+ <name>POLARITY</name>
+ <description>When In task mode: Operation to be performed on output when OUT[n] task is triggered. When In event mode: Operation on input that shall trigger IN[n] event.</description>
+ <lsb>16</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>None</name>
+ <description>Task mode: No effect on pin from OUT[n] task. Event mode: no IN[n] event generated on pin activity.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LoToHi</name>
+ <description>Task mode: Set pin from OUT[n] task. Event mode: Generate IN[n] event when rising edge on pin.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>HiToLo</name>
+ <description>Task mode: Clear pin from OUT[n] task. Event mode: Generate IN[n] event when falling edge on pin.</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Toggle</name>
+ <description>Task mode: Toggle pin from OUT[n]. Event mode: Generate IN[n] when any change on pin.</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OUTINIT</name>
+ <description>When in task mode: Initial value of the output when the GPIOTE channel is configured. When in event mode: No effect.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Task mode: Initial value of pin before task triggering is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Task mode: Initial value of pin before task triggering is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SAADC</name>
+ <description>Analog to Digital Converter</description>
+ <groupName>SAADC</groupName>
+ <baseAddress>0x40007000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SAADC</name>
+ <value>7</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start the ADC and prepare the result buffer in RAM</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SAMPLE</name>
+ <description>Take one ADC sample, if scan is enabled all channels are sampled</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SAMPLE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop the ADC and terminate any on-going conversion</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CALIBRATEOFFSET</name>
+ <description>Starts offset auto-calibration</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CALIBRATEOFFSET</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STARTED</name>
+ <description>The ADC has started</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>The ADC has filled up the Result buffer</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_END</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DONE</name>
+ <description>A conversion task has been completed. Depending on the mode, multiple conversions might be needed for a result to be transferred to RAM.</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DONE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RESULTDONE</name>
+ <description>A result is ready to get transferred to RAM.</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RESULTDONE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CALIBRATEDONE</name>
+ <description>Calibration is complete</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CALIBRATEDONE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>The ADC has stopped</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>8</dim>
+ <dimIncrement>8</dimIncrement>
+ <name>EVENTS_CH[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>SAADC_EVENTS_CH</headerStructName>
+ <addressOffset>0x118</addressOffset>
+ <register>
+ <name>LIMITH</name>
+ <description>Description cluster[0]: Last results is equal or above CH[0].LIMIT.HIGH</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIMITH</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIMITL</name>
+ <description>Description cluster[0]: Last results is equal or below CH[0].LIMIT.LOW</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIMITL</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Enable or disable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Enable or disable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Enable or disable interrupt for DONE event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESULTDONE</name>
+ <description>Enable or disable interrupt for RESULTDONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CALIBRATEDONE</name>
+ <description>Enable or disable interrupt for CALIBRATEDONE event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITH</name>
+ <description>Enable or disable interrupt for CH[0].LIMITH event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITL</name>
+ <description>Enable or disable interrupt for CH[0].LIMITL event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITH</name>
+ <description>Enable or disable interrupt for CH[1].LIMITH event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITL</name>
+ <description>Enable or disable interrupt for CH[1].LIMITL event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITH</name>
+ <description>Enable or disable interrupt for CH[2].LIMITH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITL</name>
+ <description>Enable or disable interrupt for CH[2].LIMITL event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITH</name>
+ <description>Enable or disable interrupt for CH[3].LIMITH event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITL</name>
+ <description>Enable or disable interrupt for CH[3].LIMITL event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITH</name>
+ <description>Enable or disable interrupt for CH[4].LIMITH event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITL</name>
+ <description>Enable or disable interrupt for CH[4].LIMITL event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITH</name>
+ <description>Enable or disable interrupt for CH[5].LIMITH event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITL</name>
+ <description>Enable or disable interrupt for CH[5].LIMITL event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITH</name>
+ <description>Enable or disable interrupt for CH[6].LIMITH event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITL</name>
+ <description>Enable or disable interrupt for CH[6].LIMITL event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITH</name>
+ <description>Enable or disable interrupt for CH[7].LIMITH event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITL</name>
+ <description>Enable or disable interrupt for CH[7].LIMITL event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Enable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Enable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Write '1' to Enable interrupt for DONE event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESULTDONE</name>
+ <description>Write '1' to Enable interrupt for RESULTDONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CALIBRATEDONE</name>
+ <description>Write '1' to Enable interrupt for CALIBRATEDONE event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[0].LIMITH event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[0].LIMITL event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[1].LIMITH event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[1].LIMITL event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[2].LIMITH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[2].LIMITL event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[3].LIMITH event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[3].LIMITL event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[4].LIMITH event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[4].LIMITL event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[5].LIMITH event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[5].LIMITL event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[6].LIMITH event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[6].LIMITL event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITH</name>
+ <description>Write '1' to Enable interrupt for CH[7].LIMITH event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITL</name>
+ <description>Write '1' to Enable interrupt for CH[7].LIMITL event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Disable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Disable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Write '1' to Disable interrupt for DONE event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESULTDONE</name>
+ <description>Write '1' to Disable interrupt for RESULTDONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CALIBRATEDONE</name>
+ <description>Write '1' to Disable interrupt for CALIBRATEDONE event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[0].LIMITH event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[0].LIMITL event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[1].LIMITH event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[1].LIMITL event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[2].LIMITH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[2].LIMITL event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[3].LIMITH event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[3].LIMITL event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[4].LIMITH event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[4].LIMITL event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[5].LIMITH event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[5].LIMITL event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[6].LIMITH event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[6].LIMITL event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITH</name>
+ <description>Write '1' to Disable interrupt for CH[7].LIMITH event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITL</name>
+ <description>Write '1' to Disable interrupt for CH[7].LIMITL event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATUS</name>
+ <description>Status</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>Status</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Ready</name>
+ <description>ADC is ready. No on-going conversion.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Busy</name>
+ <description>ADC is busy. Conversion in progress.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable or disable ADC</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable ADC</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable ADC</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable ADC</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>8</dim>
+ <dimIncrement>16</dimIncrement>
+ <name>CH[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>SAADC_CH</headerStructName>
+ <addressOffset>0x510</addressOffset>
+ <register>
+ <name>PSELP</name>
+ <description>Description cluster[0]: Input positive pin selection for CH[0]</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PSELP</name>
+ <description>Analog positive input channel</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NC</name>
+ <description>Not connected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>AIN0</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>AIN1</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>AIN2</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>AIN3</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>AIN4</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>AIN5</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>AIN6</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput7</name>
+ <description>AIN7</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD</name>
+ <description>VDD</description>
+ <value>9</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSELN</name>
+ <description>Description cluster[0]: Input negative pin selection for CH[0]</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PSELN</name>
+ <description>Analog negative input, enables differential channel</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NC</name>
+ <description>Not connected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>AIN0</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>AIN1</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>AIN2</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>AIN3</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>AIN4</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>AIN5</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>AIN6</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput7</name>
+ <description>AIN7</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD</name>
+ <description>VDD</description>
+ <value>9</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Description cluster[0]: Input configuration for CH[0]</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00020000</resetValue>
+ <fields>
+ <field>
+ <name>RESP</name>
+ <description>Positive channel resistor control</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Bypass</name>
+ <description>Bypass resistor ladder</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pulldown</name>
+ <description>Pull-down to GND</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pullup</name>
+ <description>Pull-up to VDD</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD1_2</name>
+ <description>Set input at VDD/2</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESN</name>
+ <description>Negative channel resistor control</description>
+ <lsb>4</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Bypass</name>
+ <description>Bypass resistor ladder</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pulldown</name>
+ <description>Pull-down to GND</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pullup</name>
+ <description>Pull-up to VDD</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD1_2</name>
+ <description>Set input at VDD/2</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>GAIN</name>
+ <description>Gain control</description>
+ <lsb>8</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Gain1_6</name>
+ <description>1/6</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1_5</name>
+ <description>1/5</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1_4</name>
+ <description>1/4</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1_3</name>
+ <description>1/3</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1_2</name>
+ <description>1/2</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1</name>
+ <description>1</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain2</name>
+ <description>2</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain4</name>
+ <description>4</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REFSEL</name>
+ <description>Reference control</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Internal</name>
+ <description>Internal reference (0.6 V)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD1_4</name>
+ <description>VDD/4 as reference</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TACQ</name>
+ <description>Acquisition time, the time the ADC uses to sample the input voltage</description>
+ <lsb>16</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>3us</name>
+ <description>3 us</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>5us</name>
+ <description>5 us</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>10us</name>
+ <description>10 us</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>15us</name>
+ <description>15 us</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>20us</name>
+ <description>20 us</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>40us</name>
+ <description>40 us</description>
+ <value>5</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>MODE</name>
+ <description>Enable differential mode</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>SE</name>
+ <description>Single ended, PSELN will be ignored, negative input to ADC shorted to GND</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Diff</name>
+ <description>Differential</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BURST</name>
+ <description>Enable burst mode</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Burst mode is disabled (normal operation)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIMIT</name>
+ <description>Description cluster[0]: High/low limits for event monitoring a channel</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x7FFF8000</resetValue>
+ <fields>
+ <field>
+ <name>LOW</name>
+ <description>Low level limit</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>HIGH</name>
+ <description>High level limit</description>
+ <lsb>16</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>RESOLUTION</name>
+ <description>Resolution configuration</description>
+ <addressOffset>0x5F0</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>VAL</name>
+ <description>Set the resolution</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>8bit</name>
+ <description>8 bit</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>10bit</name>
+ <description>10 bit</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>12bit</name>
+ <description>12 bit</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>14bit</name>
+ <description>14 bit</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OVERSAMPLE</name>
+ <description>Oversampling configuration. OVERSAMPLE should not be combined with SCAN. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used.</description>
+ <addressOffset>0x5F4</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>OVERSAMPLE</name>
+ <description>Oversample control</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Bypass</name>
+ <description>Bypass oversampling</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over2x</name>
+ <description>Oversample 2x</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over4x</name>
+ <description>Oversample 4x</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over8x</name>
+ <description>Oversample 8x</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over16x</name>
+ <description>Oversample 16x</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over32x</name>
+ <description>Oversample 32x</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over64x</name>
+ <description>Oversample 64x</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over128x</name>
+ <description>Oversample 128x</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over256x</name>
+ <description>Oversample 256x</description>
+ <value>8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SAMPLERATE</name>
+ <description>Controls normal or continuous sample rate</description>
+ <addressOffset>0x5F8</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CC</name>
+ <description>Capture and compare value. Sample rate is 16 MHz/CC</description>
+ <lsb>0</lsb>
+ <msb>10</msb>
+ </field>
+ <field>
+ <name>MODE</name>
+ <description>Select mode for sample rate control</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Task</name>
+ <description>Rate is controlled from SAMPLE task</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Timers</name>
+ <description>Rate is controlled from local timer (use CC to control the rate)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>RESULT</name>
+ <description>RESULT EasyDMA channel</description>
+ <headerStructName>SAADC_RESULT</headerStructName>
+ <addressOffset>0x62C</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of buffer words to transfer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of buffer words to transfer</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of buffer words transferred since last START</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of buffer words transferred since last START. This register can be read after an END or STOPPED event.</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TIMER0</name>
+ <description>Timer/Counter 0</description>
+ <groupName>TIMER</groupName>
+ <baseAddress>0x40008000</baseAddress>
+ <size>32</size>
+ <headerStructName>TIMER</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>TIMER0</name>
+ <value>8</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start Timer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop Timer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_COUNT</name>
+ <description>Increment Timer (Counter mode only)</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_COUNT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CLEAR</name>
+ <description>Clear time</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CLEAR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SHUTDOWN</name>
+ <description>Deprecated register - Shut down timer</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SHUTDOWN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>6</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>TASKS_CAPTURE[%s]</name>
+ <description>Description collection[0]: Capture Timer value to CC[0] register</description>
+ <addressOffset>0x040</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CAPTURE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>6</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>EVENTS_COMPARE[%s]</name>
+ <description>Description collection[0]: Compare event on CC[0] match</description>
+ <addressOffset>0x140</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_COMPARE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>COMPARE0_CLEAR</name>
+ <description>Shortcut between COMPARE[0] event and CLEAR task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1_CLEAR</name>
+ <description>Shortcut between COMPARE[1] event and CLEAR task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2_CLEAR</name>
+ <description>Shortcut between COMPARE[2] event and CLEAR task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3_CLEAR</name>
+ <description>Shortcut between COMPARE[3] event and CLEAR task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE4_CLEAR</name>
+ <description>Shortcut between COMPARE[4] event and CLEAR task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE5_CLEAR</name>
+ <description>Shortcut between COMPARE[5] event and CLEAR task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0_STOP</name>
+ <description>Shortcut between COMPARE[0] event and STOP task</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1_STOP</name>
+ <description>Shortcut between COMPARE[1] event and STOP task</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2_STOP</name>
+ <description>Shortcut between COMPARE[2] event and STOP task</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3_STOP</name>
+ <description>Shortcut between COMPARE[3] event and STOP task</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE4_STOP</name>
+ <description>Shortcut between COMPARE[4] event and STOP task</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE5_STOP</name>
+ <description>Shortcut between COMPARE[5] event and STOP task</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to Enable interrupt for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to Enable interrupt for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to Enable interrupt for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to Enable interrupt for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE4</name>
+ <description>Write '1' to Enable interrupt for COMPARE[4] event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE5</name>
+ <description>Write '1' to Enable interrupt for COMPARE[5] event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to Disable interrupt for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to Disable interrupt for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to Disable interrupt for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to Disable interrupt for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE4</name>
+ <description>Write '1' to Disable interrupt for COMPARE[4] event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE5</name>
+ <description>Write '1' to Disable interrupt for COMPARE[5] event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Timer mode selection</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Timer mode</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Timer</name>
+ <description>Select Timer mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Counter</name>
+ <description>Deprecated enumerator - Select Counter mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LowPowerCounter</name>
+ <description>Select Low Power Counter mode</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BITMODE</name>
+ <description>Configure the number of bits used by the TIMER</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BITMODE</name>
+ <description>Timer bit width</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>16Bit</name>
+ <description>16 bit timer bit width</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>08Bit</name>
+ <description>8 bit timer bit width</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>24Bit</name>
+ <description>24 bit timer bit width</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32Bit</name>
+ <description>32 bit timer bit width</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PRESCALER</name>
+ <description>Timer prescaler register</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000004</resetValue>
+ <fields>
+ <field>
+ <name>PRESCALER</name>
+ <description>Prescaler value</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>6</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>CC[%s]</name>
+ <description>Description collection[0]: Capture/Compare register 0</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CC</name>
+ <description>Capture/Compare value</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="TIMER0">
+ <name>TIMER1</name>
+ <description>Timer/Counter 1</description>
+ <groupName>TIMER</groupName>
+ <baseAddress>0x40009000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>TIMER1</name>
+ <value>9</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TIMER0">
+ <name>TIMER2</name>
+ <description>Timer/Counter 2</description>
+ <groupName>TIMER</groupName>
+ <baseAddress>0x4000A000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>TIMER2</name>
+ <value>10</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>RTC0</name>
+ <description>Real time counter 0</description>
+ <groupName>RTC</groupName>
+ <baseAddress>0x4000B000</baseAddress>
+ <size>32</size>
+ <headerStructName>RTC</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>RTC0</name>
+ <value>11</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start RTC COUNTER</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop RTC COUNTER</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CLEAR</name>
+ <description>Clear RTC COUNTER</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CLEAR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_TRIGOVRFLW</name>
+ <description>Set COUNTER to 0xFFFFF0</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_TRIGOVRFLW</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TICK</name>
+ <description>Event on COUNTER increment</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TICK</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_OVRFLW</name>
+ <description>Event on COUNTER overflow</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_OVRFLW</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>EVENTS_COMPARE[%s]</name>
+ <description>Description collection[0]: Compare event on CC[0] match</description>
+ <addressOffset>0x140</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_COMPARE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Write '1' to Enable interrupt for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Write '1' to Enable interrupt for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to Enable interrupt for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to Enable interrupt for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to Enable interrupt for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to Enable interrupt for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Write '1' to Disable interrupt for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Write '1' to Disable interrupt for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to Disable interrupt for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to Disable interrupt for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to Disable interrupt for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to Disable interrupt for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVTEN</name>
+ <description>Enable or disable event routing</description>
+ <addressOffset>0x340</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Enable or disable event routing for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Enable or disable event routing for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Enable or disable event routing for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Enable or disable event routing for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Enable or disable event routing for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Enable or disable event routing for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVTENSET</name>
+ <description>Enable event routing</description>
+ <addressOffset>0x344</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Write '1' to Enable event routing for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Write '1' to Enable event routing for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to Enable event routing for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to Enable event routing for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to Enable event routing for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to Enable event routing for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVTENCLR</name>
+ <description>Disable event routing</description>
+ <addressOffset>0x348</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Write '1' to Disable event routing for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Write '1' to Disable event routing for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to Disable event routing for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to Disable event routing for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to Disable event routing for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to Disable event routing for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>COUNTER</name>
+ <description>Current COUNTER value</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>COUNTER</name>
+ <description>Counter value</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PRESCALER</name>
+ <description>12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must be written when RTC is stopped</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PRESCALER</name>
+ <description>Prescaler value</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>CC[%s]</name>
+ <description>Description collection[0]: Compare register 0</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>COMPARE</name>
+ <description>Compare value</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TEMP</name>
+ <description>Temperature Sensor</description>
+ <groupName>TEMP</groupName>
+ <baseAddress>0x4000C000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>TEMP</name>
+ <value>12</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start temperature measurement</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop temperature measurement</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DATARDY</name>
+ <description>Temperature measurement complete, data ready</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DATARDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DATARDY</name>
+ <description>Write '1' to Enable interrupt for DATARDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DATARDY</name>
+ <description>Write '1' to Disable interrupt for DATARDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TEMP</name>
+ <description>Temperature in degC (0.25deg steps)</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>TEMP</name>
+ <description>Temperature in degC (0.25deg steps)</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A0</name>
+ <description>Slope of 1st piece wise linear function</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000326</resetValue>
+ <fields>
+ <field>
+ <name>A0</name>
+ <description>Slope of 1st piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A1</name>
+ <description>Slope of 2nd piece wise linear function</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000348</resetValue>
+ <fields>
+ <field>
+ <name>A1</name>
+ <description>Slope of 2nd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A2</name>
+ <description>Slope of 3rd piece wise linear function</description>
+ <addressOffset>0x528</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000003AA</resetValue>
+ <fields>
+ <field>
+ <name>A2</name>
+ <description>Slope of 3rd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A3</name>
+ <description>Slope of 4th piece wise linear function</description>
+ <addressOffset>0x52C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000040E</resetValue>
+ <fields>
+ <field>
+ <name>A3</name>
+ <description>Slope of 4th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A4</name>
+ <description>Slope of 5th piece wise linear function</description>
+ <addressOffset>0x530</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000004BD</resetValue>
+ <fields>
+ <field>
+ <name>A4</name>
+ <description>Slope of 5th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A5</name>
+ <description>Slope of 6th piece wise linear function</description>
+ <addressOffset>0x534</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000005A3</resetValue>
+ <fields>
+ <field>
+ <name>A5</name>
+ <description>Slope of 6th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B0</name>
+ <description>y-intercept of 1st piece wise linear function</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00003FEF</resetValue>
+ <fields>
+ <field>
+ <name>B0</name>
+ <description>y-intercept of 1st piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B1</name>
+ <description>y-intercept of 2nd piece wise linear function</description>
+ <addressOffset>0x544</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00003FBE</resetValue>
+ <fields>
+ <field>
+ <name>B1</name>
+ <description>y-intercept of 2nd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B2</name>
+ <description>y-intercept of 3rd piece wise linear function</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00003FBE</resetValue>
+ <fields>
+ <field>
+ <name>B2</name>
+ <description>y-intercept of 3rd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B3</name>
+ <description>y-intercept of 4th piece wise linear function</description>
+ <addressOffset>0x54C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000012</resetValue>
+ <fields>
+ <field>
+ <name>B3</name>
+ <description>y-intercept of 4th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B4</name>
+ <description>y-intercept of 5th piece wise linear function</description>
+ <addressOffset>0x550</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000124</resetValue>
+ <fields>
+ <field>
+ <name>B4</name>
+ <description>y-intercept of 5th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B5</name>
+ <description>y-intercept of 6th piece wise linear function</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000027C</resetValue>
+ <fields>
+ <field>
+ <name>B5</name>
+ <description>y-intercept of 6th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T0</name>
+ <description>End point of 1st piece wise linear function</description>
+ <addressOffset>0x560</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000000E2</resetValue>
+ <fields>
+ <field>
+ <name>T0</name>
+ <description>End point of 1st piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T1</name>
+ <description>End point of 2nd piece wise linear function</description>
+ <addressOffset>0x564</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>T1</name>
+ <description>End point of 2nd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T2</name>
+ <description>End point of 3rd piece wise linear function</description>
+ <addressOffset>0x568</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000019</resetValue>
+ <fields>
+ <field>
+ <name>T2</name>
+ <description>End point of 3rd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T3</name>
+ <description>End point of 4th piece wise linear function</description>
+ <addressOffset>0x56C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000003C</resetValue>
+ <fields>
+ <field>
+ <name>T3</name>
+ <description>End point of 4th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T4</name>
+ <description>End point of 5th piece wise linear function</description>
+ <addressOffset>0x570</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000050</resetValue>
+ <fields>
+ <field>
+ <name>T4</name>
+ <description>End point of 5th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>RNG</name>
+ <description>Random Number Generator</description>
+ <groupName>RNG</groupName>
+ <baseAddress>0x4000D000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>RNG</name>
+ <value>13</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Task starting the random number generator</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Task stopping the random number generator</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_VALRDY</name>
+ <description>Event being generated for every new random number written to the VALUE register</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_VALRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>VALRDY_STOP</name>
+ <description>Shortcut between VALRDY event and STOP task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>VALRDY</name>
+ <description>Write '1' to Enable interrupt for VALRDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>VALRDY</name>
+ <description>Write '1' to Disable interrupt for VALRDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DERCEN</name>
+ <description>Bias correction</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>VALUE</name>
+ <description>Output random number</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>VALUE</name>
+ <description>Generated random number</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>ECB</name>
+ <description>AES ECB Mode Encryption</description>
+ <groupName>ECB</groupName>
+ <baseAddress>0x4000E000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>ECB</name>
+ <value>14</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_STARTECB</name>
+ <description>Start ECB block encrypt</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTECB</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOPECB</name>
+ <description>Abort a possible executing ECB operation</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOPECB</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDECB</name>
+ <description>ECB block encrypt complete</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDECB</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERRORECB</name>
+ <description>ECB block encrypt aborted because of a STOPECB task or due to an error</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERRORECB</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDECB</name>
+ <description>Write '1' to Enable interrupt for ENDECB event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERRORECB</name>
+ <description>Write '1' to Enable interrupt for ERRORECB event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDECB</name>
+ <description>Write '1' to Disable interrupt for ENDECB event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERRORECB</name>
+ <description>Write '1' to Disable interrupt for ERRORECB event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ECBDATAPTR</name>
+ <description>ECB block encrypt memory pointers</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ECBDATAPTR</name>
+ <description>Pointer to the ECB data structure (see Table 1 ECB data structure overview)</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>CCM</name>
+ <description>AES CCM Mode Encryption</description>
+ <groupName>CCM</groupName>
+ <baseAddress>0x4000F000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>CCM_AAR</name>
+ <value>15</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_KSGEN</name>
+ <description>Start generation of key-stream. This operation will stop by itself when completed.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_KSGEN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CRYPT</name>
+ <description>Start encryption/decryption. This operation will stop by itself when completed.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CRYPT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop encryption/decryption</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RATEOVERRIDE</name>
+ <description>Override DATARATE setting in MODE register with the contents of the RATEOVERRIDE register for any ongoing encryption/decryption</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RATEOVERRIDE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDKSGEN</name>
+ <description>Key-stream generation complete</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDKSGEN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDCRYPT</name>
+ <description>Encrypt/decrypt complete</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDCRYPT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>Deprecated register - CCM error event</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDKSGEN_CRYPT</name>
+ <description>Shortcut between ENDKSGEN event and CRYPT task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDKSGEN</name>
+ <description>Write '1' to Enable interrupt for ENDKSGEN event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDCRYPT</name>
+ <description>Write '1' to Enable interrupt for ENDCRYPT event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Enable interrupt for ERROR event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDKSGEN</name>
+ <description>Write '1' to Disable interrupt for ENDKSGEN event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDCRYPT</name>
+ <description>Write '1' to Disable interrupt for ENDCRYPT event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to Disable interrupt for ERROR event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MICSTATUS</name>
+ <description>MIC check result</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>MICSTATUS</name>
+ <description>The result of the MIC check performed during the previous decryption operation</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>CheckFailed</name>
+ <description>MIC check failed</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CheckPassed</name>
+ <description>MIC check passed</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable CCM</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Operation mode</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>The mode of operation to be used. The settings in this register apply whenever either the KSGEN or CRYPT tasks are triggered.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Encryption</name>
+ <description>AES CCM packet encryption mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Decryption</name>
+ <description>AES CCM packet decryption mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DATARATE</name>
+ <description>Radio data rate that the CCM shall run synchronous with</description>
+ <lsb>16</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>1Mbit</name>
+ <description>1 Mbps</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2Mbit</name>
+ <description>2 Mbps</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>125Kbps</name>
+ <description>125 Kbps</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>500Kbps</name>
+ <description>500 Kbps</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LENGTH</name>
+ <description>Packet length configuration</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>Default length. Effective length of LENGTH field in encrypted/decrypted packet is 5 bits. A key-stream for packet payloads up to 27 bytes will be generated.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Extended</name>
+ <description>Extended length. Effective length of LENGTH field in encrypted/decrypted packet is 8 bits. A key-stream for packet payloads up to MAXPACKETSIZE bytes will be generated.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CNFPTR</name>
+ <description>Pointer to data structure holding AES key and NONCE vector</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CNFPTR</name>
+ <description>Pointer to the data structure holding the AES key and the CCM NONCE vector (see Table 1 CCM data structure overview)</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INPTR</name>
+ <description>Input pointer</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>INPTR</name>
+ <description>Input pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OUTPTR</name>
+ <description>Output pointer</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>OUTPTR</name>
+ <description>Output pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to data area used for temporary storage</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to a scratch data area used for temporary storage during key-stream generation, MIC generation and encryption/decryption.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXPACKETSIZE</name>
+ <description>Length of key-stream generated when MODE.LENGTH = Extended.</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000000FB</resetValue>
+ <fields>
+ <field>
+ <name>MAXPACKETSIZE</name>
+ <description>Length of key-stream generated when MODE.LENGTH = Extended. This value must be greater or equal to the subsequent packet payload to be encrypted/decrypted.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RATEOVERRIDE</name>
+ <description>Data rate override setting.</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>RATEOVERRIDE</name>
+ <description>Data rate override setting.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>1Mbit</name>
+ <description>1 Mbps</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2Mbit</name>
+ <description>2 Mbps</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>125Kbps</name>
+ <description>125 Kbps</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>500Kbps</name>
+ <description>500 Kbps</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>AAR</name>
+ <description>Accelerated Address Resolver</description>
+ <groupName>AAR</groupName>
+ <baseAddress>0x4000F000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>CCM</alternatePeripheral>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>CCM_AAR</name>
+ <value>15</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start resolving addresses based on IRKs specified in the IRK data structure</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop resolving addresses</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>Address resolution procedure complete</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_END</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RESOLVED</name>
+ <description>Address resolved</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RESOLVED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_NOTRESOLVED</name>
+ <description>Address not resolved</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_NOTRESOLVED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Enable interrupt for END event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESOLVED</name>
+ <description>Write '1' to Enable interrupt for RESOLVED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NOTRESOLVED</name>
+ <description>Write '1' to Enable interrupt for NOTRESOLVED event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Disable interrupt for END event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESOLVED</name>
+ <description>Write '1' to Disable interrupt for RESOLVED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NOTRESOLVED</name>
+ <description>Write '1' to Disable interrupt for NOTRESOLVED event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATUS</name>
+ <description>Resolution status</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>The IRK that was used last time an address was resolved</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable AAR</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable AAR</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NIRK</name>
+ <description>Number of IRKs</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>NIRK</name>
+ <description>Number of Identity root keys available in the IRK data structure</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IRKPTR</name>
+ <description>Pointer to IRK data structure</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>IRKPTR</name>
+ <description>Pointer to the IRK data structure</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ADDRPTR</name>
+ <description>Pointer to the resolvable address</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDRPTR</name>
+ <description>Pointer to the resolvable address (6-bytes)</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to data area used for temporary storage</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to a scratch data area used for temporary storage during resolution.A space of minimum 3 bytes must be reserved.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>WDT</name>
+ <description>Watchdog Timer</description>
+ <groupName>WDT</groupName>
+ <baseAddress>0x40010000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>WDT</name>
+ <value>16</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start the watchdog</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TIMEOUT</name>
+ <description>Watchdog timeout</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TIMEOUT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TIMEOUT</name>
+ <description>Write '1' to Enable interrupt for TIMEOUT event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TIMEOUT</name>
+ <description>Write '1' to Disable interrupt for TIMEOUT event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RUNSTATUS</name>
+ <description>Run status</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RUNSTATUS</name>
+ <description>Indicates whether or not the watchdog is running</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotRunning</name>
+ <description>Watchdog not running</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Running</name>
+ <description>Watchdog is running</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REQSTATUS</name>
+ <description>Request status</description>
+ <addressOffset>0x404</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>RR0</name>
+ <description>Request status for RR[0] register</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[0] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[0] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR1</name>
+ <description>Request status for RR[1] register</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[1] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[1] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR2</name>
+ <description>Request status for RR[2] register</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[2] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[2] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR3</name>
+ <description>Request status for RR[3] register</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[3] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[3] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR4</name>
+ <description>Request status for RR[4] register</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[4] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[4] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR5</name>
+ <description>Request status for RR[5] register</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[5] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[5] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR6</name>
+ <description>Request status for RR[6] register</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[6] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[6] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR7</name>
+ <description>Request status for RR[7] register</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[7] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[7] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRV</name>
+ <description>Counter reload value</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>CRV</name>
+ <description>Counter reload value in number of cycles of the 32.768 kHz clock</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RREN</name>
+ <description>Enable register for reload request registers</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>RR0</name>
+ <description>Enable or disable RR[0] register</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[0] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[0] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR1</name>
+ <description>Enable or disable RR[1] register</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[1] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[1] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR2</name>
+ <description>Enable or disable RR[2] register</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[2] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[2] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR3</name>
+ <description>Enable or disable RR[3] register</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[3] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[3] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR4</name>
+ <description>Enable or disable RR[4] register</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[4] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[4] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR5</name>
+ <description>Enable or disable RR[5] register</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[5] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[5] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR6</name>
+ <description>Enable or disable RR[6] register</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[6] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[6] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR7</name>
+ <description>Enable or disable RR[7] register</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[7] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[7] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>SLEEP</name>
+ <description>Configure the watchdog to either be paused, or kept running, while the CPU is sleeping</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Pause</name>
+ <description>Pause watchdog while the CPU is sleeping</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Run</name>
+ <description>Keep the watchdog running while the CPU is sleeping</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>HALT</name>
+ <description>Configure the watchdog to either be paused, or kept running, while the CPU is halted by the debugger</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Pause</name>
+ <description>Pause watchdog while the CPU is halted by the debugger</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Run</name>
+ <description>Keep the watchdog running while the CPU is halted by the debugger</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>8</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>RR[%s]</name>
+ <description>Description collection[0]: Reload request 0</description>
+ <addressOffset>0x600</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>RR</name>
+ <description>Reload request register</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Reload</name>
+ <description>Value to request a reload of the watchdog timer</description>
+ <value>0x6E524635</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="RTC0">
+ <name>RTC1</name>
+ <description>Real time counter 1</description>
+ <groupName>RTC</groupName>
+ <baseAddress>0x40011000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>RTC1</name>
+ <value>17</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>QDEC</name>
+ <description>Quadrature Decoder</description>
+ <groupName>QDEC</groupName>
+ <baseAddress>0x40012000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>QDEC</name>
+ <value>18</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Task starting the quadrature decoder</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Task stopping the quadrature decoder</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_READCLRACC</name>
+ <description>Read and clear ACC and ACCDBL</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_READCLRACC</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RDCLRACC</name>
+ <description>Read and clear ACC</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RDCLRACC</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RDCLRDBL</name>
+ <description>Read and clear ACCDBL</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RDCLRDBL</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_SAMPLERDY</name>
+ <description>Event being generated for every new sample value written to the SAMPLE register</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SAMPLERDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_REPORTRDY</name>
+ <description>Non-null report ready</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_REPORTRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ACCOF</name>
+ <description>ACC or ACCDBL register overflow</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ACCOF</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DBLRDY</name>
+ <description>Double displacement(s) detected</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DBLRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>QDEC has been stopped</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REPORTRDY_READCLRACC</name>
+ <description>Shortcut between REPORTRDY event and READCLRACC task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SAMPLERDY_STOP</name>
+ <description>Shortcut between SAMPLERDY event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY_RDCLRACC</name>
+ <description>Shortcut between REPORTRDY event and RDCLRACC task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY_STOP</name>
+ <description>Shortcut between REPORTRDY event and STOP task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DBLRDY_RDCLRDBL</name>
+ <description>Shortcut between DBLRDY event and RDCLRDBL task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DBLRDY_STOP</name>
+ <description>Shortcut between DBLRDY event and STOP task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SAMPLERDY_READCLRACC</name>
+ <description>Shortcut between SAMPLERDY event and READCLRACC task</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SAMPLERDY</name>
+ <description>Write '1' to Enable interrupt for SAMPLERDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY</name>
+ <description>Write '1' to Enable interrupt for REPORTRDY event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACCOF</name>
+ <description>Write '1' to Enable interrupt for ACCOF event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DBLRDY</name>
+ <description>Write '1' to Enable interrupt for DBLRDY event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SAMPLERDY</name>
+ <description>Write '1' to Disable interrupt for SAMPLERDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY</name>
+ <description>Write '1' to Disable interrupt for REPORTRDY event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACCOF</name>
+ <description>Write '1' to Disable interrupt for ACCOF event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DBLRDY</name>
+ <description>Write '1' to Disable interrupt for DBLRDY event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable the quadrature decoder</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable the quadrature decoder</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LEDPOL</name>
+ <description>LED output pin polarity</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LEDPOL</name>
+ <description>LED output pin polarity</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Led active on output pin low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Led active on output pin high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SAMPLEPER</name>
+ <description>Sample period</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SAMPLEPER</name>
+ <description>Sample period. The SAMPLE register will be updated for every new sample</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>128us</name>
+ <description>128 us</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>256us</name>
+ <description>256 us</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>512us</name>
+ <description>512 us</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1024us</name>
+ <description>1024 us</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2048us</name>
+ <description>2048 us</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>4096us</name>
+ <description>4096 us</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>8192us</name>
+ <description>8192 us</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>16384us</name>
+ <description>16384 us</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32ms</name>
+ <description>32768 us</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>65ms</name>
+ <description>65536 us</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>131ms</name>
+ <description>131072 us</description>
+ <value>10</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SAMPLE</name>
+ <description>Motion sample value</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>SAMPLE</name>
+ <description>Last motion sample</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REPORTPER</name>
+ <description>Number of samples to be taken before REPORTRDY and DBLRDY events can be generated</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REPORTPER</name>
+ <description>Specifies the number of samples to be accumulated in the ACC register before the REPORTRDY and DBLRDY events can be generated</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>10Smpl</name>
+ <description>10 samples / report</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>40Smpl</name>
+ <description>40 samples / report</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>80Smpl</name>
+ <description>80 samples / report</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>120Smpl</name>
+ <description>120 samples / report</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>160Smpl</name>
+ <description>160 samples / report</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>200Smpl</name>
+ <description>200 samples / report</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>240Smpl</name>
+ <description>240 samples / report</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>280Smpl</name>
+ <description>280 samples / report</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1Smpl</name>
+ <description>1 sample / report</description>
+ <value>8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ACC</name>
+ <description>Register accumulating the valid transitions</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>ACC</name>
+ <description>Register accumulating all valid samples (not double transition) read from the SAMPLE register</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ACCREAD</name>
+ <description>Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC task</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>ACCREAD</name>
+ <description>Snapshot of the ACC register.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>QDEC_PSEL</headerStructName>
+ <addressOffset>0x51C</addressOffset>
+ <register>
+ <name>LED</name>
+ <description>Pin select for LED signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A</name>
+ <description>Pin select for A signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B</name>
+ <description>Pin select for B signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>DBFEN</name>
+ <description>Enable input debounce filters</description>
+ <addressOffset>0x528</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DBFEN</name>
+ <description>Enable input debounce filters</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Debounce input filters disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Debounce input filters enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LEDPRE</name>
+ <description>Time period the LED is switched ON prior to sampling</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000010</resetValue>
+ <fields>
+ <field>
+ <name>LEDPRE</name>
+ <description>Period in us the LED is switched on prior to sampling</description>
+ <lsb>0</lsb>
+ <msb>8</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ACCDBL</name>
+ <description>Register accumulating the number of detected double transitions</description>
+ <addressOffset>0x544</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>ACCDBL</name>
+ <description>Register accumulating the number of detected double or illegal transitions. ( SAMPLE = 2 ).</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ACCDBLREAD</name>
+ <description>Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL task</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>ACCDBLREAD</name>
+ <description>Snapshot of the ACCDBL register. This field is updated when the READCLRACC or RDCLRDBL task is triggered.</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>COMP</name>
+ <description>Comparator</description>
+ <groupName>COMP</groupName>
+ <baseAddress>0x40013000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>COMP</name>
+ <value>19</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start comparator</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop comparator</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SAMPLE</name>
+ <description>Sample comparator value</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SAMPLE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>COMP is ready and output is valid</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_READY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DOWN</name>
+ <description>Downward crossing</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DOWN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_UP</name>
+ <description>Upward crossing</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_UP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CROSS</name>
+ <description>Downward or upward crossing</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CROSS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY_SAMPLE</name>
+ <description>Shortcut between READY event and SAMPLE task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READY_STOP</name>
+ <description>Shortcut between READY event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN_STOP</name>
+ <description>Shortcut between DOWN event and STOP task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP_STOP</name>
+ <description>Shortcut between UP event and STOP task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS_STOP</name>
+ <description>Shortcut between CROSS event and STOP task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Enable or disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Enable or disable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Enable or disable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Enable or disable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Enable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Write '1' to Enable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Write '1' to Enable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Write '1' to Enable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to Disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Write '1' to Disable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Write '1' to Disable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Write '1' to Disable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RESULT</name>
+ <description>Compare result</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RESULT</name>
+ <description>Result of last compare. Decision point SAMPLE task.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Below</name>
+ <description>Input voltage is below the threshold (VIN+ &amp;lt; VIN-)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Above</name>
+ <description>Input voltage is above the threshold (VIN+ &amp;gt; VIN-)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>COMP enable</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable COMP</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSEL</name>
+ <description>Pin select</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PSEL</name>
+ <description>Analog pin select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>AIN0 selected as analog input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>AIN1 selected as analog input</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>AIN2 selected as analog input</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>AIN3 selected as analog input</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>AIN4 selected as analog input</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>AIN5 selected as analog input</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>AIN6 selected as analog input</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VddDiv2</name>
+ <description>VDD/2 selected as analog input</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REFSEL</name>
+ <description>Reference source select for single-ended mode</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000004</resetValue>
+ <fields>
+ <field>
+ <name>REFSEL</name>
+ <description>Reference select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Int1V2</name>
+ <description>VREF = internal 1.2 V reference (VDD &amp;gt;= 1.7 V)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Int1V8</name>
+ <description>VREF = internal 1.8 V reference (VDD &amp;gt;= VREF + 0.2 V)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Int2V4</name>
+ <description>VREF = internal 2.4 V reference (VDD &amp;gt;= VREF + 0.2 V)</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD</name>
+ <description>VREF = VDD</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ARef</name>
+ <description>VREF = AREF (VDD &amp;gt;= VREF &amp;gt;= AREFMIN)</description>
+ <value>5</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EXTREFSEL</name>
+ <description>External reference select</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EXTREFSEL</name>
+ <description>External analog reference select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogReference0</name>
+ <description>Use AIN0 as external analog reference</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference1</name>
+ <description>Use AIN1 as external analog reference</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference2</name>
+ <description>Use AIN2 as external analog reference</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference3</name>
+ <description>Use AIN3 as external analog reference</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference4</name>
+ <description>Use AIN4 as external analog reference</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference5</name>
+ <description>Use AIN5 as external analog reference</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference6</name>
+ <description>Use AIN6 as external analog reference</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference7</name>
+ <description>Use AIN7 as external analog reference</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TH</name>
+ <description>Threshold configuration for hysteresis unit</description>
+ <addressOffset>0x530</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>THDOWN</name>
+ <description>VDOWN = (THDOWN+1)/64*VREF</description>
+ <lsb>0</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>THUP</name>
+ <description>VUP = (THUP+1)/64*VREF</description>
+ <lsb>8</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Mode configuration</description>
+ <addressOffset>0x534</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SP</name>
+ <description>Speed and power modes</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Low-power mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Normal</name>
+ <description>Normal mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>High-speed mode</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>MAIN</name>
+ <description>Main operation modes</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>SE</name>
+ <description>Single-ended mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Diff</name>
+ <description>Differential mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HYST</name>
+ <description>Comparator hysteresis enable</description>
+ <addressOffset>0x538</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HYST</name>
+ <description>Comparator hysteresis</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoHyst</name>
+ <description>Comparator hysteresis disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Hyst50mV</name>
+ <description>Comparator hysteresis enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SWI0</name>
+ <description>Software interrupt 0</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40014000</baseAddress>
+ <size>32</size>
+ <headerStructName>SWI</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SWI0_EGU0</name>
+ <value>20</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>UNUSED</name>
+ <description>Unused.</description>
+ <addressOffset>0x000</addressOffset>
+ <resetValue>0x00000000</resetValue>
+ <access>read-only</access>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>EGU0</name>
+ <description>Event Generator Unit 0</description>
+ <groupName>EGU</groupName>
+ <baseAddress>0x40014000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SWI0</alternatePeripheral>
+ <headerStructName>EGU</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SWI0_EGU0</name>
+ <value>20</value>
+ </interrupt>
+ <registers>
+ <register>
+ <dim>16</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>TASKS_TRIGGER[%s]</name>
+ <description>Description collection[0]: Trigger 0 for triggering the corresponding TRIGGERED[0] event</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_TRIGGER</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>16</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>EVENTS_TRIGGERED[%s]</name>
+ <description>Description collection[0]: Event number 0 generated by triggering the corresponding TRIGGER[0] task</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TRIGGERED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TRIGGERED0</name>
+ <description>Enable or disable interrupt for TRIGGERED[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED1</name>
+ <description>Enable or disable interrupt for TRIGGERED[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED2</name>
+ <description>Enable or disable interrupt for TRIGGERED[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED3</name>
+ <description>Enable or disable interrupt for TRIGGERED[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED4</name>
+ <description>Enable or disable interrupt for TRIGGERED[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED5</name>
+ <description>Enable or disable interrupt for TRIGGERED[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED6</name>
+ <description>Enable or disable interrupt for TRIGGERED[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED7</name>
+ <description>Enable or disable interrupt for TRIGGERED[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED8</name>
+ <description>Enable or disable interrupt for TRIGGERED[8] event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED9</name>
+ <description>Enable or disable interrupt for TRIGGERED[9] event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED10</name>
+ <description>Enable or disable interrupt for TRIGGERED[10] event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED11</name>
+ <description>Enable or disable interrupt for TRIGGERED[11] event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED12</name>
+ <description>Enable or disable interrupt for TRIGGERED[12] event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED13</name>
+ <description>Enable or disable interrupt for TRIGGERED[13] event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED14</name>
+ <description>Enable or disable interrupt for TRIGGERED[14] event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED15</name>
+ <description>Enable or disable interrupt for TRIGGERED[15] event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TRIGGERED0</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED1</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED2</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED3</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED4</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED5</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED6</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED7</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED8</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[8] event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED9</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[9] event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED10</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[10] event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED11</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[11] event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED12</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[12] event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED13</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[13] event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED14</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[14] event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED15</name>
+ <description>Write '1' to Enable interrupt for TRIGGERED[15] event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TRIGGERED0</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED1</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED2</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED3</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED4</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED5</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED6</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED7</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED8</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[8] event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED9</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[9] event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED10</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[10] event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED11</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[11] event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED12</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[12] event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED13</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[13] event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED14</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[14] event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED15</name>
+ <description>Write '1' to Disable interrupt for TRIGGERED[15] event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI1</name>
+ <description>Software interrupt 1</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40015000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>SWI1_EGU1</name>
+ <value>21</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="EGU0">
+ <name>EGU1</name>
+ <description>Event Generator Unit 1</description>
+ <groupName>EGU</groupName>
+ <baseAddress>0x40015000</baseAddress>
+ <size>32</size>
+ <alternatePeripheral>SWI1</alternatePeripheral>
+ <interrupt>
+ <name>SWI1_EGU1</name>
+ <value>21</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI2</name>
+ <description>Software interrupt 2</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40016000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>SWI2</name>
+ <value>22</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI3</name>
+ <description>Software interrupt 3</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40017000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>SWI3</name>
+ <value>23</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI4</name>
+ <description>Software interrupt 4</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40018000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>SWI4</name>
+ <value>24</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI5</name>
+ <description>Software interrupt 5</description>
+ <groupName>SWI</groupName>
+ <baseAddress>0x40019000</baseAddress>
+ <size>32</size>
+ <interrupt>
+ <name>SWI5</name>
+ <value>25</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>PWM0</name>
+ <description>Pulse width modulation unit</description>
+ <groupName>PWM</groupName>
+ <baseAddress>0x4001C000</baseAddress>
+ <size>32</size>
+ <headerStructName>PWM</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>PWM0</name>
+ <value>28</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>TASKS_SEQSTART[%s]</name>
+ <description>Description collection[0]: Loads the first PWM value on all enabled channels from sequence 0, and starts playing that sequence at the rate defined in SEQ[0]REFRESH and/or DECODER.MODE. Causes PWM generation to start if not running.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SEQSTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_NEXTSTEP</name>
+ <description>Steps by one value in the current sequence on all enabled channels if DECODER.MODE=NextStep. Does not cause PWM generation to start if not running.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_NEXTSTEP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>Response to STOP task, emitted when PWM pulses are no longer generated</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>EVENTS_SEQSTARTED[%s]</name>
+ <description>Description collection[0]: First PWM period started on sequence 0</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SEQSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>2</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>EVENTS_SEQEND[%s]</name>
+ <description>Description collection[0]: Emitted at end of every sequence 0, when last value from RAM has been applied to wave counter</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SEQEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_PWMPERIODEND</name>
+ <description>Emitted at the end of each PWM period</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_PWMPERIODEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_LOOPSDONE</name>
+ <description>Concatenated sequences have been played the amount of times defined in LOOP.CNT</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_LOOPSDONE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SEQEND0_STOP</name>
+ <description>Shortcut between SEQEND[0] event and STOP task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND1_STOP</name>
+ <description>Shortcut between SEQEND[1] event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE_SEQSTART0</name>
+ <description>Shortcut between LOOPSDONE event and SEQSTART[0] task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE_SEQSTART1</name>
+ <description>Shortcut between LOOPSDONE event and SEQSTART[1] task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE_STOP</name>
+ <description>Shortcut between LOOPSDONE event and STOP task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED0</name>
+ <description>Enable or disable interrupt for SEQSTARTED[0] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED1</name>
+ <description>Enable or disable interrupt for SEQSTARTED[1] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND0</name>
+ <description>Enable or disable interrupt for SEQEND[0] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND1</name>
+ <description>Enable or disable interrupt for SEQEND[1] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PWMPERIODEND</name>
+ <description>Enable or disable interrupt for PWMPERIODEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE</name>
+ <description>Enable or disable interrupt for LOOPSDONE event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED0</name>
+ <description>Write '1' to Enable interrupt for SEQSTARTED[0] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED1</name>
+ <description>Write '1' to Enable interrupt for SEQSTARTED[1] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND0</name>
+ <description>Write '1' to Enable interrupt for SEQEND[0] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND1</name>
+ <description>Write '1' to Enable interrupt for SEQEND[1] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PWMPERIODEND</name>
+ <description>Write '1' to Enable interrupt for PWMPERIODEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE</name>
+ <description>Write '1' to Enable interrupt for LOOPSDONE event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED0</name>
+ <description>Write '1' to Disable interrupt for SEQSTARTED[0] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED1</name>
+ <description>Write '1' to Disable interrupt for SEQSTARTED[1] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND0</name>
+ <description>Write '1' to Disable interrupt for SEQEND[0] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND1</name>
+ <description>Write '1' to Disable interrupt for SEQEND[1] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PWMPERIODEND</name>
+ <description>Write '1' to Disable interrupt for PWMPERIODEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE</name>
+ <description>Write '1' to Disable interrupt for LOOPSDONE event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>PWM module enable register</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable PWM module</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Selects operating mode of the wave counter</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>UPDOWN</name>
+ <description>Selects up mode or up-and-down mode for the counter</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Up</name>
+ <description>Up counter, edge-aligned PWM duty cycle</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>UpAndDown</name>
+ <description>Up and down counter, center-aligned PWM duty cycle</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>COUNTERTOP</name>
+ <description>Value up to which the pulse generator counter counts</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000003FF</resetValue>
+ <fields>
+ <field>
+ <name>COUNTERTOP</name>
+ <description>Value up to which the pulse generator counter counts. This register is ignored when DECODER.MODE=WaveForm and only values from RAM are used.</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PRESCALER</name>
+ <description>Configuration for PWM_CLK</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PRESCALER</name>
+ <description>Prescaler of PWM_CLK</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DIV_1</name>
+ <description>Divide by 1 (16MHz)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_2</name>
+ <description>Divide by 2 ( 8MHz)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_4</name>
+ <description>Divide by 4 ( 4MHz)</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_8</name>
+ <description>Divide by 8 ( 2MHz)</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_16</name>
+ <description>Divide by 16 ( 1MHz)</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_32</name>
+ <description>Divide by 32 ( 500kHz)</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_64</name>
+ <description>Divide by 64 ( 250kHz)</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_128</name>
+ <description>Divide by 128 ( 125kHz)</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DECODER</name>
+ <description>Configuration of the decoder</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>LOAD</name>
+ <description>How a sequence is read from RAM and spread to the compare register</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Common</name>
+ <description>1st half word (16-bit) used in all PWM channels 0..3</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Grouped</name>
+ <description>1st half word (16-bit) used in channel 0..1; 2nd word in channel 2..3</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Individual</name>
+ <description>1st half word (16-bit) in ch.0; 2nd in ch.1; ...; 4th in ch.3</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>WaveForm</name>
+ <description>1st half word (16-bit) in ch.0; 2nd in ch.1; ...; 4th in COUNTERTOP</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>MODE</name>
+ <description>Selects source for advancing the active sequence</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RefreshCount</name>
+ <description>SEQ[n].REFRESH is used to determine loading internal compare registers</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NextStep</name>
+ <description>NEXTSTEP task causes a new value to be loaded to internal compare registers</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LOOP</name>
+ <description>Number of playbacks of a loop</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Number of playbacks of pattern cycles</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Looping disabled (stop at the end of the sequence)</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>2</dim>
+ <dimIncrement>32</dimIncrement>
+ <name>SEQ[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>PWM_SEQ</headerStructName>
+ <addressOffset>0x520</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Description cluster[0]: Beginning address in RAM of this sequence</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Beginning address in RAM of this sequence</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CNT</name>
+ <description>Description cluster[0]: Number of values (duty cycles) in this sequence</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Number of values (duty cycles) in this sequence</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Sequence is disabled, and shall not be started as it is empty</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REFRESH</name>
+ <description>Description cluster[0]: Number of additional PWM periods between samples loaded into compare register</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Number of additional PWM periods between samples loaded into compare register (load every REFRESH.CNT+1 PWM periods)</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Continuous</name>
+ <description>Update every PWM period</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENDDELAY</name>
+ <description>Description cluster[0]: Time added after the sequence</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Time added after the sequence in PWM periods</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>PWM_PSEL</headerStructName>
+ <addressOffset>0x560</addressOffset>
+ <register>
+ <dim>4</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>OUT[%s]</name>
+ <description>Description collection[0]: Output pin select for PWM channel 0</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>PDM</name>
+ <description>Pulse Density Modulation (Digital Microphone) Interface</description>
+ <groupName>PDM</groupName>
+ <baseAddress>0x4001D000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>PDM</name>
+ <value>29</value>
+ </interrupt>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Starts continuous PDM transfer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stops PDM transfer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STARTED</name>
+ <description>PDM transfer has started</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>PDM transfer has finished</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>The PDM has written the last sample specified by SAMPLE.MAXCNT (or the last sample after a STOP task has been received) to Data RAM</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_END</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Enable or disable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Enable or disable interrupt for END event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Enable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Enable interrupt for END event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to Disable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to Disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to Disable interrupt for END event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>PDM module enable register</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable PDM module</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PDMCLKCTRL</name>
+ <description>PDM clock generator control</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x08400000</resetValue>
+ <fields>
+ <field>
+ <name>FREQ</name>
+ <description>PDM_CLK frequency</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>1000K</name>
+ <description>PDM_CLK = 32 MHz / 32 = 1.000 MHz</description>
+ <value>0x08000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>PDM_CLK = 32 MHz / 31 = 1.032 MHz</description>
+ <value>0x08400000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1067K</name>
+ <description>PDM_CLK = 32 MHz / 30 = 1.067 MHz</description>
+ <value>0x08800000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Defines the routing of the connected PDM microphones' signals</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>OPERATION</name>
+ <description>Mono or stereo operation</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Stereo</name>
+ <description>Sample and store one pair (Left + Right) of 16bit samples per RAM word R=[31:16]; L=[15:0]</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Mono</name>
+ <description>Sample and store two successive Left samples (16 bit each) per RAM word L1=[31:16]; L0=[15:0]</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EDGE</name>
+ <description>Defines on which PDM_CLK edge Left (or mono) is sampled</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>LeftFalling</name>
+ <description>Left (or mono) is sampled on falling edge of PDM_CLK</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LeftRising</name>
+ <description>Left (or mono) is sampled on rising edge of PDM_CLK</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>GAINL</name>
+ <description>Left output gain adjustment</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000028</resetValue>
+ <fields>
+ <field>
+ <name>GAINL</name>
+ <description>Left output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters) 0x00 -20 dB gain adjust 0x01 -19.5 dB gain adjust (...) 0x27 -0.5 dB gain adjust 0x28 0 dB gain adjust 0x29 +0.5 dB gain adjust (...) 0x4F +19.5 dB gain adjust 0x50 +20 dB gain adjust</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MinGain</name>
+ <description>-20dB gain adjustment (minimum)</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DefaultGain</name>
+ <description>0dB gain adjustment ('2500 RMS' requirement)</description>
+ <value>0x28</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>MaxGain</name>
+ <description>+20dB gain adjustment (maximum)</description>
+ <value>0x50</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>GAINR</name>
+ <description>Right output gain adjustment</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000028</resetValue>
+ <fields>
+ <field>
+ <name>GAINR</name>
+ <description>Right output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters)</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MinGain</name>
+ <description>-20dB gain adjustment (minimum)</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DefaultGain</name>
+ <description>0dB gain adjustment ('2500 RMS' requirement)</description>
+ <value>0x28</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>MaxGain</name>
+ <description>+20dB gain adjustment (maximum)</description>
+ <value>0x50</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>PDM_PSEL</headerStructName>
+ <addressOffset>0x540</addressOffset>
+ <register>
+ <name>CLK</name>
+ <description>Pin number configuration for PDM CLK signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIN</name>
+ <description>Pin number configuration for PDM DIN signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>SAMPLE</name>
+ <description>Unspecified</description>
+ <headerStructName>PDM_SAMPLE</headerStructName>
+ <addressOffset>0x560</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>RAM address pointer to write samples to with EasyDMA</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SAMPLEPTR</name>
+ <description>Address to write PDM samples to over DMA</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Number of samples to allocate memory for in EasyDMA mode</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BUFFSIZE</name>
+ <description>Length of DMA RAM allocation in number of samples</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>NVMC</name>
+ <description>Non-volatile memory controller</description>
+ <groupName>NVMC</groupName>
+ <baseAddress>0x4001E000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <registers>
+ <register>
+ <name>READY</name>
+ <description>Ready flag</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>NVMC is ready or busy</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Busy</name>
+ <description>NVMC is busy (ongoing write or erase operation)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ready</name>
+ <description>NVMC is ready</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>WEN</name>
+ <description>Program memory access mode. It is strongly recommended to activate erase and write modes only when they are actively used.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Ren</name>
+ <description>Read only access</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Wen</name>
+ <description>Write enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Een</name>
+ <description>Erase enabled</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEPCR1</name>
+ <description>Deprecated register - Register for erasing a page in code area. Equivalent to ERASEPAGE.</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEPCR1</name>
+ <description>Register for erasing a page in code area. Equivalent to ERASEPAGE.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEPAGE</name>
+ <description>Register for erasing a page in code area</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <alternateRegister>ERASEPCR1</alternateRegister>
+ <fields>
+ <field>
+ <name>ERASEPAGE</name>
+ <description>Register for starting erase of a page in code area.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEALL</name>
+ <description>Register for erasing all non-volatile user memory</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEALL</name>
+ <description>Erase all non-volatile memory including UICR registers. Note that the erase must be enabled using CONFIG.WEN before the non-volatile memory can be erased.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoOperation</name>
+ <description>No operation</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Erase</name>
+ <description>Start erase of chip</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEPCR0</name>
+ <description>Deprecated register - Register for erasing a page in code area. Equivalent to ERASEPAGE.</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEPCR0</name>
+ <description>Register for starting erase of a page in code area. Equivalent to ERASEPAGE.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEUICR</name>
+ <description>Register for erasing user information configuration registers</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEUICR</name>
+ <description>Register starting erase of all user information configuration registers. Note that the erase must be enabled using CONFIG.WEN before the UICR can be erased.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoOperation</name>
+ <description>No operation</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Erase</name>
+ <description>Start erase of UICR</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>PPI</name>
+ <description>Programmable Peripheral Interconnect</description>
+ <groupName>PPI</groupName>
+ <baseAddress>0x4001F000</baseAddress>
+ <size>32</size>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <registers>
+ <cluster>
+ <dim>6</dim>
+ <dimIncrement>8</dimIncrement>
+ <name>TASKS_CHG[%s]</name>
+ <description>Channel group tasks</description>
+ <headerStructName>PPI_TASKS_CHG</headerStructName>
+ <addressOffset>0x000</addressOffset>
+ <register>
+ <name>EN</name>
+ <description>Description cluster[0]: Enable channel group 0</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>EN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIS</name>
+ <description>Description cluster[0]: Disable channel group 0</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>DIS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CHEN</name>
+ <description>Channel enable register</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Enable or disable channel 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Enable or disable channel 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Enable or disable channel 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Enable or disable channel 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Enable or disable channel 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Enable or disable channel 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Enable or disable channel 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Enable or disable channel 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Enable or disable channel 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Enable or disable channel 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Enable or disable channel 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Enable or disable channel 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Enable or disable channel 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Enable or disable channel 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Enable or disable channel 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Enable or disable channel 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH16</name>
+ <description>Enable or disable channel 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH17</name>
+ <description>Enable or disable channel 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH18</name>
+ <description>Enable or disable channel 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH19</name>
+ <description>Enable or disable channel 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Enable or disable channel 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Enable or disable channel 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Enable or disable channel 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Enable or disable channel 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Enable or disable channel 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Enable or disable channel 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Enable or disable channel 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Enable or disable channel 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Enable or disable channel 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Enable or disable channel 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Enable or disable channel 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Enable or disable channel 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CHENSET</name>
+ <description>Channel enable set register</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToSet</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Channel 0 enable set register. Writing '0' has no effect</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Channel 1 enable set register. Writing '0' has no effect</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Channel 2 enable set register. Writing '0' has no effect</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Channel 3 enable set register. Writing '0' has no effect</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Channel 4 enable set register. Writing '0' has no effect</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Channel 5 enable set register. Writing '0' has no effect</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Channel 6 enable set register. Writing '0' has no effect</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Channel 7 enable set register. Writing '0' has no effect</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Channel 8 enable set register. Writing '0' has no effect</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Channel 9 enable set register. Writing '0' has no effect</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Channel 10 enable set register. Writing '0' has no effect</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Channel 11 enable set register. Writing '0' has no effect</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Channel 12 enable set register. Writing '0' has no effect</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Channel 13 enable set register. Writing '0' has no effect</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Channel 14 enable set register. Writing '0' has no effect</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Channel 15 enable set register. Writing '0' has no effect</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH16</name>
+ <description>Channel 16 enable set register. Writing '0' has no effect</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH17</name>
+ <description>Channel 17 enable set register. Writing '0' has no effect</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH18</name>
+ <description>Channel 18 enable set register. Writing '0' has no effect</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH19</name>
+ <description>Channel 19 enable set register. Writing '0' has no effect</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Channel 20 enable set register. Writing '0' has no effect</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Channel 21 enable set register. Writing '0' has no effect</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Channel 22 enable set register. Writing '0' has no effect</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Channel 23 enable set register. Writing '0' has no effect</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Channel 24 enable set register. Writing '0' has no effect</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Channel 25 enable set register. Writing '0' has no effect</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Channel 26 enable set register. Writing '0' has no effect</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Channel 27 enable set register. Writing '0' has no effect</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Channel 28 enable set register. Writing '0' has no effect</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Channel 29 enable set register. Writing '0' has no effect</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Channel 30 enable set register. Writing '0' has no effect</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Channel 31 enable set register. Writing '0' has no effect</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CHENCLR</name>
+ <description>Channel enable clear register</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Channel 0 enable clear register. Writing '0' has no effect</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Channel 1 enable clear register. Writing '0' has no effect</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Channel 2 enable clear register. Writing '0' has no effect</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Channel 3 enable clear register. Writing '0' has no effect</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Channel 4 enable clear register. Writing '0' has no effect</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Channel 5 enable clear register. Writing '0' has no effect</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Channel 6 enable clear register. Writing '0' has no effect</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Channel 7 enable clear register. Writing '0' has no effect</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Channel 8 enable clear register. Writing '0' has no effect</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Channel 9 enable clear register. Writing '0' has no effect</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Channel 10 enable clear register. Writing '0' has no effect</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Channel 11 enable clear register. Writing '0' has no effect</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Channel 12 enable clear register. Writing '0' has no effect</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Channel 13 enable clear register. Writing '0' has no effect</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Channel 14 enable clear register. Writing '0' has no effect</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Channel 15 enable clear register. Writing '0' has no effect</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH16</name>
+ <description>Channel 16 enable clear register. Writing '0' has no effect</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH17</name>
+ <description>Channel 17 enable clear register. Writing '0' has no effect</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH18</name>
+ <description>Channel 18 enable clear register. Writing '0' has no effect</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH19</name>
+ <description>Channel 19 enable clear register. Writing '0' has no effect</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Channel 20 enable clear register. Writing '0' has no effect</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Channel 21 enable clear register. Writing '0' has no effect</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Channel 22 enable clear register. Writing '0' has no effect</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Channel 23 enable clear register. Writing '0' has no effect</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Channel 24 enable clear register. Writing '0' has no effect</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Channel 25 enable clear register. Writing '0' has no effect</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Channel 26 enable clear register. Writing '0' has no effect</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Channel 27 enable clear register. Writing '0' has no effect</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Channel 28 enable clear register. Writing '0' has no effect</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Channel 29 enable clear register. Writing '0' has no effect</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Channel 30 enable clear register. Writing '0' has no effect</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Channel 31 enable clear register. Writing '0' has no effect</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>20</dim>
+ <dimIncrement>8</dimIncrement>
+ <name>CH[%s]</name>
+ <description>PPI Channel</description>
+ <headerStructName>PPI_CH</headerStructName>
+ <addressOffset>0x510</addressOffset>
+ <register>
+ <name>EEP</name>
+ <description>Description cluster[0]: Channel 0 event end-point</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EEP</name>
+ <description>Pointer to event register. Accepts only addresses to registers from the Event group.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TEP</name>
+ <description>Description cluster[0]: Channel 0 task end-point</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TEP</name>
+ <description>Pointer to task register. Accepts only addresses to registers from the Task group.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <dim>6</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>CHG[%s]</name>
+ <description>Description collection[0]: Channel group 0</description>
+ <addressOffset>0x800</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Include or exclude channel 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Include or exclude channel 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Include or exclude channel 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Include or exclude channel 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Include or exclude channel 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Include or exclude channel 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Include or exclude channel 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Include or exclude channel 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Include or exclude channel 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Include or exclude channel 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Include or exclude channel 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Include or exclude channel 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Include or exclude channel 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Include or exclude channel 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Include or exclude channel 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Include or exclude channel 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH16</name>
+ <description>Include or exclude channel 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH17</name>
+ <description>Include or exclude channel 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH18</name>
+ <description>Include or exclude channel 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH19</name>
+ <description>Include or exclude channel 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Include or exclude channel 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Include or exclude channel 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Include or exclude channel 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Include or exclude channel 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Include or exclude channel 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Include or exclude channel 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Include or exclude channel 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Include or exclude channel 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Include or exclude channel 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Include or exclude channel 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Include or exclude channel 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Include or exclude channel 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>32</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>FORK[%s]</name>
+ <description>Fork</description>
+ <headerStructName>PPI_FORK</headerStructName>
+ <addressOffset>0x910</addressOffset>
+ <register>
+ <name>TEP</name>
+ <description>Description cluster[0]: Channel 0 task end-point</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TEP</name>
+ <description>Pointer to task register</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>P0</name>
+ <description>GPIO Port</description>
+ <groupName>GPIO</groupName>
+ <baseAddress>0x50000000</baseAddress>
+ <size>32</size>
+ <headerStructName>GPIO</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <registers>
+ <register>
+ <name>OUT</name>
+ <description>Write GPIO port</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OUTSET</name>
+ <description>Set individual bits in GPIO port</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToSet</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OUTCLR</name>
+ <description>Clear individual bits in GPIO port</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IN</name>
+ <description>Read GPIO port</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIR</name>
+ <description>Direction of GPIO pins</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIRSET</name>
+ <description>DIR set register</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToSet</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Set as output pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Set as output pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Set as output pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Set as output pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Set as output pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Set as output pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Set as output pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Set as output pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Set as output pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Set as output pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Set as output pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Set as output pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Set as output pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Set as output pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Set as output pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Set as output pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Set as output pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Set as output pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Set as output pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Set as output pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Set as output pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Set as output pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Set as output pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Set as output pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Set as output pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Set as output pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Set as output pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Set as output pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Set as output pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Set as output pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Set as output pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Set as output pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIRCLR</name>
+ <description>DIR clear register</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Set as input pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Set as input pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Set as input pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Set as input pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Set as input pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Set as input pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Set as input pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Set as input pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Set as input pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Set as input pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Set as input pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Set as input pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Set as input pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Set as input pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Set as input pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Set as input pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Set as input pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Set as input pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Set as input pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Set as input pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Set as input pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Set as input pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Set as input pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Set as input pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Set as input pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Set as input pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Set as input pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Set as input pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Set as input pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Set as input pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Set as input pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Set as input pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LATCH</name>
+ <description>Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF[n].SENSE registers</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Status on whether PIN0 has met criteria set in PIN_CNF0.SENSE register. Write '1' to clear.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Status on whether PIN1 has met criteria set in PIN_CNF1.SENSE register. Write '1' to clear.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Status on whether PIN2 has met criteria set in PIN_CNF2.SENSE register. Write '1' to clear.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Status on whether PIN3 has met criteria set in PIN_CNF3.SENSE register. Write '1' to clear.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Status on whether PIN4 has met criteria set in PIN_CNF4.SENSE register. Write '1' to clear.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Status on whether PIN5 has met criteria set in PIN_CNF5.SENSE register. Write '1' to clear.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Status on whether PIN6 has met criteria set in PIN_CNF6.SENSE register. Write '1' to clear.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Status on whether PIN7 has met criteria set in PIN_CNF7.SENSE register. Write '1' to clear.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Status on whether PIN8 has met criteria set in PIN_CNF8.SENSE register. Write '1' to clear.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Status on whether PIN9 has met criteria set in PIN_CNF9.SENSE register. Write '1' to clear.</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Status on whether PIN10 has met criteria set in PIN_CNF10.SENSE register. Write '1' to clear.</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Status on whether PIN11 has met criteria set in PIN_CNF11.SENSE register. Write '1' to clear.</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Status on whether PIN12 has met criteria set in PIN_CNF12.SENSE register. Write '1' to clear.</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Status on whether PIN13 has met criteria set in PIN_CNF13.SENSE register. Write '1' to clear.</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Status on whether PIN14 has met criteria set in PIN_CNF14.SENSE register. Write '1' to clear.</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Status on whether PIN15 has met criteria set in PIN_CNF15.SENSE register. Write '1' to clear.</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Status on whether PIN16 has met criteria set in PIN_CNF16.SENSE register. Write '1' to clear.</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Status on whether PIN17 has met criteria set in PIN_CNF17.SENSE register. Write '1' to clear.</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Status on whether PIN18 has met criteria set in PIN_CNF18.SENSE register. Write '1' to clear.</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Status on whether PIN19 has met criteria set in PIN_CNF19.SENSE register. Write '1' to clear.</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Status on whether PIN20 has met criteria set in PIN_CNF20.SENSE register. Write '1' to clear.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Status on whether PIN21 has met criteria set in PIN_CNF21.SENSE register. Write '1' to clear.</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Status on whether PIN22 has met criteria set in PIN_CNF22.SENSE register. Write '1' to clear.</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Status on whether PIN23 has met criteria set in PIN_CNF23.SENSE register. Write '1' to clear.</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Status on whether PIN24 has met criteria set in PIN_CNF24.SENSE register. Write '1' to clear.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Status on whether PIN25 has met criteria set in PIN_CNF25.SENSE register. Write '1' to clear.</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Status on whether PIN26 has met criteria set in PIN_CNF26.SENSE register. Write '1' to clear.</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Status on whether PIN27 has met criteria set in PIN_CNF27.SENSE register. Write '1' to clear.</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Status on whether PIN28 has met criteria set in PIN_CNF28.SENSE register. Write '1' to clear.</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Status on whether PIN29 has met criteria set in PIN_CNF29.SENSE register. Write '1' to clear.</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Status on whether PIN30 has met criteria set in PIN_CNF30.SENSE register. Write '1' to clear.</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Status on whether PIN31 has met criteria set in PIN_CNF31.SENSE register. Write '1' to clear.</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DETECTMODE</name>
+ <description>Select between default DETECT signal behaviour and LDETECT mode</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DETECTMODE</name>
+ <description>Select between default DETECT signal behaviour and LDETECT mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>DETECT directly connected to PIN DETECT signals</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LDETECT</name>
+ <description>Use the latched LDETECT behaviour</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>32</dim>
+ <dimIncrement>4</dimIncrement>
+ <name>PIN_CNF[%s]</name>
+ <description>Description collection[0]: Configuration of GPIO pins</description>
+ <addressOffset>0x700</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000002</resetValue>
+ <fields>
+ <field>
+ <name>DIR</name>
+ <description>Pin direction. Same physical register as DIR register</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Configure pin as an input pin</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Configure pin as an output pin</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>INPUT</name>
+ <description>Connect or disconnect input buffer</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Connect</name>
+ <description>Connect input buffer</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Disconnect</name>
+ <description>Disconnect input buffer</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PULL</name>
+ <description>Pull configuration</description>
+ <lsb>2</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>No pull</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pulldown</name>
+ <description>Pull down on pin</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pullup</name>
+ <description>Pull up on pin</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DRIVE</name>
+ <description>Drive configuration</description>
+ <lsb>8</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>S0S1</name>
+ <description>Standard '0', standard '1'</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>H0S1</name>
+ <description>High drive '0', standard '1'</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>S0H1</name>
+ <description>Standard '0', high drive '1'</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>H0H1</name>
+ <description>High drive '0', high 'drive '1''</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>D0S1</name>
+ <description>Disconnect '0' standard '1' (normally used for wired-or connections)</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>D0H1</name>
+ <description>Disconnect '0', high drive '1' (normally used for wired-or connections)</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>S0D1</name>
+ <description>Standard '0'. disconnect '1' (normally used for wired-and connections)</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>H0D1</name>
+ <description>High drive '0', disconnect '1' (normally used for wired-and connections)</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SENSE</name>
+ <description>Pin sensing mechanism</description>
+ <lsb>16</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Sense for high level</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Sense for low level</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ </peripherals>
+</device> \ No newline at end of file
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810_bitfields.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810_bitfields.h
new file mode 100644
index 0000000..4036549
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810_bitfields.h
@@ -0,0 +1,10257 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef __NRF52810_BITS_H
+#define __NRF52810_BITS_H
+
+/*lint ++flb "Enter library region" */
+
+/* Peripheral: AAR */
+/* Description: Accelerated Address Resolver */
+
+/* Register: AAR_TASKS_START */
+/* Description: Start resolving addresses based on IRKs specified in the IRK data structure */
+
+/* Bit 0 : */
+#define AAR_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define AAR_TASKS_START_TASKS_START_Msk (0x1UL << AAR_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: AAR_TASKS_STOP */
+/* Description: Stop resolving addresses */
+
+/* Bit 0 : */
+#define AAR_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define AAR_TASKS_STOP_TASKS_STOP_Msk (0x1UL << AAR_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: AAR_EVENTS_END */
+/* Description: Address resolution procedure complete */
+
+/* Bit 0 : */
+#define AAR_EVENTS_END_EVENTS_END_Pos (0UL) /*!< Position of EVENTS_END field. */
+#define AAR_EVENTS_END_EVENTS_END_Msk (0x1UL << AAR_EVENTS_END_EVENTS_END_Pos) /*!< Bit mask of EVENTS_END field. */
+
+/* Register: AAR_EVENTS_RESOLVED */
+/* Description: Address resolved */
+
+/* Bit 0 : */
+#define AAR_EVENTS_RESOLVED_EVENTS_RESOLVED_Pos (0UL) /*!< Position of EVENTS_RESOLVED field. */
+#define AAR_EVENTS_RESOLVED_EVENTS_RESOLVED_Msk (0x1UL << AAR_EVENTS_RESOLVED_EVENTS_RESOLVED_Pos) /*!< Bit mask of EVENTS_RESOLVED field. */
+
+/* Register: AAR_EVENTS_NOTRESOLVED */
+/* Description: Address not resolved */
+
+/* Bit 0 : */
+#define AAR_EVENTS_NOTRESOLVED_EVENTS_NOTRESOLVED_Pos (0UL) /*!< Position of EVENTS_NOTRESOLVED field. */
+#define AAR_EVENTS_NOTRESOLVED_EVENTS_NOTRESOLVED_Msk (0x1UL << AAR_EVENTS_NOTRESOLVED_EVENTS_NOTRESOLVED_Pos) /*!< Bit mask of EVENTS_NOTRESOLVED field. */
+
+/* Register: AAR_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 2 : Write '1' to Enable interrupt for NOTRESOLVED event */
+#define AAR_INTENSET_NOTRESOLVED_Pos (2UL) /*!< Position of NOTRESOLVED field. */
+#define AAR_INTENSET_NOTRESOLVED_Msk (0x1UL << AAR_INTENSET_NOTRESOLVED_Pos) /*!< Bit mask of NOTRESOLVED field. */
+#define AAR_INTENSET_NOTRESOLVED_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENSET_NOTRESOLVED_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENSET_NOTRESOLVED_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for RESOLVED event */
+#define AAR_INTENSET_RESOLVED_Pos (1UL) /*!< Position of RESOLVED field. */
+#define AAR_INTENSET_RESOLVED_Msk (0x1UL << AAR_INTENSET_RESOLVED_Pos) /*!< Bit mask of RESOLVED field. */
+#define AAR_INTENSET_RESOLVED_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENSET_RESOLVED_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENSET_RESOLVED_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for END event */
+#define AAR_INTENSET_END_Pos (0UL) /*!< Position of END field. */
+#define AAR_INTENSET_END_Msk (0x1UL << AAR_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define AAR_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Register: AAR_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 2 : Write '1' to Disable interrupt for NOTRESOLVED event */
+#define AAR_INTENCLR_NOTRESOLVED_Pos (2UL) /*!< Position of NOTRESOLVED field. */
+#define AAR_INTENCLR_NOTRESOLVED_Msk (0x1UL << AAR_INTENCLR_NOTRESOLVED_Pos) /*!< Bit mask of NOTRESOLVED field. */
+#define AAR_INTENCLR_NOTRESOLVED_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENCLR_NOTRESOLVED_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENCLR_NOTRESOLVED_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for RESOLVED event */
+#define AAR_INTENCLR_RESOLVED_Pos (1UL) /*!< Position of RESOLVED field. */
+#define AAR_INTENCLR_RESOLVED_Msk (0x1UL << AAR_INTENCLR_RESOLVED_Pos) /*!< Bit mask of RESOLVED field. */
+#define AAR_INTENCLR_RESOLVED_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENCLR_RESOLVED_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENCLR_RESOLVED_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for END event */
+#define AAR_INTENCLR_END_Pos (0UL) /*!< Position of END field. */
+#define AAR_INTENCLR_END_Msk (0x1UL << AAR_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define AAR_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Register: AAR_STATUS */
+/* Description: Resolution status */
+
+/* Bits 3..0 : The IRK that was used last time an address was resolved */
+#define AAR_STATUS_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define AAR_STATUS_STATUS_Msk (0xFUL << AAR_STATUS_STATUS_Pos) /*!< Bit mask of STATUS field. */
+
+/* Register: AAR_ENABLE */
+/* Description: Enable AAR */
+
+/* Bits 1..0 : Enable or disable AAR */
+#define AAR_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define AAR_ENABLE_ENABLE_Msk (0x3UL << AAR_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define AAR_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define AAR_ENABLE_ENABLE_Enabled (3UL) /*!< Enable */
+
+/* Register: AAR_NIRK */
+/* Description: Number of IRKs */
+
+/* Bits 4..0 : Number of Identity root keys available in the IRK data structure */
+#define AAR_NIRK_NIRK_Pos (0UL) /*!< Position of NIRK field. */
+#define AAR_NIRK_NIRK_Msk (0x1FUL << AAR_NIRK_NIRK_Pos) /*!< Bit mask of NIRK field. */
+
+/* Register: AAR_IRKPTR */
+/* Description: Pointer to IRK data structure */
+
+/* Bits 31..0 : Pointer to the IRK data structure */
+#define AAR_IRKPTR_IRKPTR_Pos (0UL) /*!< Position of IRKPTR field. */
+#define AAR_IRKPTR_IRKPTR_Msk (0xFFFFFFFFUL << AAR_IRKPTR_IRKPTR_Pos) /*!< Bit mask of IRKPTR field. */
+
+/* Register: AAR_ADDRPTR */
+/* Description: Pointer to the resolvable address */
+
+/* Bits 31..0 : Pointer to the resolvable address (6-bytes) */
+#define AAR_ADDRPTR_ADDRPTR_Pos (0UL) /*!< Position of ADDRPTR field. */
+#define AAR_ADDRPTR_ADDRPTR_Msk (0xFFFFFFFFUL << AAR_ADDRPTR_ADDRPTR_Pos) /*!< Bit mask of ADDRPTR field. */
+
+/* Register: AAR_SCRATCHPTR */
+/* Description: Pointer to data area used for temporary storage */
+
+/* Bits 31..0 : Pointer to a scratch data area used for temporary storage during resolution.A space of minimum 3 bytes must be reserved. */
+#define AAR_SCRATCHPTR_SCRATCHPTR_Pos (0UL) /*!< Position of SCRATCHPTR field. */
+#define AAR_SCRATCHPTR_SCRATCHPTR_Msk (0xFFFFFFFFUL << AAR_SCRATCHPTR_SCRATCHPTR_Pos) /*!< Bit mask of SCRATCHPTR field. */
+
+
+/* Peripheral: BPROT */
+/* Description: Block Protect */
+
+/* Register: BPROT_CONFIG0 */
+/* Description: Block protect configuration register 0 */
+
+/* Bit 31 : Enable protection for region 31. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION31_Pos (31UL) /*!< Position of REGION31 field. */
+#define BPROT_CONFIG0_REGION31_Msk (0x1UL << BPROT_CONFIG0_REGION31_Pos) /*!< Bit mask of REGION31 field. */
+#define BPROT_CONFIG0_REGION31_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION31_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 30 : Enable protection for region 30. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION30_Pos (30UL) /*!< Position of REGION30 field. */
+#define BPROT_CONFIG0_REGION30_Msk (0x1UL << BPROT_CONFIG0_REGION30_Pos) /*!< Bit mask of REGION30 field. */
+#define BPROT_CONFIG0_REGION30_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION30_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 29 : Enable protection for region 29. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION29_Pos (29UL) /*!< Position of REGION29 field. */
+#define BPROT_CONFIG0_REGION29_Msk (0x1UL << BPROT_CONFIG0_REGION29_Pos) /*!< Bit mask of REGION29 field. */
+#define BPROT_CONFIG0_REGION29_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION29_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 28 : Enable protection for region 28. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION28_Pos (28UL) /*!< Position of REGION28 field. */
+#define BPROT_CONFIG0_REGION28_Msk (0x1UL << BPROT_CONFIG0_REGION28_Pos) /*!< Bit mask of REGION28 field. */
+#define BPROT_CONFIG0_REGION28_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION28_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 27 : Enable protection for region 27. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION27_Pos (27UL) /*!< Position of REGION27 field. */
+#define BPROT_CONFIG0_REGION27_Msk (0x1UL << BPROT_CONFIG0_REGION27_Pos) /*!< Bit mask of REGION27 field. */
+#define BPROT_CONFIG0_REGION27_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION27_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 26 : Enable protection for region 26. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION26_Pos (26UL) /*!< Position of REGION26 field. */
+#define BPROT_CONFIG0_REGION26_Msk (0x1UL << BPROT_CONFIG0_REGION26_Pos) /*!< Bit mask of REGION26 field. */
+#define BPROT_CONFIG0_REGION26_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION26_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 25 : Enable protection for region 25. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION25_Pos (25UL) /*!< Position of REGION25 field. */
+#define BPROT_CONFIG0_REGION25_Msk (0x1UL << BPROT_CONFIG0_REGION25_Pos) /*!< Bit mask of REGION25 field. */
+#define BPROT_CONFIG0_REGION25_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION25_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 24 : Enable protection for region 24. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION24_Pos (24UL) /*!< Position of REGION24 field. */
+#define BPROT_CONFIG0_REGION24_Msk (0x1UL << BPROT_CONFIG0_REGION24_Pos) /*!< Bit mask of REGION24 field. */
+#define BPROT_CONFIG0_REGION24_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION24_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 23 : Enable protection for region 23. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION23_Pos (23UL) /*!< Position of REGION23 field. */
+#define BPROT_CONFIG0_REGION23_Msk (0x1UL << BPROT_CONFIG0_REGION23_Pos) /*!< Bit mask of REGION23 field. */
+#define BPROT_CONFIG0_REGION23_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION23_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 22 : Enable protection for region 22. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION22_Pos (22UL) /*!< Position of REGION22 field. */
+#define BPROT_CONFIG0_REGION22_Msk (0x1UL << BPROT_CONFIG0_REGION22_Pos) /*!< Bit mask of REGION22 field. */
+#define BPROT_CONFIG0_REGION22_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION22_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 21 : Enable protection for region 21. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION21_Pos (21UL) /*!< Position of REGION21 field. */
+#define BPROT_CONFIG0_REGION21_Msk (0x1UL << BPROT_CONFIG0_REGION21_Pos) /*!< Bit mask of REGION21 field. */
+#define BPROT_CONFIG0_REGION21_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION21_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 20 : Enable protection for region 20. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION20_Pos (20UL) /*!< Position of REGION20 field. */
+#define BPROT_CONFIG0_REGION20_Msk (0x1UL << BPROT_CONFIG0_REGION20_Pos) /*!< Bit mask of REGION20 field. */
+#define BPROT_CONFIG0_REGION20_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION20_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 19 : Enable protection for region 19. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION19_Pos (19UL) /*!< Position of REGION19 field. */
+#define BPROT_CONFIG0_REGION19_Msk (0x1UL << BPROT_CONFIG0_REGION19_Pos) /*!< Bit mask of REGION19 field. */
+#define BPROT_CONFIG0_REGION19_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION19_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 18 : Enable protection for region 18. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION18_Pos (18UL) /*!< Position of REGION18 field. */
+#define BPROT_CONFIG0_REGION18_Msk (0x1UL << BPROT_CONFIG0_REGION18_Pos) /*!< Bit mask of REGION18 field. */
+#define BPROT_CONFIG0_REGION18_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION18_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 17 : Enable protection for region 17. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION17_Pos (17UL) /*!< Position of REGION17 field. */
+#define BPROT_CONFIG0_REGION17_Msk (0x1UL << BPROT_CONFIG0_REGION17_Pos) /*!< Bit mask of REGION17 field. */
+#define BPROT_CONFIG0_REGION17_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION17_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 16 : Enable protection for region 16. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION16_Pos (16UL) /*!< Position of REGION16 field. */
+#define BPROT_CONFIG0_REGION16_Msk (0x1UL << BPROT_CONFIG0_REGION16_Pos) /*!< Bit mask of REGION16 field. */
+#define BPROT_CONFIG0_REGION16_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION16_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 15 : Enable protection for region 15. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION15_Pos (15UL) /*!< Position of REGION15 field. */
+#define BPROT_CONFIG0_REGION15_Msk (0x1UL << BPROT_CONFIG0_REGION15_Pos) /*!< Bit mask of REGION15 field. */
+#define BPROT_CONFIG0_REGION15_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION15_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 14 : Enable protection for region 14. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION14_Pos (14UL) /*!< Position of REGION14 field. */
+#define BPROT_CONFIG0_REGION14_Msk (0x1UL << BPROT_CONFIG0_REGION14_Pos) /*!< Bit mask of REGION14 field. */
+#define BPROT_CONFIG0_REGION14_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION14_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 13 : Enable protection for region 13. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION13_Pos (13UL) /*!< Position of REGION13 field. */
+#define BPROT_CONFIG0_REGION13_Msk (0x1UL << BPROT_CONFIG0_REGION13_Pos) /*!< Bit mask of REGION13 field. */
+#define BPROT_CONFIG0_REGION13_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION13_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 12 : Enable protection for region 12. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION12_Pos (12UL) /*!< Position of REGION12 field. */
+#define BPROT_CONFIG0_REGION12_Msk (0x1UL << BPROT_CONFIG0_REGION12_Pos) /*!< Bit mask of REGION12 field. */
+#define BPROT_CONFIG0_REGION12_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION12_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 11 : Enable protection for region 11. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION11_Pos (11UL) /*!< Position of REGION11 field. */
+#define BPROT_CONFIG0_REGION11_Msk (0x1UL << BPROT_CONFIG0_REGION11_Pos) /*!< Bit mask of REGION11 field. */
+#define BPROT_CONFIG0_REGION11_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION11_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 10 : Enable protection for region 10. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION10_Pos (10UL) /*!< Position of REGION10 field. */
+#define BPROT_CONFIG0_REGION10_Msk (0x1UL << BPROT_CONFIG0_REGION10_Pos) /*!< Bit mask of REGION10 field. */
+#define BPROT_CONFIG0_REGION10_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION10_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 9 : Enable protection for region 9. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION9_Pos (9UL) /*!< Position of REGION9 field. */
+#define BPROT_CONFIG0_REGION9_Msk (0x1UL << BPROT_CONFIG0_REGION9_Pos) /*!< Bit mask of REGION9 field. */
+#define BPROT_CONFIG0_REGION9_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION9_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 8 : Enable protection for region 8. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION8_Pos (8UL) /*!< Position of REGION8 field. */
+#define BPROT_CONFIG0_REGION8_Msk (0x1UL << BPROT_CONFIG0_REGION8_Pos) /*!< Bit mask of REGION8 field. */
+#define BPROT_CONFIG0_REGION8_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION8_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 7 : Enable protection for region 7. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION7_Pos (7UL) /*!< Position of REGION7 field. */
+#define BPROT_CONFIG0_REGION7_Msk (0x1UL << BPROT_CONFIG0_REGION7_Pos) /*!< Bit mask of REGION7 field. */
+#define BPROT_CONFIG0_REGION7_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION7_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 6 : Enable protection for region 6. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION6_Pos (6UL) /*!< Position of REGION6 field. */
+#define BPROT_CONFIG0_REGION6_Msk (0x1UL << BPROT_CONFIG0_REGION6_Pos) /*!< Bit mask of REGION6 field. */
+#define BPROT_CONFIG0_REGION6_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION6_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 5 : Enable protection for region 5. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION5_Pos (5UL) /*!< Position of REGION5 field. */
+#define BPROT_CONFIG0_REGION5_Msk (0x1UL << BPROT_CONFIG0_REGION5_Pos) /*!< Bit mask of REGION5 field. */
+#define BPROT_CONFIG0_REGION5_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION5_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 4 : Enable protection for region 4. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION4_Pos (4UL) /*!< Position of REGION4 field. */
+#define BPROT_CONFIG0_REGION4_Msk (0x1UL << BPROT_CONFIG0_REGION4_Pos) /*!< Bit mask of REGION4 field. */
+#define BPROT_CONFIG0_REGION4_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION4_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 3 : Enable protection for region 3. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION3_Pos (3UL) /*!< Position of REGION3 field. */
+#define BPROT_CONFIG0_REGION3_Msk (0x1UL << BPROT_CONFIG0_REGION3_Pos) /*!< Bit mask of REGION3 field. */
+#define BPROT_CONFIG0_REGION3_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION3_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 2 : Enable protection for region 2. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION2_Pos (2UL) /*!< Position of REGION2 field. */
+#define BPROT_CONFIG0_REGION2_Msk (0x1UL << BPROT_CONFIG0_REGION2_Pos) /*!< Bit mask of REGION2 field. */
+#define BPROT_CONFIG0_REGION2_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION2_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 1 : Enable protection for region 1. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION1_Pos (1UL) /*!< Position of REGION1 field. */
+#define BPROT_CONFIG0_REGION1_Msk (0x1UL << BPROT_CONFIG0_REGION1_Pos) /*!< Bit mask of REGION1 field. */
+#define BPROT_CONFIG0_REGION1_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION1_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 0 : Enable protection for region 0. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION0_Pos (0UL) /*!< Position of REGION0 field. */
+#define BPROT_CONFIG0_REGION0_Msk (0x1UL << BPROT_CONFIG0_REGION0_Pos) /*!< Bit mask of REGION0 field. */
+#define BPROT_CONFIG0_REGION0_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION0_Enabled (1UL) /*!< Protection enabled */
+
+/* Register: BPROT_CONFIG1 */
+/* Description: Block protect configuration register 1 */
+
+/* Bit 15 : Enable protection for region 47. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION47_Pos (15UL) /*!< Position of REGION47 field. */
+#define BPROT_CONFIG1_REGION47_Msk (0x1UL << BPROT_CONFIG1_REGION47_Pos) /*!< Bit mask of REGION47 field. */
+#define BPROT_CONFIG1_REGION47_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION47_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 14 : Enable protection for region 46. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION46_Pos (14UL) /*!< Position of REGION46 field. */
+#define BPROT_CONFIG1_REGION46_Msk (0x1UL << BPROT_CONFIG1_REGION46_Pos) /*!< Bit mask of REGION46 field. */
+#define BPROT_CONFIG1_REGION46_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION46_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 13 : Enable protection for region 45. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION45_Pos (13UL) /*!< Position of REGION45 field. */
+#define BPROT_CONFIG1_REGION45_Msk (0x1UL << BPROT_CONFIG1_REGION45_Pos) /*!< Bit mask of REGION45 field. */
+#define BPROT_CONFIG1_REGION45_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION45_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 12 : Enable protection for region 44. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION44_Pos (12UL) /*!< Position of REGION44 field. */
+#define BPROT_CONFIG1_REGION44_Msk (0x1UL << BPROT_CONFIG1_REGION44_Pos) /*!< Bit mask of REGION44 field. */
+#define BPROT_CONFIG1_REGION44_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION44_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 11 : Enable protection for region 43. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION43_Pos (11UL) /*!< Position of REGION43 field. */
+#define BPROT_CONFIG1_REGION43_Msk (0x1UL << BPROT_CONFIG1_REGION43_Pos) /*!< Bit mask of REGION43 field. */
+#define BPROT_CONFIG1_REGION43_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION43_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 10 : Enable protection for region 42. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION42_Pos (10UL) /*!< Position of REGION42 field. */
+#define BPROT_CONFIG1_REGION42_Msk (0x1UL << BPROT_CONFIG1_REGION42_Pos) /*!< Bit mask of REGION42 field. */
+#define BPROT_CONFIG1_REGION42_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION42_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 9 : Enable protection for region 41. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION41_Pos (9UL) /*!< Position of REGION41 field. */
+#define BPROT_CONFIG1_REGION41_Msk (0x1UL << BPROT_CONFIG1_REGION41_Pos) /*!< Bit mask of REGION41 field. */
+#define BPROT_CONFIG1_REGION41_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION41_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 8 : Enable protection for region 40. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION40_Pos (8UL) /*!< Position of REGION40 field. */
+#define BPROT_CONFIG1_REGION40_Msk (0x1UL << BPROT_CONFIG1_REGION40_Pos) /*!< Bit mask of REGION40 field. */
+#define BPROT_CONFIG1_REGION40_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION40_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 7 : Enable protection for region 39. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION39_Pos (7UL) /*!< Position of REGION39 field. */
+#define BPROT_CONFIG1_REGION39_Msk (0x1UL << BPROT_CONFIG1_REGION39_Pos) /*!< Bit mask of REGION39 field. */
+#define BPROT_CONFIG1_REGION39_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION39_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 6 : Enable protection for region 38. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION38_Pos (6UL) /*!< Position of REGION38 field. */
+#define BPROT_CONFIG1_REGION38_Msk (0x1UL << BPROT_CONFIG1_REGION38_Pos) /*!< Bit mask of REGION38 field. */
+#define BPROT_CONFIG1_REGION38_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION38_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 5 : Enable protection for region 37. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION37_Pos (5UL) /*!< Position of REGION37 field. */
+#define BPROT_CONFIG1_REGION37_Msk (0x1UL << BPROT_CONFIG1_REGION37_Pos) /*!< Bit mask of REGION37 field. */
+#define BPROT_CONFIG1_REGION37_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION37_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 4 : Enable protection for region 36. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION36_Pos (4UL) /*!< Position of REGION36 field. */
+#define BPROT_CONFIG1_REGION36_Msk (0x1UL << BPROT_CONFIG1_REGION36_Pos) /*!< Bit mask of REGION36 field. */
+#define BPROT_CONFIG1_REGION36_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION36_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 3 : Enable protection for region 35. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION35_Pos (3UL) /*!< Position of REGION35 field. */
+#define BPROT_CONFIG1_REGION35_Msk (0x1UL << BPROT_CONFIG1_REGION35_Pos) /*!< Bit mask of REGION35 field. */
+#define BPROT_CONFIG1_REGION35_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION35_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 2 : Enable protection for region 34. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION34_Pos (2UL) /*!< Position of REGION34 field. */
+#define BPROT_CONFIG1_REGION34_Msk (0x1UL << BPROT_CONFIG1_REGION34_Pos) /*!< Bit mask of REGION34 field. */
+#define BPROT_CONFIG1_REGION34_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION34_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 1 : Enable protection for region 33. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION33_Pos (1UL) /*!< Position of REGION33 field. */
+#define BPROT_CONFIG1_REGION33_Msk (0x1UL << BPROT_CONFIG1_REGION33_Pos) /*!< Bit mask of REGION33 field. */
+#define BPROT_CONFIG1_REGION33_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION33_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 0 : Enable protection for region 32. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION32_Pos (0UL) /*!< Position of REGION32 field. */
+#define BPROT_CONFIG1_REGION32_Msk (0x1UL << BPROT_CONFIG1_REGION32_Pos) /*!< Bit mask of REGION32 field. */
+#define BPROT_CONFIG1_REGION32_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION32_Enabled (1UL) /*!< Protection enabled */
+
+/* Register: BPROT_DISABLEINDEBUG */
+/* Description: Disable protection mechanism in debug mode */
+
+/* Bit 0 : Disable the protection mechanism for NVM regions while in debug mode. This register will only disable the protection mechanism if the device is in debug mode. */
+#define BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Pos (0UL) /*!< Position of DISABLEINDEBUG field. */
+#define BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Msk (0x1UL << BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Pos) /*!< Bit mask of DISABLEINDEBUG field. */
+#define BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Enabled (0UL) /*!< Enabled in debug */
+#define BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Disabled (1UL) /*!< Disabled in debug */
+
+
+/* Peripheral: CCM */
+/* Description: AES CCM Mode Encryption */
+
+/* Register: CCM_TASKS_KSGEN */
+/* Description: Start generation of key-stream. This operation will stop by itself when completed. */
+
+/* Bit 0 : */
+#define CCM_TASKS_KSGEN_TASKS_KSGEN_Pos (0UL) /*!< Position of TASKS_KSGEN field. */
+#define CCM_TASKS_KSGEN_TASKS_KSGEN_Msk (0x1UL << CCM_TASKS_KSGEN_TASKS_KSGEN_Pos) /*!< Bit mask of TASKS_KSGEN field. */
+
+/* Register: CCM_TASKS_CRYPT */
+/* Description: Start encryption/decryption. This operation will stop by itself when completed. */
+
+/* Bit 0 : */
+#define CCM_TASKS_CRYPT_TASKS_CRYPT_Pos (0UL) /*!< Position of TASKS_CRYPT field. */
+#define CCM_TASKS_CRYPT_TASKS_CRYPT_Msk (0x1UL << CCM_TASKS_CRYPT_TASKS_CRYPT_Pos) /*!< Bit mask of TASKS_CRYPT field. */
+
+/* Register: CCM_TASKS_STOP */
+/* Description: Stop encryption/decryption */
+
+/* Bit 0 : */
+#define CCM_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define CCM_TASKS_STOP_TASKS_STOP_Msk (0x1UL << CCM_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: CCM_TASKS_RATEOVERRIDE */
+/* Description: Override DATARATE setting in MODE register with the contents of the RATEOVERRIDE register for any ongoing encryption/decryption */
+
+/* Bit 0 : */
+#define CCM_TASKS_RATEOVERRIDE_TASKS_RATEOVERRIDE_Pos (0UL) /*!< Position of TASKS_RATEOVERRIDE field. */
+#define CCM_TASKS_RATEOVERRIDE_TASKS_RATEOVERRIDE_Msk (0x1UL << CCM_TASKS_RATEOVERRIDE_TASKS_RATEOVERRIDE_Pos) /*!< Bit mask of TASKS_RATEOVERRIDE field. */
+
+/* Register: CCM_EVENTS_ENDKSGEN */
+/* Description: Key-stream generation complete */
+
+/* Bit 0 : */
+#define CCM_EVENTS_ENDKSGEN_EVENTS_ENDKSGEN_Pos (0UL) /*!< Position of EVENTS_ENDKSGEN field. */
+#define CCM_EVENTS_ENDKSGEN_EVENTS_ENDKSGEN_Msk (0x1UL << CCM_EVENTS_ENDKSGEN_EVENTS_ENDKSGEN_Pos) /*!< Bit mask of EVENTS_ENDKSGEN field. */
+
+/* Register: CCM_EVENTS_ENDCRYPT */
+/* Description: Encrypt/decrypt complete */
+
+/* Bit 0 : */
+#define CCM_EVENTS_ENDCRYPT_EVENTS_ENDCRYPT_Pos (0UL) /*!< Position of EVENTS_ENDCRYPT field. */
+#define CCM_EVENTS_ENDCRYPT_EVENTS_ENDCRYPT_Msk (0x1UL << CCM_EVENTS_ENDCRYPT_EVENTS_ENDCRYPT_Pos) /*!< Bit mask of EVENTS_ENDCRYPT field. */
+
+/* Register: CCM_EVENTS_ERROR */
+/* Description: Deprecated register - CCM error event */
+
+/* Bit 0 : */
+#define CCM_EVENTS_ERROR_EVENTS_ERROR_Pos (0UL) /*!< Position of EVENTS_ERROR field. */
+#define CCM_EVENTS_ERROR_EVENTS_ERROR_Msk (0x1UL << CCM_EVENTS_ERROR_EVENTS_ERROR_Pos) /*!< Bit mask of EVENTS_ERROR field. */
+
+/* Register: CCM_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 0 : Shortcut between ENDKSGEN event and CRYPT task */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Pos (0UL) /*!< Position of ENDKSGEN_CRYPT field. */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Msk (0x1UL << CCM_SHORTS_ENDKSGEN_CRYPT_Pos) /*!< Bit mask of ENDKSGEN_CRYPT field. */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Disabled (0UL) /*!< Disable shortcut */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: CCM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 2 : Write '1' to Enable interrupt for ERROR event */
+#define CCM_INTENSET_ERROR_Pos (2UL) /*!< Position of ERROR field. */
+#define CCM_INTENSET_ERROR_Msk (0x1UL << CCM_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define CCM_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for ENDCRYPT event */
+#define CCM_INTENSET_ENDCRYPT_Pos (1UL) /*!< Position of ENDCRYPT field. */
+#define CCM_INTENSET_ENDCRYPT_Msk (0x1UL << CCM_INTENSET_ENDCRYPT_Pos) /*!< Bit mask of ENDCRYPT field. */
+#define CCM_INTENSET_ENDCRYPT_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENSET_ENDCRYPT_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENSET_ENDCRYPT_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for ENDKSGEN event */
+#define CCM_INTENSET_ENDKSGEN_Pos (0UL) /*!< Position of ENDKSGEN field. */
+#define CCM_INTENSET_ENDKSGEN_Msk (0x1UL << CCM_INTENSET_ENDKSGEN_Pos) /*!< Bit mask of ENDKSGEN field. */
+#define CCM_INTENSET_ENDKSGEN_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENSET_ENDKSGEN_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENSET_ENDKSGEN_Set (1UL) /*!< Enable */
+
+/* Register: CCM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 2 : Write '1' to Disable interrupt for ERROR event */
+#define CCM_INTENCLR_ERROR_Pos (2UL) /*!< Position of ERROR field. */
+#define CCM_INTENCLR_ERROR_Msk (0x1UL << CCM_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define CCM_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for ENDCRYPT event */
+#define CCM_INTENCLR_ENDCRYPT_Pos (1UL) /*!< Position of ENDCRYPT field. */
+#define CCM_INTENCLR_ENDCRYPT_Msk (0x1UL << CCM_INTENCLR_ENDCRYPT_Pos) /*!< Bit mask of ENDCRYPT field. */
+#define CCM_INTENCLR_ENDCRYPT_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENCLR_ENDCRYPT_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENCLR_ENDCRYPT_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for ENDKSGEN event */
+#define CCM_INTENCLR_ENDKSGEN_Pos (0UL) /*!< Position of ENDKSGEN field. */
+#define CCM_INTENCLR_ENDKSGEN_Msk (0x1UL << CCM_INTENCLR_ENDKSGEN_Pos) /*!< Bit mask of ENDKSGEN field. */
+#define CCM_INTENCLR_ENDKSGEN_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENCLR_ENDKSGEN_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENCLR_ENDKSGEN_Clear (1UL) /*!< Disable */
+
+/* Register: CCM_MICSTATUS */
+/* Description: MIC check result */
+
+/* Bit 0 : The result of the MIC check performed during the previous decryption operation */
+#define CCM_MICSTATUS_MICSTATUS_Pos (0UL) /*!< Position of MICSTATUS field. */
+#define CCM_MICSTATUS_MICSTATUS_Msk (0x1UL << CCM_MICSTATUS_MICSTATUS_Pos) /*!< Bit mask of MICSTATUS field. */
+#define CCM_MICSTATUS_MICSTATUS_CheckFailed (0UL) /*!< MIC check failed */
+#define CCM_MICSTATUS_MICSTATUS_CheckPassed (1UL) /*!< MIC check passed */
+
+/* Register: CCM_ENABLE */
+/* Description: Enable */
+
+/* Bits 1..0 : Enable or disable CCM */
+#define CCM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define CCM_ENABLE_ENABLE_Msk (0x3UL << CCM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define CCM_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define CCM_ENABLE_ENABLE_Enabled (2UL) /*!< Enable */
+
+/* Register: CCM_MODE */
+/* Description: Operation mode */
+
+/* Bit 24 : Packet length configuration */
+#define CCM_MODE_LENGTH_Pos (24UL) /*!< Position of LENGTH field. */
+#define CCM_MODE_LENGTH_Msk (0x1UL << CCM_MODE_LENGTH_Pos) /*!< Bit mask of LENGTH field. */
+#define CCM_MODE_LENGTH_Default (0UL) /*!< Default length. Effective length of LENGTH field in encrypted/decrypted packet is 5 bits. A key-stream for packet payloads up to 27 bytes will be generated. */
+#define CCM_MODE_LENGTH_Extended (1UL) /*!< Extended length. Effective length of LENGTH field in encrypted/decrypted packet is 8 bits. A key-stream for packet payloads up to MAXPACKETSIZE bytes will be generated. */
+
+/* Bits 17..16 : Radio data rate that the CCM shall run synchronous with */
+#define CCM_MODE_DATARATE_Pos (16UL) /*!< Position of DATARATE field. */
+#define CCM_MODE_DATARATE_Msk (0x3UL << CCM_MODE_DATARATE_Pos) /*!< Bit mask of DATARATE field. */
+#define CCM_MODE_DATARATE_1Mbit (0UL) /*!< 1 Mbps */
+#define CCM_MODE_DATARATE_2Mbit (1UL) /*!< 2 Mbps */
+#define CCM_MODE_DATARATE_125Kbps (2UL) /*!< 125 Kbps */
+#define CCM_MODE_DATARATE_500Kbps (3UL) /*!< 500 Kbps */
+
+/* Bit 0 : The mode of operation to be used. The settings in this register apply whenever either the KSGEN or CRYPT tasks are triggered. */
+#define CCM_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define CCM_MODE_MODE_Msk (0x1UL << CCM_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define CCM_MODE_MODE_Encryption (0UL) /*!< AES CCM packet encryption mode */
+#define CCM_MODE_MODE_Decryption (1UL) /*!< AES CCM packet decryption mode */
+
+/* Register: CCM_CNFPTR */
+/* Description: Pointer to data structure holding AES key and NONCE vector */
+
+/* Bits 31..0 : Pointer to the data structure holding the AES key and the CCM NONCE vector (see Table 1 CCM data structure overview) */
+#define CCM_CNFPTR_CNFPTR_Pos (0UL) /*!< Position of CNFPTR field. */
+#define CCM_CNFPTR_CNFPTR_Msk (0xFFFFFFFFUL << CCM_CNFPTR_CNFPTR_Pos) /*!< Bit mask of CNFPTR field. */
+
+/* Register: CCM_INPTR */
+/* Description: Input pointer */
+
+/* Bits 31..0 : Input pointer */
+#define CCM_INPTR_INPTR_Pos (0UL) /*!< Position of INPTR field. */
+#define CCM_INPTR_INPTR_Msk (0xFFFFFFFFUL << CCM_INPTR_INPTR_Pos) /*!< Bit mask of INPTR field. */
+
+/* Register: CCM_OUTPTR */
+/* Description: Output pointer */
+
+/* Bits 31..0 : Output pointer */
+#define CCM_OUTPTR_OUTPTR_Pos (0UL) /*!< Position of OUTPTR field. */
+#define CCM_OUTPTR_OUTPTR_Msk (0xFFFFFFFFUL << CCM_OUTPTR_OUTPTR_Pos) /*!< Bit mask of OUTPTR field. */
+
+/* Register: CCM_SCRATCHPTR */
+/* Description: Pointer to data area used for temporary storage */
+
+/* Bits 31..0 : Pointer to a scratch data area used for temporary storage during key-stream generation, MIC generation and encryption/decryption. */
+#define CCM_SCRATCHPTR_SCRATCHPTR_Pos (0UL) /*!< Position of SCRATCHPTR field. */
+#define CCM_SCRATCHPTR_SCRATCHPTR_Msk (0xFFFFFFFFUL << CCM_SCRATCHPTR_SCRATCHPTR_Pos) /*!< Bit mask of SCRATCHPTR field. */
+
+/* Register: CCM_MAXPACKETSIZE */
+/* Description: Length of key-stream generated when MODE.LENGTH = Extended. */
+
+/* Bits 7..0 : Length of key-stream generated when MODE.LENGTH = Extended. This value must be greater or equal to the subsequent packet payload to be encrypted/decrypted. */
+#define CCM_MAXPACKETSIZE_MAXPACKETSIZE_Pos (0UL) /*!< Position of MAXPACKETSIZE field. */
+#define CCM_MAXPACKETSIZE_MAXPACKETSIZE_Msk (0xFFUL << CCM_MAXPACKETSIZE_MAXPACKETSIZE_Pos) /*!< Bit mask of MAXPACKETSIZE field. */
+
+/* Register: CCM_RATEOVERRIDE */
+/* Description: Data rate override setting. */
+
+/* Bits 1..0 : Data rate override setting. */
+#define CCM_RATEOVERRIDE_RATEOVERRIDE_Pos (0UL) /*!< Position of RATEOVERRIDE field. */
+#define CCM_RATEOVERRIDE_RATEOVERRIDE_Msk (0x3UL << CCM_RATEOVERRIDE_RATEOVERRIDE_Pos) /*!< Bit mask of RATEOVERRIDE field. */
+#define CCM_RATEOVERRIDE_RATEOVERRIDE_1Mbit (0UL) /*!< 1 Mbps */
+#define CCM_RATEOVERRIDE_RATEOVERRIDE_2Mbit (1UL) /*!< 2 Mbps */
+#define CCM_RATEOVERRIDE_RATEOVERRIDE_125Kbps (2UL) /*!< 125 Kbps */
+#define CCM_RATEOVERRIDE_RATEOVERRIDE_500Kbps (3UL) /*!< 500 Kbps */
+
+
+/* Peripheral: CLOCK */
+/* Description: Clock control */
+
+/* Register: CLOCK_TASKS_HFCLKSTART */
+/* Description: Start HFCLK crystal oscillator */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_HFCLKSTART_TASKS_HFCLKSTART_Pos (0UL) /*!< Position of TASKS_HFCLKSTART field. */
+#define CLOCK_TASKS_HFCLKSTART_TASKS_HFCLKSTART_Msk (0x1UL << CLOCK_TASKS_HFCLKSTART_TASKS_HFCLKSTART_Pos) /*!< Bit mask of TASKS_HFCLKSTART field. */
+
+/* Register: CLOCK_TASKS_HFCLKSTOP */
+/* Description: Stop HFCLK crystal oscillator */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_HFCLKSTOP_TASKS_HFCLKSTOP_Pos (0UL) /*!< Position of TASKS_HFCLKSTOP field. */
+#define CLOCK_TASKS_HFCLKSTOP_TASKS_HFCLKSTOP_Msk (0x1UL << CLOCK_TASKS_HFCLKSTOP_TASKS_HFCLKSTOP_Pos) /*!< Bit mask of TASKS_HFCLKSTOP field. */
+
+/* Register: CLOCK_TASKS_LFCLKSTART */
+/* Description: Start LFCLK source */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_LFCLKSTART_TASKS_LFCLKSTART_Pos (0UL) /*!< Position of TASKS_LFCLKSTART field. */
+#define CLOCK_TASKS_LFCLKSTART_TASKS_LFCLKSTART_Msk (0x1UL << CLOCK_TASKS_LFCLKSTART_TASKS_LFCLKSTART_Pos) /*!< Bit mask of TASKS_LFCLKSTART field. */
+
+/* Register: CLOCK_TASKS_LFCLKSTOP */
+/* Description: Stop LFCLK source */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_LFCLKSTOP_TASKS_LFCLKSTOP_Pos (0UL) /*!< Position of TASKS_LFCLKSTOP field. */
+#define CLOCK_TASKS_LFCLKSTOP_TASKS_LFCLKSTOP_Msk (0x1UL << CLOCK_TASKS_LFCLKSTOP_TASKS_LFCLKSTOP_Pos) /*!< Bit mask of TASKS_LFCLKSTOP field. */
+
+/* Register: CLOCK_TASKS_CAL */
+/* Description: Start calibration of LFRC oscillator */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_CAL_TASKS_CAL_Pos (0UL) /*!< Position of TASKS_CAL field. */
+#define CLOCK_TASKS_CAL_TASKS_CAL_Msk (0x1UL << CLOCK_TASKS_CAL_TASKS_CAL_Pos) /*!< Bit mask of TASKS_CAL field. */
+
+/* Register: CLOCK_TASKS_CTSTART */
+/* Description: Start calibration timer */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_CTSTART_TASKS_CTSTART_Pos (0UL) /*!< Position of TASKS_CTSTART field. */
+#define CLOCK_TASKS_CTSTART_TASKS_CTSTART_Msk (0x1UL << CLOCK_TASKS_CTSTART_TASKS_CTSTART_Pos) /*!< Bit mask of TASKS_CTSTART field. */
+
+/* Register: CLOCK_TASKS_CTSTOP */
+/* Description: Stop calibration timer */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_CTSTOP_TASKS_CTSTOP_Pos (0UL) /*!< Position of TASKS_CTSTOP field. */
+#define CLOCK_TASKS_CTSTOP_TASKS_CTSTOP_Msk (0x1UL << CLOCK_TASKS_CTSTOP_TASKS_CTSTOP_Pos) /*!< Bit mask of TASKS_CTSTOP field. */
+
+/* Register: CLOCK_EVENTS_HFCLKSTARTED */
+/* Description: HFCLK oscillator started */
+
+/* Bit 0 : */
+#define CLOCK_EVENTS_HFCLKSTARTED_EVENTS_HFCLKSTARTED_Pos (0UL) /*!< Position of EVENTS_HFCLKSTARTED field. */
+#define CLOCK_EVENTS_HFCLKSTARTED_EVENTS_HFCLKSTARTED_Msk (0x1UL << CLOCK_EVENTS_HFCLKSTARTED_EVENTS_HFCLKSTARTED_Pos) /*!< Bit mask of EVENTS_HFCLKSTARTED field. */
+
+/* Register: CLOCK_EVENTS_LFCLKSTARTED */
+/* Description: LFCLK started */
+
+/* Bit 0 : */
+#define CLOCK_EVENTS_LFCLKSTARTED_EVENTS_LFCLKSTARTED_Pos (0UL) /*!< Position of EVENTS_LFCLKSTARTED field. */
+#define CLOCK_EVENTS_LFCLKSTARTED_EVENTS_LFCLKSTARTED_Msk (0x1UL << CLOCK_EVENTS_LFCLKSTARTED_EVENTS_LFCLKSTARTED_Pos) /*!< Bit mask of EVENTS_LFCLKSTARTED field. */
+
+/* Register: CLOCK_EVENTS_DONE */
+/* Description: Calibration of LFCLK RC oscillator complete event */
+
+/* Bit 0 : */
+#define CLOCK_EVENTS_DONE_EVENTS_DONE_Pos (0UL) /*!< Position of EVENTS_DONE field. */
+#define CLOCK_EVENTS_DONE_EVENTS_DONE_Msk (0x1UL << CLOCK_EVENTS_DONE_EVENTS_DONE_Pos) /*!< Bit mask of EVENTS_DONE field. */
+
+/* Register: CLOCK_EVENTS_CTTO */
+/* Description: Calibration timer timeout */
+
+/* Bit 0 : */
+#define CLOCK_EVENTS_CTTO_EVENTS_CTTO_Pos (0UL) /*!< Position of EVENTS_CTTO field. */
+#define CLOCK_EVENTS_CTTO_EVENTS_CTTO_Msk (0x1UL << CLOCK_EVENTS_CTTO_EVENTS_CTTO_Pos) /*!< Bit mask of EVENTS_CTTO field. */
+
+/* Register: CLOCK_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 4 : Write '1' to Enable interrupt for CTTO event */
+#define CLOCK_INTENSET_CTTO_Pos (4UL) /*!< Position of CTTO field. */
+#define CLOCK_INTENSET_CTTO_Msk (0x1UL << CLOCK_INTENSET_CTTO_Pos) /*!< Bit mask of CTTO field. */
+#define CLOCK_INTENSET_CTTO_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_CTTO_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_CTTO_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for DONE event */
+#define CLOCK_INTENSET_DONE_Pos (3UL) /*!< Position of DONE field. */
+#define CLOCK_INTENSET_DONE_Msk (0x1UL << CLOCK_INTENSET_DONE_Pos) /*!< Bit mask of DONE field. */
+#define CLOCK_INTENSET_DONE_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_DONE_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_DONE_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for LFCLKSTARTED event */
+#define CLOCK_INTENSET_LFCLKSTARTED_Pos (1UL) /*!< Position of LFCLKSTARTED field. */
+#define CLOCK_INTENSET_LFCLKSTARTED_Msk (0x1UL << CLOCK_INTENSET_LFCLKSTARTED_Pos) /*!< Bit mask of LFCLKSTARTED field. */
+#define CLOCK_INTENSET_LFCLKSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_LFCLKSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_LFCLKSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for HFCLKSTARTED event */
+#define CLOCK_INTENSET_HFCLKSTARTED_Pos (0UL) /*!< Position of HFCLKSTARTED field. */
+#define CLOCK_INTENSET_HFCLKSTARTED_Msk (0x1UL << CLOCK_INTENSET_HFCLKSTARTED_Pos) /*!< Bit mask of HFCLKSTARTED field. */
+#define CLOCK_INTENSET_HFCLKSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_HFCLKSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_HFCLKSTARTED_Set (1UL) /*!< Enable */
+
+/* Register: CLOCK_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 4 : Write '1' to Disable interrupt for CTTO event */
+#define CLOCK_INTENCLR_CTTO_Pos (4UL) /*!< Position of CTTO field. */
+#define CLOCK_INTENCLR_CTTO_Msk (0x1UL << CLOCK_INTENCLR_CTTO_Pos) /*!< Bit mask of CTTO field. */
+#define CLOCK_INTENCLR_CTTO_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_CTTO_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_CTTO_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for DONE event */
+#define CLOCK_INTENCLR_DONE_Pos (3UL) /*!< Position of DONE field. */
+#define CLOCK_INTENCLR_DONE_Msk (0x1UL << CLOCK_INTENCLR_DONE_Pos) /*!< Bit mask of DONE field. */
+#define CLOCK_INTENCLR_DONE_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_DONE_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_DONE_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for LFCLKSTARTED event */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Pos (1UL) /*!< Position of LFCLKSTARTED field. */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Msk (0x1UL << CLOCK_INTENCLR_LFCLKSTARTED_Pos) /*!< Bit mask of LFCLKSTARTED field. */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for HFCLKSTARTED event */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Pos (0UL) /*!< Position of HFCLKSTARTED field. */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Msk (0x1UL << CLOCK_INTENCLR_HFCLKSTARTED_Pos) /*!< Bit mask of HFCLKSTARTED field. */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Clear (1UL) /*!< Disable */
+
+/* Register: CLOCK_HFCLKRUN */
+/* Description: Status indicating that HFCLKSTART task has been triggered */
+
+/* Bit 0 : HFCLKSTART task triggered or not */
+#define CLOCK_HFCLKRUN_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define CLOCK_HFCLKRUN_STATUS_Msk (0x1UL << CLOCK_HFCLKRUN_STATUS_Pos) /*!< Bit mask of STATUS field. */
+#define CLOCK_HFCLKRUN_STATUS_NotTriggered (0UL) /*!< Task not triggered */
+#define CLOCK_HFCLKRUN_STATUS_Triggered (1UL) /*!< Task triggered */
+
+/* Register: CLOCK_HFCLKSTAT */
+/* Description: HFCLK status */
+
+/* Bit 16 : HFCLK state */
+#define CLOCK_HFCLKSTAT_STATE_Pos (16UL) /*!< Position of STATE field. */
+#define CLOCK_HFCLKSTAT_STATE_Msk (0x1UL << CLOCK_HFCLKSTAT_STATE_Pos) /*!< Bit mask of STATE field. */
+#define CLOCK_HFCLKSTAT_STATE_NotRunning (0UL) /*!< HFCLK not running */
+#define CLOCK_HFCLKSTAT_STATE_Running (1UL) /*!< HFCLK running */
+
+/* Bit 0 : Source of HFCLK */
+#define CLOCK_HFCLKSTAT_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_HFCLKSTAT_SRC_Msk (0x1UL << CLOCK_HFCLKSTAT_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_HFCLKSTAT_SRC_RC (0UL) /*!< 64 MHz internal oscillator (HFINT) */
+#define CLOCK_HFCLKSTAT_SRC_Xtal (1UL) /*!< 64 MHz crystal oscillator (HFXO) */
+
+/* Register: CLOCK_LFCLKRUN */
+/* Description: Status indicating that LFCLKSTART task has been triggered */
+
+/* Bit 0 : LFCLKSTART task triggered or not */
+#define CLOCK_LFCLKRUN_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define CLOCK_LFCLKRUN_STATUS_Msk (0x1UL << CLOCK_LFCLKRUN_STATUS_Pos) /*!< Bit mask of STATUS field. */
+#define CLOCK_LFCLKRUN_STATUS_NotTriggered (0UL) /*!< Task not triggered */
+#define CLOCK_LFCLKRUN_STATUS_Triggered (1UL) /*!< Task triggered */
+
+/* Register: CLOCK_LFCLKSTAT */
+/* Description: LFCLK status */
+
+/* Bit 16 : LFCLK state */
+#define CLOCK_LFCLKSTAT_STATE_Pos (16UL) /*!< Position of STATE field. */
+#define CLOCK_LFCLKSTAT_STATE_Msk (0x1UL << CLOCK_LFCLKSTAT_STATE_Pos) /*!< Bit mask of STATE field. */
+#define CLOCK_LFCLKSTAT_STATE_NotRunning (0UL) /*!< LFCLK not running */
+#define CLOCK_LFCLKSTAT_STATE_Running (1UL) /*!< LFCLK running */
+
+/* Bits 1..0 : Source of LFCLK */
+#define CLOCK_LFCLKSTAT_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_LFCLKSTAT_SRC_Msk (0x3UL << CLOCK_LFCLKSTAT_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_LFCLKSTAT_SRC_RC (0UL) /*!< 32.768 kHz RC oscillator */
+#define CLOCK_LFCLKSTAT_SRC_Xtal (1UL) /*!< 32.768 kHz crystal oscillator */
+#define CLOCK_LFCLKSTAT_SRC_Synth (2UL) /*!< 32.768 kHz synthesized from HFCLK */
+
+/* Register: CLOCK_LFCLKSRCCOPY */
+/* Description: Copy of LFCLKSRC register, set when LFCLKSTART task was triggered */
+
+/* Bits 1..0 : Clock source */
+#define CLOCK_LFCLKSRCCOPY_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_LFCLKSRCCOPY_SRC_Msk (0x3UL << CLOCK_LFCLKSRCCOPY_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_LFCLKSRCCOPY_SRC_RC (0UL) /*!< 32.768 kHz RC oscillator */
+#define CLOCK_LFCLKSRCCOPY_SRC_Xtal (1UL) /*!< 32.768 kHz crystal oscillator */
+#define CLOCK_LFCLKSRCCOPY_SRC_Synth (2UL) /*!< 32.768 kHz synthesized from HFCLK */
+
+/* Register: CLOCK_LFCLKSRC */
+/* Description: Clock source for the LFCLK */
+
+/* Bit 17 : Enable or disable external source for LFCLK */
+#define CLOCK_LFCLKSRC_EXTERNAL_Pos (17UL) /*!< Position of EXTERNAL field. */
+#define CLOCK_LFCLKSRC_EXTERNAL_Msk (0x1UL << CLOCK_LFCLKSRC_EXTERNAL_Pos) /*!< Bit mask of EXTERNAL field. */
+#define CLOCK_LFCLKSRC_EXTERNAL_Disabled (0UL) /*!< Disable external source (use with Xtal) */
+#define CLOCK_LFCLKSRC_EXTERNAL_Enabled (1UL) /*!< Enable use of external source instead of Xtal (SRC needs to be set to Xtal) */
+
+/* Bit 16 : Enable or disable bypass of LFCLK crystal oscillator with external clock source */
+#define CLOCK_LFCLKSRC_BYPASS_Pos (16UL) /*!< Position of BYPASS field. */
+#define CLOCK_LFCLKSRC_BYPASS_Msk (0x1UL << CLOCK_LFCLKSRC_BYPASS_Pos) /*!< Bit mask of BYPASS field. */
+#define CLOCK_LFCLKSRC_BYPASS_Disabled (0UL) /*!< Disable (use with Xtal or low-swing external source) */
+#define CLOCK_LFCLKSRC_BYPASS_Enabled (1UL) /*!< Enable (use with rail-to-rail external source) */
+
+/* Bits 1..0 : Clock source */
+#define CLOCK_LFCLKSRC_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_LFCLKSRC_SRC_Msk (0x3UL << CLOCK_LFCLKSRC_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_LFCLKSRC_SRC_RC (0UL) /*!< 32.768 kHz RC oscillator */
+#define CLOCK_LFCLKSRC_SRC_Xtal (1UL) /*!< 32.768 kHz crystal oscillator */
+#define CLOCK_LFCLKSRC_SRC_Synth (2UL) /*!< 32.768 kHz synthesized from HFCLK */
+
+/* Register: CLOCK_CTIV */
+/* Description: Calibration timer interval */
+
+/* Bits 6..0 : Calibration timer interval in multiple of 0.25 seconds. Range: 0.25 seconds to 31.75 seconds. */
+#define CLOCK_CTIV_CTIV_Pos (0UL) /*!< Position of CTIV field. */
+#define CLOCK_CTIV_CTIV_Msk (0x7FUL << CLOCK_CTIV_CTIV_Pos) /*!< Bit mask of CTIV field. */
+
+
+/* Peripheral: COMP */
+/* Description: Comparator */
+
+/* Register: COMP_TASKS_START */
+/* Description: Start comparator */
+
+/* Bit 0 : */
+#define COMP_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define COMP_TASKS_START_TASKS_START_Msk (0x1UL << COMP_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: COMP_TASKS_STOP */
+/* Description: Stop comparator */
+
+/* Bit 0 : */
+#define COMP_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define COMP_TASKS_STOP_TASKS_STOP_Msk (0x1UL << COMP_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: COMP_TASKS_SAMPLE */
+/* Description: Sample comparator value */
+
+/* Bit 0 : */
+#define COMP_TASKS_SAMPLE_TASKS_SAMPLE_Pos (0UL) /*!< Position of TASKS_SAMPLE field. */
+#define COMP_TASKS_SAMPLE_TASKS_SAMPLE_Msk (0x1UL << COMP_TASKS_SAMPLE_TASKS_SAMPLE_Pos) /*!< Bit mask of TASKS_SAMPLE field. */
+
+/* Register: COMP_EVENTS_READY */
+/* Description: COMP is ready and output is valid */
+
+/* Bit 0 : */
+#define COMP_EVENTS_READY_EVENTS_READY_Pos (0UL) /*!< Position of EVENTS_READY field. */
+#define COMP_EVENTS_READY_EVENTS_READY_Msk (0x1UL << COMP_EVENTS_READY_EVENTS_READY_Pos) /*!< Bit mask of EVENTS_READY field. */
+
+/* Register: COMP_EVENTS_DOWN */
+/* Description: Downward crossing */
+
+/* Bit 0 : */
+#define COMP_EVENTS_DOWN_EVENTS_DOWN_Pos (0UL) /*!< Position of EVENTS_DOWN field. */
+#define COMP_EVENTS_DOWN_EVENTS_DOWN_Msk (0x1UL << COMP_EVENTS_DOWN_EVENTS_DOWN_Pos) /*!< Bit mask of EVENTS_DOWN field. */
+
+/* Register: COMP_EVENTS_UP */
+/* Description: Upward crossing */
+
+/* Bit 0 : */
+#define COMP_EVENTS_UP_EVENTS_UP_Pos (0UL) /*!< Position of EVENTS_UP field. */
+#define COMP_EVENTS_UP_EVENTS_UP_Msk (0x1UL << COMP_EVENTS_UP_EVENTS_UP_Pos) /*!< Bit mask of EVENTS_UP field. */
+
+/* Register: COMP_EVENTS_CROSS */
+/* Description: Downward or upward crossing */
+
+/* Bit 0 : */
+#define COMP_EVENTS_CROSS_EVENTS_CROSS_Pos (0UL) /*!< Position of EVENTS_CROSS field. */
+#define COMP_EVENTS_CROSS_EVENTS_CROSS_Msk (0x1UL << COMP_EVENTS_CROSS_EVENTS_CROSS_Pos) /*!< Bit mask of EVENTS_CROSS field. */
+
+/* Register: COMP_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 4 : Shortcut between CROSS event and STOP task */
+#define COMP_SHORTS_CROSS_STOP_Pos (4UL) /*!< Position of CROSS_STOP field. */
+#define COMP_SHORTS_CROSS_STOP_Msk (0x1UL << COMP_SHORTS_CROSS_STOP_Pos) /*!< Bit mask of CROSS_STOP field. */
+#define COMP_SHORTS_CROSS_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_CROSS_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between UP event and STOP task */
+#define COMP_SHORTS_UP_STOP_Pos (3UL) /*!< Position of UP_STOP field. */
+#define COMP_SHORTS_UP_STOP_Msk (0x1UL << COMP_SHORTS_UP_STOP_Pos) /*!< Bit mask of UP_STOP field. */
+#define COMP_SHORTS_UP_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_UP_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between DOWN event and STOP task */
+#define COMP_SHORTS_DOWN_STOP_Pos (2UL) /*!< Position of DOWN_STOP field. */
+#define COMP_SHORTS_DOWN_STOP_Msk (0x1UL << COMP_SHORTS_DOWN_STOP_Pos) /*!< Bit mask of DOWN_STOP field. */
+#define COMP_SHORTS_DOWN_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_DOWN_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between READY event and STOP task */
+#define COMP_SHORTS_READY_STOP_Pos (1UL) /*!< Position of READY_STOP field. */
+#define COMP_SHORTS_READY_STOP_Msk (0x1UL << COMP_SHORTS_READY_STOP_Pos) /*!< Bit mask of READY_STOP field. */
+#define COMP_SHORTS_READY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_READY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between READY event and SAMPLE task */
+#define COMP_SHORTS_READY_SAMPLE_Pos (0UL) /*!< Position of READY_SAMPLE field. */
+#define COMP_SHORTS_READY_SAMPLE_Msk (0x1UL << COMP_SHORTS_READY_SAMPLE_Pos) /*!< Bit mask of READY_SAMPLE field. */
+#define COMP_SHORTS_READY_SAMPLE_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_READY_SAMPLE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: COMP_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 3 : Enable or disable interrupt for CROSS event */
+#define COMP_INTEN_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define COMP_INTEN_CROSS_Msk (0x1UL << COMP_INTEN_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define COMP_INTEN_CROSS_Disabled (0UL) /*!< Disable */
+#define COMP_INTEN_CROSS_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for UP event */
+#define COMP_INTEN_UP_Pos (2UL) /*!< Position of UP field. */
+#define COMP_INTEN_UP_Msk (0x1UL << COMP_INTEN_UP_Pos) /*!< Bit mask of UP field. */
+#define COMP_INTEN_UP_Disabled (0UL) /*!< Disable */
+#define COMP_INTEN_UP_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for DOWN event */
+#define COMP_INTEN_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define COMP_INTEN_DOWN_Msk (0x1UL << COMP_INTEN_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define COMP_INTEN_DOWN_Disabled (0UL) /*!< Disable */
+#define COMP_INTEN_DOWN_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for READY event */
+#define COMP_INTEN_READY_Pos (0UL) /*!< Position of READY field. */
+#define COMP_INTEN_READY_Msk (0x1UL << COMP_INTEN_READY_Pos) /*!< Bit mask of READY field. */
+#define COMP_INTEN_READY_Disabled (0UL) /*!< Disable */
+#define COMP_INTEN_READY_Enabled (1UL) /*!< Enable */
+
+/* Register: COMP_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 3 : Write '1' to Enable interrupt for CROSS event */
+#define COMP_INTENSET_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define COMP_INTENSET_CROSS_Msk (0x1UL << COMP_INTENSET_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define COMP_INTENSET_CROSS_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENSET_CROSS_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENSET_CROSS_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for UP event */
+#define COMP_INTENSET_UP_Pos (2UL) /*!< Position of UP field. */
+#define COMP_INTENSET_UP_Msk (0x1UL << COMP_INTENSET_UP_Pos) /*!< Bit mask of UP field. */
+#define COMP_INTENSET_UP_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENSET_UP_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENSET_UP_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for DOWN event */
+#define COMP_INTENSET_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define COMP_INTENSET_DOWN_Msk (0x1UL << COMP_INTENSET_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define COMP_INTENSET_DOWN_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENSET_DOWN_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENSET_DOWN_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for READY event */
+#define COMP_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define COMP_INTENSET_READY_Msk (0x1UL << COMP_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define COMP_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: COMP_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 3 : Write '1' to Disable interrupt for CROSS event */
+#define COMP_INTENCLR_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define COMP_INTENCLR_CROSS_Msk (0x1UL << COMP_INTENCLR_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define COMP_INTENCLR_CROSS_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENCLR_CROSS_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENCLR_CROSS_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for UP event */
+#define COMP_INTENCLR_UP_Pos (2UL) /*!< Position of UP field. */
+#define COMP_INTENCLR_UP_Msk (0x1UL << COMP_INTENCLR_UP_Pos) /*!< Bit mask of UP field. */
+#define COMP_INTENCLR_UP_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENCLR_UP_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENCLR_UP_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for DOWN event */
+#define COMP_INTENCLR_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define COMP_INTENCLR_DOWN_Msk (0x1UL << COMP_INTENCLR_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define COMP_INTENCLR_DOWN_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENCLR_DOWN_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENCLR_DOWN_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for READY event */
+#define COMP_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define COMP_INTENCLR_READY_Msk (0x1UL << COMP_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define COMP_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: COMP_RESULT */
+/* Description: Compare result */
+
+/* Bit 0 : Result of last compare. Decision point SAMPLE task. */
+#define COMP_RESULT_RESULT_Pos (0UL) /*!< Position of RESULT field. */
+#define COMP_RESULT_RESULT_Msk (0x1UL << COMP_RESULT_RESULT_Pos) /*!< Bit mask of RESULT field. */
+#define COMP_RESULT_RESULT_Below (0UL) /*!< Input voltage is below the threshold (VIN+ &lt; VIN-) */
+#define COMP_RESULT_RESULT_Above (1UL) /*!< Input voltage is above the threshold (VIN+ &gt; VIN-) */
+
+/* Register: COMP_ENABLE */
+/* Description: COMP enable */
+
+/* Bits 1..0 : Enable or disable COMP */
+#define COMP_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define COMP_ENABLE_ENABLE_Msk (0x3UL << COMP_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define COMP_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define COMP_ENABLE_ENABLE_Enabled (2UL) /*!< Enable */
+
+/* Register: COMP_PSEL */
+/* Description: Pin select */
+
+/* Bits 2..0 : Analog pin select */
+#define COMP_PSEL_PSEL_Pos (0UL) /*!< Position of PSEL field. */
+#define COMP_PSEL_PSEL_Msk (0x7UL << COMP_PSEL_PSEL_Pos) /*!< Bit mask of PSEL field. */
+#define COMP_PSEL_PSEL_AnalogInput0 (0UL) /*!< AIN0 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput1 (1UL) /*!< AIN1 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput2 (2UL) /*!< AIN2 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput3 (3UL) /*!< AIN3 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput4 (4UL) /*!< AIN4 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput5 (5UL) /*!< AIN5 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput6 (6UL) /*!< AIN6 selected as analog input */
+#define COMP_PSEL_PSEL_VddDiv2 (7UL) /*!< VDD/2 selected as analog input */
+
+/* Register: COMP_REFSEL */
+/* Description: Reference source select for single-ended mode */
+
+/* Bits 2..0 : Reference select */
+#define COMP_REFSEL_REFSEL_Pos (0UL) /*!< Position of REFSEL field. */
+#define COMP_REFSEL_REFSEL_Msk (0x7UL << COMP_REFSEL_REFSEL_Pos) /*!< Bit mask of REFSEL field. */
+#define COMP_REFSEL_REFSEL_Int1V2 (0UL) /*!< VREF = internal 1.2 V reference (VDD &gt;= 1.7 V) */
+#define COMP_REFSEL_REFSEL_Int1V8 (1UL) /*!< VREF = internal 1.8 V reference (VDD &gt;= VREF + 0.2 V) */
+#define COMP_REFSEL_REFSEL_Int2V4 (2UL) /*!< VREF = internal 2.4 V reference (VDD &gt;= VREF + 0.2 V) */
+#define COMP_REFSEL_REFSEL_VDD (4UL) /*!< VREF = VDD */
+#define COMP_REFSEL_REFSEL_ARef (5UL) /*!< VREF = AREF (VDD &gt;= VREF &gt;= AREFMIN) */
+
+/* Register: COMP_EXTREFSEL */
+/* Description: External reference select */
+
+/* Bits 2..0 : External analog reference select */
+#define COMP_EXTREFSEL_EXTREFSEL_Pos (0UL) /*!< Position of EXTREFSEL field. */
+#define COMP_EXTREFSEL_EXTREFSEL_Msk (0x7UL << COMP_EXTREFSEL_EXTREFSEL_Pos) /*!< Bit mask of EXTREFSEL field. */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference0 (0UL) /*!< Use AIN0 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference1 (1UL) /*!< Use AIN1 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference2 (2UL) /*!< Use AIN2 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference3 (3UL) /*!< Use AIN3 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference4 (4UL) /*!< Use AIN4 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference5 (5UL) /*!< Use AIN5 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference6 (6UL) /*!< Use AIN6 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference7 (7UL) /*!< Use AIN7 as external analog reference */
+
+/* Register: COMP_TH */
+/* Description: Threshold configuration for hysteresis unit */
+
+/* Bits 13..8 : VUP = (THUP+1)/64*VREF */
+#define COMP_TH_THUP_Pos (8UL) /*!< Position of THUP field. */
+#define COMP_TH_THUP_Msk (0x3FUL << COMP_TH_THUP_Pos) /*!< Bit mask of THUP field. */
+
+/* Bits 5..0 : VDOWN = (THDOWN+1)/64*VREF */
+#define COMP_TH_THDOWN_Pos (0UL) /*!< Position of THDOWN field. */
+#define COMP_TH_THDOWN_Msk (0x3FUL << COMP_TH_THDOWN_Pos) /*!< Bit mask of THDOWN field. */
+
+/* Register: COMP_MODE */
+/* Description: Mode configuration */
+
+/* Bit 8 : Main operation modes */
+#define COMP_MODE_MAIN_Pos (8UL) /*!< Position of MAIN field. */
+#define COMP_MODE_MAIN_Msk (0x1UL << COMP_MODE_MAIN_Pos) /*!< Bit mask of MAIN field. */
+#define COMP_MODE_MAIN_SE (0UL) /*!< Single-ended mode */
+#define COMP_MODE_MAIN_Diff (1UL) /*!< Differential mode */
+
+/* Bits 1..0 : Speed and power modes */
+#define COMP_MODE_SP_Pos (0UL) /*!< Position of SP field. */
+#define COMP_MODE_SP_Msk (0x3UL << COMP_MODE_SP_Pos) /*!< Bit mask of SP field. */
+#define COMP_MODE_SP_Low (0UL) /*!< Low-power mode */
+#define COMP_MODE_SP_Normal (1UL) /*!< Normal mode */
+#define COMP_MODE_SP_High (2UL) /*!< High-speed mode */
+
+/* Register: COMP_HYST */
+/* Description: Comparator hysteresis enable */
+
+/* Bit 0 : Comparator hysteresis */
+#define COMP_HYST_HYST_Pos (0UL) /*!< Position of HYST field. */
+#define COMP_HYST_HYST_Msk (0x1UL << COMP_HYST_HYST_Pos) /*!< Bit mask of HYST field. */
+#define COMP_HYST_HYST_NoHyst (0UL) /*!< Comparator hysteresis disabled */
+#define COMP_HYST_HYST_Hyst50mV (1UL) /*!< Comparator hysteresis enabled */
+
+
+/* Peripheral: ECB */
+/* Description: AES ECB Mode Encryption */
+
+/* Register: ECB_TASKS_STARTECB */
+/* Description: Start ECB block encrypt */
+
+/* Bit 0 : */
+#define ECB_TASKS_STARTECB_TASKS_STARTECB_Pos (0UL) /*!< Position of TASKS_STARTECB field. */
+#define ECB_TASKS_STARTECB_TASKS_STARTECB_Msk (0x1UL << ECB_TASKS_STARTECB_TASKS_STARTECB_Pos) /*!< Bit mask of TASKS_STARTECB field. */
+
+/* Register: ECB_TASKS_STOPECB */
+/* Description: Abort a possible executing ECB operation */
+
+/* Bit 0 : */
+#define ECB_TASKS_STOPECB_TASKS_STOPECB_Pos (0UL) /*!< Position of TASKS_STOPECB field. */
+#define ECB_TASKS_STOPECB_TASKS_STOPECB_Msk (0x1UL << ECB_TASKS_STOPECB_TASKS_STOPECB_Pos) /*!< Bit mask of TASKS_STOPECB field. */
+
+/* Register: ECB_EVENTS_ENDECB */
+/* Description: ECB block encrypt complete */
+
+/* Bit 0 : */
+#define ECB_EVENTS_ENDECB_EVENTS_ENDECB_Pos (0UL) /*!< Position of EVENTS_ENDECB field. */
+#define ECB_EVENTS_ENDECB_EVENTS_ENDECB_Msk (0x1UL << ECB_EVENTS_ENDECB_EVENTS_ENDECB_Pos) /*!< Bit mask of EVENTS_ENDECB field. */
+
+/* Register: ECB_EVENTS_ERRORECB */
+/* Description: ECB block encrypt aborted because of a STOPECB task or due to an error */
+
+/* Bit 0 : */
+#define ECB_EVENTS_ERRORECB_EVENTS_ERRORECB_Pos (0UL) /*!< Position of EVENTS_ERRORECB field. */
+#define ECB_EVENTS_ERRORECB_EVENTS_ERRORECB_Msk (0x1UL << ECB_EVENTS_ERRORECB_EVENTS_ERRORECB_Pos) /*!< Bit mask of EVENTS_ERRORECB field. */
+
+/* Register: ECB_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 1 : Write '1' to Enable interrupt for ERRORECB event */
+#define ECB_INTENSET_ERRORECB_Pos (1UL) /*!< Position of ERRORECB field. */
+#define ECB_INTENSET_ERRORECB_Msk (0x1UL << ECB_INTENSET_ERRORECB_Pos) /*!< Bit mask of ERRORECB field. */
+#define ECB_INTENSET_ERRORECB_Disabled (0UL) /*!< Read: Disabled */
+#define ECB_INTENSET_ERRORECB_Enabled (1UL) /*!< Read: Enabled */
+#define ECB_INTENSET_ERRORECB_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for ENDECB event */
+#define ECB_INTENSET_ENDECB_Pos (0UL) /*!< Position of ENDECB field. */
+#define ECB_INTENSET_ENDECB_Msk (0x1UL << ECB_INTENSET_ENDECB_Pos) /*!< Bit mask of ENDECB field. */
+#define ECB_INTENSET_ENDECB_Disabled (0UL) /*!< Read: Disabled */
+#define ECB_INTENSET_ENDECB_Enabled (1UL) /*!< Read: Enabled */
+#define ECB_INTENSET_ENDECB_Set (1UL) /*!< Enable */
+
+/* Register: ECB_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 1 : Write '1' to Disable interrupt for ERRORECB event */
+#define ECB_INTENCLR_ERRORECB_Pos (1UL) /*!< Position of ERRORECB field. */
+#define ECB_INTENCLR_ERRORECB_Msk (0x1UL << ECB_INTENCLR_ERRORECB_Pos) /*!< Bit mask of ERRORECB field. */
+#define ECB_INTENCLR_ERRORECB_Disabled (0UL) /*!< Read: Disabled */
+#define ECB_INTENCLR_ERRORECB_Enabled (1UL) /*!< Read: Enabled */
+#define ECB_INTENCLR_ERRORECB_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for ENDECB event */
+#define ECB_INTENCLR_ENDECB_Pos (0UL) /*!< Position of ENDECB field. */
+#define ECB_INTENCLR_ENDECB_Msk (0x1UL << ECB_INTENCLR_ENDECB_Pos) /*!< Bit mask of ENDECB field. */
+#define ECB_INTENCLR_ENDECB_Disabled (0UL) /*!< Read: Disabled */
+#define ECB_INTENCLR_ENDECB_Enabled (1UL) /*!< Read: Enabled */
+#define ECB_INTENCLR_ENDECB_Clear (1UL) /*!< Disable */
+
+/* Register: ECB_ECBDATAPTR */
+/* Description: ECB block encrypt memory pointers */
+
+/* Bits 31..0 : Pointer to the ECB data structure (see Table 1 ECB data structure overview) */
+#define ECB_ECBDATAPTR_ECBDATAPTR_Pos (0UL) /*!< Position of ECBDATAPTR field. */
+#define ECB_ECBDATAPTR_ECBDATAPTR_Msk (0xFFFFFFFFUL << ECB_ECBDATAPTR_ECBDATAPTR_Pos) /*!< Bit mask of ECBDATAPTR field. */
+
+
+/* Peripheral: EGU */
+/* Description: Event Generator Unit 0 */
+
+/* Register: EGU_TASKS_TRIGGER */
+/* Description: Description collection[0]: Trigger 0 for triggering the corresponding TRIGGERED[0] event */
+
+/* Bit 0 : */
+#define EGU_TASKS_TRIGGER_TASKS_TRIGGER_Pos (0UL) /*!< Position of TASKS_TRIGGER field. */
+#define EGU_TASKS_TRIGGER_TASKS_TRIGGER_Msk (0x1UL << EGU_TASKS_TRIGGER_TASKS_TRIGGER_Pos) /*!< Bit mask of TASKS_TRIGGER field. */
+
+/* Register: EGU_EVENTS_TRIGGERED */
+/* Description: Description collection[0]: Event number 0 generated by triggering the corresponding TRIGGER[0] task */
+
+/* Bit 0 : */
+#define EGU_EVENTS_TRIGGERED_EVENTS_TRIGGERED_Pos (0UL) /*!< Position of EVENTS_TRIGGERED field. */
+#define EGU_EVENTS_TRIGGERED_EVENTS_TRIGGERED_Msk (0x1UL << EGU_EVENTS_TRIGGERED_EVENTS_TRIGGERED_Pos) /*!< Bit mask of EVENTS_TRIGGERED field. */
+
+/* Register: EGU_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 15 : Enable or disable interrupt for TRIGGERED[15] event */
+#define EGU_INTEN_TRIGGERED15_Pos (15UL) /*!< Position of TRIGGERED15 field. */
+#define EGU_INTEN_TRIGGERED15_Msk (0x1UL << EGU_INTEN_TRIGGERED15_Pos) /*!< Bit mask of TRIGGERED15 field. */
+#define EGU_INTEN_TRIGGERED15_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED15_Enabled (1UL) /*!< Enable */
+
+/* Bit 14 : Enable or disable interrupt for TRIGGERED[14] event */
+#define EGU_INTEN_TRIGGERED14_Pos (14UL) /*!< Position of TRIGGERED14 field. */
+#define EGU_INTEN_TRIGGERED14_Msk (0x1UL << EGU_INTEN_TRIGGERED14_Pos) /*!< Bit mask of TRIGGERED14 field. */
+#define EGU_INTEN_TRIGGERED14_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED14_Enabled (1UL) /*!< Enable */
+
+/* Bit 13 : Enable or disable interrupt for TRIGGERED[13] event */
+#define EGU_INTEN_TRIGGERED13_Pos (13UL) /*!< Position of TRIGGERED13 field. */
+#define EGU_INTEN_TRIGGERED13_Msk (0x1UL << EGU_INTEN_TRIGGERED13_Pos) /*!< Bit mask of TRIGGERED13 field. */
+#define EGU_INTEN_TRIGGERED13_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED13_Enabled (1UL) /*!< Enable */
+
+/* Bit 12 : Enable or disable interrupt for TRIGGERED[12] event */
+#define EGU_INTEN_TRIGGERED12_Pos (12UL) /*!< Position of TRIGGERED12 field. */
+#define EGU_INTEN_TRIGGERED12_Msk (0x1UL << EGU_INTEN_TRIGGERED12_Pos) /*!< Bit mask of TRIGGERED12 field. */
+#define EGU_INTEN_TRIGGERED12_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED12_Enabled (1UL) /*!< Enable */
+
+/* Bit 11 : Enable or disable interrupt for TRIGGERED[11] event */
+#define EGU_INTEN_TRIGGERED11_Pos (11UL) /*!< Position of TRIGGERED11 field. */
+#define EGU_INTEN_TRIGGERED11_Msk (0x1UL << EGU_INTEN_TRIGGERED11_Pos) /*!< Bit mask of TRIGGERED11 field. */
+#define EGU_INTEN_TRIGGERED11_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED11_Enabled (1UL) /*!< Enable */
+
+/* Bit 10 : Enable or disable interrupt for TRIGGERED[10] event */
+#define EGU_INTEN_TRIGGERED10_Pos (10UL) /*!< Position of TRIGGERED10 field. */
+#define EGU_INTEN_TRIGGERED10_Msk (0x1UL << EGU_INTEN_TRIGGERED10_Pos) /*!< Bit mask of TRIGGERED10 field. */
+#define EGU_INTEN_TRIGGERED10_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED10_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for TRIGGERED[9] event */
+#define EGU_INTEN_TRIGGERED9_Pos (9UL) /*!< Position of TRIGGERED9 field. */
+#define EGU_INTEN_TRIGGERED9_Msk (0x1UL << EGU_INTEN_TRIGGERED9_Pos) /*!< Bit mask of TRIGGERED9 field. */
+#define EGU_INTEN_TRIGGERED9_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED9_Enabled (1UL) /*!< Enable */
+
+/* Bit 8 : Enable or disable interrupt for TRIGGERED[8] event */
+#define EGU_INTEN_TRIGGERED8_Pos (8UL) /*!< Position of TRIGGERED8 field. */
+#define EGU_INTEN_TRIGGERED8_Msk (0x1UL << EGU_INTEN_TRIGGERED8_Pos) /*!< Bit mask of TRIGGERED8 field. */
+#define EGU_INTEN_TRIGGERED8_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED8_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for TRIGGERED[7] event */
+#define EGU_INTEN_TRIGGERED7_Pos (7UL) /*!< Position of TRIGGERED7 field. */
+#define EGU_INTEN_TRIGGERED7_Msk (0x1UL << EGU_INTEN_TRIGGERED7_Pos) /*!< Bit mask of TRIGGERED7 field. */
+#define EGU_INTEN_TRIGGERED7_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED7_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for TRIGGERED[6] event */
+#define EGU_INTEN_TRIGGERED6_Pos (6UL) /*!< Position of TRIGGERED6 field. */
+#define EGU_INTEN_TRIGGERED6_Msk (0x1UL << EGU_INTEN_TRIGGERED6_Pos) /*!< Bit mask of TRIGGERED6 field. */
+#define EGU_INTEN_TRIGGERED6_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED6_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for TRIGGERED[5] event */
+#define EGU_INTEN_TRIGGERED5_Pos (5UL) /*!< Position of TRIGGERED5 field. */
+#define EGU_INTEN_TRIGGERED5_Msk (0x1UL << EGU_INTEN_TRIGGERED5_Pos) /*!< Bit mask of TRIGGERED5 field. */
+#define EGU_INTEN_TRIGGERED5_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED5_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for TRIGGERED[4] event */
+#define EGU_INTEN_TRIGGERED4_Pos (4UL) /*!< Position of TRIGGERED4 field. */
+#define EGU_INTEN_TRIGGERED4_Msk (0x1UL << EGU_INTEN_TRIGGERED4_Pos) /*!< Bit mask of TRIGGERED4 field. */
+#define EGU_INTEN_TRIGGERED4_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED4_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for TRIGGERED[3] event */
+#define EGU_INTEN_TRIGGERED3_Pos (3UL) /*!< Position of TRIGGERED3 field. */
+#define EGU_INTEN_TRIGGERED3_Msk (0x1UL << EGU_INTEN_TRIGGERED3_Pos) /*!< Bit mask of TRIGGERED3 field. */
+#define EGU_INTEN_TRIGGERED3_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED3_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for TRIGGERED[2] event */
+#define EGU_INTEN_TRIGGERED2_Pos (2UL) /*!< Position of TRIGGERED2 field. */
+#define EGU_INTEN_TRIGGERED2_Msk (0x1UL << EGU_INTEN_TRIGGERED2_Pos) /*!< Bit mask of TRIGGERED2 field. */
+#define EGU_INTEN_TRIGGERED2_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED2_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for TRIGGERED[1] event */
+#define EGU_INTEN_TRIGGERED1_Pos (1UL) /*!< Position of TRIGGERED1 field. */
+#define EGU_INTEN_TRIGGERED1_Msk (0x1UL << EGU_INTEN_TRIGGERED1_Pos) /*!< Bit mask of TRIGGERED1 field. */
+#define EGU_INTEN_TRIGGERED1_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED1_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for TRIGGERED[0] event */
+#define EGU_INTEN_TRIGGERED0_Pos (0UL) /*!< Position of TRIGGERED0 field. */
+#define EGU_INTEN_TRIGGERED0_Msk (0x1UL << EGU_INTEN_TRIGGERED0_Pos) /*!< Bit mask of TRIGGERED0 field. */
+#define EGU_INTEN_TRIGGERED0_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED0_Enabled (1UL) /*!< Enable */
+
+/* Register: EGU_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 15 : Write '1' to Enable interrupt for TRIGGERED[15] event */
+#define EGU_INTENSET_TRIGGERED15_Pos (15UL) /*!< Position of TRIGGERED15 field. */
+#define EGU_INTENSET_TRIGGERED15_Msk (0x1UL << EGU_INTENSET_TRIGGERED15_Pos) /*!< Bit mask of TRIGGERED15 field. */
+#define EGU_INTENSET_TRIGGERED15_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED15_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED15_Set (1UL) /*!< Enable */
+
+/* Bit 14 : Write '1' to Enable interrupt for TRIGGERED[14] event */
+#define EGU_INTENSET_TRIGGERED14_Pos (14UL) /*!< Position of TRIGGERED14 field. */
+#define EGU_INTENSET_TRIGGERED14_Msk (0x1UL << EGU_INTENSET_TRIGGERED14_Pos) /*!< Bit mask of TRIGGERED14 field. */
+#define EGU_INTENSET_TRIGGERED14_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED14_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED14_Set (1UL) /*!< Enable */
+
+/* Bit 13 : Write '1' to Enable interrupt for TRIGGERED[13] event */
+#define EGU_INTENSET_TRIGGERED13_Pos (13UL) /*!< Position of TRIGGERED13 field. */
+#define EGU_INTENSET_TRIGGERED13_Msk (0x1UL << EGU_INTENSET_TRIGGERED13_Pos) /*!< Bit mask of TRIGGERED13 field. */
+#define EGU_INTENSET_TRIGGERED13_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED13_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED13_Set (1UL) /*!< Enable */
+
+/* Bit 12 : Write '1' to Enable interrupt for TRIGGERED[12] event */
+#define EGU_INTENSET_TRIGGERED12_Pos (12UL) /*!< Position of TRIGGERED12 field. */
+#define EGU_INTENSET_TRIGGERED12_Msk (0x1UL << EGU_INTENSET_TRIGGERED12_Pos) /*!< Bit mask of TRIGGERED12 field. */
+#define EGU_INTENSET_TRIGGERED12_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED12_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED12_Set (1UL) /*!< Enable */
+
+/* Bit 11 : Write '1' to Enable interrupt for TRIGGERED[11] event */
+#define EGU_INTENSET_TRIGGERED11_Pos (11UL) /*!< Position of TRIGGERED11 field. */
+#define EGU_INTENSET_TRIGGERED11_Msk (0x1UL << EGU_INTENSET_TRIGGERED11_Pos) /*!< Bit mask of TRIGGERED11 field. */
+#define EGU_INTENSET_TRIGGERED11_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED11_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED11_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to Enable interrupt for TRIGGERED[10] event */
+#define EGU_INTENSET_TRIGGERED10_Pos (10UL) /*!< Position of TRIGGERED10 field. */
+#define EGU_INTENSET_TRIGGERED10_Msk (0x1UL << EGU_INTENSET_TRIGGERED10_Pos) /*!< Bit mask of TRIGGERED10 field. */
+#define EGU_INTENSET_TRIGGERED10_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED10_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED10_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to Enable interrupt for TRIGGERED[9] event */
+#define EGU_INTENSET_TRIGGERED9_Pos (9UL) /*!< Position of TRIGGERED9 field. */
+#define EGU_INTENSET_TRIGGERED9_Msk (0x1UL << EGU_INTENSET_TRIGGERED9_Pos) /*!< Bit mask of TRIGGERED9 field. */
+#define EGU_INTENSET_TRIGGERED9_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED9_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED9_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to Enable interrupt for TRIGGERED[8] event */
+#define EGU_INTENSET_TRIGGERED8_Pos (8UL) /*!< Position of TRIGGERED8 field. */
+#define EGU_INTENSET_TRIGGERED8_Msk (0x1UL << EGU_INTENSET_TRIGGERED8_Pos) /*!< Bit mask of TRIGGERED8 field. */
+#define EGU_INTENSET_TRIGGERED8_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED8_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED8_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for TRIGGERED[7] event */
+#define EGU_INTENSET_TRIGGERED7_Pos (7UL) /*!< Position of TRIGGERED7 field. */
+#define EGU_INTENSET_TRIGGERED7_Msk (0x1UL << EGU_INTENSET_TRIGGERED7_Pos) /*!< Bit mask of TRIGGERED7 field. */
+#define EGU_INTENSET_TRIGGERED7_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED7_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED7_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for TRIGGERED[6] event */
+#define EGU_INTENSET_TRIGGERED6_Pos (6UL) /*!< Position of TRIGGERED6 field. */
+#define EGU_INTENSET_TRIGGERED6_Msk (0x1UL << EGU_INTENSET_TRIGGERED6_Pos) /*!< Bit mask of TRIGGERED6 field. */
+#define EGU_INTENSET_TRIGGERED6_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED6_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED6_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for TRIGGERED[5] event */
+#define EGU_INTENSET_TRIGGERED5_Pos (5UL) /*!< Position of TRIGGERED5 field. */
+#define EGU_INTENSET_TRIGGERED5_Msk (0x1UL << EGU_INTENSET_TRIGGERED5_Pos) /*!< Bit mask of TRIGGERED5 field. */
+#define EGU_INTENSET_TRIGGERED5_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED5_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED5_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for TRIGGERED[4] event */
+#define EGU_INTENSET_TRIGGERED4_Pos (4UL) /*!< Position of TRIGGERED4 field. */
+#define EGU_INTENSET_TRIGGERED4_Msk (0x1UL << EGU_INTENSET_TRIGGERED4_Pos) /*!< Bit mask of TRIGGERED4 field. */
+#define EGU_INTENSET_TRIGGERED4_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED4_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED4_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for TRIGGERED[3] event */
+#define EGU_INTENSET_TRIGGERED3_Pos (3UL) /*!< Position of TRIGGERED3 field. */
+#define EGU_INTENSET_TRIGGERED3_Msk (0x1UL << EGU_INTENSET_TRIGGERED3_Pos) /*!< Bit mask of TRIGGERED3 field. */
+#define EGU_INTENSET_TRIGGERED3_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED3_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED3_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for TRIGGERED[2] event */
+#define EGU_INTENSET_TRIGGERED2_Pos (2UL) /*!< Position of TRIGGERED2 field. */
+#define EGU_INTENSET_TRIGGERED2_Msk (0x1UL << EGU_INTENSET_TRIGGERED2_Pos) /*!< Bit mask of TRIGGERED2 field. */
+#define EGU_INTENSET_TRIGGERED2_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED2_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED2_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for TRIGGERED[1] event */
+#define EGU_INTENSET_TRIGGERED1_Pos (1UL) /*!< Position of TRIGGERED1 field. */
+#define EGU_INTENSET_TRIGGERED1_Msk (0x1UL << EGU_INTENSET_TRIGGERED1_Pos) /*!< Bit mask of TRIGGERED1 field. */
+#define EGU_INTENSET_TRIGGERED1_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED1_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED1_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for TRIGGERED[0] event */
+#define EGU_INTENSET_TRIGGERED0_Pos (0UL) /*!< Position of TRIGGERED0 field. */
+#define EGU_INTENSET_TRIGGERED0_Msk (0x1UL << EGU_INTENSET_TRIGGERED0_Pos) /*!< Bit mask of TRIGGERED0 field. */
+#define EGU_INTENSET_TRIGGERED0_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED0_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED0_Set (1UL) /*!< Enable */
+
+/* Register: EGU_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 15 : Write '1' to Disable interrupt for TRIGGERED[15] event */
+#define EGU_INTENCLR_TRIGGERED15_Pos (15UL) /*!< Position of TRIGGERED15 field. */
+#define EGU_INTENCLR_TRIGGERED15_Msk (0x1UL << EGU_INTENCLR_TRIGGERED15_Pos) /*!< Bit mask of TRIGGERED15 field. */
+#define EGU_INTENCLR_TRIGGERED15_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED15_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED15_Clear (1UL) /*!< Disable */
+
+/* Bit 14 : Write '1' to Disable interrupt for TRIGGERED[14] event */
+#define EGU_INTENCLR_TRIGGERED14_Pos (14UL) /*!< Position of TRIGGERED14 field. */
+#define EGU_INTENCLR_TRIGGERED14_Msk (0x1UL << EGU_INTENCLR_TRIGGERED14_Pos) /*!< Bit mask of TRIGGERED14 field. */
+#define EGU_INTENCLR_TRIGGERED14_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED14_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED14_Clear (1UL) /*!< Disable */
+
+/* Bit 13 : Write '1' to Disable interrupt for TRIGGERED[13] event */
+#define EGU_INTENCLR_TRIGGERED13_Pos (13UL) /*!< Position of TRIGGERED13 field. */
+#define EGU_INTENCLR_TRIGGERED13_Msk (0x1UL << EGU_INTENCLR_TRIGGERED13_Pos) /*!< Bit mask of TRIGGERED13 field. */
+#define EGU_INTENCLR_TRIGGERED13_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED13_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED13_Clear (1UL) /*!< Disable */
+
+/* Bit 12 : Write '1' to Disable interrupt for TRIGGERED[12] event */
+#define EGU_INTENCLR_TRIGGERED12_Pos (12UL) /*!< Position of TRIGGERED12 field. */
+#define EGU_INTENCLR_TRIGGERED12_Msk (0x1UL << EGU_INTENCLR_TRIGGERED12_Pos) /*!< Bit mask of TRIGGERED12 field. */
+#define EGU_INTENCLR_TRIGGERED12_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED12_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED12_Clear (1UL) /*!< Disable */
+
+/* Bit 11 : Write '1' to Disable interrupt for TRIGGERED[11] event */
+#define EGU_INTENCLR_TRIGGERED11_Pos (11UL) /*!< Position of TRIGGERED11 field. */
+#define EGU_INTENCLR_TRIGGERED11_Msk (0x1UL << EGU_INTENCLR_TRIGGERED11_Pos) /*!< Bit mask of TRIGGERED11 field. */
+#define EGU_INTENCLR_TRIGGERED11_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED11_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED11_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to Disable interrupt for TRIGGERED[10] event */
+#define EGU_INTENCLR_TRIGGERED10_Pos (10UL) /*!< Position of TRIGGERED10 field. */
+#define EGU_INTENCLR_TRIGGERED10_Msk (0x1UL << EGU_INTENCLR_TRIGGERED10_Pos) /*!< Bit mask of TRIGGERED10 field. */
+#define EGU_INTENCLR_TRIGGERED10_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED10_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED10_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to Disable interrupt for TRIGGERED[9] event */
+#define EGU_INTENCLR_TRIGGERED9_Pos (9UL) /*!< Position of TRIGGERED9 field. */
+#define EGU_INTENCLR_TRIGGERED9_Msk (0x1UL << EGU_INTENCLR_TRIGGERED9_Pos) /*!< Bit mask of TRIGGERED9 field. */
+#define EGU_INTENCLR_TRIGGERED9_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED9_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED9_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to Disable interrupt for TRIGGERED[8] event */
+#define EGU_INTENCLR_TRIGGERED8_Pos (8UL) /*!< Position of TRIGGERED8 field. */
+#define EGU_INTENCLR_TRIGGERED8_Msk (0x1UL << EGU_INTENCLR_TRIGGERED8_Pos) /*!< Bit mask of TRIGGERED8 field. */
+#define EGU_INTENCLR_TRIGGERED8_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED8_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED8_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for TRIGGERED[7] event */
+#define EGU_INTENCLR_TRIGGERED7_Pos (7UL) /*!< Position of TRIGGERED7 field. */
+#define EGU_INTENCLR_TRIGGERED7_Msk (0x1UL << EGU_INTENCLR_TRIGGERED7_Pos) /*!< Bit mask of TRIGGERED7 field. */
+#define EGU_INTENCLR_TRIGGERED7_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED7_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED7_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for TRIGGERED[6] event */
+#define EGU_INTENCLR_TRIGGERED6_Pos (6UL) /*!< Position of TRIGGERED6 field. */
+#define EGU_INTENCLR_TRIGGERED6_Msk (0x1UL << EGU_INTENCLR_TRIGGERED6_Pos) /*!< Bit mask of TRIGGERED6 field. */
+#define EGU_INTENCLR_TRIGGERED6_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED6_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED6_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for TRIGGERED[5] event */
+#define EGU_INTENCLR_TRIGGERED5_Pos (5UL) /*!< Position of TRIGGERED5 field. */
+#define EGU_INTENCLR_TRIGGERED5_Msk (0x1UL << EGU_INTENCLR_TRIGGERED5_Pos) /*!< Bit mask of TRIGGERED5 field. */
+#define EGU_INTENCLR_TRIGGERED5_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED5_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED5_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for TRIGGERED[4] event */
+#define EGU_INTENCLR_TRIGGERED4_Pos (4UL) /*!< Position of TRIGGERED4 field. */
+#define EGU_INTENCLR_TRIGGERED4_Msk (0x1UL << EGU_INTENCLR_TRIGGERED4_Pos) /*!< Bit mask of TRIGGERED4 field. */
+#define EGU_INTENCLR_TRIGGERED4_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED4_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED4_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for TRIGGERED[3] event */
+#define EGU_INTENCLR_TRIGGERED3_Pos (3UL) /*!< Position of TRIGGERED3 field. */
+#define EGU_INTENCLR_TRIGGERED3_Msk (0x1UL << EGU_INTENCLR_TRIGGERED3_Pos) /*!< Bit mask of TRIGGERED3 field. */
+#define EGU_INTENCLR_TRIGGERED3_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED3_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED3_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for TRIGGERED[2] event */
+#define EGU_INTENCLR_TRIGGERED2_Pos (2UL) /*!< Position of TRIGGERED2 field. */
+#define EGU_INTENCLR_TRIGGERED2_Msk (0x1UL << EGU_INTENCLR_TRIGGERED2_Pos) /*!< Bit mask of TRIGGERED2 field. */
+#define EGU_INTENCLR_TRIGGERED2_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED2_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED2_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for TRIGGERED[1] event */
+#define EGU_INTENCLR_TRIGGERED1_Pos (1UL) /*!< Position of TRIGGERED1 field. */
+#define EGU_INTENCLR_TRIGGERED1_Msk (0x1UL << EGU_INTENCLR_TRIGGERED1_Pos) /*!< Bit mask of TRIGGERED1 field. */
+#define EGU_INTENCLR_TRIGGERED1_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED1_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED1_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for TRIGGERED[0] event */
+#define EGU_INTENCLR_TRIGGERED0_Pos (0UL) /*!< Position of TRIGGERED0 field. */
+#define EGU_INTENCLR_TRIGGERED0_Msk (0x1UL << EGU_INTENCLR_TRIGGERED0_Pos) /*!< Bit mask of TRIGGERED0 field. */
+#define EGU_INTENCLR_TRIGGERED0_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED0_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED0_Clear (1UL) /*!< Disable */
+
+
+/* Peripheral: FICR */
+/* Description: Factory information configuration registers */
+
+/* Register: FICR_CODEPAGESIZE */
+/* Description: Code memory page size */
+
+/* Bits 31..0 : Code memory page size */
+#define FICR_CODEPAGESIZE_CODEPAGESIZE_Pos (0UL) /*!< Position of CODEPAGESIZE field. */
+#define FICR_CODEPAGESIZE_CODEPAGESIZE_Msk (0xFFFFFFFFUL << FICR_CODEPAGESIZE_CODEPAGESIZE_Pos) /*!< Bit mask of CODEPAGESIZE field. */
+
+/* Register: FICR_CODESIZE */
+/* Description: Code memory size */
+
+/* Bits 31..0 : Code memory size in number of pages */
+#define FICR_CODESIZE_CODESIZE_Pos (0UL) /*!< Position of CODESIZE field. */
+#define FICR_CODESIZE_CODESIZE_Msk (0xFFFFFFFFUL << FICR_CODESIZE_CODESIZE_Pos) /*!< Bit mask of CODESIZE field. */
+
+/* Register: FICR_DEVICEID */
+/* Description: Description collection[0]: Device identifier */
+
+/* Bits 31..0 : 64 bit unique device identifier */
+#define FICR_DEVICEID_DEVICEID_Pos (0UL) /*!< Position of DEVICEID field. */
+#define FICR_DEVICEID_DEVICEID_Msk (0xFFFFFFFFUL << FICR_DEVICEID_DEVICEID_Pos) /*!< Bit mask of DEVICEID field. */
+
+/* Register: FICR_ER */
+/* Description: Description collection[0]: Encryption root, word 0 */
+
+/* Bits 31..0 : Encryption root, word n */
+#define FICR_ER_ER_Pos (0UL) /*!< Position of ER field. */
+#define FICR_ER_ER_Msk (0xFFFFFFFFUL << FICR_ER_ER_Pos) /*!< Bit mask of ER field. */
+
+/* Register: FICR_IR */
+/* Description: Description collection[0]: Identity root, word 0 */
+
+/* Bits 31..0 : Identity root, word n */
+#define FICR_IR_IR_Pos (0UL) /*!< Position of IR field. */
+#define FICR_IR_IR_Msk (0xFFFFFFFFUL << FICR_IR_IR_Pos) /*!< Bit mask of IR field. */
+
+/* Register: FICR_DEVICEADDRTYPE */
+/* Description: Device address type */
+
+/* Bit 0 : Device address type */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Pos (0UL) /*!< Position of DEVICEADDRTYPE field. */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Msk (0x1UL << FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Pos) /*!< Bit mask of DEVICEADDRTYPE field. */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Public (0UL) /*!< Public address */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Random (1UL) /*!< Random address */
+
+/* Register: FICR_DEVICEADDR */
+/* Description: Description collection[0]: Device address 0 */
+
+/* Bits 31..0 : 48 bit device address */
+#define FICR_DEVICEADDR_DEVICEADDR_Pos (0UL) /*!< Position of DEVICEADDR field. */
+#define FICR_DEVICEADDR_DEVICEADDR_Msk (0xFFFFFFFFUL << FICR_DEVICEADDR_DEVICEADDR_Pos) /*!< Bit mask of DEVICEADDR field. */
+
+/* Register: FICR_INFO_PART */
+/* Description: Part code */
+
+/* Bits 31..0 : Part code */
+#define FICR_INFO_PART_PART_Pos (0UL) /*!< Position of PART field. */
+#define FICR_INFO_PART_PART_Msk (0xFFFFFFFFUL << FICR_INFO_PART_PART_Pos) /*!< Bit mask of PART field. */
+#define FICR_INFO_PART_PART_N52810 (0x52810UL) /*!< nRF52810 */
+#define FICR_INFO_PART_PART_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_INFO_VARIANT */
+/* Description: Part variant, hardware version and production configuration */
+
+/* Bits 31..0 : Part variant, hardware version and production configuration, encoded as ASCII */
+#define FICR_INFO_VARIANT_VARIANT_Pos (0UL) /*!< Position of VARIANT field. */
+#define FICR_INFO_VARIANT_VARIANT_Msk (0xFFFFFFFFUL << FICR_INFO_VARIANT_VARIANT_Pos) /*!< Bit mask of VARIANT field. */
+#define FICR_INFO_VARIANT_VARIANT_AAA0 (0x41414130UL) /*!< AAA0 */
+#define FICR_INFO_VARIANT_VARIANT_AAAA (0x41414141UL) /*!< AAAA */
+#define FICR_INFO_VARIANT_VARIANT_AAB0 (0x41414230UL) /*!< AAB0 */
+#define FICR_INFO_VARIANT_VARIANT_AABA (0x41414241UL) /*!< AABA */
+#define FICR_INFO_VARIANT_VARIANT_AABB (0x41414242UL) /*!< AABB */
+#define FICR_INFO_VARIANT_VARIANT_AAC0 (0x41414330UL) /*!< AAC0 */
+#define FICR_INFO_VARIANT_VARIANT_AACA (0x41414341UL) /*!< AACA */
+#define FICR_INFO_VARIANT_VARIANT_AACB (0x41414342UL) /*!< AACB */
+#define FICR_INFO_VARIANT_VARIANT_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_INFO_PACKAGE */
+/* Description: Package option */
+
+/* Bits 31..0 : Package option */
+#define FICR_INFO_PACKAGE_PACKAGE_Pos (0UL) /*!< Position of PACKAGE field. */
+#define FICR_INFO_PACKAGE_PACKAGE_Msk (0xFFFFFFFFUL << FICR_INFO_PACKAGE_PACKAGE_Pos) /*!< Bit mask of PACKAGE field. */
+#define FICR_INFO_PACKAGE_PACKAGE_QF (0x2000UL) /*!< QFxx - 48-pin QFN */
+#define FICR_INFO_PACKAGE_PACKAGE_QC (0x2003UL) /*!< QCxx - 32-pin QFN */
+#define FICR_INFO_PACKAGE_PACKAGE_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_INFO_RAM */
+/* Description: RAM variant */
+
+/* Bits 31..0 : RAM variant */
+#define FICR_INFO_RAM_RAM_Pos (0UL) /*!< Position of RAM field. */
+#define FICR_INFO_RAM_RAM_Msk (0xFFFFFFFFUL << FICR_INFO_RAM_RAM_Pos) /*!< Bit mask of RAM field. */
+#define FICR_INFO_RAM_RAM_K24 (0x18UL) /*!< 24 kByte RAM */
+#define FICR_INFO_RAM_RAM_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_INFO_FLASH */
+/* Description: Flash variant */
+
+/* Bits 31..0 : Flash variant */
+#define FICR_INFO_FLASH_FLASH_Pos (0UL) /*!< Position of FLASH field. */
+#define FICR_INFO_FLASH_FLASH_Msk (0xFFFFFFFFUL << FICR_INFO_FLASH_FLASH_Pos) /*!< Bit mask of FLASH field. */
+#define FICR_INFO_FLASH_FLASH_K192 (0xC0UL) /*!< 192 kByte flash */
+#define FICR_INFO_FLASH_FLASH_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_TEMP_A0 */
+/* Description: Slope definition A0 */
+
+/* Bits 11..0 : A (slope definition) register */
+#define FICR_TEMP_A0_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A0_A_Msk (0xFFFUL << FICR_TEMP_A0_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A1 */
+/* Description: Slope definition A1 */
+
+/* Bits 11..0 : A (slope definition) register */
+#define FICR_TEMP_A1_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A1_A_Msk (0xFFFUL << FICR_TEMP_A1_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A2 */
+/* Description: Slope definition A2 */
+
+/* Bits 11..0 : A (slope definition) register */
+#define FICR_TEMP_A2_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A2_A_Msk (0xFFFUL << FICR_TEMP_A2_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A3 */
+/* Description: Slope definition A3 */
+
+/* Bits 11..0 : A (slope definition) register */
+#define FICR_TEMP_A3_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A3_A_Msk (0xFFFUL << FICR_TEMP_A3_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A4 */
+/* Description: Slope definition A4 */
+
+/* Bits 11..0 : A (slope definition) register */
+#define FICR_TEMP_A4_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A4_A_Msk (0xFFFUL << FICR_TEMP_A4_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A5 */
+/* Description: Slope definition A5 */
+
+/* Bits 11..0 : A (slope definition) register */
+#define FICR_TEMP_A5_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A5_A_Msk (0xFFFUL << FICR_TEMP_A5_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_B0 */
+/* Description: Y-intercept B0 */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B0_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B0_B_Msk (0x3FFFUL << FICR_TEMP_B0_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B1 */
+/* Description: Y-intercept B1 */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B1_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B1_B_Msk (0x3FFFUL << FICR_TEMP_B1_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B2 */
+/* Description: Y-intercept B2 */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B2_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B2_B_Msk (0x3FFFUL << FICR_TEMP_B2_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B3 */
+/* Description: Y-intercept B3 */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B3_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B3_B_Msk (0x3FFFUL << FICR_TEMP_B3_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B4 */
+/* Description: Y-intercept B4 */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B4_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B4_B_Msk (0x3FFFUL << FICR_TEMP_B4_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B5 */
+/* Description: Y-intercept B5 */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B5_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B5_B_Msk (0x3FFFUL << FICR_TEMP_B5_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_T0 */
+/* Description: Segment end T0 */
+
+/* Bits 7..0 : T (segment end) register */
+#define FICR_TEMP_T0_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T0_T_Msk (0xFFUL << FICR_TEMP_T0_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_TEMP_T1 */
+/* Description: Segment end T1 */
+
+/* Bits 7..0 : T (segment end) register */
+#define FICR_TEMP_T1_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T1_T_Msk (0xFFUL << FICR_TEMP_T1_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_TEMP_T2 */
+/* Description: Segment end T2 */
+
+/* Bits 7..0 : T (segment end) register */
+#define FICR_TEMP_T2_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T2_T_Msk (0xFFUL << FICR_TEMP_T2_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_TEMP_T3 */
+/* Description: Segment end T3 */
+
+/* Bits 7..0 : T (segment end) register */
+#define FICR_TEMP_T3_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T3_T_Msk (0xFFUL << FICR_TEMP_T3_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_TEMP_T4 */
+/* Description: Segment end T4 */
+
+/* Bits 7..0 : T (segment end) register */
+#define FICR_TEMP_T4_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T4_T_Msk (0xFFUL << FICR_TEMP_T4_T_Pos) /*!< Bit mask of T field. */
+
+
+/* Peripheral: GPIOTE */
+/* Description: GPIO Tasks and Events */
+
+/* Register: GPIOTE_TASKS_OUT */
+/* Description: Description collection[0]: Task for writing to pin specified in CONFIG[0].PSEL. Action on pin is configured in CONFIG[0].POLARITY. */
+
+/* Bit 0 : */
+#define GPIOTE_TASKS_OUT_TASKS_OUT_Pos (0UL) /*!< Position of TASKS_OUT field. */
+#define GPIOTE_TASKS_OUT_TASKS_OUT_Msk (0x1UL << GPIOTE_TASKS_OUT_TASKS_OUT_Pos) /*!< Bit mask of TASKS_OUT field. */
+
+/* Register: GPIOTE_TASKS_SET */
+/* Description: Description collection[0]: Task for writing to pin specified in CONFIG[0].PSEL. Action on pin is to set it high. */
+
+/* Bit 0 : */
+#define GPIOTE_TASKS_SET_TASKS_SET_Pos (0UL) /*!< Position of TASKS_SET field. */
+#define GPIOTE_TASKS_SET_TASKS_SET_Msk (0x1UL << GPIOTE_TASKS_SET_TASKS_SET_Pos) /*!< Bit mask of TASKS_SET field. */
+
+/* Register: GPIOTE_TASKS_CLR */
+/* Description: Description collection[0]: Task for writing to pin specified in CONFIG[0].PSEL. Action on pin is to set it low. */
+
+/* Bit 0 : */
+#define GPIOTE_TASKS_CLR_TASKS_CLR_Pos (0UL) /*!< Position of TASKS_CLR field. */
+#define GPIOTE_TASKS_CLR_TASKS_CLR_Msk (0x1UL << GPIOTE_TASKS_CLR_TASKS_CLR_Pos) /*!< Bit mask of TASKS_CLR field. */
+
+/* Register: GPIOTE_EVENTS_IN */
+/* Description: Description collection[0]: Event generated from pin specified in CONFIG[0].PSEL */
+
+/* Bit 0 : */
+#define GPIOTE_EVENTS_IN_EVENTS_IN_Pos (0UL) /*!< Position of EVENTS_IN field. */
+#define GPIOTE_EVENTS_IN_EVENTS_IN_Msk (0x1UL << GPIOTE_EVENTS_IN_EVENTS_IN_Pos) /*!< Bit mask of EVENTS_IN field. */
+
+/* Register: GPIOTE_EVENTS_PORT */
+/* Description: Event generated from multiple input GPIO pins with SENSE mechanism enabled */
+
+/* Bit 0 : */
+#define GPIOTE_EVENTS_PORT_EVENTS_PORT_Pos (0UL) /*!< Position of EVENTS_PORT field. */
+#define GPIOTE_EVENTS_PORT_EVENTS_PORT_Msk (0x1UL << GPIOTE_EVENTS_PORT_EVENTS_PORT_Pos) /*!< Bit mask of EVENTS_PORT field. */
+
+/* Register: GPIOTE_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 31 : Write '1' to Enable interrupt for PORT event */
+#define GPIOTE_INTENSET_PORT_Pos (31UL) /*!< Position of PORT field. */
+#define GPIOTE_INTENSET_PORT_Msk (0x1UL << GPIOTE_INTENSET_PORT_Pos) /*!< Bit mask of PORT field. */
+#define GPIOTE_INTENSET_PORT_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_PORT_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_PORT_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for IN[7] event */
+#define GPIOTE_INTENSET_IN7_Pos (7UL) /*!< Position of IN7 field. */
+#define GPIOTE_INTENSET_IN7_Msk (0x1UL << GPIOTE_INTENSET_IN7_Pos) /*!< Bit mask of IN7 field. */
+#define GPIOTE_INTENSET_IN7_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN7_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN7_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for IN[6] event */
+#define GPIOTE_INTENSET_IN6_Pos (6UL) /*!< Position of IN6 field. */
+#define GPIOTE_INTENSET_IN6_Msk (0x1UL << GPIOTE_INTENSET_IN6_Pos) /*!< Bit mask of IN6 field. */
+#define GPIOTE_INTENSET_IN6_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN6_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN6_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for IN[5] event */
+#define GPIOTE_INTENSET_IN5_Pos (5UL) /*!< Position of IN5 field. */
+#define GPIOTE_INTENSET_IN5_Msk (0x1UL << GPIOTE_INTENSET_IN5_Pos) /*!< Bit mask of IN5 field. */
+#define GPIOTE_INTENSET_IN5_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN5_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN5_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for IN[4] event */
+#define GPIOTE_INTENSET_IN4_Pos (4UL) /*!< Position of IN4 field. */
+#define GPIOTE_INTENSET_IN4_Msk (0x1UL << GPIOTE_INTENSET_IN4_Pos) /*!< Bit mask of IN4 field. */
+#define GPIOTE_INTENSET_IN4_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN4_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN4_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for IN[3] event */
+#define GPIOTE_INTENSET_IN3_Pos (3UL) /*!< Position of IN3 field. */
+#define GPIOTE_INTENSET_IN3_Msk (0x1UL << GPIOTE_INTENSET_IN3_Pos) /*!< Bit mask of IN3 field. */
+#define GPIOTE_INTENSET_IN3_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN3_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN3_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for IN[2] event */
+#define GPIOTE_INTENSET_IN2_Pos (2UL) /*!< Position of IN2 field. */
+#define GPIOTE_INTENSET_IN2_Msk (0x1UL << GPIOTE_INTENSET_IN2_Pos) /*!< Bit mask of IN2 field. */
+#define GPIOTE_INTENSET_IN2_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN2_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN2_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for IN[1] event */
+#define GPIOTE_INTENSET_IN1_Pos (1UL) /*!< Position of IN1 field. */
+#define GPIOTE_INTENSET_IN1_Msk (0x1UL << GPIOTE_INTENSET_IN1_Pos) /*!< Bit mask of IN1 field. */
+#define GPIOTE_INTENSET_IN1_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN1_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN1_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for IN[0] event */
+#define GPIOTE_INTENSET_IN0_Pos (0UL) /*!< Position of IN0 field. */
+#define GPIOTE_INTENSET_IN0_Msk (0x1UL << GPIOTE_INTENSET_IN0_Pos) /*!< Bit mask of IN0 field. */
+#define GPIOTE_INTENSET_IN0_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN0_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN0_Set (1UL) /*!< Enable */
+
+/* Register: GPIOTE_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 31 : Write '1' to Disable interrupt for PORT event */
+#define GPIOTE_INTENCLR_PORT_Pos (31UL) /*!< Position of PORT field. */
+#define GPIOTE_INTENCLR_PORT_Msk (0x1UL << GPIOTE_INTENCLR_PORT_Pos) /*!< Bit mask of PORT field. */
+#define GPIOTE_INTENCLR_PORT_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_PORT_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_PORT_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for IN[7] event */
+#define GPIOTE_INTENCLR_IN7_Pos (7UL) /*!< Position of IN7 field. */
+#define GPIOTE_INTENCLR_IN7_Msk (0x1UL << GPIOTE_INTENCLR_IN7_Pos) /*!< Bit mask of IN7 field. */
+#define GPIOTE_INTENCLR_IN7_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN7_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN7_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for IN[6] event */
+#define GPIOTE_INTENCLR_IN6_Pos (6UL) /*!< Position of IN6 field. */
+#define GPIOTE_INTENCLR_IN6_Msk (0x1UL << GPIOTE_INTENCLR_IN6_Pos) /*!< Bit mask of IN6 field. */
+#define GPIOTE_INTENCLR_IN6_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN6_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN6_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for IN[5] event */
+#define GPIOTE_INTENCLR_IN5_Pos (5UL) /*!< Position of IN5 field. */
+#define GPIOTE_INTENCLR_IN5_Msk (0x1UL << GPIOTE_INTENCLR_IN5_Pos) /*!< Bit mask of IN5 field. */
+#define GPIOTE_INTENCLR_IN5_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN5_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN5_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for IN[4] event */
+#define GPIOTE_INTENCLR_IN4_Pos (4UL) /*!< Position of IN4 field. */
+#define GPIOTE_INTENCLR_IN4_Msk (0x1UL << GPIOTE_INTENCLR_IN4_Pos) /*!< Bit mask of IN4 field. */
+#define GPIOTE_INTENCLR_IN4_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN4_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN4_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for IN[3] event */
+#define GPIOTE_INTENCLR_IN3_Pos (3UL) /*!< Position of IN3 field. */
+#define GPIOTE_INTENCLR_IN3_Msk (0x1UL << GPIOTE_INTENCLR_IN3_Pos) /*!< Bit mask of IN3 field. */
+#define GPIOTE_INTENCLR_IN3_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN3_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN3_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for IN[2] event */
+#define GPIOTE_INTENCLR_IN2_Pos (2UL) /*!< Position of IN2 field. */
+#define GPIOTE_INTENCLR_IN2_Msk (0x1UL << GPIOTE_INTENCLR_IN2_Pos) /*!< Bit mask of IN2 field. */
+#define GPIOTE_INTENCLR_IN2_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN2_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN2_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for IN[1] event */
+#define GPIOTE_INTENCLR_IN1_Pos (1UL) /*!< Position of IN1 field. */
+#define GPIOTE_INTENCLR_IN1_Msk (0x1UL << GPIOTE_INTENCLR_IN1_Pos) /*!< Bit mask of IN1 field. */
+#define GPIOTE_INTENCLR_IN1_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN1_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN1_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for IN[0] event */
+#define GPIOTE_INTENCLR_IN0_Pos (0UL) /*!< Position of IN0 field. */
+#define GPIOTE_INTENCLR_IN0_Msk (0x1UL << GPIOTE_INTENCLR_IN0_Pos) /*!< Bit mask of IN0 field. */
+#define GPIOTE_INTENCLR_IN0_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN0_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN0_Clear (1UL) /*!< Disable */
+
+/* Register: GPIOTE_CONFIG */
+/* Description: Description collection[0]: Configuration for OUT[n], SET[n] and CLR[n] tasks and IN[n] event */
+
+/* Bit 20 : When in task mode: Initial value of the output when the GPIOTE channel is configured. When in event mode: No effect. */
+#define GPIOTE_CONFIG_OUTINIT_Pos (20UL) /*!< Position of OUTINIT field. */
+#define GPIOTE_CONFIG_OUTINIT_Msk (0x1UL << GPIOTE_CONFIG_OUTINIT_Pos) /*!< Bit mask of OUTINIT field. */
+#define GPIOTE_CONFIG_OUTINIT_Low (0UL) /*!< Task mode: Initial value of pin before task triggering is low */
+#define GPIOTE_CONFIG_OUTINIT_High (1UL) /*!< Task mode: Initial value of pin before task triggering is high */
+
+/* Bits 17..16 : When In task mode: Operation to be performed on output when OUT[n] task is triggered. When In event mode: Operation on input that shall trigger IN[n] event. */
+#define GPIOTE_CONFIG_POLARITY_Pos (16UL) /*!< Position of POLARITY field. */
+#define GPIOTE_CONFIG_POLARITY_Msk (0x3UL << GPIOTE_CONFIG_POLARITY_Pos) /*!< Bit mask of POLARITY field. */
+#define GPIOTE_CONFIG_POLARITY_None (0UL) /*!< Task mode: No effect on pin from OUT[n] task. Event mode: no IN[n] event generated on pin activity. */
+#define GPIOTE_CONFIG_POLARITY_LoToHi (1UL) /*!< Task mode: Set pin from OUT[n] task. Event mode: Generate IN[n] event when rising edge on pin. */
+#define GPIOTE_CONFIG_POLARITY_HiToLo (2UL) /*!< Task mode: Clear pin from OUT[n] task. Event mode: Generate IN[n] event when falling edge on pin. */
+#define GPIOTE_CONFIG_POLARITY_Toggle (3UL) /*!< Task mode: Toggle pin from OUT[n]. Event mode: Generate IN[n] when any change on pin. */
+
+/* Bits 12..8 : GPIO number associated with SET[n], CLR[n] and OUT[n] tasks and IN[n] event */
+#define GPIOTE_CONFIG_PSEL_Pos (8UL) /*!< Position of PSEL field. */
+#define GPIOTE_CONFIG_PSEL_Msk (0x1FUL << GPIOTE_CONFIG_PSEL_Pos) /*!< Bit mask of PSEL field. */
+
+/* Bits 1..0 : Mode */
+#define GPIOTE_CONFIG_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define GPIOTE_CONFIG_MODE_Msk (0x3UL << GPIOTE_CONFIG_MODE_Pos) /*!< Bit mask of MODE field. */
+#define GPIOTE_CONFIG_MODE_Disabled (0UL) /*!< Disabled. Pin specified by PSEL will not be acquired by the GPIOTE module. */
+#define GPIOTE_CONFIG_MODE_Event (1UL) /*!< Event mode */
+#define GPIOTE_CONFIG_MODE_Task (3UL) /*!< Task mode */
+
+
+/* Peripheral: NVMC */
+/* Description: Non-volatile memory controller */
+
+/* Register: NVMC_READY */
+/* Description: Ready flag */
+
+/* Bit 0 : NVMC is ready or busy */
+#define NVMC_READY_READY_Pos (0UL) /*!< Position of READY field. */
+#define NVMC_READY_READY_Msk (0x1UL << NVMC_READY_READY_Pos) /*!< Bit mask of READY field. */
+#define NVMC_READY_READY_Busy (0UL) /*!< NVMC is busy (ongoing write or erase operation) */
+#define NVMC_READY_READY_Ready (1UL) /*!< NVMC is ready */
+
+/* Register: NVMC_CONFIG */
+/* Description: Configuration register */
+
+/* Bits 1..0 : Program memory access mode. It is strongly recommended to activate erase and write modes only when they are actively used. */
+#define NVMC_CONFIG_WEN_Pos (0UL) /*!< Position of WEN field. */
+#define NVMC_CONFIG_WEN_Msk (0x3UL << NVMC_CONFIG_WEN_Pos) /*!< Bit mask of WEN field. */
+#define NVMC_CONFIG_WEN_Ren (0UL) /*!< Read only access */
+#define NVMC_CONFIG_WEN_Wen (1UL) /*!< Write enabled */
+#define NVMC_CONFIG_WEN_Een (2UL) /*!< Erase enabled */
+
+/* Register: NVMC_ERASEPCR1 */
+/* Description: Deprecated register - Register for erasing a page in code area. Equivalent to ERASEPAGE. */
+
+/* Bits 31..0 : Register for erasing a page in code area. Equivalent to ERASEPAGE. */
+#define NVMC_ERASEPCR1_ERASEPCR1_Pos (0UL) /*!< Position of ERASEPCR1 field. */
+#define NVMC_ERASEPCR1_ERASEPCR1_Msk (0xFFFFFFFFUL << NVMC_ERASEPCR1_ERASEPCR1_Pos) /*!< Bit mask of ERASEPCR1 field. */
+
+/* Register: NVMC_ERASEPAGE */
+/* Description: Register for erasing a page in code area */
+
+/* Bits 31..0 : Register for starting erase of a page in code area. */
+#define NVMC_ERASEPAGE_ERASEPAGE_Pos (0UL) /*!< Position of ERASEPAGE field. */
+#define NVMC_ERASEPAGE_ERASEPAGE_Msk (0xFFFFFFFFUL << NVMC_ERASEPAGE_ERASEPAGE_Pos) /*!< Bit mask of ERASEPAGE field. */
+
+/* Register: NVMC_ERASEALL */
+/* Description: Register for erasing all non-volatile user memory */
+
+/* Bit 0 : Erase all non-volatile memory including UICR registers. Note that the erase must be enabled using CONFIG.WEN before the non-volatile memory can be erased. */
+#define NVMC_ERASEALL_ERASEALL_Pos (0UL) /*!< Position of ERASEALL field. */
+#define NVMC_ERASEALL_ERASEALL_Msk (0x1UL << NVMC_ERASEALL_ERASEALL_Pos) /*!< Bit mask of ERASEALL field. */
+#define NVMC_ERASEALL_ERASEALL_NoOperation (0UL) /*!< No operation */
+#define NVMC_ERASEALL_ERASEALL_Erase (1UL) /*!< Start erase of chip */
+
+/* Register: NVMC_ERASEPCR0 */
+/* Description: Deprecated register - Register for erasing a page in code area. Equivalent to ERASEPAGE. */
+
+/* Bits 31..0 : Register for starting erase of a page in code area. Equivalent to ERASEPAGE. */
+#define NVMC_ERASEPCR0_ERASEPCR0_Pos (0UL) /*!< Position of ERASEPCR0 field. */
+#define NVMC_ERASEPCR0_ERASEPCR0_Msk (0xFFFFFFFFUL << NVMC_ERASEPCR0_ERASEPCR0_Pos) /*!< Bit mask of ERASEPCR0 field. */
+
+/* Register: NVMC_ERASEUICR */
+/* Description: Register for erasing user information configuration registers */
+
+/* Bit 0 : Register starting erase of all user information configuration registers. Note that the erase must be enabled using CONFIG.WEN before the UICR can be erased. */
+#define NVMC_ERASEUICR_ERASEUICR_Pos (0UL) /*!< Position of ERASEUICR field. */
+#define NVMC_ERASEUICR_ERASEUICR_Msk (0x1UL << NVMC_ERASEUICR_ERASEUICR_Pos) /*!< Bit mask of ERASEUICR field. */
+#define NVMC_ERASEUICR_ERASEUICR_NoOperation (0UL) /*!< No operation */
+#define NVMC_ERASEUICR_ERASEUICR_Erase (1UL) /*!< Start erase of UICR */
+
+
+/* Peripheral: GPIO */
+/* Description: GPIO Port */
+
+/* Register: GPIO_OUT */
+/* Description: Write GPIO port */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_OUT_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_OUT_PIN31_Msk (0x1UL << GPIO_OUT_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_OUT_PIN31_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN31_High (1UL) /*!< Pin driver is high */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_OUT_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_OUT_PIN30_Msk (0x1UL << GPIO_OUT_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_OUT_PIN30_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN30_High (1UL) /*!< Pin driver is high */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_OUT_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_OUT_PIN29_Msk (0x1UL << GPIO_OUT_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_OUT_PIN29_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN29_High (1UL) /*!< Pin driver is high */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_OUT_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_OUT_PIN28_Msk (0x1UL << GPIO_OUT_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_OUT_PIN28_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN28_High (1UL) /*!< Pin driver is high */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_OUT_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_OUT_PIN27_Msk (0x1UL << GPIO_OUT_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_OUT_PIN27_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN27_High (1UL) /*!< Pin driver is high */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_OUT_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_OUT_PIN26_Msk (0x1UL << GPIO_OUT_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_OUT_PIN26_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN26_High (1UL) /*!< Pin driver is high */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_OUT_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_OUT_PIN25_Msk (0x1UL << GPIO_OUT_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_OUT_PIN25_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN25_High (1UL) /*!< Pin driver is high */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_OUT_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_OUT_PIN24_Msk (0x1UL << GPIO_OUT_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_OUT_PIN24_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN24_High (1UL) /*!< Pin driver is high */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_OUT_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_OUT_PIN23_Msk (0x1UL << GPIO_OUT_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_OUT_PIN23_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN23_High (1UL) /*!< Pin driver is high */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_OUT_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_OUT_PIN22_Msk (0x1UL << GPIO_OUT_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_OUT_PIN22_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN22_High (1UL) /*!< Pin driver is high */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_OUT_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_OUT_PIN21_Msk (0x1UL << GPIO_OUT_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_OUT_PIN21_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN21_High (1UL) /*!< Pin driver is high */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_OUT_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_OUT_PIN20_Msk (0x1UL << GPIO_OUT_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_OUT_PIN20_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN20_High (1UL) /*!< Pin driver is high */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_OUT_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_OUT_PIN19_Msk (0x1UL << GPIO_OUT_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_OUT_PIN19_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN19_High (1UL) /*!< Pin driver is high */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_OUT_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_OUT_PIN18_Msk (0x1UL << GPIO_OUT_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_OUT_PIN18_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN18_High (1UL) /*!< Pin driver is high */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_OUT_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_OUT_PIN17_Msk (0x1UL << GPIO_OUT_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_OUT_PIN17_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN17_High (1UL) /*!< Pin driver is high */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_OUT_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_OUT_PIN16_Msk (0x1UL << GPIO_OUT_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_OUT_PIN16_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN16_High (1UL) /*!< Pin driver is high */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_OUT_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_OUT_PIN15_Msk (0x1UL << GPIO_OUT_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_OUT_PIN15_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN15_High (1UL) /*!< Pin driver is high */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_OUT_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_OUT_PIN14_Msk (0x1UL << GPIO_OUT_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_OUT_PIN14_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN14_High (1UL) /*!< Pin driver is high */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_OUT_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_OUT_PIN13_Msk (0x1UL << GPIO_OUT_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_OUT_PIN13_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN13_High (1UL) /*!< Pin driver is high */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_OUT_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_OUT_PIN12_Msk (0x1UL << GPIO_OUT_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_OUT_PIN12_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN12_High (1UL) /*!< Pin driver is high */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_OUT_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_OUT_PIN11_Msk (0x1UL << GPIO_OUT_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_OUT_PIN11_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN11_High (1UL) /*!< Pin driver is high */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_OUT_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_OUT_PIN10_Msk (0x1UL << GPIO_OUT_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_OUT_PIN10_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN10_High (1UL) /*!< Pin driver is high */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_OUT_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_OUT_PIN9_Msk (0x1UL << GPIO_OUT_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_OUT_PIN9_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN9_High (1UL) /*!< Pin driver is high */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_OUT_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_OUT_PIN8_Msk (0x1UL << GPIO_OUT_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_OUT_PIN8_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN8_High (1UL) /*!< Pin driver is high */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_OUT_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_OUT_PIN7_Msk (0x1UL << GPIO_OUT_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_OUT_PIN7_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN7_High (1UL) /*!< Pin driver is high */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_OUT_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_OUT_PIN6_Msk (0x1UL << GPIO_OUT_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_OUT_PIN6_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN6_High (1UL) /*!< Pin driver is high */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_OUT_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_OUT_PIN5_Msk (0x1UL << GPIO_OUT_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_OUT_PIN5_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN5_High (1UL) /*!< Pin driver is high */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_OUT_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_OUT_PIN4_Msk (0x1UL << GPIO_OUT_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_OUT_PIN4_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN4_High (1UL) /*!< Pin driver is high */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_OUT_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_OUT_PIN3_Msk (0x1UL << GPIO_OUT_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_OUT_PIN3_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN3_High (1UL) /*!< Pin driver is high */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_OUT_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_OUT_PIN2_Msk (0x1UL << GPIO_OUT_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_OUT_PIN2_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN2_High (1UL) /*!< Pin driver is high */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_OUT_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_OUT_PIN1_Msk (0x1UL << GPIO_OUT_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_OUT_PIN1_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN1_High (1UL) /*!< Pin driver is high */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_OUT_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_OUT_PIN0_Msk (0x1UL << GPIO_OUT_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_OUT_PIN0_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN0_High (1UL) /*!< Pin driver is high */
+
+/* Register: GPIO_OUTSET */
+/* Description: Set individual bits in GPIO port */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_OUTSET_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_OUTSET_PIN31_Msk (0x1UL << GPIO_OUTSET_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_OUTSET_PIN31_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN31_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN31_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_OUTSET_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_OUTSET_PIN30_Msk (0x1UL << GPIO_OUTSET_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_OUTSET_PIN30_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN30_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN30_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_OUTSET_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_OUTSET_PIN29_Msk (0x1UL << GPIO_OUTSET_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_OUTSET_PIN29_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN29_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN29_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_OUTSET_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_OUTSET_PIN28_Msk (0x1UL << GPIO_OUTSET_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_OUTSET_PIN28_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN28_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN28_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_OUTSET_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_OUTSET_PIN27_Msk (0x1UL << GPIO_OUTSET_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_OUTSET_PIN27_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN27_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN27_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_OUTSET_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_OUTSET_PIN26_Msk (0x1UL << GPIO_OUTSET_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_OUTSET_PIN26_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN26_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN26_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_OUTSET_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_OUTSET_PIN25_Msk (0x1UL << GPIO_OUTSET_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_OUTSET_PIN25_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN25_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN25_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_OUTSET_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_OUTSET_PIN24_Msk (0x1UL << GPIO_OUTSET_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_OUTSET_PIN24_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN24_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN24_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_OUTSET_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_OUTSET_PIN23_Msk (0x1UL << GPIO_OUTSET_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_OUTSET_PIN23_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN23_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN23_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_OUTSET_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_OUTSET_PIN22_Msk (0x1UL << GPIO_OUTSET_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_OUTSET_PIN22_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN22_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN22_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_OUTSET_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_OUTSET_PIN21_Msk (0x1UL << GPIO_OUTSET_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_OUTSET_PIN21_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN21_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN21_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_OUTSET_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_OUTSET_PIN20_Msk (0x1UL << GPIO_OUTSET_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_OUTSET_PIN20_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN20_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN20_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_OUTSET_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_OUTSET_PIN19_Msk (0x1UL << GPIO_OUTSET_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_OUTSET_PIN19_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN19_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN19_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_OUTSET_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_OUTSET_PIN18_Msk (0x1UL << GPIO_OUTSET_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_OUTSET_PIN18_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN18_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN18_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_OUTSET_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_OUTSET_PIN17_Msk (0x1UL << GPIO_OUTSET_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_OUTSET_PIN17_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN17_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN17_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_OUTSET_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_OUTSET_PIN16_Msk (0x1UL << GPIO_OUTSET_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_OUTSET_PIN16_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN16_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN16_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_OUTSET_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_OUTSET_PIN15_Msk (0x1UL << GPIO_OUTSET_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_OUTSET_PIN15_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN15_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN15_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_OUTSET_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_OUTSET_PIN14_Msk (0x1UL << GPIO_OUTSET_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_OUTSET_PIN14_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN14_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN14_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_OUTSET_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_OUTSET_PIN13_Msk (0x1UL << GPIO_OUTSET_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_OUTSET_PIN13_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN13_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN13_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_OUTSET_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_OUTSET_PIN12_Msk (0x1UL << GPIO_OUTSET_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_OUTSET_PIN12_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN12_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN12_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_OUTSET_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_OUTSET_PIN11_Msk (0x1UL << GPIO_OUTSET_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_OUTSET_PIN11_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN11_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN11_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_OUTSET_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_OUTSET_PIN10_Msk (0x1UL << GPIO_OUTSET_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_OUTSET_PIN10_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN10_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN10_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_OUTSET_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_OUTSET_PIN9_Msk (0x1UL << GPIO_OUTSET_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_OUTSET_PIN9_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN9_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN9_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_OUTSET_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_OUTSET_PIN8_Msk (0x1UL << GPIO_OUTSET_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_OUTSET_PIN8_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN8_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN8_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_OUTSET_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_OUTSET_PIN7_Msk (0x1UL << GPIO_OUTSET_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_OUTSET_PIN7_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN7_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN7_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_OUTSET_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_OUTSET_PIN6_Msk (0x1UL << GPIO_OUTSET_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_OUTSET_PIN6_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN6_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN6_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_OUTSET_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_OUTSET_PIN5_Msk (0x1UL << GPIO_OUTSET_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_OUTSET_PIN5_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN5_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN5_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_OUTSET_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_OUTSET_PIN4_Msk (0x1UL << GPIO_OUTSET_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_OUTSET_PIN4_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN4_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN4_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_OUTSET_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_OUTSET_PIN3_Msk (0x1UL << GPIO_OUTSET_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_OUTSET_PIN3_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN3_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN3_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_OUTSET_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_OUTSET_PIN2_Msk (0x1UL << GPIO_OUTSET_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_OUTSET_PIN2_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN2_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN2_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_OUTSET_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_OUTSET_PIN1_Msk (0x1UL << GPIO_OUTSET_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_OUTSET_PIN1_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN1_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN1_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_OUTSET_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_OUTSET_PIN0_Msk (0x1UL << GPIO_OUTSET_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_OUTSET_PIN0_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN0_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN0_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Register: GPIO_OUTCLR */
+/* Description: Clear individual bits in GPIO port */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_OUTCLR_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_OUTCLR_PIN31_Msk (0x1UL << GPIO_OUTCLR_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_OUTCLR_PIN31_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN31_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN31_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_OUTCLR_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_OUTCLR_PIN30_Msk (0x1UL << GPIO_OUTCLR_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_OUTCLR_PIN30_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN30_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN30_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_OUTCLR_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_OUTCLR_PIN29_Msk (0x1UL << GPIO_OUTCLR_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_OUTCLR_PIN29_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN29_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN29_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_OUTCLR_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_OUTCLR_PIN28_Msk (0x1UL << GPIO_OUTCLR_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_OUTCLR_PIN28_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN28_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN28_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_OUTCLR_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_OUTCLR_PIN27_Msk (0x1UL << GPIO_OUTCLR_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_OUTCLR_PIN27_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN27_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN27_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_OUTCLR_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_OUTCLR_PIN26_Msk (0x1UL << GPIO_OUTCLR_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_OUTCLR_PIN26_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN26_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN26_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_OUTCLR_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_OUTCLR_PIN25_Msk (0x1UL << GPIO_OUTCLR_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_OUTCLR_PIN25_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN25_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN25_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_OUTCLR_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_OUTCLR_PIN24_Msk (0x1UL << GPIO_OUTCLR_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_OUTCLR_PIN24_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN24_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN24_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_OUTCLR_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_OUTCLR_PIN23_Msk (0x1UL << GPIO_OUTCLR_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_OUTCLR_PIN23_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN23_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN23_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_OUTCLR_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_OUTCLR_PIN22_Msk (0x1UL << GPIO_OUTCLR_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_OUTCLR_PIN22_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN22_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN22_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_OUTCLR_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_OUTCLR_PIN21_Msk (0x1UL << GPIO_OUTCLR_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_OUTCLR_PIN21_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN21_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN21_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_OUTCLR_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_OUTCLR_PIN20_Msk (0x1UL << GPIO_OUTCLR_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_OUTCLR_PIN20_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN20_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN20_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_OUTCLR_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_OUTCLR_PIN19_Msk (0x1UL << GPIO_OUTCLR_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_OUTCLR_PIN19_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN19_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN19_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_OUTCLR_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_OUTCLR_PIN18_Msk (0x1UL << GPIO_OUTCLR_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_OUTCLR_PIN18_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN18_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN18_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_OUTCLR_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_OUTCLR_PIN17_Msk (0x1UL << GPIO_OUTCLR_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_OUTCLR_PIN17_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN17_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN17_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_OUTCLR_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_OUTCLR_PIN16_Msk (0x1UL << GPIO_OUTCLR_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_OUTCLR_PIN16_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN16_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN16_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_OUTCLR_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_OUTCLR_PIN15_Msk (0x1UL << GPIO_OUTCLR_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_OUTCLR_PIN15_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN15_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN15_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_OUTCLR_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_OUTCLR_PIN14_Msk (0x1UL << GPIO_OUTCLR_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_OUTCLR_PIN14_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN14_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN14_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_OUTCLR_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_OUTCLR_PIN13_Msk (0x1UL << GPIO_OUTCLR_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_OUTCLR_PIN13_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN13_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN13_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_OUTCLR_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_OUTCLR_PIN12_Msk (0x1UL << GPIO_OUTCLR_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_OUTCLR_PIN12_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN12_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN12_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_OUTCLR_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_OUTCLR_PIN11_Msk (0x1UL << GPIO_OUTCLR_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_OUTCLR_PIN11_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN11_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN11_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_OUTCLR_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_OUTCLR_PIN10_Msk (0x1UL << GPIO_OUTCLR_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_OUTCLR_PIN10_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN10_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN10_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_OUTCLR_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_OUTCLR_PIN9_Msk (0x1UL << GPIO_OUTCLR_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_OUTCLR_PIN9_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN9_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN9_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_OUTCLR_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_OUTCLR_PIN8_Msk (0x1UL << GPIO_OUTCLR_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_OUTCLR_PIN8_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN8_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN8_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_OUTCLR_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_OUTCLR_PIN7_Msk (0x1UL << GPIO_OUTCLR_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_OUTCLR_PIN7_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN7_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN7_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_OUTCLR_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_OUTCLR_PIN6_Msk (0x1UL << GPIO_OUTCLR_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_OUTCLR_PIN6_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN6_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN6_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_OUTCLR_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_OUTCLR_PIN5_Msk (0x1UL << GPIO_OUTCLR_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_OUTCLR_PIN5_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN5_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN5_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_OUTCLR_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_OUTCLR_PIN4_Msk (0x1UL << GPIO_OUTCLR_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_OUTCLR_PIN4_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN4_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN4_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_OUTCLR_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_OUTCLR_PIN3_Msk (0x1UL << GPIO_OUTCLR_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_OUTCLR_PIN3_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN3_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN3_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_OUTCLR_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_OUTCLR_PIN2_Msk (0x1UL << GPIO_OUTCLR_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_OUTCLR_PIN2_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN2_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN2_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_OUTCLR_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_OUTCLR_PIN1_Msk (0x1UL << GPIO_OUTCLR_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_OUTCLR_PIN1_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN1_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN1_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_OUTCLR_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_OUTCLR_PIN0_Msk (0x1UL << GPIO_OUTCLR_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_OUTCLR_PIN0_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN0_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN0_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Register: GPIO_IN */
+/* Description: Read GPIO port */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_IN_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_IN_PIN31_Msk (0x1UL << GPIO_IN_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_IN_PIN31_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN31_High (1UL) /*!< Pin input is high */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_IN_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_IN_PIN30_Msk (0x1UL << GPIO_IN_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_IN_PIN30_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN30_High (1UL) /*!< Pin input is high */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_IN_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_IN_PIN29_Msk (0x1UL << GPIO_IN_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_IN_PIN29_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN29_High (1UL) /*!< Pin input is high */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_IN_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_IN_PIN28_Msk (0x1UL << GPIO_IN_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_IN_PIN28_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN28_High (1UL) /*!< Pin input is high */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_IN_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_IN_PIN27_Msk (0x1UL << GPIO_IN_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_IN_PIN27_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN27_High (1UL) /*!< Pin input is high */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_IN_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_IN_PIN26_Msk (0x1UL << GPIO_IN_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_IN_PIN26_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN26_High (1UL) /*!< Pin input is high */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_IN_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_IN_PIN25_Msk (0x1UL << GPIO_IN_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_IN_PIN25_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN25_High (1UL) /*!< Pin input is high */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_IN_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_IN_PIN24_Msk (0x1UL << GPIO_IN_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_IN_PIN24_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN24_High (1UL) /*!< Pin input is high */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_IN_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_IN_PIN23_Msk (0x1UL << GPIO_IN_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_IN_PIN23_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN23_High (1UL) /*!< Pin input is high */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_IN_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_IN_PIN22_Msk (0x1UL << GPIO_IN_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_IN_PIN22_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN22_High (1UL) /*!< Pin input is high */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_IN_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_IN_PIN21_Msk (0x1UL << GPIO_IN_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_IN_PIN21_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN21_High (1UL) /*!< Pin input is high */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_IN_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_IN_PIN20_Msk (0x1UL << GPIO_IN_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_IN_PIN20_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN20_High (1UL) /*!< Pin input is high */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_IN_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_IN_PIN19_Msk (0x1UL << GPIO_IN_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_IN_PIN19_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN19_High (1UL) /*!< Pin input is high */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_IN_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_IN_PIN18_Msk (0x1UL << GPIO_IN_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_IN_PIN18_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN18_High (1UL) /*!< Pin input is high */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_IN_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_IN_PIN17_Msk (0x1UL << GPIO_IN_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_IN_PIN17_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN17_High (1UL) /*!< Pin input is high */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_IN_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_IN_PIN16_Msk (0x1UL << GPIO_IN_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_IN_PIN16_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN16_High (1UL) /*!< Pin input is high */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_IN_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_IN_PIN15_Msk (0x1UL << GPIO_IN_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_IN_PIN15_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN15_High (1UL) /*!< Pin input is high */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_IN_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_IN_PIN14_Msk (0x1UL << GPIO_IN_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_IN_PIN14_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN14_High (1UL) /*!< Pin input is high */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_IN_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_IN_PIN13_Msk (0x1UL << GPIO_IN_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_IN_PIN13_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN13_High (1UL) /*!< Pin input is high */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_IN_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_IN_PIN12_Msk (0x1UL << GPIO_IN_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_IN_PIN12_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN12_High (1UL) /*!< Pin input is high */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_IN_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_IN_PIN11_Msk (0x1UL << GPIO_IN_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_IN_PIN11_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN11_High (1UL) /*!< Pin input is high */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_IN_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_IN_PIN10_Msk (0x1UL << GPIO_IN_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_IN_PIN10_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN10_High (1UL) /*!< Pin input is high */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_IN_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_IN_PIN9_Msk (0x1UL << GPIO_IN_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_IN_PIN9_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN9_High (1UL) /*!< Pin input is high */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_IN_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_IN_PIN8_Msk (0x1UL << GPIO_IN_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_IN_PIN8_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN8_High (1UL) /*!< Pin input is high */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_IN_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_IN_PIN7_Msk (0x1UL << GPIO_IN_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_IN_PIN7_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN7_High (1UL) /*!< Pin input is high */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_IN_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_IN_PIN6_Msk (0x1UL << GPIO_IN_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_IN_PIN6_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN6_High (1UL) /*!< Pin input is high */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_IN_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_IN_PIN5_Msk (0x1UL << GPIO_IN_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_IN_PIN5_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN5_High (1UL) /*!< Pin input is high */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_IN_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_IN_PIN4_Msk (0x1UL << GPIO_IN_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_IN_PIN4_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN4_High (1UL) /*!< Pin input is high */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_IN_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_IN_PIN3_Msk (0x1UL << GPIO_IN_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_IN_PIN3_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN3_High (1UL) /*!< Pin input is high */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_IN_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_IN_PIN2_Msk (0x1UL << GPIO_IN_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_IN_PIN2_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN2_High (1UL) /*!< Pin input is high */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_IN_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_IN_PIN1_Msk (0x1UL << GPIO_IN_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_IN_PIN1_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN1_High (1UL) /*!< Pin input is high */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_IN_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_IN_PIN0_Msk (0x1UL << GPIO_IN_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_IN_PIN0_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN0_High (1UL) /*!< Pin input is high */
+
+/* Register: GPIO_DIR */
+/* Description: Direction of GPIO pins */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_DIR_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_DIR_PIN31_Msk (0x1UL << GPIO_DIR_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_DIR_PIN31_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN31_Output (1UL) /*!< Pin set as output */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_DIR_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_DIR_PIN30_Msk (0x1UL << GPIO_DIR_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_DIR_PIN30_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN30_Output (1UL) /*!< Pin set as output */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_DIR_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_DIR_PIN29_Msk (0x1UL << GPIO_DIR_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_DIR_PIN29_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN29_Output (1UL) /*!< Pin set as output */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_DIR_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_DIR_PIN28_Msk (0x1UL << GPIO_DIR_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_DIR_PIN28_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN28_Output (1UL) /*!< Pin set as output */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_DIR_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_DIR_PIN27_Msk (0x1UL << GPIO_DIR_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_DIR_PIN27_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN27_Output (1UL) /*!< Pin set as output */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_DIR_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_DIR_PIN26_Msk (0x1UL << GPIO_DIR_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_DIR_PIN26_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN26_Output (1UL) /*!< Pin set as output */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_DIR_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_DIR_PIN25_Msk (0x1UL << GPIO_DIR_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_DIR_PIN25_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN25_Output (1UL) /*!< Pin set as output */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_DIR_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_DIR_PIN24_Msk (0x1UL << GPIO_DIR_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_DIR_PIN24_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN24_Output (1UL) /*!< Pin set as output */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_DIR_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_DIR_PIN23_Msk (0x1UL << GPIO_DIR_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_DIR_PIN23_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN23_Output (1UL) /*!< Pin set as output */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_DIR_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_DIR_PIN22_Msk (0x1UL << GPIO_DIR_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_DIR_PIN22_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN22_Output (1UL) /*!< Pin set as output */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_DIR_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_DIR_PIN21_Msk (0x1UL << GPIO_DIR_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_DIR_PIN21_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN21_Output (1UL) /*!< Pin set as output */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_DIR_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_DIR_PIN20_Msk (0x1UL << GPIO_DIR_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_DIR_PIN20_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN20_Output (1UL) /*!< Pin set as output */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_DIR_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_DIR_PIN19_Msk (0x1UL << GPIO_DIR_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_DIR_PIN19_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN19_Output (1UL) /*!< Pin set as output */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_DIR_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_DIR_PIN18_Msk (0x1UL << GPIO_DIR_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_DIR_PIN18_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN18_Output (1UL) /*!< Pin set as output */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_DIR_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_DIR_PIN17_Msk (0x1UL << GPIO_DIR_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_DIR_PIN17_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN17_Output (1UL) /*!< Pin set as output */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_DIR_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_DIR_PIN16_Msk (0x1UL << GPIO_DIR_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_DIR_PIN16_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN16_Output (1UL) /*!< Pin set as output */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_DIR_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_DIR_PIN15_Msk (0x1UL << GPIO_DIR_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_DIR_PIN15_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN15_Output (1UL) /*!< Pin set as output */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_DIR_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_DIR_PIN14_Msk (0x1UL << GPIO_DIR_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_DIR_PIN14_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN14_Output (1UL) /*!< Pin set as output */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_DIR_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_DIR_PIN13_Msk (0x1UL << GPIO_DIR_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_DIR_PIN13_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN13_Output (1UL) /*!< Pin set as output */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_DIR_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_DIR_PIN12_Msk (0x1UL << GPIO_DIR_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_DIR_PIN12_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN12_Output (1UL) /*!< Pin set as output */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_DIR_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_DIR_PIN11_Msk (0x1UL << GPIO_DIR_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_DIR_PIN11_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN11_Output (1UL) /*!< Pin set as output */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_DIR_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_DIR_PIN10_Msk (0x1UL << GPIO_DIR_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_DIR_PIN10_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN10_Output (1UL) /*!< Pin set as output */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_DIR_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_DIR_PIN9_Msk (0x1UL << GPIO_DIR_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_DIR_PIN9_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN9_Output (1UL) /*!< Pin set as output */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_DIR_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_DIR_PIN8_Msk (0x1UL << GPIO_DIR_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_DIR_PIN8_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN8_Output (1UL) /*!< Pin set as output */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_DIR_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_DIR_PIN7_Msk (0x1UL << GPIO_DIR_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_DIR_PIN7_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN7_Output (1UL) /*!< Pin set as output */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_DIR_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_DIR_PIN6_Msk (0x1UL << GPIO_DIR_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_DIR_PIN6_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN6_Output (1UL) /*!< Pin set as output */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_DIR_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_DIR_PIN5_Msk (0x1UL << GPIO_DIR_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_DIR_PIN5_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN5_Output (1UL) /*!< Pin set as output */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_DIR_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_DIR_PIN4_Msk (0x1UL << GPIO_DIR_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_DIR_PIN4_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN4_Output (1UL) /*!< Pin set as output */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_DIR_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_DIR_PIN3_Msk (0x1UL << GPIO_DIR_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_DIR_PIN3_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN3_Output (1UL) /*!< Pin set as output */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_DIR_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_DIR_PIN2_Msk (0x1UL << GPIO_DIR_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_DIR_PIN2_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN2_Output (1UL) /*!< Pin set as output */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_DIR_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_DIR_PIN1_Msk (0x1UL << GPIO_DIR_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_DIR_PIN1_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN1_Output (1UL) /*!< Pin set as output */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_DIR_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_DIR_PIN0_Msk (0x1UL << GPIO_DIR_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_DIR_PIN0_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN0_Output (1UL) /*!< Pin set as output */
+
+/* Register: GPIO_DIRSET */
+/* Description: DIR set register */
+
+/* Bit 31 : Set as output pin 31 */
+#define GPIO_DIRSET_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_DIRSET_PIN31_Msk (0x1UL << GPIO_DIRSET_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_DIRSET_PIN31_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN31_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN31_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 30 : Set as output pin 30 */
+#define GPIO_DIRSET_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_DIRSET_PIN30_Msk (0x1UL << GPIO_DIRSET_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_DIRSET_PIN30_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN30_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN30_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 29 : Set as output pin 29 */
+#define GPIO_DIRSET_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_DIRSET_PIN29_Msk (0x1UL << GPIO_DIRSET_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_DIRSET_PIN29_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN29_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN29_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 28 : Set as output pin 28 */
+#define GPIO_DIRSET_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_DIRSET_PIN28_Msk (0x1UL << GPIO_DIRSET_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_DIRSET_PIN28_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN28_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN28_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 27 : Set as output pin 27 */
+#define GPIO_DIRSET_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_DIRSET_PIN27_Msk (0x1UL << GPIO_DIRSET_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_DIRSET_PIN27_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN27_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN27_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 26 : Set as output pin 26 */
+#define GPIO_DIRSET_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_DIRSET_PIN26_Msk (0x1UL << GPIO_DIRSET_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_DIRSET_PIN26_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN26_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN26_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 25 : Set as output pin 25 */
+#define GPIO_DIRSET_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_DIRSET_PIN25_Msk (0x1UL << GPIO_DIRSET_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_DIRSET_PIN25_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN25_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN25_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 24 : Set as output pin 24 */
+#define GPIO_DIRSET_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_DIRSET_PIN24_Msk (0x1UL << GPIO_DIRSET_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_DIRSET_PIN24_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN24_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN24_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 23 : Set as output pin 23 */
+#define GPIO_DIRSET_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_DIRSET_PIN23_Msk (0x1UL << GPIO_DIRSET_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_DIRSET_PIN23_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN23_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN23_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 22 : Set as output pin 22 */
+#define GPIO_DIRSET_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_DIRSET_PIN22_Msk (0x1UL << GPIO_DIRSET_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_DIRSET_PIN22_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN22_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN22_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 21 : Set as output pin 21 */
+#define GPIO_DIRSET_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_DIRSET_PIN21_Msk (0x1UL << GPIO_DIRSET_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_DIRSET_PIN21_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN21_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN21_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 20 : Set as output pin 20 */
+#define GPIO_DIRSET_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_DIRSET_PIN20_Msk (0x1UL << GPIO_DIRSET_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_DIRSET_PIN20_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN20_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN20_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 19 : Set as output pin 19 */
+#define GPIO_DIRSET_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_DIRSET_PIN19_Msk (0x1UL << GPIO_DIRSET_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_DIRSET_PIN19_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN19_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN19_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 18 : Set as output pin 18 */
+#define GPIO_DIRSET_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_DIRSET_PIN18_Msk (0x1UL << GPIO_DIRSET_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_DIRSET_PIN18_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN18_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN18_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 17 : Set as output pin 17 */
+#define GPIO_DIRSET_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_DIRSET_PIN17_Msk (0x1UL << GPIO_DIRSET_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_DIRSET_PIN17_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN17_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN17_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 16 : Set as output pin 16 */
+#define GPIO_DIRSET_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_DIRSET_PIN16_Msk (0x1UL << GPIO_DIRSET_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_DIRSET_PIN16_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN16_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN16_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 15 : Set as output pin 15 */
+#define GPIO_DIRSET_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_DIRSET_PIN15_Msk (0x1UL << GPIO_DIRSET_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_DIRSET_PIN15_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN15_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN15_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 14 : Set as output pin 14 */
+#define GPIO_DIRSET_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_DIRSET_PIN14_Msk (0x1UL << GPIO_DIRSET_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_DIRSET_PIN14_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN14_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN14_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 13 : Set as output pin 13 */
+#define GPIO_DIRSET_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_DIRSET_PIN13_Msk (0x1UL << GPIO_DIRSET_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_DIRSET_PIN13_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN13_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN13_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 12 : Set as output pin 12 */
+#define GPIO_DIRSET_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_DIRSET_PIN12_Msk (0x1UL << GPIO_DIRSET_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_DIRSET_PIN12_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN12_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN12_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 11 : Set as output pin 11 */
+#define GPIO_DIRSET_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_DIRSET_PIN11_Msk (0x1UL << GPIO_DIRSET_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_DIRSET_PIN11_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN11_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN11_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 10 : Set as output pin 10 */
+#define GPIO_DIRSET_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_DIRSET_PIN10_Msk (0x1UL << GPIO_DIRSET_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_DIRSET_PIN10_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN10_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN10_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 9 : Set as output pin 9 */
+#define GPIO_DIRSET_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_DIRSET_PIN9_Msk (0x1UL << GPIO_DIRSET_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_DIRSET_PIN9_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN9_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN9_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 8 : Set as output pin 8 */
+#define GPIO_DIRSET_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_DIRSET_PIN8_Msk (0x1UL << GPIO_DIRSET_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_DIRSET_PIN8_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN8_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN8_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 7 : Set as output pin 7 */
+#define GPIO_DIRSET_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_DIRSET_PIN7_Msk (0x1UL << GPIO_DIRSET_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_DIRSET_PIN7_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN7_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN7_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 6 : Set as output pin 6 */
+#define GPIO_DIRSET_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_DIRSET_PIN6_Msk (0x1UL << GPIO_DIRSET_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_DIRSET_PIN6_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN6_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN6_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 5 : Set as output pin 5 */
+#define GPIO_DIRSET_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_DIRSET_PIN5_Msk (0x1UL << GPIO_DIRSET_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_DIRSET_PIN5_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN5_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN5_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 4 : Set as output pin 4 */
+#define GPIO_DIRSET_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_DIRSET_PIN4_Msk (0x1UL << GPIO_DIRSET_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_DIRSET_PIN4_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN4_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN4_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 3 : Set as output pin 3 */
+#define GPIO_DIRSET_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_DIRSET_PIN3_Msk (0x1UL << GPIO_DIRSET_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_DIRSET_PIN3_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN3_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN3_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 2 : Set as output pin 2 */
+#define GPIO_DIRSET_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_DIRSET_PIN2_Msk (0x1UL << GPIO_DIRSET_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_DIRSET_PIN2_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN2_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN2_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 1 : Set as output pin 1 */
+#define GPIO_DIRSET_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_DIRSET_PIN1_Msk (0x1UL << GPIO_DIRSET_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_DIRSET_PIN1_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN1_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN1_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 0 : Set as output pin 0 */
+#define GPIO_DIRSET_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_DIRSET_PIN0_Msk (0x1UL << GPIO_DIRSET_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_DIRSET_PIN0_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN0_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN0_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Register: GPIO_DIRCLR */
+/* Description: DIR clear register */
+
+/* Bit 31 : Set as input pin 31 */
+#define GPIO_DIRCLR_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_DIRCLR_PIN31_Msk (0x1UL << GPIO_DIRCLR_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_DIRCLR_PIN31_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN31_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN31_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 30 : Set as input pin 30 */
+#define GPIO_DIRCLR_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_DIRCLR_PIN30_Msk (0x1UL << GPIO_DIRCLR_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_DIRCLR_PIN30_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN30_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN30_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 29 : Set as input pin 29 */
+#define GPIO_DIRCLR_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_DIRCLR_PIN29_Msk (0x1UL << GPIO_DIRCLR_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_DIRCLR_PIN29_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN29_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN29_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 28 : Set as input pin 28 */
+#define GPIO_DIRCLR_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_DIRCLR_PIN28_Msk (0x1UL << GPIO_DIRCLR_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_DIRCLR_PIN28_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN28_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN28_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 27 : Set as input pin 27 */
+#define GPIO_DIRCLR_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_DIRCLR_PIN27_Msk (0x1UL << GPIO_DIRCLR_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_DIRCLR_PIN27_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN27_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN27_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 26 : Set as input pin 26 */
+#define GPIO_DIRCLR_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_DIRCLR_PIN26_Msk (0x1UL << GPIO_DIRCLR_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_DIRCLR_PIN26_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN26_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN26_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 25 : Set as input pin 25 */
+#define GPIO_DIRCLR_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_DIRCLR_PIN25_Msk (0x1UL << GPIO_DIRCLR_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_DIRCLR_PIN25_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN25_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN25_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 24 : Set as input pin 24 */
+#define GPIO_DIRCLR_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_DIRCLR_PIN24_Msk (0x1UL << GPIO_DIRCLR_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_DIRCLR_PIN24_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN24_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN24_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 23 : Set as input pin 23 */
+#define GPIO_DIRCLR_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_DIRCLR_PIN23_Msk (0x1UL << GPIO_DIRCLR_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_DIRCLR_PIN23_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN23_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN23_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 22 : Set as input pin 22 */
+#define GPIO_DIRCLR_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_DIRCLR_PIN22_Msk (0x1UL << GPIO_DIRCLR_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_DIRCLR_PIN22_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN22_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN22_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 21 : Set as input pin 21 */
+#define GPIO_DIRCLR_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_DIRCLR_PIN21_Msk (0x1UL << GPIO_DIRCLR_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_DIRCLR_PIN21_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN21_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN21_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 20 : Set as input pin 20 */
+#define GPIO_DIRCLR_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_DIRCLR_PIN20_Msk (0x1UL << GPIO_DIRCLR_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_DIRCLR_PIN20_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN20_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN20_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 19 : Set as input pin 19 */
+#define GPIO_DIRCLR_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_DIRCLR_PIN19_Msk (0x1UL << GPIO_DIRCLR_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_DIRCLR_PIN19_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN19_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN19_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 18 : Set as input pin 18 */
+#define GPIO_DIRCLR_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_DIRCLR_PIN18_Msk (0x1UL << GPIO_DIRCLR_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_DIRCLR_PIN18_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN18_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN18_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 17 : Set as input pin 17 */
+#define GPIO_DIRCLR_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_DIRCLR_PIN17_Msk (0x1UL << GPIO_DIRCLR_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_DIRCLR_PIN17_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN17_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN17_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 16 : Set as input pin 16 */
+#define GPIO_DIRCLR_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_DIRCLR_PIN16_Msk (0x1UL << GPIO_DIRCLR_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_DIRCLR_PIN16_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN16_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN16_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 15 : Set as input pin 15 */
+#define GPIO_DIRCLR_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_DIRCLR_PIN15_Msk (0x1UL << GPIO_DIRCLR_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_DIRCLR_PIN15_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN15_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN15_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 14 : Set as input pin 14 */
+#define GPIO_DIRCLR_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_DIRCLR_PIN14_Msk (0x1UL << GPIO_DIRCLR_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_DIRCLR_PIN14_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN14_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN14_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 13 : Set as input pin 13 */
+#define GPIO_DIRCLR_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_DIRCLR_PIN13_Msk (0x1UL << GPIO_DIRCLR_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_DIRCLR_PIN13_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN13_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN13_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 12 : Set as input pin 12 */
+#define GPIO_DIRCLR_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_DIRCLR_PIN12_Msk (0x1UL << GPIO_DIRCLR_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_DIRCLR_PIN12_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN12_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN12_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 11 : Set as input pin 11 */
+#define GPIO_DIRCLR_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_DIRCLR_PIN11_Msk (0x1UL << GPIO_DIRCLR_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_DIRCLR_PIN11_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN11_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN11_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 10 : Set as input pin 10 */
+#define GPIO_DIRCLR_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_DIRCLR_PIN10_Msk (0x1UL << GPIO_DIRCLR_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_DIRCLR_PIN10_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN10_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN10_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 9 : Set as input pin 9 */
+#define GPIO_DIRCLR_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_DIRCLR_PIN9_Msk (0x1UL << GPIO_DIRCLR_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_DIRCLR_PIN9_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN9_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN9_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 8 : Set as input pin 8 */
+#define GPIO_DIRCLR_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_DIRCLR_PIN8_Msk (0x1UL << GPIO_DIRCLR_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_DIRCLR_PIN8_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN8_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN8_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 7 : Set as input pin 7 */
+#define GPIO_DIRCLR_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_DIRCLR_PIN7_Msk (0x1UL << GPIO_DIRCLR_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_DIRCLR_PIN7_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN7_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN7_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 6 : Set as input pin 6 */
+#define GPIO_DIRCLR_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_DIRCLR_PIN6_Msk (0x1UL << GPIO_DIRCLR_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_DIRCLR_PIN6_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN6_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN6_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 5 : Set as input pin 5 */
+#define GPIO_DIRCLR_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_DIRCLR_PIN5_Msk (0x1UL << GPIO_DIRCLR_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_DIRCLR_PIN5_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN5_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN5_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 4 : Set as input pin 4 */
+#define GPIO_DIRCLR_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_DIRCLR_PIN4_Msk (0x1UL << GPIO_DIRCLR_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_DIRCLR_PIN4_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN4_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN4_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 3 : Set as input pin 3 */
+#define GPIO_DIRCLR_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_DIRCLR_PIN3_Msk (0x1UL << GPIO_DIRCLR_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_DIRCLR_PIN3_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN3_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN3_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 2 : Set as input pin 2 */
+#define GPIO_DIRCLR_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_DIRCLR_PIN2_Msk (0x1UL << GPIO_DIRCLR_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_DIRCLR_PIN2_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN2_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN2_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 1 : Set as input pin 1 */
+#define GPIO_DIRCLR_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_DIRCLR_PIN1_Msk (0x1UL << GPIO_DIRCLR_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_DIRCLR_PIN1_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN1_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN1_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 0 : Set as input pin 0 */
+#define GPIO_DIRCLR_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_DIRCLR_PIN0_Msk (0x1UL << GPIO_DIRCLR_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_DIRCLR_PIN0_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN0_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN0_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Register: GPIO_LATCH */
+/* Description: Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF[n].SENSE registers */
+
+/* Bit 31 : Status on whether PIN31 has met criteria set in PIN_CNF31.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_LATCH_PIN31_Msk (0x1UL << GPIO_LATCH_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_LATCH_PIN31_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN31_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 30 : Status on whether PIN30 has met criteria set in PIN_CNF30.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_LATCH_PIN30_Msk (0x1UL << GPIO_LATCH_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_LATCH_PIN30_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN30_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 29 : Status on whether PIN29 has met criteria set in PIN_CNF29.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_LATCH_PIN29_Msk (0x1UL << GPIO_LATCH_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_LATCH_PIN29_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN29_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 28 : Status on whether PIN28 has met criteria set in PIN_CNF28.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_LATCH_PIN28_Msk (0x1UL << GPIO_LATCH_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_LATCH_PIN28_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN28_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 27 : Status on whether PIN27 has met criteria set in PIN_CNF27.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_LATCH_PIN27_Msk (0x1UL << GPIO_LATCH_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_LATCH_PIN27_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN27_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 26 : Status on whether PIN26 has met criteria set in PIN_CNF26.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_LATCH_PIN26_Msk (0x1UL << GPIO_LATCH_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_LATCH_PIN26_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN26_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 25 : Status on whether PIN25 has met criteria set in PIN_CNF25.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_LATCH_PIN25_Msk (0x1UL << GPIO_LATCH_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_LATCH_PIN25_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN25_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 24 : Status on whether PIN24 has met criteria set in PIN_CNF24.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_LATCH_PIN24_Msk (0x1UL << GPIO_LATCH_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_LATCH_PIN24_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN24_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 23 : Status on whether PIN23 has met criteria set in PIN_CNF23.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_LATCH_PIN23_Msk (0x1UL << GPIO_LATCH_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_LATCH_PIN23_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN23_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 22 : Status on whether PIN22 has met criteria set in PIN_CNF22.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_LATCH_PIN22_Msk (0x1UL << GPIO_LATCH_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_LATCH_PIN22_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN22_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 21 : Status on whether PIN21 has met criteria set in PIN_CNF21.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_LATCH_PIN21_Msk (0x1UL << GPIO_LATCH_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_LATCH_PIN21_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN21_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 20 : Status on whether PIN20 has met criteria set in PIN_CNF20.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_LATCH_PIN20_Msk (0x1UL << GPIO_LATCH_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_LATCH_PIN20_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN20_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 19 : Status on whether PIN19 has met criteria set in PIN_CNF19.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_LATCH_PIN19_Msk (0x1UL << GPIO_LATCH_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_LATCH_PIN19_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN19_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 18 : Status on whether PIN18 has met criteria set in PIN_CNF18.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_LATCH_PIN18_Msk (0x1UL << GPIO_LATCH_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_LATCH_PIN18_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN18_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 17 : Status on whether PIN17 has met criteria set in PIN_CNF17.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_LATCH_PIN17_Msk (0x1UL << GPIO_LATCH_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_LATCH_PIN17_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN17_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 16 : Status on whether PIN16 has met criteria set in PIN_CNF16.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_LATCH_PIN16_Msk (0x1UL << GPIO_LATCH_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_LATCH_PIN16_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN16_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 15 : Status on whether PIN15 has met criteria set in PIN_CNF15.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_LATCH_PIN15_Msk (0x1UL << GPIO_LATCH_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_LATCH_PIN15_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN15_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 14 : Status on whether PIN14 has met criteria set in PIN_CNF14.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_LATCH_PIN14_Msk (0x1UL << GPIO_LATCH_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_LATCH_PIN14_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN14_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 13 : Status on whether PIN13 has met criteria set in PIN_CNF13.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_LATCH_PIN13_Msk (0x1UL << GPIO_LATCH_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_LATCH_PIN13_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN13_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 12 : Status on whether PIN12 has met criteria set in PIN_CNF12.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_LATCH_PIN12_Msk (0x1UL << GPIO_LATCH_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_LATCH_PIN12_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN12_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 11 : Status on whether PIN11 has met criteria set in PIN_CNF11.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_LATCH_PIN11_Msk (0x1UL << GPIO_LATCH_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_LATCH_PIN11_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN11_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 10 : Status on whether PIN10 has met criteria set in PIN_CNF10.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_LATCH_PIN10_Msk (0x1UL << GPIO_LATCH_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_LATCH_PIN10_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN10_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 9 : Status on whether PIN9 has met criteria set in PIN_CNF9.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_LATCH_PIN9_Msk (0x1UL << GPIO_LATCH_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_LATCH_PIN9_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN9_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 8 : Status on whether PIN8 has met criteria set in PIN_CNF8.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_LATCH_PIN8_Msk (0x1UL << GPIO_LATCH_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_LATCH_PIN8_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN8_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 7 : Status on whether PIN7 has met criteria set in PIN_CNF7.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_LATCH_PIN7_Msk (0x1UL << GPIO_LATCH_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_LATCH_PIN7_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN7_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 6 : Status on whether PIN6 has met criteria set in PIN_CNF6.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_LATCH_PIN6_Msk (0x1UL << GPIO_LATCH_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_LATCH_PIN6_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN6_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 5 : Status on whether PIN5 has met criteria set in PIN_CNF5.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_LATCH_PIN5_Msk (0x1UL << GPIO_LATCH_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_LATCH_PIN5_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN5_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 4 : Status on whether PIN4 has met criteria set in PIN_CNF4.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_LATCH_PIN4_Msk (0x1UL << GPIO_LATCH_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_LATCH_PIN4_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN4_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 3 : Status on whether PIN3 has met criteria set in PIN_CNF3.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_LATCH_PIN3_Msk (0x1UL << GPIO_LATCH_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_LATCH_PIN3_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN3_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 2 : Status on whether PIN2 has met criteria set in PIN_CNF2.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_LATCH_PIN2_Msk (0x1UL << GPIO_LATCH_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_LATCH_PIN2_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN2_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 1 : Status on whether PIN1 has met criteria set in PIN_CNF1.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_LATCH_PIN1_Msk (0x1UL << GPIO_LATCH_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_LATCH_PIN1_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN1_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 0 : Status on whether PIN0 has met criteria set in PIN_CNF0.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_LATCH_PIN0_Msk (0x1UL << GPIO_LATCH_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_LATCH_PIN0_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN0_Latched (1UL) /*!< Criteria has been met */
+
+/* Register: GPIO_DETECTMODE */
+/* Description: Select between default DETECT signal behaviour and LDETECT mode */
+
+/* Bit 0 : Select between default DETECT signal behaviour and LDETECT mode */
+#define GPIO_DETECTMODE_DETECTMODE_Pos (0UL) /*!< Position of DETECTMODE field. */
+#define GPIO_DETECTMODE_DETECTMODE_Msk (0x1UL << GPIO_DETECTMODE_DETECTMODE_Pos) /*!< Bit mask of DETECTMODE field. */
+#define GPIO_DETECTMODE_DETECTMODE_Default (0UL) /*!< DETECT directly connected to PIN DETECT signals */
+#define GPIO_DETECTMODE_DETECTMODE_LDETECT (1UL) /*!< Use the latched LDETECT behaviour */
+
+/* Register: GPIO_PIN_CNF */
+/* Description: Description collection[0]: Configuration of GPIO pins */
+
+/* Bits 17..16 : Pin sensing mechanism */
+#define GPIO_PIN_CNF_SENSE_Pos (16UL) /*!< Position of SENSE field. */
+#define GPIO_PIN_CNF_SENSE_Msk (0x3UL << GPIO_PIN_CNF_SENSE_Pos) /*!< Bit mask of SENSE field. */
+#define GPIO_PIN_CNF_SENSE_Disabled (0UL) /*!< Disabled */
+#define GPIO_PIN_CNF_SENSE_High (2UL) /*!< Sense for high level */
+#define GPIO_PIN_CNF_SENSE_Low (3UL) /*!< Sense for low level */
+
+/* Bits 10..8 : Drive configuration */
+#define GPIO_PIN_CNF_DRIVE_Pos (8UL) /*!< Position of DRIVE field. */
+#define GPIO_PIN_CNF_DRIVE_Msk (0x7UL << GPIO_PIN_CNF_DRIVE_Pos) /*!< Bit mask of DRIVE field. */
+#define GPIO_PIN_CNF_DRIVE_S0S1 (0UL) /*!< Standard '0', standard '1' */
+#define GPIO_PIN_CNF_DRIVE_H0S1 (1UL) /*!< High drive '0', standard '1' */
+#define GPIO_PIN_CNF_DRIVE_S0H1 (2UL) /*!< Standard '0', high drive '1' */
+#define GPIO_PIN_CNF_DRIVE_H0H1 (3UL) /*!< High drive '0', high 'drive '1'' */
+#define GPIO_PIN_CNF_DRIVE_D0S1 (4UL) /*!< Disconnect '0' standard '1' (normally used for wired-or connections) */
+#define GPIO_PIN_CNF_DRIVE_D0H1 (5UL) /*!< Disconnect '0', high drive '1' (normally used for wired-or connections) */
+#define GPIO_PIN_CNF_DRIVE_S0D1 (6UL) /*!< Standard '0'. disconnect '1' (normally used for wired-and connections) */
+#define GPIO_PIN_CNF_DRIVE_H0D1 (7UL) /*!< High drive '0', disconnect '1' (normally used for wired-and connections) */
+
+/* Bits 3..2 : Pull configuration */
+#define GPIO_PIN_CNF_PULL_Pos (2UL) /*!< Position of PULL field. */
+#define GPIO_PIN_CNF_PULL_Msk (0x3UL << GPIO_PIN_CNF_PULL_Pos) /*!< Bit mask of PULL field. */
+#define GPIO_PIN_CNF_PULL_Disabled (0UL) /*!< No pull */
+#define GPIO_PIN_CNF_PULL_Pulldown (1UL) /*!< Pull down on pin */
+#define GPIO_PIN_CNF_PULL_Pullup (3UL) /*!< Pull up on pin */
+
+/* Bit 1 : Connect or disconnect input buffer */
+#define GPIO_PIN_CNF_INPUT_Pos (1UL) /*!< Position of INPUT field. */
+#define GPIO_PIN_CNF_INPUT_Msk (0x1UL << GPIO_PIN_CNF_INPUT_Pos) /*!< Bit mask of INPUT field. */
+#define GPIO_PIN_CNF_INPUT_Connect (0UL) /*!< Connect input buffer */
+#define GPIO_PIN_CNF_INPUT_Disconnect (1UL) /*!< Disconnect input buffer */
+
+/* Bit 0 : Pin direction. Same physical register as DIR register */
+#define GPIO_PIN_CNF_DIR_Pos (0UL) /*!< Position of DIR field. */
+#define GPIO_PIN_CNF_DIR_Msk (0x1UL << GPIO_PIN_CNF_DIR_Pos) /*!< Bit mask of DIR field. */
+#define GPIO_PIN_CNF_DIR_Input (0UL) /*!< Configure pin as an input pin */
+#define GPIO_PIN_CNF_DIR_Output (1UL) /*!< Configure pin as an output pin */
+
+
+/* Peripheral: PDM */
+/* Description: Pulse Density Modulation (Digital Microphone) Interface */
+
+/* Register: PDM_TASKS_START */
+/* Description: Starts continuous PDM transfer */
+
+/* Bit 0 : */
+#define PDM_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define PDM_TASKS_START_TASKS_START_Msk (0x1UL << PDM_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: PDM_TASKS_STOP */
+/* Description: Stops PDM transfer */
+
+/* Bit 0 : */
+#define PDM_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define PDM_TASKS_STOP_TASKS_STOP_Msk (0x1UL << PDM_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: PDM_EVENTS_STARTED */
+/* Description: PDM transfer has started */
+
+/* Bit 0 : */
+#define PDM_EVENTS_STARTED_EVENTS_STARTED_Pos (0UL) /*!< Position of EVENTS_STARTED field. */
+#define PDM_EVENTS_STARTED_EVENTS_STARTED_Msk (0x1UL << PDM_EVENTS_STARTED_EVENTS_STARTED_Pos) /*!< Bit mask of EVENTS_STARTED field. */
+
+/* Register: PDM_EVENTS_STOPPED */
+/* Description: PDM transfer has finished */
+
+/* Bit 0 : */
+#define PDM_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define PDM_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << PDM_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: PDM_EVENTS_END */
+/* Description: The PDM has written the last sample specified by SAMPLE.MAXCNT (or the last sample after a STOP task has been received) to Data RAM */
+
+/* Bit 0 : */
+#define PDM_EVENTS_END_EVENTS_END_Pos (0UL) /*!< Position of EVENTS_END field. */
+#define PDM_EVENTS_END_EVENTS_END_Msk (0x1UL << PDM_EVENTS_END_EVENTS_END_Pos) /*!< Bit mask of EVENTS_END field. */
+
+/* Register: PDM_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 2 : Enable or disable interrupt for END event */
+#define PDM_INTEN_END_Pos (2UL) /*!< Position of END field. */
+#define PDM_INTEN_END_Msk (0x1UL << PDM_INTEN_END_Pos) /*!< Bit mask of END field. */
+#define PDM_INTEN_END_Disabled (0UL) /*!< Disable */
+#define PDM_INTEN_END_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STOPPED event */
+#define PDM_INTEN_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PDM_INTEN_STOPPED_Msk (0x1UL << PDM_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PDM_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define PDM_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for STARTED event */
+#define PDM_INTEN_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define PDM_INTEN_STARTED_Msk (0x1UL << PDM_INTEN_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define PDM_INTEN_STARTED_Disabled (0UL) /*!< Disable */
+#define PDM_INTEN_STARTED_Enabled (1UL) /*!< Enable */
+
+/* Register: PDM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 2 : Write '1' to Enable interrupt for END event */
+#define PDM_INTENSET_END_Pos (2UL) /*!< Position of END field. */
+#define PDM_INTENSET_END_Msk (0x1UL << PDM_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define PDM_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for STOPPED event */
+#define PDM_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PDM_INTENSET_STOPPED_Msk (0x1UL << PDM_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PDM_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for STARTED event */
+#define PDM_INTENSET_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define PDM_INTENSET_STARTED_Msk (0x1UL << PDM_INTENSET_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define PDM_INTENSET_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENSET_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENSET_STARTED_Set (1UL) /*!< Enable */
+
+/* Register: PDM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 2 : Write '1' to Disable interrupt for END event */
+#define PDM_INTENCLR_END_Pos (2UL) /*!< Position of END field. */
+#define PDM_INTENCLR_END_Msk (0x1UL << PDM_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define PDM_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for STOPPED event */
+#define PDM_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PDM_INTENCLR_STOPPED_Msk (0x1UL << PDM_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PDM_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for STARTED event */
+#define PDM_INTENCLR_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define PDM_INTENCLR_STARTED_Msk (0x1UL << PDM_INTENCLR_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define PDM_INTENCLR_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENCLR_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENCLR_STARTED_Clear (1UL) /*!< Disable */
+
+/* Register: PDM_ENABLE */
+/* Description: PDM module enable register */
+
+/* Bit 0 : Enable or disable PDM module */
+#define PDM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define PDM_ENABLE_ENABLE_Msk (0x1UL << PDM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define PDM_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define PDM_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: PDM_PDMCLKCTRL */
+/* Description: PDM clock generator control */
+
+/* Bits 31..0 : PDM_CLK frequency */
+#define PDM_PDMCLKCTRL_FREQ_Pos (0UL) /*!< Position of FREQ field. */
+#define PDM_PDMCLKCTRL_FREQ_Msk (0xFFFFFFFFUL << PDM_PDMCLKCTRL_FREQ_Pos) /*!< Bit mask of FREQ field. */
+#define PDM_PDMCLKCTRL_FREQ_1000K (0x08000000UL) /*!< PDM_CLK = 32 MHz / 32 = 1.000 MHz */
+#define PDM_PDMCLKCTRL_FREQ_Default (0x08400000UL) /*!< PDM_CLK = 32 MHz / 31 = 1.032 MHz */
+#define PDM_PDMCLKCTRL_FREQ_1067K (0x08800000UL) /*!< PDM_CLK = 32 MHz / 30 = 1.067 MHz */
+
+/* Register: PDM_MODE */
+/* Description: Defines the routing of the connected PDM microphones' signals */
+
+/* Bit 1 : Defines on which PDM_CLK edge Left (or mono) is sampled */
+#define PDM_MODE_EDGE_Pos (1UL) /*!< Position of EDGE field. */
+#define PDM_MODE_EDGE_Msk (0x1UL << PDM_MODE_EDGE_Pos) /*!< Bit mask of EDGE field. */
+#define PDM_MODE_EDGE_LeftFalling (0UL) /*!< Left (or mono) is sampled on falling edge of PDM_CLK */
+#define PDM_MODE_EDGE_LeftRising (1UL) /*!< Left (or mono) is sampled on rising edge of PDM_CLK */
+
+/* Bit 0 : Mono or stereo operation */
+#define PDM_MODE_OPERATION_Pos (0UL) /*!< Position of OPERATION field. */
+#define PDM_MODE_OPERATION_Msk (0x1UL << PDM_MODE_OPERATION_Pos) /*!< Bit mask of OPERATION field. */
+#define PDM_MODE_OPERATION_Stereo (0UL) /*!< Sample and store one pair (Left + Right) of 16bit samples per RAM word R=[31:16]; L=[15:0] */
+#define PDM_MODE_OPERATION_Mono (1UL) /*!< Sample and store two successive Left samples (16 bit each) per RAM word L1=[31:16]; L0=[15:0] */
+
+/* Register: PDM_GAINL */
+/* Description: Left output gain adjustment */
+
+/* Bits 6..0 : Left output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters) 0x00 -20 dB gain adjust 0x01 -19.5 dB gain adjust (...) 0x27 -0.5 dB gain adjust 0x28 0 dB gain adjust 0x29 +0.5 dB gain adjust (...) 0x4F +19.5 dB gain adjust 0x50 +20 dB gain adjust */
+#define PDM_GAINL_GAINL_Pos (0UL) /*!< Position of GAINL field. */
+#define PDM_GAINL_GAINL_Msk (0x7FUL << PDM_GAINL_GAINL_Pos) /*!< Bit mask of GAINL field. */
+#define PDM_GAINL_GAINL_MinGain (0x00UL) /*!< -20dB gain adjustment (minimum) */
+#define PDM_GAINL_GAINL_DefaultGain (0x28UL) /*!< 0dB gain adjustment ('2500 RMS' requirement) */
+#define PDM_GAINL_GAINL_MaxGain (0x50UL) /*!< +20dB gain adjustment (maximum) */
+
+/* Register: PDM_GAINR */
+/* Description: Right output gain adjustment */
+
+/* Bits 7..0 : Right output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters) */
+#define PDM_GAINR_GAINR_Pos (0UL) /*!< Position of GAINR field. */
+#define PDM_GAINR_GAINR_Msk (0xFFUL << PDM_GAINR_GAINR_Pos) /*!< Bit mask of GAINR field. */
+#define PDM_GAINR_GAINR_MinGain (0x00UL) /*!< -20dB gain adjustment (minimum) */
+#define PDM_GAINR_GAINR_DefaultGain (0x28UL) /*!< 0dB gain adjustment ('2500 RMS' requirement) */
+#define PDM_GAINR_GAINR_MaxGain (0x50UL) /*!< +20dB gain adjustment (maximum) */
+
+/* Register: PDM_PSEL_CLK */
+/* Description: Pin number configuration for PDM CLK signal */
+
+/* Bit 31 : Connection */
+#define PDM_PSEL_CLK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define PDM_PSEL_CLK_CONNECT_Msk (0x1UL << PDM_PSEL_CLK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define PDM_PSEL_CLK_CONNECT_Connected (0UL) /*!< Connect */
+#define PDM_PSEL_CLK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define PDM_PSEL_CLK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define PDM_PSEL_CLK_PIN_Msk (0x1FUL << PDM_PSEL_CLK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: PDM_PSEL_DIN */
+/* Description: Pin number configuration for PDM DIN signal */
+
+/* Bit 31 : Connection */
+#define PDM_PSEL_DIN_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define PDM_PSEL_DIN_CONNECT_Msk (0x1UL << PDM_PSEL_DIN_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define PDM_PSEL_DIN_CONNECT_Connected (0UL) /*!< Connect */
+#define PDM_PSEL_DIN_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define PDM_PSEL_DIN_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define PDM_PSEL_DIN_PIN_Msk (0x1FUL << PDM_PSEL_DIN_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: PDM_SAMPLE_PTR */
+/* Description: RAM address pointer to write samples to with EasyDMA */
+
+/* Bits 31..0 : Address to write PDM samples to over DMA */
+#define PDM_SAMPLE_PTR_SAMPLEPTR_Pos (0UL) /*!< Position of SAMPLEPTR field. */
+#define PDM_SAMPLE_PTR_SAMPLEPTR_Msk (0xFFFFFFFFUL << PDM_SAMPLE_PTR_SAMPLEPTR_Pos) /*!< Bit mask of SAMPLEPTR field. */
+
+/* Register: PDM_SAMPLE_MAXCNT */
+/* Description: Number of samples to allocate memory for in EasyDMA mode */
+
+/* Bits 14..0 : Length of DMA RAM allocation in number of samples */
+#define PDM_SAMPLE_MAXCNT_BUFFSIZE_Pos (0UL) /*!< Position of BUFFSIZE field. */
+#define PDM_SAMPLE_MAXCNT_BUFFSIZE_Msk (0x7FFFUL << PDM_SAMPLE_MAXCNT_BUFFSIZE_Pos) /*!< Bit mask of BUFFSIZE field. */
+
+
+/* Peripheral: POWER */
+/* Description: Power control */
+
+/* Register: POWER_TASKS_CONSTLAT */
+/* Description: Enable constant latency mode */
+
+/* Bit 0 : */
+#define POWER_TASKS_CONSTLAT_TASKS_CONSTLAT_Pos (0UL) /*!< Position of TASKS_CONSTLAT field. */
+#define POWER_TASKS_CONSTLAT_TASKS_CONSTLAT_Msk (0x1UL << POWER_TASKS_CONSTLAT_TASKS_CONSTLAT_Pos) /*!< Bit mask of TASKS_CONSTLAT field. */
+
+/* Register: POWER_TASKS_LOWPWR */
+/* Description: Enable low power mode (variable latency) */
+
+/* Bit 0 : */
+#define POWER_TASKS_LOWPWR_TASKS_LOWPWR_Pos (0UL) /*!< Position of TASKS_LOWPWR field. */
+#define POWER_TASKS_LOWPWR_TASKS_LOWPWR_Msk (0x1UL << POWER_TASKS_LOWPWR_TASKS_LOWPWR_Pos) /*!< Bit mask of TASKS_LOWPWR field. */
+
+/* Register: POWER_EVENTS_POFWARN */
+/* Description: Power failure warning */
+
+/* Bit 0 : */
+#define POWER_EVENTS_POFWARN_EVENTS_POFWARN_Pos (0UL) /*!< Position of EVENTS_POFWARN field. */
+#define POWER_EVENTS_POFWARN_EVENTS_POFWARN_Msk (0x1UL << POWER_EVENTS_POFWARN_EVENTS_POFWARN_Pos) /*!< Bit mask of EVENTS_POFWARN field. */
+
+/* Register: POWER_EVENTS_SLEEPENTER */
+/* Description: CPU entered WFI/WFE sleep */
+
+/* Bit 0 : */
+#define POWER_EVENTS_SLEEPENTER_EVENTS_SLEEPENTER_Pos (0UL) /*!< Position of EVENTS_SLEEPENTER field. */
+#define POWER_EVENTS_SLEEPENTER_EVENTS_SLEEPENTER_Msk (0x1UL << POWER_EVENTS_SLEEPENTER_EVENTS_SLEEPENTER_Pos) /*!< Bit mask of EVENTS_SLEEPENTER field. */
+
+/* Register: POWER_EVENTS_SLEEPEXIT */
+/* Description: CPU exited WFI/WFE sleep */
+
+/* Bit 0 : */
+#define POWER_EVENTS_SLEEPEXIT_EVENTS_SLEEPEXIT_Pos (0UL) /*!< Position of EVENTS_SLEEPEXIT field. */
+#define POWER_EVENTS_SLEEPEXIT_EVENTS_SLEEPEXIT_Msk (0x1UL << POWER_EVENTS_SLEEPEXIT_EVENTS_SLEEPEXIT_Pos) /*!< Bit mask of EVENTS_SLEEPEXIT field. */
+
+/* Register: POWER_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 6 : Write '1' to Enable interrupt for SLEEPEXIT event */
+#define POWER_INTENSET_SLEEPEXIT_Pos (6UL) /*!< Position of SLEEPEXIT field. */
+#define POWER_INTENSET_SLEEPEXIT_Msk (0x1UL << POWER_INTENSET_SLEEPEXIT_Pos) /*!< Bit mask of SLEEPEXIT field. */
+#define POWER_INTENSET_SLEEPEXIT_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENSET_SLEEPEXIT_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENSET_SLEEPEXIT_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for SLEEPENTER event */
+#define POWER_INTENSET_SLEEPENTER_Pos (5UL) /*!< Position of SLEEPENTER field. */
+#define POWER_INTENSET_SLEEPENTER_Msk (0x1UL << POWER_INTENSET_SLEEPENTER_Pos) /*!< Bit mask of SLEEPENTER field. */
+#define POWER_INTENSET_SLEEPENTER_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENSET_SLEEPENTER_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENSET_SLEEPENTER_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for POFWARN event */
+#define POWER_INTENSET_POFWARN_Pos (2UL) /*!< Position of POFWARN field. */
+#define POWER_INTENSET_POFWARN_Msk (0x1UL << POWER_INTENSET_POFWARN_Pos) /*!< Bit mask of POFWARN field. */
+#define POWER_INTENSET_POFWARN_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENSET_POFWARN_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENSET_POFWARN_Set (1UL) /*!< Enable */
+
+/* Register: POWER_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 6 : Write '1' to Disable interrupt for SLEEPEXIT event */
+#define POWER_INTENCLR_SLEEPEXIT_Pos (6UL) /*!< Position of SLEEPEXIT field. */
+#define POWER_INTENCLR_SLEEPEXIT_Msk (0x1UL << POWER_INTENCLR_SLEEPEXIT_Pos) /*!< Bit mask of SLEEPEXIT field. */
+#define POWER_INTENCLR_SLEEPEXIT_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENCLR_SLEEPEXIT_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENCLR_SLEEPEXIT_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for SLEEPENTER event */
+#define POWER_INTENCLR_SLEEPENTER_Pos (5UL) /*!< Position of SLEEPENTER field. */
+#define POWER_INTENCLR_SLEEPENTER_Msk (0x1UL << POWER_INTENCLR_SLEEPENTER_Pos) /*!< Bit mask of SLEEPENTER field. */
+#define POWER_INTENCLR_SLEEPENTER_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENCLR_SLEEPENTER_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENCLR_SLEEPENTER_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for POFWARN event */
+#define POWER_INTENCLR_POFWARN_Pos (2UL) /*!< Position of POFWARN field. */
+#define POWER_INTENCLR_POFWARN_Msk (0x1UL << POWER_INTENCLR_POFWARN_Pos) /*!< Bit mask of POFWARN field. */
+#define POWER_INTENCLR_POFWARN_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENCLR_POFWARN_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENCLR_POFWARN_Clear (1UL) /*!< Disable */
+
+/* Register: POWER_RESETREAS */
+/* Description: Reset reason */
+
+/* Bit 18 : Reset due to wake up from System OFF mode when wakeup is triggered from entering into debug interface mode */
+#define POWER_RESETREAS_DIF_Pos (18UL) /*!< Position of DIF field. */
+#define POWER_RESETREAS_DIF_Msk (0x1UL << POWER_RESETREAS_DIF_Pos) /*!< Bit mask of DIF field. */
+#define POWER_RESETREAS_DIF_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_DIF_Detected (1UL) /*!< Detected */
+
+/* Bit 16 : Reset due to wake up from System OFF mode when wakeup is triggered from DETECT signal from GPIO */
+#define POWER_RESETREAS_OFF_Pos (16UL) /*!< Position of OFF field. */
+#define POWER_RESETREAS_OFF_Msk (0x1UL << POWER_RESETREAS_OFF_Pos) /*!< Bit mask of OFF field. */
+#define POWER_RESETREAS_OFF_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_OFF_Detected (1UL) /*!< Detected */
+
+/* Bit 3 : Reset from CPU lock-up detected */
+#define POWER_RESETREAS_LOCKUP_Pos (3UL) /*!< Position of LOCKUP field. */
+#define POWER_RESETREAS_LOCKUP_Msk (0x1UL << POWER_RESETREAS_LOCKUP_Pos) /*!< Bit mask of LOCKUP field. */
+#define POWER_RESETREAS_LOCKUP_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_LOCKUP_Detected (1UL) /*!< Detected */
+
+/* Bit 2 : Reset from soft reset detected */
+#define POWER_RESETREAS_SREQ_Pos (2UL) /*!< Position of SREQ field. */
+#define POWER_RESETREAS_SREQ_Msk (0x1UL << POWER_RESETREAS_SREQ_Pos) /*!< Bit mask of SREQ field. */
+#define POWER_RESETREAS_SREQ_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_SREQ_Detected (1UL) /*!< Detected */
+
+/* Bit 1 : Reset from watchdog detected */
+#define POWER_RESETREAS_DOG_Pos (1UL) /*!< Position of DOG field. */
+#define POWER_RESETREAS_DOG_Msk (0x1UL << POWER_RESETREAS_DOG_Pos) /*!< Bit mask of DOG field. */
+#define POWER_RESETREAS_DOG_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_DOG_Detected (1UL) /*!< Detected */
+
+/* Bit 0 : Reset from pin-reset detected */
+#define POWER_RESETREAS_RESETPIN_Pos (0UL) /*!< Position of RESETPIN field. */
+#define POWER_RESETREAS_RESETPIN_Msk (0x1UL << POWER_RESETREAS_RESETPIN_Pos) /*!< Bit mask of RESETPIN field. */
+#define POWER_RESETREAS_RESETPIN_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_RESETPIN_Detected (1UL) /*!< Detected */
+
+/* Register: POWER_SYSTEMOFF */
+/* Description: System OFF register */
+
+/* Bit 0 : Enable System OFF mode */
+#define POWER_SYSTEMOFF_SYSTEMOFF_Pos (0UL) /*!< Position of SYSTEMOFF field. */
+#define POWER_SYSTEMOFF_SYSTEMOFF_Msk (0x1UL << POWER_SYSTEMOFF_SYSTEMOFF_Pos) /*!< Bit mask of SYSTEMOFF field. */
+#define POWER_SYSTEMOFF_SYSTEMOFF_Enter (1UL) /*!< Enable System OFF mode */
+
+/* Register: POWER_POFCON */
+/* Description: Power failure comparator configuration */
+
+/* Bits 4..1 : Power failure comparator threshold setting */
+#define POWER_POFCON_THRESHOLD_Pos (1UL) /*!< Position of THRESHOLD field. */
+#define POWER_POFCON_THRESHOLD_Msk (0xFUL << POWER_POFCON_THRESHOLD_Pos) /*!< Bit mask of THRESHOLD field. */
+#define POWER_POFCON_THRESHOLD_V17 (4UL) /*!< Set threshold to 1.7 V */
+#define POWER_POFCON_THRESHOLD_V18 (5UL) /*!< Set threshold to 1.8 V */
+#define POWER_POFCON_THRESHOLD_V19 (6UL) /*!< Set threshold to 1.9 V */
+#define POWER_POFCON_THRESHOLD_V20 (7UL) /*!< Set threshold to 2.0 V */
+#define POWER_POFCON_THRESHOLD_V21 (8UL) /*!< Set threshold to 2.1 V */
+#define POWER_POFCON_THRESHOLD_V22 (9UL) /*!< Set threshold to 2.2 V */
+#define POWER_POFCON_THRESHOLD_V23 (10UL) /*!< Set threshold to 2.3 V */
+#define POWER_POFCON_THRESHOLD_V24 (11UL) /*!< Set threshold to 2.4 V */
+#define POWER_POFCON_THRESHOLD_V25 (12UL) /*!< Set threshold to 2.5 V */
+#define POWER_POFCON_THRESHOLD_V26 (13UL) /*!< Set threshold to 2.6 V */
+#define POWER_POFCON_THRESHOLD_V27 (14UL) /*!< Set threshold to 2.7 V */
+#define POWER_POFCON_THRESHOLD_V28 (15UL) /*!< Set threshold to 2.8 V */
+
+/* Bit 0 : Enable or disable power failure comparator */
+#define POWER_POFCON_POF_Pos (0UL) /*!< Position of POF field. */
+#define POWER_POFCON_POF_Msk (0x1UL << POWER_POFCON_POF_Pos) /*!< Bit mask of POF field. */
+#define POWER_POFCON_POF_Disabled (0UL) /*!< Disable */
+#define POWER_POFCON_POF_Enabled (1UL) /*!< Enable */
+
+/* Register: POWER_GPREGRET */
+/* Description: General purpose retention register */
+
+/* Bits 7..0 : General purpose retention register */
+#define POWER_GPREGRET_GPREGRET_Pos (0UL) /*!< Position of GPREGRET field. */
+#define POWER_GPREGRET_GPREGRET_Msk (0xFFUL << POWER_GPREGRET_GPREGRET_Pos) /*!< Bit mask of GPREGRET field. */
+
+/* Register: POWER_GPREGRET2 */
+/* Description: General purpose retention register */
+
+/* Bits 7..0 : General purpose retention register */
+#define POWER_GPREGRET2_GPREGRET_Pos (0UL) /*!< Position of GPREGRET field. */
+#define POWER_GPREGRET2_GPREGRET_Msk (0xFFUL << POWER_GPREGRET2_GPREGRET_Pos) /*!< Bit mask of GPREGRET field. */
+
+/* Register: POWER_DCDCEN */
+/* Description: DC/DC enable register */
+
+/* Bit 0 : Enable or disable DC/DC converter */
+#define POWER_DCDCEN_DCDCEN_Pos (0UL) /*!< Position of DCDCEN field. */
+#define POWER_DCDCEN_DCDCEN_Msk (0x1UL << POWER_DCDCEN_DCDCEN_Pos) /*!< Bit mask of DCDCEN field. */
+#define POWER_DCDCEN_DCDCEN_Disabled (0UL) /*!< Disable */
+#define POWER_DCDCEN_DCDCEN_Enabled (1UL) /*!< Enable */
+
+/* Register: POWER_RAM_POWER */
+/* Description: Description cluster[0]: RAM0 power control register */
+
+/* Bit 17 : Keep retention on RAM section S1 when RAM section is in OFF */
+#define POWER_RAM_POWER_S1RETENTION_Pos (17UL) /*!< Position of S1RETENTION field. */
+#define POWER_RAM_POWER_S1RETENTION_Msk (0x1UL << POWER_RAM_POWER_S1RETENTION_Pos) /*!< Bit mask of S1RETENTION field. */
+#define POWER_RAM_POWER_S1RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S1RETENTION_On (1UL) /*!< On */
+
+/* Bit 16 : Keep retention on RAM section S0 when RAM section is in OFF */
+#define POWER_RAM_POWER_S0RETENTION_Pos (16UL) /*!< Position of S0RETENTION field. */
+#define POWER_RAM_POWER_S0RETENTION_Msk (0x1UL << POWER_RAM_POWER_S0RETENTION_Pos) /*!< Bit mask of S0RETENTION field. */
+#define POWER_RAM_POWER_S0RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S0RETENTION_On (1UL) /*!< On */
+
+/* Bit 1 : Keep RAM section S1 ON or OFF in System ON mode. */
+#define POWER_RAM_POWER_S1POWER_Pos (1UL) /*!< Position of S1POWER field. */
+#define POWER_RAM_POWER_S1POWER_Msk (0x1UL << POWER_RAM_POWER_S1POWER_Pos) /*!< Bit mask of S1POWER field. */
+#define POWER_RAM_POWER_S1POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S1POWER_On (1UL) /*!< On */
+
+/* Bit 0 : Keep RAM section S0 ON or OFF in System ON mode. */
+#define POWER_RAM_POWER_S0POWER_Pos (0UL) /*!< Position of S0POWER field. */
+#define POWER_RAM_POWER_S0POWER_Msk (0x1UL << POWER_RAM_POWER_S0POWER_Pos) /*!< Bit mask of S0POWER field. */
+#define POWER_RAM_POWER_S0POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S0POWER_On (1UL) /*!< On */
+
+/* Register: POWER_RAM_POWERSET */
+/* Description: Description cluster[0]: RAM0 power control set register */
+
+/* Bit 17 : Keep retention on RAM section S1 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S1RETENTION_Pos (17UL) /*!< Position of S1RETENTION field. */
+#define POWER_RAM_POWERSET_S1RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S1RETENTION_Pos) /*!< Bit mask of S1RETENTION field. */
+#define POWER_RAM_POWERSET_S1RETENTION_On (1UL) /*!< On */
+
+/* Bit 16 : Keep retention on RAM section S0 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S0RETENTION_Pos (16UL) /*!< Position of S0RETENTION field. */
+#define POWER_RAM_POWERSET_S0RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S0RETENTION_Pos) /*!< Bit mask of S0RETENTION field. */
+#define POWER_RAM_POWERSET_S0RETENTION_On (1UL) /*!< On */
+
+/* Bit 1 : Keep RAM section S1 of RAM0 on or off in System ON mode */
+#define POWER_RAM_POWERSET_S1POWER_Pos (1UL) /*!< Position of S1POWER field. */
+#define POWER_RAM_POWERSET_S1POWER_Msk (0x1UL << POWER_RAM_POWERSET_S1POWER_Pos) /*!< Bit mask of S1POWER field. */
+#define POWER_RAM_POWERSET_S1POWER_On (1UL) /*!< On */
+
+/* Bit 0 : Keep RAM section S0 of RAM0 on or off in System ON mode */
+#define POWER_RAM_POWERSET_S0POWER_Pos (0UL) /*!< Position of S0POWER field. */
+#define POWER_RAM_POWERSET_S0POWER_Msk (0x1UL << POWER_RAM_POWERSET_S0POWER_Pos) /*!< Bit mask of S0POWER field. */
+#define POWER_RAM_POWERSET_S0POWER_On (1UL) /*!< On */
+
+/* Register: POWER_RAM_POWERCLR */
+/* Description: Description cluster[0]: RAM0 power control clear register */
+
+/* Bit 17 : Keep retention on RAM section S1 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S1RETENTION_Pos (17UL) /*!< Position of S1RETENTION field. */
+#define POWER_RAM_POWERCLR_S1RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S1RETENTION_Pos) /*!< Bit mask of S1RETENTION field. */
+#define POWER_RAM_POWERCLR_S1RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 16 : Keep retention on RAM section S0 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S0RETENTION_Pos (16UL) /*!< Position of S0RETENTION field. */
+#define POWER_RAM_POWERCLR_S0RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S0RETENTION_Pos) /*!< Bit mask of S0RETENTION field. */
+#define POWER_RAM_POWERCLR_S0RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 1 : Keep RAM section S1 of RAM0 on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S1POWER_Pos (1UL) /*!< Position of S1POWER field. */
+#define POWER_RAM_POWERCLR_S1POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S1POWER_Pos) /*!< Bit mask of S1POWER field. */
+#define POWER_RAM_POWERCLR_S1POWER_Off (1UL) /*!< Off */
+
+/* Bit 0 : Keep RAM section S0 of RAM0 on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S0POWER_Pos (0UL) /*!< Position of S0POWER field. */
+#define POWER_RAM_POWERCLR_S0POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S0POWER_Pos) /*!< Bit mask of S0POWER field. */
+#define POWER_RAM_POWERCLR_S0POWER_Off (1UL) /*!< Off */
+
+
+/* Peripheral: PPI */
+/* Description: Programmable Peripheral Interconnect */
+
+/* Register: PPI_TASKS_CHG_EN */
+/* Description: Description cluster[0]: Enable channel group 0 */
+
+/* Bit 0 : */
+#define PPI_TASKS_CHG_EN_EN_Pos (0UL) /*!< Position of EN field. */
+#define PPI_TASKS_CHG_EN_EN_Msk (0x1UL << PPI_TASKS_CHG_EN_EN_Pos) /*!< Bit mask of EN field. */
+
+/* Register: PPI_TASKS_CHG_DIS */
+/* Description: Description cluster[0]: Disable channel group 0 */
+
+/* Bit 0 : */
+#define PPI_TASKS_CHG_DIS_DIS_Pos (0UL) /*!< Position of DIS field. */
+#define PPI_TASKS_CHG_DIS_DIS_Msk (0x1UL << PPI_TASKS_CHG_DIS_DIS_Pos) /*!< Bit mask of DIS field. */
+
+/* Register: PPI_CHEN */
+/* Description: Channel enable register */
+
+/* Bit 31 : Enable or disable channel 31 */
+#define PPI_CHEN_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHEN_CH31_Msk (0x1UL << PPI_CHEN_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHEN_CH31_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH31_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 30 : Enable or disable channel 30 */
+#define PPI_CHEN_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHEN_CH30_Msk (0x1UL << PPI_CHEN_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHEN_CH30_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH30_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 29 : Enable or disable channel 29 */
+#define PPI_CHEN_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHEN_CH29_Msk (0x1UL << PPI_CHEN_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHEN_CH29_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH29_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 28 : Enable or disable channel 28 */
+#define PPI_CHEN_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHEN_CH28_Msk (0x1UL << PPI_CHEN_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHEN_CH28_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH28_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 27 : Enable or disable channel 27 */
+#define PPI_CHEN_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHEN_CH27_Msk (0x1UL << PPI_CHEN_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHEN_CH27_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH27_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 26 : Enable or disable channel 26 */
+#define PPI_CHEN_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHEN_CH26_Msk (0x1UL << PPI_CHEN_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHEN_CH26_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH26_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 25 : Enable or disable channel 25 */
+#define PPI_CHEN_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHEN_CH25_Msk (0x1UL << PPI_CHEN_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHEN_CH25_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH25_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 24 : Enable or disable channel 24 */
+#define PPI_CHEN_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHEN_CH24_Msk (0x1UL << PPI_CHEN_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHEN_CH24_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH24_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 23 : Enable or disable channel 23 */
+#define PPI_CHEN_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHEN_CH23_Msk (0x1UL << PPI_CHEN_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHEN_CH23_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH23_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 22 : Enable or disable channel 22 */
+#define PPI_CHEN_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHEN_CH22_Msk (0x1UL << PPI_CHEN_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHEN_CH22_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH22_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 21 : Enable or disable channel 21 */
+#define PPI_CHEN_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHEN_CH21_Msk (0x1UL << PPI_CHEN_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHEN_CH21_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH21_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 20 : Enable or disable channel 20 */
+#define PPI_CHEN_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHEN_CH20_Msk (0x1UL << PPI_CHEN_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHEN_CH20_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH20_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 19 : Enable or disable channel 19 */
+#define PPI_CHEN_CH19_Pos (19UL) /*!< Position of CH19 field. */
+#define PPI_CHEN_CH19_Msk (0x1UL << PPI_CHEN_CH19_Pos) /*!< Bit mask of CH19 field. */
+#define PPI_CHEN_CH19_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH19_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 18 : Enable or disable channel 18 */
+#define PPI_CHEN_CH18_Pos (18UL) /*!< Position of CH18 field. */
+#define PPI_CHEN_CH18_Msk (0x1UL << PPI_CHEN_CH18_Pos) /*!< Bit mask of CH18 field. */
+#define PPI_CHEN_CH18_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH18_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 17 : Enable or disable channel 17 */
+#define PPI_CHEN_CH17_Pos (17UL) /*!< Position of CH17 field. */
+#define PPI_CHEN_CH17_Msk (0x1UL << PPI_CHEN_CH17_Pos) /*!< Bit mask of CH17 field. */
+#define PPI_CHEN_CH17_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH17_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 16 : Enable or disable channel 16 */
+#define PPI_CHEN_CH16_Pos (16UL) /*!< Position of CH16 field. */
+#define PPI_CHEN_CH16_Msk (0x1UL << PPI_CHEN_CH16_Pos) /*!< Bit mask of CH16 field. */
+#define PPI_CHEN_CH16_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH16_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 15 : Enable or disable channel 15 */
+#define PPI_CHEN_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHEN_CH15_Msk (0x1UL << PPI_CHEN_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHEN_CH15_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH15_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 14 : Enable or disable channel 14 */
+#define PPI_CHEN_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHEN_CH14_Msk (0x1UL << PPI_CHEN_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHEN_CH14_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH14_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 13 : Enable or disable channel 13 */
+#define PPI_CHEN_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHEN_CH13_Msk (0x1UL << PPI_CHEN_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHEN_CH13_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH13_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 12 : Enable or disable channel 12 */
+#define PPI_CHEN_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHEN_CH12_Msk (0x1UL << PPI_CHEN_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHEN_CH12_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH12_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 11 : Enable or disable channel 11 */
+#define PPI_CHEN_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHEN_CH11_Msk (0x1UL << PPI_CHEN_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHEN_CH11_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH11_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 10 : Enable or disable channel 10 */
+#define PPI_CHEN_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHEN_CH10_Msk (0x1UL << PPI_CHEN_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHEN_CH10_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH10_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 9 : Enable or disable channel 9 */
+#define PPI_CHEN_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHEN_CH9_Msk (0x1UL << PPI_CHEN_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHEN_CH9_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH9_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 8 : Enable or disable channel 8 */
+#define PPI_CHEN_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHEN_CH8_Msk (0x1UL << PPI_CHEN_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHEN_CH8_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH8_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 7 : Enable or disable channel 7 */
+#define PPI_CHEN_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHEN_CH7_Msk (0x1UL << PPI_CHEN_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHEN_CH7_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH7_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 6 : Enable or disable channel 6 */
+#define PPI_CHEN_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHEN_CH6_Msk (0x1UL << PPI_CHEN_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHEN_CH6_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH6_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 5 : Enable or disable channel 5 */
+#define PPI_CHEN_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHEN_CH5_Msk (0x1UL << PPI_CHEN_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHEN_CH5_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH5_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 4 : Enable or disable channel 4 */
+#define PPI_CHEN_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHEN_CH4_Msk (0x1UL << PPI_CHEN_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHEN_CH4_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH4_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 3 : Enable or disable channel 3 */
+#define PPI_CHEN_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHEN_CH3_Msk (0x1UL << PPI_CHEN_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHEN_CH3_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH3_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 2 : Enable or disable channel 2 */
+#define PPI_CHEN_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHEN_CH2_Msk (0x1UL << PPI_CHEN_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHEN_CH2_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH2_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 1 : Enable or disable channel 1 */
+#define PPI_CHEN_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHEN_CH1_Msk (0x1UL << PPI_CHEN_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHEN_CH1_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH1_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 0 : Enable or disable channel 0 */
+#define PPI_CHEN_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHEN_CH0_Msk (0x1UL << PPI_CHEN_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHEN_CH0_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH0_Enabled (1UL) /*!< Enable channel */
+
+/* Register: PPI_CHENSET */
+/* Description: Channel enable set register */
+
+/* Bit 31 : Channel 31 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHENSET_CH31_Msk (0x1UL << PPI_CHENSET_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHENSET_CH31_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH31_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH31_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 30 : Channel 30 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHENSET_CH30_Msk (0x1UL << PPI_CHENSET_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHENSET_CH30_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH30_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH30_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 29 : Channel 29 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHENSET_CH29_Msk (0x1UL << PPI_CHENSET_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHENSET_CH29_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH29_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH29_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 28 : Channel 28 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHENSET_CH28_Msk (0x1UL << PPI_CHENSET_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHENSET_CH28_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH28_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH28_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 27 : Channel 27 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHENSET_CH27_Msk (0x1UL << PPI_CHENSET_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHENSET_CH27_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH27_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH27_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 26 : Channel 26 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHENSET_CH26_Msk (0x1UL << PPI_CHENSET_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHENSET_CH26_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH26_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH26_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 25 : Channel 25 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHENSET_CH25_Msk (0x1UL << PPI_CHENSET_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHENSET_CH25_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH25_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH25_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 24 : Channel 24 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHENSET_CH24_Msk (0x1UL << PPI_CHENSET_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHENSET_CH24_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH24_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH24_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 23 : Channel 23 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHENSET_CH23_Msk (0x1UL << PPI_CHENSET_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHENSET_CH23_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH23_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH23_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 22 : Channel 22 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHENSET_CH22_Msk (0x1UL << PPI_CHENSET_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHENSET_CH22_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH22_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH22_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 21 : Channel 21 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHENSET_CH21_Msk (0x1UL << PPI_CHENSET_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHENSET_CH21_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH21_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH21_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 20 : Channel 20 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHENSET_CH20_Msk (0x1UL << PPI_CHENSET_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHENSET_CH20_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH20_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH20_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 19 : Channel 19 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH19_Pos (19UL) /*!< Position of CH19 field. */
+#define PPI_CHENSET_CH19_Msk (0x1UL << PPI_CHENSET_CH19_Pos) /*!< Bit mask of CH19 field. */
+#define PPI_CHENSET_CH19_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH19_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH19_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 18 : Channel 18 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH18_Pos (18UL) /*!< Position of CH18 field. */
+#define PPI_CHENSET_CH18_Msk (0x1UL << PPI_CHENSET_CH18_Pos) /*!< Bit mask of CH18 field. */
+#define PPI_CHENSET_CH18_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH18_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH18_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 17 : Channel 17 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH17_Pos (17UL) /*!< Position of CH17 field. */
+#define PPI_CHENSET_CH17_Msk (0x1UL << PPI_CHENSET_CH17_Pos) /*!< Bit mask of CH17 field. */
+#define PPI_CHENSET_CH17_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH17_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH17_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 16 : Channel 16 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH16_Pos (16UL) /*!< Position of CH16 field. */
+#define PPI_CHENSET_CH16_Msk (0x1UL << PPI_CHENSET_CH16_Pos) /*!< Bit mask of CH16 field. */
+#define PPI_CHENSET_CH16_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH16_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH16_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 15 : Channel 15 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHENSET_CH15_Msk (0x1UL << PPI_CHENSET_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHENSET_CH15_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH15_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH15_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 14 : Channel 14 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHENSET_CH14_Msk (0x1UL << PPI_CHENSET_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHENSET_CH14_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH14_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH14_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 13 : Channel 13 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHENSET_CH13_Msk (0x1UL << PPI_CHENSET_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHENSET_CH13_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH13_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH13_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 12 : Channel 12 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHENSET_CH12_Msk (0x1UL << PPI_CHENSET_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHENSET_CH12_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH12_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH12_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 11 : Channel 11 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHENSET_CH11_Msk (0x1UL << PPI_CHENSET_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHENSET_CH11_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH11_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH11_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 10 : Channel 10 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHENSET_CH10_Msk (0x1UL << PPI_CHENSET_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHENSET_CH10_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH10_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH10_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 9 : Channel 9 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHENSET_CH9_Msk (0x1UL << PPI_CHENSET_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHENSET_CH9_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH9_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH9_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 8 : Channel 8 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHENSET_CH8_Msk (0x1UL << PPI_CHENSET_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHENSET_CH8_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH8_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH8_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 7 : Channel 7 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHENSET_CH7_Msk (0x1UL << PPI_CHENSET_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHENSET_CH7_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH7_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH7_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 6 : Channel 6 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHENSET_CH6_Msk (0x1UL << PPI_CHENSET_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHENSET_CH6_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH6_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH6_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 5 : Channel 5 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHENSET_CH5_Msk (0x1UL << PPI_CHENSET_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHENSET_CH5_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH5_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH5_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 4 : Channel 4 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHENSET_CH4_Msk (0x1UL << PPI_CHENSET_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHENSET_CH4_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH4_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH4_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 3 : Channel 3 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHENSET_CH3_Msk (0x1UL << PPI_CHENSET_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHENSET_CH3_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH3_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH3_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 2 : Channel 2 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHENSET_CH2_Msk (0x1UL << PPI_CHENSET_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHENSET_CH2_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH2_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH2_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 1 : Channel 1 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHENSET_CH1_Msk (0x1UL << PPI_CHENSET_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHENSET_CH1_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH1_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH1_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 0 : Channel 0 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHENSET_CH0_Msk (0x1UL << PPI_CHENSET_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHENSET_CH0_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH0_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH0_Set (1UL) /*!< Write: Enable channel */
+
+/* Register: PPI_CHENCLR */
+/* Description: Channel enable clear register */
+
+/* Bit 31 : Channel 31 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHENCLR_CH31_Msk (0x1UL << PPI_CHENCLR_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHENCLR_CH31_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH31_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH31_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 30 : Channel 30 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHENCLR_CH30_Msk (0x1UL << PPI_CHENCLR_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHENCLR_CH30_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH30_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH30_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 29 : Channel 29 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHENCLR_CH29_Msk (0x1UL << PPI_CHENCLR_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHENCLR_CH29_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH29_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH29_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 28 : Channel 28 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHENCLR_CH28_Msk (0x1UL << PPI_CHENCLR_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHENCLR_CH28_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH28_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH28_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 27 : Channel 27 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHENCLR_CH27_Msk (0x1UL << PPI_CHENCLR_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHENCLR_CH27_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH27_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH27_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 26 : Channel 26 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHENCLR_CH26_Msk (0x1UL << PPI_CHENCLR_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHENCLR_CH26_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH26_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH26_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 25 : Channel 25 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHENCLR_CH25_Msk (0x1UL << PPI_CHENCLR_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHENCLR_CH25_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH25_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH25_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 24 : Channel 24 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHENCLR_CH24_Msk (0x1UL << PPI_CHENCLR_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHENCLR_CH24_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH24_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH24_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 23 : Channel 23 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHENCLR_CH23_Msk (0x1UL << PPI_CHENCLR_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHENCLR_CH23_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH23_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH23_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 22 : Channel 22 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHENCLR_CH22_Msk (0x1UL << PPI_CHENCLR_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHENCLR_CH22_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH22_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH22_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 21 : Channel 21 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHENCLR_CH21_Msk (0x1UL << PPI_CHENCLR_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHENCLR_CH21_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH21_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH21_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 20 : Channel 20 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHENCLR_CH20_Msk (0x1UL << PPI_CHENCLR_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHENCLR_CH20_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH20_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH20_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 19 : Channel 19 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH19_Pos (19UL) /*!< Position of CH19 field. */
+#define PPI_CHENCLR_CH19_Msk (0x1UL << PPI_CHENCLR_CH19_Pos) /*!< Bit mask of CH19 field. */
+#define PPI_CHENCLR_CH19_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH19_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH19_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 18 : Channel 18 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH18_Pos (18UL) /*!< Position of CH18 field. */
+#define PPI_CHENCLR_CH18_Msk (0x1UL << PPI_CHENCLR_CH18_Pos) /*!< Bit mask of CH18 field. */
+#define PPI_CHENCLR_CH18_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH18_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH18_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 17 : Channel 17 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH17_Pos (17UL) /*!< Position of CH17 field. */
+#define PPI_CHENCLR_CH17_Msk (0x1UL << PPI_CHENCLR_CH17_Pos) /*!< Bit mask of CH17 field. */
+#define PPI_CHENCLR_CH17_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH17_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH17_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 16 : Channel 16 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH16_Pos (16UL) /*!< Position of CH16 field. */
+#define PPI_CHENCLR_CH16_Msk (0x1UL << PPI_CHENCLR_CH16_Pos) /*!< Bit mask of CH16 field. */
+#define PPI_CHENCLR_CH16_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH16_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH16_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 15 : Channel 15 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHENCLR_CH15_Msk (0x1UL << PPI_CHENCLR_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHENCLR_CH15_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH15_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH15_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 14 : Channel 14 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHENCLR_CH14_Msk (0x1UL << PPI_CHENCLR_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHENCLR_CH14_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH14_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH14_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 13 : Channel 13 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHENCLR_CH13_Msk (0x1UL << PPI_CHENCLR_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHENCLR_CH13_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH13_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH13_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 12 : Channel 12 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHENCLR_CH12_Msk (0x1UL << PPI_CHENCLR_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHENCLR_CH12_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH12_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH12_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 11 : Channel 11 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHENCLR_CH11_Msk (0x1UL << PPI_CHENCLR_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHENCLR_CH11_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH11_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH11_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 10 : Channel 10 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHENCLR_CH10_Msk (0x1UL << PPI_CHENCLR_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHENCLR_CH10_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH10_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH10_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 9 : Channel 9 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHENCLR_CH9_Msk (0x1UL << PPI_CHENCLR_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHENCLR_CH9_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH9_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH9_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 8 : Channel 8 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHENCLR_CH8_Msk (0x1UL << PPI_CHENCLR_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHENCLR_CH8_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH8_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH8_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 7 : Channel 7 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHENCLR_CH7_Msk (0x1UL << PPI_CHENCLR_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHENCLR_CH7_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH7_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH7_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 6 : Channel 6 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHENCLR_CH6_Msk (0x1UL << PPI_CHENCLR_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHENCLR_CH6_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH6_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH6_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 5 : Channel 5 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHENCLR_CH5_Msk (0x1UL << PPI_CHENCLR_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHENCLR_CH5_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH5_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH5_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 4 : Channel 4 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHENCLR_CH4_Msk (0x1UL << PPI_CHENCLR_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHENCLR_CH4_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH4_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH4_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 3 : Channel 3 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHENCLR_CH3_Msk (0x1UL << PPI_CHENCLR_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHENCLR_CH3_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH3_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH3_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 2 : Channel 2 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHENCLR_CH2_Msk (0x1UL << PPI_CHENCLR_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHENCLR_CH2_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH2_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH2_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 1 : Channel 1 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHENCLR_CH1_Msk (0x1UL << PPI_CHENCLR_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHENCLR_CH1_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH1_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH1_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 0 : Channel 0 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHENCLR_CH0_Msk (0x1UL << PPI_CHENCLR_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHENCLR_CH0_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH0_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH0_Clear (1UL) /*!< Write: disable channel */
+
+/* Register: PPI_CH_EEP */
+/* Description: Description cluster[0]: Channel 0 event end-point */
+
+/* Bits 31..0 : Pointer to event register. Accepts only addresses to registers from the Event group. */
+#define PPI_CH_EEP_EEP_Pos (0UL) /*!< Position of EEP field. */
+#define PPI_CH_EEP_EEP_Msk (0xFFFFFFFFUL << PPI_CH_EEP_EEP_Pos) /*!< Bit mask of EEP field. */
+
+/* Register: PPI_CH_TEP */
+/* Description: Description cluster[0]: Channel 0 task end-point */
+
+/* Bits 31..0 : Pointer to task register. Accepts only addresses to registers from the Task group. */
+#define PPI_CH_TEP_TEP_Pos (0UL) /*!< Position of TEP field. */
+#define PPI_CH_TEP_TEP_Msk (0xFFFFFFFFUL << PPI_CH_TEP_TEP_Pos) /*!< Bit mask of TEP field. */
+
+/* Register: PPI_CHG */
+/* Description: Description collection[0]: Channel group 0 */
+
+/* Bit 31 : Include or exclude channel 31 */
+#define PPI_CHG_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHG_CH31_Msk (0x1UL << PPI_CHG_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHG_CH31_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH31_Included (1UL) /*!< Include */
+
+/* Bit 30 : Include or exclude channel 30 */
+#define PPI_CHG_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHG_CH30_Msk (0x1UL << PPI_CHG_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHG_CH30_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH30_Included (1UL) /*!< Include */
+
+/* Bit 29 : Include or exclude channel 29 */
+#define PPI_CHG_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHG_CH29_Msk (0x1UL << PPI_CHG_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHG_CH29_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH29_Included (1UL) /*!< Include */
+
+/* Bit 28 : Include or exclude channel 28 */
+#define PPI_CHG_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHG_CH28_Msk (0x1UL << PPI_CHG_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHG_CH28_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH28_Included (1UL) /*!< Include */
+
+/* Bit 27 : Include or exclude channel 27 */
+#define PPI_CHG_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHG_CH27_Msk (0x1UL << PPI_CHG_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHG_CH27_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH27_Included (1UL) /*!< Include */
+
+/* Bit 26 : Include or exclude channel 26 */
+#define PPI_CHG_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHG_CH26_Msk (0x1UL << PPI_CHG_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHG_CH26_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH26_Included (1UL) /*!< Include */
+
+/* Bit 25 : Include or exclude channel 25 */
+#define PPI_CHG_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHG_CH25_Msk (0x1UL << PPI_CHG_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHG_CH25_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH25_Included (1UL) /*!< Include */
+
+/* Bit 24 : Include or exclude channel 24 */
+#define PPI_CHG_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHG_CH24_Msk (0x1UL << PPI_CHG_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHG_CH24_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH24_Included (1UL) /*!< Include */
+
+/* Bit 23 : Include or exclude channel 23 */
+#define PPI_CHG_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHG_CH23_Msk (0x1UL << PPI_CHG_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHG_CH23_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH23_Included (1UL) /*!< Include */
+
+/* Bit 22 : Include or exclude channel 22 */
+#define PPI_CHG_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHG_CH22_Msk (0x1UL << PPI_CHG_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHG_CH22_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH22_Included (1UL) /*!< Include */
+
+/* Bit 21 : Include or exclude channel 21 */
+#define PPI_CHG_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHG_CH21_Msk (0x1UL << PPI_CHG_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHG_CH21_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH21_Included (1UL) /*!< Include */
+
+/* Bit 20 : Include or exclude channel 20 */
+#define PPI_CHG_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHG_CH20_Msk (0x1UL << PPI_CHG_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHG_CH20_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH20_Included (1UL) /*!< Include */
+
+/* Bit 19 : Include or exclude channel 19 */
+#define PPI_CHG_CH19_Pos (19UL) /*!< Position of CH19 field. */
+#define PPI_CHG_CH19_Msk (0x1UL << PPI_CHG_CH19_Pos) /*!< Bit mask of CH19 field. */
+#define PPI_CHG_CH19_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH19_Included (1UL) /*!< Include */
+
+/* Bit 18 : Include or exclude channel 18 */
+#define PPI_CHG_CH18_Pos (18UL) /*!< Position of CH18 field. */
+#define PPI_CHG_CH18_Msk (0x1UL << PPI_CHG_CH18_Pos) /*!< Bit mask of CH18 field. */
+#define PPI_CHG_CH18_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH18_Included (1UL) /*!< Include */
+
+/* Bit 17 : Include or exclude channel 17 */
+#define PPI_CHG_CH17_Pos (17UL) /*!< Position of CH17 field. */
+#define PPI_CHG_CH17_Msk (0x1UL << PPI_CHG_CH17_Pos) /*!< Bit mask of CH17 field. */
+#define PPI_CHG_CH17_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH17_Included (1UL) /*!< Include */
+
+/* Bit 16 : Include or exclude channel 16 */
+#define PPI_CHG_CH16_Pos (16UL) /*!< Position of CH16 field. */
+#define PPI_CHG_CH16_Msk (0x1UL << PPI_CHG_CH16_Pos) /*!< Bit mask of CH16 field. */
+#define PPI_CHG_CH16_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH16_Included (1UL) /*!< Include */
+
+/* Bit 15 : Include or exclude channel 15 */
+#define PPI_CHG_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHG_CH15_Msk (0x1UL << PPI_CHG_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHG_CH15_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH15_Included (1UL) /*!< Include */
+
+/* Bit 14 : Include or exclude channel 14 */
+#define PPI_CHG_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHG_CH14_Msk (0x1UL << PPI_CHG_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHG_CH14_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH14_Included (1UL) /*!< Include */
+
+/* Bit 13 : Include or exclude channel 13 */
+#define PPI_CHG_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHG_CH13_Msk (0x1UL << PPI_CHG_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHG_CH13_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH13_Included (1UL) /*!< Include */
+
+/* Bit 12 : Include or exclude channel 12 */
+#define PPI_CHG_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHG_CH12_Msk (0x1UL << PPI_CHG_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHG_CH12_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH12_Included (1UL) /*!< Include */
+
+/* Bit 11 : Include or exclude channel 11 */
+#define PPI_CHG_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHG_CH11_Msk (0x1UL << PPI_CHG_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHG_CH11_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH11_Included (1UL) /*!< Include */
+
+/* Bit 10 : Include or exclude channel 10 */
+#define PPI_CHG_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHG_CH10_Msk (0x1UL << PPI_CHG_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHG_CH10_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH10_Included (1UL) /*!< Include */
+
+/* Bit 9 : Include or exclude channel 9 */
+#define PPI_CHG_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHG_CH9_Msk (0x1UL << PPI_CHG_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHG_CH9_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH9_Included (1UL) /*!< Include */
+
+/* Bit 8 : Include or exclude channel 8 */
+#define PPI_CHG_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHG_CH8_Msk (0x1UL << PPI_CHG_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHG_CH8_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH8_Included (1UL) /*!< Include */
+
+/* Bit 7 : Include or exclude channel 7 */
+#define PPI_CHG_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHG_CH7_Msk (0x1UL << PPI_CHG_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHG_CH7_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH7_Included (1UL) /*!< Include */
+
+/* Bit 6 : Include or exclude channel 6 */
+#define PPI_CHG_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHG_CH6_Msk (0x1UL << PPI_CHG_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHG_CH6_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH6_Included (1UL) /*!< Include */
+
+/* Bit 5 : Include or exclude channel 5 */
+#define PPI_CHG_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHG_CH5_Msk (0x1UL << PPI_CHG_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHG_CH5_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH5_Included (1UL) /*!< Include */
+
+/* Bit 4 : Include or exclude channel 4 */
+#define PPI_CHG_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHG_CH4_Msk (0x1UL << PPI_CHG_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHG_CH4_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH4_Included (1UL) /*!< Include */
+
+/* Bit 3 : Include or exclude channel 3 */
+#define PPI_CHG_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHG_CH3_Msk (0x1UL << PPI_CHG_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHG_CH3_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH3_Included (1UL) /*!< Include */
+
+/* Bit 2 : Include or exclude channel 2 */
+#define PPI_CHG_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHG_CH2_Msk (0x1UL << PPI_CHG_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHG_CH2_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH2_Included (1UL) /*!< Include */
+
+/* Bit 1 : Include or exclude channel 1 */
+#define PPI_CHG_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHG_CH1_Msk (0x1UL << PPI_CHG_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHG_CH1_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH1_Included (1UL) /*!< Include */
+
+/* Bit 0 : Include or exclude channel 0 */
+#define PPI_CHG_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHG_CH0_Msk (0x1UL << PPI_CHG_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHG_CH0_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH0_Included (1UL) /*!< Include */
+
+/* Register: PPI_FORK_TEP */
+/* Description: Description cluster[0]: Channel 0 task end-point */
+
+/* Bits 31..0 : Pointer to task register */
+#define PPI_FORK_TEP_TEP_Pos (0UL) /*!< Position of TEP field. */
+#define PPI_FORK_TEP_TEP_Msk (0xFFFFFFFFUL << PPI_FORK_TEP_TEP_Pos) /*!< Bit mask of TEP field. */
+
+
+/* Peripheral: PWM */
+/* Description: Pulse width modulation unit */
+
+/* Register: PWM_TASKS_STOP */
+/* Description: Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback */
+
+/* Bit 0 : */
+#define PWM_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define PWM_TASKS_STOP_TASKS_STOP_Msk (0x1UL << PWM_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: PWM_TASKS_SEQSTART */
+/* Description: Description collection[0]: Loads the first PWM value on all enabled channels from sequence 0, and starts playing that sequence at the rate defined in SEQ[0]REFRESH and/or DECODER.MODE. Causes PWM generation to start if not running. */
+
+/* Bit 0 : */
+#define PWM_TASKS_SEQSTART_TASKS_SEQSTART_Pos (0UL) /*!< Position of TASKS_SEQSTART field. */
+#define PWM_TASKS_SEQSTART_TASKS_SEQSTART_Msk (0x1UL << PWM_TASKS_SEQSTART_TASKS_SEQSTART_Pos) /*!< Bit mask of TASKS_SEQSTART field. */
+
+/* Register: PWM_TASKS_NEXTSTEP */
+/* Description: Steps by one value in the current sequence on all enabled channels if DECODER.MODE=NextStep. Does not cause PWM generation to start if not running. */
+
+/* Bit 0 : */
+#define PWM_TASKS_NEXTSTEP_TASKS_NEXTSTEP_Pos (0UL) /*!< Position of TASKS_NEXTSTEP field. */
+#define PWM_TASKS_NEXTSTEP_TASKS_NEXTSTEP_Msk (0x1UL << PWM_TASKS_NEXTSTEP_TASKS_NEXTSTEP_Pos) /*!< Bit mask of TASKS_NEXTSTEP field. */
+
+/* Register: PWM_EVENTS_STOPPED */
+/* Description: Response to STOP task, emitted when PWM pulses are no longer generated */
+
+/* Bit 0 : */
+#define PWM_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define PWM_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << PWM_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: PWM_EVENTS_SEQSTARTED */
+/* Description: Description collection[0]: First PWM period started on sequence 0 */
+
+/* Bit 0 : */
+#define PWM_EVENTS_SEQSTARTED_EVENTS_SEQSTARTED_Pos (0UL) /*!< Position of EVENTS_SEQSTARTED field. */
+#define PWM_EVENTS_SEQSTARTED_EVENTS_SEQSTARTED_Msk (0x1UL << PWM_EVENTS_SEQSTARTED_EVENTS_SEQSTARTED_Pos) /*!< Bit mask of EVENTS_SEQSTARTED field. */
+
+/* Register: PWM_EVENTS_SEQEND */
+/* Description: Description collection[0]: Emitted at end of every sequence 0, when last value from RAM has been applied to wave counter */
+
+/* Bit 0 : */
+#define PWM_EVENTS_SEQEND_EVENTS_SEQEND_Pos (0UL) /*!< Position of EVENTS_SEQEND field. */
+#define PWM_EVENTS_SEQEND_EVENTS_SEQEND_Msk (0x1UL << PWM_EVENTS_SEQEND_EVENTS_SEQEND_Pos) /*!< Bit mask of EVENTS_SEQEND field. */
+
+/* Register: PWM_EVENTS_PWMPERIODEND */
+/* Description: Emitted at the end of each PWM period */
+
+/* Bit 0 : */
+#define PWM_EVENTS_PWMPERIODEND_EVENTS_PWMPERIODEND_Pos (0UL) /*!< Position of EVENTS_PWMPERIODEND field. */
+#define PWM_EVENTS_PWMPERIODEND_EVENTS_PWMPERIODEND_Msk (0x1UL << PWM_EVENTS_PWMPERIODEND_EVENTS_PWMPERIODEND_Pos) /*!< Bit mask of EVENTS_PWMPERIODEND field. */
+
+/* Register: PWM_EVENTS_LOOPSDONE */
+/* Description: Concatenated sequences have been played the amount of times defined in LOOP.CNT */
+
+/* Bit 0 : */
+#define PWM_EVENTS_LOOPSDONE_EVENTS_LOOPSDONE_Pos (0UL) /*!< Position of EVENTS_LOOPSDONE field. */
+#define PWM_EVENTS_LOOPSDONE_EVENTS_LOOPSDONE_Msk (0x1UL << PWM_EVENTS_LOOPSDONE_EVENTS_LOOPSDONE_Pos) /*!< Bit mask of EVENTS_LOOPSDONE field. */
+
+/* Register: PWM_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 4 : Shortcut between LOOPSDONE event and STOP task */
+#define PWM_SHORTS_LOOPSDONE_STOP_Pos (4UL) /*!< Position of LOOPSDONE_STOP field. */
+#define PWM_SHORTS_LOOPSDONE_STOP_Msk (0x1UL << PWM_SHORTS_LOOPSDONE_STOP_Pos) /*!< Bit mask of LOOPSDONE_STOP field. */
+#define PWM_SHORTS_LOOPSDONE_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_LOOPSDONE_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between LOOPSDONE event and SEQSTART[1] task */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART1_Pos (3UL) /*!< Position of LOOPSDONE_SEQSTART1 field. */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART1_Msk (0x1UL << PWM_SHORTS_LOOPSDONE_SEQSTART1_Pos) /*!< Bit mask of LOOPSDONE_SEQSTART1 field. */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART1_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART1_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between LOOPSDONE event and SEQSTART[0] task */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART0_Pos (2UL) /*!< Position of LOOPSDONE_SEQSTART0 field. */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART0_Msk (0x1UL << PWM_SHORTS_LOOPSDONE_SEQSTART0_Pos) /*!< Bit mask of LOOPSDONE_SEQSTART0 field. */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART0_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART0_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between SEQEND[1] event and STOP task */
+#define PWM_SHORTS_SEQEND1_STOP_Pos (1UL) /*!< Position of SEQEND1_STOP field. */
+#define PWM_SHORTS_SEQEND1_STOP_Msk (0x1UL << PWM_SHORTS_SEQEND1_STOP_Pos) /*!< Bit mask of SEQEND1_STOP field. */
+#define PWM_SHORTS_SEQEND1_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_SEQEND1_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between SEQEND[0] event and STOP task */
+#define PWM_SHORTS_SEQEND0_STOP_Pos (0UL) /*!< Position of SEQEND0_STOP field. */
+#define PWM_SHORTS_SEQEND0_STOP_Msk (0x1UL << PWM_SHORTS_SEQEND0_STOP_Pos) /*!< Bit mask of SEQEND0_STOP field. */
+#define PWM_SHORTS_SEQEND0_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_SEQEND0_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: PWM_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 7 : Enable or disable interrupt for LOOPSDONE event */
+#define PWM_INTEN_LOOPSDONE_Pos (7UL) /*!< Position of LOOPSDONE field. */
+#define PWM_INTEN_LOOPSDONE_Msk (0x1UL << PWM_INTEN_LOOPSDONE_Pos) /*!< Bit mask of LOOPSDONE field. */
+#define PWM_INTEN_LOOPSDONE_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_LOOPSDONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for PWMPERIODEND event */
+#define PWM_INTEN_PWMPERIODEND_Pos (6UL) /*!< Position of PWMPERIODEND field. */
+#define PWM_INTEN_PWMPERIODEND_Msk (0x1UL << PWM_INTEN_PWMPERIODEND_Pos) /*!< Bit mask of PWMPERIODEND field. */
+#define PWM_INTEN_PWMPERIODEND_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_PWMPERIODEND_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for SEQEND[1] event */
+#define PWM_INTEN_SEQEND1_Pos (5UL) /*!< Position of SEQEND1 field. */
+#define PWM_INTEN_SEQEND1_Msk (0x1UL << PWM_INTEN_SEQEND1_Pos) /*!< Bit mask of SEQEND1 field. */
+#define PWM_INTEN_SEQEND1_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_SEQEND1_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for SEQEND[0] event */
+#define PWM_INTEN_SEQEND0_Pos (4UL) /*!< Position of SEQEND0 field. */
+#define PWM_INTEN_SEQEND0_Msk (0x1UL << PWM_INTEN_SEQEND0_Pos) /*!< Bit mask of SEQEND0 field. */
+#define PWM_INTEN_SEQEND0_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_SEQEND0_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for SEQSTARTED[1] event */
+#define PWM_INTEN_SEQSTARTED1_Pos (3UL) /*!< Position of SEQSTARTED1 field. */
+#define PWM_INTEN_SEQSTARTED1_Msk (0x1UL << PWM_INTEN_SEQSTARTED1_Pos) /*!< Bit mask of SEQSTARTED1 field. */
+#define PWM_INTEN_SEQSTARTED1_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_SEQSTARTED1_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for SEQSTARTED[0] event */
+#define PWM_INTEN_SEQSTARTED0_Pos (2UL) /*!< Position of SEQSTARTED0 field. */
+#define PWM_INTEN_SEQSTARTED0_Msk (0x1UL << PWM_INTEN_SEQSTARTED0_Pos) /*!< Bit mask of SEQSTARTED0 field. */
+#define PWM_INTEN_SEQSTARTED0_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_SEQSTARTED0_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STOPPED event */
+#define PWM_INTEN_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PWM_INTEN_STOPPED_Msk (0x1UL << PWM_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PWM_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Register: PWM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 7 : Write '1' to Enable interrupt for LOOPSDONE event */
+#define PWM_INTENSET_LOOPSDONE_Pos (7UL) /*!< Position of LOOPSDONE field. */
+#define PWM_INTENSET_LOOPSDONE_Msk (0x1UL << PWM_INTENSET_LOOPSDONE_Pos) /*!< Bit mask of LOOPSDONE field. */
+#define PWM_INTENSET_LOOPSDONE_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_LOOPSDONE_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_LOOPSDONE_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for PWMPERIODEND event */
+#define PWM_INTENSET_PWMPERIODEND_Pos (6UL) /*!< Position of PWMPERIODEND field. */
+#define PWM_INTENSET_PWMPERIODEND_Msk (0x1UL << PWM_INTENSET_PWMPERIODEND_Pos) /*!< Bit mask of PWMPERIODEND field. */
+#define PWM_INTENSET_PWMPERIODEND_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_PWMPERIODEND_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_PWMPERIODEND_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for SEQEND[1] event */
+#define PWM_INTENSET_SEQEND1_Pos (5UL) /*!< Position of SEQEND1 field. */
+#define PWM_INTENSET_SEQEND1_Msk (0x1UL << PWM_INTENSET_SEQEND1_Pos) /*!< Bit mask of SEQEND1 field. */
+#define PWM_INTENSET_SEQEND1_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_SEQEND1_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_SEQEND1_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for SEQEND[0] event */
+#define PWM_INTENSET_SEQEND0_Pos (4UL) /*!< Position of SEQEND0 field. */
+#define PWM_INTENSET_SEQEND0_Msk (0x1UL << PWM_INTENSET_SEQEND0_Pos) /*!< Bit mask of SEQEND0 field. */
+#define PWM_INTENSET_SEQEND0_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_SEQEND0_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_SEQEND0_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for SEQSTARTED[1] event */
+#define PWM_INTENSET_SEQSTARTED1_Pos (3UL) /*!< Position of SEQSTARTED1 field. */
+#define PWM_INTENSET_SEQSTARTED1_Msk (0x1UL << PWM_INTENSET_SEQSTARTED1_Pos) /*!< Bit mask of SEQSTARTED1 field. */
+#define PWM_INTENSET_SEQSTARTED1_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_SEQSTARTED1_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_SEQSTARTED1_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for SEQSTARTED[0] event */
+#define PWM_INTENSET_SEQSTARTED0_Pos (2UL) /*!< Position of SEQSTARTED0 field. */
+#define PWM_INTENSET_SEQSTARTED0_Msk (0x1UL << PWM_INTENSET_SEQSTARTED0_Pos) /*!< Bit mask of SEQSTARTED0 field. */
+#define PWM_INTENSET_SEQSTARTED0_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_SEQSTARTED0_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_SEQSTARTED0_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for STOPPED event */
+#define PWM_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PWM_INTENSET_STOPPED_Msk (0x1UL << PWM_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PWM_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: PWM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 7 : Write '1' to Disable interrupt for LOOPSDONE event */
+#define PWM_INTENCLR_LOOPSDONE_Pos (7UL) /*!< Position of LOOPSDONE field. */
+#define PWM_INTENCLR_LOOPSDONE_Msk (0x1UL << PWM_INTENCLR_LOOPSDONE_Pos) /*!< Bit mask of LOOPSDONE field. */
+#define PWM_INTENCLR_LOOPSDONE_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_LOOPSDONE_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_LOOPSDONE_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for PWMPERIODEND event */
+#define PWM_INTENCLR_PWMPERIODEND_Pos (6UL) /*!< Position of PWMPERIODEND field. */
+#define PWM_INTENCLR_PWMPERIODEND_Msk (0x1UL << PWM_INTENCLR_PWMPERIODEND_Pos) /*!< Bit mask of PWMPERIODEND field. */
+#define PWM_INTENCLR_PWMPERIODEND_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_PWMPERIODEND_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_PWMPERIODEND_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for SEQEND[1] event */
+#define PWM_INTENCLR_SEQEND1_Pos (5UL) /*!< Position of SEQEND1 field. */
+#define PWM_INTENCLR_SEQEND1_Msk (0x1UL << PWM_INTENCLR_SEQEND1_Pos) /*!< Bit mask of SEQEND1 field. */
+#define PWM_INTENCLR_SEQEND1_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_SEQEND1_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_SEQEND1_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for SEQEND[0] event */
+#define PWM_INTENCLR_SEQEND0_Pos (4UL) /*!< Position of SEQEND0 field. */
+#define PWM_INTENCLR_SEQEND0_Msk (0x1UL << PWM_INTENCLR_SEQEND0_Pos) /*!< Bit mask of SEQEND0 field. */
+#define PWM_INTENCLR_SEQEND0_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_SEQEND0_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_SEQEND0_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for SEQSTARTED[1] event */
+#define PWM_INTENCLR_SEQSTARTED1_Pos (3UL) /*!< Position of SEQSTARTED1 field. */
+#define PWM_INTENCLR_SEQSTARTED1_Msk (0x1UL << PWM_INTENCLR_SEQSTARTED1_Pos) /*!< Bit mask of SEQSTARTED1 field. */
+#define PWM_INTENCLR_SEQSTARTED1_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_SEQSTARTED1_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_SEQSTARTED1_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for SEQSTARTED[0] event */
+#define PWM_INTENCLR_SEQSTARTED0_Pos (2UL) /*!< Position of SEQSTARTED0 field. */
+#define PWM_INTENCLR_SEQSTARTED0_Msk (0x1UL << PWM_INTENCLR_SEQSTARTED0_Pos) /*!< Bit mask of SEQSTARTED0 field. */
+#define PWM_INTENCLR_SEQSTARTED0_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_SEQSTARTED0_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_SEQSTARTED0_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for STOPPED event */
+#define PWM_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PWM_INTENCLR_STOPPED_Msk (0x1UL << PWM_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PWM_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: PWM_ENABLE */
+/* Description: PWM module enable register */
+
+/* Bit 0 : Enable or disable PWM module */
+#define PWM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define PWM_ENABLE_ENABLE_Msk (0x1UL << PWM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define PWM_ENABLE_ENABLE_Disabled (0UL) /*!< Disabled */
+#define PWM_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: PWM_MODE */
+/* Description: Selects operating mode of the wave counter */
+
+/* Bit 0 : Selects up mode or up-and-down mode for the counter */
+#define PWM_MODE_UPDOWN_Pos (0UL) /*!< Position of UPDOWN field. */
+#define PWM_MODE_UPDOWN_Msk (0x1UL << PWM_MODE_UPDOWN_Pos) /*!< Bit mask of UPDOWN field. */
+#define PWM_MODE_UPDOWN_Up (0UL) /*!< Up counter, edge-aligned PWM duty cycle */
+#define PWM_MODE_UPDOWN_UpAndDown (1UL) /*!< Up and down counter, center-aligned PWM duty cycle */
+
+/* Register: PWM_COUNTERTOP */
+/* Description: Value up to which the pulse generator counter counts */
+
+/* Bits 14..0 : Value up to which the pulse generator counter counts. This register is ignored when DECODER.MODE=WaveForm and only values from RAM are used. */
+#define PWM_COUNTERTOP_COUNTERTOP_Pos (0UL) /*!< Position of COUNTERTOP field. */
+#define PWM_COUNTERTOP_COUNTERTOP_Msk (0x7FFFUL << PWM_COUNTERTOP_COUNTERTOP_Pos) /*!< Bit mask of COUNTERTOP field. */
+
+/* Register: PWM_PRESCALER */
+/* Description: Configuration for PWM_CLK */
+
+/* Bits 2..0 : Prescaler of PWM_CLK */
+#define PWM_PRESCALER_PRESCALER_Pos (0UL) /*!< Position of PRESCALER field. */
+#define PWM_PRESCALER_PRESCALER_Msk (0x7UL << PWM_PRESCALER_PRESCALER_Pos) /*!< Bit mask of PRESCALER field. */
+#define PWM_PRESCALER_PRESCALER_DIV_1 (0UL) /*!< Divide by 1 (16MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_2 (1UL) /*!< Divide by 2 ( 8MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_4 (2UL) /*!< Divide by 4 ( 4MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_8 (3UL) /*!< Divide by 8 ( 2MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_16 (4UL) /*!< Divide by 16 ( 1MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_32 (5UL) /*!< Divide by 32 ( 500kHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_64 (6UL) /*!< Divide by 64 ( 250kHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_128 (7UL) /*!< Divide by 128 ( 125kHz) */
+
+/* Register: PWM_DECODER */
+/* Description: Configuration of the decoder */
+
+/* Bit 8 : Selects source for advancing the active sequence */
+#define PWM_DECODER_MODE_Pos (8UL) /*!< Position of MODE field. */
+#define PWM_DECODER_MODE_Msk (0x1UL << PWM_DECODER_MODE_Pos) /*!< Bit mask of MODE field. */
+#define PWM_DECODER_MODE_RefreshCount (0UL) /*!< SEQ[n].REFRESH is used to determine loading internal compare registers */
+#define PWM_DECODER_MODE_NextStep (1UL) /*!< NEXTSTEP task causes a new value to be loaded to internal compare registers */
+
+/* Bits 1..0 : How a sequence is read from RAM and spread to the compare register */
+#define PWM_DECODER_LOAD_Pos (0UL) /*!< Position of LOAD field. */
+#define PWM_DECODER_LOAD_Msk (0x3UL << PWM_DECODER_LOAD_Pos) /*!< Bit mask of LOAD field. */
+#define PWM_DECODER_LOAD_Common (0UL) /*!< 1st half word (16-bit) used in all PWM channels 0..3 */
+#define PWM_DECODER_LOAD_Grouped (1UL) /*!< 1st half word (16-bit) used in channel 0..1; 2nd word in channel 2..3 */
+#define PWM_DECODER_LOAD_Individual (2UL) /*!< 1st half word (16-bit) in ch.0; 2nd in ch.1; ...; 4th in ch.3 */
+#define PWM_DECODER_LOAD_WaveForm (3UL) /*!< 1st half word (16-bit) in ch.0; 2nd in ch.1; ...; 4th in COUNTERTOP */
+
+/* Register: PWM_LOOP */
+/* Description: Number of playbacks of a loop */
+
+/* Bits 15..0 : Number of playbacks of pattern cycles */
+#define PWM_LOOP_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define PWM_LOOP_CNT_Msk (0xFFFFUL << PWM_LOOP_CNT_Pos) /*!< Bit mask of CNT field. */
+#define PWM_LOOP_CNT_Disabled (0UL) /*!< Looping disabled (stop at the end of the sequence) */
+
+/* Register: PWM_SEQ_PTR */
+/* Description: Description cluster[0]: Beginning address in RAM of this sequence */
+
+/* Bits 31..0 : Beginning address in RAM of this sequence */
+#define PWM_SEQ_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define PWM_SEQ_PTR_PTR_Msk (0xFFFFFFFFUL << PWM_SEQ_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: PWM_SEQ_CNT */
+/* Description: Description cluster[0]: Number of values (duty cycles) in this sequence */
+
+/* Bits 14..0 : Number of values (duty cycles) in this sequence */
+#define PWM_SEQ_CNT_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define PWM_SEQ_CNT_CNT_Msk (0x7FFFUL << PWM_SEQ_CNT_CNT_Pos) /*!< Bit mask of CNT field. */
+#define PWM_SEQ_CNT_CNT_Disabled (0UL) /*!< Sequence is disabled, and shall not be started as it is empty */
+
+/* Register: PWM_SEQ_REFRESH */
+/* Description: Description cluster[0]: Number of additional PWM periods between samples loaded into compare register */
+
+/* Bits 23..0 : Number of additional PWM periods between samples loaded into compare register (load every REFRESH.CNT+1 PWM periods) */
+#define PWM_SEQ_REFRESH_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define PWM_SEQ_REFRESH_CNT_Msk (0xFFFFFFUL << PWM_SEQ_REFRESH_CNT_Pos) /*!< Bit mask of CNT field. */
+#define PWM_SEQ_REFRESH_CNT_Continuous (0UL) /*!< Update every PWM period */
+
+/* Register: PWM_SEQ_ENDDELAY */
+/* Description: Description cluster[0]: Time added after the sequence */
+
+/* Bits 23..0 : Time added after the sequence in PWM periods */
+#define PWM_SEQ_ENDDELAY_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define PWM_SEQ_ENDDELAY_CNT_Msk (0xFFFFFFUL << PWM_SEQ_ENDDELAY_CNT_Pos) /*!< Bit mask of CNT field. */
+
+/* Register: PWM_PSEL_OUT */
+/* Description: Description collection[0]: Output pin select for PWM channel 0 */
+
+/* Bit 31 : Connection */
+#define PWM_PSEL_OUT_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define PWM_PSEL_OUT_CONNECT_Msk (0x1UL << PWM_PSEL_OUT_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define PWM_PSEL_OUT_CONNECT_Connected (0UL) /*!< Connect */
+#define PWM_PSEL_OUT_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define PWM_PSEL_OUT_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define PWM_PSEL_OUT_PIN_Msk (0x1FUL << PWM_PSEL_OUT_PIN_Pos) /*!< Bit mask of PIN field. */
+
+
+/* Peripheral: QDEC */
+/* Description: Quadrature Decoder */
+
+/* Register: QDEC_TASKS_START */
+/* Description: Task starting the quadrature decoder */
+
+/* Bit 0 : */
+#define QDEC_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define QDEC_TASKS_START_TASKS_START_Msk (0x1UL << QDEC_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: QDEC_TASKS_STOP */
+/* Description: Task stopping the quadrature decoder */
+
+/* Bit 0 : */
+#define QDEC_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define QDEC_TASKS_STOP_TASKS_STOP_Msk (0x1UL << QDEC_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: QDEC_TASKS_READCLRACC */
+/* Description: Read and clear ACC and ACCDBL */
+
+/* Bit 0 : */
+#define QDEC_TASKS_READCLRACC_TASKS_READCLRACC_Pos (0UL) /*!< Position of TASKS_READCLRACC field. */
+#define QDEC_TASKS_READCLRACC_TASKS_READCLRACC_Msk (0x1UL << QDEC_TASKS_READCLRACC_TASKS_READCLRACC_Pos) /*!< Bit mask of TASKS_READCLRACC field. */
+
+/* Register: QDEC_TASKS_RDCLRACC */
+/* Description: Read and clear ACC */
+
+/* Bit 0 : */
+#define QDEC_TASKS_RDCLRACC_TASKS_RDCLRACC_Pos (0UL) /*!< Position of TASKS_RDCLRACC field. */
+#define QDEC_TASKS_RDCLRACC_TASKS_RDCLRACC_Msk (0x1UL << QDEC_TASKS_RDCLRACC_TASKS_RDCLRACC_Pos) /*!< Bit mask of TASKS_RDCLRACC field. */
+
+/* Register: QDEC_TASKS_RDCLRDBL */
+/* Description: Read and clear ACCDBL */
+
+/* Bit 0 : */
+#define QDEC_TASKS_RDCLRDBL_TASKS_RDCLRDBL_Pos (0UL) /*!< Position of TASKS_RDCLRDBL field. */
+#define QDEC_TASKS_RDCLRDBL_TASKS_RDCLRDBL_Msk (0x1UL << QDEC_TASKS_RDCLRDBL_TASKS_RDCLRDBL_Pos) /*!< Bit mask of TASKS_RDCLRDBL field. */
+
+/* Register: QDEC_EVENTS_SAMPLERDY */
+/* Description: Event being generated for every new sample value written to the SAMPLE register */
+
+/* Bit 0 : */
+#define QDEC_EVENTS_SAMPLERDY_EVENTS_SAMPLERDY_Pos (0UL) /*!< Position of EVENTS_SAMPLERDY field. */
+#define QDEC_EVENTS_SAMPLERDY_EVENTS_SAMPLERDY_Msk (0x1UL << QDEC_EVENTS_SAMPLERDY_EVENTS_SAMPLERDY_Pos) /*!< Bit mask of EVENTS_SAMPLERDY field. */
+
+/* Register: QDEC_EVENTS_REPORTRDY */
+/* Description: Non-null report ready */
+
+/* Bit 0 : */
+#define QDEC_EVENTS_REPORTRDY_EVENTS_REPORTRDY_Pos (0UL) /*!< Position of EVENTS_REPORTRDY field. */
+#define QDEC_EVENTS_REPORTRDY_EVENTS_REPORTRDY_Msk (0x1UL << QDEC_EVENTS_REPORTRDY_EVENTS_REPORTRDY_Pos) /*!< Bit mask of EVENTS_REPORTRDY field. */
+
+/* Register: QDEC_EVENTS_ACCOF */
+/* Description: ACC or ACCDBL register overflow */
+
+/* Bit 0 : */
+#define QDEC_EVENTS_ACCOF_EVENTS_ACCOF_Pos (0UL) /*!< Position of EVENTS_ACCOF field. */
+#define QDEC_EVENTS_ACCOF_EVENTS_ACCOF_Msk (0x1UL << QDEC_EVENTS_ACCOF_EVENTS_ACCOF_Pos) /*!< Bit mask of EVENTS_ACCOF field. */
+
+/* Register: QDEC_EVENTS_DBLRDY */
+/* Description: Double displacement(s) detected */
+
+/* Bit 0 : */
+#define QDEC_EVENTS_DBLRDY_EVENTS_DBLRDY_Pos (0UL) /*!< Position of EVENTS_DBLRDY field. */
+#define QDEC_EVENTS_DBLRDY_EVENTS_DBLRDY_Msk (0x1UL << QDEC_EVENTS_DBLRDY_EVENTS_DBLRDY_Pos) /*!< Bit mask of EVENTS_DBLRDY field. */
+
+/* Register: QDEC_EVENTS_STOPPED */
+/* Description: QDEC has been stopped */
+
+/* Bit 0 : */
+#define QDEC_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define QDEC_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << QDEC_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: QDEC_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 6 : Shortcut between SAMPLERDY event and READCLRACC task */
+#define QDEC_SHORTS_SAMPLERDY_READCLRACC_Pos (6UL) /*!< Position of SAMPLERDY_READCLRACC field. */
+#define QDEC_SHORTS_SAMPLERDY_READCLRACC_Msk (0x1UL << QDEC_SHORTS_SAMPLERDY_READCLRACC_Pos) /*!< Bit mask of SAMPLERDY_READCLRACC field. */
+#define QDEC_SHORTS_SAMPLERDY_READCLRACC_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_SAMPLERDY_READCLRACC_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 5 : Shortcut between DBLRDY event and STOP task */
+#define QDEC_SHORTS_DBLRDY_STOP_Pos (5UL) /*!< Position of DBLRDY_STOP field. */
+#define QDEC_SHORTS_DBLRDY_STOP_Msk (0x1UL << QDEC_SHORTS_DBLRDY_STOP_Pos) /*!< Bit mask of DBLRDY_STOP field. */
+#define QDEC_SHORTS_DBLRDY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_DBLRDY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 4 : Shortcut between DBLRDY event and RDCLRDBL task */
+#define QDEC_SHORTS_DBLRDY_RDCLRDBL_Pos (4UL) /*!< Position of DBLRDY_RDCLRDBL field. */
+#define QDEC_SHORTS_DBLRDY_RDCLRDBL_Msk (0x1UL << QDEC_SHORTS_DBLRDY_RDCLRDBL_Pos) /*!< Bit mask of DBLRDY_RDCLRDBL field. */
+#define QDEC_SHORTS_DBLRDY_RDCLRDBL_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_DBLRDY_RDCLRDBL_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between REPORTRDY event and STOP task */
+#define QDEC_SHORTS_REPORTRDY_STOP_Pos (3UL) /*!< Position of REPORTRDY_STOP field. */
+#define QDEC_SHORTS_REPORTRDY_STOP_Msk (0x1UL << QDEC_SHORTS_REPORTRDY_STOP_Pos) /*!< Bit mask of REPORTRDY_STOP field. */
+#define QDEC_SHORTS_REPORTRDY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_REPORTRDY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between REPORTRDY event and RDCLRACC task */
+#define QDEC_SHORTS_REPORTRDY_RDCLRACC_Pos (2UL) /*!< Position of REPORTRDY_RDCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_RDCLRACC_Msk (0x1UL << QDEC_SHORTS_REPORTRDY_RDCLRACC_Pos) /*!< Bit mask of REPORTRDY_RDCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_RDCLRACC_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_REPORTRDY_RDCLRACC_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between SAMPLERDY event and STOP task */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Pos (1UL) /*!< Position of SAMPLERDY_STOP field. */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Msk (0x1UL << QDEC_SHORTS_SAMPLERDY_STOP_Pos) /*!< Bit mask of SAMPLERDY_STOP field. */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between REPORTRDY event and READCLRACC task */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Pos (0UL) /*!< Position of REPORTRDY_READCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Msk (0x1UL << QDEC_SHORTS_REPORTRDY_READCLRACC_Pos) /*!< Bit mask of REPORTRDY_READCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: QDEC_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 4 : Write '1' to Enable interrupt for STOPPED event */
+#define QDEC_INTENSET_STOPPED_Pos (4UL) /*!< Position of STOPPED field. */
+#define QDEC_INTENSET_STOPPED_Msk (0x1UL << QDEC_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define QDEC_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for DBLRDY event */
+#define QDEC_INTENSET_DBLRDY_Pos (3UL) /*!< Position of DBLRDY field. */
+#define QDEC_INTENSET_DBLRDY_Msk (0x1UL << QDEC_INTENSET_DBLRDY_Pos) /*!< Bit mask of DBLRDY field. */
+#define QDEC_INTENSET_DBLRDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_DBLRDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_DBLRDY_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for ACCOF event */
+#define QDEC_INTENSET_ACCOF_Pos (2UL) /*!< Position of ACCOF field. */
+#define QDEC_INTENSET_ACCOF_Msk (0x1UL << QDEC_INTENSET_ACCOF_Pos) /*!< Bit mask of ACCOF field. */
+#define QDEC_INTENSET_ACCOF_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_ACCOF_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_ACCOF_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for REPORTRDY event */
+#define QDEC_INTENSET_REPORTRDY_Pos (1UL) /*!< Position of REPORTRDY field. */
+#define QDEC_INTENSET_REPORTRDY_Msk (0x1UL << QDEC_INTENSET_REPORTRDY_Pos) /*!< Bit mask of REPORTRDY field. */
+#define QDEC_INTENSET_REPORTRDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_REPORTRDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_REPORTRDY_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for SAMPLERDY event */
+#define QDEC_INTENSET_SAMPLERDY_Pos (0UL) /*!< Position of SAMPLERDY field. */
+#define QDEC_INTENSET_SAMPLERDY_Msk (0x1UL << QDEC_INTENSET_SAMPLERDY_Pos) /*!< Bit mask of SAMPLERDY field. */
+#define QDEC_INTENSET_SAMPLERDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_SAMPLERDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_SAMPLERDY_Set (1UL) /*!< Enable */
+
+/* Register: QDEC_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 4 : Write '1' to Disable interrupt for STOPPED event */
+#define QDEC_INTENCLR_STOPPED_Pos (4UL) /*!< Position of STOPPED field. */
+#define QDEC_INTENCLR_STOPPED_Msk (0x1UL << QDEC_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define QDEC_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for DBLRDY event */
+#define QDEC_INTENCLR_DBLRDY_Pos (3UL) /*!< Position of DBLRDY field. */
+#define QDEC_INTENCLR_DBLRDY_Msk (0x1UL << QDEC_INTENCLR_DBLRDY_Pos) /*!< Bit mask of DBLRDY field. */
+#define QDEC_INTENCLR_DBLRDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_DBLRDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_DBLRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for ACCOF event */
+#define QDEC_INTENCLR_ACCOF_Pos (2UL) /*!< Position of ACCOF field. */
+#define QDEC_INTENCLR_ACCOF_Msk (0x1UL << QDEC_INTENCLR_ACCOF_Pos) /*!< Bit mask of ACCOF field. */
+#define QDEC_INTENCLR_ACCOF_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_ACCOF_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_ACCOF_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for REPORTRDY event */
+#define QDEC_INTENCLR_REPORTRDY_Pos (1UL) /*!< Position of REPORTRDY field. */
+#define QDEC_INTENCLR_REPORTRDY_Msk (0x1UL << QDEC_INTENCLR_REPORTRDY_Pos) /*!< Bit mask of REPORTRDY field. */
+#define QDEC_INTENCLR_REPORTRDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_REPORTRDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_REPORTRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for SAMPLERDY event */
+#define QDEC_INTENCLR_SAMPLERDY_Pos (0UL) /*!< Position of SAMPLERDY field. */
+#define QDEC_INTENCLR_SAMPLERDY_Msk (0x1UL << QDEC_INTENCLR_SAMPLERDY_Pos) /*!< Bit mask of SAMPLERDY field. */
+#define QDEC_INTENCLR_SAMPLERDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_SAMPLERDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_SAMPLERDY_Clear (1UL) /*!< Disable */
+
+/* Register: QDEC_ENABLE */
+/* Description: Enable the quadrature decoder */
+
+/* Bit 0 : Enable or disable the quadrature decoder */
+#define QDEC_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define QDEC_ENABLE_ENABLE_Msk (0x1UL << QDEC_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define QDEC_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define QDEC_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: QDEC_LEDPOL */
+/* Description: LED output pin polarity */
+
+/* Bit 0 : LED output pin polarity */
+#define QDEC_LEDPOL_LEDPOL_Pos (0UL) /*!< Position of LEDPOL field. */
+#define QDEC_LEDPOL_LEDPOL_Msk (0x1UL << QDEC_LEDPOL_LEDPOL_Pos) /*!< Bit mask of LEDPOL field. */
+#define QDEC_LEDPOL_LEDPOL_ActiveLow (0UL) /*!< Led active on output pin low */
+#define QDEC_LEDPOL_LEDPOL_ActiveHigh (1UL) /*!< Led active on output pin high */
+
+/* Register: QDEC_SAMPLEPER */
+/* Description: Sample period */
+
+/* Bits 3..0 : Sample period. The SAMPLE register will be updated for every new sample */
+#define QDEC_SAMPLEPER_SAMPLEPER_Pos (0UL) /*!< Position of SAMPLEPER field. */
+#define QDEC_SAMPLEPER_SAMPLEPER_Msk (0xFUL << QDEC_SAMPLEPER_SAMPLEPER_Pos) /*!< Bit mask of SAMPLEPER field. */
+#define QDEC_SAMPLEPER_SAMPLEPER_128us (0UL) /*!< 128 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_256us (1UL) /*!< 256 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_512us (2UL) /*!< 512 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_1024us (3UL) /*!< 1024 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_2048us (4UL) /*!< 2048 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_4096us (5UL) /*!< 4096 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_8192us (6UL) /*!< 8192 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_16384us (7UL) /*!< 16384 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_32ms (8UL) /*!< 32768 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_65ms (9UL) /*!< 65536 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_131ms (10UL) /*!< 131072 us */
+
+/* Register: QDEC_SAMPLE */
+/* Description: Motion sample value */
+
+/* Bits 31..0 : Last motion sample */
+#define QDEC_SAMPLE_SAMPLE_Pos (0UL) /*!< Position of SAMPLE field. */
+#define QDEC_SAMPLE_SAMPLE_Msk (0xFFFFFFFFUL << QDEC_SAMPLE_SAMPLE_Pos) /*!< Bit mask of SAMPLE field. */
+
+/* Register: QDEC_REPORTPER */
+/* Description: Number of samples to be taken before REPORTRDY and DBLRDY events can be generated */
+
+/* Bits 3..0 : Specifies the number of samples to be accumulated in the ACC register before the REPORTRDY and DBLRDY events can be generated */
+#define QDEC_REPORTPER_REPORTPER_Pos (0UL) /*!< Position of REPORTPER field. */
+#define QDEC_REPORTPER_REPORTPER_Msk (0xFUL << QDEC_REPORTPER_REPORTPER_Pos) /*!< Bit mask of REPORTPER field. */
+#define QDEC_REPORTPER_REPORTPER_10Smpl (0UL) /*!< 10 samples / report */
+#define QDEC_REPORTPER_REPORTPER_40Smpl (1UL) /*!< 40 samples / report */
+#define QDEC_REPORTPER_REPORTPER_80Smpl (2UL) /*!< 80 samples / report */
+#define QDEC_REPORTPER_REPORTPER_120Smpl (3UL) /*!< 120 samples / report */
+#define QDEC_REPORTPER_REPORTPER_160Smpl (4UL) /*!< 160 samples / report */
+#define QDEC_REPORTPER_REPORTPER_200Smpl (5UL) /*!< 200 samples / report */
+#define QDEC_REPORTPER_REPORTPER_240Smpl (6UL) /*!< 240 samples / report */
+#define QDEC_REPORTPER_REPORTPER_280Smpl (7UL) /*!< 280 samples / report */
+#define QDEC_REPORTPER_REPORTPER_1Smpl (8UL) /*!< 1 sample / report */
+
+/* Register: QDEC_ACC */
+/* Description: Register accumulating the valid transitions */
+
+/* Bits 31..0 : Register accumulating all valid samples (not double transition) read from the SAMPLE register */
+#define QDEC_ACC_ACC_Pos (0UL) /*!< Position of ACC field. */
+#define QDEC_ACC_ACC_Msk (0xFFFFFFFFUL << QDEC_ACC_ACC_Pos) /*!< Bit mask of ACC field. */
+
+/* Register: QDEC_ACCREAD */
+/* Description: Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC task */
+
+/* Bits 31..0 : Snapshot of the ACC register. */
+#define QDEC_ACCREAD_ACCREAD_Pos (0UL) /*!< Position of ACCREAD field. */
+#define QDEC_ACCREAD_ACCREAD_Msk (0xFFFFFFFFUL << QDEC_ACCREAD_ACCREAD_Pos) /*!< Bit mask of ACCREAD field. */
+
+/* Register: QDEC_PSEL_LED */
+/* Description: Pin select for LED signal */
+
+/* Bit 31 : Connection */
+#define QDEC_PSEL_LED_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QDEC_PSEL_LED_CONNECT_Msk (0x1UL << QDEC_PSEL_LED_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QDEC_PSEL_LED_CONNECT_Connected (0UL) /*!< Connect */
+#define QDEC_PSEL_LED_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define QDEC_PSEL_LED_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QDEC_PSEL_LED_PIN_Msk (0x1FUL << QDEC_PSEL_LED_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QDEC_PSEL_A */
+/* Description: Pin select for A signal */
+
+/* Bit 31 : Connection */
+#define QDEC_PSEL_A_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QDEC_PSEL_A_CONNECT_Msk (0x1UL << QDEC_PSEL_A_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QDEC_PSEL_A_CONNECT_Connected (0UL) /*!< Connect */
+#define QDEC_PSEL_A_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define QDEC_PSEL_A_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QDEC_PSEL_A_PIN_Msk (0x1FUL << QDEC_PSEL_A_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QDEC_PSEL_B */
+/* Description: Pin select for B signal */
+
+/* Bit 31 : Connection */
+#define QDEC_PSEL_B_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QDEC_PSEL_B_CONNECT_Msk (0x1UL << QDEC_PSEL_B_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QDEC_PSEL_B_CONNECT_Connected (0UL) /*!< Connect */
+#define QDEC_PSEL_B_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define QDEC_PSEL_B_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QDEC_PSEL_B_PIN_Msk (0x1FUL << QDEC_PSEL_B_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QDEC_DBFEN */
+/* Description: Enable input debounce filters */
+
+/* Bit 0 : Enable input debounce filters */
+#define QDEC_DBFEN_DBFEN_Pos (0UL) /*!< Position of DBFEN field. */
+#define QDEC_DBFEN_DBFEN_Msk (0x1UL << QDEC_DBFEN_DBFEN_Pos) /*!< Bit mask of DBFEN field. */
+#define QDEC_DBFEN_DBFEN_Disabled (0UL) /*!< Debounce input filters disabled */
+#define QDEC_DBFEN_DBFEN_Enabled (1UL) /*!< Debounce input filters enabled */
+
+/* Register: QDEC_LEDPRE */
+/* Description: Time period the LED is switched ON prior to sampling */
+
+/* Bits 8..0 : Period in us the LED is switched on prior to sampling */
+#define QDEC_LEDPRE_LEDPRE_Pos (0UL) /*!< Position of LEDPRE field. */
+#define QDEC_LEDPRE_LEDPRE_Msk (0x1FFUL << QDEC_LEDPRE_LEDPRE_Pos) /*!< Bit mask of LEDPRE field. */
+
+/* Register: QDEC_ACCDBL */
+/* Description: Register accumulating the number of detected double transitions */
+
+/* Bits 3..0 : Register accumulating the number of detected double or illegal transitions. ( SAMPLE = 2 ). */
+#define QDEC_ACCDBL_ACCDBL_Pos (0UL) /*!< Position of ACCDBL field. */
+#define QDEC_ACCDBL_ACCDBL_Msk (0xFUL << QDEC_ACCDBL_ACCDBL_Pos) /*!< Bit mask of ACCDBL field. */
+
+/* Register: QDEC_ACCDBLREAD */
+/* Description: Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL task */
+
+/* Bits 3..0 : Snapshot of the ACCDBL register. This field is updated when the READCLRACC or RDCLRDBL task is triggered. */
+#define QDEC_ACCDBLREAD_ACCDBLREAD_Pos (0UL) /*!< Position of ACCDBLREAD field. */
+#define QDEC_ACCDBLREAD_ACCDBLREAD_Msk (0xFUL << QDEC_ACCDBLREAD_ACCDBLREAD_Pos) /*!< Bit mask of ACCDBLREAD field. */
+
+
+/* Peripheral: RADIO */
+/* Description: 2.4 GHz Radio */
+
+/* Register: RADIO_TASKS_TXEN */
+/* Description: Enable RADIO in TX mode */
+
+/* Bit 0 : */
+#define RADIO_TASKS_TXEN_TASKS_TXEN_Pos (0UL) /*!< Position of TASKS_TXEN field. */
+#define RADIO_TASKS_TXEN_TASKS_TXEN_Msk (0x1UL << RADIO_TASKS_TXEN_TASKS_TXEN_Pos) /*!< Bit mask of TASKS_TXEN field. */
+
+/* Register: RADIO_TASKS_RXEN */
+/* Description: Enable RADIO in RX mode */
+
+/* Bit 0 : */
+#define RADIO_TASKS_RXEN_TASKS_RXEN_Pos (0UL) /*!< Position of TASKS_RXEN field. */
+#define RADIO_TASKS_RXEN_TASKS_RXEN_Msk (0x1UL << RADIO_TASKS_RXEN_TASKS_RXEN_Pos) /*!< Bit mask of TASKS_RXEN field. */
+
+/* Register: RADIO_TASKS_START */
+/* Description: Start RADIO */
+
+/* Bit 0 : */
+#define RADIO_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define RADIO_TASKS_START_TASKS_START_Msk (0x1UL << RADIO_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: RADIO_TASKS_STOP */
+/* Description: Stop RADIO */
+
+/* Bit 0 : */
+#define RADIO_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define RADIO_TASKS_STOP_TASKS_STOP_Msk (0x1UL << RADIO_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: RADIO_TASKS_DISABLE */
+/* Description: Disable RADIO */
+
+/* Bit 0 : */
+#define RADIO_TASKS_DISABLE_TASKS_DISABLE_Pos (0UL) /*!< Position of TASKS_DISABLE field. */
+#define RADIO_TASKS_DISABLE_TASKS_DISABLE_Msk (0x1UL << RADIO_TASKS_DISABLE_TASKS_DISABLE_Pos) /*!< Bit mask of TASKS_DISABLE field. */
+
+/* Register: RADIO_TASKS_RSSISTART */
+/* Description: Start the RSSI and take one single sample of the receive signal strength. */
+
+/* Bit 0 : */
+#define RADIO_TASKS_RSSISTART_TASKS_RSSISTART_Pos (0UL) /*!< Position of TASKS_RSSISTART field. */
+#define RADIO_TASKS_RSSISTART_TASKS_RSSISTART_Msk (0x1UL << RADIO_TASKS_RSSISTART_TASKS_RSSISTART_Pos) /*!< Bit mask of TASKS_RSSISTART field. */
+
+/* Register: RADIO_TASKS_RSSISTOP */
+/* Description: Stop the RSSI measurement */
+
+/* Bit 0 : */
+#define RADIO_TASKS_RSSISTOP_TASKS_RSSISTOP_Pos (0UL) /*!< Position of TASKS_RSSISTOP field. */
+#define RADIO_TASKS_RSSISTOP_TASKS_RSSISTOP_Msk (0x1UL << RADIO_TASKS_RSSISTOP_TASKS_RSSISTOP_Pos) /*!< Bit mask of TASKS_RSSISTOP field. */
+
+/* Register: RADIO_TASKS_BCSTART */
+/* Description: Start the bit counter */
+
+/* Bit 0 : */
+#define RADIO_TASKS_BCSTART_TASKS_BCSTART_Pos (0UL) /*!< Position of TASKS_BCSTART field. */
+#define RADIO_TASKS_BCSTART_TASKS_BCSTART_Msk (0x1UL << RADIO_TASKS_BCSTART_TASKS_BCSTART_Pos) /*!< Bit mask of TASKS_BCSTART field. */
+
+/* Register: RADIO_TASKS_BCSTOP */
+/* Description: Stop the bit counter */
+
+/* Bit 0 : */
+#define RADIO_TASKS_BCSTOP_TASKS_BCSTOP_Pos (0UL) /*!< Position of TASKS_BCSTOP field. */
+#define RADIO_TASKS_BCSTOP_TASKS_BCSTOP_Msk (0x1UL << RADIO_TASKS_BCSTOP_TASKS_BCSTOP_Pos) /*!< Bit mask of TASKS_BCSTOP field. */
+
+/* Register: RADIO_EVENTS_READY */
+/* Description: RADIO has ramped up and is ready to be started */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_READY_EVENTS_READY_Pos (0UL) /*!< Position of EVENTS_READY field. */
+#define RADIO_EVENTS_READY_EVENTS_READY_Msk (0x1UL << RADIO_EVENTS_READY_EVENTS_READY_Pos) /*!< Bit mask of EVENTS_READY field. */
+
+/* Register: RADIO_EVENTS_ADDRESS */
+/* Description: Address sent or received */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_ADDRESS_EVENTS_ADDRESS_Pos (0UL) /*!< Position of EVENTS_ADDRESS field. */
+#define RADIO_EVENTS_ADDRESS_EVENTS_ADDRESS_Msk (0x1UL << RADIO_EVENTS_ADDRESS_EVENTS_ADDRESS_Pos) /*!< Bit mask of EVENTS_ADDRESS field. */
+
+/* Register: RADIO_EVENTS_PAYLOAD */
+/* Description: Packet payload sent or received */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_PAYLOAD_EVENTS_PAYLOAD_Pos (0UL) /*!< Position of EVENTS_PAYLOAD field. */
+#define RADIO_EVENTS_PAYLOAD_EVENTS_PAYLOAD_Msk (0x1UL << RADIO_EVENTS_PAYLOAD_EVENTS_PAYLOAD_Pos) /*!< Bit mask of EVENTS_PAYLOAD field. */
+
+/* Register: RADIO_EVENTS_END */
+/* Description: Packet sent or received */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_END_EVENTS_END_Pos (0UL) /*!< Position of EVENTS_END field. */
+#define RADIO_EVENTS_END_EVENTS_END_Msk (0x1UL << RADIO_EVENTS_END_EVENTS_END_Pos) /*!< Bit mask of EVENTS_END field. */
+
+/* Register: RADIO_EVENTS_DISABLED */
+/* Description: RADIO has been disabled */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_DISABLED_EVENTS_DISABLED_Pos (0UL) /*!< Position of EVENTS_DISABLED field. */
+#define RADIO_EVENTS_DISABLED_EVENTS_DISABLED_Msk (0x1UL << RADIO_EVENTS_DISABLED_EVENTS_DISABLED_Pos) /*!< Bit mask of EVENTS_DISABLED field. */
+
+/* Register: RADIO_EVENTS_DEVMATCH */
+/* Description: A device address match occurred on the last received packet */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_DEVMATCH_EVENTS_DEVMATCH_Pos (0UL) /*!< Position of EVENTS_DEVMATCH field. */
+#define RADIO_EVENTS_DEVMATCH_EVENTS_DEVMATCH_Msk (0x1UL << RADIO_EVENTS_DEVMATCH_EVENTS_DEVMATCH_Pos) /*!< Bit mask of EVENTS_DEVMATCH field. */
+
+/* Register: RADIO_EVENTS_DEVMISS */
+/* Description: No device address match occurred on the last received packet */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_DEVMISS_EVENTS_DEVMISS_Pos (0UL) /*!< Position of EVENTS_DEVMISS field. */
+#define RADIO_EVENTS_DEVMISS_EVENTS_DEVMISS_Msk (0x1UL << RADIO_EVENTS_DEVMISS_EVENTS_DEVMISS_Pos) /*!< Bit mask of EVENTS_DEVMISS field. */
+
+/* Register: RADIO_EVENTS_RSSIEND */
+/* Description: Sampling of receive signal strength complete. */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_RSSIEND_EVENTS_RSSIEND_Pos (0UL) /*!< Position of EVENTS_RSSIEND field. */
+#define RADIO_EVENTS_RSSIEND_EVENTS_RSSIEND_Msk (0x1UL << RADIO_EVENTS_RSSIEND_EVENTS_RSSIEND_Pos) /*!< Bit mask of EVENTS_RSSIEND field. */
+
+/* Register: RADIO_EVENTS_BCMATCH */
+/* Description: Bit counter reached bit count value. */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_BCMATCH_EVENTS_BCMATCH_Pos (0UL) /*!< Position of EVENTS_BCMATCH field. */
+#define RADIO_EVENTS_BCMATCH_EVENTS_BCMATCH_Msk (0x1UL << RADIO_EVENTS_BCMATCH_EVENTS_BCMATCH_Pos) /*!< Bit mask of EVENTS_BCMATCH field. */
+
+/* Register: RADIO_EVENTS_CRCOK */
+/* Description: Packet received with CRC ok */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_CRCOK_EVENTS_CRCOK_Pos (0UL) /*!< Position of EVENTS_CRCOK field. */
+#define RADIO_EVENTS_CRCOK_EVENTS_CRCOK_Msk (0x1UL << RADIO_EVENTS_CRCOK_EVENTS_CRCOK_Pos) /*!< Bit mask of EVENTS_CRCOK field. */
+
+/* Register: RADIO_EVENTS_CRCERROR */
+/* Description: Packet received with CRC error */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_CRCERROR_EVENTS_CRCERROR_Pos (0UL) /*!< Position of EVENTS_CRCERROR field. */
+#define RADIO_EVENTS_CRCERROR_EVENTS_CRCERROR_Msk (0x1UL << RADIO_EVENTS_CRCERROR_EVENTS_CRCERROR_Pos) /*!< Bit mask of EVENTS_CRCERROR field. */
+
+/* Register: RADIO_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 8 : Shortcut between DISABLED event and RSSISTOP task */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Pos (8UL) /*!< Position of DISABLED_RSSISTOP field. */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Msk (0x1UL << RADIO_SHORTS_DISABLED_RSSISTOP_Pos) /*!< Bit mask of DISABLED_RSSISTOP field. */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 6 : Shortcut between ADDRESS event and BCSTART task */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Pos (6UL) /*!< Position of ADDRESS_BCSTART field. */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Msk (0x1UL << RADIO_SHORTS_ADDRESS_BCSTART_Pos) /*!< Bit mask of ADDRESS_BCSTART field. */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 5 : Shortcut between END event and START task */
+#define RADIO_SHORTS_END_START_Pos (5UL) /*!< Position of END_START field. */
+#define RADIO_SHORTS_END_START_Msk (0x1UL << RADIO_SHORTS_END_START_Pos) /*!< Bit mask of END_START field. */
+#define RADIO_SHORTS_END_START_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_END_START_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 4 : Shortcut between ADDRESS event and RSSISTART task */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Pos (4UL) /*!< Position of ADDRESS_RSSISTART field. */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Msk (0x1UL << RADIO_SHORTS_ADDRESS_RSSISTART_Pos) /*!< Bit mask of ADDRESS_RSSISTART field. */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between DISABLED event and RXEN task */
+#define RADIO_SHORTS_DISABLED_RXEN_Pos (3UL) /*!< Position of DISABLED_RXEN field. */
+#define RADIO_SHORTS_DISABLED_RXEN_Msk (0x1UL << RADIO_SHORTS_DISABLED_RXEN_Pos) /*!< Bit mask of DISABLED_RXEN field. */
+#define RADIO_SHORTS_DISABLED_RXEN_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_DISABLED_RXEN_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between DISABLED event and TXEN task */
+#define RADIO_SHORTS_DISABLED_TXEN_Pos (2UL) /*!< Position of DISABLED_TXEN field. */
+#define RADIO_SHORTS_DISABLED_TXEN_Msk (0x1UL << RADIO_SHORTS_DISABLED_TXEN_Pos) /*!< Bit mask of DISABLED_TXEN field. */
+#define RADIO_SHORTS_DISABLED_TXEN_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_DISABLED_TXEN_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between END event and DISABLE task */
+#define RADIO_SHORTS_END_DISABLE_Pos (1UL) /*!< Position of END_DISABLE field. */
+#define RADIO_SHORTS_END_DISABLE_Msk (0x1UL << RADIO_SHORTS_END_DISABLE_Pos) /*!< Bit mask of END_DISABLE field. */
+#define RADIO_SHORTS_END_DISABLE_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_END_DISABLE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between READY event and START task */
+#define RADIO_SHORTS_READY_START_Pos (0UL) /*!< Position of READY_START field. */
+#define RADIO_SHORTS_READY_START_Msk (0x1UL << RADIO_SHORTS_READY_START_Pos) /*!< Bit mask of READY_START field. */
+#define RADIO_SHORTS_READY_START_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_READY_START_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: RADIO_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 13 : Write '1' to Enable interrupt for CRCERROR event */
+#define RADIO_INTENSET_CRCERROR_Pos (13UL) /*!< Position of CRCERROR field. */
+#define RADIO_INTENSET_CRCERROR_Msk (0x1UL << RADIO_INTENSET_CRCERROR_Pos) /*!< Bit mask of CRCERROR field. */
+#define RADIO_INTENSET_CRCERROR_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_CRCERROR_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_CRCERROR_Set (1UL) /*!< Enable */
+
+/* Bit 12 : Write '1' to Enable interrupt for CRCOK event */
+#define RADIO_INTENSET_CRCOK_Pos (12UL) /*!< Position of CRCOK field. */
+#define RADIO_INTENSET_CRCOK_Msk (0x1UL << RADIO_INTENSET_CRCOK_Pos) /*!< Bit mask of CRCOK field. */
+#define RADIO_INTENSET_CRCOK_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_CRCOK_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_CRCOK_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to Enable interrupt for BCMATCH event */
+#define RADIO_INTENSET_BCMATCH_Pos (10UL) /*!< Position of BCMATCH field. */
+#define RADIO_INTENSET_BCMATCH_Msk (0x1UL << RADIO_INTENSET_BCMATCH_Pos) /*!< Bit mask of BCMATCH field. */
+#define RADIO_INTENSET_BCMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_BCMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_BCMATCH_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for RSSIEND event */
+#define RADIO_INTENSET_RSSIEND_Pos (7UL) /*!< Position of RSSIEND field. */
+#define RADIO_INTENSET_RSSIEND_Msk (0x1UL << RADIO_INTENSET_RSSIEND_Pos) /*!< Bit mask of RSSIEND field. */
+#define RADIO_INTENSET_RSSIEND_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_RSSIEND_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_RSSIEND_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for DEVMISS event */
+#define RADIO_INTENSET_DEVMISS_Pos (6UL) /*!< Position of DEVMISS field. */
+#define RADIO_INTENSET_DEVMISS_Msk (0x1UL << RADIO_INTENSET_DEVMISS_Pos) /*!< Bit mask of DEVMISS field. */
+#define RADIO_INTENSET_DEVMISS_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_DEVMISS_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_DEVMISS_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for DEVMATCH event */
+#define RADIO_INTENSET_DEVMATCH_Pos (5UL) /*!< Position of DEVMATCH field. */
+#define RADIO_INTENSET_DEVMATCH_Msk (0x1UL << RADIO_INTENSET_DEVMATCH_Pos) /*!< Bit mask of DEVMATCH field. */
+#define RADIO_INTENSET_DEVMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_DEVMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_DEVMATCH_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for DISABLED event */
+#define RADIO_INTENSET_DISABLED_Pos (4UL) /*!< Position of DISABLED field. */
+#define RADIO_INTENSET_DISABLED_Msk (0x1UL << RADIO_INTENSET_DISABLED_Pos) /*!< Bit mask of DISABLED field. */
+#define RADIO_INTENSET_DISABLED_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_DISABLED_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_DISABLED_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for END event */
+#define RADIO_INTENSET_END_Pos (3UL) /*!< Position of END field. */
+#define RADIO_INTENSET_END_Msk (0x1UL << RADIO_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define RADIO_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for PAYLOAD event */
+#define RADIO_INTENSET_PAYLOAD_Pos (2UL) /*!< Position of PAYLOAD field. */
+#define RADIO_INTENSET_PAYLOAD_Msk (0x1UL << RADIO_INTENSET_PAYLOAD_Pos) /*!< Bit mask of PAYLOAD field. */
+#define RADIO_INTENSET_PAYLOAD_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_PAYLOAD_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_PAYLOAD_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for ADDRESS event */
+#define RADIO_INTENSET_ADDRESS_Pos (1UL) /*!< Position of ADDRESS field. */
+#define RADIO_INTENSET_ADDRESS_Msk (0x1UL << RADIO_INTENSET_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+#define RADIO_INTENSET_ADDRESS_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_ADDRESS_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_ADDRESS_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for READY event */
+#define RADIO_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define RADIO_INTENSET_READY_Msk (0x1UL << RADIO_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define RADIO_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: RADIO_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 13 : Write '1' to Disable interrupt for CRCERROR event */
+#define RADIO_INTENCLR_CRCERROR_Pos (13UL) /*!< Position of CRCERROR field. */
+#define RADIO_INTENCLR_CRCERROR_Msk (0x1UL << RADIO_INTENCLR_CRCERROR_Pos) /*!< Bit mask of CRCERROR field. */
+#define RADIO_INTENCLR_CRCERROR_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_CRCERROR_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_CRCERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 12 : Write '1' to Disable interrupt for CRCOK event */
+#define RADIO_INTENCLR_CRCOK_Pos (12UL) /*!< Position of CRCOK field. */
+#define RADIO_INTENCLR_CRCOK_Msk (0x1UL << RADIO_INTENCLR_CRCOK_Pos) /*!< Bit mask of CRCOK field. */
+#define RADIO_INTENCLR_CRCOK_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_CRCOK_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_CRCOK_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to Disable interrupt for BCMATCH event */
+#define RADIO_INTENCLR_BCMATCH_Pos (10UL) /*!< Position of BCMATCH field. */
+#define RADIO_INTENCLR_BCMATCH_Msk (0x1UL << RADIO_INTENCLR_BCMATCH_Pos) /*!< Bit mask of BCMATCH field. */
+#define RADIO_INTENCLR_BCMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_BCMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_BCMATCH_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for RSSIEND event */
+#define RADIO_INTENCLR_RSSIEND_Pos (7UL) /*!< Position of RSSIEND field. */
+#define RADIO_INTENCLR_RSSIEND_Msk (0x1UL << RADIO_INTENCLR_RSSIEND_Pos) /*!< Bit mask of RSSIEND field. */
+#define RADIO_INTENCLR_RSSIEND_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_RSSIEND_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_RSSIEND_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for DEVMISS event */
+#define RADIO_INTENCLR_DEVMISS_Pos (6UL) /*!< Position of DEVMISS field. */
+#define RADIO_INTENCLR_DEVMISS_Msk (0x1UL << RADIO_INTENCLR_DEVMISS_Pos) /*!< Bit mask of DEVMISS field. */
+#define RADIO_INTENCLR_DEVMISS_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_DEVMISS_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_DEVMISS_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for DEVMATCH event */
+#define RADIO_INTENCLR_DEVMATCH_Pos (5UL) /*!< Position of DEVMATCH field. */
+#define RADIO_INTENCLR_DEVMATCH_Msk (0x1UL << RADIO_INTENCLR_DEVMATCH_Pos) /*!< Bit mask of DEVMATCH field. */
+#define RADIO_INTENCLR_DEVMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_DEVMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_DEVMATCH_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for DISABLED event */
+#define RADIO_INTENCLR_DISABLED_Pos (4UL) /*!< Position of DISABLED field. */
+#define RADIO_INTENCLR_DISABLED_Msk (0x1UL << RADIO_INTENCLR_DISABLED_Pos) /*!< Bit mask of DISABLED field. */
+#define RADIO_INTENCLR_DISABLED_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_DISABLED_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_DISABLED_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for END event */
+#define RADIO_INTENCLR_END_Pos (3UL) /*!< Position of END field. */
+#define RADIO_INTENCLR_END_Msk (0x1UL << RADIO_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define RADIO_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for PAYLOAD event */
+#define RADIO_INTENCLR_PAYLOAD_Pos (2UL) /*!< Position of PAYLOAD field. */
+#define RADIO_INTENCLR_PAYLOAD_Msk (0x1UL << RADIO_INTENCLR_PAYLOAD_Pos) /*!< Bit mask of PAYLOAD field. */
+#define RADIO_INTENCLR_PAYLOAD_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_PAYLOAD_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_PAYLOAD_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for ADDRESS event */
+#define RADIO_INTENCLR_ADDRESS_Pos (1UL) /*!< Position of ADDRESS field. */
+#define RADIO_INTENCLR_ADDRESS_Msk (0x1UL << RADIO_INTENCLR_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+#define RADIO_INTENCLR_ADDRESS_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_ADDRESS_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_ADDRESS_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for READY event */
+#define RADIO_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define RADIO_INTENCLR_READY_Msk (0x1UL << RADIO_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define RADIO_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: RADIO_CRCSTATUS */
+/* Description: CRC status */
+
+/* Bit 0 : CRC status of packet received */
+#define RADIO_CRCSTATUS_CRCSTATUS_Pos (0UL) /*!< Position of CRCSTATUS field. */
+#define RADIO_CRCSTATUS_CRCSTATUS_Msk (0x1UL << RADIO_CRCSTATUS_CRCSTATUS_Pos) /*!< Bit mask of CRCSTATUS field. */
+#define RADIO_CRCSTATUS_CRCSTATUS_CRCError (0UL) /*!< Packet received with CRC error */
+#define RADIO_CRCSTATUS_CRCSTATUS_CRCOk (1UL) /*!< Packet received with CRC ok */
+
+/* Register: RADIO_RXMATCH */
+/* Description: Received address */
+
+/* Bits 2..0 : Received address */
+#define RADIO_RXMATCH_RXMATCH_Pos (0UL) /*!< Position of RXMATCH field. */
+#define RADIO_RXMATCH_RXMATCH_Msk (0x7UL << RADIO_RXMATCH_RXMATCH_Pos) /*!< Bit mask of RXMATCH field. */
+
+/* Register: RADIO_RXCRC */
+/* Description: CRC field of previously received packet */
+
+/* Bits 23..0 : CRC field of previously received packet */
+#define RADIO_RXCRC_RXCRC_Pos (0UL) /*!< Position of RXCRC field. */
+#define RADIO_RXCRC_RXCRC_Msk (0xFFFFFFUL << RADIO_RXCRC_RXCRC_Pos) /*!< Bit mask of RXCRC field. */
+
+/* Register: RADIO_DAI */
+/* Description: Device address match index */
+
+/* Bits 2..0 : Device address match index */
+#define RADIO_DAI_DAI_Pos (0UL) /*!< Position of DAI field. */
+#define RADIO_DAI_DAI_Msk (0x7UL << RADIO_DAI_DAI_Pos) /*!< Bit mask of DAI field. */
+
+/* Register: RADIO_PACKETPTR */
+/* Description: Packet pointer */
+
+/* Bits 31..0 : Packet pointer */
+#define RADIO_PACKETPTR_PACKETPTR_Pos (0UL) /*!< Position of PACKETPTR field. */
+#define RADIO_PACKETPTR_PACKETPTR_Msk (0xFFFFFFFFUL << RADIO_PACKETPTR_PACKETPTR_Pos) /*!< Bit mask of PACKETPTR field. */
+
+/* Register: RADIO_FREQUENCY */
+/* Description: Frequency */
+
+/* Bit 8 : Channel map selection. */
+#define RADIO_FREQUENCY_MAP_Pos (8UL) /*!< Position of MAP field. */
+#define RADIO_FREQUENCY_MAP_Msk (0x1UL << RADIO_FREQUENCY_MAP_Pos) /*!< Bit mask of MAP field. */
+#define RADIO_FREQUENCY_MAP_Default (0UL) /*!< Channel map between 2400 MHZ .. 2500 MHz */
+#define RADIO_FREQUENCY_MAP_Low (1UL) /*!< Channel map between 2360 MHZ .. 2460 MHz */
+
+/* Bits 6..0 : Radio channel frequency */
+#define RADIO_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define RADIO_FREQUENCY_FREQUENCY_Msk (0x7FUL << RADIO_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+
+/* Register: RADIO_TXPOWER */
+/* Description: Output power */
+
+/* Bits 7..0 : RADIO output power. */
+#define RADIO_TXPOWER_TXPOWER_Pos (0UL) /*!< Position of TXPOWER field. */
+#define RADIO_TXPOWER_TXPOWER_Msk (0xFFUL << RADIO_TXPOWER_TXPOWER_Pos) /*!< Bit mask of TXPOWER field. */
+#define RADIO_TXPOWER_TXPOWER_0dBm (0x00UL) /*!< 0 dBm */
+#define RADIO_TXPOWER_TXPOWER_Pos3dBm (0x03UL) /*!< +3 dBm */
+#define RADIO_TXPOWER_TXPOWER_Pos4dBm (0x04UL) /*!< +4 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg30dBm (0xD8UL) /*!< Deprecated enumerator - -40 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg40dBm (0xD8UL) /*!< -40 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg20dBm (0xECUL) /*!< -20 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg16dBm (0xF0UL) /*!< -16 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg12dBm (0xF4UL) /*!< -12 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg8dBm (0xF8UL) /*!< -8 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg4dBm (0xFCUL) /*!< -4 dBm */
+
+/* Register: RADIO_MODE */
+/* Description: Data rate and modulation */
+
+/* Bits 3..0 : Radio data rate and modulation setting. The radio supports Frequency-shift Keying (FSK) modulation. */
+#define RADIO_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define RADIO_MODE_MODE_Msk (0xFUL << RADIO_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define RADIO_MODE_MODE_Nrf_1Mbit (0UL) /*!< 1 Mbit/s Nordic proprietary radio mode */
+#define RADIO_MODE_MODE_Nrf_2Mbit (1UL) /*!< 2 Mbit/s Nordic proprietary radio mode */
+#define RADIO_MODE_MODE_Ble_1Mbit (3UL) /*!< 1 Mbit/s Bluetooth Low Energy */
+#define RADIO_MODE_MODE_Ble_2Mbit (4UL) /*!< 2 Mbit/s Bluetooth Low Energy */
+
+/* Register: RADIO_PCNF0 */
+/* Description: Packet configuration register 0 */
+
+/* Bit 24 : Length of preamble on air. Decision point: TASKS_START task */
+#define RADIO_PCNF0_PLEN_Pos (24UL) /*!< Position of PLEN field. */
+#define RADIO_PCNF0_PLEN_Msk (0x1UL << RADIO_PCNF0_PLEN_Pos) /*!< Bit mask of PLEN field. */
+#define RADIO_PCNF0_PLEN_8bit (0UL) /*!< 8-bit preamble */
+#define RADIO_PCNF0_PLEN_16bit (1UL) /*!< 16-bit preamble */
+
+/* Bit 20 : Include or exclude S1 field in RAM */
+#define RADIO_PCNF0_S1INCL_Pos (20UL) /*!< Position of S1INCL field. */
+#define RADIO_PCNF0_S1INCL_Msk (0x1UL << RADIO_PCNF0_S1INCL_Pos) /*!< Bit mask of S1INCL field. */
+#define RADIO_PCNF0_S1INCL_Automatic (0UL) /*!< Include S1 field in RAM only if S1LEN &gt; 0 */
+#define RADIO_PCNF0_S1INCL_Include (1UL) /*!< Always include S1 field in RAM independent of S1LEN */
+
+/* Bits 19..16 : Length on air of S1 field in number of bits. */
+#define RADIO_PCNF0_S1LEN_Pos (16UL) /*!< Position of S1LEN field. */
+#define RADIO_PCNF0_S1LEN_Msk (0xFUL << RADIO_PCNF0_S1LEN_Pos) /*!< Bit mask of S1LEN field. */
+
+/* Bit 8 : Length on air of S0 field in number of bytes. */
+#define RADIO_PCNF0_S0LEN_Pos (8UL) /*!< Position of S0LEN field. */
+#define RADIO_PCNF0_S0LEN_Msk (0x1UL << RADIO_PCNF0_S0LEN_Pos) /*!< Bit mask of S0LEN field. */
+
+/* Bits 3..0 : Length on air of LENGTH field in number of bits. */
+#define RADIO_PCNF0_LFLEN_Pos (0UL) /*!< Position of LFLEN field. */
+#define RADIO_PCNF0_LFLEN_Msk (0xFUL << RADIO_PCNF0_LFLEN_Pos) /*!< Bit mask of LFLEN field. */
+
+/* Register: RADIO_PCNF1 */
+/* Description: Packet configuration register 1 */
+
+/* Bit 25 : Enable or disable packet whitening */
+#define RADIO_PCNF1_WHITEEN_Pos (25UL) /*!< Position of WHITEEN field. */
+#define RADIO_PCNF1_WHITEEN_Msk (0x1UL << RADIO_PCNF1_WHITEEN_Pos) /*!< Bit mask of WHITEEN field. */
+#define RADIO_PCNF1_WHITEEN_Disabled (0UL) /*!< Disable */
+#define RADIO_PCNF1_WHITEEN_Enabled (1UL) /*!< Enable */
+
+/* Bit 24 : On air endianness of packet, this applies to the S0, LENGTH, S1 and the PAYLOAD fields. */
+#define RADIO_PCNF1_ENDIAN_Pos (24UL) /*!< Position of ENDIAN field. */
+#define RADIO_PCNF1_ENDIAN_Msk (0x1UL << RADIO_PCNF1_ENDIAN_Pos) /*!< Bit mask of ENDIAN field. */
+#define RADIO_PCNF1_ENDIAN_Little (0UL) /*!< Least Significant bit on air first */
+#define RADIO_PCNF1_ENDIAN_Big (1UL) /*!< Most significant bit on air first */
+
+/* Bits 18..16 : Base address length in number of bytes */
+#define RADIO_PCNF1_BALEN_Pos (16UL) /*!< Position of BALEN field. */
+#define RADIO_PCNF1_BALEN_Msk (0x7UL << RADIO_PCNF1_BALEN_Pos) /*!< Bit mask of BALEN field. */
+
+/* Bits 15..8 : Static length in number of bytes */
+#define RADIO_PCNF1_STATLEN_Pos (8UL) /*!< Position of STATLEN field. */
+#define RADIO_PCNF1_STATLEN_Msk (0xFFUL << RADIO_PCNF1_STATLEN_Pos) /*!< Bit mask of STATLEN field. */
+
+/* Bits 7..0 : Maximum length of packet payload. If the packet payload is larger than MAXLEN, the radio will truncate the payload to MAXLEN. */
+#define RADIO_PCNF1_MAXLEN_Pos (0UL) /*!< Position of MAXLEN field. */
+#define RADIO_PCNF1_MAXLEN_Msk (0xFFUL << RADIO_PCNF1_MAXLEN_Pos) /*!< Bit mask of MAXLEN field. */
+
+/* Register: RADIO_BASE0 */
+/* Description: Base address 0 */
+
+/* Bits 31..0 : Base address 0 */
+#define RADIO_BASE0_BASE0_Pos (0UL) /*!< Position of BASE0 field. */
+#define RADIO_BASE0_BASE0_Msk (0xFFFFFFFFUL << RADIO_BASE0_BASE0_Pos) /*!< Bit mask of BASE0 field. */
+
+/* Register: RADIO_BASE1 */
+/* Description: Base address 1 */
+
+/* Bits 31..0 : Base address 1 */
+#define RADIO_BASE1_BASE1_Pos (0UL) /*!< Position of BASE1 field. */
+#define RADIO_BASE1_BASE1_Msk (0xFFFFFFFFUL << RADIO_BASE1_BASE1_Pos) /*!< Bit mask of BASE1 field. */
+
+/* Register: RADIO_PREFIX0 */
+/* Description: Prefixes bytes for logical addresses 0-3 */
+
+/* Bits 31..24 : Address prefix 3. */
+#define RADIO_PREFIX0_AP3_Pos (24UL) /*!< Position of AP3 field. */
+#define RADIO_PREFIX0_AP3_Msk (0xFFUL << RADIO_PREFIX0_AP3_Pos) /*!< Bit mask of AP3 field. */
+
+/* Bits 23..16 : Address prefix 2. */
+#define RADIO_PREFIX0_AP2_Pos (16UL) /*!< Position of AP2 field. */
+#define RADIO_PREFIX0_AP2_Msk (0xFFUL << RADIO_PREFIX0_AP2_Pos) /*!< Bit mask of AP2 field. */
+
+/* Bits 15..8 : Address prefix 1. */
+#define RADIO_PREFIX0_AP1_Pos (8UL) /*!< Position of AP1 field. */
+#define RADIO_PREFIX0_AP1_Msk (0xFFUL << RADIO_PREFIX0_AP1_Pos) /*!< Bit mask of AP1 field. */
+
+/* Bits 7..0 : Address prefix 0. */
+#define RADIO_PREFIX0_AP0_Pos (0UL) /*!< Position of AP0 field. */
+#define RADIO_PREFIX0_AP0_Msk (0xFFUL << RADIO_PREFIX0_AP0_Pos) /*!< Bit mask of AP0 field. */
+
+/* Register: RADIO_PREFIX1 */
+/* Description: Prefixes bytes for logical addresses 4-7 */
+
+/* Bits 31..24 : Address prefix 7. */
+#define RADIO_PREFIX1_AP7_Pos (24UL) /*!< Position of AP7 field. */
+#define RADIO_PREFIX1_AP7_Msk (0xFFUL << RADIO_PREFIX1_AP7_Pos) /*!< Bit mask of AP7 field. */
+
+/* Bits 23..16 : Address prefix 6. */
+#define RADIO_PREFIX1_AP6_Pos (16UL) /*!< Position of AP6 field. */
+#define RADIO_PREFIX1_AP6_Msk (0xFFUL << RADIO_PREFIX1_AP6_Pos) /*!< Bit mask of AP6 field. */
+
+/* Bits 15..8 : Address prefix 5. */
+#define RADIO_PREFIX1_AP5_Pos (8UL) /*!< Position of AP5 field. */
+#define RADIO_PREFIX1_AP5_Msk (0xFFUL << RADIO_PREFIX1_AP5_Pos) /*!< Bit mask of AP5 field. */
+
+/* Bits 7..0 : Address prefix 4. */
+#define RADIO_PREFIX1_AP4_Pos (0UL) /*!< Position of AP4 field. */
+#define RADIO_PREFIX1_AP4_Msk (0xFFUL << RADIO_PREFIX1_AP4_Pos) /*!< Bit mask of AP4 field. */
+
+/* Register: RADIO_TXADDRESS */
+/* Description: Transmit address select */
+
+/* Bits 2..0 : Transmit address select */
+#define RADIO_TXADDRESS_TXADDRESS_Pos (0UL) /*!< Position of TXADDRESS field. */
+#define RADIO_TXADDRESS_TXADDRESS_Msk (0x7UL << RADIO_TXADDRESS_TXADDRESS_Pos) /*!< Bit mask of TXADDRESS field. */
+
+/* Register: RADIO_RXADDRESSES */
+/* Description: Receive address select */
+
+/* Bit 7 : Enable or disable reception on logical address 7. */
+#define RADIO_RXADDRESSES_ADDR7_Pos (7UL) /*!< Position of ADDR7 field. */
+#define RADIO_RXADDRESSES_ADDR7_Msk (0x1UL << RADIO_RXADDRESSES_ADDR7_Pos) /*!< Bit mask of ADDR7 field. */
+#define RADIO_RXADDRESSES_ADDR7_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR7_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable reception on logical address 6. */
+#define RADIO_RXADDRESSES_ADDR6_Pos (6UL) /*!< Position of ADDR6 field. */
+#define RADIO_RXADDRESSES_ADDR6_Msk (0x1UL << RADIO_RXADDRESSES_ADDR6_Pos) /*!< Bit mask of ADDR6 field. */
+#define RADIO_RXADDRESSES_ADDR6_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR6_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable reception on logical address 5. */
+#define RADIO_RXADDRESSES_ADDR5_Pos (5UL) /*!< Position of ADDR5 field. */
+#define RADIO_RXADDRESSES_ADDR5_Msk (0x1UL << RADIO_RXADDRESSES_ADDR5_Pos) /*!< Bit mask of ADDR5 field. */
+#define RADIO_RXADDRESSES_ADDR5_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR5_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable reception on logical address 4. */
+#define RADIO_RXADDRESSES_ADDR4_Pos (4UL) /*!< Position of ADDR4 field. */
+#define RADIO_RXADDRESSES_ADDR4_Msk (0x1UL << RADIO_RXADDRESSES_ADDR4_Pos) /*!< Bit mask of ADDR4 field. */
+#define RADIO_RXADDRESSES_ADDR4_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR4_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable reception on logical address 3. */
+#define RADIO_RXADDRESSES_ADDR3_Pos (3UL) /*!< Position of ADDR3 field. */
+#define RADIO_RXADDRESSES_ADDR3_Msk (0x1UL << RADIO_RXADDRESSES_ADDR3_Pos) /*!< Bit mask of ADDR3 field. */
+#define RADIO_RXADDRESSES_ADDR3_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR3_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable reception on logical address 2. */
+#define RADIO_RXADDRESSES_ADDR2_Pos (2UL) /*!< Position of ADDR2 field. */
+#define RADIO_RXADDRESSES_ADDR2_Msk (0x1UL << RADIO_RXADDRESSES_ADDR2_Pos) /*!< Bit mask of ADDR2 field. */
+#define RADIO_RXADDRESSES_ADDR2_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR2_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable reception on logical address 1. */
+#define RADIO_RXADDRESSES_ADDR1_Pos (1UL) /*!< Position of ADDR1 field. */
+#define RADIO_RXADDRESSES_ADDR1_Msk (0x1UL << RADIO_RXADDRESSES_ADDR1_Pos) /*!< Bit mask of ADDR1 field. */
+#define RADIO_RXADDRESSES_ADDR1_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR1_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable reception on logical address 0. */
+#define RADIO_RXADDRESSES_ADDR0_Pos (0UL) /*!< Position of ADDR0 field. */
+#define RADIO_RXADDRESSES_ADDR0_Msk (0x1UL << RADIO_RXADDRESSES_ADDR0_Pos) /*!< Bit mask of ADDR0 field. */
+#define RADIO_RXADDRESSES_ADDR0_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR0_Enabled (1UL) /*!< Enable */
+
+/* Register: RADIO_CRCCNF */
+/* Description: CRC configuration */
+
+/* Bit 8 : Include or exclude packet address field out of CRC calculation. */
+#define RADIO_CRCCNF_SKIPADDR_Pos (8UL) /*!< Position of SKIPADDR field. */
+#define RADIO_CRCCNF_SKIPADDR_Msk (0x1UL << RADIO_CRCCNF_SKIPADDR_Pos) /*!< Bit mask of SKIPADDR field. */
+#define RADIO_CRCCNF_SKIPADDR_Include (0UL) /*!< CRC calculation includes address field */
+#define RADIO_CRCCNF_SKIPADDR_Skip (1UL) /*!< CRC calculation does not include address field. The CRC calculation will start at the first byte after the address. */
+
+/* Bits 1..0 : CRC length in number of bytes. */
+#define RADIO_CRCCNF_LEN_Pos (0UL) /*!< Position of LEN field. */
+#define RADIO_CRCCNF_LEN_Msk (0x3UL << RADIO_CRCCNF_LEN_Pos) /*!< Bit mask of LEN field. */
+#define RADIO_CRCCNF_LEN_Disabled (0UL) /*!< CRC length is zero and CRC calculation is disabled */
+#define RADIO_CRCCNF_LEN_One (1UL) /*!< CRC length is one byte and CRC calculation is enabled */
+#define RADIO_CRCCNF_LEN_Two (2UL) /*!< CRC length is two bytes and CRC calculation is enabled */
+#define RADIO_CRCCNF_LEN_Three (3UL) /*!< CRC length is three bytes and CRC calculation is enabled */
+
+/* Register: RADIO_CRCPOLY */
+/* Description: CRC polynomial */
+
+/* Bits 23..0 : CRC polynomial */
+#define RADIO_CRCPOLY_CRCPOLY_Pos (0UL) /*!< Position of CRCPOLY field. */
+#define RADIO_CRCPOLY_CRCPOLY_Msk (0xFFFFFFUL << RADIO_CRCPOLY_CRCPOLY_Pos) /*!< Bit mask of CRCPOLY field. */
+
+/* Register: RADIO_CRCINIT */
+/* Description: CRC initial value */
+
+/* Bits 23..0 : CRC initial value */
+#define RADIO_CRCINIT_CRCINIT_Pos (0UL) /*!< Position of CRCINIT field. */
+#define RADIO_CRCINIT_CRCINIT_Msk (0xFFFFFFUL << RADIO_CRCINIT_CRCINIT_Pos) /*!< Bit mask of CRCINIT field. */
+
+/* Register: RADIO_TIFS */
+/* Description: Inter Frame Spacing in us */
+
+/* Bits 7..0 : Inter Frame Spacing in us */
+#define RADIO_TIFS_TIFS_Pos (0UL) /*!< Position of TIFS field. */
+#define RADIO_TIFS_TIFS_Msk (0xFFUL << RADIO_TIFS_TIFS_Pos) /*!< Bit mask of TIFS field. */
+
+/* Register: RADIO_RSSISAMPLE */
+/* Description: RSSI sample */
+
+/* Bits 6..0 : RSSI sample */
+#define RADIO_RSSISAMPLE_RSSISAMPLE_Pos (0UL) /*!< Position of RSSISAMPLE field. */
+#define RADIO_RSSISAMPLE_RSSISAMPLE_Msk (0x7FUL << RADIO_RSSISAMPLE_RSSISAMPLE_Pos) /*!< Bit mask of RSSISAMPLE field. */
+
+/* Register: RADIO_STATE */
+/* Description: Current radio state */
+
+/* Bits 3..0 : Current radio state */
+#define RADIO_STATE_STATE_Pos (0UL) /*!< Position of STATE field. */
+#define RADIO_STATE_STATE_Msk (0xFUL << RADIO_STATE_STATE_Pos) /*!< Bit mask of STATE field. */
+#define RADIO_STATE_STATE_Disabled (0UL) /*!< RADIO is in the Disabled state */
+#define RADIO_STATE_STATE_RxRu (1UL) /*!< RADIO is in the RXRU state */
+#define RADIO_STATE_STATE_RxIdle (2UL) /*!< RADIO is in the RXIDLE state */
+#define RADIO_STATE_STATE_Rx (3UL) /*!< RADIO is in the RX state */
+#define RADIO_STATE_STATE_RxDisable (4UL) /*!< RADIO is in the RXDISABLED state */
+#define RADIO_STATE_STATE_TxRu (9UL) /*!< RADIO is in the TXRU state */
+#define RADIO_STATE_STATE_TxIdle (10UL) /*!< RADIO is in the TXIDLE state */
+#define RADIO_STATE_STATE_Tx (11UL) /*!< RADIO is in the TX state */
+#define RADIO_STATE_STATE_TxDisable (12UL) /*!< RADIO is in the TXDISABLED state */
+
+/* Register: RADIO_DATAWHITEIV */
+/* Description: Data whitening initial value */
+
+/* Bits 6..0 : Data whitening initial value. Bit 6 is hard-wired to '1', writing '0' to it has no effect, and it will always be read back and used by the device as '1'. */
+#define RADIO_DATAWHITEIV_DATAWHITEIV_Pos (0UL) /*!< Position of DATAWHITEIV field. */
+#define RADIO_DATAWHITEIV_DATAWHITEIV_Msk (0x7FUL << RADIO_DATAWHITEIV_DATAWHITEIV_Pos) /*!< Bit mask of DATAWHITEIV field. */
+
+/* Register: RADIO_BCC */
+/* Description: Bit counter compare */
+
+/* Bits 31..0 : Bit counter compare */
+#define RADIO_BCC_BCC_Pos (0UL) /*!< Position of BCC field. */
+#define RADIO_BCC_BCC_Msk (0xFFFFFFFFUL << RADIO_BCC_BCC_Pos) /*!< Bit mask of BCC field. */
+
+/* Register: RADIO_DAB */
+/* Description: Description collection[0]: Device address base segment 0 */
+
+/* Bits 31..0 : Device address base segment 0 */
+#define RADIO_DAB_DAB_Pos (0UL) /*!< Position of DAB field. */
+#define RADIO_DAB_DAB_Msk (0xFFFFFFFFUL << RADIO_DAB_DAB_Pos) /*!< Bit mask of DAB field. */
+
+/* Register: RADIO_DAP */
+/* Description: Description collection[0]: Device address prefix 0 */
+
+/* Bits 15..0 : Device address prefix 0 */
+#define RADIO_DAP_DAP_Pos (0UL) /*!< Position of DAP field. */
+#define RADIO_DAP_DAP_Msk (0xFFFFUL << RADIO_DAP_DAP_Pos) /*!< Bit mask of DAP field. */
+
+/* Register: RADIO_DACNF */
+/* Description: Device address match configuration */
+
+/* Bit 15 : TxAdd for device address 7 */
+#define RADIO_DACNF_TXADD7_Pos (15UL) /*!< Position of TXADD7 field. */
+#define RADIO_DACNF_TXADD7_Msk (0x1UL << RADIO_DACNF_TXADD7_Pos) /*!< Bit mask of TXADD7 field. */
+
+/* Bit 14 : TxAdd for device address 6 */
+#define RADIO_DACNF_TXADD6_Pos (14UL) /*!< Position of TXADD6 field. */
+#define RADIO_DACNF_TXADD6_Msk (0x1UL << RADIO_DACNF_TXADD6_Pos) /*!< Bit mask of TXADD6 field. */
+
+/* Bit 13 : TxAdd for device address 5 */
+#define RADIO_DACNF_TXADD5_Pos (13UL) /*!< Position of TXADD5 field. */
+#define RADIO_DACNF_TXADD5_Msk (0x1UL << RADIO_DACNF_TXADD5_Pos) /*!< Bit mask of TXADD5 field. */
+
+/* Bit 12 : TxAdd for device address 4 */
+#define RADIO_DACNF_TXADD4_Pos (12UL) /*!< Position of TXADD4 field. */
+#define RADIO_DACNF_TXADD4_Msk (0x1UL << RADIO_DACNF_TXADD4_Pos) /*!< Bit mask of TXADD4 field. */
+
+/* Bit 11 : TxAdd for device address 3 */
+#define RADIO_DACNF_TXADD3_Pos (11UL) /*!< Position of TXADD3 field. */
+#define RADIO_DACNF_TXADD3_Msk (0x1UL << RADIO_DACNF_TXADD3_Pos) /*!< Bit mask of TXADD3 field. */
+
+/* Bit 10 : TxAdd for device address 2 */
+#define RADIO_DACNF_TXADD2_Pos (10UL) /*!< Position of TXADD2 field. */
+#define RADIO_DACNF_TXADD2_Msk (0x1UL << RADIO_DACNF_TXADD2_Pos) /*!< Bit mask of TXADD2 field. */
+
+/* Bit 9 : TxAdd for device address 1 */
+#define RADIO_DACNF_TXADD1_Pos (9UL) /*!< Position of TXADD1 field. */
+#define RADIO_DACNF_TXADD1_Msk (0x1UL << RADIO_DACNF_TXADD1_Pos) /*!< Bit mask of TXADD1 field. */
+
+/* Bit 8 : TxAdd for device address 0 */
+#define RADIO_DACNF_TXADD0_Pos (8UL) /*!< Position of TXADD0 field. */
+#define RADIO_DACNF_TXADD0_Msk (0x1UL << RADIO_DACNF_TXADD0_Pos) /*!< Bit mask of TXADD0 field. */
+
+/* Bit 7 : Enable or disable device address matching using device address 7 */
+#define RADIO_DACNF_ENA7_Pos (7UL) /*!< Position of ENA7 field. */
+#define RADIO_DACNF_ENA7_Msk (0x1UL << RADIO_DACNF_ENA7_Pos) /*!< Bit mask of ENA7 field. */
+#define RADIO_DACNF_ENA7_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA7_Enabled (1UL) /*!< Enabled */
+
+/* Bit 6 : Enable or disable device address matching using device address 6 */
+#define RADIO_DACNF_ENA6_Pos (6UL) /*!< Position of ENA6 field. */
+#define RADIO_DACNF_ENA6_Msk (0x1UL << RADIO_DACNF_ENA6_Pos) /*!< Bit mask of ENA6 field. */
+#define RADIO_DACNF_ENA6_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA6_Enabled (1UL) /*!< Enabled */
+
+/* Bit 5 : Enable or disable device address matching using device address 5 */
+#define RADIO_DACNF_ENA5_Pos (5UL) /*!< Position of ENA5 field. */
+#define RADIO_DACNF_ENA5_Msk (0x1UL << RADIO_DACNF_ENA5_Pos) /*!< Bit mask of ENA5 field. */
+#define RADIO_DACNF_ENA5_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA5_Enabled (1UL) /*!< Enabled */
+
+/* Bit 4 : Enable or disable device address matching using device address 4 */
+#define RADIO_DACNF_ENA4_Pos (4UL) /*!< Position of ENA4 field. */
+#define RADIO_DACNF_ENA4_Msk (0x1UL << RADIO_DACNF_ENA4_Pos) /*!< Bit mask of ENA4 field. */
+#define RADIO_DACNF_ENA4_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA4_Enabled (1UL) /*!< Enabled */
+
+/* Bit 3 : Enable or disable device address matching using device address 3 */
+#define RADIO_DACNF_ENA3_Pos (3UL) /*!< Position of ENA3 field. */
+#define RADIO_DACNF_ENA3_Msk (0x1UL << RADIO_DACNF_ENA3_Pos) /*!< Bit mask of ENA3 field. */
+#define RADIO_DACNF_ENA3_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA3_Enabled (1UL) /*!< Enabled */
+
+/* Bit 2 : Enable or disable device address matching using device address 2 */
+#define RADIO_DACNF_ENA2_Pos (2UL) /*!< Position of ENA2 field. */
+#define RADIO_DACNF_ENA2_Msk (0x1UL << RADIO_DACNF_ENA2_Pos) /*!< Bit mask of ENA2 field. */
+#define RADIO_DACNF_ENA2_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA2_Enabled (1UL) /*!< Enabled */
+
+/* Bit 1 : Enable or disable device address matching using device address 1 */
+#define RADIO_DACNF_ENA1_Pos (1UL) /*!< Position of ENA1 field. */
+#define RADIO_DACNF_ENA1_Msk (0x1UL << RADIO_DACNF_ENA1_Pos) /*!< Bit mask of ENA1 field. */
+#define RADIO_DACNF_ENA1_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA1_Enabled (1UL) /*!< Enabled */
+
+/* Bit 0 : Enable or disable device address matching using device address 0 */
+#define RADIO_DACNF_ENA0_Pos (0UL) /*!< Position of ENA0 field. */
+#define RADIO_DACNF_ENA0_Msk (0x1UL << RADIO_DACNF_ENA0_Pos) /*!< Bit mask of ENA0 field. */
+#define RADIO_DACNF_ENA0_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA0_Enabled (1UL) /*!< Enabled */
+
+/* Register: RADIO_MODECNF0 */
+/* Description: Radio mode configuration register 0 */
+
+/* Bits 9..8 : Default TX value */
+#define RADIO_MODECNF0_DTX_Pos (8UL) /*!< Position of DTX field. */
+#define RADIO_MODECNF0_DTX_Msk (0x3UL << RADIO_MODECNF0_DTX_Pos) /*!< Bit mask of DTX field. */
+#define RADIO_MODECNF0_DTX_B1 (0UL) /*!< Transmit '1' */
+#define RADIO_MODECNF0_DTX_B0 (1UL) /*!< Transmit '0' */
+#define RADIO_MODECNF0_DTX_Center (2UL) /*!< Transmit center frequency */
+
+/* Bit 0 : Radio ramp-up time */
+#define RADIO_MODECNF0_RU_Pos (0UL) /*!< Position of RU field. */
+#define RADIO_MODECNF0_RU_Msk (0x1UL << RADIO_MODECNF0_RU_Pos) /*!< Bit mask of RU field. */
+#define RADIO_MODECNF0_RU_Default (0UL) /*!< Default ramp-up time (tRXEN), compatible with firmware written for nRF51 */
+#define RADIO_MODECNF0_RU_Fast (1UL) /*!< Fast ramp-up (tRXEN,FAST), see electrical specification for more information */
+
+/* Register: RADIO_POWER */
+/* Description: Peripheral power control */
+
+/* Bit 0 : Peripheral power control. The peripheral and its registers will be reset to its initial state by switching the peripheral off and then back on again. */
+#define RADIO_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define RADIO_POWER_POWER_Msk (0x1UL << RADIO_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define RADIO_POWER_POWER_Disabled (0UL) /*!< Peripheral is powered off */
+#define RADIO_POWER_POWER_Enabled (1UL) /*!< Peripheral is powered on */
+
+
+/* Peripheral: RNG */
+/* Description: Random Number Generator */
+
+/* Register: RNG_TASKS_START */
+/* Description: Task starting the random number generator */
+
+/* Bit 0 : */
+#define RNG_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define RNG_TASKS_START_TASKS_START_Msk (0x1UL << RNG_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: RNG_TASKS_STOP */
+/* Description: Task stopping the random number generator */
+
+/* Bit 0 : */
+#define RNG_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define RNG_TASKS_STOP_TASKS_STOP_Msk (0x1UL << RNG_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: RNG_EVENTS_VALRDY */
+/* Description: Event being generated for every new random number written to the VALUE register */
+
+/* Bit 0 : */
+#define RNG_EVENTS_VALRDY_EVENTS_VALRDY_Pos (0UL) /*!< Position of EVENTS_VALRDY field. */
+#define RNG_EVENTS_VALRDY_EVENTS_VALRDY_Msk (0x1UL << RNG_EVENTS_VALRDY_EVENTS_VALRDY_Pos) /*!< Bit mask of EVENTS_VALRDY field. */
+
+/* Register: RNG_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 0 : Shortcut between VALRDY event and STOP task */
+#define RNG_SHORTS_VALRDY_STOP_Pos (0UL) /*!< Position of VALRDY_STOP field. */
+#define RNG_SHORTS_VALRDY_STOP_Msk (0x1UL << RNG_SHORTS_VALRDY_STOP_Pos) /*!< Bit mask of VALRDY_STOP field. */
+#define RNG_SHORTS_VALRDY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define RNG_SHORTS_VALRDY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: RNG_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 0 : Write '1' to Enable interrupt for VALRDY event */
+#define RNG_INTENSET_VALRDY_Pos (0UL) /*!< Position of VALRDY field. */
+#define RNG_INTENSET_VALRDY_Msk (0x1UL << RNG_INTENSET_VALRDY_Pos) /*!< Bit mask of VALRDY field. */
+#define RNG_INTENSET_VALRDY_Disabled (0UL) /*!< Read: Disabled */
+#define RNG_INTENSET_VALRDY_Enabled (1UL) /*!< Read: Enabled */
+#define RNG_INTENSET_VALRDY_Set (1UL) /*!< Enable */
+
+/* Register: RNG_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 0 : Write '1' to Disable interrupt for VALRDY event */
+#define RNG_INTENCLR_VALRDY_Pos (0UL) /*!< Position of VALRDY field. */
+#define RNG_INTENCLR_VALRDY_Msk (0x1UL << RNG_INTENCLR_VALRDY_Pos) /*!< Bit mask of VALRDY field. */
+#define RNG_INTENCLR_VALRDY_Disabled (0UL) /*!< Read: Disabled */
+#define RNG_INTENCLR_VALRDY_Enabled (1UL) /*!< Read: Enabled */
+#define RNG_INTENCLR_VALRDY_Clear (1UL) /*!< Disable */
+
+/* Register: RNG_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 0 : Bias correction */
+#define RNG_CONFIG_DERCEN_Pos (0UL) /*!< Position of DERCEN field. */
+#define RNG_CONFIG_DERCEN_Msk (0x1UL << RNG_CONFIG_DERCEN_Pos) /*!< Bit mask of DERCEN field. */
+#define RNG_CONFIG_DERCEN_Disabled (0UL) /*!< Disabled */
+#define RNG_CONFIG_DERCEN_Enabled (1UL) /*!< Enabled */
+
+/* Register: RNG_VALUE */
+/* Description: Output random number */
+
+/* Bits 7..0 : Generated random number */
+#define RNG_VALUE_VALUE_Pos (0UL) /*!< Position of VALUE field. */
+#define RNG_VALUE_VALUE_Msk (0xFFUL << RNG_VALUE_VALUE_Pos) /*!< Bit mask of VALUE field. */
+
+
+/* Peripheral: RTC */
+/* Description: Real time counter 0 */
+
+/* Register: RTC_TASKS_START */
+/* Description: Start RTC COUNTER */
+
+/* Bit 0 : */
+#define RTC_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define RTC_TASKS_START_TASKS_START_Msk (0x1UL << RTC_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: RTC_TASKS_STOP */
+/* Description: Stop RTC COUNTER */
+
+/* Bit 0 : */
+#define RTC_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define RTC_TASKS_STOP_TASKS_STOP_Msk (0x1UL << RTC_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: RTC_TASKS_CLEAR */
+/* Description: Clear RTC COUNTER */
+
+/* Bit 0 : */
+#define RTC_TASKS_CLEAR_TASKS_CLEAR_Pos (0UL) /*!< Position of TASKS_CLEAR field. */
+#define RTC_TASKS_CLEAR_TASKS_CLEAR_Msk (0x1UL << RTC_TASKS_CLEAR_TASKS_CLEAR_Pos) /*!< Bit mask of TASKS_CLEAR field. */
+
+/* Register: RTC_TASKS_TRIGOVRFLW */
+/* Description: Set COUNTER to 0xFFFFF0 */
+
+/* Bit 0 : */
+#define RTC_TASKS_TRIGOVRFLW_TASKS_TRIGOVRFLW_Pos (0UL) /*!< Position of TASKS_TRIGOVRFLW field. */
+#define RTC_TASKS_TRIGOVRFLW_TASKS_TRIGOVRFLW_Msk (0x1UL << RTC_TASKS_TRIGOVRFLW_TASKS_TRIGOVRFLW_Pos) /*!< Bit mask of TASKS_TRIGOVRFLW field. */
+
+/* Register: RTC_EVENTS_TICK */
+/* Description: Event on COUNTER increment */
+
+/* Bit 0 : */
+#define RTC_EVENTS_TICK_EVENTS_TICK_Pos (0UL) /*!< Position of EVENTS_TICK field. */
+#define RTC_EVENTS_TICK_EVENTS_TICK_Msk (0x1UL << RTC_EVENTS_TICK_EVENTS_TICK_Pos) /*!< Bit mask of EVENTS_TICK field. */
+
+/* Register: RTC_EVENTS_OVRFLW */
+/* Description: Event on COUNTER overflow */
+
+/* Bit 0 : */
+#define RTC_EVENTS_OVRFLW_EVENTS_OVRFLW_Pos (0UL) /*!< Position of EVENTS_OVRFLW field. */
+#define RTC_EVENTS_OVRFLW_EVENTS_OVRFLW_Msk (0x1UL << RTC_EVENTS_OVRFLW_EVENTS_OVRFLW_Pos) /*!< Bit mask of EVENTS_OVRFLW field. */
+
+/* Register: RTC_EVENTS_COMPARE */
+/* Description: Description collection[0]: Compare event on CC[0] match */
+
+/* Bit 0 : */
+#define RTC_EVENTS_COMPARE_EVENTS_COMPARE_Pos (0UL) /*!< Position of EVENTS_COMPARE field. */
+#define RTC_EVENTS_COMPARE_EVENTS_COMPARE_Msk (0x1UL << RTC_EVENTS_COMPARE_EVENTS_COMPARE_Pos) /*!< Bit mask of EVENTS_COMPARE field. */
+
+/* Register: RTC_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 19 : Write '1' to Enable interrupt for COMPARE[3] event */
+#define RTC_INTENSET_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_INTENSET_COMPARE3_Msk (0x1UL << RTC_INTENSET_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_INTENSET_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_COMPARE3_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to Enable interrupt for COMPARE[2] event */
+#define RTC_INTENSET_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_INTENSET_COMPARE2_Msk (0x1UL << RTC_INTENSET_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_INTENSET_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_COMPARE2_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to Enable interrupt for COMPARE[1] event */
+#define RTC_INTENSET_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_INTENSET_COMPARE1_Msk (0x1UL << RTC_INTENSET_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_INTENSET_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_COMPARE1_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to Enable interrupt for COMPARE[0] event */
+#define RTC_INTENSET_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_INTENSET_COMPARE0_Msk (0x1UL << RTC_INTENSET_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_INTENSET_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_COMPARE0_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for OVRFLW event */
+#define RTC_INTENSET_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_INTENSET_OVRFLW_Msk (0x1UL << RTC_INTENSET_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_INTENSET_OVRFLW_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_OVRFLW_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_OVRFLW_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for TICK event */
+#define RTC_INTENSET_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_INTENSET_TICK_Msk (0x1UL << RTC_INTENSET_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_INTENSET_TICK_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_TICK_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_TICK_Set (1UL) /*!< Enable */
+
+/* Register: RTC_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 19 : Write '1' to Disable interrupt for COMPARE[3] event */
+#define RTC_INTENCLR_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_INTENCLR_COMPARE3_Msk (0x1UL << RTC_INTENCLR_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_INTENCLR_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_COMPARE3_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to Disable interrupt for COMPARE[2] event */
+#define RTC_INTENCLR_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_INTENCLR_COMPARE2_Msk (0x1UL << RTC_INTENCLR_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_INTENCLR_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_COMPARE2_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to Disable interrupt for COMPARE[1] event */
+#define RTC_INTENCLR_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_INTENCLR_COMPARE1_Msk (0x1UL << RTC_INTENCLR_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_INTENCLR_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_COMPARE1_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to Disable interrupt for COMPARE[0] event */
+#define RTC_INTENCLR_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_INTENCLR_COMPARE0_Msk (0x1UL << RTC_INTENCLR_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_INTENCLR_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_COMPARE0_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for OVRFLW event */
+#define RTC_INTENCLR_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_INTENCLR_OVRFLW_Msk (0x1UL << RTC_INTENCLR_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_INTENCLR_OVRFLW_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_OVRFLW_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_OVRFLW_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for TICK event */
+#define RTC_INTENCLR_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_INTENCLR_TICK_Msk (0x1UL << RTC_INTENCLR_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_INTENCLR_TICK_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_TICK_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_TICK_Clear (1UL) /*!< Disable */
+
+/* Register: RTC_EVTEN */
+/* Description: Enable or disable event routing */
+
+/* Bit 19 : Enable or disable event routing for COMPARE[3] event */
+#define RTC_EVTEN_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_EVTEN_COMPARE3_Msk (0x1UL << RTC_EVTEN_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_EVTEN_COMPARE3_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_COMPARE3_Enabled (1UL) /*!< Enable */
+
+/* Bit 18 : Enable or disable event routing for COMPARE[2] event */
+#define RTC_EVTEN_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_EVTEN_COMPARE2_Msk (0x1UL << RTC_EVTEN_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_EVTEN_COMPARE2_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_COMPARE2_Enabled (1UL) /*!< Enable */
+
+/* Bit 17 : Enable or disable event routing for COMPARE[1] event */
+#define RTC_EVTEN_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_EVTEN_COMPARE1_Msk (0x1UL << RTC_EVTEN_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_EVTEN_COMPARE1_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_COMPARE1_Enabled (1UL) /*!< Enable */
+
+/* Bit 16 : Enable or disable event routing for COMPARE[0] event */
+#define RTC_EVTEN_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_EVTEN_COMPARE0_Msk (0x1UL << RTC_EVTEN_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_EVTEN_COMPARE0_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_COMPARE0_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable event routing for OVRFLW event */
+#define RTC_EVTEN_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_EVTEN_OVRFLW_Msk (0x1UL << RTC_EVTEN_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_EVTEN_OVRFLW_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_OVRFLW_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable event routing for TICK event */
+#define RTC_EVTEN_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_EVTEN_TICK_Msk (0x1UL << RTC_EVTEN_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_EVTEN_TICK_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_TICK_Enabled (1UL) /*!< Enable */
+
+/* Register: RTC_EVTENSET */
+/* Description: Enable event routing */
+
+/* Bit 19 : Write '1' to Enable event routing for COMPARE[3] event */
+#define RTC_EVTENSET_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_EVTENSET_COMPARE3_Msk (0x1UL << RTC_EVTENSET_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_EVTENSET_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_COMPARE3_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to Enable event routing for COMPARE[2] event */
+#define RTC_EVTENSET_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_EVTENSET_COMPARE2_Msk (0x1UL << RTC_EVTENSET_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_EVTENSET_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_COMPARE2_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to Enable event routing for COMPARE[1] event */
+#define RTC_EVTENSET_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_EVTENSET_COMPARE1_Msk (0x1UL << RTC_EVTENSET_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_EVTENSET_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_COMPARE1_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to Enable event routing for COMPARE[0] event */
+#define RTC_EVTENSET_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_EVTENSET_COMPARE0_Msk (0x1UL << RTC_EVTENSET_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_EVTENSET_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_COMPARE0_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable event routing for OVRFLW event */
+#define RTC_EVTENSET_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_EVTENSET_OVRFLW_Msk (0x1UL << RTC_EVTENSET_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_EVTENSET_OVRFLW_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_OVRFLW_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_OVRFLW_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable event routing for TICK event */
+#define RTC_EVTENSET_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_EVTENSET_TICK_Msk (0x1UL << RTC_EVTENSET_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_EVTENSET_TICK_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_TICK_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_TICK_Set (1UL) /*!< Enable */
+
+/* Register: RTC_EVTENCLR */
+/* Description: Disable event routing */
+
+/* Bit 19 : Write '1' to Disable event routing for COMPARE[3] event */
+#define RTC_EVTENCLR_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_EVTENCLR_COMPARE3_Msk (0x1UL << RTC_EVTENCLR_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_EVTENCLR_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_COMPARE3_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to Disable event routing for COMPARE[2] event */
+#define RTC_EVTENCLR_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_EVTENCLR_COMPARE2_Msk (0x1UL << RTC_EVTENCLR_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_EVTENCLR_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_COMPARE2_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to Disable event routing for COMPARE[1] event */
+#define RTC_EVTENCLR_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_EVTENCLR_COMPARE1_Msk (0x1UL << RTC_EVTENCLR_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_EVTENCLR_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_COMPARE1_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to Disable event routing for COMPARE[0] event */
+#define RTC_EVTENCLR_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_EVTENCLR_COMPARE0_Msk (0x1UL << RTC_EVTENCLR_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_EVTENCLR_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_COMPARE0_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable event routing for OVRFLW event */
+#define RTC_EVTENCLR_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_EVTENCLR_OVRFLW_Msk (0x1UL << RTC_EVTENCLR_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_EVTENCLR_OVRFLW_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_OVRFLW_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_OVRFLW_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable event routing for TICK event */
+#define RTC_EVTENCLR_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_EVTENCLR_TICK_Msk (0x1UL << RTC_EVTENCLR_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_EVTENCLR_TICK_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_TICK_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_TICK_Clear (1UL) /*!< Disable */
+
+/* Register: RTC_COUNTER */
+/* Description: Current COUNTER value */
+
+/* Bits 23..0 : Counter value */
+#define RTC_COUNTER_COUNTER_Pos (0UL) /*!< Position of COUNTER field. */
+#define RTC_COUNTER_COUNTER_Msk (0xFFFFFFUL << RTC_COUNTER_COUNTER_Pos) /*!< Bit mask of COUNTER field. */
+
+/* Register: RTC_PRESCALER */
+/* Description: 12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must be written when RTC is stopped */
+
+/* Bits 11..0 : Prescaler value */
+#define RTC_PRESCALER_PRESCALER_Pos (0UL) /*!< Position of PRESCALER field. */
+#define RTC_PRESCALER_PRESCALER_Msk (0xFFFUL << RTC_PRESCALER_PRESCALER_Pos) /*!< Bit mask of PRESCALER field. */
+
+/* Register: RTC_CC */
+/* Description: Description collection[0]: Compare register 0 */
+
+/* Bits 23..0 : Compare value */
+#define RTC_CC_COMPARE_Pos (0UL) /*!< Position of COMPARE field. */
+#define RTC_CC_COMPARE_Msk (0xFFFFFFUL << RTC_CC_COMPARE_Pos) /*!< Bit mask of COMPARE field. */
+
+
+/* Peripheral: SAADC */
+/* Description: Analog to Digital Converter */
+
+/* Register: SAADC_TASKS_START */
+/* Description: Start the ADC and prepare the result buffer in RAM */
+
+/* Bit 0 : */
+#define SAADC_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define SAADC_TASKS_START_TASKS_START_Msk (0x1UL << SAADC_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: SAADC_TASKS_SAMPLE */
+/* Description: Take one ADC sample, if scan is enabled all channels are sampled */
+
+/* Bit 0 : */
+#define SAADC_TASKS_SAMPLE_TASKS_SAMPLE_Pos (0UL) /*!< Position of TASKS_SAMPLE field. */
+#define SAADC_TASKS_SAMPLE_TASKS_SAMPLE_Msk (0x1UL << SAADC_TASKS_SAMPLE_TASKS_SAMPLE_Pos) /*!< Bit mask of TASKS_SAMPLE field. */
+
+/* Register: SAADC_TASKS_STOP */
+/* Description: Stop the ADC and terminate any on-going conversion */
+
+/* Bit 0 : */
+#define SAADC_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define SAADC_TASKS_STOP_TASKS_STOP_Msk (0x1UL << SAADC_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: SAADC_TASKS_CALIBRATEOFFSET */
+/* Description: Starts offset auto-calibration */
+
+/* Bit 0 : */
+#define SAADC_TASKS_CALIBRATEOFFSET_TASKS_CALIBRATEOFFSET_Pos (0UL) /*!< Position of TASKS_CALIBRATEOFFSET field. */
+#define SAADC_TASKS_CALIBRATEOFFSET_TASKS_CALIBRATEOFFSET_Msk (0x1UL << SAADC_TASKS_CALIBRATEOFFSET_TASKS_CALIBRATEOFFSET_Pos) /*!< Bit mask of TASKS_CALIBRATEOFFSET field. */
+
+/* Register: SAADC_EVENTS_STARTED */
+/* Description: The ADC has started */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_STARTED_EVENTS_STARTED_Pos (0UL) /*!< Position of EVENTS_STARTED field. */
+#define SAADC_EVENTS_STARTED_EVENTS_STARTED_Msk (0x1UL << SAADC_EVENTS_STARTED_EVENTS_STARTED_Pos) /*!< Bit mask of EVENTS_STARTED field. */
+
+/* Register: SAADC_EVENTS_END */
+/* Description: The ADC has filled up the Result buffer */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_END_EVENTS_END_Pos (0UL) /*!< Position of EVENTS_END field. */
+#define SAADC_EVENTS_END_EVENTS_END_Msk (0x1UL << SAADC_EVENTS_END_EVENTS_END_Pos) /*!< Bit mask of EVENTS_END field. */
+
+/* Register: SAADC_EVENTS_DONE */
+/* Description: A conversion task has been completed. Depending on the mode, multiple conversions might be needed for a result to be transferred to RAM. */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_DONE_EVENTS_DONE_Pos (0UL) /*!< Position of EVENTS_DONE field. */
+#define SAADC_EVENTS_DONE_EVENTS_DONE_Msk (0x1UL << SAADC_EVENTS_DONE_EVENTS_DONE_Pos) /*!< Bit mask of EVENTS_DONE field. */
+
+/* Register: SAADC_EVENTS_RESULTDONE */
+/* Description: A result is ready to get transferred to RAM. */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_RESULTDONE_EVENTS_RESULTDONE_Pos (0UL) /*!< Position of EVENTS_RESULTDONE field. */
+#define SAADC_EVENTS_RESULTDONE_EVENTS_RESULTDONE_Msk (0x1UL << SAADC_EVENTS_RESULTDONE_EVENTS_RESULTDONE_Pos) /*!< Bit mask of EVENTS_RESULTDONE field. */
+
+/* Register: SAADC_EVENTS_CALIBRATEDONE */
+/* Description: Calibration is complete */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_CALIBRATEDONE_EVENTS_CALIBRATEDONE_Pos (0UL) /*!< Position of EVENTS_CALIBRATEDONE field. */
+#define SAADC_EVENTS_CALIBRATEDONE_EVENTS_CALIBRATEDONE_Msk (0x1UL << SAADC_EVENTS_CALIBRATEDONE_EVENTS_CALIBRATEDONE_Pos) /*!< Bit mask of EVENTS_CALIBRATEDONE field. */
+
+/* Register: SAADC_EVENTS_STOPPED */
+/* Description: The ADC has stopped */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define SAADC_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << SAADC_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: SAADC_EVENTS_CH_LIMITH */
+/* Description: Description cluster[0]: Last results is equal or above CH[0].LIMIT.HIGH */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_CH_LIMITH_LIMITH_Pos (0UL) /*!< Position of LIMITH field. */
+#define SAADC_EVENTS_CH_LIMITH_LIMITH_Msk (0x1UL << SAADC_EVENTS_CH_LIMITH_LIMITH_Pos) /*!< Bit mask of LIMITH field. */
+
+/* Register: SAADC_EVENTS_CH_LIMITL */
+/* Description: Description cluster[0]: Last results is equal or below CH[0].LIMIT.LOW */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_CH_LIMITL_LIMITL_Pos (0UL) /*!< Position of LIMITL field. */
+#define SAADC_EVENTS_CH_LIMITL_LIMITL_Msk (0x1UL << SAADC_EVENTS_CH_LIMITL_LIMITL_Pos) /*!< Bit mask of LIMITL field. */
+
+/* Register: SAADC_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 21 : Enable or disable interrupt for CH[7].LIMITL event */
+#define SAADC_INTEN_CH7LIMITL_Pos (21UL) /*!< Position of CH7LIMITL field. */
+#define SAADC_INTEN_CH7LIMITL_Msk (0x1UL << SAADC_INTEN_CH7LIMITL_Pos) /*!< Bit mask of CH7LIMITL field. */
+#define SAADC_INTEN_CH7LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH7LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for CH[7].LIMITH event */
+#define SAADC_INTEN_CH7LIMITH_Pos (20UL) /*!< Position of CH7LIMITH field. */
+#define SAADC_INTEN_CH7LIMITH_Msk (0x1UL << SAADC_INTEN_CH7LIMITH_Pos) /*!< Bit mask of CH7LIMITH field. */
+#define SAADC_INTEN_CH7LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH7LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for CH[6].LIMITL event */
+#define SAADC_INTEN_CH6LIMITL_Pos (19UL) /*!< Position of CH6LIMITL field. */
+#define SAADC_INTEN_CH6LIMITL_Msk (0x1UL << SAADC_INTEN_CH6LIMITL_Pos) /*!< Bit mask of CH6LIMITL field. */
+#define SAADC_INTEN_CH6LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH6LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 18 : Enable or disable interrupt for CH[6].LIMITH event */
+#define SAADC_INTEN_CH6LIMITH_Pos (18UL) /*!< Position of CH6LIMITH field. */
+#define SAADC_INTEN_CH6LIMITH_Msk (0x1UL << SAADC_INTEN_CH6LIMITH_Pos) /*!< Bit mask of CH6LIMITH field. */
+#define SAADC_INTEN_CH6LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH6LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 17 : Enable or disable interrupt for CH[5].LIMITL event */
+#define SAADC_INTEN_CH5LIMITL_Pos (17UL) /*!< Position of CH5LIMITL field. */
+#define SAADC_INTEN_CH5LIMITL_Msk (0x1UL << SAADC_INTEN_CH5LIMITL_Pos) /*!< Bit mask of CH5LIMITL field. */
+#define SAADC_INTEN_CH5LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH5LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 16 : Enable or disable interrupt for CH[5].LIMITH event */
+#define SAADC_INTEN_CH5LIMITH_Pos (16UL) /*!< Position of CH5LIMITH field. */
+#define SAADC_INTEN_CH5LIMITH_Msk (0x1UL << SAADC_INTEN_CH5LIMITH_Pos) /*!< Bit mask of CH5LIMITH field. */
+#define SAADC_INTEN_CH5LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH5LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 15 : Enable or disable interrupt for CH[4].LIMITL event */
+#define SAADC_INTEN_CH4LIMITL_Pos (15UL) /*!< Position of CH4LIMITL field. */
+#define SAADC_INTEN_CH4LIMITL_Msk (0x1UL << SAADC_INTEN_CH4LIMITL_Pos) /*!< Bit mask of CH4LIMITL field. */
+#define SAADC_INTEN_CH4LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH4LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 14 : Enable or disable interrupt for CH[4].LIMITH event */
+#define SAADC_INTEN_CH4LIMITH_Pos (14UL) /*!< Position of CH4LIMITH field. */
+#define SAADC_INTEN_CH4LIMITH_Msk (0x1UL << SAADC_INTEN_CH4LIMITH_Pos) /*!< Bit mask of CH4LIMITH field. */
+#define SAADC_INTEN_CH4LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH4LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 13 : Enable or disable interrupt for CH[3].LIMITL event */
+#define SAADC_INTEN_CH3LIMITL_Pos (13UL) /*!< Position of CH3LIMITL field. */
+#define SAADC_INTEN_CH3LIMITL_Msk (0x1UL << SAADC_INTEN_CH3LIMITL_Pos) /*!< Bit mask of CH3LIMITL field. */
+#define SAADC_INTEN_CH3LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH3LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 12 : Enable or disable interrupt for CH[3].LIMITH event */
+#define SAADC_INTEN_CH3LIMITH_Pos (12UL) /*!< Position of CH3LIMITH field. */
+#define SAADC_INTEN_CH3LIMITH_Msk (0x1UL << SAADC_INTEN_CH3LIMITH_Pos) /*!< Bit mask of CH3LIMITH field. */
+#define SAADC_INTEN_CH3LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH3LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 11 : Enable or disable interrupt for CH[2].LIMITL event */
+#define SAADC_INTEN_CH2LIMITL_Pos (11UL) /*!< Position of CH2LIMITL field. */
+#define SAADC_INTEN_CH2LIMITL_Msk (0x1UL << SAADC_INTEN_CH2LIMITL_Pos) /*!< Bit mask of CH2LIMITL field. */
+#define SAADC_INTEN_CH2LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH2LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 10 : Enable or disable interrupt for CH[2].LIMITH event */
+#define SAADC_INTEN_CH2LIMITH_Pos (10UL) /*!< Position of CH2LIMITH field. */
+#define SAADC_INTEN_CH2LIMITH_Msk (0x1UL << SAADC_INTEN_CH2LIMITH_Pos) /*!< Bit mask of CH2LIMITH field. */
+#define SAADC_INTEN_CH2LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH2LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for CH[1].LIMITL event */
+#define SAADC_INTEN_CH1LIMITL_Pos (9UL) /*!< Position of CH1LIMITL field. */
+#define SAADC_INTEN_CH1LIMITL_Msk (0x1UL << SAADC_INTEN_CH1LIMITL_Pos) /*!< Bit mask of CH1LIMITL field. */
+#define SAADC_INTEN_CH1LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH1LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 8 : Enable or disable interrupt for CH[1].LIMITH event */
+#define SAADC_INTEN_CH1LIMITH_Pos (8UL) /*!< Position of CH1LIMITH field. */
+#define SAADC_INTEN_CH1LIMITH_Msk (0x1UL << SAADC_INTEN_CH1LIMITH_Pos) /*!< Bit mask of CH1LIMITH field. */
+#define SAADC_INTEN_CH1LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH1LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for CH[0].LIMITL event */
+#define SAADC_INTEN_CH0LIMITL_Pos (7UL) /*!< Position of CH0LIMITL field. */
+#define SAADC_INTEN_CH0LIMITL_Msk (0x1UL << SAADC_INTEN_CH0LIMITL_Pos) /*!< Bit mask of CH0LIMITL field. */
+#define SAADC_INTEN_CH0LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH0LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for CH[0].LIMITH event */
+#define SAADC_INTEN_CH0LIMITH_Pos (6UL) /*!< Position of CH0LIMITH field. */
+#define SAADC_INTEN_CH0LIMITH_Msk (0x1UL << SAADC_INTEN_CH0LIMITH_Pos) /*!< Bit mask of CH0LIMITH field. */
+#define SAADC_INTEN_CH0LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH0LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for STOPPED event */
+#define SAADC_INTEN_STOPPED_Pos (5UL) /*!< Position of STOPPED field. */
+#define SAADC_INTEN_STOPPED_Msk (0x1UL << SAADC_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SAADC_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for CALIBRATEDONE event */
+#define SAADC_INTEN_CALIBRATEDONE_Pos (4UL) /*!< Position of CALIBRATEDONE field. */
+#define SAADC_INTEN_CALIBRATEDONE_Msk (0x1UL << SAADC_INTEN_CALIBRATEDONE_Pos) /*!< Bit mask of CALIBRATEDONE field. */
+#define SAADC_INTEN_CALIBRATEDONE_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CALIBRATEDONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for RESULTDONE event */
+#define SAADC_INTEN_RESULTDONE_Pos (3UL) /*!< Position of RESULTDONE field. */
+#define SAADC_INTEN_RESULTDONE_Msk (0x1UL << SAADC_INTEN_RESULTDONE_Pos) /*!< Bit mask of RESULTDONE field. */
+#define SAADC_INTEN_RESULTDONE_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_RESULTDONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for DONE event */
+#define SAADC_INTEN_DONE_Pos (2UL) /*!< Position of DONE field. */
+#define SAADC_INTEN_DONE_Msk (0x1UL << SAADC_INTEN_DONE_Pos) /*!< Bit mask of DONE field. */
+#define SAADC_INTEN_DONE_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_DONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for END event */
+#define SAADC_INTEN_END_Pos (1UL) /*!< Position of END field. */
+#define SAADC_INTEN_END_Msk (0x1UL << SAADC_INTEN_END_Pos) /*!< Bit mask of END field. */
+#define SAADC_INTEN_END_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_END_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for STARTED event */
+#define SAADC_INTEN_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define SAADC_INTEN_STARTED_Msk (0x1UL << SAADC_INTEN_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SAADC_INTEN_STARTED_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_STARTED_Enabled (1UL) /*!< Enable */
+
+/* Register: SAADC_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 21 : Write '1' to Enable interrupt for CH[7].LIMITL event */
+#define SAADC_INTENSET_CH7LIMITL_Pos (21UL) /*!< Position of CH7LIMITL field. */
+#define SAADC_INTENSET_CH7LIMITL_Msk (0x1UL << SAADC_INTENSET_CH7LIMITL_Pos) /*!< Bit mask of CH7LIMITL field. */
+#define SAADC_INTENSET_CH7LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH7LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH7LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to Enable interrupt for CH[7].LIMITH event */
+#define SAADC_INTENSET_CH7LIMITH_Pos (20UL) /*!< Position of CH7LIMITH field. */
+#define SAADC_INTENSET_CH7LIMITH_Msk (0x1UL << SAADC_INTENSET_CH7LIMITH_Pos) /*!< Bit mask of CH7LIMITH field. */
+#define SAADC_INTENSET_CH7LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH7LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH7LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to Enable interrupt for CH[6].LIMITL event */
+#define SAADC_INTENSET_CH6LIMITL_Pos (19UL) /*!< Position of CH6LIMITL field. */
+#define SAADC_INTENSET_CH6LIMITL_Msk (0x1UL << SAADC_INTENSET_CH6LIMITL_Pos) /*!< Bit mask of CH6LIMITL field. */
+#define SAADC_INTENSET_CH6LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH6LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH6LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to Enable interrupt for CH[6].LIMITH event */
+#define SAADC_INTENSET_CH6LIMITH_Pos (18UL) /*!< Position of CH6LIMITH field. */
+#define SAADC_INTENSET_CH6LIMITH_Msk (0x1UL << SAADC_INTENSET_CH6LIMITH_Pos) /*!< Bit mask of CH6LIMITH field. */
+#define SAADC_INTENSET_CH6LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH6LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH6LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to Enable interrupt for CH[5].LIMITL event */
+#define SAADC_INTENSET_CH5LIMITL_Pos (17UL) /*!< Position of CH5LIMITL field. */
+#define SAADC_INTENSET_CH5LIMITL_Msk (0x1UL << SAADC_INTENSET_CH5LIMITL_Pos) /*!< Bit mask of CH5LIMITL field. */
+#define SAADC_INTENSET_CH5LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH5LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH5LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to Enable interrupt for CH[5].LIMITH event */
+#define SAADC_INTENSET_CH5LIMITH_Pos (16UL) /*!< Position of CH5LIMITH field. */
+#define SAADC_INTENSET_CH5LIMITH_Msk (0x1UL << SAADC_INTENSET_CH5LIMITH_Pos) /*!< Bit mask of CH5LIMITH field. */
+#define SAADC_INTENSET_CH5LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH5LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH5LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 15 : Write '1' to Enable interrupt for CH[4].LIMITL event */
+#define SAADC_INTENSET_CH4LIMITL_Pos (15UL) /*!< Position of CH4LIMITL field. */
+#define SAADC_INTENSET_CH4LIMITL_Msk (0x1UL << SAADC_INTENSET_CH4LIMITL_Pos) /*!< Bit mask of CH4LIMITL field. */
+#define SAADC_INTENSET_CH4LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH4LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH4LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 14 : Write '1' to Enable interrupt for CH[4].LIMITH event */
+#define SAADC_INTENSET_CH4LIMITH_Pos (14UL) /*!< Position of CH4LIMITH field. */
+#define SAADC_INTENSET_CH4LIMITH_Msk (0x1UL << SAADC_INTENSET_CH4LIMITH_Pos) /*!< Bit mask of CH4LIMITH field. */
+#define SAADC_INTENSET_CH4LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH4LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH4LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 13 : Write '1' to Enable interrupt for CH[3].LIMITL event */
+#define SAADC_INTENSET_CH3LIMITL_Pos (13UL) /*!< Position of CH3LIMITL field. */
+#define SAADC_INTENSET_CH3LIMITL_Msk (0x1UL << SAADC_INTENSET_CH3LIMITL_Pos) /*!< Bit mask of CH3LIMITL field. */
+#define SAADC_INTENSET_CH3LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH3LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH3LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 12 : Write '1' to Enable interrupt for CH[3].LIMITH event */
+#define SAADC_INTENSET_CH3LIMITH_Pos (12UL) /*!< Position of CH3LIMITH field. */
+#define SAADC_INTENSET_CH3LIMITH_Msk (0x1UL << SAADC_INTENSET_CH3LIMITH_Pos) /*!< Bit mask of CH3LIMITH field. */
+#define SAADC_INTENSET_CH3LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH3LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH3LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 11 : Write '1' to Enable interrupt for CH[2].LIMITL event */
+#define SAADC_INTENSET_CH2LIMITL_Pos (11UL) /*!< Position of CH2LIMITL field. */
+#define SAADC_INTENSET_CH2LIMITL_Msk (0x1UL << SAADC_INTENSET_CH2LIMITL_Pos) /*!< Bit mask of CH2LIMITL field. */
+#define SAADC_INTENSET_CH2LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH2LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH2LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to Enable interrupt for CH[2].LIMITH event */
+#define SAADC_INTENSET_CH2LIMITH_Pos (10UL) /*!< Position of CH2LIMITH field. */
+#define SAADC_INTENSET_CH2LIMITH_Msk (0x1UL << SAADC_INTENSET_CH2LIMITH_Pos) /*!< Bit mask of CH2LIMITH field. */
+#define SAADC_INTENSET_CH2LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH2LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH2LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to Enable interrupt for CH[1].LIMITL event */
+#define SAADC_INTENSET_CH1LIMITL_Pos (9UL) /*!< Position of CH1LIMITL field. */
+#define SAADC_INTENSET_CH1LIMITL_Msk (0x1UL << SAADC_INTENSET_CH1LIMITL_Pos) /*!< Bit mask of CH1LIMITL field. */
+#define SAADC_INTENSET_CH1LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH1LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH1LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to Enable interrupt for CH[1].LIMITH event */
+#define SAADC_INTENSET_CH1LIMITH_Pos (8UL) /*!< Position of CH1LIMITH field. */
+#define SAADC_INTENSET_CH1LIMITH_Msk (0x1UL << SAADC_INTENSET_CH1LIMITH_Pos) /*!< Bit mask of CH1LIMITH field. */
+#define SAADC_INTENSET_CH1LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH1LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH1LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for CH[0].LIMITL event */
+#define SAADC_INTENSET_CH0LIMITL_Pos (7UL) /*!< Position of CH0LIMITL field. */
+#define SAADC_INTENSET_CH0LIMITL_Msk (0x1UL << SAADC_INTENSET_CH0LIMITL_Pos) /*!< Bit mask of CH0LIMITL field. */
+#define SAADC_INTENSET_CH0LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH0LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH0LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for CH[0].LIMITH event */
+#define SAADC_INTENSET_CH0LIMITH_Pos (6UL) /*!< Position of CH0LIMITH field. */
+#define SAADC_INTENSET_CH0LIMITH_Msk (0x1UL << SAADC_INTENSET_CH0LIMITH_Pos) /*!< Bit mask of CH0LIMITH field. */
+#define SAADC_INTENSET_CH0LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH0LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH0LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for STOPPED event */
+#define SAADC_INTENSET_STOPPED_Pos (5UL) /*!< Position of STOPPED field. */
+#define SAADC_INTENSET_STOPPED_Msk (0x1UL << SAADC_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SAADC_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for CALIBRATEDONE event */
+#define SAADC_INTENSET_CALIBRATEDONE_Pos (4UL) /*!< Position of CALIBRATEDONE field. */
+#define SAADC_INTENSET_CALIBRATEDONE_Msk (0x1UL << SAADC_INTENSET_CALIBRATEDONE_Pos) /*!< Bit mask of CALIBRATEDONE field. */
+#define SAADC_INTENSET_CALIBRATEDONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CALIBRATEDONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CALIBRATEDONE_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for RESULTDONE event */
+#define SAADC_INTENSET_RESULTDONE_Pos (3UL) /*!< Position of RESULTDONE field. */
+#define SAADC_INTENSET_RESULTDONE_Msk (0x1UL << SAADC_INTENSET_RESULTDONE_Pos) /*!< Bit mask of RESULTDONE field. */
+#define SAADC_INTENSET_RESULTDONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_RESULTDONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_RESULTDONE_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for DONE event */
+#define SAADC_INTENSET_DONE_Pos (2UL) /*!< Position of DONE field. */
+#define SAADC_INTENSET_DONE_Msk (0x1UL << SAADC_INTENSET_DONE_Pos) /*!< Bit mask of DONE field. */
+#define SAADC_INTENSET_DONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_DONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_DONE_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for END event */
+#define SAADC_INTENSET_END_Pos (1UL) /*!< Position of END field. */
+#define SAADC_INTENSET_END_Msk (0x1UL << SAADC_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define SAADC_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for STARTED event */
+#define SAADC_INTENSET_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define SAADC_INTENSET_STARTED_Msk (0x1UL << SAADC_INTENSET_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SAADC_INTENSET_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_STARTED_Set (1UL) /*!< Enable */
+
+/* Register: SAADC_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 21 : Write '1' to Disable interrupt for CH[7].LIMITL event */
+#define SAADC_INTENCLR_CH7LIMITL_Pos (21UL) /*!< Position of CH7LIMITL field. */
+#define SAADC_INTENCLR_CH7LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH7LIMITL_Pos) /*!< Bit mask of CH7LIMITL field. */
+#define SAADC_INTENCLR_CH7LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH7LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH7LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to Disable interrupt for CH[7].LIMITH event */
+#define SAADC_INTENCLR_CH7LIMITH_Pos (20UL) /*!< Position of CH7LIMITH field. */
+#define SAADC_INTENCLR_CH7LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH7LIMITH_Pos) /*!< Bit mask of CH7LIMITH field. */
+#define SAADC_INTENCLR_CH7LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH7LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH7LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to Disable interrupt for CH[6].LIMITL event */
+#define SAADC_INTENCLR_CH6LIMITL_Pos (19UL) /*!< Position of CH6LIMITL field. */
+#define SAADC_INTENCLR_CH6LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH6LIMITL_Pos) /*!< Bit mask of CH6LIMITL field. */
+#define SAADC_INTENCLR_CH6LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH6LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH6LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to Disable interrupt for CH[6].LIMITH event */
+#define SAADC_INTENCLR_CH6LIMITH_Pos (18UL) /*!< Position of CH6LIMITH field. */
+#define SAADC_INTENCLR_CH6LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH6LIMITH_Pos) /*!< Bit mask of CH6LIMITH field. */
+#define SAADC_INTENCLR_CH6LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH6LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH6LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to Disable interrupt for CH[5].LIMITL event */
+#define SAADC_INTENCLR_CH5LIMITL_Pos (17UL) /*!< Position of CH5LIMITL field. */
+#define SAADC_INTENCLR_CH5LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH5LIMITL_Pos) /*!< Bit mask of CH5LIMITL field. */
+#define SAADC_INTENCLR_CH5LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH5LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH5LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to Disable interrupt for CH[5].LIMITH event */
+#define SAADC_INTENCLR_CH5LIMITH_Pos (16UL) /*!< Position of CH5LIMITH field. */
+#define SAADC_INTENCLR_CH5LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH5LIMITH_Pos) /*!< Bit mask of CH5LIMITH field. */
+#define SAADC_INTENCLR_CH5LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH5LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH5LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 15 : Write '1' to Disable interrupt for CH[4].LIMITL event */
+#define SAADC_INTENCLR_CH4LIMITL_Pos (15UL) /*!< Position of CH4LIMITL field. */
+#define SAADC_INTENCLR_CH4LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH4LIMITL_Pos) /*!< Bit mask of CH4LIMITL field. */
+#define SAADC_INTENCLR_CH4LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH4LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH4LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 14 : Write '1' to Disable interrupt for CH[4].LIMITH event */
+#define SAADC_INTENCLR_CH4LIMITH_Pos (14UL) /*!< Position of CH4LIMITH field. */
+#define SAADC_INTENCLR_CH4LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH4LIMITH_Pos) /*!< Bit mask of CH4LIMITH field. */
+#define SAADC_INTENCLR_CH4LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH4LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH4LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 13 : Write '1' to Disable interrupt for CH[3].LIMITL event */
+#define SAADC_INTENCLR_CH3LIMITL_Pos (13UL) /*!< Position of CH3LIMITL field. */
+#define SAADC_INTENCLR_CH3LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH3LIMITL_Pos) /*!< Bit mask of CH3LIMITL field. */
+#define SAADC_INTENCLR_CH3LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH3LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH3LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 12 : Write '1' to Disable interrupt for CH[3].LIMITH event */
+#define SAADC_INTENCLR_CH3LIMITH_Pos (12UL) /*!< Position of CH3LIMITH field. */
+#define SAADC_INTENCLR_CH3LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH3LIMITH_Pos) /*!< Bit mask of CH3LIMITH field. */
+#define SAADC_INTENCLR_CH3LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH3LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH3LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 11 : Write '1' to Disable interrupt for CH[2].LIMITL event */
+#define SAADC_INTENCLR_CH2LIMITL_Pos (11UL) /*!< Position of CH2LIMITL field. */
+#define SAADC_INTENCLR_CH2LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH2LIMITL_Pos) /*!< Bit mask of CH2LIMITL field. */
+#define SAADC_INTENCLR_CH2LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH2LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH2LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to Disable interrupt for CH[2].LIMITH event */
+#define SAADC_INTENCLR_CH2LIMITH_Pos (10UL) /*!< Position of CH2LIMITH field. */
+#define SAADC_INTENCLR_CH2LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH2LIMITH_Pos) /*!< Bit mask of CH2LIMITH field. */
+#define SAADC_INTENCLR_CH2LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH2LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH2LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to Disable interrupt for CH[1].LIMITL event */
+#define SAADC_INTENCLR_CH1LIMITL_Pos (9UL) /*!< Position of CH1LIMITL field. */
+#define SAADC_INTENCLR_CH1LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH1LIMITL_Pos) /*!< Bit mask of CH1LIMITL field. */
+#define SAADC_INTENCLR_CH1LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH1LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH1LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to Disable interrupt for CH[1].LIMITH event */
+#define SAADC_INTENCLR_CH1LIMITH_Pos (8UL) /*!< Position of CH1LIMITH field. */
+#define SAADC_INTENCLR_CH1LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH1LIMITH_Pos) /*!< Bit mask of CH1LIMITH field. */
+#define SAADC_INTENCLR_CH1LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH1LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH1LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for CH[0].LIMITL event */
+#define SAADC_INTENCLR_CH0LIMITL_Pos (7UL) /*!< Position of CH0LIMITL field. */
+#define SAADC_INTENCLR_CH0LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH0LIMITL_Pos) /*!< Bit mask of CH0LIMITL field. */
+#define SAADC_INTENCLR_CH0LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH0LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH0LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for CH[0].LIMITH event */
+#define SAADC_INTENCLR_CH0LIMITH_Pos (6UL) /*!< Position of CH0LIMITH field. */
+#define SAADC_INTENCLR_CH0LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH0LIMITH_Pos) /*!< Bit mask of CH0LIMITH field. */
+#define SAADC_INTENCLR_CH0LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH0LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH0LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for STOPPED event */
+#define SAADC_INTENCLR_STOPPED_Pos (5UL) /*!< Position of STOPPED field. */
+#define SAADC_INTENCLR_STOPPED_Msk (0x1UL << SAADC_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SAADC_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for CALIBRATEDONE event */
+#define SAADC_INTENCLR_CALIBRATEDONE_Pos (4UL) /*!< Position of CALIBRATEDONE field. */
+#define SAADC_INTENCLR_CALIBRATEDONE_Msk (0x1UL << SAADC_INTENCLR_CALIBRATEDONE_Pos) /*!< Bit mask of CALIBRATEDONE field. */
+#define SAADC_INTENCLR_CALIBRATEDONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CALIBRATEDONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CALIBRATEDONE_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for RESULTDONE event */
+#define SAADC_INTENCLR_RESULTDONE_Pos (3UL) /*!< Position of RESULTDONE field. */
+#define SAADC_INTENCLR_RESULTDONE_Msk (0x1UL << SAADC_INTENCLR_RESULTDONE_Pos) /*!< Bit mask of RESULTDONE field. */
+#define SAADC_INTENCLR_RESULTDONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_RESULTDONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_RESULTDONE_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for DONE event */
+#define SAADC_INTENCLR_DONE_Pos (2UL) /*!< Position of DONE field. */
+#define SAADC_INTENCLR_DONE_Msk (0x1UL << SAADC_INTENCLR_DONE_Pos) /*!< Bit mask of DONE field. */
+#define SAADC_INTENCLR_DONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_DONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_DONE_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for END event */
+#define SAADC_INTENCLR_END_Pos (1UL) /*!< Position of END field. */
+#define SAADC_INTENCLR_END_Msk (0x1UL << SAADC_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define SAADC_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for STARTED event */
+#define SAADC_INTENCLR_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define SAADC_INTENCLR_STARTED_Msk (0x1UL << SAADC_INTENCLR_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SAADC_INTENCLR_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_STARTED_Clear (1UL) /*!< Disable */
+
+/* Register: SAADC_STATUS */
+/* Description: Status */
+
+/* Bit 0 : Status */
+#define SAADC_STATUS_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define SAADC_STATUS_STATUS_Msk (0x1UL << SAADC_STATUS_STATUS_Pos) /*!< Bit mask of STATUS field. */
+#define SAADC_STATUS_STATUS_Ready (0UL) /*!< ADC is ready. No on-going conversion. */
+#define SAADC_STATUS_STATUS_Busy (1UL) /*!< ADC is busy. Conversion in progress. */
+
+/* Register: SAADC_ENABLE */
+/* Description: Enable or disable ADC */
+
+/* Bit 0 : Enable or disable ADC */
+#define SAADC_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SAADC_ENABLE_ENABLE_Msk (0x1UL << SAADC_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SAADC_ENABLE_ENABLE_Disabled (0UL) /*!< Disable ADC */
+#define SAADC_ENABLE_ENABLE_Enabled (1UL) /*!< Enable ADC */
+
+/* Register: SAADC_CH_PSELP */
+/* Description: Description cluster[0]: Input positive pin selection for CH[0] */
+
+/* Bits 4..0 : Analog positive input channel */
+#define SAADC_CH_PSELP_PSELP_Pos (0UL) /*!< Position of PSELP field. */
+#define SAADC_CH_PSELP_PSELP_Msk (0x1FUL << SAADC_CH_PSELP_PSELP_Pos) /*!< Bit mask of PSELP field. */
+#define SAADC_CH_PSELP_PSELP_NC (0UL) /*!< Not connected */
+#define SAADC_CH_PSELP_PSELP_AnalogInput0 (1UL) /*!< AIN0 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput1 (2UL) /*!< AIN1 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput2 (3UL) /*!< AIN2 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput3 (4UL) /*!< AIN3 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput4 (5UL) /*!< AIN4 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput5 (6UL) /*!< AIN5 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput6 (7UL) /*!< AIN6 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput7 (8UL) /*!< AIN7 */
+#define SAADC_CH_PSELP_PSELP_VDD (9UL) /*!< VDD */
+
+/* Register: SAADC_CH_PSELN */
+/* Description: Description cluster[0]: Input negative pin selection for CH[0] */
+
+/* Bits 4..0 : Analog negative input, enables differential channel */
+#define SAADC_CH_PSELN_PSELN_Pos (0UL) /*!< Position of PSELN field. */
+#define SAADC_CH_PSELN_PSELN_Msk (0x1FUL << SAADC_CH_PSELN_PSELN_Pos) /*!< Bit mask of PSELN field. */
+#define SAADC_CH_PSELN_PSELN_NC (0UL) /*!< Not connected */
+#define SAADC_CH_PSELN_PSELN_AnalogInput0 (1UL) /*!< AIN0 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput1 (2UL) /*!< AIN1 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput2 (3UL) /*!< AIN2 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput3 (4UL) /*!< AIN3 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput4 (5UL) /*!< AIN4 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput5 (6UL) /*!< AIN5 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput6 (7UL) /*!< AIN6 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput7 (8UL) /*!< AIN7 */
+#define SAADC_CH_PSELN_PSELN_VDD (9UL) /*!< VDD */
+
+/* Register: SAADC_CH_CONFIG */
+/* Description: Description cluster[0]: Input configuration for CH[0] */
+
+/* Bit 24 : Enable burst mode */
+#define SAADC_CH_CONFIG_BURST_Pos (24UL) /*!< Position of BURST field. */
+#define SAADC_CH_CONFIG_BURST_Msk (0x1UL << SAADC_CH_CONFIG_BURST_Pos) /*!< Bit mask of BURST field. */
+#define SAADC_CH_CONFIG_BURST_Disabled (0UL) /*!< Burst mode is disabled (normal operation) */
+#define SAADC_CH_CONFIG_BURST_Enabled (1UL) /*!< Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM. */
+
+/* Bit 20 : Enable differential mode */
+#define SAADC_CH_CONFIG_MODE_Pos (20UL) /*!< Position of MODE field. */
+#define SAADC_CH_CONFIG_MODE_Msk (0x1UL << SAADC_CH_CONFIG_MODE_Pos) /*!< Bit mask of MODE field. */
+#define SAADC_CH_CONFIG_MODE_SE (0UL) /*!< Single ended, PSELN will be ignored, negative input to ADC shorted to GND */
+#define SAADC_CH_CONFIG_MODE_Diff (1UL) /*!< Differential */
+
+/* Bits 18..16 : Acquisition time, the time the ADC uses to sample the input voltage */
+#define SAADC_CH_CONFIG_TACQ_Pos (16UL) /*!< Position of TACQ field. */
+#define SAADC_CH_CONFIG_TACQ_Msk (0x7UL << SAADC_CH_CONFIG_TACQ_Pos) /*!< Bit mask of TACQ field. */
+#define SAADC_CH_CONFIG_TACQ_3us (0UL) /*!< 3 us */
+#define SAADC_CH_CONFIG_TACQ_5us (1UL) /*!< 5 us */
+#define SAADC_CH_CONFIG_TACQ_10us (2UL) /*!< 10 us */
+#define SAADC_CH_CONFIG_TACQ_15us (3UL) /*!< 15 us */
+#define SAADC_CH_CONFIG_TACQ_20us (4UL) /*!< 20 us */
+#define SAADC_CH_CONFIG_TACQ_40us (5UL) /*!< 40 us */
+
+/* Bit 12 : Reference control */
+#define SAADC_CH_CONFIG_REFSEL_Pos (12UL) /*!< Position of REFSEL field. */
+#define SAADC_CH_CONFIG_REFSEL_Msk (0x1UL << SAADC_CH_CONFIG_REFSEL_Pos) /*!< Bit mask of REFSEL field. */
+#define SAADC_CH_CONFIG_REFSEL_Internal (0UL) /*!< Internal reference (0.6 V) */
+#define SAADC_CH_CONFIG_REFSEL_VDD1_4 (1UL) /*!< VDD/4 as reference */
+
+/* Bits 10..8 : Gain control */
+#define SAADC_CH_CONFIG_GAIN_Pos (8UL) /*!< Position of GAIN field. */
+#define SAADC_CH_CONFIG_GAIN_Msk (0x7UL << SAADC_CH_CONFIG_GAIN_Pos) /*!< Bit mask of GAIN field. */
+#define SAADC_CH_CONFIG_GAIN_Gain1_6 (0UL) /*!< 1/6 */
+#define SAADC_CH_CONFIG_GAIN_Gain1_5 (1UL) /*!< 1/5 */
+#define SAADC_CH_CONFIG_GAIN_Gain1_4 (2UL) /*!< 1/4 */
+#define SAADC_CH_CONFIG_GAIN_Gain1_3 (3UL) /*!< 1/3 */
+#define SAADC_CH_CONFIG_GAIN_Gain1_2 (4UL) /*!< 1/2 */
+#define SAADC_CH_CONFIG_GAIN_Gain1 (5UL) /*!< 1 */
+#define SAADC_CH_CONFIG_GAIN_Gain2 (6UL) /*!< 2 */
+#define SAADC_CH_CONFIG_GAIN_Gain4 (7UL) /*!< 4 */
+
+/* Bits 5..4 : Negative channel resistor control */
+#define SAADC_CH_CONFIG_RESN_Pos (4UL) /*!< Position of RESN field. */
+#define SAADC_CH_CONFIG_RESN_Msk (0x3UL << SAADC_CH_CONFIG_RESN_Pos) /*!< Bit mask of RESN field. */
+#define SAADC_CH_CONFIG_RESN_Bypass (0UL) /*!< Bypass resistor ladder */
+#define SAADC_CH_CONFIG_RESN_Pulldown (1UL) /*!< Pull-down to GND */
+#define SAADC_CH_CONFIG_RESN_Pullup (2UL) /*!< Pull-up to VDD */
+#define SAADC_CH_CONFIG_RESN_VDD1_2 (3UL) /*!< Set input at VDD/2 */
+
+/* Bits 1..0 : Positive channel resistor control */
+#define SAADC_CH_CONFIG_RESP_Pos (0UL) /*!< Position of RESP field. */
+#define SAADC_CH_CONFIG_RESP_Msk (0x3UL << SAADC_CH_CONFIG_RESP_Pos) /*!< Bit mask of RESP field. */
+#define SAADC_CH_CONFIG_RESP_Bypass (0UL) /*!< Bypass resistor ladder */
+#define SAADC_CH_CONFIG_RESP_Pulldown (1UL) /*!< Pull-down to GND */
+#define SAADC_CH_CONFIG_RESP_Pullup (2UL) /*!< Pull-up to VDD */
+#define SAADC_CH_CONFIG_RESP_VDD1_2 (3UL) /*!< Set input at VDD/2 */
+
+/* Register: SAADC_CH_LIMIT */
+/* Description: Description cluster[0]: High/low limits for event monitoring a channel */
+
+/* Bits 31..16 : High level limit */
+#define SAADC_CH_LIMIT_HIGH_Pos (16UL) /*!< Position of HIGH field. */
+#define SAADC_CH_LIMIT_HIGH_Msk (0xFFFFUL << SAADC_CH_LIMIT_HIGH_Pos) /*!< Bit mask of HIGH field. */
+
+/* Bits 15..0 : Low level limit */
+#define SAADC_CH_LIMIT_LOW_Pos (0UL) /*!< Position of LOW field. */
+#define SAADC_CH_LIMIT_LOW_Msk (0xFFFFUL << SAADC_CH_LIMIT_LOW_Pos) /*!< Bit mask of LOW field. */
+
+/* Register: SAADC_RESOLUTION */
+/* Description: Resolution configuration */
+
+/* Bits 2..0 : Set the resolution */
+#define SAADC_RESOLUTION_VAL_Pos (0UL) /*!< Position of VAL field. */
+#define SAADC_RESOLUTION_VAL_Msk (0x7UL << SAADC_RESOLUTION_VAL_Pos) /*!< Bit mask of VAL field. */
+#define SAADC_RESOLUTION_VAL_8bit (0UL) /*!< 8 bit */
+#define SAADC_RESOLUTION_VAL_10bit (1UL) /*!< 10 bit */
+#define SAADC_RESOLUTION_VAL_12bit (2UL) /*!< 12 bit */
+#define SAADC_RESOLUTION_VAL_14bit (3UL) /*!< 14 bit */
+
+/* Register: SAADC_OVERSAMPLE */
+/* Description: Oversampling configuration. OVERSAMPLE should not be combined with SCAN. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used. */
+
+/* Bits 3..0 : Oversample control */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Pos (0UL) /*!< Position of OVERSAMPLE field. */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Msk (0xFUL << SAADC_OVERSAMPLE_OVERSAMPLE_Pos) /*!< Bit mask of OVERSAMPLE field. */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Bypass (0UL) /*!< Bypass oversampling */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over2x (1UL) /*!< Oversample 2x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over4x (2UL) /*!< Oversample 4x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over8x (3UL) /*!< Oversample 8x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over16x (4UL) /*!< Oversample 16x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over32x (5UL) /*!< Oversample 32x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over64x (6UL) /*!< Oversample 64x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over128x (7UL) /*!< Oversample 128x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over256x (8UL) /*!< Oversample 256x */
+
+/* Register: SAADC_SAMPLERATE */
+/* Description: Controls normal or continuous sample rate */
+
+/* Bit 12 : Select mode for sample rate control */
+#define SAADC_SAMPLERATE_MODE_Pos (12UL) /*!< Position of MODE field. */
+#define SAADC_SAMPLERATE_MODE_Msk (0x1UL << SAADC_SAMPLERATE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define SAADC_SAMPLERATE_MODE_Task (0UL) /*!< Rate is controlled from SAMPLE task */
+#define SAADC_SAMPLERATE_MODE_Timers (1UL) /*!< Rate is controlled from local timer (use CC to control the rate) */
+
+/* Bits 10..0 : Capture and compare value. Sample rate is 16 MHz/CC */
+#define SAADC_SAMPLERATE_CC_Pos (0UL) /*!< Position of CC field. */
+#define SAADC_SAMPLERATE_CC_Msk (0x7FFUL << SAADC_SAMPLERATE_CC_Pos) /*!< Bit mask of CC field. */
+
+/* Register: SAADC_RESULT_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define SAADC_RESULT_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SAADC_RESULT_PTR_PTR_Msk (0xFFFFFFFFUL << SAADC_RESULT_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SAADC_RESULT_MAXCNT */
+/* Description: Maximum number of buffer words to transfer */
+
+/* Bits 14..0 : Maximum number of buffer words to transfer */
+#define SAADC_RESULT_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SAADC_RESULT_MAXCNT_MAXCNT_Msk (0x7FFFUL << SAADC_RESULT_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SAADC_RESULT_AMOUNT */
+/* Description: Number of buffer words transferred since last START */
+
+/* Bits 14..0 : Number of buffer words transferred since last START. This register can be read after an END or STOPPED event. */
+#define SAADC_RESULT_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SAADC_RESULT_AMOUNT_AMOUNT_Msk (0x7FFFUL << SAADC_RESULT_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+
+/* Peripheral: SPIM */
+/* Description: Serial Peripheral Interface Master with EasyDMA */
+
+/* Register: SPIM_TASKS_START */
+/* Description: Start SPI transaction */
+
+/* Bit 0 : */
+#define SPIM_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define SPIM_TASKS_START_TASKS_START_Msk (0x1UL << SPIM_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: SPIM_TASKS_STOP */
+/* Description: Stop SPI transaction */
+
+/* Bit 0 : */
+#define SPIM_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define SPIM_TASKS_STOP_TASKS_STOP_Msk (0x1UL << SPIM_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: SPIM_TASKS_SUSPEND */
+/* Description: Suspend SPI transaction */
+
+/* Bit 0 : */
+#define SPIM_TASKS_SUSPEND_TASKS_SUSPEND_Pos (0UL) /*!< Position of TASKS_SUSPEND field. */
+#define SPIM_TASKS_SUSPEND_TASKS_SUSPEND_Msk (0x1UL << SPIM_TASKS_SUSPEND_TASKS_SUSPEND_Pos) /*!< Bit mask of TASKS_SUSPEND field. */
+
+/* Register: SPIM_TASKS_RESUME */
+/* Description: Resume SPI transaction */
+
+/* Bit 0 : */
+#define SPIM_TASKS_RESUME_TASKS_RESUME_Pos (0UL) /*!< Position of TASKS_RESUME field. */
+#define SPIM_TASKS_RESUME_TASKS_RESUME_Msk (0x1UL << SPIM_TASKS_RESUME_TASKS_RESUME_Pos) /*!< Bit mask of TASKS_RESUME field. */
+
+/* Register: SPIM_EVENTS_STOPPED */
+/* Description: SPI transaction has stopped */
+
+/* Bit 0 : */
+#define SPIM_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define SPIM_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << SPIM_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: SPIM_EVENTS_ENDRX */
+/* Description: End of RXD buffer reached */
+
+/* Bit 0 : */
+#define SPIM_EVENTS_ENDRX_EVENTS_ENDRX_Pos (0UL) /*!< Position of EVENTS_ENDRX field. */
+#define SPIM_EVENTS_ENDRX_EVENTS_ENDRX_Msk (0x1UL << SPIM_EVENTS_ENDRX_EVENTS_ENDRX_Pos) /*!< Bit mask of EVENTS_ENDRX field. */
+
+/* Register: SPIM_EVENTS_END */
+/* Description: End of RXD buffer and TXD buffer reached */
+
+/* Bit 0 : */
+#define SPIM_EVENTS_END_EVENTS_END_Pos (0UL) /*!< Position of EVENTS_END field. */
+#define SPIM_EVENTS_END_EVENTS_END_Msk (0x1UL << SPIM_EVENTS_END_EVENTS_END_Pos) /*!< Bit mask of EVENTS_END field. */
+
+/* Register: SPIM_EVENTS_ENDTX */
+/* Description: End of TXD buffer reached */
+
+/* Bit 0 : */
+#define SPIM_EVENTS_ENDTX_EVENTS_ENDTX_Pos (0UL) /*!< Position of EVENTS_ENDTX field. */
+#define SPIM_EVENTS_ENDTX_EVENTS_ENDTX_Msk (0x1UL << SPIM_EVENTS_ENDTX_EVENTS_ENDTX_Pos) /*!< Bit mask of EVENTS_ENDTX field. */
+
+/* Register: SPIM_EVENTS_STARTED */
+/* Description: Transaction started */
+
+/* Bit 0 : */
+#define SPIM_EVENTS_STARTED_EVENTS_STARTED_Pos (0UL) /*!< Position of EVENTS_STARTED field. */
+#define SPIM_EVENTS_STARTED_EVENTS_STARTED_Msk (0x1UL << SPIM_EVENTS_STARTED_EVENTS_STARTED_Pos) /*!< Bit mask of EVENTS_STARTED field. */
+
+/* Register: SPIM_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 17 : Shortcut between END event and START task */
+#define SPIM_SHORTS_END_START_Pos (17UL) /*!< Position of END_START field. */
+#define SPIM_SHORTS_END_START_Msk (0x1UL << SPIM_SHORTS_END_START_Pos) /*!< Bit mask of END_START field. */
+#define SPIM_SHORTS_END_START_Disabled (0UL) /*!< Disable shortcut */
+#define SPIM_SHORTS_END_START_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: SPIM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 19 : Write '1' to Enable interrupt for STARTED event */
+#define SPIM_INTENSET_STARTED_Pos (19UL) /*!< Position of STARTED field. */
+#define SPIM_INTENSET_STARTED_Msk (0x1UL << SPIM_INTENSET_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SPIM_INTENSET_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_STARTED_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to Enable interrupt for ENDTX event */
+#define SPIM_INTENSET_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define SPIM_INTENSET_ENDTX_Msk (0x1UL << SPIM_INTENSET_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define SPIM_INTENSET_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_ENDTX_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for END event */
+#define SPIM_INTENSET_END_Pos (6UL) /*!< Position of END field. */
+#define SPIM_INTENSET_END_Msk (0x1UL << SPIM_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define SPIM_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for ENDRX event */
+#define SPIM_INTENSET_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIM_INTENSET_ENDRX_Msk (0x1UL << SPIM_INTENSET_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIM_INTENSET_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_ENDRX_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for STOPPED event */
+#define SPIM_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define SPIM_INTENSET_STOPPED_Msk (0x1UL << SPIM_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SPIM_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: SPIM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 19 : Write '1' to Disable interrupt for STARTED event */
+#define SPIM_INTENCLR_STARTED_Pos (19UL) /*!< Position of STARTED field. */
+#define SPIM_INTENCLR_STARTED_Msk (0x1UL << SPIM_INTENCLR_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SPIM_INTENCLR_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_STARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to Disable interrupt for ENDTX event */
+#define SPIM_INTENCLR_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define SPIM_INTENCLR_ENDTX_Msk (0x1UL << SPIM_INTENCLR_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define SPIM_INTENCLR_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_ENDTX_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for END event */
+#define SPIM_INTENCLR_END_Pos (6UL) /*!< Position of END field. */
+#define SPIM_INTENCLR_END_Msk (0x1UL << SPIM_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define SPIM_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for ENDRX event */
+#define SPIM_INTENCLR_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIM_INTENCLR_ENDRX_Msk (0x1UL << SPIM_INTENCLR_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIM_INTENCLR_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_ENDRX_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for STOPPED event */
+#define SPIM_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define SPIM_INTENCLR_STOPPED_Msk (0x1UL << SPIM_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SPIM_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: SPIM_ENABLE */
+/* Description: Enable SPIM */
+
+/* Bits 3..0 : Enable or disable SPIM */
+#define SPIM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SPIM_ENABLE_ENABLE_Msk (0xFUL << SPIM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SPIM_ENABLE_ENABLE_Disabled (0UL) /*!< Disable SPIM */
+#define SPIM_ENABLE_ENABLE_Enabled (7UL) /*!< Enable SPIM */
+
+/* Register: SPIM_PSEL_SCK */
+/* Description: Pin select for SCK */
+
+/* Bit 31 : Connection */
+#define SPIM_PSEL_SCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIM_PSEL_SCK_CONNECT_Msk (0x1UL << SPIM_PSEL_SCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIM_PSEL_SCK_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIM_PSEL_SCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIM_PSEL_SCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIM_PSEL_SCK_PIN_Msk (0x1FUL << SPIM_PSEL_SCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIM_PSEL_MOSI */
+/* Description: Pin select for MOSI signal */
+
+/* Bit 31 : Connection */
+#define SPIM_PSEL_MOSI_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIM_PSEL_MOSI_CONNECT_Msk (0x1UL << SPIM_PSEL_MOSI_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIM_PSEL_MOSI_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIM_PSEL_MOSI_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIM_PSEL_MOSI_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIM_PSEL_MOSI_PIN_Msk (0x1FUL << SPIM_PSEL_MOSI_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIM_PSEL_MISO */
+/* Description: Pin select for MISO signal */
+
+/* Bit 31 : Connection */
+#define SPIM_PSEL_MISO_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIM_PSEL_MISO_CONNECT_Msk (0x1UL << SPIM_PSEL_MISO_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIM_PSEL_MISO_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIM_PSEL_MISO_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIM_PSEL_MISO_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIM_PSEL_MISO_PIN_Msk (0x1FUL << SPIM_PSEL_MISO_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIM_FREQUENCY */
+/* Description: SPI frequency. Accuracy depends on the HFCLK source selected. */
+
+/* Bits 31..0 : SPI master data rate */
+#define SPIM_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define SPIM_FREQUENCY_FREQUENCY_Msk (0xFFFFFFFFUL << SPIM_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+#define SPIM_FREQUENCY_FREQUENCY_K125 (0x02000000UL) /*!< 125 kbps */
+#define SPIM_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250 kbps */
+#define SPIM_FREQUENCY_FREQUENCY_K500 (0x08000000UL) /*!< 500 kbps */
+#define SPIM_FREQUENCY_FREQUENCY_M1 (0x10000000UL) /*!< 1 Mbps */
+#define SPIM_FREQUENCY_FREQUENCY_M2 (0x20000000UL) /*!< 2 Mbps */
+#define SPIM_FREQUENCY_FREQUENCY_M4 (0x40000000UL) /*!< 4 Mbps */
+#define SPIM_FREQUENCY_FREQUENCY_M8 (0x80000000UL) /*!< 8 Mbps */
+
+/* Register: SPIM_RXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define SPIM_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SPIM_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << SPIM_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SPIM_RXD_MAXCNT */
+/* Description: Maximum number of bytes in receive buffer */
+
+/* Bits 9..0 : Maximum number of bytes in receive buffer */
+#define SPIM_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SPIM_RXD_MAXCNT_MAXCNT_Msk (0x3FFUL << SPIM_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SPIM_RXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 9..0 : Number of bytes transferred in the last transaction */
+#define SPIM_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SPIM_RXD_AMOUNT_AMOUNT_Msk (0x3FFUL << SPIM_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: SPIM_RXD_LIST */
+/* Description: EasyDMA list type */
+
+/* Bits 2..0 : List type */
+#define SPIM_RXD_LIST_LIST_Pos (0UL) /*!< Position of LIST field. */
+#define SPIM_RXD_LIST_LIST_Msk (0x7UL << SPIM_RXD_LIST_LIST_Pos) /*!< Bit mask of LIST field. */
+#define SPIM_RXD_LIST_LIST_Disabled (0UL) /*!< Disable EasyDMA list */
+#define SPIM_RXD_LIST_LIST_ArrayList (1UL) /*!< Use array list */
+
+/* Register: SPIM_TXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define SPIM_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SPIM_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << SPIM_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SPIM_TXD_MAXCNT */
+/* Description: Maximum number of bytes in transmit buffer */
+
+/* Bits 9..0 : Maximum number of bytes in transmit buffer */
+#define SPIM_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SPIM_TXD_MAXCNT_MAXCNT_Msk (0x3FFUL << SPIM_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SPIM_TXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 9..0 : Number of bytes transferred in the last transaction */
+#define SPIM_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SPIM_TXD_AMOUNT_AMOUNT_Msk (0x3FFUL << SPIM_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: SPIM_TXD_LIST */
+/* Description: EasyDMA list type */
+
+/* Bits 2..0 : List type */
+#define SPIM_TXD_LIST_LIST_Pos (0UL) /*!< Position of LIST field. */
+#define SPIM_TXD_LIST_LIST_Msk (0x7UL << SPIM_TXD_LIST_LIST_Pos) /*!< Bit mask of LIST field. */
+#define SPIM_TXD_LIST_LIST_Disabled (0UL) /*!< Disable EasyDMA list */
+#define SPIM_TXD_LIST_LIST_ArrayList (1UL) /*!< Use array list */
+
+/* Register: SPIM_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 2 : Serial clock (SCK) polarity */
+#define SPIM_CONFIG_CPOL_Pos (2UL) /*!< Position of CPOL field. */
+#define SPIM_CONFIG_CPOL_Msk (0x1UL << SPIM_CONFIG_CPOL_Pos) /*!< Bit mask of CPOL field. */
+#define SPIM_CONFIG_CPOL_ActiveHigh (0UL) /*!< Active high */
+#define SPIM_CONFIG_CPOL_ActiveLow (1UL) /*!< Active low */
+
+/* Bit 1 : Serial clock (SCK) phase */
+#define SPIM_CONFIG_CPHA_Pos (1UL) /*!< Position of CPHA field. */
+#define SPIM_CONFIG_CPHA_Msk (0x1UL << SPIM_CONFIG_CPHA_Pos) /*!< Bit mask of CPHA field. */
+#define SPIM_CONFIG_CPHA_Leading (0UL) /*!< Sample on leading edge of clock, shift serial data on trailing edge */
+#define SPIM_CONFIG_CPHA_Trailing (1UL) /*!< Sample on trailing edge of clock, shift serial data on leading edge */
+
+/* Bit 0 : Bit order */
+#define SPIM_CONFIG_ORDER_Pos (0UL) /*!< Position of ORDER field. */
+#define SPIM_CONFIG_ORDER_Msk (0x1UL << SPIM_CONFIG_ORDER_Pos) /*!< Bit mask of ORDER field. */
+#define SPIM_CONFIG_ORDER_MsbFirst (0UL) /*!< Most significant bit shifted out first */
+#define SPIM_CONFIG_ORDER_LsbFirst (1UL) /*!< Least significant bit shifted out first */
+
+/* Register: SPIM_ORC */
+/* Description: Over-read character. Character clocked out in case and over-read of the TXD buffer. */
+
+/* Bits 7..0 : Over-read character. Character clocked out in case and over-read of the TXD buffer. */
+#define SPIM_ORC_ORC_Pos (0UL) /*!< Position of ORC field. */
+#define SPIM_ORC_ORC_Msk (0xFFUL << SPIM_ORC_ORC_Pos) /*!< Bit mask of ORC field. */
+
+
+/* Peripheral: SPIS */
+/* Description: SPI Slave */
+
+/* Register: SPIS_TASKS_ACQUIRE */
+/* Description: Acquire SPI semaphore */
+
+/* Bit 0 : */
+#define SPIS_TASKS_ACQUIRE_TASKS_ACQUIRE_Pos (0UL) /*!< Position of TASKS_ACQUIRE field. */
+#define SPIS_TASKS_ACQUIRE_TASKS_ACQUIRE_Msk (0x1UL << SPIS_TASKS_ACQUIRE_TASKS_ACQUIRE_Pos) /*!< Bit mask of TASKS_ACQUIRE field. */
+
+/* Register: SPIS_TASKS_RELEASE */
+/* Description: Release SPI semaphore, enabling the SPI slave to acquire it */
+
+/* Bit 0 : */
+#define SPIS_TASKS_RELEASE_TASKS_RELEASE_Pos (0UL) /*!< Position of TASKS_RELEASE field. */
+#define SPIS_TASKS_RELEASE_TASKS_RELEASE_Msk (0x1UL << SPIS_TASKS_RELEASE_TASKS_RELEASE_Pos) /*!< Bit mask of TASKS_RELEASE field. */
+
+/* Register: SPIS_EVENTS_END */
+/* Description: Granted transaction completed */
+
+/* Bit 0 : */
+#define SPIS_EVENTS_END_EVENTS_END_Pos (0UL) /*!< Position of EVENTS_END field. */
+#define SPIS_EVENTS_END_EVENTS_END_Msk (0x1UL << SPIS_EVENTS_END_EVENTS_END_Pos) /*!< Bit mask of EVENTS_END field. */
+
+/* Register: SPIS_EVENTS_ENDRX */
+/* Description: End of RXD buffer reached */
+
+/* Bit 0 : */
+#define SPIS_EVENTS_ENDRX_EVENTS_ENDRX_Pos (0UL) /*!< Position of EVENTS_ENDRX field. */
+#define SPIS_EVENTS_ENDRX_EVENTS_ENDRX_Msk (0x1UL << SPIS_EVENTS_ENDRX_EVENTS_ENDRX_Pos) /*!< Bit mask of EVENTS_ENDRX field. */
+
+/* Register: SPIS_EVENTS_ACQUIRED */
+/* Description: Semaphore acquired */
+
+/* Bit 0 : */
+#define SPIS_EVENTS_ACQUIRED_EVENTS_ACQUIRED_Pos (0UL) /*!< Position of EVENTS_ACQUIRED field. */
+#define SPIS_EVENTS_ACQUIRED_EVENTS_ACQUIRED_Msk (0x1UL << SPIS_EVENTS_ACQUIRED_EVENTS_ACQUIRED_Pos) /*!< Bit mask of EVENTS_ACQUIRED field. */
+
+/* Register: SPIS_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 2 : Shortcut between END event and ACQUIRE task */
+#define SPIS_SHORTS_END_ACQUIRE_Pos (2UL) /*!< Position of END_ACQUIRE field. */
+#define SPIS_SHORTS_END_ACQUIRE_Msk (0x1UL << SPIS_SHORTS_END_ACQUIRE_Pos) /*!< Bit mask of END_ACQUIRE field. */
+#define SPIS_SHORTS_END_ACQUIRE_Disabled (0UL) /*!< Disable shortcut */
+#define SPIS_SHORTS_END_ACQUIRE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: SPIS_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 10 : Write '1' to Enable interrupt for ACQUIRED event */
+#define SPIS_INTENSET_ACQUIRED_Pos (10UL) /*!< Position of ACQUIRED field. */
+#define SPIS_INTENSET_ACQUIRED_Msk (0x1UL << SPIS_INTENSET_ACQUIRED_Pos) /*!< Bit mask of ACQUIRED field. */
+#define SPIS_INTENSET_ACQUIRED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENSET_ACQUIRED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENSET_ACQUIRED_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for ENDRX event */
+#define SPIS_INTENSET_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIS_INTENSET_ENDRX_Msk (0x1UL << SPIS_INTENSET_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIS_INTENSET_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENSET_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENSET_ENDRX_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for END event */
+#define SPIS_INTENSET_END_Pos (1UL) /*!< Position of END field. */
+#define SPIS_INTENSET_END_Msk (0x1UL << SPIS_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define SPIS_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Register: SPIS_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 10 : Write '1' to Disable interrupt for ACQUIRED event */
+#define SPIS_INTENCLR_ACQUIRED_Pos (10UL) /*!< Position of ACQUIRED field. */
+#define SPIS_INTENCLR_ACQUIRED_Msk (0x1UL << SPIS_INTENCLR_ACQUIRED_Pos) /*!< Bit mask of ACQUIRED field. */
+#define SPIS_INTENCLR_ACQUIRED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENCLR_ACQUIRED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENCLR_ACQUIRED_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for ENDRX event */
+#define SPIS_INTENCLR_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIS_INTENCLR_ENDRX_Msk (0x1UL << SPIS_INTENCLR_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIS_INTENCLR_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENCLR_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENCLR_ENDRX_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for END event */
+#define SPIS_INTENCLR_END_Pos (1UL) /*!< Position of END field. */
+#define SPIS_INTENCLR_END_Msk (0x1UL << SPIS_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define SPIS_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Register: SPIS_SEMSTAT */
+/* Description: Semaphore status register */
+
+/* Bits 1..0 : Semaphore status */
+#define SPIS_SEMSTAT_SEMSTAT_Pos (0UL) /*!< Position of SEMSTAT field. */
+#define SPIS_SEMSTAT_SEMSTAT_Msk (0x3UL << SPIS_SEMSTAT_SEMSTAT_Pos) /*!< Bit mask of SEMSTAT field. */
+#define SPIS_SEMSTAT_SEMSTAT_Free (0UL) /*!< Semaphore is free */
+#define SPIS_SEMSTAT_SEMSTAT_CPU (1UL) /*!< Semaphore is assigned to CPU */
+#define SPIS_SEMSTAT_SEMSTAT_SPIS (2UL) /*!< Semaphore is assigned to SPI slave */
+#define SPIS_SEMSTAT_SEMSTAT_CPUPending (3UL) /*!< Semaphore is assigned to SPI but a handover to the CPU is pending */
+
+/* Register: SPIS_STATUS */
+/* Description: Status from last transaction */
+
+/* Bit 1 : RX buffer overflow detected, and prevented */
+#define SPIS_STATUS_OVERFLOW_Pos (1UL) /*!< Position of OVERFLOW field. */
+#define SPIS_STATUS_OVERFLOW_Msk (0x1UL << SPIS_STATUS_OVERFLOW_Pos) /*!< Bit mask of OVERFLOW field. */
+#define SPIS_STATUS_OVERFLOW_NotPresent (0UL) /*!< Read: error not present */
+#define SPIS_STATUS_OVERFLOW_Present (1UL) /*!< Read: error present */
+#define SPIS_STATUS_OVERFLOW_Clear (1UL) /*!< Write: clear error on writing '1' */
+
+/* Bit 0 : TX buffer over-read detected, and prevented */
+#define SPIS_STATUS_OVERREAD_Pos (0UL) /*!< Position of OVERREAD field. */
+#define SPIS_STATUS_OVERREAD_Msk (0x1UL << SPIS_STATUS_OVERREAD_Pos) /*!< Bit mask of OVERREAD field. */
+#define SPIS_STATUS_OVERREAD_NotPresent (0UL) /*!< Read: error not present */
+#define SPIS_STATUS_OVERREAD_Present (1UL) /*!< Read: error present */
+#define SPIS_STATUS_OVERREAD_Clear (1UL) /*!< Write: clear error on writing '1' */
+
+/* Register: SPIS_ENABLE */
+/* Description: Enable SPI slave */
+
+/* Bits 3..0 : Enable or disable SPI slave */
+#define SPIS_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SPIS_ENABLE_ENABLE_Msk (0xFUL << SPIS_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SPIS_ENABLE_ENABLE_Disabled (0UL) /*!< Disable SPI slave */
+#define SPIS_ENABLE_ENABLE_Enabled (2UL) /*!< Enable SPI slave */
+
+/* Register: SPIS_PSEL_SCK */
+/* Description: Pin select for SCK */
+
+/* Bit 31 : Connection */
+#define SPIS_PSEL_SCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIS_PSEL_SCK_CONNECT_Msk (0x1UL << SPIS_PSEL_SCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIS_PSEL_SCK_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIS_PSEL_SCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIS_PSEL_SCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIS_PSEL_SCK_PIN_Msk (0x1FUL << SPIS_PSEL_SCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIS_PSEL_MISO */
+/* Description: Pin select for MISO signal */
+
+/* Bit 31 : Connection */
+#define SPIS_PSEL_MISO_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIS_PSEL_MISO_CONNECT_Msk (0x1UL << SPIS_PSEL_MISO_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIS_PSEL_MISO_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIS_PSEL_MISO_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIS_PSEL_MISO_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIS_PSEL_MISO_PIN_Msk (0x1FUL << SPIS_PSEL_MISO_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIS_PSEL_MOSI */
+/* Description: Pin select for MOSI signal */
+
+/* Bit 31 : Connection */
+#define SPIS_PSEL_MOSI_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIS_PSEL_MOSI_CONNECT_Msk (0x1UL << SPIS_PSEL_MOSI_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIS_PSEL_MOSI_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIS_PSEL_MOSI_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIS_PSEL_MOSI_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIS_PSEL_MOSI_PIN_Msk (0x1FUL << SPIS_PSEL_MOSI_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIS_PSEL_CSN */
+/* Description: Pin select for CSN signal */
+
+/* Bit 31 : Connection */
+#define SPIS_PSEL_CSN_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIS_PSEL_CSN_CONNECT_Msk (0x1UL << SPIS_PSEL_CSN_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIS_PSEL_CSN_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIS_PSEL_CSN_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIS_PSEL_CSN_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIS_PSEL_CSN_PIN_Msk (0x1FUL << SPIS_PSEL_CSN_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIS_RXD_PTR */
+/* Description: RXD data pointer */
+
+/* Bits 31..0 : RXD data pointer */
+#define SPIS_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SPIS_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << SPIS_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SPIS_RXD_MAXCNT */
+/* Description: Maximum number of bytes in receive buffer */
+
+/* Bits 9..0 : Maximum number of bytes in receive buffer */
+#define SPIS_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SPIS_RXD_MAXCNT_MAXCNT_Msk (0x3FFUL << SPIS_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SPIS_RXD_AMOUNT */
+/* Description: Number of bytes received in last granted transaction */
+
+/* Bits 9..0 : Number of bytes received in the last granted transaction */
+#define SPIS_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SPIS_RXD_AMOUNT_AMOUNT_Msk (0x3FFUL << SPIS_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: SPIS_TXD_PTR */
+/* Description: TXD data pointer */
+
+/* Bits 31..0 : TXD data pointer */
+#define SPIS_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SPIS_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << SPIS_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SPIS_TXD_MAXCNT */
+/* Description: Maximum number of bytes in transmit buffer */
+
+/* Bits 9..0 : Maximum number of bytes in transmit buffer */
+#define SPIS_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SPIS_TXD_MAXCNT_MAXCNT_Msk (0x3FFUL << SPIS_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SPIS_TXD_AMOUNT */
+/* Description: Number of bytes transmitted in last granted transaction */
+
+/* Bits 9..0 : Number of bytes transmitted in last granted transaction */
+#define SPIS_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SPIS_TXD_AMOUNT_AMOUNT_Msk (0x3FFUL << SPIS_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: SPIS_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 2 : Serial clock (SCK) polarity */
+#define SPIS_CONFIG_CPOL_Pos (2UL) /*!< Position of CPOL field. */
+#define SPIS_CONFIG_CPOL_Msk (0x1UL << SPIS_CONFIG_CPOL_Pos) /*!< Bit mask of CPOL field. */
+#define SPIS_CONFIG_CPOL_ActiveHigh (0UL) /*!< Active high */
+#define SPIS_CONFIG_CPOL_ActiveLow (1UL) /*!< Active low */
+
+/* Bit 1 : Serial clock (SCK) phase */
+#define SPIS_CONFIG_CPHA_Pos (1UL) /*!< Position of CPHA field. */
+#define SPIS_CONFIG_CPHA_Msk (0x1UL << SPIS_CONFIG_CPHA_Pos) /*!< Bit mask of CPHA field. */
+#define SPIS_CONFIG_CPHA_Leading (0UL) /*!< Sample on leading edge of clock, shift serial data on trailing edge */
+#define SPIS_CONFIG_CPHA_Trailing (1UL) /*!< Sample on trailing edge of clock, shift serial data on leading edge */
+
+/* Bit 0 : Bit order */
+#define SPIS_CONFIG_ORDER_Pos (0UL) /*!< Position of ORDER field. */
+#define SPIS_CONFIG_ORDER_Msk (0x1UL << SPIS_CONFIG_ORDER_Pos) /*!< Bit mask of ORDER field. */
+#define SPIS_CONFIG_ORDER_MsbFirst (0UL) /*!< Most significant bit shifted out first */
+#define SPIS_CONFIG_ORDER_LsbFirst (1UL) /*!< Least significant bit shifted out first */
+
+/* Register: SPIS_DEF */
+/* Description: Default character. Character clocked out in case of an ignored transaction. */
+
+/* Bits 7..0 : Default character. Character clocked out in case of an ignored transaction. */
+#define SPIS_DEF_DEF_Pos (0UL) /*!< Position of DEF field. */
+#define SPIS_DEF_DEF_Msk (0xFFUL << SPIS_DEF_DEF_Pos) /*!< Bit mask of DEF field. */
+
+/* Register: SPIS_ORC */
+/* Description: Over-read character */
+
+/* Bits 7..0 : Over-read character. Character clocked out after an over-read of the transmit buffer. */
+#define SPIS_ORC_ORC_Pos (0UL) /*!< Position of ORC field. */
+#define SPIS_ORC_ORC_Msk (0xFFUL << SPIS_ORC_ORC_Pos) /*!< Bit mask of ORC field. */
+
+
+/* Peripheral: TEMP */
+/* Description: Temperature Sensor */
+
+/* Register: TEMP_TASKS_START */
+/* Description: Start temperature measurement */
+
+/* Bit 0 : */
+#define TEMP_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define TEMP_TASKS_START_TASKS_START_Msk (0x1UL << TEMP_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: TEMP_TASKS_STOP */
+/* Description: Stop temperature measurement */
+
+/* Bit 0 : */
+#define TEMP_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define TEMP_TASKS_STOP_TASKS_STOP_Msk (0x1UL << TEMP_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: TEMP_EVENTS_DATARDY */
+/* Description: Temperature measurement complete, data ready */
+
+/* Bit 0 : */
+#define TEMP_EVENTS_DATARDY_EVENTS_DATARDY_Pos (0UL) /*!< Position of EVENTS_DATARDY field. */
+#define TEMP_EVENTS_DATARDY_EVENTS_DATARDY_Msk (0x1UL << TEMP_EVENTS_DATARDY_EVENTS_DATARDY_Pos) /*!< Bit mask of EVENTS_DATARDY field. */
+
+/* Register: TEMP_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 0 : Write '1' to Enable interrupt for DATARDY event */
+#define TEMP_INTENSET_DATARDY_Pos (0UL) /*!< Position of DATARDY field. */
+#define TEMP_INTENSET_DATARDY_Msk (0x1UL << TEMP_INTENSET_DATARDY_Pos) /*!< Bit mask of DATARDY field. */
+#define TEMP_INTENSET_DATARDY_Disabled (0UL) /*!< Read: Disabled */
+#define TEMP_INTENSET_DATARDY_Enabled (1UL) /*!< Read: Enabled */
+#define TEMP_INTENSET_DATARDY_Set (1UL) /*!< Enable */
+
+/* Register: TEMP_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 0 : Write '1' to Disable interrupt for DATARDY event */
+#define TEMP_INTENCLR_DATARDY_Pos (0UL) /*!< Position of DATARDY field. */
+#define TEMP_INTENCLR_DATARDY_Msk (0x1UL << TEMP_INTENCLR_DATARDY_Pos) /*!< Bit mask of DATARDY field. */
+#define TEMP_INTENCLR_DATARDY_Disabled (0UL) /*!< Read: Disabled */
+#define TEMP_INTENCLR_DATARDY_Enabled (1UL) /*!< Read: Enabled */
+#define TEMP_INTENCLR_DATARDY_Clear (1UL) /*!< Disable */
+
+/* Register: TEMP_TEMP */
+/* Description: Temperature in degC (0.25deg steps) */
+
+/* Bits 31..0 : Temperature in degC (0.25deg steps) */
+#define TEMP_TEMP_TEMP_Pos (0UL) /*!< Position of TEMP field. */
+#define TEMP_TEMP_TEMP_Msk (0xFFFFFFFFUL << TEMP_TEMP_TEMP_Pos) /*!< Bit mask of TEMP field. */
+
+/* Register: TEMP_A0 */
+/* Description: Slope of 1st piece wise linear function */
+
+/* Bits 11..0 : Slope of 1st piece wise linear function */
+#define TEMP_A0_A0_Pos (0UL) /*!< Position of A0 field. */
+#define TEMP_A0_A0_Msk (0xFFFUL << TEMP_A0_A0_Pos) /*!< Bit mask of A0 field. */
+
+/* Register: TEMP_A1 */
+/* Description: Slope of 2nd piece wise linear function */
+
+/* Bits 11..0 : Slope of 2nd piece wise linear function */
+#define TEMP_A1_A1_Pos (0UL) /*!< Position of A1 field. */
+#define TEMP_A1_A1_Msk (0xFFFUL << TEMP_A1_A1_Pos) /*!< Bit mask of A1 field. */
+
+/* Register: TEMP_A2 */
+/* Description: Slope of 3rd piece wise linear function */
+
+/* Bits 11..0 : Slope of 3rd piece wise linear function */
+#define TEMP_A2_A2_Pos (0UL) /*!< Position of A2 field. */
+#define TEMP_A2_A2_Msk (0xFFFUL << TEMP_A2_A2_Pos) /*!< Bit mask of A2 field. */
+
+/* Register: TEMP_A3 */
+/* Description: Slope of 4th piece wise linear function */
+
+/* Bits 11..0 : Slope of 4th piece wise linear function */
+#define TEMP_A3_A3_Pos (0UL) /*!< Position of A3 field. */
+#define TEMP_A3_A3_Msk (0xFFFUL << TEMP_A3_A3_Pos) /*!< Bit mask of A3 field. */
+
+/* Register: TEMP_A4 */
+/* Description: Slope of 5th piece wise linear function */
+
+/* Bits 11..0 : Slope of 5th piece wise linear function */
+#define TEMP_A4_A4_Pos (0UL) /*!< Position of A4 field. */
+#define TEMP_A4_A4_Msk (0xFFFUL << TEMP_A4_A4_Pos) /*!< Bit mask of A4 field. */
+
+/* Register: TEMP_A5 */
+/* Description: Slope of 6th piece wise linear function */
+
+/* Bits 11..0 : Slope of 6th piece wise linear function */
+#define TEMP_A5_A5_Pos (0UL) /*!< Position of A5 field. */
+#define TEMP_A5_A5_Msk (0xFFFUL << TEMP_A5_A5_Pos) /*!< Bit mask of A5 field. */
+
+/* Register: TEMP_B0 */
+/* Description: y-intercept of 1st piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 1st piece wise linear function */
+#define TEMP_B0_B0_Pos (0UL) /*!< Position of B0 field. */
+#define TEMP_B0_B0_Msk (0x3FFFUL << TEMP_B0_B0_Pos) /*!< Bit mask of B0 field. */
+
+/* Register: TEMP_B1 */
+/* Description: y-intercept of 2nd piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 2nd piece wise linear function */
+#define TEMP_B1_B1_Pos (0UL) /*!< Position of B1 field. */
+#define TEMP_B1_B1_Msk (0x3FFFUL << TEMP_B1_B1_Pos) /*!< Bit mask of B1 field. */
+
+/* Register: TEMP_B2 */
+/* Description: y-intercept of 3rd piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 3rd piece wise linear function */
+#define TEMP_B2_B2_Pos (0UL) /*!< Position of B2 field. */
+#define TEMP_B2_B2_Msk (0x3FFFUL << TEMP_B2_B2_Pos) /*!< Bit mask of B2 field. */
+
+/* Register: TEMP_B3 */
+/* Description: y-intercept of 4th piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 4th piece wise linear function */
+#define TEMP_B3_B3_Pos (0UL) /*!< Position of B3 field. */
+#define TEMP_B3_B3_Msk (0x3FFFUL << TEMP_B3_B3_Pos) /*!< Bit mask of B3 field. */
+
+/* Register: TEMP_B4 */
+/* Description: y-intercept of 5th piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 5th piece wise linear function */
+#define TEMP_B4_B4_Pos (0UL) /*!< Position of B4 field. */
+#define TEMP_B4_B4_Msk (0x3FFFUL << TEMP_B4_B4_Pos) /*!< Bit mask of B4 field. */
+
+/* Register: TEMP_B5 */
+/* Description: y-intercept of 6th piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 6th piece wise linear function */
+#define TEMP_B5_B5_Pos (0UL) /*!< Position of B5 field. */
+#define TEMP_B5_B5_Msk (0x3FFFUL << TEMP_B5_B5_Pos) /*!< Bit mask of B5 field. */
+
+/* Register: TEMP_T0 */
+/* Description: End point of 1st piece wise linear function */
+
+/* Bits 7..0 : End point of 1st piece wise linear function */
+#define TEMP_T0_T0_Pos (0UL) /*!< Position of T0 field. */
+#define TEMP_T0_T0_Msk (0xFFUL << TEMP_T0_T0_Pos) /*!< Bit mask of T0 field. */
+
+/* Register: TEMP_T1 */
+/* Description: End point of 2nd piece wise linear function */
+
+/* Bits 7..0 : End point of 2nd piece wise linear function */
+#define TEMP_T1_T1_Pos (0UL) /*!< Position of T1 field. */
+#define TEMP_T1_T1_Msk (0xFFUL << TEMP_T1_T1_Pos) /*!< Bit mask of T1 field. */
+
+/* Register: TEMP_T2 */
+/* Description: End point of 3rd piece wise linear function */
+
+/* Bits 7..0 : End point of 3rd piece wise linear function */
+#define TEMP_T2_T2_Pos (0UL) /*!< Position of T2 field. */
+#define TEMP_T2_T2_Msk (0xFFUL << TEMP_T2_T2_Pos) /*!< Bit mask of T2 field. */
+
+/* Register: TEMP_T3 */
+/* Description: End point of 4th piece wise linear function */
+
+/* Bits 7..0 : End point of 4th piece wise linear function */
+#define TEMP_T3_T3_Pos (0UL) /*!< Position of T3 field. */
+#define TEMP_T3_T3_Msk (0xFFUL << TEMP_T3_T3_Pos) /*!< Bit mask of T3 field. */
+
+/* Register: TEMP_T4 */
+/* Description: End point of 5th piece wise linear function */
+
+/* Bits 7..0 : End point of 5th piece wise linear function */
+#define TEMP_T4_T4_Pos (0UL) /*!< Position of T4 field. */
+#define TEMP_T4_T4_Msk (0xFFUL << TEMP_T4_T4_Pos) /*!< Bit mask of T4 field. */
+
+
+/* Peripheral: TIMER */
+/* Description: Timer/Counter 0 */
+
+/* Register: TIMER_TASKS_START */
+/* Description: Start Timer */
+
+/* Bit 0 : */
+#define TIMER_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define TIMER_TASKS_START_TASKS_START_Msk (0x1UL << TIMER_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: TIMER_TASKS_STOP */
+/* Description: Stop Timer */
+
+/* Bit 0 : */
+#define TIMER_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define TIMER_TASKS_STOP_TASKS_STOP_Msk (0x1UL << TIMER_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: TIMER_TASKS_COUNT */
+/* Description: Increment Timer (Counter mode only) */
+
+/* Bit 0 : */
+#define TIMER_TASKS_COUNT_TASKS_COUNT_Pos (0UL) /*!< Position of TASKS_COUNT field. */
+#define TIMER_TASKS_COUNT_TASKS_COUNT_Msk (0x1UL << TIMER_TASKS_COUNT_TASKS_COUNT_Pos) /*!< Bit mask of TASKS_COUNT field. */
+
+/* Register: TIMER_TASKS_CLEAR */
+/* Description: Clear time */
+
+/* Bit 0 : */
+#define TIMER_TASKS_CLEAR_TASKS_CLEAR_Pos (0UL) /*!< Position of TASKS_CLEAR field. */
+#define TIMER_TASKS_CLEAR_TASKS_CLEAR_Msk (0x1UL << TIMER_TASKS_CLEAR_TASKS_CLEAR_Pos) /*!< Bit mask of TASKS_CLEAR field. */
+
+/* Register: TIMER_TASKS_SHUTDOWN */
+/* Description: Deprecated register - Shut down timer */
+
+/* Bit 0 : */
+#define TIMER_TASKS_SHUTDOWN_TASKS_SHUTDOWN_Pos (0UL) /*!< Position of TASKS_SHUTDOWN field. */
+#define TIMER_TASKS_SHUTDOWN_TASKS_SHUTDOWN_Msk (0x1UL << TIMER_TASKS_SHUTDOWN_TASKS_SHUTDOWN_Pos) /*!< Bit mask of TASKS_SHUTDOWN field. */
+
+/* Register: TIMER_TASKS_CAPTURE */
+/* Description: Description collection[0]: Capture Timer value to CC[0] register */
+
+/* Bit 0 : */
+#define TIMER_TASKS_CAPTURE_TASKS_CAPTURE_Pos (0UL) /*!< Position of TASKS_CAPTURE field. */
+#define TIMER_TASKS_CAPTURE_TASKS_CAPTURE_Msk (0x1UL << TIMER_TASKS_CAPTURE_TASKS_CAPTURE_Pos) /*!< Bit mask of TASKS_CAPTURE field. */
+
+/* Register: TIMER_EVENTS_COMPARE */
+/* Description: Description collection[0]: Compare event on CC[0] match */
+
+/* Bit 0 : */
+#define TIMER_EVENTS_COMPARE_EVENTS_COMPARE_Pos (0UL) /*!< Position of EVENTS_COMPARE field. */
+#define TIMER_EVENTS_COMPARE_EVENTS_COMPARE_Msk (0x1UL << TIMER_EVENTS_COMPARE_EVENTS_COMPARE_Pos) /*!< Bit mask of EVENTS_COMPARE field. */
+
+/* Register: TIMER_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 13 : Shortcut between COMPARE[5] event and STOP task */
+#define TIMER_SHORTS_COMPARE5_STOP_Pos (13UL) /*!< Position of COMPARE5_STOP field. */
+#define TIMER_SHORTS_COMPARE5_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE5_STOP_Pos) /*!< Bit mask of COMPARE5_STOP field. */
+#define TIMER_SHORTS_COMPARE5_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE5_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 12 : Shortcut between COMPARE[4] event and STOP task */
+#define TIMER_SHORTS_COMPARE4_STOP_Pos (12UL) /*!< Position of COMPARE4_STOP field. */
+#define TIMER_SHORTS_COMPARE4_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE4_STOP_Pos) /*!< Bit mask of COMPARE4_STOP field. */
+#define TIMER_SHORTS_COMPARE4_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE4_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 11 : Shortcut between COMPARE[3] event and STOP task */
+#define TIMER_SHORTS_COMPARE3_STOP_Pos (11UL) /*!< Position of COMPARE3_STOP field. */
+#define TIMER_SHORTS_COMPARE3_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE3_STOP_Pos) /*!< Bit mask of COMPARE3_STOP field. */
+#define TIMER_SHORTS_COMPARE3_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE3_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 10 : Shortcut between COMPARE[2] event and STOP task */
+#define TIMER_SHORTS_COMPARE2_STOP_Pos (10UL) /*!< Position of COMPARE2_STOP field. */
+#define TIMER_SHORTS_COMPARE2_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE2_STOP_Pos) /*!< Bit mask of COMPARE2_STOP field. */
+#define TIMER_SHORTS_COMPARE2_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE2_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 9 : Shortcut between COMPARE[1] event and STOP task */
+#define TIMER_SHORTS_COMPARE1_STOP_Pos (9UL) /*!< Position of COMPARE1_STOP field. */
+#define TIMER_SHORTS_COMPARE1_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE1_STOP_Pos) /*!< Bit mask of COMPARE1_STOP field. */
+#define TIMER_SHORTS_COMPARE1_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE1_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 8 : Shortcut between COMPARE[0] event and STOP task */
+#define TIMER_SHORTS_COMPARE0_STOP_Pos (8UL) /*!< Position of COMPARE0_STOP field. */
+#define TIMER_SHORTS_COMPARE0_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE0_STOP_Pos) /*!< Bit mask of COMPARE0_STOP field. */
+#define TIMER_SHORTS_COMPARE0_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE0_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 5 : Shortcut between COMPARE[5] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE5_CLEAR_Pos (5UL) /*!< Position of COMPARE5_CLEAR field. */
+#define TIMER_SHORTS_COMPARE5_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE5_CLEAR_Pos) /*!< Bit mask of COMPARE5_CLEAR field. */
+#define TIMER_SHORTS_COMPARE5_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE5_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 4 : Shortcut between COMPARE[4] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE4_CLEAR_Pos (4UL) /*!< Position of COMPARE4_CLEAR field. */
+#define TIMER_SHORTS_COMPARE4_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE4_CLEAR_Pos) /*!< Bit mask of COMPARE4_CLEAR field. */
+#define TIMER_SHORTS_COMPARE4_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE4_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between COMPARE[3] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Pos (3UL) /*!< Position of COMPARE3_CLEAR field. */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE3_CLEAR_Pos) /*!< Bit mask of COMPARE3_CLEAR field. */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between COMPARE[2] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Pos (2UL) /*!< Position of COMPARE2_CLEAR field. */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE2_CLEAR_Pos) /*!< Bit mask of COMPARE2_CLEAR field. */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between COMPARE[1] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Pos (1UL) /*!< Position of COMPARE1_CLEAR field. */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE1_CLEAR_Pos) /*!< Bit mask of COMPARE1_CLEAR field. */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between COMPARE[0] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Pos (0UL) /*!< Position of COMPARE0_CLEAR field. */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE0_CLEAR_Pos) /*!< Bit mask of COMPARE0_CLEAR field. */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: TIMER_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 21 : Write '1' to Enable interrupt for COMPARE[5] event */
+#define TIMER_INTENSET_COMPARE5_Pos (21UL) /*!< Position of COMPARE5 field. */
+#define TIMER_INTENSET_COMPARE5_Msk (0x1UL << TIMER_INTENSET_COMPARE5_Pos) /*!< Bit mask of COMPARE5 field. */
+#define TIMER_INTENSET_COMPARE5_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE5_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE5_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to Enable interrupt for COMPARE[4] event */
+#define TIMER_INTENSET_COMPARE4_Pos (20UL) /*!< Position of COMPARE4 field. */
+#define TIMER_INTENSET_COMPARE4_Msk (0x1UL << TIMER_INTENSET_COMPARE4_Pos) /*!< Bit mask of COMPARE4 field. */
+#define TIMER_INTENSET_COMPARE4_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE4_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE4_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to Enable interrupt for COMPARE[3] event */
+#define TIMER_INTENSET_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define TIMER_INTENSET_COMPARE3_Msk (0x1UL << TIMER_INTENSET_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define TIMER_INTENSET_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE3_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to Enable interrupt for COMPARE[2] event */
+#define TIMER_INTENSET_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define TIMER_INTENSET_COMPARE2_Msk (0x1UL << TIMER_INTENSET_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define TIMER_INTENSET_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE2_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to Enable interrupt for COMPARE[1] event */
+#define TIMER_INTENSET_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define TIMER_INTENSET_COMPARE1_Msk (0x1UL << TIMER_INTENSET_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define TIMER_INTENSET_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE1_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to Enable interrupt for COMPARE[0] event */
+#define TIMER_INTENSET_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define TIMER_INTENSET_COMPARE0_Msk (0x1UL << TIMER_INTENSET_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define TIMER_INTENSET_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE0_Set (1UL) /*!< Enable */
+
+/* Register: TIMER_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 21 : Write '1' to Disable interrupt for COMPARE[5] event */
+#define TIMER_INTENCLR_COMPARE5_Pos (21UL) /*!< Position of COMPARE5 field. */
+#define TIMER_INTENCLR_COMPARE5_Msk (0x1UL << TIMER_INTENCLR_COMPARE5_Pos) /*!< Bit mask of COMPARE5 field. */
+#define TIMER_INTENCLR_COMPARE5_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE5_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE5_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to Disable interrupt for COMPARE[4] event */
+#define TIMER_INTENCLR_COMPARE4_Pos (20UL) /*!< Position of COMPARE4 field. */
+#define TIMER_INTENCLR_COMPARE4_Msk (0x1UL << TIMER_INTENCLR_COMPARE4_Pos) /*!< Bit mask of COMPARE4 field. */
+#define TIMER_INTENCLR_COMPARE4_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE4_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE4_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to Disable interrupt for COMPARE[3] event */
+#define TIMER_INTENCLR_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define TIMER_INTENCLR_COMPARE3_Msk (0x1UL << TIMER_INTENCLR_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define TIMER_INTENCLR_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE3_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to Disable interrupt for COMPARE[2] event */
+#define TIMER_INTENCLR_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define TIMER_INTENCLR_COMPARE2_Msk (0x1UL << TIMER_INTENCLR_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define TIMER_INTENCLR_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE2_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to Disable interrupt for COMPARE[1] event */
+#define TIMER_INTENCLR_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define TIMER_INTENCLR_COMPARE1_Msk (0x1UL << TIMER_INTENCLR_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define TIMER_INTENCLR_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE1_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to Disable interrupt for COMPARE[0] event */
+#define TIMER_INTENCLR_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define TIMER_INTENCLR_COMPARE0_Msk (0x1UL << TIMER_INTENCLR_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define TIMER_INTENCLR_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE0_Clear (1UL) /*!< Disable */
+
+/* Register: TIMER_MODE */
+/* Description: Timer mode selection */
+
+/* Bits 1..0 : Timer mode */
+#define TIMER_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define TIMER_MODE_MODE_Msk (0x3UL << TIMER_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define TIMER_MODE_MODE_Timer (0UL) /*!< Select Timer mode */
+#define TIMER_MODE_MODE_Counter (1UL) /*!< Deprecated enumerator - Select Counter mode */
+#define TIMER_MODE_MODE_LowPowerCounter (2UL) /*!< Select Low Power Counter mode */
+
+/* Register: TIMER_BITMODE */
+/* Description: Configure the number of bits used by the TIMER */
+
+/* Bits 1..0 : Timer bit width */
+#define TIMER_BITMODE_BITMODE_Pos (0UL) /*!< Position of BITMODE field. */
+#define TIMER_BITMODE_BITMODE_Msk (0x3UL << TIMER_BITMODE_BITMODE_Pos) /*!< Bit mask of BITMODE field. */
+#define TIMER_BITMODE_BITMODE_16Bit (0UL) /*!< 16 bit timer bit width */
+#define TIMER_BITMODE_BITMODE_08Bit (1UL) /*!< 8 bit timer bit width */
+#define TIMER_BITMODE_BITMODE_24Bit (2UL) /*!< 24 bit timer bit width */
+#define TIMER_BITMODE_BITMODE_32Bit (3UL) /*!< 32 bit timer bit width */
+
+/* Register: TIMER_PRESCALER */
+/* Description: Timer prescaler register */
+
+/* Bits 3..0 : Prescaler value */
+#define TIMER_PRESCALER_PRESCALER_Pos (0UL) /*!< Position of PRESCALER field. */
+#define TIMER_PRESCALER_PRESCALER_Msk (0xFUL << TIMER_PRESCALER_PRESCALER_Pos) /*!< Bit mask of PRESCALER field. */
+
+/* Register: TIMER_CC */
+/* Description: Description collection[0]: Capture/Compare register 0 */
+
+/* Bits 31..0 : Capture/Compare value */
+#define TIMER_CC_CC_Pos (0UL) /*!< Position of CC field. */
+#define TIMER_CC_CC_Msk (0xFFFFFFFFUL << TIMER_CC_CC_Pos) /*!< Bit mask of CC field. */
+
+
+/* Peripheral: TWIM */
+/* Description: I2C compatible Two-Wire Master Interface with EasyDMA */
+
+/* Register: TWIM_TASKS_STARTRX */
+/* Description: Start TWI receive sequence */
+
+/* Bit 0 : */
+#define TWIM_TASKS_STARTRX_TASKS_STARTRX_Pos (0UL) /*!< Position of TASKS_STARTRX field. */
+#define TWIM_TASKS_STARTRX_TASKS_STARTRX_Msk (0x1UL << TWIM_TASKS_STARTRX_TASKS_STARTRX_Pos) /*!< Bit mask of TASKS_STARTRX field. */
+
+/* Register: TWIM_TASKS_STARTTX */
+/* Description: Start TWI transmit sequence */
+
+/* Bit 0 : */
+#define TWIM_TASKS_STARTTX_TASKS_STARTTX_Pos (0UL) /*!< Position of TASKS_STARTTX field. */
+#define TWIM_TASKS_STARTTX_TASKS_STARTTX_Msk (0x1UL << TWIM_TASKS_STARTTX_TASKS_STARTTX_Pos) /*!< Bit mask of TASKS_STARTTX field. */
+
+/* Register: TWIM_TASKS_STOP */
+/* Description: Stop TWI transaction. Must be issued while the TWI master is not suspended. */
+
+/* Bit 0 : */
+#define TWIM_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define TWIM_TASKS_STOP_TASKS_STOP_Msk (0x1UL << TWIM_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: TWIM_TASKS_SUSPEND */
+/* Description: Suspend TWI transaction */
+
+/* Bit 0 : */
+#define TWIM_TASKS_SUSPEND_TASKS_SUSPEND_Pos (0UL) /*!< Position of TASKS_SUSPEND field. */
+#define TWIM_TASKS_SUSPEND_TASKS_SUSPEND_Msk (0x1UL << TWIM_TASKS_SUSPEND_TASKS_SUSPEND_Pos) /*!< Bit mask of TASKS_SUSPEND field. */
+
+/* Register: TWIM_TASKS_RESUME */
+/* Description: Resume TWI transaction */
+
+/* Bit 0 : */
+#define TWIM_TASKS_RESUME_TASKS_RESUME_Pos (0UL) /*!< Position of TASKS_RESUME field. */
+#define TWIM_TASKS_RESUME_TASKS_RESUME_Msk (0x1UL << TWIM_TASKS_RESUME_TASKS_RESUME_Pos) /*!< Bit mask of TASKS_RESUME field. */
+
+/* Register: TWIM_EVENTS_STOPPED */
+/* Description: TWI stopped */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define TWIM_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << TWIM_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: TWIM_EVENTS_ERROR */
+/* Description: TWI error */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_ERROR_EVENTS_ERROR_Pos (0UL) /*!< Position of EVENTS_ERROR field. */
+#define TWIM_EVENTS_ERROR_EVENTS_ERROR_Msk (0x1UL << TWIM_EVENTS_ERROR_EVENTS_ERROR_Pos) /*!< Bit mask of EVENTS_ERROR field. */
+
+/* Register: TWIM_EVENTS_SUSPENDED */
+/* Description: Last byte has been sent out after the SUSPEND task has been issued, TWI traffic is now suspended. */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_SUSPENDED_EVENTS_SUSPENDED_Pos (0UL) /*!< Position of EVENTS_SUSPENDED field. */
+#define TWIM_EVENTS_SUSPENDED_EVENTS_SUSPENDED_Msk (0x1UL << TWIM_EVENTS_SUSPENDED_EVENTS_SUSPENDED_Pos) /*!< Bit mask of EVENTS_SUSPENDED field. */
+
+/* Register: TWIM_EVENTS_RXSTARTED */
+/* Description: Receive sequence started */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Pos (0UL) /*!< Position of EVENTS_RXSTARTED field. */
+#define TWIM_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Msk (0x1UL << TWIM_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Pos) /*!< Bit mask of EVENTS_RXSTARTED field. */
+
+/* Register: TWIM_EVENTS_TXSTARTED */
+/* Description: Transmit sequence started */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Pos (0UL) /*!< Position of EVENTS_TXSTARTED field. */
+#define TWIM_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Msk (0x1UL << TWIM_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Pos) /*!< Bit mask of EVENTS_TXSTARTED field. */
+
+/* Register: TWIM_EVENTS_LASTRX */
+/* Description: Byte boundary, starting to receive the last byte */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_LASTRX_EVENTS_LASTRX_Pos (0UL) /*!< Position of EVENTS_LASTRX field. */
+#define TWIM_EVENTS_LASTRX_EVENTS_LASTRX_Msk (0x1UL << TWIM_EVENTS_LASTRX_EVENTS_LASTRX_Pos) /*!< Bit mask of EVENTS_LASTRX field. */
+
+/* Register: TWIM_EVENTS_LASTTX */
+/* Description: Byte boundary, starting to transmit the last byte */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_LASTTX_EVENTS_LASTTX_Pos (0UL) /*!< Position of EVENTS_LASTTX field. */
+#define TWIM_EVENTS_LASTTX_EVENTS_LASTTX_Msk (0x1UL << TWIM_EVENTS_LASTTX_EVENTS_LASTTX_Pos) /*!< Bit mask of EVENTS_LASTTX field. */
+
+/* Register: TWIM_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 12 : Shortcut between LASTRX event and STOP task */
+#define TWIM_SHORTS_LASTRX_STOP_Pos (12UL) /*!< Position of LASTRX_STOP field. */
+#define TWIM_SHORTS_LASTRX_STOP_Msk (0x1UL << TWIM_SHORTS_LASTRX_STOP_Pos) /*!< Bit mask of LASTRX_STOP field. */
+#define TWIM_SHORTS_LASTRX_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTRX_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 11 : Shortcut between LASTRX event and SUSPEND task */
+#define TWIM_SHORTS_LASTRX_SUSPEND_Pos (11UL) /*!< Position of LASTRX_SUSPEND field. */
+#define TWIM_SHORTS_LASTRX_SUSPEND_Msk (0x1UL << TWIM_SHORTS_LASTRX_SUSPEND_Pos) /*!< Bit mask of LASTRX_SUSPEND field. */
+#define TWIM_SHORTS_LASTRX_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTRX_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 10 : Shortcut between LASTRX event and STARTTX task */
+#define TWIM_SHORTS_LASTRX_STARTTX_Pos (10UL) /*!< Position of LASTRX_STARTTX field. */
+#define TWIM_SHORTS_LASTRX_STARTTX_Msk (0x1UL << TWIM_SHORTS_LASTRX_STARTTX_Pos) /*!< Bit mask of LASTRX_STARTTX field. */
+#define TWIM_SHORTS_LASTRX_STARTTX_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTRX_STARTTX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 9 : Shortcut between LASTTX event and STOP task */
+#define TWIM_SHORTS_LASTTX_STOP_Pos (9UL) /*!< Position of LASTTX_STOP field. */
+#define TWIM_SHORTS_LASTTX_STOP_Msk (0x1UL << TWIM_SHORTS_LASTTX_STOP_Pos) /*!< Bit mask of LASTTX_STOP field. */
+#define TWIM_SHORTS_LASTTX_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTTX_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 8 : Shortcut between LASTTX event and SUSPEND task */
+#define TWIM_SHORTS_LASTTX_SUSPEND_Pos (8UL) /*!< Position of LASTTX_SUSPEND field. */
+#define TWIM_SHORTS_LASTTX_SUSPEND_Msk (0x1UL << TWIM_SHORTS_LASTTX_SUSPEND_Pos) /*!< Bit mask of LASTTX_SUSPEND field. */
+#define TWIM_SHORTS_LASTTX_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTTX_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 7 : Shortcut between LASTTX event and STARTRX task */
+#define TWIM_SHORTS_LASTTX_STARTRX_Pos (7UL) /*!< Position of LASTTX_STARTRX field. */
+#define TWIM_SHORTS_LASTTX_STARTRX_Msk (0x1UL << TWIM_SHORTS_LASTTX_STARTRX_Pos) /*!< Bit mask of LASTTX_STARTRX field. */
+#define TWIM_SHORTS_LASTTX_STARTRX_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTTX_STARTRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: TWIM_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 24 : Enable or disable interrupt for LASTTX event */
+#define TWIM_INTEN_LASTTX_Pos (24UL) /*!< Position of LASTTX field. */
+#define TWIM_INTEN_LASTTX_Msk (0x1UL << TWIM_INTEN_LASTTX_Pos) /*!< Bit mask of LASTTX field. */
+#define TWIM_INTEN_LASTTX_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_LASTTX_Enabled (1UL) /*!< Enable */
+
+/* Bit 23 : Enable or disable interrupt for LASTRX event */
+#define TWIM_INTEN_LASTRX_Pos (23UL) /*!< Position of LASTRX field. */
+#define TWIM_INTEN_LASTRX_Msk (0x1UL << TWIM_INTEN_LASTRX_Pos) /*!< Bit mask of LASTRX field. */
+#define TWIM_INTEN_LASTRX_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_LASTRX_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for TXSTARTED event */
+#define TWIM_INTEN_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIM_INTEN_TXSTARTED_Msk (0x1UL << TWIM_INTEN_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIM_INTEN_TXSTARTED_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_TXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for RXSTARTED event */
+#define TWIM_INTEN_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIM_INTEN_RXSTARTED_Msk (0x1UL << TWIM_INTEN_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIM_INTEN_RXSTARTED_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_RXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 18 : Enable or disable interrupt for SUSPENDED event */
+#define TWIM_INTEN_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWIM_INTEN_SUSPENDED_Msk (0x1UL << TWIM_INTEN_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWIM_INTEN_SUSPENDED_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_SUSPENDED_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for ERROR event */
+#define TWIM_INTEN_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIM_INTEN_ERROR_Msk (0x1UL << TWIM_INTEN_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIM_INTEN_ERROR_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_ERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STOPPED event */
+#define TWIM_INTEN_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIM_INTEN_STOPPED_Msk (0x1UL << TWIM_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIM_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Register: TWIM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 24 : Write '1' to Enable interrupt for LASTTX event */
+#define TWIM_INTENSET_LASTTX_Pos (24UL) /*!< Position of LASTTX field. */
+#define TWIM_INTENSET_LASTTX_Msk (0x1UL << TWIM_INTENSET_LASTTX_Pos) /*!< Bit mask of LASTTX field. */
+#define TWIM_INTENSET_LASTTX_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_LASTTX_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_LASTTX_Set (1UL) /*!< Enable */
+
+/* Bit 23 : Write '1' to Enable interrupt for LASTRX event */
+#define TWIM_INTENSET_LASTRX_Pos (23UL) /*!< Position of LASTRX field. */
+#define TWIM_INTENSET_LASTRX_Msk (0x1UL << TWIM_INTENSET_LASTRX_Pos) /*!< Bit mask of LASTRX field. */
+#define TWIM_INTENSET_LASTRX_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_LASTRX_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_LASTRX_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to Enable interrupt for TXSTARTED event */
+#define TWIM_INTENSET_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIM_INTENSET_TXSTARTED_Msk (0x1UL << TWIM_INTENSET_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIM_INTENSET_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_TXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to Enable interrupt for RXSTARTED event */
+#define TWIM_INTENSET_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIM_INTENSET_RXSTARTED_Msk (0x1UL << TWIM_INTENSET_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIM_INTENSET_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_RXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to Enable interrupt for SUSPENDED event */
+#define TWIM_INTENSET_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWIM_INTENSET_SUSPENDED_Msk (0x1UL << TWIM_INTENSET_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWIM_INTENSET_SUSPENDED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_SUSPENDED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_SUSPENDED_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to Enable interrupt for ERROR event */
+#define TWIM_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIM_INTENSET_ERROR_Msk (0x1UL << TWIM_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIM_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for STOPPED event */
+#define TWIM_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIM_INTENSET_STOPPED_Msk (0x1UL << TWIM_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIM_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: TWIM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 24 : Write '1' to Disable interrupt for LASTTX event */
+#define TWIM_INTENCLR_LASTTX_Pos (24UL) /*!< Position of LASTTX field. */
+#define TWIM_INTENCLR_LASTTX_Msk (0x1UL << TWIM_INTENCLR_LASTTX_Pos) /*!< Bit mask of LASTTX field. */
+#define TWIM_INTENCLR_LASTTX_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_LASTTX_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_LASTTX_Clear (1UL) /*!< Disable */
+
+/* Bit 23 : Write '1' to Disable interrupt for LASTRX event */
+#define TWIM_INTENCLR_LASTRX_Pos (23UL) /*!< Position of LASTRX field. */
+#define TWIM_INTENCLR_LASTRX_Msk (0x1UL << TWIM_INTENCLR_LASTRX_Pos) /*!< Bit mask of LASTRX field. */
+#define TWIM_INTENCLR_LASTRX_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_LASTRX_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_LASTRX_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to Disable interrupt for TXSTARTED event */
+#define TWIM_INTENCLR_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIM_INTENCLR_TXSTARTED_Msk (0x1UL << TWIM_INTENCLR_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIM_INTENCLR_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_TXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to Disable interrupt for RXSTARTED event */
+#define TWIM_INTENCLR_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIM_INTENCLR_RXSTARTED_Msk (0x1UL << TWIM_INTENCLR_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIM_INTENCLR_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_RXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to Disable interrupt for SUSPENDED event */
+#define TWIM_INTENCLR_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWIM_INTENCLR_SUSPENDED_Msk (0x1UL << TWIM_INTENCLR_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWIM_INTENCLR_SUSPENDED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_SUSPENDED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_SUSPENDED_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to Disable interrupt for ERROR event */
+#define TWIM_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIM_INTENCLR_ERROR_Msk (0x1UL << TWIM_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIM_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for STOPPED event */
+#define TWIM_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIM_INTENCLR_STOPPED_Msk (0x1UL << TWIM_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIM_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: TWIM_ERRORSRC */
+/* Description: Error source */
+
+/* Bit 2 : NACK received after sending a data byte (write '1' to clear) */
+#define TWIM_ERRORSRC_DNACK_Pos (2UL) /*!< Position of DNACK field. */
+#define TWIM_ERRORSRC_DNACK_Msk (0x1UL << TWIM_ERRORSRC_DNACK_Pos) /*!< Bit mask of DNACK field. */
+#define TWIM_ERRORSRC_DNACK_NotReceived (0UL) /*!< Error did not occur */
+#define TWIM_ERRORSRC_DNACK_Received (1UL) /*!< Error occurred */
+
+/* Bit 1 : NACK received after sending the address (write '1' to clear) */
+#define TWIM_ERRORSRC_ANACK_Pos (1UL) /*!< Position of ANACK field. */
+#define TWIM_ERRORSRC_ANACK_Msk (0x1UL << TWIM_ERRORSRC_ANACK_Pos) /*!< Bit mask of ANACK field. */
+#define TWIM_ERRORSRC_ANACK_NotReceived (0UL) /*!< Error did not occur */
+#define TWIM_ERRORSRC_ANACK_Received (1UL) /*!< Error occurred */
+
+/* Bit 0 : Overrun error */
+#define TWIM_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
+#define TWIM_ERRORSRC_OVERRUN_Msk (0x1UL << TWIM_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define TWIM_ERRORSRC_OVERRUN_NotReceived (0UL) /*!< Error did not occur */
+#define TWIM_ERRORSRC_OVERRUN_Received (1UL) /*!< Error occurred */
+
+/* Register: TWIM_ENABLE */
+/* Description: Enable TWIM */
+
+/* Bits 3..0 : Enable or disable TWIM */
+#define TWIM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define TWIM_ENABLE_ENABLE_Msk (0xFUL << TWIM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define TWIM_ENABLE_ENABLE_Disabled (0UL) /*!< Disable TWIM */
+#define TWIM_ENABLE_ENABLE_Enabled (6UL) /*!< Enable TWIM */
+
+/* Register: TWIM_PSEL_SCL */
+/* Description: Pin select for SCL signal */
+
+/* Bit 31 : Connection */
+#define TWIM_PSEL_SCL_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWIM_PSEL_SCL_CONNECT_Msk (0x1UL << TWIM_PSEL_SCL_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWIM_PSEL_SCL_CONNECT_Connected (0UL) /*!< Connect */
+#define TWIM_PSEL_SCL_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define TWIM_PSEL_SCL_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWIM_PSEL_SCL_PIN_Msk (0x1FUL << TWIM_PSEL_SCL_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWIM_PSEL_SDA */
+/* Description: Pin select for SDA signal */
+
+/* Bit 31 : Connection */
+#define TWIM_PSEL_SDA_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWIM_PSEL_SDA_CONNECT_Msk (0x1UL << TWIM_PSEL_SDA_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWIM_PSEL_SDA_CONNECT_Connected (0UL) /*!< Connect */
+#define TWIM_PSEL_SDA_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define TWIM_PSEL_SDA_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWIM_PSEL_SDA_PIN_Msk (0x1FUL << TWIM_PSEL_SDA_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWIM_FREQUENCY */
+/* Description: TWI frequency. Accuracy depends on the HFCLK source selected. */
+
+/* Bits 31..0 : TWI master clock frequency */
+#define TWIM_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define TWIM_FREQUENCY_FREQUENCY_Msk (0xFFFFFFFFUL << TWIM_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+#define TWIM_FREQUENCY_FREQUENCY_K100 (0x01980000UL) /*!< 100 kbps */
+#define TWIM_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250 kbps */
+#define TWIM_FREQUENCY_FREQUENCY_K400 (0x06400000UL) /*!< 400 kbps */
+
+/* Register: TWIM_RXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define TWIM_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define TWIM_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << TWIM_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: TWIM_RXD_MAXCNT */
+/* Description: Maximum number of bytes in receive buffer */
+
+/* Bits 9..0 : Maximum number of bytes in receive buffer */
+#define TWIM_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define TWIM_RXD_MAXCNT_MAXCNT_Msk (0x3FFUL << TWIM_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: TWIM_RXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 9..0 : Number of bytes transferred in the last transaction. In case of NACK error, includes the NACK'ed byte. */
+#define TWIM_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define TWIM_RXD_AMOUNT_AMOUNT_Msk (0x3FFUL << TWIM_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: TWIM_RXD_LIST */
+/* Description: EasyDMA list type */
+
+/* Bits 2..0 : List type */
+#define TWIM_RXD_LIST_LIST_Pos (0UL) /*!< Position of LIST field. */
+#define TWIM_RXD_LIST_LIST_Msk (0x7UL << TWIM_RXD_LIST_LIST_Pos) /*!< Bit mask of LIST field. */
+#define TWIM_RXD_LIST_LIST_Disabled (0UL) /*!< Disable EasyDMA list */
+#define TWIM_RXD_LIST_LIST_ArrayList (1UL) /*!< Use array list */
+
+/* Register: TWIM_TXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define TWIM_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define TWIM_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << TWIM_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: TWIM_TXD_MAXCNT */
+/* Description: Maximum number of bytes in transmit buffer */
+
+/* Bits 9..0 : Maximum number of bytes in transmit buffer */
+#define TWIM_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define TWIM_TXD_MAXCNT_MAXCNT_Msk (0x3FFUL << TWIM_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: TWIM_TXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 9..0 : Number of bytes transferred in the last transaction. In case of NACK error, includes the NACK'ed byte. */
+#define TWIM_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define TWIM_TXD_AMOUNT_AMOUNT_Msk (0x3FFUL << TWIM_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: TWIM_TXD_LIST */
+/* Description: EasyDMA list type */
+
+/* Bits 2..0 : List type */
+#define TWIM_TXD_LIST_LIST_Pos (0UL) /*!< Position of LIST field. */
+#define TWIM_TXD_LIST_LIST_Msk (0x7UL << TWIM_TXD_LIST_LIST_Pos) /*!< Bit mask of LIST field. */
+#define TWIM_TXD_LIST_LIST_Disabled (0UL) /*!< Disable EasyDMA list */
+#define TWIM_TXD_LIST_LIST_ArrayList (1UL) /*!< Use array list */
+
+/* Register: TWIM_ADDRESS */
+/* Description: Address used in the TWI transfer */
+
+/* Bits 6..0 : Address used in the TWI transfer */
+#define TWIM_ADDRESS_ADDRESS_Pos (0UL) /*!< Position of ADDRESS field. */
+#define TWIM_ADDRESS_ADDRESS_Msk (0x7FUL << TWIM_ADDRESS_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+
+
+/* Peripheral: TWIS */
+/* Description: I2C compatible Two-Wire Slave Interface with EasyDMA */
+
+/* Register: TWIS_TASKS_STOP */
+/* Description: Stop TWI transaction */
+
+/* Bit 0 : */
+#define TWIS_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define TWIS_TASKS_STOP_TASKS_STOP_Msk (0x1UL << TWIS_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: TWIS_TASKS_SUSPEND */
+/* Description: Suspend TWI transaction */
+
+/* Bit 0 : */
+#define TWIS_TASKS_SUSPEND_TASKS_SUSPEND_Pos (0UL) /*!< Position of TASKS_SUSPEND field. */
+#define TWIS_TASKS_SUSPEND_TASKS_SUSPEND_Msk (0x1UL << TWIS_TASKS_SUSPEND_TASKS_SUSPEND_Pos) /*!< Bit mask of TASKS_SUSPEND field. */
+
+/* Register: TWIS_TASKS_RESUME */
+/* Description: Resume TWI transaction */
+
+/* Bit 0 : */
+#define TWIS_TASKS_RESUME_TASKS_RESUME_Pos (0UL) /*!< Position of TASKS_RESUME field. */
+#define TWIS_TASKS_RESUME_TASKS_RESUME_Msk (0x1UL << TWIS_TASKS_RESUME_TASKS_RESUME_Pos) /*!< Bit mask of TASKS_RESUME field. */
+
+/* Register: TWIS_TASKS_PREPARERX */
+/* Description: Prepare the TWI slave to respond to a write command */
+
+/* Bit 0 : */
+#define TWIS_TASKS_PREPARERX_TASKS_PREPARERX_Pos (0UL) /*!< Position of TASKS_PREPARERX field. */
+#define TWIS_TASKS_PREPARERX_TASKS_PREPARERX_Msk (0x1UL << TWIS_TASKS_PREPARERX_TASKS_PREPARERX_Pos) /*!< Bit mask of TASKS_PREPARERX field. */
+
+/* Register: TWIS_TASKS_PREPARETX */
+/* Description: Prepare the TWI slave to respond to a read command */
+
+/* Bit 0 : */
+#define TWIS_TASKS_PREPARETX_TASKS_PREPARETX_Pos (0UL) /*!< Position of TASKS_PREPARETX field. */
+#define TWIS_TASKS_PREPARETX_TASKS_PREPARETX_Msk (0x1UL << TWIS_TASKS_PREPARETX_TASKS_PREPARETX_Pos) /*!< Bit mask of TASKS_PREPARETX field. */
+
+/* Register: TWIS_EVENTS_STOPPED */
+/* Description: TWI stopped */
+
+/* Bit 0 : */
+#define TWIS_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define TWIS_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << TWIS_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: TWIS_EVENTS_ERROR */
+/* Description: TWI error */
+
+/* Bit 0 : */
+#define TWIS_EVENTS_ERROR_EVENTS_ERROR_Pos (0UL) /*!< Position of EVENTS_ERROR field. */
+#define TWIS_EVENTS_ERROR_EVENTS_ERROR_Msk (0x1UL << TWIS_EVENTS_ERROR_EVENTS_ERROR_Pos) /*!< Bit mask of EVENTS_ERROR field. */
+
+/* Register: TWIS_EVENTS_RXSTARTED */
+/* Description: Receive sequence started */
+
+/* Bit 0 : */
+#define TWIS_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Pos (0UL) /*!< Position of EVENTS_RXSTARTED field. */
+#define TWIS_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Msk (0x1UL << TWIS_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Pos) /*!< Bit mask of EVENTS_RXSTARTED field. */
+
+/* Register: TWIS_EVENTS_TXSTARTED */
+/* Description: Transmit sequence started */
+
+/* Bit 0 : */
+#define TWIS_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Pos (0UL) /*!< Position of EVENTS_TXSTARTED field. */
+#define TWIS_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Msk (0x1UL << TWIS_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Pos) /*!< Bit mask of EVENTS_TXSTARTED field. */
+
+/* Register: TWIS_EVENTS_WRITE */
+/* Description: Write command received */
+
+/* Bit 0 : */
+#define TWIS_EVENTS_WRITE_EVENTS_WRITE_Pos (0UL) /*!< Position of EVENTS_WRITE field. */
+#define TWIS_EVENTS_WRITE_EVENTS_WRITE_Msk (0x1UL << TWIS_EVENTS_WRITE_EVENTS_WRITE_Pos) /*!< Bit mask of EVENTS_WRITE field. */
+
+/* Register: TWIS_EVENTS_READ */
+/* Description: Read command received */
+
+/* Bit 0 : */
+#define TWIS_EVENTS_READ_EVENTS_READ_Pos (0UL) /*!< Position of EVENTS_READ field. */
+#define TWIS_EVENTS_READ_EVENTS_READ_Msk (0x1UL << TWIS_EVENTS_READ_EVENTS_READ_Pos) /*!< Bit mask of EVENTS_READ field. */
+
+/* Register: TWIS_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 14 : Shortcut between READ event and SUSPEND task */
+#define TWIS_SHORTS_READ_SUSPEND_Pos (14UL) /*!< Position of READ_SUSPEND field. */
+#define TWIS_SHORTS_READ_SUSPEND_Msk (0x1UL << TWIS_SHORTS_READ_SUSPEND_Pos) /*!< Bit mask of READ_SUSPEND field. */
+#define TWIS_SHORTS_READ_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWIS_SHORTS_READ_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 13 : Shortcut between WRITE event and SUSPEND task */
+#define TWIS_SHORTS_WRITE_SUSPEND_Pos (13UL) /*!< Position of WRITE_SUSPEND field. */
+#define TWIS_SHORTS_WRITE_SUSPEND_Msk (0x1UL << TWIS_SHORTS_WRITE_SUSPEND_Pos) /*!< Bit mask of WRITE_SUSPEND field. */
+#define TWIS_SHORTS_WRITE_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWIS_SHORTS_WRITE_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: TWIS_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 26 : Enable or disable interrupt for READ event */
+#define TWIS_INTEN_READ_Pos (26UL) /*!< Position of READ field. */
+#define TWIS_INTEN_READ_Msk (0x1UL << TWIS_INTEN_READ_Pos) /*!< Bit mask of READ field. */
+#define TWIS_INTEN_READ_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_READ_Enabled (1UL) /*!< Enable */
+
+/* Bit 25 : Enable or disable interrupt for WRITE event */
+#define TWIS_INTEN_WRITE_Pos (25UL) /*!< Position of WRITE field. */
+#define TWIS_INTEN_WRITE_Msk (0x1UL << TWIS_INTEN_WRITE_Pos) /*!< Bit mask of WRITE field. */
+#define TWIS_INTEN_WRITE_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_WRITE_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for TXSTARTED event */
+#define TWIS_INTEN_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIS_INTEN_TXSTARTED_Msk (0x1UL << TWIS_INTEN_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIS_INTEN_TXSTARTED_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_TXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for RXSTARTED event */
+#define TWIS_INTEN_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIS_INTEN_RXSTARTED_Msk (0x1UL << TWIS_INTEN_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIS_INTEN_RXSTARTED_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_RXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for ERROR event */
+#define TWIS_INTEN_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIS_INTEN_ERROR_Msk (0x1UL << TWIS_INTEN_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIS_INTEN_ERROR_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_ERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STOPPED event */
+#define TWIS_INTEN_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIS_INTEN_STOPPED_Msk (0x1UL << TWIS_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIS_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Register: TWIS_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 26 : Write '1' to Enable interrupt for READ event */
+#define TWIS_INTENSET_READ_Pos (26UL) /*!< Position of READ field. */
+#define TWIS_INTENSET_READ_Msk (0x1UL << TWIS_INTENSET_READ_Pos) /*!< Bit mask of READ field. */
+#define TWIS_INTENSET_READ_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_READ_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_READ_Set (1UL) /*!< Enable */
+
+/* Bit 25 : Write '1' to Enable interrupt for WRITE event */
+#define TWIS_INTENSET_WRITE_Pos (25UL) /*!< Position of WRITE field. */
+#define TWIS_INTENSET_WRITE_Msk (0x1UL << TWIS_INTENSET_WRITE_Pos) /*!< Bit mask of WRITE field. */
+#define TWIS_INTENSET_WRITE_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_WRITE_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_WRITE_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to Enable interrupt for TXSTARTED event */
+#define TWIS_INTENSET_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIS_INTENSET_TXSTARTED_Msk (0x1UL << TWIS_INTENSET_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIS_INTENSET_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_TXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to Enable interrupt for RXSTARTED event */
+#define TWIS_INTENSET_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIS_INTENSET_RXSTARTED_Msk (0x1UL << TWIS_INTENSET_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIS_INTENSET_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_RXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to Enable interrupt for ERROR event */
+#define TWIS_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIS_INTENSET_ERROR_Msk (0x1UL << TWIS_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIS_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for STOPPED event */
+#define TWIS_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIS_INTENSET_STOPPED_Msk (0x1UL << TWIS_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIS_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: TWIS_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 26 : Write '1' to Disable interrupt for READ event */
+#define TWIS_INTENCLR_READ_Pos (26UL) /*!< Position of READ field. */
+#define TWIS_INTENCLR_READ_Msk (0x1UL << TWIS_INTENCLR_READ_Pos) /*!< Bit mask of READ field. */
+#define TWIS_INTENCLR_READ_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_READ_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_READ_Clear (1UL) /*!< Disable */
+
+/* Bit 25 : Write '1' to Disable interrupt for WRITE event */
+#define TWIS_INTENCLR_WRITE_Pos (25UL) /*!< Position of WRITE field. */
+#define TWIS_INTENCLR_WRITE_Msk (0x1UL << TWIS_INTENCLR_WRITE_Pos) /*!< Bit mask of WRITE field. */
+#define TWIS_INTENCLR_WRITE_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_WRITE_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_WRITE_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to Disable interrupt for TXSTARTED event */
+#define TWIS_INTENCLR_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIS_INTENCLR_TXSTARTED_Msk (0x1UL << TWIS_INTENCLR_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIS_INTENCLR_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_TXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to Disable interrupt for RXSTARTED event */
+#define TWIS_INTENCLR_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIS_INTENCLR_RXSTARTED_Msk (0x1UL << TWIS_INTENCLR_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIS_INTENCLR_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_RXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to Disable interrupt for ERROR event */
+#define TWIS_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIS_INTENCLR_ERROR_Msk (0x1UL << TWIS_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIS_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for STOPPED event */
+#define TWIS_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIS_INTENCLR_STOPPED_Msk (0x1UL << TWIS_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIS_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: TWIS_ERRORSRC */
+/* Description: Error source */
+
+/* Bit 3 : TX buffer over-read detected, and prevented */
+#define TWIS_ERRORSRC_OVERREAD_Pos (3UL) /*!< Position of OVERREAD field. */
+#define TWIS_ERRORSRC_OVERREAD_Msk (0x1UL << TWIS_ERRORSRC_OVERREAD_Pos) /*!< Bit mask of OVERREAD field. */
+#define TWIS_ERRORSRC_OVERREAD_NotDetected (0UL) /*!< Error did not occur */
+#define TWIS_ERRORSRC_OVERREAD_Detected (1UL) /*!< Error occurred */
+
+/* Bit 2 : NACK sent after receiving a data byte */
+#define TWIS_ERRORSRC_DNACK_Pos (2UL) /*!< Position of DNACK field. */
+#define TWIS_ERRORSRC_DNACK_Msk (0x1UL << TWIS_ERRORSRC_DNACK_Pos) /*!< Bit mask of DNACK field. */
+#define TWIS_ERRORSRC_DNACK_NotReceived (0UL) /*!< Error did not occur */
+#define TWIS_ERRORSRC_DNACK_Received (1UL) /*!< Error occurred */
+
+/* Bit 0 : RX buffer overflow detected, and prevented */
+#define TWIS_ERRORSRC_OVERFLOW_Pos (0UL) /*!< Position of OVERFLOW field. */
+#define TWIS_ERRORSRC_OVERFLOW_Msk (0x1UL << TWIS_ERRORSRC_OVERFLOW_Pos) /*!< Bit mask of OVERFLOW field. */
+#define TWIS_ERRORSRC_OVERFLOW_NotDetected (0UL) /*!< Error did not occur */
+#define TWIS_ERRORSRC_OVERFLOW_Detected (1UL) /*!< Error occurred */
+
+/* Register: TWIS_MATCH */
+/* Description: Status register indicating which address had a match */
+
+/* Bit 0 : Which of the addresses in {ADDRESS} matched the incoming address */
+#define TWIS_MATCH_MATCH_Pos (0UL) /*!< Position of MATCH field. */
+#define TWIS_MATCH_MATCH_Msk (0x1UL << TWIS_MATCH_MATCH_Pos) /*!< Bit mask of MATCH field. */
+
+/* Register: TWIS_ENABLE */
+/* Description: Enable TWIS */
+
+/* Bits 3..0 : Enable or disable TWIS */
+#define TWIS_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define TWIS_ENABLE_ENABLE_Msk (0xFUL << TWIS_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define TWIS_ENABLE_ENABLE_Disabled (0UL) /*!< Disable TWIS */
+#define TWIS_ENABLE_ENABLE_Enabled (9UL) /*!< Enable TWIS */
+
+/* Register: TWIS_PSEL_SCL */
+/* Description: Pin select for SCL signal */
+
+/* Bit 31 : Connection */
+#define TWIS_PSEL_SCL_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWIS_PSEL_SCL_CONNECT_Msk (0x1UL << TWIS_PSEL_SCL_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWIS_PSEL_SCL_CONNECT_Connected (0UL) /*!< Connect */
+#define TWIS_PSEL_SCL_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define TWIS_PSEL_SCL_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWIS_PSEL_SCL_PIN_Msk (0x1FUL << TWIS_PSEL_SCL_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWIS_PSEL_SDA */
+/* Description: Pin select for SDA signal */
+
+/* Bit 31 : Connection */
+#define TWIS_PSEL_SDA_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWIS_PSEL_SDA_CONNECT_Msk (0x1UL << TWIS_PSEL_SDA_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWIS_PSEL_SDA_CONNECT_Connected (0UL) /*!< Connect */
+#define TWIS_PSEL_SDA_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define TWIS_PSEL_SDA_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWIS_PSEL_SDA_PIN_Msk (0x1FUL << TWIS_PSEL_SDA_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWIS_RXD_PTR */
+/* Description: RXD Data pointer */
+
+/* Bits 31..0 : RXD Data pointer */
+#define TWIS_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define TWIS_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << TWIS_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: TWIS_RXD_MAXCNT */
+/* Description: Maximum number of bytes in RXD buffer */
+
+/* Bits 9..0 : Maximum number of bytes in RXD buffer */
+#define TWIS_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define TWIS_RXD_MAXCNT_MAXCNT_Msk (0x3FFUL << TWIS_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: TWIS_RXD_AMOUNT */
+/* Description: Number of bytes transferred in the last RXD transaction */
+
+/* Bits 9..0 : Number of bytes transferred in the last RXD transaction */
+#define TWIS_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define TWIS_RXD_AMOUNT_AMOUNT_Msk (0x3FFUL << TWIS_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: TWIS_TXD_PTR */
+/* Description: TXD Data pointer */
+
+/* Bits 31..0 : TXD Data pointer */
+#define TWIS_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define TWIS_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << TWIS_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: TWIS_TXD_MAXCNT */
+/* Description: Maximum number of bytes in TXD buffer */
+
+/* Bits 9..0 : Maximum number of bytes in TXD buffer */
+#define TWIS_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define TWIS_TXD_MAXCNT_MAXCNT_Msk (0x3FFUL << TWIS_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: TWIS_TXD_AMOUNT */
+/* Description: Number of bytes transferred in the last TXD transaction */
+
+/* Bits 9..0 : Number of bytes transferred in the last TXD transaction */
+#define TWIS_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define TWIS_TXD_AMOUNT_AMOUNT_Msk (0x3FFUL << TWIS_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: TWIS_ADDRESS */
+/* Description: Description collection[0]: TWI slave address 0 */
+
+/* Bits 6..0 : TWI slave address */
+#define TWIS_ADDRESS_ADDRESS_Pos (0UL) /*!< Position of ADDRESS field. */
+#define TWIS_ADDRESS_ADDRESS_Msk (0x7FUL << TWIS_ADDRESS_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+
+/* Register: TWIS_CONFIG */
+/* Description: Configuration register for the address match mechanism */
+
+/* Bit 1 : Enable or disable address matching on ADDRESS[1] */
+#define TWIS_CONFIG_ADDRESS1_Pos (1UL) /*!< Position of ADDRESS1 field. */
+#define TWIS_CONFIG_ADDRESS1_Msk (0x1UL << TWIS_CONFIG_ADDRESS1_Pos) /*!< Bit mask of ADDRESS1 field. */
+#define TWIS_CONFIG_ADDRESS1_Disabled (0UL) /*!< Disabled */
+#define TWIS_CONFIG_ADDRESS1_Enabled (1UL) /*!< Enabled */
+
+/* Bit 0 : Enable or disable address matching on ADDRESS[0] */
+#define TWIS_CONFIG_ADDRESS0_Pos (0UL) /*!< Position of ADDRESS0 field. */
+#define TWIS_CONFIG_ADDRESS0_Msk (0x1UL << TWIS_CONFIG_ADDRESS0_Pos) /*!< Bit mask of ADDRESS0 field. */
+#define TWIS_CONFIG_ADDRESS0_Disabled (0UL) /*!< Disabled */
+#define TWIS_CONFIG_ADDRESS0_Enabled (1UL) /*!< Enabled */
+
+/* Register: TWIS_ORC */
+/* Description: Over-read character. Character sent out in case of an over-read of the transmit buffer. */
+
+/* Bits 7..0 : Over-read character. Character sent out in case of an over-read of the transmit buffer. */
+#define TWIS_ORC_ORC_Pos (0UL) /*!< Position of ORC field. */
+#define TWIS_ORC_ORC_Msk (0xFFUL << TWIS_ORC_ORC_Pos) /*!< Bit mask of ORC field. */
+
+
+/* Peripheral: UARTE */
+/* Description: UART with EasyDMA */
+
+/* Register: UARTE_TASKS_STARTRX */
+/* Description: Start UART receiver */
+
+/* Bit 0 : */
+#define UARTE_TASKS_STARTRX_TASKS_STARTRX_Pos (0UL) /*!< Position of TASKS_STARTRX field. */
+#define UARTE_TASKS_STARTRX_TASKS_STARTRX_Msk (0x1UL << UARTE_TASKS_STARTRX_TASKS_STARTRX_Pos) /*!< Bit mask of TASKS_STARTRX field. */
+
+/* Register: UARTE_TASKS_STOPRX */
+/* Description: Stop UART receiver */
+
+/* Bit 0 : */
+#define UARTE_TASKS_STOPRX_TASKS_STOPRX_Pos (0UL) /*!< Position of TASKS_STOPRX field. */
+#define UARTE_TASKS_STOPRX_TASKS_STOPRX_Msk (0x1UL << UARTE_TASKS_STOPRX_TASKS_STOPRX_Pos) /*!< Bit mask of TASKS_STOPRX field. */
+
+/* Register: UARTE_TASKS_STARTTX */
+/* Description: Start UART transmitter */
+
+/* Bit 0 : */
+#define UARTE_TASKS_STARTTX_TASKS_STARTTX_Pos (0UL) /*!< Position of TASKS_STARTTX field. */
+#define UARTE_TASKS_STARTTX_TASKS_STARTTX_Msk (0x1UL << UARTE_TASKS_STARTTX_TASKS_STARTTX_Pos) /*!< Bit mask of TASKS_STARTTX field. */
+
+/* Register: UARTE_TASKS_STOPTX */
+/* Description: Stop UART transmitter */
+
+/* Bit 0 : */
+#define UARTE_TASKS_STOPTX_TASKS_STOPTX_Pos (0UL) /*!< Position of TASKS_STOPTX field. */
+#define UARTE_TASKS_STOPTX_TASKS_STOPTX_Msk (0x1UL << UARTE_TASKS_STOPTX_TASKS_STOPTX_Pos) /*!< Bit mask of TASKS_STOPTX field. */
+
+/* Register: UARTE_TASKS_FLUSHRX */
+/* Description: Flush RX FIFO into RX buffer */
+
+/* Bit 0 : */
+#define UARTE_TASKS_FLUSHRX_TASKS_FLUSHRX_Pos (0UL) /*!< Position of TASKS_FLUSHRX field. */
+#define UARTE_TASKS_FLUSHRX_TASKS_FLUSHRX_Msk (0x1UL << UARTE_TASKS_FLUSHRX_TASKS_FLUSHRX_Pos) /*!< Bit mask of TASKS_FLUSHRX field. */
+
+/* Register: UARTE_EVENTS_CTS */
+/* Description: CTS is activated (set low). Clear To Send. */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_CTS_EVENTS_CTS_Pos (0UL) /*!< Position of EVENTS_CTS field. */
+#define UARTE_EVENTS_CTS_EVENTS_CTS_Msk (0x1UL << UARTE_EVENTS_CTS_EVENTS_CTS_Pos) /*!< Bit mask of EVENTS_CTS field. */
+
+/* Register: UARTE_EVENTS_NCTS */
+/* Description: CTS is deactivated (set high). Not Clear To Send. */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_NCTS_EVENTS_NCTS_Pos (0UL) /*!< Position of EVENTS_NCTS field. */
+#define UARTE_EVENTS_NCTS_EVENTS_NCTS_Msk (0x1UL << UARTE_EVENTS_NCTS_EVENTS_NCTS_Pos) /*!< Bit mask of EVENTS_NCTS field. */
+
+/* Register: UARTE_EVENTS_RXDRDY */
+/* Description: Data received in RXD (but potentially not yet transferred to Data RAM) */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_RXDRDY_EVENTS_RXDRDY_Pos (0UL) /*!< Position of EVENTS_RXDRDY field. */
+#define UARTE_EVENTS_RXDRDY_EVENTS_RXDRDY_Msk (0x1UL << UARTE_EVENTS_RXDRDY_EVENTS_RXDRDY_Pos) /*!< Bit mask of EVENTS_RXDRDY field. */
+
+/* Register: UARTE_EVENTS_ENDRX */
+/* Description: Receive buffer is filled up */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_ENDRX_EVENTS_ENDRX_Pos (0UL) /*!< Position of EVENTS_ENDRX field. */
+#define UARTE_EVENTS_ENDRX_EVENTS_ENDRX_Msk (0x1UL << UARTE_EVENTS_ENDRX_EVENTS_ENDRX_Pos) /*!< Bit mask of EVENTS_ENDRX field. */
+
+/* Register: UARTE_EVENTS_TXDRDY */
+/* Description: Data sent from TXD */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_TXDRDY_EVENTS_TXDRDY_Pos (0UL) /*!< Position of EVENTS_TXDRDY field. */
+#define UARTE_EVENTS_TXDRDY_EVENTS_TXDRDY_Msk (0x1UL << UARTE_EVENTS_TXDRDY_EVENTS_TXDRDY_Pos) /*!< Bit mask of EVENTS_TXDRDY field. */
+
+/* Register: UARTE_EVENTS_ENDTX */
+/* Description: Last TX byte transmitted */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_ENDTX_EVENTS_ENDTX_Pos (0UL) /*!< Position of EVENTS_ENDTX field. */
+#define UARTE_EVENTS_ENDTX_EVENTS_ENDTX_Msk (0x1UL << UARTE_EVENTS_ENDTX_EVENTS_ENDTX_Pos) /*!< Bit mask of EVENTS_ENDTX field. */
+
+/* Register: UARTE_EVENTS_ERROR */
+/* Description: Error detected */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_ERROR_EVENTS_ERROR_Pos (0UL) /*!< Position of EVENTS_ERROR field. */
+#define UARTE_EVENTS_ERROR_EVENTS_ERROR_Msk (0x1UL << UARTE_EVENTS_ERROR_EVENTS_ERROR_Pos) /*!< Bit mask of EVENTS_ERROR field. */
+
+/* Register: UARTE_EVENTS_RXTO */
+/* Description: Receiver timeout */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_RXTO_EVENTS_RXTO_Pos (0UL) /*!< Position of EVENTS_RXTO field. */
+#define UARTE_EVENTS_RXTO_EVENTS_RXTO_Msk (0x1UL << UARTE_EVENTS_RXTO_EVENTS_RXTO_Pos) /*!< Bit mask of EVENTS_RXTO field. */
+
+/* Register: UARTE_EVENTS_RXSTARTED */
+/* Description: UART receiver has started */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Pos (0UL) /*!< Position of EVENTS_RXSTARTED field. */
+#define UARTE_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Msk (0x1UL << UARTE_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Pos) /*!< Bit mask of EVENTS_RXSTARTED field. */
+
+/* Register: UARTE_EVENTS_TXSTARTED */
+/* Description: UART transmitter has started */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Pos (0UL) /*!< Position of EVENTS_TXSTARTED field. */
+#define UARTE_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Msk (0x1UL << UARTE_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Pos) /*!< Bit mask of EVENTS_TXSTARTED field. */
+
+/* Register: UARTE_EVENTS_TXSTOPPED */
+/* Description: Transmitter stopped */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_TXSTOPPED_EVENTS_TXSTOPPED_Pos (0UL) /*!< Position of EVENTS_TXSTOPPED field. */
+#define UARTE_EVENTS_TXSTOPPED_EVENTS_TXSTOPPED_Msk (0x1UL << UARTE_EVENTS_TXSTOPPED_EVENTS_TXSTOPPED_Pos) /*!< Bit mask of EVENTS_TXSTOPPED field. */
+
+/* Register: UARTE_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 6 : Shortcut between ENDRX event and STOPRX task */
+#define UARTE_SHORTS_ENDRX_STOPRX_Pos (6UL) /*!< Position of ENDRX_STOPRX field. */
+#define UARTE_SHORTS_ENDRX_STOPRX_Msk (0x1UL << UARTE_SHORTS_ENDRX_STOPRX_Pos) /*!< Bit mask of ENDRX_STOPRX field. */
+#define UARTE_SHORTS_ENDRX_STOPRX_Disabled (0UL) /*!< Disable shortcut */
+#define UARTE_SHORTS_ENDRX_STOPRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 5 : Shortcut between ENDRX event and STARTRX task */
+#define UARTE_SHORTS_ENDRX_STARTRX_Pos (5UL) /*!< Position of ENDRX_STARTRX field. */
+#define UARTE_SHORTS_ENDRX_STARTRX_Msk (0x1UL << UARTE_SHORTS_ENDRX_STARTRX_Pos) /*!< Bit mask of ENDRX_STARTRX field. */
+#define UARTE_SHORTS_ENDRX_STARTRX_Disabled (0UL) /*!< Disable shortcut */
+#define UARTE_SHORTS_ENDRX_STARTRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: UARTE_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 22 : Enable or disable interrupt for TXSTOPPED event */
+#define UARTE_INTEN_TXSTOPPED_Pos (22UL) /*!< Position of TXSTOPPED field. */
+#define UARTE_INTEN_TXSTOPPED_Msk (0x1UL << UARTE_INTEN_TXSTOPPED_Pos) /*!< Bit mask of TXSTOPPED field. */
+#define UARTE_INTEN_TXSTOPPED_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_TXSTOPPED_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for TXSTARTED event */
+#define UARTE_INTEN_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define UARTE_INTEN_TXSTARTED_Msk (0x1UL << UARTE_INTEN_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define UARTE_INTEN_TXSTARTED_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_TXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for RXSTARTED event */
+#define UARTE_INTEN_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define UARTE_INTEN_RXSTARTED_Msk (0x1UL << UARTE_INTEN_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define UARTE_INTEN_RXSTARTED_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_RXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 17 : Enable or disable interrupt for RXTO event */
+#define UARTE_INTEN_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UARTE_INTEN_RXTO_Msk (0x1UL << UARTE_INTEN_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UARTE_INTEN_RXTO_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_RXTO_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for ERROR event */
+#define UARTE_INTEN_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UARTE_INTEN_ERROR_Msk (0x1UL << UARTE_INTEN_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UARTE_INTEN_ERROR_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_ERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 8 : Enable or disable interrupt for ENDTX event */
+#define UARTE_INTEN_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define UARTE_INTEN_ENDTX_Msk (0x1UL << UARTE_INTEN_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define UARTE_INTEN_ENDTX_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_ENDTX_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for TXDRDY event */
+#define UARTE_INTEN_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UARTE_INTEN_TXDRDY_Msk (0x1UL << UARTE_INTEN_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UARTE_INTEN_TXDRDY_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_TXDRDY_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for ENDRX event */
+#define UARTE_INTEN_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define UARTE_INTEN_ENDRX_Msk (0x1UL << UARTE_INTEN_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define UARTE_INTEN_ENDRX_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_ENDRX_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for RXDRDY event */
+#define UARTE_INTEN_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UARTE_INTEN_RXDRDY_Msk (0x1UL << UARTE_INTEN_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UARTE_INTEN_RXDRDY_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_RXDRDY_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for NCTS event */
+#define UARTE_INTEN_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UARTE_INTEN_NCTS_Msk (0x1UL << UARTE_INTEN_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UARTE_INTEN_NCTS_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_NCTS_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for CTS event */
+#define UARTE_INTEN_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UARTE_INTEN_CTS_Msk (0x1UL << UARTE_INTEN_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UARTE_INTEN_CTS_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_CTS_Enabled (1UL) /*!< Enable */
+
+/* Register: UARTE_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 22 : Write '1' to Enable interrupt for TXSTOPPED event */
+#define UARTE_INTENSET_TXSTOPPED_Pos (22UL) /*!< Position of TXSTOPPED field. */
+#define UARTE_INTENSET_TXSTOPPED_Msk (0x1UL << UARTE_INTENSET_TXSTOPPED_Pos) /*!< Bit mask of TXSTOPPED field. */
+#define UARTE_INTENSET_TXSTOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_TXSTOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_TXSTOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to Enable interrupt for TXSTARTED event */
+#define UARTE_INTENSET_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define UARTE_INTENSET_TXSTARTED_Msk (0x1UL << UARTE_INTENSET_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define UARTE_INTENSET_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_TXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to Enable interrupt for RXSTARTED event */
+#define UARTE_INTENSET_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define UARTE_INTENSET_RXSTARTED_Msk (0x1UL << UARTE_INTENSET_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define UARTE_INTENSET_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_RXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to Enable interrupt for RXTO event */
+#define UARTE_INTENSET_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UARTE_INTENSET_RXTO_Msk (0x1UL << UARTE_INTENSET_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UARTE_INTENSET_RXTO_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_RXTO_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_RXTO_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to Enable interrupt for ERROR event */
+#define UARTE_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UARTE_INTENSET_ERROR_Msk (0x1UL << UARTE_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UARTE_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to Enable interrupt for ENDTX event */
+#define UARTE_INTENSET_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define UARTE_INTENSET_ENDTX_Msk (0x1UL << UARTE_INTENSET_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define UARTE_INTENSET_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_ENDTX_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for TXDRDY event */
+#define UARTE_INTENSET_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UARTE_INTENSET_TXDRDY_Msk (0x1UL << UARTE_INTENSET_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UARTE_INTENSET_TXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_TXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_TXDRDY_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for ENDRX event */
+#define UARTE_INTENSET_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define UARTE_INTENSET_ENDRX_Msk (0x1UL << UARTE_INTENSET_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define UARTE_INTENSET_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_ENDRX_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for RXDRDY event */
+#define UARTE_INTENSET_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UARTE_INTENSET_RXDRDY_Msk (0x1UL << UARTE_INTENSET_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UARTE_INTENSET_RXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_RXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_RXDRDY_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for NCTS event */
+#define UARTE_INTENSET_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UARTE_INTENSET_NCTS_Msk (0x1UL << UARTE_INTENSET_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UARTE_INTENSET_NCTS_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_NCTS_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_NCTS_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for CTS event */
+#define UARTE_INTENSET_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UARTE_INTENSET_CTS_Msk (0x1UL << UARTE_INTENSET_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UARTE_INTENSET_CTS_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_CTS_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_CTS_Set (1UL) /*!< Enable */
+
+/* Register: UARTE_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 22 : Write '1' to Disable interrupt for TXSTOPPED event */
+#define UARTE_INTENCLR_TXSTOPPED_Pos (22UL) /*!< Position of TXSTOPPED field. */
+#define UARTE_INTENCLR_TXSTOPPED_Msk (0x1UL << UARTE_INTENCLR_TXSTOPPED_Pos) /*!< Bit mask of TXSTOPPED field. */
+#define UARTE_INTENCLR_TXSTOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_TXSTOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_TXSTOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to Disable interrupt for TXSTARTED event */
+#define UARTE_INTENCLR_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define UARTE_INTENCLR_TXSTARTED_Msk (0x1UL << UARTE_INTENCLR_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define UARTE_INTENCLR_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_TXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to Disable interrupt for RXSTARTED event */
+#define UARTE_INTENCLR_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define UARTE_INTENCLR_RXSTARTED_Msk (0x1UL << UARTE_INTENCLR_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define UARTE_INTENCLR_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_RXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to Disable interrupt for RXTO event */
+#define UARTE_INTENCLR_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UARTE_INTENCLR_RXTO_Msk (0x1UL << UARTE_INTENCLR_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UARTE_INTENCLR_RXTO_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_RXTO_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_RXTO_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to Disable interrupt for ERROR event */
+#define UARTE_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UARTE_INTENCLR_ERROR_Msk (0x1UL << UARTE_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UARTE_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to Disable interrupt for ENDTX event */
+#define UARTE_INTENCLR_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define UARTE_INTENCLR_ENDTX_Msk (0x1UL << UARTE_INTENCLR_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define UARTE_INTENCLR_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_ENDTX_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for TXDRDY event */
+#define UARTE_INTENCLR_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UARTE_INTENCLR_TXDRDY_Msk (0x1UL << UARTE_INTENCLR_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UARTE_INTENCLR_TXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_TXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_TXDRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for ENDRX event */
+#define UARTE_INTENCLR_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define UARTE_INTENCLR_ENDRX_Msk (0x1UL << UARTE_INTENCLR_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define UARTE_INTENCLR_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_ENDRX_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for RXDRDY event */
+#define UARTE_INTENCLR_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UARTE_INTENCLR_RXDRDY_Msk (0x1UL << UARTE_INTENCLR_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UARTE_INTENCLR_RXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_RXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_RXDRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for NCTS event */
+#define UARTE_INTENCLR_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UARTE_INTENCLR_NCTS_Msk (0x1UL << UARTE_INTENCLR_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UARTE_INTENCLR_NCTS_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_NCTS_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_NCTS_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for CTS event */
+#define UARTE_INTENCLR_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UARTE_INTENCLR_CTS_Msk (0x1UL << UARTE_INTENCLR_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UARTE_INTENCLR_CTS_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_CTS_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_CTS_Clear (1UL) /*!< Disable */
+
+/* Register: UARTE_ERRORSRC */
+/* Description: Error source Note : this register is read / write one to clear. */
+
+/* Bit 3 : Break condition */
+#define UARTE_ERRORSRC_BREAK_Pos (3UL) /*!< Position of BREAK field. */
+#define UARTE_ERRORSRC_BREAK_Msk (0x1UL << UARTE_ERRORSRC_BREAK_Pos) /*!< Bit mask of BREAK field. */
+#define UARTE_ERRORSRC_BREAK_NotPresent (0UL) /*!< Read: error not present */
+#define UARTE_ERRORSRC_BREAK_Present (1UL) /*!< Read: error present */
+
+/* Bit 2 : Framing error occurred */
+#define UARTE_ERRORSRC_FRAMING_Pos (2UL) /*!< Position of FRAMING field. */
+#define UARTE_ERRORSRC_FRAMING_Msk (0x1UL << UARTE_ERRORSRC_FRAMING_Pos) /*!< Bit mask of FRAMING field. */
+#define UARTE_ERRORSRC_FRAMING_NotPresent (0UL) /*!< Read: error not present */
+#define UARTE_ERRORSRC_FRAMING_Present (1UL) /*!< Read: error present */
+
+/* Bit 1 : Parity error */
+#define UARTE_ERRORSRC_PARITY_Pos (1UL) /*!< Position of PARITY field. */
+#define UARTE_ERRORSRC_PARITY_Msk (0x1UL << UARTE_ERRORSRC_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define UARTE_ERRORSRC_PARITY_NotPresent (0UL) /*!< Read: error not present */
+#define UARTE_ERRORSRC_PARITY_Present (1UL) /*!< Read: error present */
+
+/* Bit 0 : Overrun error */
+#define UARTE_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
+#define UARTE_ERRORSRC_OVERRUN_Msk (0x1UL << UARTE_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define UARTE_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: error not present */
+#define UARTE_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: error present */
+
+/* Register: UARTE_ENABLE */
+/* Description: Enable UART */
+
+/* Bits 3..0 : Enable or disable UARTE */
+#define UARTE_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define UARTE_ENABLE_ENABLE_Msk (0xFUL << UARTE_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define UARTE_ENABLE_ENABLE_Disabled (0UL) /*!< Disable UARTE */
+#define UARTE_ENABLE_ENABLE_Enabled (8UL) /*!< Enable UARTE */
+
+/* Register: UARTE_PSEL_RTS */
+/* Description: Pin select for RTS signal */
+
+/* Bit 31 : Connection */
+#define UARTE_PSEL_RTS_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UARTE_PSEL_RTS_CONNECT_Msk (0x1UL << UARTE_PSEL_RTS_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UARTE_PSEL_RTS_CONNECT_Connected (0UL) /*!< Connect */
+#define UARTE_PSEL_RTS_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define UARTE_PSEL_RTS_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UARTE_PSEL_RTS_PIN_Msk (0x1FUL << UARTE_PSEL_RTS_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UARTE_PSEL_TXD */
+/* Description: Pin select for TXD signal */
+
+/* Bit 31 : Connection */
+#define UARTE_PSEL_TXD_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UARTE_PSEL_TXD_CONNECT_Msk (0x1UL << UARTE_PSEL_TXD_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UARTE_PSEL_TXD_CONNECT_Connected (0UL) /*!< Connect */
+#define UARTE_PSEL_TXD_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define UARTE_PSEL_TXD_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UARTE_PSEL_TXD_PIN_Msk (0x1FUL << UARTE_PSEL_TXD_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UARTE_PSEL_CTS */
+/* Description: Pin select for CTS signal */
+
+/* Bit 31 : Connection */
+#define UARTE_PSEL_CTS_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UARTE_PSEL_CTS_CONNECT_Msk (0x1UL << UARTE_PSEL_CTS_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UARTE_PSEL_CTS_CONNECT_Connected (0UL) /*!< Connect */
+#define UARTE_PSEL_CTS_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define UARTE_PSEL_CTS_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UARTE_PSEL_CTS_PIN_Msk (0x1FUL << UARTE_PSEL_CTS_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UARTE_PSEL_RXD */
+/* Description: Pin select for RXD signal */
+
+/* Bit 31 : Connection */
+#define UARTE_PSEL_RXD_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UARTE_PSEL_RXD_CONNECT_Msk (0x1UL << UARTE_PSEL_RXD_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UARTE_PSEL_RXD_CONNECT_Connected (0UL) /*!< Connect */
+#define UARTE_PSEL_RXD_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define UARTE_PSEL_RXD_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UARTE_PSEL_RXD_PIN_Msk (0x1FUL << UARTE_PSEL_RXD_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UARTE_BAUDRATE */
+/* Description: Baud rate. Accuracy depends on the HFCLK source selected. */
+
+/* Bits 31..0 : Baud rate */
+#define UARTE_BAUDRATE_BAUDRATE_Pos (0UL) /*!< Position of BAUDRATE field. */
+#define UARTE_BAUDRATE_BAUDRATE_Msk (0xFFFFFFFFUL << UARTE_BAUDRATE_BAUDRATE_Pos) /*!< Bit mask of BAUDRATE field. */
+#define UARTE_BAUDRATE_BAUDRATE_Baud1200 (0x0004F000UL) /*!< 1200 baud (actual rate: 1205) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud2400 (0x0009D000UL) /*!< 2400 baud (actual rate: 2396) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud4800 (0x0013B000UL) /*!< 4800 baud (actual rate: 4808) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud9600 (0x00275000UL) /*!< 9600 baud (actual rate: 9598) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud14400 (0x003AF000UL) /*!< 14400 baud (actual rate: 14401) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud19200 (0x004EA000UL) /*!< 19200 baud (actual rate: 19208) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud28800 (0x0075C000UL) /*!< 28800 baud (actual rate: 28777) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud31250 (0x00800000UL) /*!< 31250 baud */
+#define UARTE_BAUDRATE_BAUDRATE_Baud38400 (0x009D0000UL) /*!< 38400 baud (actual rate: 38369) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud56000 (0x00E50000UL) /*!< 56000 baud (actual rate: 55944) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud57600 (0x00EB0000UL) /*!< 57600 baud (actual rate: 57554) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud76800 (0x013A9000UL) /*!< 76800 baud (actual rate: 76923) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud115200 (0x01D60000UL) /*!< 115200 baud (actual rate: 115108) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud230400 (0x03B00000UL) /*!< 230400 baud (actual rate: 231884) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud250000 (0x04000000UL) /*!< 250000 baud */
+#define UARTE_BAUDRATE_BAUDRATE_Baud460800 (0x07400000UL) /*!< 460800 baud (actual rate: 457143) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud921600 (0x0F000000UL) /*!< 921600 baud (actual rate: 941176) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud1M (0x10000000UL) /*!< 1Mega baud */
+
+/* Register: UARTE_RXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define UARTE_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define UARTE_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << UARTE_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: UARTE_RXD_MAXCNT */
+/* Description: Maximum number of bytes in receive buffer */
+
+/* Bits 9..0 : Maximum number of bytes in receive buffer */
+#define UARTE_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define UARTE_RXD_MAXCNT_MAXCNT_Msk (0x3FFUL << UARTE_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: UARTE_RXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 9..0 : Number of bytes transferred in the last transaction */
+#define UARTE_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define UARTE_RXD_AMOUNT_AMOUNT_Msk (0x3FFUL << UARTE_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: UARTE_TXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define UARTE_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define UARTE_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << UARTE_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: UARTE_TXD_MAXCNT */
+/* Description: Maximum number of bytes in transmit buffer */
+
+/* Bits 9..0 : Maximum number of bytes in transmit buffer */
+#define UARTE_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define UARTE_TXD_MAXCNT_MAXCNT_Msk (0x3FFUL << UARTE_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: UARTE_TXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 9..0 : Number of bytes transferred in the last transaction */
+#define UARTE_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define UARTE_TXD_AMOUNT_AMOUNT_Msk (0x3FFUL << UARTE_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: UARTE_CONFIG */
+/* Description: Configuration of parity and hardware flow control */
+
+/* Bit 4 : Stop bits */
+#define UARTE_CONFIG_STOP_Pos (4UL) /*!< Position of STOP field. */
+#define UARTE_CONFIG_STOP_Msk (0x1UL << UARTE_CONFIG_STOP_Pos) /*!< Bit mask of STOP field. */
+#define UARTE_CONFIG_STOP_One (0UL) /*!< One stop bit */
+#define UARTE_CONFIG_STOP_Two (1UL) /*!< Two stop bits */
+
+/* Bits 3..1 : Parity */
+#define UARTE_CONFIG_PARITY_Pos (1UL) /*!< Position of PARITY field. */
+#define UARTE_CONFIG_PARITY_Msk (0x7UL << UARTE_CONFIG_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define UARTE_CONFIG_PARITY_Excluded (0x0UL) /*!< Exclude parity bit */
+#define UARTE_CONFIG_PARITY_Included (0x7UL) /*!< Include even parity bit */
+
+/* Bit 0 : Hardware flow control */
+#define UARTE_CONFIG_HWFC_Pos (0UL) /*!< Position of HWFC field. */
+#define UARTE_CONFIG_HWFC_Msk (0x1UL << UARTE_CONFIG_HWFC_Pos) /*!< Bit mask of HWFC field. */
+#define UARTE_CONFIG_HWFC_Disabled (0UL) /*!< Disabled */
+#define UARTE_CONFIG_HWFC_Enabled (1UL) /*!< Enabled */
+
+
+/* Peripheral: UICR */
+/* Description: User information configuration registers */
+
+/* Register: UICR_NRFFW */
+/* Description: Description collection[0]: Reserved for Nordic firmware design */
+
+/* Bits 31..0 : Reserved for Nordic firmware design */
+#define UICR_NRFFW_NRFFW_Pos (0UL) /*!< Position of NRFFW field. */
+#define UICR_NRFFW_NRFFW_Msk (0xFFFFFFFFUL << UICR_NRFFW_NRFFW_Pos) /*!< Bit mask of NRFFW field. */
+
+/* Register: UICR_NRFHW */
+/* Description: Description collection[0]: Reserved for Nordic hardware design */
+
+/* Bits 31..0 : Reserved for Nordic hardware design */
+#define UICR_NRFHW_NRFHW_Pos (0UL) /*!< Position of NRFHW field. */
+#define UICR_NRFHW_NRFHW_Msk (0xFFFFFFFFUL << UICR_NRFHW_NRFHW_Pos) /*!< Bit mask of NRFHW field. */
+
+/* Register: UICR_CUSTOMER */
+/* Description: Description collection[0]: Reserved for customer */
+
+/* Bits 31..0 : Reserved for customer */
+#define UICR_CUSTOMER_CUSTOMER_Pos (0UL) /*!< Position of CUSTOMER field. */
+#define UICR_CUSTOMER_CUSTOMER_Msk (0xFFFFFFFFUL << UICR_CUSTOMER_CUSTOMER_Pos) /*!< Bit mask of CUSTOMER field. */
+
+/* Register: UICR_PSELRESET */
+/* Description: Description collection[0]: Mapping of the nRESET function (see POWER chapter for details) */
+
+/* Bit 31 : Connection */
+#define UICR_PSELRESET_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UICR_PSELRESET_CONNECT_Msk (0x1UL << UICR_PSELRESET_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UICR_PSELRESET_CONNECT_Connected (0UL) /*!< Connect */
+#define UICR_PSELRESET_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 5..0 : GPIO number P0.n onto which reset is exposed */
+#define UICR_PSELRESET_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UICR_PSELRESET_PIN_Msk (0x3FUL << UICR_PSELRESET_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UICR_APPROTECT */
+/* Description: Access port protection */
+
+/* Bits 7..0 : Enable or disable access port protection. */
+#define UICR_APPROTECT_PALL_Pos (0UL) /*!< Position of PALL field. */
+#define UICR_APPROTECT_PALL_Msk (0xFFUL << UICR_APPROTECT_PALL_Pos) /*!< Bit mask of PALL field. */
+#define UICR_APPROTECT_PALL_Enabled (0x00UL) /*!< Enable */
+#define UICR_APPROTECT_PALL_Disabled (0xFFUL) /*!< Disable */
+
+
+/* Peripheral: WDT */
+/* Description: Watchdog Timer */
+
+/* Register: WDT_TASKS_START */
+/* Description: Start the watchdog */
+
+/* Bit 0 : */
+#define WDT_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define WDT_TASKS_START_TASKS_START_Msk (0x1UL << WDT_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: WDT_EVENTS_TIMEOUT */
+/* Description: Watchdog timeout */
+
+/* Bit 0 : */
+#define WDT_EVENTS_TIMEOUT_EVENTS_TIMEOUT_Pos (0UL) /*!< Position of EVENTS_TIMEOUT field. */
+#define WDT_EVENTS_TIMEOUT_EVENTS_TIMEOUT_Msk (0x1UL << WDT_EVENTS_TIMEOUT_EVENTS_TIMEOUT_Pos) /*!< Bit mask of EVENTS_TIMEOUT field. */
+
+/* Register: WDT_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 0 : Write '1' to Enable interrupt for TIMEOUT event */
+#define WDT_INTENSET_TIMEOUT_Pos (0UL) /*!< Position of TIMEOUT field. */
+#define WDT_INTENSET_TIMEOUT_Msk (0x1UL << WDT_INTENSET_TIMEOUT_Pos) /*!< Bit mask of TIMEOUT field. */
+#define WDT_INTENSET_TIMEOUT_Disabled (0UL) /*!< Read: Disabled */
+#define WDT_INTENSET_TIMEOUT_Enabled (1UL) /*!< Read: Enabled */
+#define WDT_INTENSET_TIMEOUT_Set (1UL) /*!< Enable */
+
+/* Register: WDT_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 0 : Write '1' to Disable interrupt for TIMEOUT event */
+#define WDT_INTENCLR_TIMEOUT_Pos (0UL) /*!< Position of TIMEOUT field. */
+#define WDT_INTENCLR_TIMEOUT_Msk (0x1UL << WDT_INTENCLR_TIMEOUT_Pos) /*!< Bit mask of TIMEOUT field. */
+#define WDT_INTENCLR_TIMEOUT_Disabled (0UL) /*!< Read: Disabled */
+#define WDT_INTENCLR_TIMEOUT_Enabled (1UL) /*!< Read: Enabled */
+#define WDT_INTENCLR_TIMEOUT_Clear (1UL) /*!< Disable */
+
+/* Register: WDT_RUNSTATUS */
+/* Description: Run status */
+
+/* Bit 0 : Indicates whether or not the watchdog is running */
+#define WDT_RUNSTATUS_RUNSTATUS_Pos (0UL) /*!< Position of RUNSTATUS field. */
+#define WDT_RUNSTATUS_RUNSTATUS_Msk (0x1UL << WDT_RUNSTATUS_RUNSTATUS_Pos) /*!< Bit mask of RUNSTATUS field. */
+#define WDT_RUNSTATUS_RUNSTATUS_NotRunning (0UL) /*!< Watchdog not running */
+#define WDT_RUNSTATUS_RUNSTATUS_Running (1UL) /*!< Watchdog is running */
+
+/* Register: WDT_REQSTATUS */
+/* Description: Request status */
+
+/* Bit 7 : Request status for RR[7] register */
+#define WDT_REQSTATUS_RR7_Pos (7UL) /*!< Position of RR7 field. */
+#define WDT_REQSTATUS_RR7_Msk (0x1UL << WDT_REQSTATUS_RR7_Pos) /*!< Bit mask of RR7 field. */
+#define WDT_REQSTATUS_RR7_DisabledOrRequested (0UL) /*!< RR[7] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR7_EnabledAndUnrequested (1UL) /*!< RR[7] register is enabled, and are not yet requesting reload */
+
+/* Bit 6 : Request status for RR[6] register */
+#define WDT_REQSTATUS_RR6_Pos (6UL) /*!< Position of RR6 field. */
+#define WDT_REQSTATUS_RR6_Msk (0x1UL << WDT_REQSTATUS_RR6_Pos) /*!< Bit mask of RR6 field. */
+#define WDT_REQSTATUS_RR6_DisabledOrRequested (0UL) /*!< RR[6] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR6_EnabledAndUnrequested (1UL) /*!< RR[6] register is enabled, and are not yet requesting reload */
+
+/* Bit 5 : Request status for RR[5] register */
+#define WDT_REQSTATUS_RR5_Pos (5UL) /*!< Position of RR5 field. */
+#define WDT_REQSTATUS_RR5_Msk (0x1UL << WDT_REQSTATUS_RR5_Pos) /*!< Bit mask of RR5 field. */
+#define WDT_REQSTATUS_RR5_DisabledOrRequested (0UL) /*!< RR[5] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR5_EnabledAndUnrequested (1UL) /*!< RR[5] register is enabled, and are not yet requesting reload */
+
+/* Bit 4 : Request status for RR[4] register */
+#define WDT_REQSTATUS_RR4_Pos (4UL) /*!< Position of RR4 field. */
+#define WDT_REQSTATUS_RR4_Msk (0x1UL << WDT_REQSTATUS_RR4_Pos) /*!< Bit mask of RR4 field. */
+#define WDT_REQSTATUS_RR4_DisabledOrRequested (0UL) /*!< RR[4] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR4_EnabledAndUnrequested (1UL) /*!< RR[4] register is enabled, and are not yet requesting reload */
+
+/* Bit 3 : Request status for RR[3] register */
+#define WDT_REQSTATUS_RR3_Pos (3UL) /*!< Position of RR3 field. */
+#define WDT_REQSTATUS_RR3_Msk (0x1UL << WDT_REQSTATUS_RR3_Pos) /*!< Bit mask of RR3 field. */
+#define WDT_REQSTATUS_RR3_DisabledOrRequested (0UL) /*!< RR[3] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR3_EnabledAndUnrequested (1UL) /*!< RR[3] register is enabled, and are not yet requesting reload */
+
+/* Bit 2 : Request status for RR[2] register */
+#define WDT_REQSTATUS_RR2_Pos (2UL) /*!< Position of RR2 field. */
+#define WDT_REQSTATUS_RR2_Msk (0x1UL << WDT_REQSTATUS_RR2_Pos) /*!< Bit mask of RR2 field. */
+#define WDT_REQSTATUS_RR2_DisabledOrRequested (0UL) /*!< RR[2] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR2_EnabledAndUnrequested (1UL) /*!< RR[2] register is enabled, and are not yet requesting reload */
+
+/* Bit 1 : Request status for RR[1] register */
+#define WDT_REQSTATUS_RR1_Pos (1UL) /*!< Position of RR1 field. */
+#define WDT_REQSTATUS_RR1_Msk (0x1UL << WDT_REQSTATUS_RR1_Pos) /*!< Bit mask of RR1 field. */
+#define WDT_REQSTATUS_RR1_DisabledOrRequested (0UL) /*!< RR[1] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR1_EnabledAndUnrequested (1UL) /*!< RR[1] register is enabled, and are not yet requesting reload */
+
+/* Bit 0 : Request status for RR[0] register */
+#define WDT_REQSTATUS_RR0_Pos (0UL) /*!< Position of RR0 field. */
+#define WDT_REQSTATUS_RR0_Msk (0x1UL << WDT_REQSTATUS_RR0_Pos) /*!< Bit mask of RR0 field. */
+#define WDT_REQSTATUS_RR0_DisabledOrRequested (0UL) /*!< RR[0] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR0_EnabledAndUnrequested (1UL) /*!< RR[0] register is enabled, and are not yet requesting reload */
+
+/* Register: WDT_CRV */
+/* Description: Counter reload value */
+
+/* Bits 31..0 : Counter reload value in number of cycles of the 32.768 kHz clock */
+#define WDT_CRV_CRV_Pos (0UL) /*!< Position of CRV field. */
+#define WDT_CRV_CRV_Msk (0xFFFFFFFFUL << WDT_CRV_CRV_Pos) /*!< Bit mask of CRV field. */
+
+/* Register: WDT_RREN */
+/* Description: Enable register for reload request registers */
+
+/* Bit 7 : Enable or disable RR[7] register */
+#define WDT_RREN_RR7_Pos (7UL) /*!< Position of RR7 field. */
+#define WDT_RREN_RR7_Msk (0x1UL << WDT_RREN_RR7_Pos) /*!< Bit mask of RR7 field. */
+#define WDT_RREN_RR7_Disabled (0UL) /*!< Disable RR[7] register */
+#define WDT_RREN_RR7_Enabled (1UL) /*!< Enable RR[7] register */
+
+/* Bit 6 : Enable or disable RR[6] register */
+#define WDT_RREN_RR6_Pos (6UL) /*!< Position of RR6 field. */
+#define WDT_RREN_RR6_Msk (0x1UL << WDT_RREN_RR6_Pos) /*!< Bit mask of RR6 field. */
+#define WDT_RREN_RR6_Disabled (0UL) /*!< Disable RR[6] register */
+#define WDT_RREN_RR6_Enabled (1UL) /*!< Enable RR[6] register */
+
+/* Bit 5 : Enable or disable RR[5] register */
+#define WDT_RREN_RR5_Pos (5UL) /*!< Position of RR5 field. */
+#define WDT_RREN_RR5_Msk (0x1UL << WDT_RREN_RR5_Pos) /*!< Bit mask of RR5 field. */
+#define WDT_RREN_RR5_Disabled (0UL) /*!< Disable RR[5] register */
+#define WDT_RREN_RR5_Enabled (1UL) /*!< Enable RR[5] register */
+
+/* Bit 4 : Enable or disable RR[4] register */
+#define WDT_RREN_RR4_Pos (4UL) /*!< Position of RR4 field. */
+#define WDT_RREN_RR4_Msk (0x1UL << WDT_RREN_RR4_Pos) /*!< Bit mask of RR4 field. */
+#define WDT_RREN_RR4_Disabled (0UL) /*!< Disable RR[4] register */
+#define WDT_RREN_RR4_Enabled (1UL) /*!< Enable RR[4] register */
+
+/* Bit 3 : Enable or disable RR[3] register */
+#define WDT_RREN_RR3_Pos (3UL) /*!< Position of RR3 field. */
+#define WDT_RREN_RR3_Msk (0x1UL << WDT_RREN_RR3_Pos) /*!< Bit mask of RR3 field. */
+#define WDT_RREN_RR3_Disabled (0UL) /*!< Disable RR[3] register */
+#define WDT_RREN_RR3_Enabled (1UL) /*!< Enable RR[3] register */
+
+/* Bit 2 : Enable or disable RR[2] register */
+#define WDT_RREN_RR2_Pos (2UL) /*!< Position of RR2 field. */
+#define WDT_RREN_RR2_Msk (0x1UL << WDT_RREN_RR2_Pos) /*!< Bit mask of RR2 field. */
+#define WDT_RREN_RR2_Disabled (0UL) /*!< Disable RR[2] register */
+#define WDT_RREN_RR2_Enabled (1UL) /*!< Enable RR[2] register */
+
+/* Bit 1 : Enable or disable RR[1] register */
+#define WDT_RREN_RR1_Pos (1UL) /*!< Position of RR1 field. */
+#define WDT_RREN_RR1_Msk (0x1UL << WDT_RREN_RR1_Pos) /*!< Bit mask of RR1 field. */
+#define WDT_RREN_RR1_Disabled (0UL) /*!< Disable RR[1] register */
+#define WDT_RREN_RR1_Enabled (1UL) /*!< Enable RR[1] register */
+
+/* Bit 0 : Enable or disable RR[0] register */
+#define WDT_RREN_RR0_Pos (0UL) /*!< Position of RR0 field. */
+#define WDT_RREN_RR0_Msk (0x1UL << WDT_RREN_RR0_Pos) /*!< Bit mask of RR0 field. */
+#define WDT_RREN_RR0_Disabled (0UL) /*!< Disable RR[0] register */
+#define WDT_RREN_RR0_Enabled (1UL) /*!< Enable RR[0] register */
+
+/* Register: WDT_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 3 : Configure the watchdog to either be paused, or kept running, while the CPU is halted by the debugger */
+#define WDT_CONFIG_HALT_Pos (3UL) /*!< Position of HALT field. */
+#define WDT_CONFIG_HALT_Msk (0x1UL << WDT_CONFIG_HALT_Pos) /*!< Bit mask of HALT field. */
+#define WDT_CONFIG_HALT_Pause (0UL) /*!< Pause watchdog while the CPU is halted by the debugger */
+#define WDT_CONFIG_HALT_Run (1UL) /*!< Keep the watchdog running while the CPU is halted by the debugger */
+
+/* Bit 0 : Configure the watchdog to either be paused, or kept running, while the CPU is sleeping */
+#define WDT_CONFIG_SLEEP_Pos (0UL) /*!< Position of SLEEP field. */
+#define WDT_CONFIG_SLEEP_Msk (0x1UL << WDT_CONFIG_SLEEP_Pos) /*!< Bit mask of SLEEP field. */
+#define WDT_CONFIG_SLEEP_Pause (0UL) /*!< Pause watchdog while the CPU is sleeping */
+#define WDT_CONFIG_SLEEP_Run (1UL) /*!< Keep the watchdog running while the CPU is sleeping */
+
+/* Register: WDT_RR */
+/* Description: Description collection[0]: Reload request 0 */
+
+/* Bits 31..0 : Reload request register */
+#define WDT_RR_RR_Pos (0UL) /*!< Position of RR field. */
+#define WDT_RR_RR_Msk (0xFFFFFFFFUL << WDT_RR_RR_Pos) /*!< Bit mask of RR field. */
+#define WDT_RR_RR_Reload (0x6E524635UL) /*!< Value to request a reload of the watchdog timer */
+
+
+/*lint --flb "Leave library region" */
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810_peripherals.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810_peripherals.h
new file mode 100644
index 0000000..597a95d
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810_peripherals.h
@@ -0,0 +1,218 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef _NRF52810_PERIPHERALS_H
+#define _NRF52810_PERIPHERALS_H
+
+
+/* Power Peripheral */
+#define POWER_PRESENT
+#define POWER_COUNT 1
+
+#define POWER_FEATURE_RAM_REGISTERS_PRESENT
+#define POWER_FEATURE_RAM_REGISTERS_COUNT 3
+
+/* Systick timer */
+#define SYSTICK_PRESENT
+#define SYSTICK_COUNT 1
+
+/* Software Interrupts */
+#define SWI_PRESENT
+#define SWI_COUNT 6
+
+/* GPIO */
+#define GPIO_PRESENT
+#define GPIO_COUNT 1
+
+#define P0_PIN_NUM 32
+
+/* MPU and BPROT */
+#define BPROT_PRESENT
+
+#define BPROT_REGIONS_SIZE 4096
+#define BPROT_REGIONS_NUM 48
+
+/* Radio */
+#define RADIO_PRESENT
+#define RADIO_COUNT 1
+
+#define RADIO_EASYDMA_MAXCNT_SIZE 8
+
+/* Accelerated Address Resolver */
+#define AAR_PRESENT
+#define AAR_COUNT 1
+
+#define AAR_MAX_IRK_NUM 16
+
+/* AES Electronic CodeBook mode encryption */
+#define ECB_PRESENT
+#define ECB_COUNT 1
+
+/* AES CCM mode encryption */
+#define CCM_PRESENT
+#define CCM_COUNT 1
+
+/* Peripheral to Peripheral Interconnect */
+#define PPI_PRESENT
+#define PPI_COUNT 1
+
+#define PPI_CH_NUM 20
+#define PPI_FIXED_CH_NUM 12
+#define PPI_GROUP_NUM 6
+#define PPI_FEATURE_FORKS_PRESENT
+
+/* Event Generator Unit */
+#define EGU_PRESENT
+#define EGU_COUNT 2
+
+#define EGU0_CH_NUM 16
+#define EGU1_CH_NUM 16
+
+/* Timer/Counter */
+#define TIMER_PRESENT
+#define TIMER_COUNT 3
+
+#define TIMER0_MAX_SIZE 32
+#define TIMER1_MAX_SIZE 32
+#define TIMER2_MAX_SIZE 32
+
+#define TIMER0_CC_NUM 4
+#define TIMER1_CC_NUM 4
+#define TIMER2_CC_NUM 4
+
+/* Real Time Counter */
+#define RTC_PRESENT
+#define RTC_COUNT 2
+
+#define RTC0_CC_NUM 3
+#define RTC1_CC_NUM 4
+
+/* RNG */
+#define RNG_PRESENT
+#define RNG_COUNT 1
+
+/* Watchdog Timer */
+#define WDT_PRESENT
+#define WDT_COUNT 1
+
+/* Temperature Sensor */
+#define TEMP_PRESENT
+#define TEMP_COUNT 1
+
+/* Serial Peripheral Interface Master with DMA */
+#define SPIM_PRESENT
+#define SPIM_COUNT 1
+
+#define SPIM0_MAX_DATARATE 8
+
+#define SPIM0_FEATURE_HARDWARE_CSN_PRESENT 0
+
+#define SPIM0_FEATURE_DCX_PRESENT 0
+
+#define SPIM0_FEATURE_RXDELAY_PRESENT 0
+
+#define SPIM0_EASYDMA_MAXCNT_SIZE 10
+
+/* Serial Peripheral Interface Slave with DMA*/
+#define SPIS_PRESENT
+#define SPIS_COUNT 1
+
+#define SPIS0_EASYDMA_MAXCNT_SIZE 10
+
+/* Two Wire Interface Master with DMA */
+#define TWIM_PRESENT
+#define TWIM_COUNT 1
+
+#define TWIM0_EASYDMA_MAXCNT_SIZE 10
+
+/* Two Wire Interface Slave with DMA */
+#define TWIS_PRESENT
+#define TWIS_COUNT 1
+
+#define TWIS0_EASYDMA_MAXCNT_SIZE 10
+
+/* Universal Asynchronous Receiver-Transmitter with DMA */
+#define UARTE_PRESENT
+#define UARTE_COUNT 1
+
+#define UARTE0_EASYDMA_MAXCNT_SIZE 10
+
+/* Quadrature Decoder */
+#define QDEC_PRESENT
+#define QDEC_COUNT 1
+
+/* Successive Approximation Analog to Digital Converter */
+#define SAADC_PRESENT
+#define SAADC_COUNT 1
+
+#define SAADC_EASYDMA_MAXCNT_SIZE 15
+
+#define SAADC_CH_NUM 8
+
+/* GPIO Tasks and Events */
+#define GPIOTE_PRESENT
+#define GPIOTE_COUNT 1
+
+#define GPIOTE_CH_NUM 8
+
+#define GPIOTE_FEATURE_SET_PRESENT
+#define GPIOTE_FEATURE_CLR_PRESENT
+
+/* Comparator */
+#define COMP_PRESENT
+#define COMP_COUNT 1
+
+/* Pulse Width Modulator */
+#define PWM_PRESENT
+#define PWM_COUNT 1
+
+#define PWM0_CH_NUM 4
+
+#define PWM0_EASYDMA_MAXCNT_SIZE 15
+
+/* Pulse Density Modulator */
+#define PDM_PRESENT
+#define PDM_COUNT 1
+
+#define PDM_EASYDMA_MAXCNT_SIZE 15
+
+
+#endif // _NRF52810_PERIPHERALS_H
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810_xxaa.ld b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810_xxaa.ld
new file mode 100644
index 0000000..b8ef436
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52810_xxaa.ld
@@ -0,0 +1,13 @@
+/* Linker script to configure memory regions. */
+
+SEARCH_DIR(.)
+GROUP(-lgcc -lc -lnosys)
+
+MEMORY
+{
+ FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x30000
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x6000
+}
+
+
+INCLUDE "nrf_common.ld"
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52832_peripherals.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52832_peripherals.h
new file mode 100644
index 0000000..b945de4
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52832_peripherals.h
@@ -0,0 +1,285 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef _NRF52832_PERIPHERALS_H
+#define _NRF52832_PERIPHERALS_H
+
+
+/* Power Peripheral */
+#define POWER_PRESENT
+#define POWER_COUNT 1
+
+#define POWER_FEATURE_RAM_REGISTERS_PRESENT
+#define POWER_FEATURE_RAM_REGISTERS_COUNT 8
+
+/* Floating Point Unit */
+#define FPU_PRESENT
+#define FPU_COUNT 1
+
+/* Systick timer */
+#define SYSTICK_PRESENT
+#define SYSTICK_COUNT 1
+
+/* Software Interrupts */
+#define SWI_PRESENT
+#define SWI_COUNT 6
+
+/* Memory Watch Unit */
+#define MWU_PRESENT
+#define MWU_COUNT 1
+
+/* GPIO */
+#define GPIO_PRESENT
+#define GPIO_COUNT 1
+
+#define P0_PIN_NUM 32
+
+/* MPU and BPROT */
+#define BPROT_PRESENT
+
+#define BPROT_REGIONS_SIZE 4096
+#define BPROT_REGIONS_NUM 128
+
+/* Radio */
+#define RADIO_PRESENT
+#define RADIO_COUNT 1
+
+#define RADIO_EASYDMA_MAXCNT_SIZE 8
+
+/* Accelerated Address Resolver */
+#define AAR_PRESENT
+#define AAR_COUNT 1
+
+#define AAR_MAX_IRK_NUM 16
+
+/* AES Electronic CodeBook mode encryption */
+#define ECB_PRESENT
+#define ECB_COUNT 1
+
+/* AES CCM mode encryption */
+#define CCM_PRESENT
+#define CCM_COUNT 1
+
+/* NFC Tag */
+#define NFCT_PRESENT
+#define NFCT_COUNT 1
+
+#define NFCT_EASYDMA_MAXCNT_SIZE 9
+
+/* Peripheral to Peripheral Interconnect */
+#define PPI_PRESENT
+#define PPI_COUNT 1
+
+#define PPI_CH_NUM 20
+#define PPI_FIXED_CH_NUM 12
+#define PPI_GROUP_NUM 6
+#define PPI_FEATURE_FORKS_PRESENT
+
+/* Event Generator Unit */
+#define EGU_PRESENT
+#define EGU_COUNT 6
+
+#define EGU0_CH_NUM 16
+#define EGU1_CH_NUM 16
+#define EGU2_CH_NUM 16
+#define EGU3_CH_NUM 16
+#define EGU4_CH_NUM 16
+#define EGU5_CH_NUM 16
+
+/* Timer/Counter */
+#define TIMER_PRESENT
+#define TIMER_COUNT 5
+
+#define TIMER0_MAX_SIZE 32
+#define TIMER1_MAX_SIZE 32
+#define TIMER2_MAX_SIZE 32
+#define TIMER3_MAX_SIZE 32
+#define TIMER4_MAX_SIZE 32
+
+#define TIMER0_CC_NUM 4
+#define TIMER1_CC_NUM 4
+#define TIMER2_CC_NUM 4
+#define TIMER3_CC_NUM 6
+#define TIMER4_CC_NUM 6
+
+/* Real Time Counter */
+#define RTC_PRESENT
+#define RTC_COUNT 3
+
+#define RTC0_CC_NUM 3
+#define RTC1_CC_NUM 4
+#define RTC2_CC_NUM 4
+
+/* RNG */
+#define RNG_PRESENT
+#define RNG_COUNT 1
+
+/* Watchdog Timer */
+#define WDT_PRESENT
+#define WDT_COUNT 1
+
+/* Temperature Sensor */
+#define TEMP_PRESENT
+#define TEMP_COUNT 1
+
+/* Serial Peripheral Interface Master */
+#define SPI_PRESENT
+#define SPI_COUNT 3
+
+/* Serial Peripheral Interface Master with DMA */
+#define SPIM_PRESENT
+#define SPIM_COUNT 3
+
+#define SPIM0_MAX_DATARATE 8
+#define SPIM1_MAX_DATARATE 8
+#define SPIM2_MAX_DATARATE 8
+
+#define SPIM0_FEATURE_HARDWARE_CSN_PRESENT 0
+#define SPIM1_FEATURE_HARDWARE_CSN_PRESENT 0
+#define SPIM2_FEATURE_HARDWARE_CSN_PRESENT 0
+
+#define SPIM0_FEATURE_DCX_PRESENT 0
+#define SPIM1_FEATURE_DCX_PRESENT 0
+#define SPIM2_FEATURE_DCX_PRESENT 0
+
+#define SPIM0_FEATURE_RXDELAY_PRESENT 0
+#define SPIM1_FEATURE_RXDELAY_PRESENT 0
+#define SPIM2_FEATURE_RXDELAY_PRESENT 0
+
+#define SPIM0_EASYDMA_MAXCNT_SIZE 8
+#define SPIM1_EASYDMA_MAXCNT_SIZE 8
+#define SPIM2_EASYDMA_MAXCNT_SIZE 8
+
+/* Serial Peripheral Interface Slave with DMA*/
+#define SPIS_PRESENT
+#define SPIS_COUNT 3
+
+#define SPIS0_EASYDMA_MAXCNT_SIZE 8
+#define SPIS1_EASYDMA_MAXCNT_SIZE 8
+#define SPIS2_EASYDMA_MAXCNT_SIZE 8
+
+/* Two Wire Interface Master */
+#define TWI_PRESENT
+#define TWI_COUNT 2
+
+/* Two Wire Interface Master with DMA */
+#define TWIM_PRESENT
+#define TWIM_COUNT 2
+
+#define TWIM0_EASYDMA_MAXCNT_SIZE 8
+#define TWIM1_EASYDMA_MAXCNT_SIZE 8
+
+/* Two Wire Interface Slave with DMA */
+#define TWIS_PRESENT
+#define TWIS_COUNT 2
+
+#define TWIS0_EASYDMA_MAXCNT_SIZE 8
+#define TWIS1_EASYDMA_MAXCNT_SIZE 8
+
+/* Universal Asynchronous Receiver-Transmitter */
+#define UART_PRESENT
+#define UART_COUNT 1
+
+/* Universal Asynchronous Receiver-Transmitter with DMA */
+#define UARTE_PRESENT
+#define UARTE_COUNT 1
+
+#define UARTE0_EASYDMA_MAXCNT_SIZE 8
+
+/* Quadrature Decoder */
+#define QDEC_PRESENT
+#define QDEC_COUNT 1
+
+/* Successive Approximation Analog to Digital Converter */
+#define SAADC_PRESENT
+#define SAADC_COUNT 1
+
+#define SAADC_EASYDMA_MAXCNT_SIZE 15
+
+#define SAADC_CH_NUM 8
+
+/* GPIO Tasks and Events */
+#define GPIOTE_PRESENT
+#define GPIOTE_COUNT 1
+
+#define GPIOTE_CH_NUM 8
+
+#define GPIOTE_FEATURE_SET_PRESENT
+#define GPIOTE_FEATURE_CLR_PRESENT
+
+/* Low Power Comparator */
+#define LPCOMP_PRESENT
+#define LPCOMP_COUNT 1
+
+#define LPCOMP_REFSEL_RESOLUTION 16
+
+#define LPCOMP_FEATURE_HYST_PRESENT
+
+/* Comparator */
+#define COMP_PRESENT
+#define COMP_COUNT 1
+
+/* Pulse Width Modulator */
+#define PWM_PRESENT
+#define PWM_COUNT 3
+
+#define PWM0_CH_NUM 4
+#define PWM1_CH_NUM 4
+#define PWM2_CH_NUM 4
+
+#define PWM0_EASYDMA_MAXCNT_SIZE 15
+#define PWM1_EASYDMA_MAXCNT_SIZE 15
+#define PWM2_EASYDMA_MAXCNT_SIZE 15
+
+/* Pulse Density Modulator */
+#define PDM_PRESENT
+#define PDM_COUNT 1
+
+#define PDM_EASYDMA_MAXCNT_SIZE 15
+
+/* Inter-IC Sound Interface */
+#define I2S_PRESENT
+#define I2S_COUNT 1
+
+#define I2S_EASYDMA_MAXCNT_SIZE 14
+
+
+#endif // _NRF52832_PERIPHERALS_H
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52832_xxab.ld b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52832_xxab.ld
new file mode 100644
index 0000000..ff9780e
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52832_xxab.ld
@@ -0,0 +1,13 @@
+/* Linker script to configure memory regions. */
+
+SEARCH_DIR(.)
+GROUP(-lgcc -lc -lnosys)
+
+MEMORY
+{
+ FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x8000
+}
+
+
+INCLUDE "nrf_common.ld"
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840.h
new file mode 100644
index 0000000..13de424
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840.h
@@ -0,0 +1,2488 @@
+
+/****************************************************************************************************//**
+ * @file nrf52840.h
+ *
+ * @brief CMSIS Cortex-M4 Peripheral Access Layer Header File for
+ * nrf52840 from Nordic Semiconductor.
+ *
+ * @version V1
+ * @date 8. March 2018
+ *
+ * @note Generated with SVDConv V2.81d
+ * from CMSIS SVD File 'nrf52840.svd' Version 1,
+ *
+ * @par Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ *
+ *******************************************************************************************************/
+
+
+
+/** @addtogroup Nordic Semiconductor
+ * @{
+ */
+
+/** @addtogroup nrf52840
+ * @{
+ */
+
+#ifndef NRF52840_H
+#define NRF52840_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* ------------------------- Interrupt Number Definition ------------------------ */
+
+typedef enum {
+/* ------------------- Cortex-M4 Processor Exceptions Numbers ------------------- */
+ Reset_IRQn = -15, /*!< 1 Reset Vector, invoked on Power up and warm reset */
+ NonMaskableInt_IRQn = -14, /*!< 2 Non maskable Interrupt, cannot be stopped or preempted */
+ HardFault_IRQn = -13, /*!< 3 Hard Fault, all classes of Fault */
+ MemoryManagement_IRQn = -12, /*!< 4 Memory Management, MPU mismatch, including Access Violation
+ and No Match */
+ BusFault_IRQn = -11, /*!< 5 Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory
+ related Fault */
+ UsageFault_IRQn = -10, /*!< 6 Usage Fault, i.e. Undef Instruction, Illegal State Transition */
+ SVCall_IRQn = -5, /*!< 11 System Service Call via SVC instruction */
+ DebugMonitor_IRQn = -4, /*!< 12 Debug Monitor */
+ PendSV_IRQn = -2, /*!< 14 Pendable request for system service */
+ SysTick_IRQn = -1, /*!< 15 System Tick Timer */
+/* --------------------- nrf52840 Specific Interrupt Numbers -------------------- */
+ POWER_CLOCK_IRQn = 0, /*!< 0 POWER_CLOCK */
+ RADIO_IRQn = 1, /*!< 1 RADIO */
+ UARTE0_UART0_IRQn = 2, /*!< 2 UARTE0_UART0 */
+ SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn= 3, /*!< 3 SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0 */
+ SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn= 4, /*!< 4 SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1 */
+ NFCT_IRQn = 5, /*!< 5 NFCT */
+ GPIOTE_IRQn = 6, /*!< 6 GPIOTE */
+ SAADC_IRQn = 7, /*!< 7 SAADC */
+ TIMER0_IRQn = 8, /*!< 8 TIMER0 */
+ TIMER1_IRQn = 9, /*!< 9 TIMER1 */
+ TIMER2_IRQn = 10, /*!< 10 TIMER2 */
+ RTC0_IRQn = 11, /*!< 11 RTC0 */
+ TEMP_IRQn = 12, /*!< 12 TEMP */
+ RNG_IRQn = 13, /*!< 13 RNG */
+ ECB_IRQn = 14, /*!< 14 ECB */
+ CCM_AAR_IRQn = 15, /*!< 15 CCM_AAR */
+ WDT_IRQn = 16, /*!< 16 WDT */
+ RTC1_IRQn = 17, /*!< 17 RTC1 */
+ QDEC_IRQn = 18, /*!< 18 QDEC */
+ COMP_LPCOMP_IRQn = 19, /*!< 19 COMP_LPCOMP */
+ SWI0_EGU0_IRQn = 20, /*!< 20 SWI0_EGU0 */
+ SWI1_EGU1_IRQn = 21, /*!< 21 SWI1_EGU1 */
+ SWI2_EGU2_IRQn = 22, /*!< 22 SWI2_EGU2 */
+ SWI3_EGU3_IRQn = 23, /*!< 23 SWI3_EGU3 */
+ SWI4_EGU4_IRQn = 24, /*!< 24 SWI4_EGU4 */
+ SWI5_EGU5_IRQn = 25, /*!< 25 SWI5_EGU5 */
+ TIMER3_IRQn = 26, /*!< 26 TIMER3 */
+ TIMER4_IRQn = 27, /*!< 27 TIMER4 */
+ PWM0_IRQn = 28, /*!< 28 PWM0 */
+ PDM_IRQn = 29, /*!< 29 PDM */
+ MWU_IRQn = 32, /*!< 32 MWU */
+ PWM1_IRQn = 33, /*!< 33 PWM1 */
+ PWM2_IRQn = 34, /*!< 34 PWM2 */
+ SPIM2_SPIS2_SPI2_IRQn = 35, /*!< 35 SPIM2_SPIS2_SPI2 */
+ RTC2_IRQn = 36, /*!< 36 RTC2 */
+ I2S_IRQn = 37, /*!< 37 I2S */
+ FPU_IRQn = 38, /*!< 38 FPU */
+ USBD_IRQn = 39, /*!< 39 USBD */
+ UARTE1_IRQn = 40, /*!< 40 UARTE1 */
+ QSPI_IRQn = 41, /*!< 41 QSPI */
+ CRYPTOCELL_IRQn = 42, /*!< 42 CRYPTOCELL */
+ PWM3_IRQn = 45, /*!< 45 PWM3 */
+ SPIM3_IRQn = 47 /*!< 47 SPIM3 */
+} IRQn_Type;
+
+
+/** @addtogroup Configuration_of_CMSIS
+ * @{
+ */
+
+
+/* ================================================================================ */
+/* ================ Processor and Core Peripheral Section ================ */
+/* ================================================================================ */
+
+/* ----------------Configuration of the Cortex-M4 Processor and Core Peripherals---------------- */
+#define __CM4_REV 0x0001 /*!< Cortex-M4 Core Revision */
+#define __MPU_PRESENT 1 /*!< MPU present or not */
+#define __NVIC_PRIO_BITS 3 /*!< Number of Bits used for Priority Levels */
+#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
+#define __FPU_PRESENT 1 /*!< FPU present or not */
+/** @} */ /* End of group Configuration_of_CMSIS */
+
+#include "core_cm4.h" /*!< Cortex-M4 processor and core peripherals */
+#include "system_nrf52840.h" /*!< nrf52840 System */
+
+
+/* ================================================================================ */
+/* ================ Device Specific Peripheral Section ================ */
+/* ================================================================================ */
+
+
+/** @addtogroup Device_Peripheral_Registers
+ * @{
+ */
+
+
+/* ------------------- Start of section using anonymous unions ------------------ */
+#if defined(__CC_ARM)
+ #pragma push
+ #pragma anon_unions
+#elif defined(__ICCARM__)
+ #pragma language=extended
+#elif defined(__GNUC__)
+ /* anonymous unions are enabled by default */
+#elif defined(__TMS470__)
+/* anonymous unions are enabled by default */
+#elif defined(__TASKING__)
+ #pragma warning 586
+#else
+ #warning Not supported compiler type
+#endif
+
+
+typedef struct {
+ __I uint32_t PART; /*!< Part code */
+ __I uint32_t VARIANT; /*!< Build code (hardware version and production configuration) */
+ __I uint32_t PACKAGE; /*!< Package option */
+ __I uint32_t RAM; /*!< RAM variant */
+ __I uint32_t FLASH; /*!< Flash variant */
+ __IO uint32_t UNUSED8[3]; /*!< Unspecified */
+} FICR_INFO_Type;
+
+typedef struct {
+ __I uint32_t A0; /*!< Slope definition A0 */
+ __I uint32_t A1; /*!< Slope definition A1 */
+ __I uint32_t A2; /*!< Slope definition A2 */
+ __I uint32_t A3; /*!< Slope definition A3 */
+ __I uint32_t A4; /*!< Slope definition A4 */
+ __I uint32_t A5; /*!< Slope definition A5 */
+ __I uint32_t B0; /*!< Y-intercept B0 */
+ __I uint32_t B1; /*!< Y-intercept B1 */
+ __I uint32_t B2; /*!< Y-intercept B2 */
+ __I uint32_t B3; /*!< Y-intercept B3 */
+ __I uint32_t B4; /*!< Y-intercept B4 */
+ __I uint32_t B5; /*!< Y-intercept B5 */
+ __I uint32_t T0; /*!< Segment end T0 */
+ __I uint32_t T1; /*!< Segment end T1 */
+ __I uint32_t T2; /*!< Segment end T2 */
+ __I uint32_t T3; /*!< Segment end T3 */
+ __I uint32_t T4; /*!< Segment end T4 */
+} FICR_TEMP_Type;
+
+typedef struct {
+ __I uint32_t TAGHEADER0; /*!< Default header for NFC tag. Software can read these values to
+ populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+ __I uint32_t TAGHEADER1; /*!< Default header for NFC tag. Software can read these values to
+ populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+ __I uint32_t TAGHEADER2; /*!< Default header for NFC tag. Software can read these values to
+ populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+ __I uint32_t TAGHEADER3; /*!< Default header for NFC tag. Software can read these values to
+ populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+} FICR_NFC_Type;
+
+typedef struct {
+ __I uint32_t BYTES; /*!< Amount of bytes for the required entropy bits */
+ __I uint32_t RCCUTOFF; /*!< Repetition counter cutoff */
+ __I uint32_t APCUTOFF; /*!< Adaptive proportion cutoff */
+ __I uint32_t STARTUP; /*!< Amount of bytes for the startup tests */
+ __I uint32_t ROSC1; /*!< Sample count for ring oscillator 1 */
+ __I uint32_t ROSC2; /*!< Sample count for ring oscillator 2 */
+ __I uint32_t ROSC3; /*!< Sample count for ring oscillator 3 */
+ __I uint32_t ROSC4; /*!< Sample count for ring oscillator 4 */
+} FICR_TRNG90B_Type;
+
+typedef struct {
+ __IO uint32_t POWER; /*!< Description cluster[n]: RAMn power control register */
+ __O uint32_t POWERSET; /*!< Description cluster[n]: RAMn power control set register */
+ __O uint32_t POWERCLR; /*!< Description cluster[n]: RAMn power control clear register */
+ __I uint32_t RESERVED0;
+} POWER_RAM_Type;
+
+typedef struct {
+ __IO uint32_t RTS; /*!< Pin select for RTS */
+ __IO uint32_t TXD; /*!< Pin select for TXD */
+ __IO uint32_t CTS; /*!< Pin select for CTS */
+ __IO uint32_t RXD; /*!< Pin select for RXD */
+} UART_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t RTS; /*!< Pin select for RTS signal */
+ __IO uint32_t TXD; /*!< Pin select for TXD signal */
+ __IO uint32_t CTS; /*!< Pin select for CTS signal */
+ __IO uint32_t RXD; /*!< Pin select for RXD signal */
+} UARTE_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+} UARTE_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+} UARTE_TXD_Type;
+
+typedef struct {
+ __IO uint32_t SCK; /*!< Pin select for SCK */
+ __IO uint32_t MOSI; /*!< Pin select for MOSI signal */
+ __IO uint32_t MISO; /*!< Pin select for MISO signal */
+} SPI_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t SCK; /*!< Pin select for SCK */
+ __IO uint32_t MOSI; /*!< Pin select for MOSI signal */
+ __IO uint32_t MISO; /*!< Pin select for MISO signal */
+ __IO uint32_t CSN; /*!< Pin select for CSN */
+} SPIM_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+ __IO uint32_t LIST; /*!< EasyDMA list type */
+} SPIM_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Number of bytes in transmit buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+ __IO uint32_t LIST; /*!< EasyDMA list type */
+} SPIM_TXD_Type;
+
+typedef struct {
+ __IO uint32_t RXDELAY; /*!< Sample delay for input serial data on MISO */
+ __IO uint32_t CSNDUR; /*!< Minimum duration between edge of CSN and edge of SCK and minimum
+ duration CSN must stay high between transactions */
+} SPIM_IFTIMING_Type;
+
+typedef struct {
+ __IO uint32_t SCK; /*!< Pin select for SCK */
+ __IO uint32_t MISO; /*!< Pin select for MISO signal */
+ __IO uint32_t MOSI; /*!< Pin select for MOSI signal */
+ __IO uint32_t CSN; /*!< Pin select for CSN signal */
+} SPIS_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< RXD data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes received in last granted transaction */
+} SPIS_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< TXD data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transmitted in last granted transaction */
+} SPIS_TXD_Type;
+
+typedef struct {
+ __IO uint32_t SCL; /*!< Pin select for SCL */
+ __IO uint32_t SDA; /*!< Pin select for SDA */
+} TWI_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t SCL; /*!< Pin select for SCL signal */
+ __IO uint32_t SDA; /*!< Pin select for SDA signal */
+} TWIM_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in receive buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+ __IO uint32_t LIST; /*!< EasyDMA list type */
+} TWIM_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in transmit buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+ __IO uint32_t LIST; /*!< EasyDMA list type */
+} TWIM_TXD_Type;
+
+typedef struct {
+ __IO uint32_t SCL; /*!< Pin select for SCL signal */
+ __IO uint32_t SDA; /*!< Pin select for SDA signal */
+} TWIS_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< RXD Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in RXD buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last RXD transaction */
+} TWIS_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< TXD Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes in TXD buffer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last TXD transaction */
+} TWIS_TXD_Type;
+
+typedef struct {
+ __IO uint32_t RX; /*!< Result of last incoming frame */
+} NFCT_FRAMESTATUS_Type;
+
+typedef struct {
+ __IO uint32_t FRAMECONFIG; /*!< Configuration of outgoing frames */
+ __IO uint32_t AMOUNT; /*!< Size of outgoing frame */
+} NFCT_TXD_Type;
+
+typedef struct {
+ __IO uint32_t FRAMECONFIG; /*!< Configuration of incoming frames */
+ __I uint32_t AMOUNT; /*!< Size of last incoming frame */
+} NFCT_RXD_Type;
+
+typedef struct {
+ __IO uint32_t LIMITH; /*!< Description cluster[n]: Last result is equal or above CH[n].LIMIT.HIGH */
+ __IO uint32_t LIMITL; /*!< Description cluster[n]: Last result is equal or below CH[n].LIMIT.LOW */
+} SAADC_EVENTS_CH_Type;
+
+typedef struct {
+ __IO uint32_t PSELP; /*!< Description cluster[n]: Input positive pin selection for CH[n] */
+ __IO uint32_t PSELN; /*!< Description cluster[n]: Input negative pin selection for CH[n] */
+ __IO uint32_t CONFIG; /*!< Description cluster[n]: Input configuration for CH[n] */
+ __IO uint32_t LIMIT; /*!< Description cluster[n]: High/low limits for event monitoring
+ of a channel */
+} SAADC_CH_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of 16-bit samples to be written to output RAM
+ buffer */
+ __I uint32_t AMOUNT; /*!< Number of 16-bit samples written to output RAM buffer since
+ the previous START task */
+} SAADC_RESULT_Type;
+
+typedef struct {
+ __IO uint32_t LED; /*!< Pin select for LED signal */
+ __IO uint32_t A; /*!< Pin select for A signal */
+ __IO uint32_t B; /*!< Pin select for B signal */
+} QDEC_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Description cluster[n]: Beginning address in RAM of this sequence */
+ __IO uint32_t CNT; /*!< Description cluster[n]: Number of values (duty cycles) in this
+ sequence */
+ __IO uint32_t REFRESH; /*!< Description cluster[n]: Number of additional PWM periods between
+ samples loaded into compare register */
+ __IO uint32_t ENDDELAY; /*!< Description cluster[n]: Time added after the sequence */
+ __I uint32_t RESERVED1[4];
+} PWM_SEQ_Type;
+
+typedef struct {
+ __IO uint32_t OUT[4]; /*!< Description collection[n]: Output pin select for PWM channel
+ n */
+} PWM_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t CLK; /*!< Pin number configuration for PDM CLK signal */
+ __IO uint32_t DIN; /*!< Pin number configuration for PDM DIN signal */
+} PDM_PSEL_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< RAM address pointer to write samples to with EasyDMA */
+ __IO uint32_t MAXCNT; /*!< Number of samples to allocate memory for in EasyDMA mode */
+} PDM_SAMPLE_Type;
+
+typedef struct {
+ __IO uint32_t ADDR; /*!< Description cluster[n]: Configure the word-aligned start address
+ of region n to protect */
+ __IO uint32_t SIZE; /*!< Description cluster[n]: Size of region to protect counting from
+ address ACL[n].ADDR. Write '0' as no effect. */
+ __IO uint32_t PERM; /*!< Description cluster[n]: Access permissions for region n as defined
+ by start address ACL[n].ADDR and size ACL[n].SIZE */
+ __IO uint32_t UNUSED0; /*!< Unspecified */
+} ACL_ACL_Type;
+
+typedef struct {
+ __O uint32_t EN; /*!< Description cluster[n]: Enable channel group n */
+ __O uint32_t DIS; /*!< Description cluster[n]: Disable channel group n */
+} PPI_TASKS_CHG_Type;
+
+typedef struct {
+ __IO uint32_t EEP; /*!< Description cluster[n]: Channel n event end-point */
+ __IO uint32_t TEP; /*!< Description cluster[n]: Channel n task end-point */
+} PPI_CH_Type;
+
+typedef struct {
+ __IO uint32_t TEP; /*!< Description cluster[n]: Channel n task end-point */
+} PPI_FORK_Type;
+
+typedef struct {
+ __IO uint32_t WA; /*!< Description cluster[n]: Write access to region n detected */
+ __IO uint32_t RA; /*!< Description cluster[n]: Read access to region n detected */
+} MWU_EVENTS_REGION_Type;
+
+typedef struct {
+ __IO uint32_t WA; /*!< Description cluster[n]: Write access to peripheral region n
+ detected */
+ __IO uint32_t RA; /*!< Description cluster[n]: Read access to peripheral region n detected */
+} MWU_EVENTS_PREGION_Type;
+
+typedef struct {
+ __IO uint32_t SUBSTATWA; /*!< Description cluster[n]: Source of event/interrupt in region
+ n, write access detected while corresponding subregion was enabled
+ for watching */
+ __IO uint32_t SUBSTATRA; /*!< Description cluster[n]: Source of event/interrupt in region
+ n, read access detected while corresponding subregion was enabled
+ for watching */
+} MWU_PERREGION_Type;
+
+typedef struct {
+ __IO uint32_t START; /*!< Description cluster[n]: Start address for region n */
+ __IO uint32_t END; /*!< Description cluster[n]: End address of region n */
+ __I uint32_t RESERVED2[2];
+} MWU_REGION_Type;
+
+typedef struct {
+ __I uint32_t START; /*!< Description cluster[n]: Reserved for future use */
+ __I uint32_t END; /*!< Description cluster[n]: Reserved for future use */
+ __IO uint32_t SUBS; /*!< Description cluster[n]: Subregions of region n */
+ __I uint32_t RESERVED3;
+} MWU_PREGION_Type;
+
+typedef struct {
+ __IO uint32_t MODE; /*!< I2S mode. */
+ __IO uint32_t RXEN; /*!< Reception (RX) enable. */
+ __IO uint32_t TXEN; /*!< Transmission (TX) enable. */
+ __IO uint32_t MCKEN; /*!< Master clock generator enable. */
+ __IO uint32_t MCKFREQ; /*!< Master clock generator frequency. */
+ __IO uint32_t RATIO; /*!< MCK / LRCK ratio. */
+ __IO uint32_t SWIDTH; /*!< Sample width. */
+ __IO uint32_t ALIGN; /*!< Alignment of sample within a frame. */
+ __IO uint32_t FORMAT; /*!< Frame format. */
+ __IO uint32_t CHANNELS; /*!< Enable channels. */
+} I2S_CONFIG_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Receive buffer RAM start address. */
+} I2S_RXD_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Transmit buffer RAM start address. */
+} I2S_TXD_Type;
+
+typedef struct {
+ __IO uint32_t MAXCNT; /*!< Size of RXD and TXD buffers. */
+} I2S_RXTXD_Type;
+
+typedef struct {
+ __IO uint32_t MCK; /*!< Pin select for MCK signal. */
+ __IO uint32_t SCK; /*!< Pin select for SCK signal. */
+ __IO uint32_t LRCK; /*!< Pin select for LRCK signal. */
+ __IO uint32_t SDIN; /*!< Pin select for SDIN signal. */
+ __IO uint32_t SDOUT; /*!< Pin select for SDOUT signal. */
+} I2S_PSEL_Type;
+
+typedef struct {
+ __I uint32_t EPIN[8]; /*!< Description collection[n]: IN endpoint halted status. Can be
+ used as is as response to a GetStatus() request to endpoint. */
+ __I uint32_t RESERVED4;
+ __I uint32_t EPOUT[8]; /*!< Description collection[n]: OUT endpoint halted status. Can be
+ used as is as response to a GetStatus() request to endpoint. */
+} USBD_HALTED_Type;
+
+typedef struct {
+ __IO uint32_t EPOUT[8]; /*!< Description collection[n]: Number of bytes received last in
+ the data stage of this OUT endpoint */
+ __I uint32_t ISOOUT; /*!< Number of bytes received last on this ISO OUT data endpoint */
+} USBD_SIZE_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Description cluster[n]: Data pointer */
+ __IO uint32_t MAXCNT; /*!< Description cluster[n]: Maximum number of bytes to transfer */
+ __I uint32_t AMOUNT; /*!< Description cluster[n]: Number of bytes transferred in the last
+ transaction */
+ __I uint32_t RESERVED5[2];
+} USBD_EPIN_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes to transfer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+} USBD_ISOIN_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Description cluster[n]: Data pointer */
+ __IO uint32_t MAXCNT; /*!< Description cluster[n]: Maximum number of bytes to transfer */
+ __I uint32_t AMOUNT; /*!< Description cluster[n]: Number of bytes transferred in the last
+ transaction */
+ __I uint32_t RESERVED6[2];
+} USBD_EPOUT_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Data pointer */
+ __IO uint32_t MAXCNT; /*!< Maximum number of bytes to transfer */
+ __I uint32_t AMOUNT; /*!< Number of bytes transferred in the last transaction */
+} USBD_ISOOUT_Type;
+
+typedef struct {
+ __IO uint32_t SRC; /*!< Flash memory source address */
+ __IO uint32_t DST; /*!< RAM destination address */
+ __IO uint32_t CNT; /*!< Read transfer length */
+} QSPI_READ_Type;
+
+typedef struct {
+ __IO uint32_t DST; /*!< Flash destination address */
+ __IO uint32_t SRC; /*!< RAM source address */
+ __IO uint32_t CNT; /*!< Write transfer length */
+} QSPI_WRITE_Type;
+
+typedef struct {
+ __IO uint32_t PTR; /*!< Start address of flash block to be erased */
+ __IO uint32_t LEN; /*!< Size of block to be erased. */
+} QSPI_ERASE_Type;
+
+typedef struct {
+ __IO uint32_t SCK; /*!< Pin select for serial clock SCK */
+ __IO uint32_t CSN; /*!< Pin select for chip select signal CSN. */
+ __I uint32_t RESERVED7;
+ __IO uint32_t IO0; /*!< Pin select for serial data MOSI/IO0. */
+ __IO uint32_t IO1; /*!< Pin select for serial data MISO/IO1. */
+ __IO uint32_t IO2; /*!< Pin select for serial data IO2. */
+ __IO uint32_t IO3; /*!< Pin select for serial data IO3. */
+} QSPI_PSEL_Type;
+
+
+/* ================================================================================ */
+/* ================ FICR ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Factory information configuration registers (FICR)
+ */
+
+typedef struct { /*!< FICR Structure */
+ __I uint32_t RESERVED0[4];
+ __I uint32_t CODEPAGESIZE; /*!< Code memory page size */
+ __I uint32_t CODESIZE; /*!< Code memory size */
+ __I uint32_t RESERVED1[18];
+ __I uint32_t DEVICEID[2]; /*!< Description collection[n]: Device identifier */
+ __I uint32_t RESERVED2[6];
+ __I uint32_t ER[4]; /*!< Description collection[n]: Encryption root, word n */
+ __I uint32_t IR[4]; /*!< Description collection[n]: Identity Root, word n */
+ __I uint32_t DEVICEADDRTYPE; /*!< Device address type */
+ __I uint32_t DEVICEADDR[2]; /*!< Description collection[n]: Device address n */
+ __I uint32_t RESERVED3[21];
+ FICR_INFO_Type INFO; /*!< Device info */
+ __I uint32_t RESERVED4[140];
+ __I uint32_t PRODTEST[3]; /*!< Description collection[n]: Production test signature n */
+ __I uint32_t RESERVED5[42];
+ FICR_TEMP_Type TEMP; /*!< Registers storing factory TEMP module linearization coefficients */
+ __I uint32_t RESERVED6[2];
+ FICR_NFC_Type NFC; /*!< Unspecified */
+ __I uint32_t RESERVED7[488];
+ FICR_TRNG90B_Type TRNG90B; /*!< NIST800-90B RNG calibration data */
+} NRF_FICR_Type;
+
+
+/* ================================================================================ */
+/* ================ UICR ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief User information configuration registers (UICR)
+ */
+
+typedef struct { /*!< UICR Structure */
+ __IO uint32_t UNUSED0; /*!< Unspecified */
+ __IO uint32_t UNUSED1; /*!< Unspecified */
+ __IO uint32_t UNUSED2; /*!< Unspecified */
+ __I uint32_t RESERVED0;
+ __IO uint32_t UNUSED3; /*!< Unspecified */
+ __IO uint32_t NRFFW[15]; /*!< Description collection[n]: Reserved for Nordic firmware design */
+ __IO uint32_t NRFHW[12]; /*!< Description collection[n]: Reserved for Nordic hardware design */
+ __IO uint32_t CUSTOMER[32]; /*!< Description collection[n]: Reserved for customer */
+ __I uint32_t RESERVED1[64];
+ __IO uint32_t PSELRESET[2]; /*!< Description collection[n]: Mapping of the nRESET function */
+ __IO uint32_t APPROTECT; /*!< Access port protection */
+ __IO uint32_t NFCPINS; /*!< Setting of pins dedicated to NFC functionality: NFC antenna
+ or GPIO */
+ __IO uint32_t DEBUGCTRL; /*!< Processor debug control */
+ __I uint32_t RESERVED2[60];
+ __IO uint32_t REGOUT0; /*!< GPIO reference voltage / external output supply voltage in high
+ voltage mode */
+} NRF_UICR_Type;
+
+
+/* ================================================================================ */
+/* ================ CLOCK ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Clock control (CLOCK)
+ */
+
+typedef struct { /*!< CLOCK Structure */
+ __O uint32_t TASKS_HFCLKSTART; /*!< Start HFXO crystal oscillator */
+ __O uint32_t TASKS_HFCLKSTOP; /*!< Stop HFXO crystal oscillator */
+ __O uint32_t TASKS_LFCLKSTART; /*!< Start LFCLK */
+ __O uint32_t TASKS_LFCLKSTOP; /*!< Stop LFCLK */
+ __O uint32_t TASKS_CAL; /*!< Start calibration of LFRC */
+ __O uint32_t TASKS_CTSTART; /*!< Start calibration timer */
+ __O uint32_t TASKS_CTSTOP; /*!< Stop calibration timer */
+ __I uint32_t RESERVED0[57];
+ __IO uint32_t EVENTS_HFCLKSTARTED; /*!< HFXO crystal oscillator started */
+ __IO uint32_t EVENTS_LFCLKSTARTED; /*!< LFCLK started */
+ __I uint32_t RESERVED1;
+ __IO uint32_t EVENTS_DONE; /*!< Calibration of LFRC completed */
+ __IO uint32_t EVENTS_CTTO; /*!< Calibration timer timeout */
+ __I uint32_t RESERVED2[5];
+ __IO uint32_t EVENTS_CTSTARTED; /*!< Calibration timer has been started and is ready to process new
+ tasks */
+ __IO uint32_t EVENTS_CTSTOPPED; /*!< Calibration timer has been stopped and is ready to process new
+ tasks */
+ __I uint32_t RESERVED3[117];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED4[63];
+ __I uint32_t HFCLKRUN; /*!< Status indicating that HFCLKSTART task has been triggered */
+ __I uint32_t HFCLKSTAT; /*!< HFCLK status */
+ __I uint32_t RESERVED5;
+ __I uint32_t LFCLKRUN; /*!< Status indicating that LFCLKSTART task has been triggered */
+ __I uint32_t LFCLKSTAT; /*!< LFCLK status */
+ __I uint32_t LFCLKSRCCOPY; /*!< Copy of LFCLKSRC register, set when LFCLKSTART task was triggered */
+ __I uint32_t RESERVED6[62];
+ __IO uint32_t LFCLKSRC; /*!< Clock source for the LFCLK */
+ __I uint32_t RESERVED7[3];
+ __IO uint32_t HFXODEBOUNCE; /*!< HFXO debounce time. The HFXO is started by triggering the TASKS_HFCLKSTART
+ task. */
+ __I uint32_t RESERVED8[3];
+ __IO uint32_t CTIV; /*!< Calibration timer interval */
+ __I uint32_t RESERVED9[8];
+ __IO uint32_t TRACECONFIG; /*!< Clocking options for the trace port debug interface */
+ __I uint32_t RESERVED10[21];
+ __IO uint32_t LFRCMODE; /*!< LFRC mode configuration */
+} NRF_CLOCK_Type;
+
+
+/* ================================================================================ */
+/* ================ POWER ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Power control (POWER)
+ */
+
+typedef struct { /*!< POWER Structure */
+ __I uint32_t RESERVED0[30];
+ __O uint32_t TASKS_CONSTLAT; /*!< Enable constant latency mode */
+ __O uint32_t TASKS_LOWPWR; /*!< Enable low power mode (variable latency) */
+ __I uint32_t RESERVED1[34];
+ __IO uint32_t EVENTS_POFWARN; /*!< Power failure warning */
+ __I uint32_t RESERVED2[2];
+ __IO uint32_t EVENTS_SLEEPENTER; /*!< CPU entered WFI/WFE sleep */
+ __IO uint32_t EVENTS_SLEEPEXIT; /*!< CPU exited WFI/WFE sleep */
+ __IO uint32_t EVENTS_USBDETECTED; /*!< Voltage supply detected on VBUS */
+ __IO uint32_t EVENTS_USBREMOVED; /*!< Voltage supply removed from VBUS */
+ __IO uint32_t EVENTS_USBPWRRDY; /*!< USB 3.3 V supply ready */
+ __I uint32_t RESERVED3[119];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED4[61];
+ __IO uint32_t RESETREAS; /*!< Reset reason */
+ __I uint32_t RESERVED5[9];
+ __I uint32_t RAMSTATUS; /*!< Deprecated register - RAM status register */
+ __I uint32_t RESERVED6[3];
+ __I uint32_t USBREGSTATUS; /*!< USB supply status */
+ __I uint32_t RESERVED7[49];
+ __O uint32_t SYSTEMOFF; /*!< System OFF register */
+ __I uint32_t RESERVED8[3];
+ __IO uint32_t POFCON; /*!< Power-fail comparator configuration */
+ __I uint32_t RESERVED9[2];
+ __IO uint32_t GPREGRET; /*!< General purpose retention register */
+ __IO uint32_t GPREGRET2; /*!< General purpose retention register */
+ __I uint32_t RESERVED10[21];
+ __IO uint32_t DCDCEN; /*!< Enable DC/DC converter for REG1 stage. */
+ __I uint32_t RESERVED11;
+ __IO uint32_t DCDCEN0; /*!< Enable DC/DC converter for REG0 stage. */
+ __I uint32_t RESERVED12[47];
+ __I uint32_t MAINREGSTATUS; /*!< Main supply status */
+ __I uint32_t RESERVED13[175];
+ POWER_RAM_Type RAM[9]; /*!< Unspecified */
+} NRF_POWER_Type;
+
+
+/* ================================================================================ */
+/* ================ RADIO ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief 2.4 GHz radio (RADIO)
+ */
+
+typedef struct { /*!< RADIO Structure */
+ __O uint32_t TASKS_TXEN; /*!< Enable RADIO in TX mode */
+ __O uint32_t TASKS_RXEN; /*!< Enable RADIO in RX mode */
+ __O uint32_t TASKS_START; /*!< Start RADIO */
+ __O uint32_t TASKS_STOP; /*!< Stop RADIO */
+ __O uint32_t TASKS_DISABLE; /*!< Disable RADIO */
+ __O uint32_t TASKS_RSSISTART; /*!< Start the RSSI and take one single sample of the receive signal
+ strength */
+ __O uint32_t TASKS_RSSISTOP; /*!< Stop the RSSI measurement */
+ __O uint32_t TASKS_BCSTART; /*!< Start the bit counter */
+ __O uint32_t TASKS_BCSTOP; /*!< Stop the bit counter */
+ __O uint32_t TASKS_EDSTART; /*!< Start the energy detect measurement used in IEEE 802.15.4 mode */
+ __O uint32_t TASKS_EDSTOP; /*!< Stop the energy detect measurement */
+ __O uint32_t TASKS_CCASTART; /*!< Start the clear channel assessment used in IEEE 802.15.4 mode */
+ __O uint32_t TASKS_CCASTOP; /*!< Stop the clear channel assessment */
+ __I uint32_t RESERVED0[51];
+ __IO uint32_t EVENTS_READY; /*!< RADIO has ramped up and is ready to be started */
+ __IO uint32_t EVENTS_ADDRESS; /*!< Address sent or received */
+ __IO uint32_t EVENTS_PAYLOAD; /*!< Packet payload sent or received */
+ __IO uint32_t EVENTS_END; /*!< Packet sent or received */
+ __IO uint32_t EVENTS_DISABLED; /*!< RADIO has been disabled */
+ __IO uint32_t EVENTS_DEVMATCH; /*!< A device address match occurred on the last received packet */
+ __IO uint32_t EVENTS_DEVMISS; /*!< No device address match occurred on the last received packet */
+ __IO uint32_t EVENTS_RSSIEND; /*!< Sampling of receive signal strength complete */
+ __I uint32_t RESERVED1[2];
+ __IO uint32_t EVENTS_BCMATCH; /*!< Bit counter reached bit count value */
+ __I uint32_t RESERVED2;
+ __IO uint32_t EVENTS_CRCOK; /*!< Packet received with CRC ok */
+ __IO uint32_t EVENTS_CRCERROR; /*!< Packet received with CRC error */
+ __IO uint32_t EVENTS_FRAMESTART; /*!< IEEE 802.15.4 length field received */
+ __IO uint32_t EVENTS_EDEND; /*!< Sampling of energy detection complete. A new ED sample is ready
+ for readout from the RADIO.EDSAMPLE register. */
+ __IO uint32_t EVENTS_EDSTOPPED; /*!< The sampling of energy detection has stopped */
+ __IO uint32_t EVENTS_CCAIDLE; /*!< Wireless medium in idle - clear to send */
+ __IO uint32_t EVENTS_CCABUSY; /*!< Wireless medium busy - do not send */
+ __IO uint32_t EVENTS_CCASTOPPED; /*!< The CCA has stopped */
+ __IO uint32_t EVENTS_RATEBOOST; /*!< Ble_LR CI field received, receive mode is changed from Ble_LR125Kbit
+ to Ble_LR500Kbit. */
+ __IO uint32_t EVENTS_TXREADY; /*!< RADIO has ramped up and is ready to be started TX path */
+ __IO uint32_t EVENTS_RXREADY; /*!< RADIO has ramped up and is ready to be started RX path */
+ __IO uint32_t EVENTS_MHRMATCH; /*!< MAC header match found */
+ __I uint32_t RESERVED3[3];
+ __IO uint32_t EVENTS_PHYEND; /*!< Generated in Ble_LR125Kbit, Ble_LR500Kbit and BleIeee802154_250Kbit
+ modes when last bit is sent on air. */
+ __I uint32_t RESERVED4[36];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED5[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED6[61];
+ __I uint32_t CRCSTATUS; /*!< CRC status */
+ __I uint32_t RESERVED7;
+ __I uint32_t RXMATCH; /*!< Received address */
+ __I uint32_t RXCRC; /*!< CRC field of previously received packet */
+ __I uint32_t DAI; /*!< Device address match index */
+ __I uint32_t PDUSTAT; /*!< Payload status */
+ __I uint32_t RESERVED8[59];
+ __IO uint32_t PACKETPTR; /*!< Packet pointer */
+ __IO uint32_t FREQUENCY; /*!< Frequency */
+ __IO uint32_t TXPOWER; /*!< Output power */
+ __IO uint32_t MODE; /*!< Data rate and modulation */
+ __IO uint32_t PCNF0; /*!< Packet configuration register 0 */
+ __IO uint32_t PCNF1; /*!< Packet configuration register 1 */
+ __IO uint32_t BASE0; /*!< Base address 0 */
+ __IO uint32_t BASE1; /*!< Base address 1 */
+ __IO uint32_t PREFIX0; /*!< Prefixes bytes for logical addresses 0-3 */
+ __IO uint32_t PREFIX1; /*!< Prefixes bytes for logical addresses 4-7 */
+ __IO uint32_t TXADDRESS; /*!< Transmit address select */
+ __IO uint32_t RXADDRESSES; /*!< Receive address select */
+ __IO uint32_t CRCCNF; /*!< CRC configuration */
+ __IO uint32_t CRCPOLY; /*!< CRC polynomial */
+ __IO uint32_t CRCINIT; /*!< CRC initial value */
+ __I uint32_t RESERVED9;
+ __IO uint32_t TIFS; /*!< Interframe spacing in us */
+ __I uint32_t RSSISAMPLE; /*!< RSSI sample */
+ __I uint32_t RESERVED10;
+ __I uint32_t STATE; /*!< Current radio state */
+ __IO uint32_t DATAWHITEIV; /*!< Data whitening initial value */
+ __I uint32_t RESERVED11[2];
+ __IO uint32_t BCC; /*!< Bit counter compare */
+ __I uint32_t RESERVED12[39];
+ __IO uint32_t DAB[8]; /*!< Description collection[n]: Device address base segment n */
+ __IO uint32_t DAP[8]; /*!< Description collection[n]: Device address prefix n */
+ __IO uint32_t DACNF; /*!< Device address match configuration */
+ __IO uint32_t MHRMATCHCONF; /*!< Search pattern configuration */
+ __IO uint32_t MHRMATCHMAS; /*!< Pattern mask */
+ __I uint32_t RESERVED13;
+ __IO uint32_t MODECNF0; /*!< Radio mode configuration register 0 */
+ __I uint32_t RESERVED14[3];
+ __IO uint32_t SFD; /*!< IEEE 802.15.4 start of frame delimiter */
+ __IO uint32_t EDCNT; /*!< IEEE 802.15.4 energy detect loop count */
+ __IO uint32_t EDSAMPLE; /*!< IEEE 802.15.4 energy detect level */
+ __IO uint32_t CCACTRL; /*!< IEEE 802.15.4 clear channel assessment control */
+ __I uint32_t RESERVED15[611];
+ __IO uint32_t POWER; /*!< Peripheral power control */
+} NRF_RADIO_Type;
+
+
+/* ================================================================================ */
+/* ================ UART ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Universal Asynchronous Receiver/Transmitter (UART)
+ */
+
+typedef struct { /*!< UART Structure */
+ __O uint32_t TASKS_STARTRX; /*!< Start UART receiver */
+ __O uint32_t TASKS_STOPRX; /*!< Stop UART receiver */
+ __O uint32_t TASKS_STARTTX; /*!< Start UART transmitter */
+ __O uint32_t TASKS_STOPTX; /*!< Stop UART transmitter */
+ __I uint32_t RESERVED0[3];
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend UART */
+ __I uint32_t RESERVED1[56];
+ __IO uint32_t EVENTS_CTS; /*!< CTS is activated (set low). Clear To Send. */
+ __IO uint32_t EVENTS_NCTS; /*!< CTS is deactivated (set high). Not Clear To Send. */
+ __IO uint32_t EVENTS_RXDRDY; /*!< Data received in RXD */
+ __I uint32_t RESERVED2[4];
+ __IO uint32_t EVENTS_TXDRDY; /*!< Data sent from TXD */
+ __I uint32_t RESERVED3;
+ __IO uint32_t EVENTS_ERROR; /*!< Error detected */
+ __I uint32_t RESERVED4[7];
+ __IO uint32_t EVENTS_RXTO; /*!< Receiver timeout */
+ __I uint32_t RESERVED5[46];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED6[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED7[93];
+ __IO uint32_t ERRORSRC; /*!< Error source */
+ __I uint32_t RESERVED8[31];
+ __IO uint32_t ENABLE; /*!< Enable UART */
+ __I uint32_t RESERVED9;
+ UART_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RXD; /*!< RXD register */
+ __O uint32_t TXD; /*!< TXD register */
+ __I uint32_t RESERVED10;
+ __IO uint32_t BAUDRATE; /*!< Baud rate. Accuracy depends on the HFCLK source selected. */
+ __I uint32_t RESERVED11[17];
+ __IO uint32_t CONFIG; /*!< Configuration of parity and hardware flow control */
+} NRF_UART_Type;
+
+
+/* ================================================================================ */
+/* ================ UARTE ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief UART with EasyDMA 0 (UARTE)
+ */
+
+typedef struct { /*!< UARTE Structure */
+ __O uint32_t TASKS_STARTRX; /*!< Start UART receiver */
+ __O uint32_t TASKS_STOPRX; /*!< Stop UART receiver */
+ __O uint32_t TASKS_STARTTX; /*!< Start UART transmitter */
+ __O uint32_t TASKS_STOPTX; /*!< Stop UART transmitter */
+ __I uint32_t RESERVED0[7];
+ __O uint32_t TASKS_FLUSHRX; /*!< Flush RX FIFO into RX buffer */
+ __I uint32_t RESERVED1[52];
+ __IO uint32_t EVENTS_CTS; /*!< CTS is activated (set low). Clear To Send. */
+ __IO uint32_t EVENTS_NCTS; /*!< CTS is deactivated (set high). Not Clear To Send. */
+ __IO uint32_t EVENTS_RXDRDY; /*!< Data received in RXD (but potentially not yet transferred to
+ Data RAM) */
+ __I uint32_t RESERVED2;
+ __IO uint32_t EVENTS_ENDRX; /*!< Receive buffer is filled up */
+ __I uint32_t RESERVED3[2];
+ __IO uint32_t EVENTS_TXDRDY; /*!< Data sent from TXD */
+ __IO uint32_t EVENTS_ENDTX; /*!< Last TX byte transmitted */
+ __IO uint32_t EVENTS_ERROR; /*!< Error detected */
+ __I uint32_t RESERVED4[7];
+ __IO uint32_t EVENTS_RXTO; /*!< Receiver timeout */
+ __I uint32_t RESERVED5;
+ __IO uint32_t EVENTS_RXSTARTED; /*!< UART receiver has started */
+ __IO uint32_t EVENTS_TXSTARTED; /*!< UART transmitter has started */
+ __I uint32_t RESERVED6;
+ __IO uint32_t EVENTS_TXSTOPPED; /*!< Transmitter stopped */
+ __I uint32_t RESERVED7[41];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED8[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED9[93];
+ __IO uint32_t ERRORSRC; /*!< Error source Note : this register is read / write one to clear. */
+ __I uint32_t RESERVED10[31];
+ __IO uint32_t ENABLE; /*!< Enable UART */
+ __I uint32_t RESERVED11;
+ UARTE_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED12[3];
+ __IO uint32_t BAUDRATE; /*!< Baud rate. Accuracy depends on the HFCLK source selected. */
+ __I uint32_t RESERVED13[3];
+ UARTE_RXD_Type RXD; /*!< RXD EasyDMA channel */
+ __I uint32_t RESERVED14;
+ UARTE_TXD_Type TXD; /*!< TXD EasyDMA channel */
+ __I uint32_t RESERVED15[7];
+ __IO uint32_t CONFIG; /*!< Configuration of parity and hardware flow control */
+} NRF_UARTE_Type;
+
+
+/* ================================================================================ */
+/* ================ SPI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Serial Peripheral Interface 0 (SPI)
+ */
+
+typedef struct { /*!< SPI Structure */
+ __I uint32_t RESERVED0[66];
+ __IO uint32_t EVENTS_READY; /*!< TXD byte sent and RXD byte received */
+ __I uint32_t RESERVED1[126];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[125];
+ __IO uint32_t ENABLE; /*!< Enable SPI */
+ __I uint32_t RESERVED3;
+ SPI_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED4;
+ __I uint32_t RXD; /*!< RXD register */
+ __IO uint32_t TXD; /*!< TXD register */
+ __I uint32_t RESERVED5;
+ __IO uint32_t FREQUENCY; /*!< SPI frequency. Accuracy depends on the HFCLK source selected. */
+ __I uint32_t RESERVED6[11];
+ __IO uint32_t CONFIG; /*!< Configuration register */
+} NRF_SPI_Type;
+
+
+/* ================================================================================ */
+/* ================ SPIM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Serial Peripheral Interface Master with EasyDMA 0 (SPIM)
+ */
+
+typedef struct { /*!< SPIM Structure */
+ __I uint32_t RESERVED0[4];
+ __O uint32_t TASKS_START; /*!< Start SPI transaction */
+ __O uint32_t TASKS_STOP; /*!< Stop SPI transaction */
+ __I uint32_t RESERVED1;
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend SPI transaction */
+ __O uint32_t TASKS_RESUME; /*!< Resume SPI transaction */
+ __I uint32_t RESERVED2[56];
+ __IO uint32_t EVENTS_STOPPED; /*!< SPI transaction has stopped */
+ __I uint32_t RESERVED3[2];
+ __IO uint32_t EVENTS_ENDRX; /*!< End of RXD buffer reached */
+ __I uint32_t RESERVED4;
+ __IO uint32_t EVENTS_END; /*!< End of RXD buffer and TXD buffer reached */
+ __I uint32_t RESERVED5;
+ __IO uint32_t EVENTS_ENDTX; /*!< End of TXD buffer reached */
+ __I uint32_t RESERVED6[10];
+ __IO uint32_t EVENTS_STARTED; /*!< Transaction started */
+ __I uint32_t RESERVED7[44];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED8[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED9[61];
+ __IO uint32_t STALLSTAT; /*!< Stall status for EasyDMA RAM accesses. The fields in this register
+ is set to STALL by hardware whenever a stall occurres and can
+ be cleared (set to NOSTALL) by the CPU. */
+ __I uint32_t RESERVED10[63];
+ __IO uint32_t ENABLE; /*!< Enable SPIM */
+ __I uint32_t RESERVED11;
+ SPIM_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED12[3];
+ __IO uint32_t FREQUENCY; /*!< SPI frequency. Accuracy depends on the HFCLK source selected. */
+ __I uint32_t RESERVED13[3];
+ SPIM_RXD_Type RXD; /*!< RXD EasyDMA channel */
+ SPIM_TXD_Type TXD; /*!< TXD EasyDMA channel */
+ __IO uint32_t CONFIG; /*!< Configuration register */
+ __I uint32_t RESERVED14[2];
+ SPIM_IFTIMING_Type IFTIMING; /*!< Unspecified */
+ __IO uint32_t CSNPOL; /*!< Polarity of CSN output */
+ __IO uint32_t PSELDCX; /*!< Pin select for DCX signal */
+ __IO uint32_t DCXCNT; /*!< DCX configuration */
+ __I uint32_t RESERVED15[19];
+ __IO uint32_t ORC; /*!< Byte transmitted after TXD.MAXCNT bytes have been transmitted
+ in the case when RXD.MAXCNT is greater than TXD.MAXCNT */
+} NRF_SPIM_Type;
+
+
+/* ================================================================================ */
+/* ================ SPIS ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief SPI Slave 0 (SPIS)
+ */
+
+typedef struct { /*!< SPIS Structure */
+ __I uint32_t RESERVED0[9];
+ __O uint32_t TASKS_ACQUIRE; /*!< Acquire SPI semaphore */
+ __O uint32_t TASKS_RELEASE; /*!< Release SPI semaphore, enabling the SPI slave to acquire it */
+ __I uint32_t RESERVED1[54];
+ __IO uint32_t EVENTS_END; /*!< Granted transaction completed */
+ __I uint32_t RESERVED2[2];
+ __IO uint32_t EVENTS_ENDRX; /*!< End of RXD buffer reached */
+ __I uint32_t RESERVED3[5];
+ __IO uint32_t EVENTS_ACQUIRED; /*!< Semaphore acquired */
+ __I uint32_t RESERVED4[53];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED5[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED6[61];
+ __I uint32_t SEMSTAT; /*!< Semaphore status register */
+ __I uint32_t RESERVED7[15];
+ __IO uint32_t STATUS; /*!< Status from last transaction */
+ __I uint32_t RESERVED8[47];
+ __IO uint32_t ENABLE; /*!< Enable SPI slave */
+ __I uint32_t RESERVED9;
+ SPIS_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED10[7];
+ SPIS_RXD_Type RXD; /*!< Unspecified */
+ __I uint32_t RESERVED11;
+ SPIS_TXD_Type TXD; /*!< Unspecified */
+ __I uint32_t RESERVED12;
+ __IO uint32_t CONFIG; /*!< Configuration register */
+ __I uint32_t RESERVED13;
+ __IO uint32_t DEF; /*!< Default character. Character clocked out in case of an ignored
+ transaction. */
+ __I uint32_t RESERVED14[24];
+ __IO uint32_t ORC; /*!< Over-read character */
+} NRF_SPIS_Type;
+
+
+/* ================================================================================ */
+/* ================ TWI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief I2C compatible Two-Wire Interface 0 (TWI)
+ */
+
+typedef struct { /*!< TWI Structure */
+ __O uint32_t TASKS_STARTRX; /*!< Start TWI receive sequence */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STARTTX; /*!< Start TWI transmit sequence */
+ __I uint32_t RESERVED1[2];
+ __O uint32_t TASKS_STOP; /*!< Stop TWI transaction */
+ __I uint32_t RESERVED2;
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend TWI transaction */
+ __O uint32_t TASKS_RESUME; /*!< Resume TWI transaction */
+ __I uint32_t RESERVED3[56];
+ __IO uint32_t EVENTS_STOPPED; /*!< TWI stopped */
+ __IO uint32_t EVENTS_RXDREADY; /*!< TWI RXD byte received */
+ __I uint32_t RESERVED4[4];
+ __IO uint32_t EVENTS_TXDSENT; /*!< TWI TXD byte sent */
+ __I uint32_t RESERVED5;
+ __IO uint32_t EVENTS_ERROR; /*!< TWI error */
+ __I uint32_t RESERVED6[4];
+ __IO uint32_t EVENTS_BB; /*!< TWI byte boundary, generated before each byte that is sent or
+ received */
+ __I uint32_t RESERVED7[3];
+ __IO uint32_t EVENTS_SUSPENDED; /*!< TWI entered the suspended state */
+ __I uint32_t RESERVED8[45];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED9[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED10[110];
+ __IO uint32_t ERRORSRC; /*!< Error source */
+ __I uint32_t RESERVED11[14];
+ __IO uint32_t ENABLE; /*!< Enable TWI */
+ __I uint32_t RESERVED12;
+ TWI_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED13[2];
+ __I uint32_t RXD; /*!< RXD register */
+ __IO uint32_t TXD; /*!< TXD register */
+ __I uint32_t RESERVED14;
+ __IO uint32_t FREQUENCY; /*!< TWI frequency. Accuracy depends on the HFCLK source selected. */
+ __I uint32_t RESERVED15[24];
+ __IO uint32_t ADDRESS; /*!< Address used in the TWI transfer */
+} NRF_TWI_Type;
+
+
+/* ================================================================================ */
+/* ================ TWIM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief I2C compatible Two-Wire Master Interface with EasyDMA 0 (TWIM)
+ */
+
+typedef struct { /*!< TWIM Structure */
+ __O uint32_t TASKS_STARTRX; /*!< Start TWI receive sequence */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STARTTX; /*!< Start TWI transmit sequence */
+ __I uint32_t RESERVED1[2];
+ __O uint32_t TASKS_STOP; /*!< Stop TWI transaction. Must be issued while the TWI master is
+ not suspended. */
+ __I uint32_t RESERVED2;
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend TWI transaction */
+ __O uint32_t TASKS_RESUME; /*!< Resume TWI transaction */
+ __I uint32_t RESERVED3[56];
+ __IO uint32_t EVENTS_STOPPED; /*!< TWI stopped */
+ __I uint32_t RESERVED4[7];
+ __IO uint32_t EVENTS_ERROR; /*!< TWI error */
+ __I uint32_t RESERVED5[8];
+ __IO uint32_t EVENTS_SUSPENDED; /*!< Last byte has been sent out after the SUSPEND task has been
+ issued, TWI traffic is now suspended. */
+ __IO uint32_t EVENTS_RXSTARTED; /*!< Receive sequence started */
+ __IO uint32_t EVENTS_TXSTARTED; /*!< Transmit sequence started */
+ __I uint32_t RESERVED6[2];
+ __IO uint32_t EVENTS_LASTRX; /*!< Byte boundary, starting to receive the last byte */
+ __IO uint32_t EVENTS_LASTTX; /*!< Byte boundary, starting to transmit the last byte */
+ __I uint32_t RESERVED7[39];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED8[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED9[110];
+ __IO uint32_t ERRORSRC; /*!< Error source */
+ __I uint32_t RESERVED10[14];
+ __IO uint32_t ENABLE; /*!< Enable TWIM */
+ __I uint32_t RESERVED11;
+ TWIM_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED12[5];
+ __IO uint32_t FREQUENCY; /*!< TWI frequency. Accuracy depends on the HFCLK source selected. */
+ __I uint32_t RESERVED13[3];
+ TWIM_RXD_Type RXD; /*!< RXD EasyDMA channel */
+ TWIM_TXD_Type TXD; /*!< TXD EasyDMA channel */
+ __I uint32_t RESERVED14[13];
+ __IO uint32_t ADDRESS; /*!< Address used in the TWI transfer */
+} NRF_TWIM_Type;
+
+
+/* ================================================================================ */
+/* ================ TWIS ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief I2C compatible Two-Wire Slave Interface with EasyDMA 0 (TWIS)
+ */
+
+typedef struct { /*!< TWIS Structure */
+ __I uint32_t RESERVED0[5];
+ __O uint32_t TASKS_STOP; /*!< Stop TWI transaction */
+ __I uint32_t RESERVED1;
+ __O uint32_t TASKS_SUSPEND; /*!< Suspend TWI transaction */
+ __O uint32_t TASKS_RESUME; /*!< Resume TWI transaction */
+ __I uint32_t RESERVED2[3];
+ __O uint32_t TASKS_PREPARERX; /*!< Prepare the TWI slave to respond to a write command */
+ __O uint32_t TASKS_PREPARETX; /*!< Prepare the TWI slave to respond to a read command */
+ __I uint32_t RESERVED3[51];
+ __IO uint32_t EVENTS_STOPPED; /*!< TWI stopped */
+ __I uint32_t RESERVED4[7];
+ __IO uint32_t EVENTS_ERROR; /*!< TWI error */
+ __I uint32_t RESERVED5[9];
+ __IO uint32_t EVENTS_RXSTARTED; /*!< Receive sequence started */
+ __IO uint32_t EVENTS_TXSTARTED; /*!< Transmit sequence started */
+ __I uint32_t RESERVED6[4];
+ __IO uint32_t EVENTS_WRITE; /*!< Write command received */
+ __IO uint32_t EVENTS_READ; /*!< Read command received */
+ __I uint32_t RESERVED7[37];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED8[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED9[113];
+ __IO uint32_t ERRORSRC; /*!< Error source */
+ __I uint32_t MATCH; /*!< Status register indicating which address had a match */
+ __I uint32_t RESERVED10[10];
+ __IO uint32_t ENABLE; /*!< Enable TWIS */
+ __I uint32_t RESERVED11;
+ TWIS_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED12[9];
+ TWIS_RXD_Type RXD; /*!< RXD EasyDMA channel */
+ __I uint32_t RESERVED13;
+ TWIS_TXD_Type TXD; /*!< TXD EasyDMA channel */
+ __I uint32_t RESERVED14[14];
+ __IO uint32_t ADDRESS[2]; /*!< Description collection[n]: TWI slave address n */
+ __I uint32_t RESERVED15;
+ __IO uint32_t CONFIG; /*!< Configuration register for the address match mechanism */
+ __I uint32_t RESERVED16[10];
+ __IO uint32_t ORC; /*!< Over-read character. Character sent out in case of an over-read
+ of the transmit buffer. */
+} NRF_TWIS_Type;
+
+
+/* ================================================================================ */
+/* ================ NFCT ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief NFC-A compatible radio (NFCT)
+ */
+
+typedef struct { /*!< NFCT Structure */
+ __O uint32_t TASKS_ACTIVATE; /*!< Activate NFCT peripheral for incoming and outgoing frames, change
+ state to activated */
+ __O uint32_t TASKS_DISABLE; /*!< Disable NFCT peripheral */
+ __O uint32_t TASKS_SENSE; /*!< Enable NFC sense field mode, change state to sense mode */
+ __O uint32_t TASKS_STARTTX; /*!< Start transmission of an outgoing frame, change state to transmit */
+ __I uint32_t RESERVED0[3];
+ __O uint32_t TASKS_ENABLERXDATA; /*!< Initializes the EasyDMA for receive. */
+ __I uint32_t RESERVED1;
+ __O uint32_t TASKS_GOIDLE; /*!< Force state machine to IDLE state */
+ __O uint32_t TASKS_GOSLEEP; /*!< Force state machine to SLEEP_A state */
+ __I uint32_t RESERVED2[53];
+ __IO uint32_t EVENTS_READY; /*!< The NFCT peripheral is ready to receive and send frames */
+ __IO uint32_t EVENTS_FIELDDETECTED; /*!< Remote NFC field detected */
+ __IO uint32_t EVENTS_FIELDLOST; /*!< Remote NFC field lost */
+ __IO uint32_t EVENTS_TXFRAMESTART; /*!< Marks the start of the first symbol of a transmitted frame */
+ __IO uint32_t EVENTS_TXFRAMEEND; /*!< Marks the end of the last transmitted on-air symbol of a frame */
+ __IO uint32_t EVENTS_RXFRAMESTART; /*!< Marks the end of the first symbol of a received frame */
+ __IO uint32_t EVENTS_RXFRAMEEND; /*!< Received data has been checked (CRC, parity) and transferred
+ to RAM, and EasyDMA has ended accessing the RX buffer */
+ __IO uint32_t EVENTS_ERROR; /*!< NFC error reported. The ERRORSTATUS register contains details
+ on the source of the error. */
+ __I uint32_t RESERVED3[2];
+ __IO uint32_t EVENTS_RXERROR; /*!< NFC RX frame error reported. The FRAMESTATUS.RX register contains
+ details on the source of the error. */
+ __IO uint32_t EVENTS_ENDRX; /*!< RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full. */
+ __IO uint32_t EVENTS_ENDTX; /*!< Transmission of data in RAM has ended, and EasyDMA has ended
+ accessing the TX buffer */
+ __I uint32_t RESERVED4;
+ __IO uint32_t EVENTS_AUTOCOLRESSTARTED; /*!< Auto collision resolution process has started */
+ __I uint32_t RESERVED5[3];
+ __IO uint32_t EVENTS_COLLISION; /*!< NFC auto collision resolution error reported. */
+ __IO uint32_t EVENTS_SELECTED; /*!< NFC auto collision resolution successfully completed */
+ __IO uint32_t EVENTS_STARTED; /*!< EasyDMA is ready to receive or send frames. */
+ __I uint32_t RESERVED6[43];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED7[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED8[62];
+ __IO uint32_t ERRORSTATUS; /*!< NFC Error Status register */
+ __I uint32_t RESERVED9;
+ NFCT_FRAMESTATUS_Type FRAMESTATUS; /*!< Unspecified */
+ __I uint32_t NFCTAGSTATE; /*!< NfcTag state register */
+ __I uint32_t RESERVED10[3];
+ __I uint32_t SLEEPSTATE; /*!< Sleep state during automatic collision resolution */
+ __I uint32_t RESERVED11[6];
+ __I uint32_t FIELDPRESENT; /*!< Indicates the presence or not of a valid field */
+ __I uint32_t RESERVED12[49];
+ __IO uint32_t FRAMEDELAYMIN; /*!< Minimum frame delay */
+ __IO uint32_t FRAMEDELAYMAX; /*!< Maximum frame delay */
+ __IO uint32_t FRAMEDELAYMODE; /*!< Configuration register for the Frame Delay Timer */
+ __IO uint32_t PACKETPTR; /*!< Packet pointer for TXD and RXD data storage in Data RAM */
+ __IO uint32_t MAXLEN; /*!< Size of the RAM buffer allocated to TXD and RXD data storage
+ each */
+ NFCT_TXD_Type TXD; /*!< Unspecified */
+ NFCT_RXD_Type RXD; /*!< Unspecified */
+ __I uint32_t RESERVED13[26];
+ __IO uint32_t NFCID1_LAST; /*!< Last NFCID1 part (4, 7 or 10 bytes ID) */
+ __IO uint32_t NFCID1_2ND_LAST; /*!< Second last NFCID1 part (7 or 10 bytes ID) */
+ __IO uint32_t NFCID1_3RD_LAST; /*!< Third last NFCID1 part (10 bytes ID) */
+ __IO uint32_t AUTOCOLRESCONFIG; /*!< Controls the auto collision resolution function. This setting
+ must be done before the NFCT peripheral is enabled. */
+ __IO uint32_t SENSRES; /*!< NFC-A SENS_RES auto-response settings */
+ __IO uint32_t SELRES; /*!< NFC-A SEL_RES auto-response settings */
+} NRF_NFCT_Type;
+
+
+/* ================================================================================ */
+/* ================ GPIOTE ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief GPIO Tasks and Events (GPIOTE)
+ */
+
+typedef struct { /*!< GPIOTE Structure */
+ __O uint32_t TASKS_OUT[8]; /*!< Description collection[n]: Task for writing to pin specified
+ in CONFIG[n].PSEL. Action on pin is configured in CONFIG[n].POLARITY. */
+ __I uint32_t RESERVED0[4];
+ __O uint32_t TASKS_SET[8]; /*!< Description collection[n]: Task for writing to pin specified
+ in CONFIG[n].PSEL. Action on pin is to set it high. */
+ __I uint32_t RESERVED1[4];
+ __O uint32_t TASKS_CLR[8]; /*!< Description collection[n]: Task for writing to pin specified
+ in CONFIG[n].PSEL. Action on pin is to set it low. */
+ __I uint32_t RESERVED2[32];
+ __IO uint32_t EVENTS_IN[8]; /*!< Description collection[n]: Event generated from pin specified
+ in CONFIG[n].PSEL */
+ __I uint32_t RESERVED3[23];
+ __IO uint32_t EVENTS_PORT; /*!< Event generated from multiple input GPIO pins with SENSE mechanism
+ enabled */
+ __I uint32_t RESERVED4[97];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED5[129];
+ __IO uint32_t CONFIG[8]; /*!< Description collection[n]: Configuration for OUT[n], SET[n]
+ and CLR[n] tasks and IN[n] event */
+} NRF_GPIOTE_Type;
+
+
+/* ================================================================================ */
+/* ================ SAADC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Successive approximation register (SAR) analog-to-digital converter (SAADC)
+ */
+
+typedef struct { /*!< SAADC Structure */
+ __O uint32_t TASKS_START; /*!< Starts the SAADC and prepares the result buffer in RAM */
+ __O uint32_t TASKS_SAMPLE; /*!< Takes one SAADC sample */
+ __O uint32_t TASKS_STOP; /*!< Stops the SAADC and terminates all on-going conversions */
+ __O uint32_t TASKS_CALIBRATEOFFSET; /*!< Starts offset auto-calibration */
+ __I uint32_t RESERVED0[60];
+ __IO uint32_t EVENTS_STARTED; /*!< The SAADC has started */
+ __IO uint32_t EVENTS_END; /*!< The SAADC has filled up the result buffer */
+ __IO uint32_t EVENTS_DONE; /*!< A conversion task has been completed. Depending on the configuration,
+ multiple conversions might be needed for a result to be transferred
+ to RAM. */
+ __IO uint32_t EVENTS_RESULTDONE; /*!< Result ready for transfer to RAM */
+ __IO uint32_t EVENTS_CALIBRATEDONE; /*!< Calibration is complete */
+ __IO uint32_t EVENTS_STOPPED; /*!< The SAADC has stopped */
+ SAADC_EVENTS_CH_Type EVENTS_CH[8]; /*!< Unspecified */
+ __I uint32_t RESERVED1[106];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[61];
+ __I uint32_t STATUS; /*!< Status */
+ __I uint32_t RESERVED3[63];
+ __IO uint32_t ENABLE; /*!< Enable or disable SAADC */
+ __I uint32_t RESERVED4[3];
+ SAADC_CH_Type CH[8]; /*!< Unspecified */
+ __I uint32_t RESERVED5[24];
+ __IO uint32_t RESOLUTION; /*!< Resolution configuration */
+ __IO uint32_t OVERSAMPLE; /*!< Oversampling configuration. The RESOLUTION is applied before
+ averaging, thus for high OVERSAMPLE a higher RESOLUTION should
+ be used. */
+ __IO uint32_t SAMPLERATE; /*!< Controls normal or continuous sample rate */
+ __I uint32_t RESERVED6[12];
+ SAADC_RESULT_Type RESULT; /*!< RESULT EasyDMA channel */
+} NRF_SAADC_Type;
+
+
+/* ================================================================================ */
+/* ================ TIMER ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Timer/Counter 0 (TIMER)
+ */
+
+typedef struct { /*!< TIMER Structure */
+ __O uint32_t TASKS_START; /*!< Start Timer */
+ __O uint32_t TASKS_STOP; /*!< Stop Timer */
+ __O uint32_t TASKS_COUNT; /*!< Increment Timer (Counter mode only) */
+ __O uint32_t TASKS_CLEAR; /*!< Clear time */
+ __O uint32_t TASKS_SHUTDOWN; /*!< Deprecated register - Shut down timer */
+ __I uint32_t RESERVED0[11];
+ __O uint32_t TASKS_CAPTURE[6]; /*!< Description collection[n]: Capture Timer value to CC[n] register */
+ __I uint32_t RESERVED1[58];
+ __IO uint32_t EVENTS_COMPARE[6]; /*!< Description collection[n]: Compare event on CC[n] match */
+ __I uint32_t RESERVED2[42];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED3[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED4[126];
+ __IO uint32_t MODE; /*!< Timer mode selection */
+ __IO uint32_t BITMODE; /*!< Configure the number of bits used by the TIMER */
+ __I uint32_t RESERVED5;
+ __IO uint32_t PRESCALER; /*!< Timer prescaler register */
+ __I uint32_t RESERVED6[11];
+ __IO uint32_t CC[6]; /*!< Description collection[n]: Capture/Compare register n */
+} NRF_TIMER_Type;
+
+
+/* ================================================================================ */
+/* ================ RTC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Real time counter 0 (RTC)
+ */
+
+typedef struct { /*!< RTC Structure */
+ __O uint32_t TASKS_START; /*!< Start RTC COUNTER */
+ __O uint32_t TASKS_STOP; /*!< Stop RTC COUNTER */
+ __O uint32_t TASKS_CLEAR; /*!< Clear RTC COUNTER */
+ __O uint32_t TASKS_TRIGOVRFLW; /*!< Set COUNTER to 0xFFFFF0 */
+ __I uint32_t RESERVED0[60];
+ __IO uint32_t EVENTS_TICK; /*!< Event on COUNTER increment */
+ __IO uint32_t EVENTS_OVRFLW; /*!< Event on COUNTER overflow */
+ __I uint32_t RESERVED1[14];
+ __IO uint32_t EVENTS_COMPARE[4]; /*!< Description collection[n]: Compare event on CC[n] match */
+ __I uint32_t RESERVED2[109];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[13];
+ __IO uint32_t EVTEN; /*!< Enable or disable event routing */
+ __IO uint32_t EVTENSET; /*!< Enable event routing */
+ __IO uint32_t EVTENCLR; /*!< Disable event routing */
+ __I uint32_t RESERVED4[110];
+ __I uint32_t COUNTER; /*!< Current COUNTER value */
+ __IO uint32_t PRESCALER; /*!< 12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must
+ be written when RTC is stopped */
+ __I uint32_t RESERVED5[13];
+ __IO uint32_t CC[4]; /*!< Description collection[n]: Compare register n */
+} NRF_RTC_Type;
+
+
+/* ================================================================================ */
+/* ================ TEMP ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Temperature Sensor (TEMP)
+ */
+
+typedef struct { /*!< TEMP Structure */
+ __O uint32_t TASKS_START; /*!< Start temperature measurement */
+ __O uint32_t TASKS_STOP; /*!< Stop temperature measurement */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_DATARDY; /*!< Temperature measurement complete, data ready */
+ __I uint32_t RESERVED1[128];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[127];
+ __I int32_t TEMP; /*!< Temperature in degC (0.25deg steps) */
+ __I uint32_t RESERVED3[5];
+ __IO uint32_t A0; /*!< Slope of 1st piece wise linear function */
+ __IO uint32_t A1; /*!< Slope of 2nd piece wise linear function */
+ __IO uint32_t A2; /*!< Slope of 3rd piece wise linear function */
+ __IO uint32_t A3; /*!< Slope of 4th piece wise linear function */
+ __IO uint32_t A4; /*!< Slope of 5th piece wise linear function */
+ __IO uint32_t A5; /*!< Slope of 6th piece wise linear function */
+ __I uint32_t RESERVED4[2];
+ __IO uint32_t B0; /*!< y-intercept of 1st piece wise linear function */
+ __IO uint32_t B1; /*!< y-intercept of 2nd piece wise linear function */
+ __IO uint32_t B2; /*!< y-intercept of 3rd piece wise linear function */
+ __IO uint32_t B3; /*!< y-intercept of 4th piece wise linear function */
+ __IO uint32_t B4; /*!< y-intercept of 5th piece wise linear function */
+ __IO uint32_t B5; /*!< y-intercept of 6th piece wise linear function */
+ __I uint32_t RESERVED5[2];
+ __IO uint32_t T0; /*!< End point of 1st piece wise linear function */
+ __IO uint32_t T1; /*!< End point of 2nd piece wise linear function */
+ __IO uint32_t T2; /*!< End point of 3rd piece wise linear function */
+ __IO uint32_t T3; /*!< End point of 4th piece wise linear function */
+ __IO uint32_t T4; /*!< End point of 5th piece wise linear function */
+} NRF_TEMP_Type;
+
+
+/* ================================================================================ */
+/* ================ RNG ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Random Number Generator (RNG)
+ */
+
+typedef struct { /*!< RNG Structure */
+ __O uint32_t TASKS_START; /*!< Task starting the random number generator */
+ __O uint32_t TASKS_STOP; /*!< Task stopping the random number generator */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_VALRDY; /*!< Event being generated for every new random number written to
+ the VALUE register */
+ __I uint32_t RESERVED1[63];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[126];
+ __IO uint32_t CONFIG; /*!< Configuration register */
+ __I uint32_t VALUE; /*!< Output random number */
+} NRF_RNG_Type;
+
+
+/* ================================================================================ */
+/* ================ ECB ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief AES ECB Mode Encryption (ECB)
+ */
+
+typedef struct { /*!< ECB Structure */
+ __O uint32_t TASKS_STARTECB; /*!< Start ECB block encrypt */
+ __O uint32_t TASKS_STOPECB; /*!< Abort a possible executing ECB operation */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_ENDECB; /*!< ECB block encrypt complete */
+ __IO uint32_t EVENTS_ERRORECB; /*!< ECB block encrypt aborted because of a STOPECB task or due to
+ an error */
+ __I uint32_t RESERVED1[127];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[126];
+ __IO uint32_t ECBDATAPTR; /*!< ECB block encrypt memory pointers */
+} NRF_ECB_Type;
+
+
+/* ================================================================================ */
+/* ================ AAR ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Accelerated Address Resolver (AAR)
+ */
+
+typedef struct { /*!< AAR Structure */
+ __O uint32_t TASKS_START; /*!< Start resolving addresses based on IRKs specified in the IRK
+ data structure */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STOP; /*!< Stop resolving addresses */
+ __I uint32_t RESERVED1[61];
+ __IO uint32_t EVENTS_END; /*!< Address resolution procedure complete */
+ __IO uint32_t EVENTS_RESOLVED; /*!< Address resolved */
+ __IO uint32_t EVENTS_NOTRESOLVED; /*!< Address not resolved */
+ __I uint32_t RESERVED2[126];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t STATUS; /*!< Resolution status */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< Enable AAR */
+ __IO uint32_t NIRK; /*!< Number of IRKs */
+ __IO uint32_t IRKPTR; /*!< Pointer to IRK data structure */
+ __I uint32_t RESERVED5;
+ __IO uint32_t ADDRPTR; /*!< Pointer to the resolvable address */
+ __IO uint32_t SCRATCHPTR; /*!< Pointer to data area used for temporary storage */
+} NRF_AAR_Type;
+
+
+/* ================================================================================ */
+/* ================ CCM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief AES CCM Mode Encryption (CCM)
+ */
+
+typedef struct { /*!< CCM Structure */
+ __O uint32_t TASKS_KSGEN; /*!< Start generation of key-stream. This operation will stop by
+ itself when completed. */
+ __O uint32_t TASKS_CRYPT; /*!< Start encryption/decryption. This operation will stop by itself
+ when completed. */
+ __O uint32_t TASKS_STOP; /*!< Stop encryption/decryption */
+ __O uint32_t TASKS_RATEOVERRIDE; /*!< Override DATARATE setting in MODE register with the contents
+ of the RATEOVERRIDE register for any ongoing encryption/decryption */
+ __I uint32_t RESERVED0[60];
+ __IO uint32_t EVENTS_ENDKSGEN; /*!< Key-stream generation complete */
+ __IO uint32_t EVENTS_ENDCRYPT; /*!< Encrypt/decrypt complete */
+ __IO uint32_t EVENTS_ERROR; /*!< Deprecated register - CCM error event */
+ __I uint32_t RESERVED1[61];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t MICSTATUS; /*!< MIC check result */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< Enable */
+ __IO uint32_t MODE; /*!< Operation mode */
+ __IO uint32_t CNFPTR; /*!< Pointer to data structure holding AES key and NONCE vector */
+ __IO uint32_t INPTR; /*!< Input pointer */
+ __IO uint32_t OUTPTR; /*!< Output pointer */
+ __IO uint32_t SCRATCHPTR; /*!< Pointer to data area used for temporary storage */
+ __IO uint32_t MAXPACKETSIZE; /*!< Length of key-stream generated when MODE.LENGTH = Extended. */
+ __IO uint32_t RATEOVERRIDE; /*!< Data rate override setting. */
+} NRF_CCM_Type;
+
+
+/* ================================================================================ */
+/* ================ WDT ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Watchdog Timer (WDT)
+ */
+
+typedef struct { /*!< WDT Structure */
+ __O uint32_t TASKS_START; /*!< Start the watchdog */
+ __I uint32_t RESERVED0[63];
+ __IO uint32_t EVENTS_TIMEOUT; /*!< Watchdog timeout */
+ __I uint32_t RESERVED1[128];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[61];
+ __I uint32_t RUNSTATUS; /*!< Run status */
+ __I uint32_t REQSTATUS; /*!< Request status */
+ __I uint32_t RESERVED3[63];
+ __IO uint32_t CRV; /*!< Counter reload value */
+ __IO uint32_t RREN; /*!< Enable register for reload request registers */
+ __IO uint32_t CONFIG; /*!< Configuration register */
+ __I uint32_t RESERVED4[60];
+ __O uint32_t RR[8]; /*!< Description collection[n]: Reload request n */
+} NRF_WDT_Type;
+
+
+/* ================================================================================ */
+/* ================ QDEC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Quadrature Decoder (QDEC)
+ */
+
+typedef struct { /*!< QDEC Structure */
+ __O uint32_t TASKS_START; /*!< Task starting the quadrature decoder */
+ __O uint32_t TASKS_STOP; /*!< Task stopping the quadrature decoder */
+ __O uint32_t TASKS_READCLRACC; /*!< Read and clear ACC and ACCDBL */
+ __O uint32_t TASKS_RDCLRACC; /*!< Read and clear ACC */
+ __O uint32_t TASKS_RDCLRDBL; /*!< Read and clear ACCDBL */
+ __I uint32_t RESERVED0[59];
+ __IO uint32_t EVENTS_SAMPLERDY; /*!< Event being generated for every new sample value written to
+ the SAMPLE register */
+ __IO uint32_t EVENTS_REPORTRDY; /*!< Non-null report ready */
+ __IO uint32_t EVENTS_ACCOF; /*!< ACC or ACCDBL register overflow */
+ __IO uint32_t EVENTS_DBLRDY; /*!< Double displacement(s) detected */
+ __IO uint32_t EVENTS_STOPPED; /*!< QDEC has been stopped */
+ __I uint32_t RESERVED1[59];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[125];
+ __IO uint32_t ENABLE; /*!< Enable the quadrature decoder */
+ __IO uint32_t LEDPOL; /*!< LED output pin polarity */
+ __IO uint32_t SAMPLEPER; /*!< Sample period */
+ __I int32_t SAMPLE; /*!< Motion sample value */
+ __IO uint32_t REPORTPER; /*!< Number of samples to be taken before REPORTRDY and DBLRDY events
+ can be generated */
+ __I int32_t ACC; /*!< Register accumulating the valid transitions */
+ __I int32_t ACCREAD; /*!< Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC
+ task */
+ QDEC_PSEL_Type PSEL; /*!< Unspecified */
+ __IO uint32_t DBFEN; /*!< Enable input debounce filters */
+ __I uint32_t RESERVED4[5];
+ __IO uint32_t LEDPRE; /*!< Time period the LED is switched ON prior to sampling */
+ __I uint32_t ACCDBL; /*!< Register accumulating the number of detected double transitions */
+ __I uint32_t ACCDBLREAD; /*!< Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL
+ task */
+} NRF_QDEC_Type;
+
+
+/* ================================================================================ */
+/* ================ COMP ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Comparator (COMP)
+ */
+
+typedef struct { /*!< COMP Structure */
+ __O uint32_t TASKS_START; /*!< Start comparator */
+ __O uint32_t TASKS_STOP; /*!< Stop comparator */
+ __O uint32_t TASKS_SAMPLE; /*!< Sample comparator value */
+ __I uint32_t RESERVED0[61];
+ __IO uint32_t EVENTS_READY; /*!< COMP is ready and output is valid */
+ __IO uint32_t EVENTS_DOWN; /*!< Downward crossing */
+ __IO uint32_t EVENTS_UP; /*!< Upward crossing */
+ __IO uint32_t EVENTS_CROSS; /*!< Downward or upward crossing */
+ __I uint32_t RESERVED1[60];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t RESULT; /*!< Compare result */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< COMP enable */
+ __IO uint32_t PSEL; /*!< Pin select */
+ __IO uint32_t REFSEL; /*!< Reference source select for single-ended mode */
+ __IO uint32_t EXTREFSEL; /*!< External reference select */
+ __I uint32_t RESERVED5[8];
+ __IO uint32_t TH; /*!< Threshold configuration for hysteresis unit */
+ __IO uint32_t MODE; /*!< Mode configuration */
+ __IO uint32_t HYST; /*!< Comparator hysteresis enable */
+} NRF_COMP_Type;
+
+
+/* ================================================================================ */
+/* ================ LPCOMP ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Low Power Comparator (LPCOMP)
+ */
+
+typedef struct { /*!< LPCOMP Structure */
+ __O uint32_t TASKS_START; /*!< Start comparator */
+ __O uint32_t TASKS_STOP; /*!< Stop comparator */
+ __O uint32_t TASKS_SAMPLE; /*!< Sample comparator value */
+ __I uint32_t RESERVED0[61];
+ __IO uint32_t EVENTS_READY; /*!< LPCOMP is ready and output is valid */
+ __IO uint32_t EVENTS_DOWN; /*!< Downward crossing */
+ __IO uint32_t EVENTS_UP; /*!< Upward crossing */
+ __IO uint32_t EVENTS_CROSS; /*!< Downward or upward crossing */
+ __I uint32_t RESERVED1[60];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED2[64];
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[61];
+ __I uint32_t RESULT; /*!< Compare result */
+ __I uint32_t RESERVED4[63];
+ __IO uint32_t ENABLE; /*!< Enable LPCOMP */
+ __IO uint32_t PSEL; /*!< Input pin select */
+ __IO uint32_t REFSEL; /*!< Reference select */
+ __IO uint32_t EXTREFSEL; /*!< External reference select */
+ __I uint32_t RESERVED5[4];
+ __IO uint32_t ANADETECT; /*!< Analog detect configuration */
+ __I uint32_t RESERVED6[5];
+ __IO uint32_t HYST; /*!< Comparator hysteresis enable */
+} NRF_LPCOMP_Type;
+
+
+/* ================================================================================ */
+/* ================ EGU ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Event Generator Unit 0 (EGU)
+ */
+
+typedef struct { /*!< EGU Structure */
+ __O uint32_t TASKS_TRIGGER[16]; /*!< Description collection[n]: Trigger n for triggering the corresponding
+ TRIGGERED[n] event */
+ __I uint32_t RESERVED0[48];
+ __IO uint32_t EVENTS_TRIGGERED[16]; /*!< Description collection[n]: Event number n generated by triggering
+ the corresponding TRIGGER[n] task */
+ __I uint32_t RESERVED1[112];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+} NRF_EGU_Type;
+
+
+/* ================================================================================ */
+/* ================ SWI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Software interrupt 0 (SWI)
+ */
+
+typedef struct { /*!< SWI Structure */
+ __I uint32_t UNUSED; /*!< Unused. */
+} NRF_SWI_Type;
+
+
+/* ================================================================================ */
+/* ================ PWM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Pulse width modulation unit 0 (PWM)
+ */
+
+typedef struct { /*!< PWM Structure */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STOP; /*!< Stops PWM pulse generation on all channels at the end of current
+ PWM period, and stops sequence playback */
+ __O uint32_t TASKS_SEQSTART[2]; /*!< Description collection[n]: Loads the first PWM value on all
+ enabled channels from sequence n, and starts playing that sequence
+ at the rate defined in SEQ[n]REFRESH and/or DECODER.MODE. Causes
+ PWM generation to start if not running. */
+ __O uint32_t TASKS_NEXTSTEP; /*!< Steps by one value in the current sequence on all enabled channels
+ if DECODER.MODE=NextStep. Does not cause PWM generation to start
+ if not running. */
+ __I uint32_t RESERVED1[60];
+ __IO uint32_t EVENTS_STOPPED; /*!< Response to STOP task, emitted when PWM pulses are no longer
+ generated */
+ __IO uint32_t EVENTS_SEQSTARTED[2]; /*!< Description collection[n]: First PWM period started on sequence
+ n */
+ __IO uint32_t EVENTS_SEQEND[2]; /*!< Description collection[n]: Emitted at end of every sequence
+ n, when last value from RAM has been applied to wave counter */
+ __IO uint32_t EVENTS_PWMPERIODEND; /*!< Emitted at the end of each PWM period */
+ __IO uint32_t EVENTS_LOOPSDONE; /*!< Concatenated sequences have been played the amount of times
+ defined in LOOP.CNT */
+ __I uint32_t RESERVED2[56];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED3[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED4[125];
+ __IO uint32_t ENABLE; /*!< PWM module enable register */
+ __IO uint32_t MODE; /*!< Selects operating mode of the wave counter */
+ __IO uint32_t COUNTERTOP; /*!< Value up to which the pulse generator counter counts */
+ __IO uint32_t PRESCALER; /*!< Configuration for PWM_CLK */
+ __IO uint32_t DECODER; /*!< Configuration of the decoder */
+ __IO uint32_t LOOP; /*!< Number of playbacks of a loop */
+ __I uint32_t RESERVED5[2];
+ PWM_SEQ_Type SEQ[2]; /*!< Unspecified */
+ PWM_PSEL_Type PSEL; /*!< Unspecified */
+} NRF_PWM_Type;
+
+
+/* ================================================================================ */
+/* ================ PDM ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Pulse Density Modulation (Digital Microphone) Interface (PDM)
+ */
+
+typedef struct { /*!< PDM Structure */
+ __O uint32_t TASKS_START; /*!< Starts continuous PDM transfer */
+ __O uint32_t TASKS_STOP; /*!< Stops PDM transfer */
+ __I uint32_t RESERVED0[62];
+ __IO uint32_t EVENTS_STARTED; /*!< PDM transfer has started */
+ __IO uint32_t EVENTS_STOPPED; /*!< PDM transfer has finished */
+ __IO uint32_t EVENTS_END; /*!< The PDM has written the last sample specified by SAMPLE.MAXCNT
+ (or the last sample after a STOP task has been received) to
+ Data RAM */
+ __I uint32_t RESERVED1[125];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[125];
+ __IO uint32_t ENABLE; /*!< PDM module enable register */
+ __IO uint32_t PDMCLKCTRL; /*!< PDM clock generator control */
+ __IO uint32_t MODE; /*!< Defines the routing of the connected PDM microphones' signals */
+ __I uint32_t RESERVED3[3];
+ __IO uint32_t GAINL; /*!< Left output gain adjustment */
+ __IO uint32_t GAINR; /*!< Right output gain adjustment */
+ __IO uint32_t RATIO; /*!< Selects the ratio between PDM_CLK and output sample rate. Change
+ PDMCLKCTRL accordingly. */
+ __I uint32_t RESERVED4[7];
+ PDM_PSEL_Type PSEL; /*!< Unspecified */
+ __I uint32_t RESERVED5[6];
+ PDM_SAMPLE_Type SAMPLE; /*!< Unspecified */
+} NRF_PDM_Type;
+
+
+/* ================================================================================ */
+/* ================ ACL ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Access control lists (ACL)
+ */
+
+typedef struct { /*!< ACL Structure */
+ __I uint32_t RESERVED0[512];
+ ACL_ACL_Type ACL[8]; /*!< Unspecified */
+} NRF_ACL_Type;
+
+
+/* ================================================================================ */
+/* ================ NVMC ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Non Volatile Memory Controller (NVMC)
+ */
+
+typedef struct { /*!< NVMC Structure */
+ __I uint32_t RESERVED0[256];
+ __I uint32_t READY; /*!< Ready flag */
+ __I uint32_t RESERVED1;
+ __I uint32_t READYNEXT; /*!< Ready flag */
+ __I uint32_t RESERVED2[62];
+ __IO uint32_t CONFIG; /*!< Configuration register */
+
+ union {
+ __IO uint32_t ERASEPCR1; /*!< Deprecated register - Register for erasing a page in code area.
+ Equivalent to ERASEPAGE. */
+ __IO uint32_t ERASEPAGE; /*!< Register for erasing a page in code area */
+ };
+ __IO uint32_t ERASEALL; /*!< Register for erasing all non-volatile user memory */
+ __IO uint32_t ERASEPCR0; /*!< Deprecated register - Register for erasing a page in code area.
+ Equivalent to ERASEPAGE. */
+ __IO uint32_t ERASEUICR; /*!< Register for erasing user information configuration registers */
+ __IO uint32_t ERASEPAGEPARTIAL; /*!< Register for partial erase of a page in code area */
+ __IO uint32_t ERASEPAGEPARTIALCFG; /*!< Register for partial erase configuration */
+ __I uint32_t RESERVED3[8];
+ __IO uint32_t ICACHECNF; /*!< I-code cache configuration register. */
+ __I uint32_t RESERVED4;
+ __IO uint32_t IHIT; /*!< I-code cache hit counter. */
+ __IO uint32_t IMISS; /*!< I-code cache miss counter. */
+} NRF_NVMC_Type;
+
+
+/* ================================================================================ */
+/* ================ PPI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Programmable Peripheral Interconnect (PPI)
+ */
+
+typedef struct { /*!< PPI Structure */
+ PPI_TASKS_CHG_Type TASKS_CHG[6]; /*!< Channel group tasks */
+ __I uint32_t RESERVED0[308];
+ __IO uint32_t CHEN; /*!< Channel enable register */
+ __IO uint32_t CHENSET; /*!< Channel enable set register */
+ __IO uint32_t CHENCLR; /*!< Channel enable clear register */
+ __I uint32_t RESERVED1;
+ PPI_CH_Type CH[20]; /*!< PPI Channel */
+ __I uint32_t RESERVED2[148];
+ __IO uint32_t CHG[6]; /*!< Description collection[n]: Channel group n */
+ __I uint32_t RESERVED3[62];
+ PPI_FORK_Type FORK[32]; /*!< Fork */
+} NRF_PPI_Type;
+
+
+/* ================================================================================ */
+/* ================ MWU ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Memory Watch Unit (MWU)
+ */
+
+typedef struct { /*!< MWU Structure */
+ __I uint32_t RESERVED0[64];
+ MWU_EVENTS_REGION_Type EVENTS_REGION[4]; /*!< Unspecified */
+ __I uint32_t RESERVED1[16];
+ MWU_EVENTS_PREGION_Type EVENTS_PREGION[2]; /*!< Unspecified */
+ __I uint32_t RESERVED2[100];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[5];
+ __IO uint32_t NMIEN; /*!< Enable or disable non-maskable interrupt */
+ __IO uint32_t NMIENSET; /*!< Enable non-maskable interrupt */
+ __IO uint32_t NMIENCLR; /*!< Disable non-maskable interrupt */
+ __I uint32_t RESERVED4[53];
+ MWU_PERREGION_Type PERREGION[2]; /*!< Unspecified */
+ __I uint32_t RESERVED5[64];
+ __IO uint32_t REGIONEN; /*!< Enable/disable regions watch */
+ __IO uint32_t REGIONENSET; /*!< Enable regions watch */
+ __IO uint32_t REGIONENCLR; /*!< Disable regions watch */
+ __I uint32_t RESERVED6[57];
+ MWU_REGION_Type REGION[4]; /*!< Unspecified */
+ __I uint32_t RESERVED7[32];
+ MWU_PREGION_Type PREGION[2]; /*!< Unspecified */
+} NRF_MWU_Type;
+
+
+/* ================================================================================ */
+/* ================ I2S ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Inter-IC Sound (I2S)
+ */
+
+typedef struct { /*!< I2S Structure */
+ __O uint32_t TASKS_START; /*!< Starts continuous I2S transfer. Also starts MCK generator when
+ this is enabled. */
+ __O uint32_t TASKS_STOP; /*!< Stops I2S transfer. Also stops MCK generator. Triggering this
+ task will cause the {event:STOPPED} event to be generated. */
+ __I uint32_t RESERVED0[63];
+ __IO uint32_t EVENTS_RXPTRUPD; /*!< The RXD.PTR register has been copied to internal double-buffers.
+ When the I2S module is started and RX is enabled, this event
+ will be generated for every RXTXD.MAXCNT words that are received
+ on the SDIN pin. */
+ __IO uint32_t EVENTS_STOPPED; /*!< I2S transfer stopped. */
+ __I uint32_t RESERVED1[2];
+ __IO uint32_t EVENTS_TXPTRUPD; /*!< The TDX.PTR register has been copied to internal double-buffers.
+ When the I2S module is started and TX is enabled, this event
+ will be generated for every RXTXD.MAXCNT words that are sent
+ on the SDOUT pin. */
+ __I uint32_t RESERVED2[122];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED3[125];
+ __IO uint32_t ENABLE; /*!< Enable I2S module. */
+ I2S_CONFIG_Type CONFIG; /*!< Unspecified */
+ __I uint32_t RESERVED4[3];
+ I2S_RXD_Type RXD; /*!< Unspecified */
+ __I uint32_t RESERVED5;
+ I2S_TXD_Type TXD; /*!< Unspecified */
+ __I uint32_t RESERVED6[3];
+ I2S_RXTXD_Type RXTXD; /*!< Unspecified */
+ __I uint32_t RESERVED7[3];
+ I2S_PSEL_Type PSEL; /*!< Unspecified */
+} NRF_I2S_Type;
+
+
+/* ================================================================================ */
+/* ================ FPU ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief FPU (FPU)
+ */
+
+typedef struct { /*!< FPU Structure */
+ __I uint32_t UNUSED; /*!< Unused. */
+} NRF_FPU_Type;
+
+
+/* ================================================================================ */
+/* ================ USBD ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief Universal serial bus device (USBD)
+ */
+
+typedef struct { /*!< USBD Structure */
+ __I uint32_t RESERVED0;
+ __O uint32_t TASKS_STARTEPIN[8]; /*!< Description collection[n]: Captures the EPIN[n].PTR and EPIN[n].MAXCNT
+ registers values, and enables endpoint IN n to respond to traffic
+ from host */
+ __O uint32_t TASKS_STARTISOIN; /*!< Captures the ISOIN.PTR and ISOIN.MAXCNT registers values, and
+ enables sending data on ISO endpoint */
+ __O uint32_t TASKS_STARTEPOUT[8]; /*!< Description collection[n]: Captures the EPOUT[n].PTR and EPOUT[n].MAXCNT
+ registers values, and enables endpoint n to respond to traffic
+ from host */
+ __O uint32_t TASKS_STARTISOOUT; /*!< Captures the ISOOUT.PTR and ISOOUT.MAXCNT registers values,
+ and enables receiving of data on ISO endpoint */
+ __O uint32_t TASKS_EP0RCVOUT; /*!< Allows OUT data stage on control endpoint 0 */
+ __O uint32_t TASKS_EP0STATUS; /*!< Allows status stage on control endpoint 0 */
+ __O uint32_t TASKS_EP0STALL; /*!< Stalls data and status stage on control endpoint 0 */
+ __O uint32_t TASKS_DPDMDRIVE; /*!< Forces D+ and D- lines into the state defined in the DPDMVALUE
+ register */
+ __O uint32_t TASKS_DPDMNODRIVE; /*!< Stops forcing D+ and D- lines into any state (USB engine takes
+ control) */
+ __I uint32_t RESERVED1[40];
+ __IO uint32_t EVENTS_USBRESET; /*!< Signals that a USB reset condition has been detected on USB
+ lines */
+ __IO uint32_t EVENTS_STARTED; /*!< Confirms that the EPIN[n].PTR and EPIN[n].MAXCNT, or EPOUT[n].PTR
+ and EPOUT[n].MAXCNT registers have been captured on all endpoints
+ reported in the EPSTATUS register */
+ __IO uint32_t EVENTS_ENDEPIN[8]; /*!< Description collection[n]: The whole EPIN[n] buffer has been
+ consumed. The RAM buffer can be accessed safely by software. */
+ __IO uint32_t EVENTS_EP0DATADONE; /*!< An acknowledged data transfer has taken place on the control
+ endpoint */
+ __IO uint32_t EVENTS_ENDISOIN; /*!< The whole ISOIN buffer has been consumed. The RAM buffer can
+ be accessed safely by software. */
+ __IO uint32_t EVENTS_ENDEPOUT[8]; /*!< Description collection[n]: The whole EPOUT[n] buffer has been
+ consumed. The RAM buffer can be accessed safely by software. */
+ __IO uint32_t EVENTS_ENDISOOUT; /*!< The whole ISOOUT buffer has been consumed. The RAM buffer can
+ be accessed safely by software. */
+ __IO uint32_t EVENTS_SOF; /*!< Signals that a SOF (start of frame) condition has been detected
+ on USB lines */
+ __IO uint32_t EVENTS_USBEVENT; /*!< An event or an error not covered by specific events has occurred.
+ Check EVENTCAUSE register to find the cause. */
+ __IO uint32_t EVENTS_EP0SETUP; /*!< A valid SETUP token has been received (and acknowledged) on
+ the control endpoint */
+ __IO uint32_t EVENTS_EPDATA; /*!< A data transfer has occurred on a data endpoint, indicated by
+ the EPDATASTATUS register */
+ __I uint32_t RESERVED2[39];
+ __IO uint32_t SHORTS; /*!< Shortcut register */
+ __I uint32_t RESERVED3[63];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED4[61];
+ __IO uint32_t EVENTCAUSE; /*!< Details on what caused the USBEVENT event */
+ __I uint32_t RESERVED5[7];
+ USBD_HALTED_Type HALTED; /*!< Unspecified */
+ __I uint32_t RESERVED6;
+ __IO uint32_t EPSTATUS; /*!< Provides information on which endpoint's EasyDMA registers have
+ been captured */
+ __IO uint32_t EPDATASTATUS; /*!< Provides information on which endpoint(s) an acknowledged data
+ transfer has occurred (EPDATA event) */
+ __I uint32_t USBADDR; /*!< Device USB address */
+ __I uint32_t RESERVED7[3];
+ __I uint32_t BMREQUESTTYPE; /*!< SETUP data, byte 0, bmRequestType */
+ __I uint32_t BREQUEST; /*!< SETUP data, byte 1, bRequest */
+ __I uint32_t WVALUEL; /*!< SETUP data, byte 2, LSB of wValue */
+ __I uint32_t WVALUEH; /*!< SETUP data, byte 3, MSB of wValue */
+ __I uint32_t WINDEXL; /*!< SETUP data, byte 4, LSB of wIndex */
+ __I uint32_t WINDEXH; /*!< SETUP data, byte 5, MSB of wIndex */
+ __I uint32_t WLENGTHL; /*!< SETUP data, byte 6, LSB of wLength */
+ __I uint32_t WLENGTHH; /*!< SETUP data, byte 7, MSB of wLength */
+ USBD_SIZE_Type SIZE; /*!< Unspecified */
+ __I uint32_t RESERVED8[15];
+ __IO uint32_t ENABLE; /*!< Enable USB */
+ __IO uint32_t USBPULLUP; /*!< Control of the USB pull-up */
+ __IO uint32_t DPDMVALUE; /*!< State D+ and D- lines will be forced into by the DPDMDRIVE task.
+ The DPDMNODRIVE task reverts the control of the lines to MAC
+ IP (no forcing). */
+ __IO uint32_t DTOGGLE; /*!< Data toggle control and status */
+ __IO uint32_t EPINEN; /*!< Endpoint IN enable */
+ __IO uint32_t EPOUTEN; /*!< Endpoint OUT enable */
+ __O uint32_t EPSTALL; /*!< STALL endpoints */
+ __IO uint32_t ISOSPLIT; /*!< Controls the split of ISO buffers */
+ __I uint32_t FRAMECNTR; /*!< Returns the current value of the start of frame counter */
+ __I uint32_t RESERVED9[2];
+ __IO uint32_t LOWPOWER; /*!< Controls USBD peripheral low power mode during USB suspend */
+ __IO uint32_t ISOINCONFIG; /*!< Controls the response of the ISO IN endpoint to an IN token
+ when no data is ready to be sent */
+ __I uint32_t RESERVED10[51];
+ USBD_EPIN_Type EPIN[8]; /*!< Unspecified */
+ USBD_ISOIN_Type ISOIN; /*!< Unspecified */
+ __I uint32_t RESERVED11[21];
+ USBD_EPOUT_Type EPOUT[8]; /*!< Unspecified */
+ USBD_ISOOUT_Type ISOOUT; /*!< Unspecified */
+} NRF_USBD_Type;
+
+
+/* ================================================================================ */
+/* ================ QSPI ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief External flash interface (QSPI)
+ */
+
+typedef struct { /*!< QSPI Structure */
+ __O uint32_t TASKS_ACTIVATE; /*!< Activate QSPI interface */
+ __O uint32_t TASKS_READSTART; /*!< Start transfer from external flash memory to internal RAM */
+ __O uint32_t TASKS_WRITESTART; /*!< Start transfer from internal RAM to external flash memory */
+ __O uint32_t TASKS_ERASESTART; /*!< Start external flash memory erase operation */
+ __O uint32_t TASKS_DEACTIVATE; /*!< Deactivate QSPI interface */
+ __I uint32_t RESERVED0[59];
+ __IO uint32_t EVENTS_READY; /*!< QSPI peripheral is ready. This event will be generated as a
+ response to any QSPI task. */
+ __I uint32_t RESERVED1[127];
+ __IO uint32_t INTEN; /*!< Enable or disable interrupt */
+ __IO uint32_t INTENSET; /*!< Enable interrupt */
+ __IO uint32_t INTENCLR; /*!< Disable interrupt */
+ __I uint32_t RESERVED2[125];
+ __IO uint32_t ENABLE; /*!< Enable QSPI peripheral and acquire the pins selected in PSELn
+ registers */
+ QSPI_READ_Type READ; /*!< Unspecified */
+ QSPI_WRITE_Type WRITE; /*!< Unspecified */
+ QSPI_ERASE_Type ERASE; /*!< Unspecified */
+ QSPI_PSEL_Type PSEL; /*!< Unspecified */
+ __IO uint32_t XIPOFFSET; /*!< Address offset into the external memory for Execute in Place
+ operation. */
+ __IO uint32_t IFCONFIG0; /*!< Interface configuration. */
+ __I uint32_t RESERVED3[46];
+ __IO uint32_t IFCONFIG1; /*!< Interface configuration. */
+ __I uint32_t STATUS; /*!< Status register. */
+ __I uint32_t RESERVED4[3];
+ __IO uint32_t DPMDUR; /*!< Set the duration required to enter/exit deep power-down mode
+ (DPM). */
+ __I uint32_t RESERVED5[3];
+ __IO uint32_t ADDRCONF; /*!< Extended address configuration. */
+ __I uint32_t RESERVED6[3];
+ __IO uint32_t CINSTRCONF; /*!< Custom instruction configuration register. */
+ __IO uint32_t CINSTRDAT0; /*!< Custom instruction data register 0. */
+ __IO uint32_t CINSTRDAT1; /*!< Custom instruction data register 1. */
+ __IO uint32_t IFTIMING; /*!< SPI interface timing. */
+} NRF_QSPI_Type;
+
+
+/* ================================================================================ */
+/* ================ GPIO ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief GPIO Port 1 (GPIO)
+ */
+
+typedef struct { /*!< GPIO Structure */
+ __I uint32_t RESERVED0[321];
+ __IO uint32_t OUT; /*!< Write GPIO port */
+ __IO uint32_t OUTSET; /*!< Set individual bits in GPIO port */
+ __IO uint32_t OUTCLR; /*!< Clear individual bits in GPIO port */
+ __I uint32_t IN; /*!< Read GPIO port */
+ __IO uint32_t DIR; /*!< Direction of GPIO pins */
+ __IO uint32_t DIRSET; /*!< DIR set register */
+ __IO uint32_t DIRCLR; /*!< DIR clear register */
+ __IO uint32_t LATCH; /*!< Latch register indicating what GPIO pins that have met the criteria
+ set in the PIN_CNF[n].SENSE registers */
+ __IO uint32_t DETECTMODE; /*!< Select between default DETECT signal behaviour and LDETECT mode */
+ __I uint32_t RESERVED1[118];
+ __IO uint32_t PIN_CNF[32]; /*!< Description collection[n]: Configuration of GPIO pins */
+} NRF_GPIO_Type;
+
+
+/* ================================================================================ */
+/* ================ CC_HOST_RGF ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief CRYPTOCELL HOST_RGF interface (CC_HOST_RGF)
+ */
+
+typedef struct { /*!< CC_HOST_RGF Structure */
+ __I uint32_t RESERVED0[1678];
+ __IO uint32_t HOST_CRYPTOKEY_SEL; /*!< AES hardware key select */
+ __I uint32_t RESERVED1[4];
+ __IO uint32_t HOST_IOT_KPRTL_LOCK; /*!< This write-once register is the K_PRTL lock register. When this
+ register is set, K_PRTL can not be used and a zeroed key will
+ be used instead. The value of this register is saved in the
+ CRYPTOCELL AO power domain. */
+ __IO uint32_t HOST_IOT_KDR0; /*!< This register holds bits 31:0 of K_DR. The value of this register
+ is saved in the CRYPTOCELL AO power domain. Reading from this
+ address returns the K_DR valid status indicating if K_DR is
+ successfully retained. */
+ __O uint32_t HOST_IOT_KDR1; /*!< This register holds bits 63:32 of K_DR. The value of this register
+ is saved in the CRYPTOCELL AO power domain. */
+ __O uint32_t HOST_IOT_KDR2; /*!< This register holds bits 95:64 of K_DR. The value of this register
+ is saved in the CRYPTOCELL AO power domain. */
+ __O uint32_t HOST_IOT_KDR3; /*!< This register holds bits 127:96 of K_DR. The value of this register
+ is saved in the CRYPTOCELL AO power domain. */
+ __IO uint32_t HOST_IOT_LCS; /*!< Controls lifecycle state (LCS) for CRYPTOCELL subsystem */
+} NRF_CC_HOST_RGF_Type;
+
+
+/* ================================================================================ */
+/* ================ CRYPTOCELL ================ */
+/* ================================================================================ */
+
+
+/**
+ * @brief ARM TrustZone CryptoCell register interface (CRYPTOCELL)
+ */
+
+typedef struct { /*!< CRYPTOCELL Structure */
+ __I uint32_t RESERVED0[320];
+ __IO uint32_t ENABLE; /*!< Enable CRYPTOCELL subsystem */
+} NRF_CRYPTOCELL_Type;
+
+
+/* -------------------- End of section using anonymous unions ------------------- */
+#if defined(__CC_ARM)
+ #pragma pop
+#elif defined(__ICCARM__)
+ /* leave anonymous unions enabled */
+#elif defined(__GNUC__)
+ /* anonymous unions are enabled by default */
+#elif defined(__TMS470__)
+ /* anonymous unions are enabled by default */
+#elif defined(__TASKING__)
+ #pragma warning restore
+#else
+ #warning Not supported compiler type
+#endif
+
+
+
+
+/* ================================================================================ */
+/* ================ Peripheral memory map ================ */
+/* ================================================================================ */
+
+#define NRF_FICR_BASE 0x10000000UL
+#define NRF_UICR_BASE 0x10001000UL
+#define NRF_CLOCK_BASE 0x40000000UL
+#define NRF_POWER_BASE 0x40000000UL
+#define NRF_RADIO_BASE 0x40001000UL
+#define NRF_UART0_BASE 0x40002000UL
+#define NRF_UARTE0_BASE 0x40002000UL
+#define NRF_SPI0_BASE 0x40003000UL
+#define NRF_SPIM0_BASE 0x40003000UL
+#define NRF_SPIS0_BASE 0x40003000UL
+#define NRF_TWI0_BASE 0x40003000UL
+#define NRF_TWIM0_BASE 0x40003000UL
+#define NRF_TWIS0_BASE 0x40003000UL
+#define NRF_SPI1_BASE 0x40004000UL
+#define NRF_SPIM1_BASE 0x40004000UL
+#define NRF_SPIS1_BASE 0x40004000UL
+#define NRF_TWI1_BASE 0x40004000UL
+#define NRF_TWIM1_BASE 0x40004000UL
+#define NRF_TWIS1_BASE 0x40004000UL
+#define NRF_NFCT_BASE 0x40005000UL
+#define NRF_GPIOTE_BASE 0x40006000UL
+#define NRF_SAADC_BASE 0x40007000UL
+#define NRF_TIMER0_BASE 0x40008000UL
+#define NRF_TIMER1_BASE 0x40009000UL
+#define NRF_TIMER2_BASE 0x4000A000UL
+#define NRF_RTC0_BASE 0x4000B000UL
+#define NRF_TEMP_BASE 0x4000C000UL
+#define NRF_RNG_BASE 0x4000D000UL
+#define NRF_ECB_BASE 0x4000E000UL
+#define NRF_AAR_BASE 0x4000F000UL
+#define NRF_CCM_BASE 0x4000F000UL
+#define NRF_WDT_BASE 0x40010000UL
+#define NRF_RTC1_BASE 0x40011000UL
+#define NRF_QDEC_BASE 0x40012000UL
+#define NRF_COMP_BASE 0x40013000UL
+#define NRF_LPCOMP_BASE 0x40013000UL
+#define NRF_EGU0_BASE 0x40014000UL
+#define NRF_SWI0_BASE 0x40014000UL
+#define NRF_EGU1_BASE 0x40015000UL
+#define NRF_SWI1_BASE 0x40015000UL
+#define NRF_EGU2_BASE 0x40016000UL
+#define NRF_SWI2_BASE 0x40016000UL
+#define NRF_EGU3_BASE 0x40017000UL
+#define NRF_SWI3_BASE 0x40017000UL
+#define NRF_EGU4_BASE 0x40018000UL
+#define NRF_SWI4_BASE 0x40018000UL
+#define NRF_EGU5_BASE 0x40019000UL
+#define NRF_SWI5_BASE 0x40019000UL
+#define NRF_TIMER3_BASE 0x4001A000UL
+#define NRF_TIMER4_BASE 0x4001B000UL
+#define NRF_PWM0_BASE 0x4001C000UL
+#define NRF_PDM_BASE 0x4001D000UL
+#define NRF_ACL_BASE 0x4001E000UL
+#define NRF_NVMC_BASE 0x4001E000UL
+#define NRF_PPI_BASE 0x4001F000UL
+#define NRF_MWU_BASE 0x40020000UL
+#define NRF_PWM1_BASE 0x40021000UL
+#define NRF_PWM2_BASE 0x40022000UL
+#define NRF_SPI2_BASE 0x40023000UL
+#define NRF_SPIM2_BASE 0x40023000UL
+#define NRF_SPIS2_BASE 0x40023000UL
+#define NRF_RTC2_BASE 0x40024000UL
+#define NRF_I2S_BASE 0x40025000UL
+#define NRF_FPU_BASE 0x40026000UL
+#define NRF_USBD_BASE 0x40027000UL
+#define NRF_UARTE1_BASE 0x40028000UL
+#define NRF_QSPI_BASE 0x40029000UL
+#define NRF_PWM3_BASE 0x4002D000UL
+#define NRF_SPIM3_BASE 0x4002F000UL
+#define NRF_P0_BASE 0x50000000UL
+#define NRF_P1_BASE 0x50000300UL
+#define NRF_CC_HOST_RGF_BASE 0x5002A000UL
+#define NRF_CRYPTOCELL_BASE 0x5002A000UL
+
+
+/* ================================================================================ */
+/* ================ Peripheral declaration ================ */
+/* ================================================================================ */
+
+#define NRF_FICR ((NRF_FICR_Type *) NRF_FICR_BASE)
+#define NRF_UICR ((NRF_UICR_Type *) NRF_UICR_BASE)
+#define NRF_CLOCK ((NRF_CLOCK_Type *) NRF_CLOCK_BASE)
+#define NRF_POWER ((NRF_POWER_Type *) NRF_POWER_BASE)
+#define NRF_RADIO ((NRF_RADIO_Type *) NRF_RADIO_BASE)
+#define NRF_UART0 ((NRF_UART_Type *) NRF_UART0_BASE)
+#define NRF_UARTE0 ((NRF_UARTE_Type *) NRF_UARTE0_BASE)
+#define NRF_SPI0 ((NRF_SPI_Type *) NRF_SPI0_BASE)
+#define NRF_SPIM0 ((NRF_SPIM_Type *) NRF_SPIM0_BASE)
+#define NRF_SPIS0 ((NRF_SPIS_Type *) NRF_SPIS0_BASE)
+#define NRF_TWI0 ((NRF_TWI_Type *) NRF_TWI0_BASE)
+#define NRF_TWIM0 ((NRF_TWIM_Type *) NRF_TWIM0_BASE)
+#define NRF_TWIS0 ((NRF_TWIS_Type *) NRF_TWIS0_BASE)
+#define NRF_SPI1 ((NRF_SPI_Type *) NRF_SPI1_BASE)
+#define NRF_SPIM1 ((NRF_SPIM_Type *) NRF_SPIM1_BASE)
+#define NRF_SPIS1 ((NRF_SPIS_Type *) NRF_SPIS1_BASE)
+#define NRF_TWI1 ((NRF_TWI_Type *) NRF_TWI1_BASE)
+#define NRF_TWIM1 ((NRF_TWIM_Type *) NRF_TWIM1_BASE)
+#define NRF_TWIS1 ((NRF_TWIS_Type *) NRF_TWIS1_BASE)
+#define NRF_NFCT ((NRF_NFCT_Type *) NRF_NFCT_BASE)
+#define NRF_GPIOTE ((NRF_GPIOTE_Type *) NRF_GPIOTE_BASE)
+#define NRF_SAADC ((NRF_SAADC_Type *) NRF_SAADC_BASE)
+#define NRF_TIMER0 ((NRF_TIMER_Type *) NRF_TIMER0_BASE)
+#define NRF_TIMER1 ((NRF_TIMER_Type *) NRF_TIMER1_BASE)
+#define NRF_TIMER2 ((NRF_TIMER_Type *) NRF_TIMER2_BASE)
+#define NRF_RTC0 ((NRF_RTC_Type *) NRF_RTC0_BASE)
+#define NRF_TEMP ((NRF_TEMP_Type *) NRF_TEMP_BASE)
+#define NRF_RNG ((NRF_RNG_Type *) NRF_RNG_BASE)
+#define NRF_ECB ((NRF_ECB_Type *) NRF_ECB_BASE)
+#define NRF_AAR ((NRF_AAR_Type *) NRF_AAR_BASE)
+#define NRF_CCM ((NRF_CCM_Type *) NRF_CCM_BASE)
+#define NRF_WDT ((NRF_WDT_Type *) NRF_WDT_BASE)
+#define NRF_RTC1 ((NRF_RTC_Type *) NRF_RTC1_BASE)
+#define NRF_QDEC ((NRF_QDEC_Type *) NRF_QDEC_BASE)
+#define NRF_COMP ((NRF_COMP_Type *) NRF_COMP_BASE)
+#define NRF_LPCOMP ((NRF_LPCOMP_Type *) NRF_LPCOMP_BASE)
+#define NRF_EGU0 ((NRF_EGU_Type *) NRF_EGU0_BASE)
+#define NRF_SWI0 ((NRF_SWI_Type *) NRF_SWI0_BASE)
+#define NRF_EGU1 ((NRF_EGU_Type *) NRF_EGU1_BASE)
+#define NRF_SWI1 ((NRF_SWI_Type *) NRF_SWI1_BASE)
+#define NRF_EGU2 ((NRF_EGU_Type *) NRF_EGU2_BASE)
+#define NRF_SWI2 ((NRF_SWI_Type *) NRF_SWI2_BASE)
+#define NRF_EGU3 ((NRF_EGU_Type *) NRF_EGU3_BASE)
+#define NRF_SWI3 ((NRF_SWI_Type *) NRF_SWI3_BASE)
+#define NRF_EGU4 ((NRF_EGU_Type *) NRF_EGU4_BASE)
+#define NRF_SWI4 ((NRF_SWI_Type *) NRF_SWI4_BASE)
+#define NRF_EGU5 ((NRF_EGU_Type *) NRF_EGU5_BASE)
+#define NRF_SWI5 ((NRF_SWI_Type *) NRF_SWI5_BASE)
+#define NRF_TIMER3 ((NRF_TIMER_Type *) NRF_TIMER3_BASE)
+#define NRF_TIMER4 ((NRF_TIMER_Type *) NRF_TIMER4_BASE)
+#define NRF_PWM0 ((NRF_PWM_Type *) NRF_PWM0_BASE)
+#define NRF_PDM ((NRF_PDM_Type *) NRF_PDM_BASE)
+#define NRF_ACL ((NRF_ACL_Type *) NRF_ACL_BASE)
+#define NRF_NVMC ((NRF_NVMC_Type *) NRF_NVMC_BASE)
+#define NRF_PPI ((NRF_PPI_Type *) NRF_PPI_BASE)
+#define NRF_MWU ((NRF_MWU_Type *) NRF_MWU_BASE)
+#define NRF_PWM1 ((NRF_PWM_Type *) NRF_PWM1_BASE)
+#define NRF_PWM2 ((NRF_PWM_Type *) NRF_PWM2_BASE)
+#define NRF_SPI2 ((NRF_SPI_Type *) NRF_SPI2_BASE)
+#define NRF_SPIM2 ((NRF_SPIM_Type *) NRF_SPIM2_BASE)
+#define NRF_SPIS2 ((NRF_SPIS_Type *) NRF_SPIS2_BASE)
+#define NRF_RTC2 ((NRF_RTC_Type *) NRF_RTC2_BASE)
+#define NRF_I2S ((NRF_I2S_Type *) NRF_I2S_BASE)
+#define NRF_FPU ((NRF_FPU_Type *) NRF_FPU_BASE)
+#define NRF_USBD ((NRF_USBD_Type *) NRF_USBD_BASE)
+#define NRF_UARTE1 ((NRF_UARTE_Type *) NRF_UARTE1_BASE)
+#define NRF_QSPI ((NRF_QSPI_Type *) NRF_QSPI_BASE)
+#define NRF_PWM3 ((NRF_PWM_Type *) NRF_PWM3_BASE)
+#define NRF_SPIM3 ((NRF_SPIM_Type *) NRF_SPIM3_BASE)
+#define NRF_P0 ((NRF_GPIO_Type *) NRF_P0_BASE)
+#define NRF_P1 ((NRF_GPIO_Type *) NRF_P1_BASE)
+#define NRF_CC_HOST_RGF ((NRF_CC_HOST_RGF_Type *) NRF_CC_HOST_RGF_BASE)
+#define NRF_CRYPTOCELL ((NRF_CRYPTOCELL_Type *) NRF_CRYPTOCELL_BASE)
+
+
+/** @} */ /* End of group Device_Peripheral_Registers */
+/** @} */ /* End of group nrf52840 */
+/** @} */ /* End of group Nordic Semiconductor */
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* nrf52840_H */
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840.svd b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840.svd
new file mode 100644
index 0000000..b2e702a
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840.svd
@@ -0,0 +1,51571 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- File naming: <vendor>_<part/series name>_svd.xml -->
+<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" noNamespaceSchemaLocation="CMSIS-SVD.xsd">
+ <vendor>Nordic Semiconductor</vendor>
+ <vendorID>Nordic</vendorID>
+ <name>nrf52840</name>
+ <series>nrf52</series>
+ <version>1</version>
+ <description>nRF52840 reference description for radio MCU with ARM 32-bit Cortex-M4 Microcontroller </description>
+ <licenseText>
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA\n
+\n
+All rights reserved.\n
+\n
+Redistribution and use in source and binary forms, with or without modification,\n
+are permitted provided that the following conditions are met:\n
+\n
+1. Redistributions of source code must retain the above copyright notice, this\n
+ list of conditions and the following disclaimer.\n
+\n
+2. Redistributions in binary form, except as embedded into a Nordic\n
+ Semiconductor ASA integrated circuit in a product or a software update for\n
+ such product, must reproduce the above copyright notice, this list of\n
+ conditions and the following disclaimer in the documentation and/or other\n
+ materials provided with the distribution.\n
+\n
+3. Neither the name of Nordic Semiconductor ASA nor the names of its\n
+ contributors may be used to endorse or promote products derived from this\n
+ software without specific prior written permission.\n
+\n
+4. This software, with or without modification, must only be used with a\n
+ Nordic Semiconductor ASA integrated circuit.\n
+\n
+5. Any software provided in binary form under this license must not be reverse\n
+ engineered, decompiled, modified and/or disassembled.\n
+\n
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS\n
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE\n
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE\n
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\n
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n
+ </licenseText>
+ <addressUnitBits>8</addressUnitBits>
+ <width>32</width>
+ <size>32</size>
+ <resetValue>0x00000000</resetValue>
+ <resetMask>0xFFFFFFFF</resetMask>
+ <cpu>
+ <name>CM4</name>
+ <revision>r0p1</revision>
+ <endian>little</endian>
+ <mpuPresent>1</mpuPresent>
+ <fpuPresent>1</fpuPresent>
+ <nvicPrioBits>3</nvicPrioBits>
+ <vendorSystickConfig>0</vendorSystickConfig>
+ </cpu>
+ <headerSystemFilename>system_nrf52840</headerSystemFilename>
+ <headerDefinitionsPrefix>NRF_</headerDefinitionsPrefix>
+ <vendorExtensions>
+ <ExampleStackSize>2048</ExampleStackSize>
+ <ExampleHeapSize>2048</ExampleHeapSize>
+ <MaxInterrupts>112</MaxInterrupts>
+ </vendorExtensions>
+ <peripherals>
+ <peripheral>
+ <name>FICR</name>
+ <description>Factory information configuration registers</description>
+ <baseAddress>0x10000000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <groupName>FICR</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>CODEPAGESIZE</name>
+ <description>Code memory page size</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>CODEPAGESIZE</name>
+ <description>Code memory page size</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CODESIZE</name>
+ <description>Code memory size</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>CODESIZE</name>
+ <description>Code memory size in number of pages</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x2</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>DEVICEID[%s]</name>
+ <description>Description collection[n]: Device identifier</description>
+ <addressOffset>0x060</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>DEVICEID</name>
+ <description>64 bit unique device identifier</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x4</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>ER[%s]</name>
+ <description>Description collection[n]: Encryption root, word n</description>
+ <addressOffset>0x080</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>ER</name>
+ <description>Encryption root, word n</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x4</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>IR[%s]</name>
+ <description>Description collection[n]: Identity Root, word n</description>
+ <addressOffset>0x090</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>IR</name>
+ <description>Identity Root, word n</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DEVICEADDRTYPE</name>
+ <description>Device address type</description>
+ <addressOffset>0x0A0</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>DEVICEADDRTYPE</name>
+ <description>Device address type</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Public</name>
+ <description>Public address</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Random</name>
+ <description>Random address</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x2</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>DEVICEADDR[%s]</name>
+ <description>Description collection[n]: Device address n</description>
+ <addressOffset>0x0A4</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>DEVICEADDR</name>
+ <description>48 bit device address</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>INFO</name>
+ <description>Device info</description>
+ <headerStructName>FICR_INFO</headerStructName>
+ <addressOffset>0x100</addressOffset>
+ <register>
+ <name>PART</name>
+ <description>Part code</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00052840</resetValue>
+ <fields>
+ <field>
+ <name>PART</name>
+ <description>Part code</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>N52840</name>
+ <description>nRF52840</description>
+ <value>0x52840</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>VARIANT</name>
+ <description>Build code (hardware version and production configuration)</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>VARIANT</name>
+ <description>Build code (hardware version and production configuration). Encoded as ASCII.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AAAA</name>
+ <description>AAAA</description>
+ <value>0x41414141</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>BAAA</name>
+ <description>BAAA</description>
+ <value>0x42414141</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CAAA</name>
+ <description>CAAA</description>
+ <value>0x43414141</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AABA</name>
+ <description>AABA</description>
+ <value>0x41414241</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AABB</name>
+ <description>AABB</description>
+ <value>0x41414242</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AACA</name>
+ <description>AACA</description>
+ <value>0x41414341</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AAAB</name>
+ <description>AAAB</description>
+ <value>0x41414142</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PACKAGE</name>
+ <description>Package option</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PACKAGE</name>
+ <description>Package option</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>QI</name>
+ <description>QIxx - 73-pin aQFN</description>
+ <value>0x2004</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RAM</name>
+ <description>RAM variant</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>RAM</name>
+ <description>RAM variant</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K16</name>
+ <description>16 kByte RAM</description>
+ <value>0x10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K32</name>
+ <description>32 kByte RAM</description>
+ <value>0x20</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K64</name>
+ <description>64 kByte RAM</description>
+ <value>0x40</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K128</name>
+ <description>128 kByte RAM</description>
+ <value>0x80</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K256</name>
+ <description>256 kByte RAM</description>
+ <value>0x100</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FLASH</name>
+ <description>Flash variant</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>FLASH</name>
+ <description>Flash variant</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K128</name>
+ <description>128 kByte FLASH</description>
+ <value>0x80</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K256</name>
+ <description>256 kByte FLASH</description>
+ <value>0x100</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K512</name>
+ <description>512 kByte FLASH</description>
+ <value>0x200</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K1024</name>
+ <description>1 MByte FLASH</description>
+ <value>0x400</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K2048</name>
+ <description>2 MByte FLASH</description>
+ <value>0x800</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Unspecified</name>
+ <description>Unspecified</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x3</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>UNUSED8[%s]</name>
+ <description>Unspecified</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-write</access>
+ </register>
+ </cluster>
+ <register>
+ <dim>0x3</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>PRODTEST[%s]</name>
+ <description>Description collection[n]: Production test signature n</description>
+ <addressOffset>0x350</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PRODTEST</name>
+ <description>Production test signature n</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Done</name>
+ <description>Production tests done</description>
+ <value>0xBB42319F</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NotDone</name>
+ <description>Production tests not done</description>
+ <value>0xFFFFFFFF</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>TEMP</name>
+ <description>Registers storing factory TEMP module linearization coefficients</description>
+ <headerStructName>FICR_TEMP</headerStructName>
+ <addressOffset>0x404</addressOffset>
+ <register>
+ <name>A0</name>
+ <description>Slope definition A0</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFF320</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register.</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A1</name>
+ <description>Slope definition A1</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFF343</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register.</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A2</name>
+ <description>Slope definition A2</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFF35D</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register.</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A3</name>
+ <description>Slope definition A3</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFF400</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register.</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A4</name>
+ <description>Slope definition A4</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFF452</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register.</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A5</name>
+ <description>Slope definition A5</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFF37B</resetValue>
+ <fields>
+ <field>
+ <name>A</name>
+ <description>A (slope definition) register.</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B0</name>
+ <description>Y-intercept B0</description>
+ <addressOffset>0x018</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFF3FCC</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B1</name>
+ <description>Y-intercept B1</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFF3F98</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B2</name>
+ <description>Y-intercept B2</description>
+ <addressOffset>0x020</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFF3F98</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B3</name>
+ <description>Y-intercept B3</description>
+ <addressOffset>0x024</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFF0012</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B4</name>
+ <description>Y-intercept B4</description>
+ <addressOffset>0x028</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFF004D</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B5</name>
+ <description>Y-intercept B5</description>
+ <addressOffset>0x02C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFF3E10</resetValue>
+ <fields>
+ <field>
+ <name>B</name>
+ <description>B (y-intercept)</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T0</name>
+ <description>Segment end T0</description>
+ <addressOffset>0x030</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFE2</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end) register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T1</name>
+ <description>Segment end T1</description>
+ <addressOffset>0x034</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFF00</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end) register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T2</name>
+ <description>Segment end T2</description>
+ <addressOffset>0x038</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFF14</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end) register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T3</name>
+ <description>Segment end T3</description>
+ <addressOffset>0x03C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFF19</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end) register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T4</name>
+ <description>Segment end T4</description>
+ <addressOffset>0x040</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFF50</resetValue>
+ <fields>
+ <field>
+ <name>T</name>
+ <description>T (segment end) register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>NFC</name>
+ <description>Unspecified</description>
+ <headerStructName>FICR_NFC</headerStructName>
+ <addressOffset>0x450</addressOffset>
+ <register>
+ <name>TAGHEADER0</name>
+ <description>Default header for NFC tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFF5F</resetValue>
+ <fields>
+ <field>
+ <name>MFGID</name>
+ <description>Default Manufacturer ID: Nordic Semiconductor ASA has ICM 0x5F</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>UD1</name>
+ <description>Unique identifier byte 1</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>UD2</name>
+ <description>Unique identifier byte 2</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>UD3</name>
+ <description>Unique identifier byte 3</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TAGHEADER1</name>
+ <description>Default header for NFC tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>UD4</name>
+ <description>Unique identifier byte 4</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>UD5</name>
+ <description>Unique identifier byte 5</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>UD6</name>
+ <description>Unique identifier byte 6</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>UD7</name>
+ <description>Unique identifier byte 7</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TAGHEADER2</name>
+ <description>Default header for NFC tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>UD8</name>
+ <description>Unique identifier byte 8</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>UD9</name>
+ <description>Unique identifier byte 9</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>UD10</name>
+ <description>Unique identifier byte 10</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>UD11</name>
+ <description>Unique identifier byte 11</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TAGHEADER3</name>
+ <description>Default header for NFC tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>UD12</name>
+ <description>Unique identifier byte 12</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>UD13</name>
+ <description>Unique identifier byte 13</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>UD14</name>
+ <description>Unique identifier byte 14</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>UD15</name>
+ <description>Unique identifier byte 15</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TRNG90B</name>
+ <description>NIST800-90B RNG calibration data</description>
+ <headerStructName>FICR_TRNG90B</headerStructName>
+ <addressOffset>0xC00</addressOffset>
+ <register>
+ <name>BYTES</name>
+ <description>Amount of bytes for the required entropy bits</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>BYTES</name>
+ <description>Amount of bytes for the required entropy bits</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RCCUTOFF</name>
+ <description>Repetition counter cutoff</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>RCCUTOFF</name>
+ <description>Repetition counter cutoff</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>APCUTOFF</name>
+ <description>Adaptive proportion cutoff</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>APCUTOFF</name>
+ <description>Adaptive proportion cutoff</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STARTUP</name>
+ <description>Amount of bytes for the startup tests</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000210</resetValue>
+ <fields>
+ <field>
+ <name>STARTUP</name>
+ <description>Amount of bytes for the startup tests</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ROSC1</name>
+ <description>Sample count for ring oscillator 1</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>ROSC1</name>
+ <description>Sample count for ring oscillator 1</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ROSC2</name>
+ <description>Sample count for ring oscillator 2</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>ROSC2</name>
+ <description>Sample count for ring oscillator 2</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ROSC3</name>
+ <description>Sample count for ring oscillator 3</description>
+ <addressOffset>0x018</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>ROSC3</name>
+ <description>Sample count for ring oscillator 3</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ROSC4</name>
+ <description>Sample count for ring oscillator 4</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>ROSC4</name>
+ <description>Sample count for ring oscillator 4</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>UICR</name>
+ <description>User information configuration registers</description>
+ <baseAddress>0x10001000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <groupName>UICR</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>UNUSED0</name>
+ <description>Unspecified</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>UNUSED1</name>
+ <description>Unspecified</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>UNUSED2</name>
+ <description>Unspecified</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>UNUSED3</name>
+ <description>Unspecified</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <dim>0xF</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>NRFFW[%s]</name>
+ <description>Description collection[n]: Reserved for Nordic firmware design</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>NRFFW</name>
+ <description>Reserved for Nordic firmware design</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0xC</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>NRFHW[%s]</name>
+ <description>Description collection[n]: Reserved for Nordic hardware design</description>
+ <addressOffset>0x050</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>NRFHW</name>
+ <description>Reserved for Nordic hardware design</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x20</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>CUSTOMER[%s]</name>
+ <description>Description collection[n]: Reserved for customer</description>
+ <addressOffset>0x080</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>CUSTOMER</name>
+ <description>Reserved for customer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x2</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>PSELRESET[%s]</name>
+ <description>Description collection[n]: Mapping of the nRESET function</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number of PORT onto which nRESET is exposed</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number onto which nRESET is exposed</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>APPROTECT</name>
+ <description>Access port protection</description>
+ <addressOffset>0x208</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PALL</name>
+ <description>Enable or disable access port protection.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0xFF</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NFCPINS</name>
+ <description>Setting of pins dedicated to NFC functionality: NFC antenna or GPIO</description>
+ <addressOffset>0x20C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PROTECT</name>
+ <description>Setting of pins dedicated to NFC functionality</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Operation as GPIO pins. Same protection as normal GPIO pins</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NFC</name>
+ <description>Operation as NFC antenna pins. Configures the protection for NFC operation</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DEBUGCTRL</name>
+ <description>Processor debug control</description>
+ <addressOffset>0x210</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>CPUNIDEN</name>
+ <description>Configure CPU non-intrusive debug features</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable CPU ITM and ETM functionality (default behavior)</description>
+ <value>0xFF</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable CPU ITM and ETM functionality</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPUFPBEN</name>
+ <description>Configure CPU flash patch and breakpoint (FPB) unit behavior</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable CPU FPB unit (default behavior)</description>
+ <value>0xFF</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable CPU FPB unit. Writes into the FPB registers will be ignored.</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REGOUT0</name>
+ <description>GPIO reference voltage / external output supply voltage in high voltage mode</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>VOUT</name>
+ <description>Output voltage from of REG0 regulator stage. The maximum output voltage from this stage is given as VDDH - VEXDIF.</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>1V8</name>
+ <description>1.8 V</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2V1</name>
+ <description>2.1 V</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2V4</name>
+ <description>2.4 V</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2V7</name>
+ <description>2.7 V</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>3V0</name>
+ <description>3.0 V</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>3V3</name>
+ <description>3.3 V</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DEFAULT</name>
+ <description>Default voltage: 1.8 V</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>CLOCK</name>
+ <description>Clock control</description>
+ <baseAddress>0x40000000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>POWER_CLOCK</name>
+ <value>0</value>
+ </interrupt>
+ <groupName>CLOCK</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_HFCLKSTART</name>
+ <description>Start HFXO crystal oscillator</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_HFCLKSTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_HFCLKSTOP</name>
+ <description>Stop HFXO crystal oscillator</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_HFCLKSTOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_LFCLKSTART</name>
+ <description>Start LFCLK</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_LFCLKSTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_LFCLKSTOP</name>
+ <description>Stop LFCLK</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_LFCLKSTOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CAL</name>
+ <description>Start calibration of LFRC</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CAL</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CTSTART</name>
+ <description>Start calibration timer</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CTSTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CTSTOP</name>
+ <description>Stop calibration timer</description>
+ <addressOffset>0x018</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CTSTOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_HFCLKSTARTED</name>
+ <description>HFXO crystal oscillator started</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_HFCLKSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_LFCLKSTARTED</name>
+ <description>LFCLK started</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_LFCLKSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DONE</name>
+ <description>Calibration of LFRC completed</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DONE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CTTO</name>
+ <description>Calibration timer timeout</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CTTO</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CTSTARTED</name>
+ <description>Calibration timer has been started and is ready to process new tasks</description>
+ <addressOffset>0x128</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CTSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CTSTOPPED</name>
+ <description>Calibration timer has been stopped and is ready to process new tasks</description>
+ <addressOffset>0x12C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CTSTOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HFCLKSTARTED</name>
+ <description>Write '1' to enable interrupt for HFCLKSTARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LFCLKSTARTED</name>
+ <description>Write '1' to enable interrupt for LFCLKSTARTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Write '1' to enable interrupt for DONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CTTO</name>
+ <description>Write '1' to enable interrupt for CTTO event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CTSTARTED</name>
+ <description>Write '1' to enable interrupt for CTSTARTED event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CTSTOPPED</name>
+ <description>Write '1' to enable interrupt for CTSTOPPED event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HFCLKSTARTED</name>
+ <description>Write '1' to disable interrupt for HFCLKSTARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LFCLKSTARTED</name>
+ <description>Write '1' to disable interrupt for LFCLKSTARTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Write '1' to disable interrupt for DONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CTTO</name>
+ <description>Write '1' to disable interrupt for CTTO event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CTSTARTED</name>
+ <description>Write '1' to disable interrupt for CTSTARTED event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CTSTOPPED</name>
+ <description>Write '1' to disable interrupt for CTSTOPPED event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HFCLKRUN</name>
+ <description>Status indicating that HFCLKSTART task has been triggered</description>
+ <addressOffset>0x408</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>HFCLKSTART task triggered or not</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotTriggered</name>
+ <description>Task not triggered</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Triggered</name>
+ <description>Task triggered</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HFCLKSTAT</name>
+ <description>HFCLK status</description>
+ <addressOffset>0x40C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Source of HFCLK</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>64 MHz internal oscillator (HFINT)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>64 MHz crystal oscillator (HFXO)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STATE</name>
+ <description>HFCLK state</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotRunning</name>
+ <description>HFCLK not running</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Running</name>
+ <description>HFCLK running</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFCLKRUN</name>
+ <description>Status indicating that LFCLKSTART task has been triggered</description>
+ <addressOffset>0x414</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>LFCLKSTART task triggered or not</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotTriggered</name>
+ <description>Task not triggered</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Triggered</name>
+ <description>Task triggered</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFCLKSTAT</name>
+ <description>LFCLK status</description>
+ <addressOffset>0x418</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Source of LFCLK</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>32.768 kHz RC oscillator (LFRC)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>32.768 kHz crystal oscillator (LFXO)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Synth</name>
+ <description>32.768 kHz synthesized from HFCLK (LFSYNT)</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STATE</name>
+ <description>LFCLK state</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotRunning</name>
+ <description>LFCLK not running</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Running</name>
+ <description>LFCLK running</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFCLKSRCCOPY</name>
+ <description>Copy of LFCLKSRC register, set when LFCLKSTART task was triggered</description>
+ <addressOffset>0x41C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Clock source</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>32.768 kHz RC oscillator (LFRC)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>32.768 kHz crystal oscillator (LFXO)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Synth</name>
+ <description>32.768 kHz synthesized from HFCLK (LFSYNT)</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFCLKSRC</name>
+ <description>Clock source for the LFCLK</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Clock source</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RC</name>
+ <description>32.768 kHz RC oscillator (LFRC)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Xtal</name>
+ <description>32.768 kHz crystal oscillator (LFXO)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Synth</name>
+ <description>32.768 kHz synthesized from HFCLK (LFSYNT)</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BYPASS</name>
+ <description>Enable or disable bypass of LFCLK crystal oscillator with external clock source</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable (use with Xtal or low-swing external source)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable (use with rail-to-rail external source)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EXTERNAL</name>
+ <description>Enable or disable external source for LFCLK</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable external source (use with Xtal)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable use of external source instead of Xtal (SRC needs to be set to Xtal)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HFXODEBOUNCE</name>
+ <description>HFXO debounce time. The HFXO is started by triggering the TASKS_HFCLKSTART task.</description>
+ <addressOffset>0x528</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000010</resetValue>
+ <fields>
+ <field>
+ <name>HFXODEBOUNCE</name>
+ <description>HFXO debounce time. Debounce time = HFXODEBOUNCE * 16 us.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Db256us</name>
+ <description>256 us debounce time. Recommended for TSX-3225, FA-20H and FA-128 crystals.</description>
+ <value>0x10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Db1024us</name>
+ <description>1024 us debounce time. Recommended for NX1612AA and NX1210AB crystals.</description>
+ <value>0x40</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CTIV</name>
+ <description>Calibration timer interval</description>
+ <addressOffset>0x538</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTIV</name>
+ <description>Calibration timer interval in multiple of 0.25 seconds. Range: 0.25 seconds to 31.75 seconds.</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TRACECONFIG</name>
+ <description>Clocking options for the trace port debug interface</description>
+ <addressOffset>0x55C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>TRACEPORTSPEED</name>
+ <description>Speed of trace port clock. Note that the TRACECLK pin will output this clock divided by two.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>32MHz</name>
+ <description>32 MHz trace port clock (TRACECLK = 16 MHz)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>16MHz</name>
+ <description>16 MHz trace port clock (TRACECLK = 8 MHz)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>8MHz</name>
+ <description>8 MHz trace port clock (TRACECLK = 4 MHz)</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>4MHz</name>
+ <description>4 MHz trace port clock (TRACECLK = 2 MHz)</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRACEMUX</name>
+ <description>Pin multiplexing of trace signals. See pin assignment chapter for more details.</description>
+ <lsb>16</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>GPIO</name>
+ <description>No trace signals routed to pins. All pins can be used as regular GPIOs.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Serial</name>
+ <description>SWO trace signal routed to pin. Remaining pins can be used as regular GPIOs.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Parallel</name>
+ <description>All trace signals (TRACECLK and TRACEDATA[n]) routed to pins.</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LFRCMODE</name>
+ <description>LFRC mode configuration</description>
+ <addressOffset>0x5B4</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Set LFRC mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Normal</name>
+ <description>Normal mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ULP</name>
+ <description>Ultra-low power mode (ULP)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STATUS</name>
+ <description>Active LFRC mode. This field is read only.</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Normal</name>
+ <description>Normal mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ULP</name>
+ <description>Ultra-low power mode (ULP)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>POWER</name>
+ <description>Power control</description>
+ <baseAddress>0x40000000</baseAddress>
+ <alternatePeripheral>CLOCK</alternatePeripheral>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>POWER_CLOCK</name>
+ <value>0</value>
+ </interrupt>
+ <groupName>POWER</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_CONSTLAT</name>
+ <description>Enable constant latency mode</description>
+ <addressOffset>0x78</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CONSTLAT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_LOWPWR</name>
+ <description>Enable low power mode (variable latency)</description>
+ <addressOffset>0x7C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_LOWPWR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_POFWARN</name>
+ <description>Power failure warning</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_POFWARN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_SLEEPENTER</name>
+ <description>CPU entered WFI/WFE sleep</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SLEEPENTER</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_SLEEPEXIT</name>
+ <description>CPU exited WFI/WFE sleep</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SLEEPEXIT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_USBDETECTED</name>
+ <description>Voltage supply detected on VBUS</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_USBDETECTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_USBREMOVED</name>
+ <description>Voltage supply removed from VBUS</description>
+ <addressOffset>0x120</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_USBREMOVED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_USBPWRRDY</name>
+ <description>USB 3.3 V supply ready</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_USBPWRRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>POFWARN</name>
+ <description>Write '1' to enable interrupt for POFWARN event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SLEEPENTER</name>
+ <description>Write '1' to enable interrupt for SLEEPENTER event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SLEEPEXIT</name>
+ <description>Write '1' to enable interrupt for SLEEPEXIT event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>USBDETECTED</name>
+ <description>Write '1' to enable interrupt for USBDETECTED event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>USBREMOVED</name>
+ <description>Write '1' to enable interrupt for USBREMOVED event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>USBPWRRDY</name>
+ <description>Write '1' to enable interrupt for USBPWRRDY event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>POFWARN</name>
+ <description>Write '1' to disable interrupt for POFWARN event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SLEEPENTER</name>
+ <description>Write '1' to disable interrupt for SLEEPENTER event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SLEEPEXIT</name>
+ <description>Write '1' to disable interrupt for SLEEPEXIT event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>USBDETECTED</name>
+ <description>Write '1' to disable interrupt for USBDETECTED event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>USBREMOVED</name>
+ <description>Write '1' to disable interrupt for USBREMOVED event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>USBPWRRDY</name>
+ <description>Write '1' to disable interrupt for USBPWRRDY event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RESETREAS</name>
+ <description>Reset reason</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RESETPIN</name>
+ <description>Reset from pin-reset detected</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOG</name>
+ <description>Reset from watchdog detected</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SREQ</name>
+ <description>Reset from soft reset detected</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOCKUP</name>
+ <description>Reset from CPU lock-up detected</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OFF</name>
+ <description>Reset due to wake up from System OFF mode when wakeup is triggered from DETECT signal from GPIO</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LPCOMP</name>
+ <description>Reset due to wake up from System OFF mode when wakeup is triggered from ANADETECT signal from LPCOMP</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DIF</name>
+ <description>Reset due to wake up from System OFF mode when wakeup is triggered from entering into debug interface mode</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NFC</name>
+ <description>Reset due to wake up from System OFF mode by NFC field detect</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>VBUS</name>
+ <description>Reset due to wake up from System OFF mode by VBUS rising into valid range</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RAMSTATUS</name>
+ <description>Deprecated register - RAM status register</description>
+ <addressOffset>0x428</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>RAMBLOCK0</name>
+ <description>RAM block 0 is on or off/powering up</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RAMBLOCK1</name>
+ <description>RAM block 1 is on or off/powering up</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RAMBLOCK2</name>
+ <description>RAM block 2 is on or off/powering up</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RAMBLOCK3</name>
+ <description>RAM block 3 is on or off/powering up</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>USBREGSTATUS</name>
+ <description>USB supply status</description>
+ <addressOffset>0x438</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>VBUSDETECT</name>
+ <description>VBUS input detection status (USBDETECTED and USBREMOVED events are derived from this information)</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoVbus</name>
+ <description>VBUS voltage below valid threshold</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VbusPresent</name>
+ <description>VBUS voltage above valid threshold</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OUTPUTRDY</name>
+ <description>USB supply output settling time elapsed</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReady</name>
+ <description>USBREG output settling time not elapsed</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ready</name>
+ <description>USBREG output settling time elapsed (same information as USBPWRRDY event)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SYSTEMOFF</name>
+ <description>System OFF register</description>
+ <addressOffset>0x500</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>SYSTEMOFF</name>
+ <description>Enable System OFF mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Enter</name>
+ <description>Enable System OFF mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>POFCON</name>
+ <description>Power-fail comparator configuration</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>POF</name>
+ <description>Enable or disable power failure warning</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>THRESHOLD</name>
+ <description>Power-fail comparator threshold setting. This setting applies both for normal voltage mode (supply connected to both VDD and VDDH) and high voltage mode (supply connected to VDDH only). Values 0-3 set threshold below 1.7 V and should not be used as brown out detection will be activated before power failure warning on such low voltages.</description>
+ <lsb>1</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>V17</name>
+ <description>Set threshold to 1.7 V</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V18</name>
+ <description>Set threshold to 1.8 V</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V19</name>
+ <description>Set threshold to 1.9 V</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V20</name>
+ <description>Set threshold to 2.0 V</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V21</name>
+ <description>Set threshold to 2.1 V</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V22</name>
+ <description>Set threshold to 2.2 V</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V23</name>
+ <description>Set threshold to 2.3 V</description>
+ <value>10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V24</name>
+ <description>Set threshold to 2.4 V</description>
+ <value>11</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V25</name>
+ <description>Set threshold to 2.5 V</description>
+ <value>12</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V26</name>
+ <description>Set threshold to 2.6 V</description>
+ <value>13</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V27</name>
+ <description>Set threshold to 2.7 V</description>
+ <value>14</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V28</name>
+ <description>Set threshold to 2.8 V</description>
+ <value>15</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>THRESHOLDVDDH</name>
+ <description>Power-fail comparator threshold setting for high voltage mode (supply connected to VDDH only). This setting does not apply for normal voltage mode (supply connected to both VDD and VDDH).</description>
+ <lsb>8</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>V27</name>
+ <description>Set threshold to 2.7 V</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V28</name>
+ <description>Set threshold to 2.8 V</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V29</name>
+ <description>Set threshold to 2.9 V</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V30</name>
+ <description>Set threshold to 3.0 V</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V31</name>
+ <description>Set threshold to 3.1 V</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V32</name>
+ <description>Set threshold to 3.2 V</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V33</name>
+ <description>Set threshold to 3.3 V</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V34</name>
+ <description>Set threshold to 3.4 V</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V35</name>
+ <description>Set threshold to 3.5 V</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V36</name>
+ <description>Set threshold to 3.6 V</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V37</name>
+ <description>Set threshold to 3.7 V</description>
+ <value>10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V38</name>
+ <description>Set threshold to 3.8 V</description>
+ <value>11</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V39</name>
+ <description>Set threshold to 3.9 V</description>
+ <value>12</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V40</name>
+ <description>Set threshold to 4.0 V</description>
+ <value>13</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V41</name>
+ <description>Set threshold to 4.1 V</description>
+ <value>14</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>V42</name>
+ <description>Set threshold to 4.2 V</description>
+ <value>15</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>GPREGRET</name>
+ <description>General purpose retention register</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>GPREGRET</name>
+ <description>General purpose retention register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>GPREGRET2</name>
+ <description>General purpose retention register</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>GPREGRET</name>
+ <description>General purpose retention register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DCDCEN</name>
+ <description>Enable DC/DC converter for REG1 stage.</description>
+ <addressOffset>0x578</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DCDCEN</name>
+ <description>Enable DC/DC converter for REG1 stage.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DCDCEN0</name>
+ <description>Enable DC/DC converter for REG0 stage.</description>
+ <addressOffset>0x580</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DCDCEN</name>
+ <description>Enable DC/DC converter for REG0 stage.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAINREGSTATUS</name>
+ <description>Main supply status</description>
+ <addressOffset>0x640</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>MAINREGSTATUS</name>
+ <description>Main supply status</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Normal</name>
+ <description>Normal voltage mode. Voltage supplied on VDD.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>High voltage mode. Voltage supplied on VDDH.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>9</dim>
+ <dimIncrement>0x010</dimIncrement>
+ <name>RAM[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>POWER_RAM</headerStructName>
+ <addressOffset>0x900</addressOffset>
+ <register>
+ <name>POWER</name>
+ <description>Description cluster[n]: RAMn power control register</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000FFFF</resetValue>
+ <fields>
+ <field>
+ <name>S0POWER</name>
+ <description>Keep RAM section S0 on or off in System ON mode.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1POWER</name>
+ <description>Keep RAM section S1 on or off in System ON mode.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S2POWER</name>
+ <description>Keep RAM section S2 on or off in System ON mode.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S3POWER</name>
+ <description>Keep RAM section S3 on or off in System ON mode.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S4POWER</name>
+ <description>Keep RAM section S4 on or off in System ON mode.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S5POWER</name>
+ <description>Keep RAM section S5 on or off in System ON mode.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S6POWER</name>
+ <description>Keep RAM section S6 on or off in System ON mode.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S7POWER</name>
+ <description>Keep RAM section S7 on or off in System ON mode.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S8POWER</name>
+ <description>Keep RAM section S8 on or off in System ON mode.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S9POWER</name>
+ <description>Keep RAM section S9 on or off in System ON mode.</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S10POWER</name>
+ <description>Keep RAM section S10 on or off in System ON mode.</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S11POWER</name>
+ <description>Keep RAM section S11 on or off in System ON mode.</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S12POWER</name>
+ <description>Keep RAM section S12 on or off in System ON mode.</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S13POWER</name>
+ <description>Keep RAM section S13 on or off in System ON mode.</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S14POWER</name>
+ <description>Keep RAM section S14 on or off in System ON mode.</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S15POWER</name>
+ <description>Keep RAM section S15 on or off in System ON mode.</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S0RETENTION</name>
+ <description>Keep retention on RAM section S0 when RAM section is off</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1RETENTION</name>
+ <description>Keep retention on RAM section S1 when RAM section is off</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S2RETENTION</name>
+ <description>Keep retention on RAM section S2 when RAM section is off</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S3RETENTION</name>
+ <description>Keep retention on RAM section S3 when RAM section is off</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S4RETENTION</name>
+ <description>Keep retention on RAM section S4 when RAM section is off</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S5RETENTION</name>
+ <description>Keep retention on RAM section S5 when RAM section is off</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S6RETENTION</name>
+ <description>Keep retention on RAM section S6 when RAM section is off</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S7RETENTION</name>
+ <description>Keep retention on RAM section S7 when RAM section is off</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S8RETENTION</name>
+ <description>Keep retention on RAM section S8 when RAM section is off</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S9RETENTION</name>
+ <description>Keep retention on RAM section S9 when RAM section is off</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S10RETENTION</name>
+ <description>Keep retention on RAM section S10 when RAM section is off</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S11RETENTION</name>
+ <description>Keep retention on RAM section S11 when RAM section is off</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S12RETENTION</name>
+ <description>Keep retention on RAM section S12 when RAM section is off</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S13RETENTION</name>
+ <description>Keep retention on RAM section S13 when RAM section is off</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S14RETENTION</name>
+ <description>Keep retention on RAM section S14 when RAM section is off</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S15RETENTION</name>
+ <description>Keep retention on RAM section S15 when RAM section is off</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>POWERSET</name>
+ <description>Description cluster[n]: RAMn power control set register</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <resetValue>0x0000FFFF</resetValue>
+ <fields>
+ <field>
+ <name>S0POWER</name>
+ <description>Keep RAM section S0 of RAMn on or off in System ON mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1POWER</name>
+ <description>Keep RAM section S1 of RAMn on or off in System ON mode</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S2POWER</name>
+ <description>Keep RAM section S2 of RAMn on or off in System ON mode</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S3POWER</name>
+ <description>Keep RAM section S3 of RAMn on or off in System ON mode</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S4POWER</name>
+ <description>Keep RAM section S4 of RAMn on or off in System ON mode</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S5POWER</name>
+ <description>Keep RAM section S5 of RAMn on or off in System ON mode</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S6POWER</name>
+ <description>Keep RAM section S6 of RAMn on or off in System ON mode</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S7POWER</name>
+ <description>Keep RAM section S7 of RAMn on or off in System ON mode</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S8POWER</name>
+ <description>Keep RAM section S8 of RAMn on or off in System ON mode</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S9POWER</name>
+ <description>Keep RAM section S9 of RAMn on or off in System ON mode</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S10POWER</name>
+ <description>Keep RAM section S10 of RAMn on or off in System ON mode</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S11POWER</name>
+ <description>Keep RAM section S11 of RAMn on or off in System ON mode</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S12POWER</name>
+ <description>Keep RAM section S12 of RAMn on or off in System ON mode</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S13POWER</name>
+ <description>Keep RAM section S13 of RAMn on or off in System ON mode</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S14POWER</name>
+ <description>Keep RAM section S14 of RAMn on or off in System ON mode</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S15POWER</name>
+ <description>Keep RAM section S15 of RAMn on or off in System ON mode</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S0RETENTION</name>
+ <description>Keep retention on RAM section S0 when RAM section is switched off</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1RETENTION</name>
+ <description>Keep retention on RAM section S1 when RAM section is switched off</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S2RETENTION</name>
+ <description>Keep retention on RAM section S2 when RAM section is switched off</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S3RETENTION</name>
+ <description>Keep retention on RAM section S3 when RAM section is switched off</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S4RETENTION</name>
+ <description>Keep retention on RAM section S4 when RAM section is switched off</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S5RETENTION</name>
+ <description>Keep retention on RAM section S5 when RAM section is switched off</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S6RETENTION</name>
+ <description>Keep retention on RAM section S6 when RAM section is switched off</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S7RETENTION</name>
+ <description>Keep retention on RAM section S7 when RAM section is switched off</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S8RETENTION</name>
+ <description>Keep retention on RAM section S8 when RAM section is switched off</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S9RETENTION</name>
+ <description>Keep retention on RAM section S9 when RAM section is switched off</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S10RETENTION</name>
+ <description>Keep retention on RAM section S10 when RAM section is switched off</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S11RETENTION</name>
+ <description>Keep retention on RAM section S11 when RAM section is switched off</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S12RETENTION</name>
+ <description>Keep retention on RAM section S12 when RAM section is switched off</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S13RETENTION</name>
+ <description>Keep retention on RAM section S13 when RAM section is switched off</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S14RETENTION</name>
+ <description>Keep retention on RAM section S14 when RAM section is switched off</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S15RETENTION</name>
+ <description>Keep retention on RAM section S15 when RAM section is switched off</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>On</name>
+ <description>On</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>POWERCLR</name>
+ <description>Description cluster[n]: RAMn power control clear register</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <resetValue>0x0000FFFF</resetValue>
+ <fields>
+ <field>
+ <name>S0POWER</name>
+ <description>Keep RAM section S0 of RAMn on or off in System ON mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1POWER</name>
+ <description>Keep RAM section S1 of RAMn on or off in System ON mode</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S2POWER</name>
+ <description>Keep RAM section S2 of RAMn on or off in System ON mode</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S3POWER</name>
+ <description>Keep RAM section S3 of RAMn on or off in System ON mode</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S4POWER</name>
+ <description>Keep RAM section S4 of RAMn on or off in System ON mode</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S5POWER</name>
+ <description>Keep RAM section S5 of RAMn on or off in System ON mode</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S6POWER</name>
+ <description>Keep RAM section S6 of RAMn on or off in System ON mode</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S7POWER</name>
+ <description>Keep RAM section S7 of RAMn on or off in System ON mode</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S8POWER</name>
+ <description>Keep RAM section S8 of RAMn on or off in System ON mode</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S9POWER</name>
+ <description>Keep RAM section S9 of RAMn on or off in System ON mode</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S10POWER</name>
+ <description>Keep RAM section S10 of RAMn on or off in System ON mode</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S11POWER</name>
+ <description>Keep RAM section S11 of RAMn on or off in System ON mode</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S12POWER</name>
+ <description>Keep RAM section S12 of RAMn on or off in System ON mode</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S13POWER</name>
+ <description>Keep RAM section S13 of RAMn on or off in System ON mode</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S14POWER</name>
+ <description>Keep RAM section S14 of RAMn on or off in System ON mode</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S15POWER</name>
+ <description>Keep RAM section S15 of RAMn on or off in System ON mode</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S0RETENTION</name>
+ <description>Keep retention on RAM section S0 when RAM section is switched off</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S1RETENTION</name>
+ <description>Keep retention on RAM section S1 when RAM section is switched off</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S2RETENTION</name>
+ <description>Keep retention on RAM section S2 when RAM section is switched off</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S3RETENTION</name>
+ <description>Keep retention on RAM section S3 when RAM section is switched off</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S4RETENTION</name>
+ <description>Keep retention on RAM section S4 when RAM section is switched off</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S5RETENTION</name>
+ <description>Keep retention on RAM section S5 when RAM section is switched off</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S6RETENTION</name>
+ <description>Keep retention on RAM section S6 when RAM section is switched off</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S7RETENTION</name>
+ <description>Keep retention on RAM section S7 when RAM section is switched off</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S8RETENTION</name>
+ <description>Keep retention on RAM section S8 when RAM section is switched off</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S9RETENTION</name>
+ <description>Keep retention on RAM section S9 when RAM section is switched off</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S10RETENTION</name>
+ <description>Keep retention on RAM section S10 when RAM section is switched off</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S11RETENTION</name>
+ <description>Keep retention on RAM section S11 when RAM section is switched off</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S12RETENTION</name>
+ <description>Keep retention on RAM section S12 when RAM section is switched off</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S13RETENTION</name>
+ <description>Keep retention on RAM section S13 when RAM section is switched off</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S14RETENTION</name>
+ <description>Keep retention on RAM section S14 when RAM section is switched off</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>S15RETENTION</name>
+ <description>Keep retention on RAM section S15 when RAM section is switched off</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Off</name>
+ <description>Off</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>RADIO</name>
+ <description>2.4 GHz radio</description>
+ <baseAddress>0x40001000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>RADIO</name>
+ <value>1</value>
+ </interrupt>
+ <groupName>RADIO</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_TXEN</name>
+ <description>Enable RADIO in TX mode</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_TXEN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RXEN</name>
+ <description>Enable RADIO in RX mode</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RXEN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start RADIO</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop RADIO</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_DISABLE</name>
+ <description>Disable RADIO</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_DISABLE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RSSISTART</name>
+ <description>Start the RSSI and take one single sample of the receive signal strength</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RSSISTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RSSISTOP</name>
+ <description>Stop the RSSI measurement</description>
+ <addressOffset>0x018</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RSSISTOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_BCSTART</name>
+ <description>Start the bit counter</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_BCSTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_BCSTOP</name>
+ <description>Stop the bit counter</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_BCSTOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_EDSTART</name>
+ <description>Start the energy detect measurement used in IEEE 802.15.4 mode</description>
+ <addressOffset>0x024</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_EDSTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_EDSTOP</name>
+ <description>Stop the energy detect measurement</description>
+ <addressOffset>0x028</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_EDSTOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CCASTART</name>
+ <description>Start the clear channel assessment used in IEEE 802.15.4 mode</description>
+ <addressOffset>0x02C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CCASTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CCASTOP</name>
+ <description>Stop the clear channel assessment</description>
+ <addressOffset>0x030</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CCASTOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>RADIO has ramped up and is ready to be started</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_READY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ADDRESS</name>
+ <description>Address sent or received</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ADDRESS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_PAYLOAD</name>
+ <description>Packet payload sent or received</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_PAYLOAD</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>Packet sent or received</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_END</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DISABLED</name>
+ <description>RADIO has been disabled</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DISABLED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DEVMATCH</name>
+ <description>A device address match occurred on the last received packet</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DEVMATCH</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DEVMISS</name>
+ <description>No device address match occurred on the last received packet</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DEVMISS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RSSIEND</name>
+ <description>Sampling of receive signal strength complete</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RSSIEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_BCMATCH</name>
+ <description>Bit counter reached bit count value</description>
+ <addressOffset>0x128</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_BCMATCH</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CRCOK</name>
+ <description>Packet received with CRC ok</description>
+ <addressOffset>0x130</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CRCOK</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CRCERROR</name>
+ <description>Packet received with CRC error</description>
+ <addressOffset>0x134</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CRCERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_FRAMESTART</name>
+ <description>IEEE 802.15.4 length field received</description>
+ <addressOffset>0x138</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_FRAMESTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_EDEND</name>
+ <description>Sampling of energy detection complete. A new ED sample is ready for readout from the RADIO.EDSAMPLE register.</description>
+ <addressOffset>0x13C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_EDEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_EDSTOPPED</name>
+ <description>The sampling of energy detection has stopped</description>
+ <addressOffset>0x140</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_EDSTOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CCAIDLE</name>
+ <description>Wireless medium in idle - clear to send</description>
+ <addressOffset>0x144</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CCAIDLE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CCABUSY</name>
+ <description>Wireless medium busy - do not send</description>
+ <addressOffset>0x148</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CCABUSY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CCASTOPPED</name>
+ <description>The CCA has stopped</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CCASTOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RATEBOOST</name>
+ <description>Ble_LR CI field received, receive mode is changed from Ble_LR125Kbit to Ble_LR500Kbit.</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RATEBOOST</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXREADY</name>
+ <description>RADIO has ramped up and is ready to be started TX path</description>
+ <addressOffset>0x154</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXREADY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXREADY</name>
+ <description>RADIO has ramped up and is ready to be started RX path</description>
+ <addressOffset>0x158</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXREADY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_MHRMATCH</name>
+ <description>MAC header match found</description>
+ <addressOffset>0x15C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_MHRMATCH</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_PHYEND</name>
+ <description>Generated in Ble_LR125Kbit, Ble_LR500Kbit and BleIeee802154_250Kbit modes when last bit is sent on air.</description>
+ <addressOffset>0x16C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_PHYEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY_START</name>
+ <description>Shortcut between READY event and START task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END_DISABLE</name>
+ <description>Shortcut between END event and DISABLE task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED_TXEN</name>
+ <description>Shortcut between DISABLED event and TXEN task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED_RXEN</name>
+ <description>Shortcut between DISABLED event and RXEN task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS_RSSISTART</name>
+ <description>Shortcut between ADDRESS event and RSSISTART task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END_START</name>
+ <description>Shortcut between END event and START task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS_BCSTART</name>
+ <description>Shortcut between ADDRESS event and BCSTART task</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED_RSSISTOP</name>
+ <description>Shortcut between DISABLED event and RSSISTOP task</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXREADY_CCASTART</name>
+ <description>Shortcut between RXREADY event and CCASTART task</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CCAIDLE_TXEN</name>
+ <description>Shortcut between CCAIDLE event and TXEN task</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CCABUSY_DISABLE</name>
+ <description>Shortcut between CCABUSY event and DISABLE task</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FRAMESTART_BCSTART</name>
+ <description>Shortcut between FRAMESTART event and BCSTART task</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READY_EDSTART</name>
+ <description>Shortcut between READY event and EDSTART task</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EDEND_DISABLE</name>
+ <description>Shortcut between EDEND event and DISABLE task</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CCAIDLE_STOP</name>
+ <description>Shortcut between CCAIDLE event and STOP task</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXREADY_START</name>
+ <description>Shortcut between TXREADY event and START task</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXREADY_START</name>
+ <description>Shortcut between RXREADY event and START task</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PHYEND_DISABLE</name>
+ <description>Shortcut between PHYEND event and DISABLE task</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PHYEND_START</name>
+ <description>Shortcut between PHYEND event and START task</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to enable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS</name>
+ <description>Write '1' to enable interrupt for ADDRESS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PAYLOAD</name>
+ <description>Write '1' to enable interrupt for PAYLOAD event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to enable interrupt for END event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED</name>
+ <description>Write '1' to enable interrupt for DISABLED event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMATCH</name>
+ <description>Write '1' to enable interrupt for DEVMATCH event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMISS</name>
+ <description>Write '1' to enable interrupt for DEVMISS event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RSSIEND</name>
+ <description>Write '1' to enable interrupt for RSSIEND event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BCMATCH</name>
+ <description>Write '1' to enable interrupt for BCMATCH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCOK</name>
+ <description>Write '1' to enable interrupt for CRCOK event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCERROR</name>
+ <description>Write '1' to enable interrupt for CRCERROR event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FRAMESTART</name>
+ <description>Write '1' to enable interrupt for FRAMESTART event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EDEND</name>
+ <description>Write '1' to enable interrupt for EDEND event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EDSTOPPED</name>
+ <description>Write '1' to enable interrupt for EDSTOPPED event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CCAIDLE</name>
+ <description>Write '1' to enable interrupt for CCAIDLE event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CCABUSY</name>
+ <description>Write '1' to enable interrupt for CCABUSY event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CCASTOPPED</name>
+ <description>Write '1' to enable interrupt for CCASTOPPED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RATEBOOST</name>
+ <description>Write '1' to enable interrupt for RATEBOOST event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXREADY</name>
+ <description>Write '1' to enable interrupt for TXREADY event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXREADY</name>
+ <description>Write '1' to enable interrupt for RXREADY event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>MHRMATCH</name>
+ <description>Write '1' to enable interrupt for MHRMATCH event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PHYEND</name>
+ <description>Write '1' to enable interrupt for PHYEND event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS</name>
+ <description>Write '1' to disable interrupt for ADDRESS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PAYLOAD</name>
+ <description>Write '1' to disable interrupt for PAYLOAD event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to disable interrupt for END event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISABLED</name>
+ <description>Write '1' to disable interrupt for DISABLED event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMATCH</name>
+ <description>Write '1' to disable interrupt for DEVMATCH event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DEVMISS</name>
+ <description>Write '1' to disable interrupt for DEVMISS event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RSSIEND</name>
+ <description>Write '1' to disable interrupt for RSSIEND event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BCMATCH</name>
+ <description>Write '1' to disable interrupt for BCMATCH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCOK</name>
+ <description>Write '1' to disable interrupt for CRCOK event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCERROR</name>
+ <description>Write '1' to disable interrupt for CRCERROR event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FRAMESTART</name>
+ <description>Write '1' to disable interrupt for FRAMESTART event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EDEND</name>
+ <description>Write '1' to disable interrupt for EDEND event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EDSTOPPED</name>
+ <description>Write '1' to disable interrupt for EDSTOPPED event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CCAIDLE</name>
+ <description>Write '1' to disable interrupt for CCAIDLE event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CCABUSY</name>
+ <description>Write '1' to disable interrupt for CCABUSY event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CCASTOPPED</name>
+ <description>Write '1' to disable interrupt for CCASTOPPED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RATEBOOST</name>
+ <description>Write '1' to disable interrupt for RATEBOOST event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXREADY</name>
+ <description>Write '1' to disable interrupt for TXREADY event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXREADY</name>
+ <description>Write '1' to disable interrupt for RXREADY event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>MHRMATCH</name>
+ <description>Write '1' to disable interrupt for MHRMATCH event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PHYEND</name>
+ <description>Write '1' to disable interrupt for PHYEND event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCSTATUS</name>
+ <description>CRC status</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>CRCSTATUS</name>
+ <description>CRC status of packet received</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>CRCError</name>
+ <description>Packet received with CRC error</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CRCOk</name>
+ <description>Packet received with CRC ok</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXMATCH</name>
+ <description>Received address</description>
+ <addressOffset>0x408</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RXMATCH</name>
+ <description>Received address</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXCRC</name>
+ <description>CRC field of previously received packet</description>
+ <addressOffset>0x40C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RXCRC</name>
+ <description>CRC field of previously received packet</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DAI</name>
+ <description>Device address match index</description>
+ <addressOffset>0x410</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>DAI</name>
+ <description>Device address match index</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PDUSTAT</name>
+ <description>Payload status</description>
+ <addressOffset>0x414</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>PDUSTAT</name>
+ <description>Status on payload length vs. PCNF1.MAXLEN</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>LessThan</name>
+ <description>Payload less than PCNF1.MAXLEN</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>GreaterThan</name>
+ <description>Payload greater than PCNF1.MAXLEN</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CISTAT</name>
+ <description>Status on what rate packet is received with in Long Range</description>
+ <lsb>1</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>LR125kbit</name>
+ <description>Frame is received at 125kbps</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LR500kbit</name>
+ <description>Frame is received at 500kbps</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PACKETPTR</name>
+ <description>Packet pointer</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PACKETPTR</name>
+ <description>Packet pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FREQUENCY</name>
+ <description>Frequency</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000002</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>Radio channel frequency</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ <field>
+ <name>MAP</name>
+ <description>Channel map selection.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>Channel map between 2400 MHZ .. 2500 MHz</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Channel map between 2360 MHZ .. 2460 MHz</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXPOWER</name>
+ <description>Output power</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TXPOWER</name>
+ <description>RADIO output power</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Pos8dBm</name>
+ <description>+8 dBm</description>
+ <value>0x8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pos7dBm</name>
+ <description>+7 dBm</description>
+ <value>0x7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pos6dBm</name>
+ <description>+6 dBm</description>
+ <value>0x6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pos5dBm</name>
+ <description>+5 dBm</description>
+ <value>0x5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pos4dBm</name>
+ <description>+4 dBm</description>
+ <value>0x4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pos3dBm</name>
+ <description>+3 dBm</description>
+ <value>0x3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pos2dBm</name>
+ <description>+2 dBm</description>
+ <value>0x2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>0dBm</name>
+ <description>0 dBm</description>
+ <value>0x0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg4dBm</name>
+ <description>-4 dBm</description>
+ <value>0xFC</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg8dBm</name>
+ <description>-8 dBm</description>
+ <value>0xF8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg12dBm</name>
+ <description>-12 dBm</description>
+ <value>0xF4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg16dBm</name>
+ <description>-16 dBm</description>
+ <value>0xF0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg20dBm</name>
+ <description>-20 dBm</description>
+ <value>0xEC</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg30dBm</name>
+ <description>Deprecated enumerator - -40 dBm</description>
+ <value>0xFF</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Neg40dBm</name>
+ <description>-40 dBm</description>
+ <value>0xD8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Data rate and modulation</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Radio data rate and modulation setting. The radio supports frequency-shift keying (FSK) modulation.</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Nrf_1Mbit</name>
+ <description>1 Mbit/s Nordic proprietary radio mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Nrf_2Mbit</name>
+ <description>2 Mbit/s Nordic proprietary radio mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ble_1Mbit</name>
+ <description>1 Mbit/s BLE</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ble_2Mbit</name>
+ <description>2 Mbit/s BLE</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ble_LR125Kbit</name>
+ <description>Long range 125 kbit/s TX, 125 kbit/s and 500 kbit/s RX</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ble_LR500Kbit</name>
+ <description>Long range 500 kbit/s TX, 125 kbit/s and 500 kbit/s RX</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ieee802154_250Kbit</name>
+ <description>IEEE 802.15.4-2006 250 kbit/s</description>
+ <value>15</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PCNF0</name>
+ <description>Packet configuration register 0</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LFLEN</name>
+ <description>Length on air of LENGTH field in number of bits.</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ <field>
+ <name>S0LEN</name>
+ <description>Length on air of S0 field in number of bytes.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ </field>
+ <field>
+ <name>S1LEN</name>
+ <description>Length on air of S1 field in number of bits.</description>
+ <lsb>16</lsb>
+ <msb>19</msb>
+ </field>
+ <field>
+ <name>S1INCL</name>
+ <description>Include or exclude S1 field in RAM</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Automatic</name>
+ <description>Include S1 field in RAM only if S1LEN &amp;gt; 0</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Always include S1 field in RAM independent of S1LEN</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CILEN</name>
+ <description>Length of code indicator - long range</description>
+ <lsb>22</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>PLEN</name>
+ <description>Length of preamble on air. Decision point: TASKS_START task</description>
+ <lsb>24</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>8bit</name>
+ <description>8-bit preamble</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>16bit</name>
+ <description>16-bit preamble</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32bitZero</name>
+ <description>32-bit zero preamble - used for IEEE 802.15.4</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LongRange</name>
+ <description>Preamble - used for BLE long range</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCINC</name>
+ <description>Indicates if LENGTH field contains CRC or not</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>LENGTH does not contain CRC</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>LENGTH includes CRC</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TERMLEN</name>
+ <description>Length of TERM field in Long Range operation</description>
+ <lsb>29</lsb>
+ <msb>30</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PCNF1</name>
+ <description>Packet configuration register 1</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXLEN</name>
+ <description>Maximum length of packet payload. If the packet payload is larger than MAXLEN, the radio will truncate the payload to MAXLEN.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>STATLEN</name>
+ <description>Static length in number of bytes</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>BALEN</name>
+ <description>Base address length in number of bytes</description>
+ <lsb>16</lsb>
+ <msb>18</msb>
+ </field>
+ <field>
+ <name>ENDIAN</name>
+ <description>On air endianness of packet, this applies to the S0, LENGTH, S1 and the PAYLOAD fields.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Little</name>
+ <description>Least significant bit on air first</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Big</name>
+ <description>Most significant bit on air first</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WHITEEN</name>
+ <description>Enable or disable packet whitening</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BASE0</name>
+ <description>Base address 0</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BASE0</name>
+ <description>Base address 0</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BASE1</name>
+ <description>Base address 1</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BASE1</name>
+ <description>Base address 1</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PREFIX0</name>
+ <description>Prefixes bytes for logical addresses 0-3</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>AP0</name>
+ <description>Address prefix 0.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>AP1</name>
+ <description>Address prefix 1.</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>AP2</name>
+ <description>Address prefix 2.</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>AP3</name>
+ <description>Address prefix 3.</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PREFIX1</name>
+ <description>Prefixes bytes for logical addresses 4-7</description>
+ <addressOffset>0x528</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>AP4</name>
+ <description>Address prefix 4.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>AP5</name>
+ <description>Address prefix 5.</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>AP6</name>
+ <description>Address prefix 6.</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>AP7</name>
+ <description>Address prefix 7.</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXADDRESS</name>
+ <description>Transmit address select</description>
+ <addressOffset>0x52C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TXADDRESS</name>
+ <description>Transmit address select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXADDRESSES</name>
+ <description>Receive address select</description>
+ <addressOffset>0x530</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDR0</name>
+ <description>Enable or disable reception on logical address 0.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR1</name>
+ <description>Enable or disable reception on logical address 1.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR2</name>
+ <description>Enable or disable reception on logical address 2.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR3</name>
+ <description>Enable or disable reception on logical address 3.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR4</name>
+ <description>Enable or disable reception on logical address 4.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR5</name>
+ <description>Enable or disable reception on logical address 5.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR6</name>
+ <description>Enable or disable reception on logical address 6.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDR7</name>
+ <description>Enable or disable reception on logical address 7.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCCNF</name>
+ <description>CRC configuration</description>
+ <addressOffset>0x534</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LEN</name>
+ <description>CRC length in number of bytes.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>CRC length is zero and CRC calculation is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>One</name>
+ <description>CRC length is one byte and CRC calculation is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Two</name>
+ <description>CRC length is two bytes and CRC calculation is enabled</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Three</name>
+ <description>CRC length is three bytes and CRC calculation is enabled</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SKIPADDR</name>
+ <description>Include or exclude packet address field out of CRC calculation.</description>
+ <lsb>8</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>CRC calculation includes address field</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Skip</name>
+ <description>CRC calculation does not include address field. The CRC calculation will start at the first byte after the address.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ieee802154</name>
+ <description>CRC calculation as per 802.15.4 standard. Starting at first byte after length field.</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCPOLY</name>
+ <description>CRC polynomial</description>
+ <addressOffset>0x538</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CRCPOLY</name>
+ <description>CRC polynomial</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRCINIT</name>
+ <description>CRC initial value</description>
+ <addressOffset>0x53C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CRCINIT</name>
+ <description>CRC initial value</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TIFS</name>
+ <description>Interframe spacing in us</description>
+ <addressOffset>0x544</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TIFS</name>
+ <description>Interframe spacing in us</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RSSISAMPLE</name>
+ <description>RSSI sample</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RSSISAMPLE</name>
+ <description>RSSI sample</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATE</name>
+ <description>Current radio state</description>
+ <addressOffset>0x550</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATE</name>
+ <description>Current radio state</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>RADIO is in the Disabled state</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RxRu</name>
+ <description>RADIO is in the RXRU state</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RxIdle</name>
+ <description>RADIO is in the RXIDLE state</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Rx</name>
+ <description>RADIO is in the RX state</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RxDisable</name>
+ <description>RADIO is in the RXDISABLED state</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>TxRu</name>
+ <description>RADIO is in the TXRU state</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>TxIdle</name>
+ <description>RADIO is in the TXIDLE state</description>
+ <value>10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Tx</name>
+ <description>RADIO is in the TX state</description>
+ <value>11</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>TxDisable</name>
+ <description>RADIO is in the TXDISABLED state</description>
+ <value>12</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DATAWHITEIV</name>
+ <description>Data whitening initial value</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000040</resetValue>
+ <fields>
+ <field>
+ <name>DATAWHITEIV</name>
+ <description>Data whitening initial value. Bit 6 is hard-wired to '1', writing '0' to it has no effect, and it will always be read back and used by the device as '1'.</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BCC</name>
+ <description>Bit counter compare</description>
+ <addressOffset>0x560</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BCC</name>
+ <description>Bit counter compare</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>DAB[%s]</name>
+ <description>Description collection[n]: Device address base segment n</description>
+ <addressOffset>0x600</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DAB</name>
+ <description>Device address base segment n</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>DAP[%s]</name>
+ <description>Description collection[n]: Device address prefix n</description>
+ <addressOffset>0x620</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DAP</name>
+ <description>Device address prefix n</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DACNF</name>
+ <description>Device address match configuration</description>
+ <addressOffset>0x640</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENA0</name>
+ <description>Enable or disable device address matching using device address 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA1</name>
+ <description>Enable or disable device address matching using device address 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA2</name>
+ <description>Enable or disable device address matching using device address 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA3</name>
+ <description>Enable or disable device address matching using device address 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA4</name>
+ <description>Enable or disable device address matching using device address 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA5</name>
+ <description>Enable or disable device address matching using device address 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA6</name>
+ <description>Enable or disable device address matching using device address 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENA7</name>
+ <description>Enable or disable device address matching using device address 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXADD0</name>
+ <description>TxAdd for device address 0</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ </field>
+ <field>
+ <name>TXADD1</name>
+ <description>TxAdd for device address 1</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ </field>
+ <field>
+ <name>TXADD2</name>
+ <description>TxAdd for device address 2</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ </field>
+ <field>
+ <name>TXADD3</name>
+ <description>TxAdd for device address 3</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ </field>
+ <field>
+ <name>TXADD4</name>
+ <description>TxAdd for device address 4</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ </field>
+ <field>
+ <name>TXADD5</name>
+ <description>TxAdd for device address 5</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ </field>
+ <field>
+ <name>TXADD6</name>
+ <description>TxAdd for device address 6</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ </field>
+ <field>
+ <name>TXADD7</name>
+ <description>TxAdd for device address 7</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MHRMATCHCONF</name>
+ <description>Search pattern configuration</description>
+ <addressOffset>0x644</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>MHRMATCHMAS</name>
+ <description>Pattern mask</description>
+ <addressOffset>0x648</addressOffset>
+ <access>read-write</access>
+ </register>
+ <register>
+ <name>MODECNF0</name>
+ <description>Radio mode configuration register 0</description>
+ <addressOffset>0x650</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000200</resetValue>
+ <fields>
+ <field>
+ <name>RU</name>
+ <description>Radio ramp-up time</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>Default ramp-up time (tRXEN), compatible with firmware written for nRF51</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Fast</name>
+ <description>Fast ramp-up (tRXEN,FAST), see electrical specification for more information</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DTX</name>
+ <description>Default TX value</description>
+ <lsb>8</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>B1</name>
+ <description>Transmit '1'</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>B0</name>
+ <description>Transmit '0'</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Center</name>
+ <description>Transmit center frequency</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SFD</name>
+ <description>IEEE 802.15.4 start of frame delimiter</description>
+ <addressOffset>0x660</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000000A7</resetValue>
+ <fields>
+ <field>
+ <name>SFD</name>
+ <description>IEEE 802.15.4 start of frame delimiter</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EDCNT</name>
+ <description>IEEE 802.15.4 energy detect loop count</description>
+ <addressOffset>0x664</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>EDCNT</name>
+ <description>IEEE 802.15.4 energy detect loop count</description>
+ <lsb>0</lsb>
+ <msb>20</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EDSAMPLE</name>
+ <description>IEEE 802.15.4 energy detect level</description>
+ <addressOffset>0x668</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>EDLVL</name>
+ <description>IEEE 802.15.4 energy detect level</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CCACTRL</name>
+ <description>IEEE 802.15.4 clear channel assessment control</description>
+ <addressOffset>0x66C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CCAMODE</name>
+ <description>CCA mode of operation</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>EdMode</name>
+ <description>Energy above threshold</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CarrierMode</name>
+ <description>Carrier seen</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CarrierAndEdMode</name>
+ <description>Energy above threshold AND carrier seen</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CarrierOrEdMode</name>
+ <description>Energy above threshold OR carrier seen</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EdModeTest1</name>
+ <description>Energy above threshold test mode that will abort when first ED measurement over threshold is seen. No averaging.</description>
+ <value>4</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CCAEDTHRES</name>
+ <description>CCA energy busy threshold. Used in all the CCA modes except CarrierMode.</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>CCACORRTHRES</name>
+ <description>CCA correlator busy threshold. Only relevant to CarrierMode, CarrierAndEdMode and CarrierOrEdMode.</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>CCACORRCNT</name>
+ <description>Limit for occurances above CCACORRTHRES. When not equal to zero the corrolator based signal detect is enabled.</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>POWER</name>
+ <description>Peripheral power control</description>
+ <addressOffset>0xFFC</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>POWER</name>
+ <description>Peripheral power control. The peripheral and its registers will be reset to its initial state by switching the peripheral off and then back on again.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Peripheral is powered off</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Peripheral is powered on</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>UART0</name>
+ <description>Universal Asynchronous Receiver/Transmitter</description>
+ <baseAddress>0x40002000</baseAddress>
+ <headerStructName>UART</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>UARTE0_UART0</name>
+ <value>2</value>
+ </interrupt>
+ <groupName>UART</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_STARTRX</name>
+ <description>Start UART receiver</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOPRX</name>
+ <description>Stop UART receiver</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOPRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start UART transmitter</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOPTX</name>
+ <description>Stop UART transmitter</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOPTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend UART</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SUSPEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CTS</name>
+ <description>CTS is activated (set low). Clear To Send.</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CTS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_NCTS</name>
+ <description>CTS is deactivated (set high). Not Clear To Send.</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_NCTS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXDRDY</name>
+ <description>Data received in RXD</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXDRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXDRDY</name>
+ <description>Data sent from TXD</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXDRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>Error detected</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXTO</name>
+ <description>Receiver timeout</description>
+ <addressOffset>0x144</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXTO</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS_STARTRX</name>
+ <description>Shortcut between CTS event and STARTRX task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS_STOPRX</name>
+ <description>Shortcut between NCTS event and STOPRX task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Write '1' to enable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Write '1' to enable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Write '1' to enable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Write '1' to enable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Write '1' to enable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Write '1' to disable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Write '1' to disable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Write '1' to disable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Write '1' to disable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Write '1' to disable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source</description>
+ <addressOffset>0x480</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERRUN</name>
+ <description>Overrun error</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITY</name>
+ <description>Parity error</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FRAMING</name>
+ <description>Framing error occurred</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BREAK</name>
+ <description>Break condition</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable UART</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable UART</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable UART</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable UART</description>
+ <value>4</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>UART_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>RTS</name>
+ <description>Pin select for RTS</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>Pin select for TXD</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CTS</name>
+ <description>Pin select for CTS</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXD</name>
+ <description>Pin select for RXD</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>RXD</name>
+ <description>RXD register</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <readAction>modifyExternal</readAction>
+ <fields>
+ <field>
+ <name>RXD</name>
+ <description>RX data received in previous transfers, double buffered</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>TXD register</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TXD</name>
+ <description>TX data to be transferred</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BAUDRATE</name>
+ <description>Baud rate. Accuracy depends on the HFCLK source selected.</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>BAUDRATE</name>
+ <description>Baud rate</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Baud1200</name>
+ <description>1200 baud (actual rate: 1205)</description>
+ <value>0x0004F000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud2400</name>
+ <description>2400 baud (actual rate: 2396)</description>
+ <value>0x0009D000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud4800</name>
+ <description>4800 baud (actual rate: 4808)</description>
+ <value>0x0013B000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud9600</name>
+ <description>9600 baud (actual rate: 9598)</description>
+ <value>0x00275000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud14400</name>
+ <description>14400 baud (actual rate: 14414)</description>
+ <value>0x003B0000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud19200</name>
+ <description>19200 baud (actual rate: 19208)</description>
+ <value>0x004EA000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud28800</name>
+ <description>28800 baud (actual rate: 28829)</description>
+ <value>0x0075F000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud31250</name>
+ <description>31250 baud</description>
+ <value>0x00800000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud38400</name>
+ <description>38400 baud (actual rate: 38462)</description>
+ <value>0x009D5000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud56000</name>
+ <description>56000 baud (actual rate: 55944)</description>
+ <value>0x00E50000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud57600</name>
+ <description>57600 baud (actual rate: 57762)</description>
+ <value>0x00EBF000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud76800</name>
+ <description>76800 baud (actual rate: 76923)</description>
+ <value>0x013A9000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud115200</name>
+ <description>115200 baud (actual rate: 115942)</description>
+ <value>0x01D7E000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud230400</name>
+ <description>230400 baud (actual rate: 231884)</description>
+ <value>0x03AFB000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud250000</name>
+ <description>250000 baud</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud460800</name>
+ <description>460800 baud (actual rate: 470588)</description>
+ <value>0x075F7000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud921600</name>
+ <description>921600 baud (actual rate: 941176)</description>
+ <value>0x0EBED000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud1M</name>
+ <description>1Mega baud</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration of parity and hardware flow control</description>
+ <addressOffset>0x56C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HWFC</name>
+ <description>Hardware flow control</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITY</name>
+ <description>Parity</description>
+ <lsb>1</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude parity bit</description>
+ <value>0x0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include parity bit</description>
+ <value>0x7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>UARTE0</name>
+ <description>UART with EasyDMA 0</description>
+ <baseAddress>0x40002000</baseAddress>
+ <alternatePeripheral>UART0</alternatePeripheral>
+ <headerStructName>UARTE</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>UARTE0_UART0</name>
+ <value>2</value>
+ </interrupt>
+ <groupName>UARTE</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_STARTRX</name>
+ <description>Start UART receiver</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOPRX</name>
+ <description>Stop UART receiver</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOPRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start UART transmitter</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOPTX</name>
+ <description>Stop UART transmitter</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOPTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_FLUSHRX</name>
+ <description>Flush RX FIFO into RX buffer</description>
+ <addressOffset>0x02C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_FLUSHRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CTS</name>
+ <description>CTS is activated (set low). Clear To Send.</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CTS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_NCTS</name>
+ <description>CTS is deactivated (set high). Not Clear To Send.</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_NCTS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXDRDY</name>
+ <description>Data received in RXD (but potentially not yet transferred to Data RAM)</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXDRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDRX</name>
+ <description>Receive buffer is filled up</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXDRDY</name>
+ <description>Data sent from TXD</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXDRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDTX</name>
+ <description>Last TX byte transmitted</description>
+ <addressOffset>0x120</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>Error detected</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXTO</name>
+ <description>Receiver timeout</description>
+ <addressOffset>0x144</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXTO</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXSTARTED</name>
+ <description>UART receiver has started</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXSTARTED</name>
+ <description>UART transmitter has started</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXSTOPPED</name>
+ <description>Transmitter stopped</description>
+ <addressOffset>0x158</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXSTOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDRX_STARTRX</name>
+ <description>Shortcut between ENDRX event and STARTRX task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX_STOPRX</name>
+ <description>Shortcut between ENDRX event and STOPRX task</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Enable or disable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Enable or disable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Enable or disable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Enable or disable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Enable or disable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Enable or disable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable or disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Enable or disable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Enable or disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Enable or disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTOPPED</name>
+ <description>Enable or disable interrupt for TXSTOPPED event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Write '1' to enable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Write '1' to enable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Write '1' to enable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to enable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Write '1' to enable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to enable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Write '1' to enable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to enable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to enable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTOPPED</name>
+ <description>Write '1' to enable interrupt for TXSTOPPED event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CTS</name>
+ <description>Write '1' to disable interrupt for CTS event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NCTS</name>
+ <description>Write '1' to disable interrupt for NCTS event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDRDY</name>
+ <description>Write '1' to disable interrupt for RXDRDY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to disable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDRDY</name>
+ <description>Write '1' to disable interrupt for TXDRDY event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to disable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXTO</name>
+ <description>Write '1' to disable interrupt for RXTO event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTOPPED</name>
+ <description>Write '1' to disable interrupt for TXSTOPPED event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source Note : this register is read / write one to clear.</description>
+ <addressOffset>0x480</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERRUN</name>
+ <description>Overrun error</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITY</name>
+ <description>Parity error</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FRAMING</name>
+ <description>Framing error occurred</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BREAK</name>
+ <description>Break condition</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable UART</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable UARTE</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable UARTE</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable UARTE</description>
+ <value>8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>UARTE_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>RTS</name>
+ <description>Pin select for RTS signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>Pin select for TXD signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CTS</name>
+ <description>Pin select for CTS signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXD</name>
+ <description>Pin select for RXD signal</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>BAUDRATE</name>
+ <description>Baud rate. Accuracy depends on the HFCLK source selected.</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>BAUDRATE</name>
+ <description>Baud rate</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Baud1200</name>
+ <description>1200 baud (actual rate: 1205)</description>
+ <value>0x0004F000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud2400</name>
+ <description>2400 baud (actual rate: 2396)</description>
+ <value>0x0009D000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud4800</name>
+ <description>4800 baud (actual rate: 4808)</description>
+ <value>0x0013B000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud9600</name>
+ <description>9600 baud (actual rate: 9598)</description>
+ <value>0x00275000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud14400</name>
+ <description>14400 baud (actual rate: 14401)</description>
+ <value>0x003AF000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud19200</name>
+ <description>19200 baud (actual rate: 19208)</description>
+ <value>0x004EA000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud28800</name>
+ <description>28800 baud (actual rate: 28777)</description>
+ <value>0x0075C000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud31250</name>
+ <description>31250 baud</description>
+ <value>0x00800000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud38400</name>
+ <description>38400 baud (actual rate: 38369)</description>
+ <value>0x009D0000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud56000</name>
+ <description>56000 baud (actual rate: 55944)</description>
+ <value>0x00E50000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud57600</name>
+ <description>57600 baud (actual rate: 57554)</description>
+ <value>0x00EB0000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud76800</name>
+ <description>76800 baud (actual rate: 76923)</description>
+ <value>0x013A9000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud115200</name>
+ <description>115200 baud (actual rate: 115108)</description>
+ <value>0x01D60000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud230400</name>
+ <description>230400 baud (actual rate: 231884)</description>
+ <value>0x03B00000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud250000</name>
+ <description>250000 baud</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud460800</name>
+ <description>460800 baud (actual rate: 457143)</description>
+ <value>0x07400000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud921600</name>
+ <description>921600 baud (actual rate: 941176)</description>
+ <value>0x0F000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Baud1M</name>
+ <description>1Mega baud</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>RXD</name>
+ <description>RXD EasyDMA channel</description>
+ <headerStructName>UARTE_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>TXD EasyDMA channel</description>
+ <headerStructName>UARTE_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration of parity and hardware flow control</description>
+ <addressOffset>0x56C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HWFC</name>
+ <description>Hardware flow control</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITY</name>
+ <description>Parity</description>
+ <lsb>1</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude parity bit</description>
+ <value>0x0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include even parity bit</description>
+ <value>0x7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOP</name>
+ <description>Stop bits</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>One</name>
+ <description>One stop bit</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Two</name>
+ <description>Two stop bits</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SPI0</name>
+ <description>Serial Peripheral Interface 0</description>
+ <baseAddress>0x40003000</baseAddress>
+ <headerStructName>SPI</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+ <groupName>SPI</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>TXD byte sent and RXD byte received</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_READY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to enable interrupt for READY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to disable interrupt for READY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable SPI</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable SPI</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable SPI</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable SPI</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>SPI_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCK</name>
+ <description>Pin select for SCK</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MOSI</name>
+ <description>Pin select for MOSI signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MISO</name>
+ <description>Pin select for MISO signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>RXD</name>
+ <description>RXD register</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <readAction>modifyExternal</readAction>
+ <fields>
+ <field>
+ <name>RXD</name>
+ <description>RX data received. Double buffered</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>TXD register</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TXD</name>
+ <description>TX data to send. Double buffered</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FREQUENCY</name>
+ <description>SPI frequency. Accuracy depends on the HFCLK source selected.</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>SPI master data rate</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K125</name>
+ <description>125 kbps</description>
+ <value>0x02000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K250</name>
+ <description>250 kbps</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K500</name>
+ <description>500 kbps</description>
+ <value>0x08000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M1</name>
+ <description>1 Mbps</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M2</name>
+ <description>2 Mbps</description>
+ <value>0x20000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M4</name>
+ <description>4 Mbps</description>
+ <value>0x40000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M8</name>
+ <description>8 Mbps</description>
+ <value>0x80000000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORDER</name>
+ <description>Bit order</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MsbFirst</name>
+ <description>Most significant bit shifted out first</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LsbFirst</name>
+ <description>Least significant bit shifted out first</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPHA</name>
+ <description>Serial clock (SCK) phase</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Leading</name>
+ <description>Sample on leading edge of clock, shift serial data on trailing edge</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Trailing</name>
+ <description>Sample on trailing edge of clock, shift serial data on leading edge</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPOL</name>
+ <description>Serial clock (SCK) polarity</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Active high</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Active low</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SPIM0</name>
+ <description>Serial Peripheral Interface Master with EasyDMA 0</description>
+ <baseAddress>0x40003000</baseAddress>
+ <alternatePeripheral>SPI0</alternatePeripheral>
+ <headerStructName>SPIM</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+ <groupName>SPIM</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start SPI transaction</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop SPI transaction</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend SPI transaction</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SUSPEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RESUME</name>
+ <description>Resume SPI transaction</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RESUME</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>SPI transaction has stopped</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDRX</name>
+ <description>End of RXD buffer reached</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>End of RXD buffer and TXD buffer reached</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_END</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDTX</name>
+ <description>End of TXD buffer reached</description>
+ <addressOffset>0x120</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STARTED</name>
+ <description>Transaction started</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END_START</name>
+ <description>Shortcut between END event and START task</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to enable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to enable interrupt for END event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to enable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to enable interrupt for STARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to disable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to disable interrupt for END event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to disable interrupt for ENDTX event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to disable interrupt for STARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STALLSTAT</name>
+ <description>Stall status for EasyDMA RAM accesses. The fields in this register is set to STALL by hardware whenever a stall occurres and can be cleared (set to NOSTALL) by the CPU.</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>TX</name>
+ <description>Stall status for EasyDMA RAM reads</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NOSTALL</name>
+ <description>No stall</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>STALL</name>
+ <description>A stall has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RX</name>
+ <description>Stall status for EasyDMA RAM writes</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NOSTALL</name>
+ <description>No stall</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>STALL</name>
+ <description>A stall has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable SPIM</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable SPIM</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable SPIM</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable SPIM</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIM_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCK</name>
+ <description>Pin select for SCK</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MOSI</name>
+ <description>Pin select for MOSI signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MISO</name>
+ <description>Pin select for MISO signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CSN</name>
+ <description>Pin select for CSN</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>FREQUENCY</name>
+ <description>SPI frequency. Accuracy depends on the HFCLK source selected.</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>SPI master data rate</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K125</name>
+ <description>125 kbps</description>
+ <value>0x02000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K250</name>
+ <description>250 kbps</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K500</name>
+ <description>500 kbps</description>
+ <value>0x08000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M1</name>
+ <description>1 Mbps</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M2</name>
+ <description>2 Mbps</description>
+ <value>0x20000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M4</name>
+ <description>4 Mbps</description>
+ <value>0x40000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M8</name>
+ <description>8 Mbps</description>
+ <value>0x80000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M16</name>
+ <description>16 Mbps</description>
+ <value>0x0A000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>M32</name>
+ <description>32 Mbps</description>
+ <value>0x14000000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>RXD</name>
+ <description>RXD EasyDMA channel</description>
+ <headerStructName>SPIM_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIST</name>
+ <description>EasyDMA list type</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIST</name>
+ <description>List type</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable EasyDMA list</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ArrayList</name>
+ <description>Use array list</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>TXD EasyDMA channel</description>
+ <headerStructName>SPIM_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Number of bytes in transmit buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIST</name>
+ <description>EasyDMA list type</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIST</name>
+ <description>List type</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable EasyDMA list</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ArrayList</name>
+ <description>Use array list</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORDER</name>
+ <description>Bit order</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MsbFirst</name>
+ <description>Most significant bit shifted out first</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LsbFirst</name>
+ <description>Least significant bit shifted out first</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPHA</name>
+ <description>Serial clock (SCK) phase</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Leading</name>
+ <description>Sample on leading edge of clock, shift serial data on trailing edge</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Trailing</name>
+ <description>Sample on trailing edge of clock, shift serial data on leading edge</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPOL</name>
+ <description>Serial clock (SCK) polarity</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Active high</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Active low</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>IFTIMING</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIM_IFTIMING</headerStructName>
+ <addressOffset>0x560</addressOffset>
+ <register>
+ <name>RXDELAY</name>
+ <description>Sample delay for input serial data on MISO</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000002</resetValue>
+ <fields>
+ <field>
+ <name>RXDELAY</name>
+ <description>Sample delay for input serial data on MISO. The value specifies the number of 64 MHz clock cycles (15.625 ns) delay from the the sampling edge of SCK (leading edge for CONFIG.CPHA = 0, trailing edge for CONFIG.CPHA = 1) until the input serial data is sampled. As en example, if RXDELAY = 0 and CONFIG.CPHA = 0, the input serial data is sampled on the rising edge of SCK.</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CSNDUR</name>
+ <description>Minimum duration between edge of CSN and edge of SCK and minimum duration CSN must stay high between transactions</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000002</resetValue>
+ <fields>
+ <field>
+ <name>CSNDUR</name>
+ <description>Minimum duration between edge of CSN and edge of SCK and minimum duration CSN must stay high between transactions. The value is specified in number of 64 MHz clock cycles (15.625 ns).</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CSNPOL</name>
+ <description>Polarity of CSN output</description>
+ <addressOffset>0x568</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CSNPOL</name>
+ <description>Polarity of CSN output</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>LOW</name>
+ <description>Active low (idle state high)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>HIGH</name>
+ <description>Active high (idle state low)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSELDCX</name>
+ <description>Pin select for DCX signal</description>
+ <addressOffset>0x56C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DCXCNT</name>
+ <description>DCX configuration</description>
+ <addressOffset>0x570</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DCXCNT</name>
+ <description>This register specifies the number of command bytes preceding the data bytes. The PSEL.DCX line will be low during transmission of command bytes and high during transmission of data bytes. Value 0xF indicates that all bytes are command bytes.</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ORC</name>
+ <description>Byte transmitted after TXD.MAXCNT bytes have been transmitted in the case when RXD.MAXCNT is greater than TXD.MAXCNT</description>
+ <addressOffset>0x5C0</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORC</name>
+ <description>Byte transmitted after TXD.MAXCNT bytes have been transmitted in the case when RXD.MAXCNT is greater than TXD.MAXCNT.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SPIS0</name>
+ <description>SPI Slave 0</description>
+ <baseAddress>0x40003000</baseAddress>
+ <alternatePeripheral>SPI0</alternatePeripheral>
+ <headerStructName>SPIS</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+ <groupName>SPIS</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_ACQUIRE</name>
+ <description>Acquire SPI semaphore</description>
+ <addressOffset>0x024</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_ACQUIRE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RELEASE</name>
+ <description>Release SPI semaphore, enabling the SPI slave to acquire it</description>
+ <addressOffset>0x028</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RELEASE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>Granted transaction completed</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_END</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDRX</name>
+ <description>End of RXD buffer reached</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ACQUIRED</name>
+ <description>Semaphore acquired</description>
+ <addressOffset>0x128</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ACQUIRED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END_ACQUIRE</name>
+ <description>Shortcut between END event and ACQUIRE task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Write '1' to enable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to enable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACQUIRED</name>
+ <description>Write '1' to enable interrupt for ACQUIRED event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Write '1' to disable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to disable interrupt for ENDRX event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACQUIRED</name>
+ <description>Write '1' to disable interrupt for ACQUIRED event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SEMSTAT</name>
+ <description>Semaphore status register</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>SEMSTAT</name>
+ <description>Semaphore status</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Free</name>
+ <description>Semaphore is free</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CPU</name>
+ <description>Semaphore is assigned to CPU</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SPIS</name>
+ <description>Semaphore is assigned to SPI slave</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CPUPending</name>
+ <description>Semaphore is assigned to SPI but a handover to the CPU is pending</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATUS</name>
+ <description>Status from last transaction</description>
+ <addressOffset>0x440</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>OVERREAD</name>
+ <description>TX buffer over-read detected, and prevented</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: clear error on writing '1'</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVERFLOW</name>
+ <description>RX buffer overflow detected, and prevented</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: clear error on writing '1'</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable SPI slave</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable SPI slave</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable SPI slave</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable SPI slave</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIS_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCK</name>
+ <description>Pin select for SCK</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MISO</name>
+ <description>Pin select for MISO signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MOSI</name>
+ <description>Pin select for MOSI signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CSN</name>
+ <description>Pin select for CSN signal</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>RXD</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIS_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>RXD data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>RXD data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes received in last granted transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes received in the last granted transaction</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>Unspecified</description>
+ <headerStructName>SPIS_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>TXD data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>TXD data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transmitted in last granted transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transmitted in last granted transaction</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORDER</name>
+ <description>Bit order</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MsbFirst</name>
+ <description>Most significant bit shifted out first</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LsbFirst</name>
+ <description>Least significant bit shifted out first</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPHA</name>
+ <description>Serial clock (SCK) phase</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Leading</name>
+ <description>Sample on leading edge of clock, shift serial data on trailing edge</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Trailing</name>
+ <description>Sample on trailing edge of clock, shift serial data on leading edge</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CPOL</name>
+ <description>Serial clock (SCK) polarity</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Active high</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Active low</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DEF</name>
+ <description>Default character. Character clocked out in case of an ignored transaction.</description>
+ <addressOffset>0x55C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DEF</name>
+ <description>Default character. Character clocked out in case of an ignored transaction.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ORC</name>
+ <description>Over-read character</description>
+ <addressOffset>0x5C0</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORC</name>
+ <description>Over-read character. Character clocked out after an over-read of the transmit buffer.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TWI0</name>
+ <description>I2C compatible Two-Wire Interface 0</description>
+ <baseAddress>0x40003000</baseAddress>
+ <alternatePeripheral>SPI0</alternatePeripheral>
+ <headerStructName>TWI</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+ <groupName>TWI</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_STARTRX</name>
+ <description>Start TWI receive sequence</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start TWI transmit sequence</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop TWI transaction</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend TWI transaction</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SUSPEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RESUME</name>
+ <description>Resume TWI transaction</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RESUME</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>TWI stopped</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXDREADY</name>
+ <description>TWI RXD byte received</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXDREADY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXDSENT</name>
+ <description>TWI TXD byte sent</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXDSENT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>TWI error</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_BB</name>
+ <description>TWI byte boundary, generated before each byte that is sent or received</description>
+ <addressOffset>0x138</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_BB</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_SUSPENDED</name>
+ <description>TWI entered the suspended state</description>
+ <addressOffset>0x148</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SUSPENDED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BB_SUSPEND</name>
+ <description>Shortcut between BB event and SUSPEND task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BB_STOP</name>
+ <description>Shortcut between BB event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDREADY</name>
+ <description>Write '1' to enable interrupt for RXDREADY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDSENT</name>
+ <description>Write '1' to enable interrupt for TXDSENT event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BB</name>
+ <description>Write '1' to enable interrupt for BB event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Write '1' to enable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXDREADY</name>
+ <description>Write '1' to disable interrupt for RXDREADY event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXDSENT</name>
+ <description>Write '1' to disable interrupt for TXDSENT event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BB</name>
+ <description>Write '1' to disable interrupt for BB event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Write '1' to disable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source</description>
+ <addressOffset>0x4C4</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERRUN</name>
+ <description>Overrun error</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: no overrun occured</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: overrun occured</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ANACK</name>
+ <description>NACK received after sending the address (write '1' to clear)</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DNACK</name>
+ <description>NACK received after sending a data byte (write '1' to clear)</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>NotPresent</name>
+ <description>Read: error not present</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Present</name>
+ <description>Read: error present</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable TWI</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable TWI</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable TWI</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable TWI</description>
+ <value>5</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>TWI_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCL</name>
+ <description>Pin select for SCL</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SDA</name>
+ <description>Pin select for SDA</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>RXD</name>
+ <description>RXD register</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <readAction>modifyExternal</readAction>
+ <fields>
+ <field>
+ <name>RXD</name>
+ <description>RXD register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXD</name>
+ <description>TXD register</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TXD</name>
+ <description>TXD register</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FREQUENCY</name>
+ <description>TWI frequency. Accuracy depends on the HFCLK source selected.</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>TWI master clock frequency</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K100</name>
+ <description>100 kbps</description>
+ <value>0x01980000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K250</name>
+ <description>250 kbps</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K400</name>
+ <description>400 kbps (actual rate 410.256 kbps)</description>
+ <value>0x06680000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ADDRESS</name>
+ <description>Address used in the TWI transfer</description>
+ <addressOffset>0x588</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDRESS</name>
+ <description>Address used in the TWI transfer</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TWIM0</name>
+ <description>I2C compatible Two-Wire Master Interface with EasyDMA 0</description>
+ <baseAddress>0x40003000</baseAddress>
+ <alternatePeripheral>SPI0</alternatePeripheral>
+ <headerStructName>TWIM</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+ <groupName>TWIM</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_STARTRX</name>
+ <description>Start TWI receive sequence</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start TWI transmit sequence</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop TWI transaction. Must be issued while the TWI master is not suspended.</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend TWI transaction</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SUSPEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RESUME</name>
+ <description>Resume TWI transaction</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RESUME</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>TWI stopped</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>TWI error</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_SUSPENDED</name>
+ <description>Last byte has been sent out after the SUSPEND task has been issued, TWI traffic is now suspended.</description>
+ <addressOffset>0x148</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SUSPENDED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXSTARTED</name>
+ <description>Receive sequence started</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXSTARTED</name>
+ <description>Transmit sequence started</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_LASTRX</name>
+ <description>Byte boundary, starting to receive the last byte</description>
+ <addressOffset>0x15C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_LASTRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_LASTTX</name>
+ <description>Byte boundary, starting to transmit the last byte</description>
+ <addressOffset>0x160</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_LASTTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LASTTX_STARTRX</name>
+ <description>Shortcut between LASTTX event and STARTRX task</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX_SUSPEND</name>
+ <description>Shortcut between LASTTX event and SUSPEND task</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX_STOP</name>
+ <description>Shortcut between LASTTX event and STOP task</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX_STARTTX</name>
+ <description>Shortcut between LASTRX event and STARTTX task</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX_SUSPEND</name>
+ <description>Shortcut between LASTRX event and SUSPEND task</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX_STOP</name>
+ <description>Shortcut between LASTRX event and STOP task</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable or disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Enable or disable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Enable or disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Enable or disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX</name>
+ <description>Enable or disable interrupt for LASTRX event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX</name>
+ <description>Enable or disable interrupt for LASTTX event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Write '1' to enable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to enable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to enable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX</name>
+ <description>Write '1' to enable interrupt for LASTRX event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX</name>
+ <description>Write '1' to enable interrupt for LASTTX event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPENDED</name>
+ <description>Write '1' to disable interrupt for SUSPENDED event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTRX</name>
+ <description>Write '1' to disable interrupt for LASTRX event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LASTTX</name>
+ <description>Write '1' to disable interrupt for LASTTX event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source</description>
+ <addressOffset>0x4C4</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERRUN</name>
+ <description>Overrun error</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReceived</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Received</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ANACK</name>
+ <description>NACK received after sending the address (write '1' to clear)</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReceived</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Received</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DNACK</name>
+ <description>NACK received after sending a data byte (write '1' to clear)</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReceived</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Received</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable TWIM</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable TWIM</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable TWIM</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable TWIM</description>
+ <value>6</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>TWIM_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCL</name>
+ <description>Pin select for SCL signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SDA</name>
+ <description>Pin select for SDA signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>FREQUENCY</name>
+ <description>TWI frequency. Accuracy depends on the HFCLK source selected.</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x04000000</resetValue>
+ <fields>
+ <field>
+ <name>FREQUENCY</name>
+ <description>TWI master clock frequency</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K100</name>
+ <description>100 kbps</description>
+ <value>0x01980000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K250</name>
+ <description>250 kbps</description>
+ <value>0x04000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K400</name>
+ <description>400 kbps</description>
+ <value>0x06400000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>RXD</name>
+ <description>RXD EasyDMA channel</description>
+ <headerStructName>TWIM_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in receive buffer</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction. In case of NACK error, includes the NACK'ed byte.</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIST</name>
+ <description>EasyDMA list type</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIST</name>
+ <description>List type</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable EasyDMA list</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ArrayList</name>
+ <description>Use array list</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>TXD EasyDMA channel</description>
+ <headerStructName>TWIM_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in transmit buffer</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction. In case of NACK error, includes the NACK'ed byte.</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIST</name>
+ <description>EasyDMA list type</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIST</name>
+ <description>List type</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable EasyDMA list</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ArrayList</name>
+ <description>Use array list</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>ADDRESS</name>
+ <description>Address used in the TWI transfer</description>
+ <addressOffset>0x588</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDRESS</name>
+ <description>Address used in the TWI transfer</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TWIS0</name>
+ <description>I2C compatible Two-Wire Slave Interface with EasyDMA 0</description>
+ <baseAddress>0x40003000</baseAddress>
+ <alternatePeripheral>SPI0</alternatePeripheral>
+ <headerStructName>TWIS</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0</name>
+ <value>3</value>
+ </interrupt>
+ <groupName>TWIS</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop TWI transaction</description>
+ <addressOffset>0x014</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SUSPEND</name>
+ <description>Suspend TWI transaction</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SUSPEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RESUME</name>
+ <description>Resume TWI transaction</description>
+ <addressOffset>0x020</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RESUME</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_PREPARERX</name>
+ <description>Prepare the TWI slave to respond to a write command</description>
+ <addressOffset>0x030</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_PREPARERX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_PREPARETX</name>
+ <description>Prepare the TWI slave to respond to a read command</description>
+ <addressOffset>0x034</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_PREPARETX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>TWI stopped</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>TWI error</description>
+ <addressOffset>0x124</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXSTARTED</name>
+ <description>Receive sequence started</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXSTARTED</name>
+ <description>Transmit sequence started</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_WRITE</name>
+ <description>Write command received</description>
+ <addressOffset>0x164</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_WRITE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_READ</name>
+ <description>Read command received</description>
+ <addressOffset>0x168</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_READ</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>WRITE_SUSPEND</name>
+ <description>Shortcut between WRITE event and SUSPEND task</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ_SUSPEND</name>
+ <description>Shortcut between READ event and SUSPEND task</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable or disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Enable or disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Enable or disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WRITE</name>
+ <description>Enable or disable interrupt for WRITE event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ</name>
+ <description>Enable or disable interrupt for READ event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to enable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to enable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to enable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WRITE</name>
+ <description>Write '1' to enable interrupt for WRITE event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ</name>
+ <description>Write '1' to enable interrupt for READ event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to disable interrupt for ERROR event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXSTARTED</name>
+ <description>Write '1' to disable interrupt for RXSTARTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXSTARTED</name>
+ <description>Write '1' to disable interrupt for TXSTARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WRITE</name>
+ <description>Write '1' to disable interrupt for WRITE event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ</name>
+ <description>Write '1' to disable interrupt for READ event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSRC</name>
+ <description>Error source</description>
+ <addressOffset>0x4D0</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>OVERFLOW</name>
+ <description>RX buffer overflow detected, and prevented</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DNACK</name>
+ <description>NACK sent after receiving a data byte</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotReceived</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Received</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVERREAD</name>
+ <description>TX buffer over-read detected, and prevented</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Error did not occur</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Error occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MATCH</name>
+ <description>Status register indicating which address had a match</description>
+ <addressOffset>0x4D4</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>MATCH</name>
+ <description>Which of the addresses in {ADDRESS} matched the incoming address</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable TWIS</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable TWIS</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable TWIS</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable TWIS</description>
+ <value>9</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>TWIS_PSEL</headerStructName>
+ <addressOffset>0x508</addressOffset>
+ <register>
+ <name>SCL</name>
+ <description>Pin select for SCL signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SDA</name>
+ <description>Pin select for SDA signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>RXD</name>
+ <description>RXD EasyDMA channel</description>
+ <headerStructName>TWIS_RXD</headerStructName>
+ <addressOffset>0x534</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>RXD Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>RXD Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in RXD buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in RXD buffer</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last RXD transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last RXD transaction</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>TXD EasyDMA channel</description>
+ <headerStructName>TWIS_TXD</headerStructName>
+ <addressOffset>0x544</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>TXD Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>TXD Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in TXD buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes in TXD buffer</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last TXD transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last TXD transaction</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <dim>0x2</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>ADDRESS[%s]</name>
+ <description>Description collection[n]: TWI slave address n</description>
+ <addressOffset>0x588</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDRESS</name>
+ <description>TWI slave address</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register for the address match mechanism</description>
+ <addressOffset>0x594</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>ADDRESS0</name>
+ <description>Enable or disable address matching on ADDRESS[0]</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRESS1</name>
+ <description>Enable or disable address matching on ADDRESS[1]</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ORC</name>
+ <description>Over-read character. Character sent out in case of an over-read of the transmit buffer.</description>
+ <addressOffset>0x5C0</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ORC</name>
+ <description>Over-read character. Character sent out in case of an over-read of the transmit buffer.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="SPI0">
+ <name>SPI1</name>
+ <description>Serial Peripheral Interface 1</description>
+ <baseAddress>0x40004000</baseAddress>
+ <interrupt>
+ <name>SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SPIM0">
+ <name>SPIM1</name>
+ <description>Serial Peripheral Interface Master with EasyDMA 1</description>
+ <baseAddress>0x40004000</baseAddress>
+ <alternatePeripheral>SPI1</alternatePeripheral>
+ <interrupt>
+ <name>SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SPIS0">
+ <name>SPIS1</name>
+ <description>SPI Slave 1</description>
+ <baseAddress>0x40004000</baseAddress>
+ <alternatePeripheral>SPI1</alternatePeripheral>
+ <interrupt>
+ <name>SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TWI0">
+ <name>TWI1</name>
+ <description>I2C compatible Two-Wire Interface 1</description>
+ <baseAddress>0x40004000</baseAddress>
+ <alternatePeripheral>SPI1</alternatePeripheral>
+ <interrupt>
+ <name>SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TWIM0">
+ <name>TWIM1</name>
+ <description>I2C compatible Two-Wire Master Interface with EasyDMA 1</description>
+ <baseAddress>0x40004000</baseAddress>
+ <alternatePeripheral>SPI1</alternatePeripheral>
+ <interrupt>
+ <name>SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TWIS0">
+ <name>TWIS1</name>
+ <description>I2C compatible Two-Wire Slave Interface with EasyDMA 1</description>
+ <baseAddress>0x40004000</baseAddress>
+ <alternatePeripheral>SPI1</alternatePeripheral>
+ <interrupt>
+ <name>SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1</name>
+ <value>4</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>NFCT</name>
+ <description>NFC-A compatible radio</description>
+ <baseAddress>0x40005000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>NFCT</name>
+ <value>5</value>
+ </interrupt>
+ <groupName>NFCT</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_ACTIVATE</name>
+ <description>Activate NFCT peripheral for incoming and outgoing frames, change state to activated</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_ACTIVATE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_DISABLE</name>
+ <description>Disable NFCT peripheral</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_DISABLE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SENSE</name>
+ <description>Enable NFC sense field mode, change state to sense mode</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SENSE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STARTTX</name>
+ <description>Start transmission of an outgoing frame, change state to transmit</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_ENABLERXDATA</name>
+ <description>Initializes the EasyDMA for receive.</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_ENABLERXDATA</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_GOIDLE</name>
+ <description>Force state machine to IDLE state</description>
+ <addressOffset>0x024</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_GOIDLE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_GOSLEEP</name>
+ <description>Force state machine to SLEEP_A state</description>
+ <addressOffset>0x028</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_GOSLEEP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>The NFCT peripheral is ready to receive and send frames</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_READY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_FIELDDETECTED</name>
+ <description>Remote NFC field detected</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_FIELDDETECTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_FIELDLOST</name>
+ <description>Remote NFC field lost</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_FIELDLOST</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXFRAMESTART</name>
+ <description>Marks the start of the first symbol of a transmitted frame</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXFRAMESTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXFRAMEEND</name>
+ <description>Marks the end of the last transmitted on-air symbol of a frame</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXFRAMEEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXFRAMESTART</name>
+ <description>Marks the end of the first symbol of a received frame</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXFRAMESTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXFRAMEEND</name>
+ <description>Received data has been checked (CRC, parity) and transferred to RAM, and EasyDMA has ended accessing the RX buffer</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXFRAMEEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>NFC error reported. The ERRORSTATUS register contains details on the source of the error.</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXERROR</name>
+ <description>NFC RX frame error reported. The FRAMESTATUS.RX register contains details on the source of the error.</description>
+ <addressOffset>0x128</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDRX</name>
+ <description>RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full.</description>
+ <addressOffset>0x12C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDRX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDTX</name>
+ <description>Transmission of data in RAM has ended, and EasyDMA has ended accessing the TX buffer</description>
+ <addressOffset>0x130</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDTX</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_AUTOCOLRESSTARTED</name>
+ <description>Auto collision resolution process has started</description>
+ <addressOffset>0x138</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_AUTOCOLRESSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_COLLISION</name>
+ <description>NFC auto collision resolution error reported.</description>
+ <addressOffset>0x148</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_COLLISION</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_SELECTED</name>
+ <description>NFC auto collision resolution successfully completed</description>
+ <addressOffset>0x14C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SELECTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STARTED</name>
+ <description>EasyDMA is ready to receive or send frames.</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>FIELDDETECTED_ACTIVATE</name>
+ <description>Shortcut between FIELDDETECTED event and ACTIVATE task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDLOST_SENSE</name>
+ <description>Shortcut between FIELDLOST event and SENSE task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMEEND_ENABLERXDATA</name>
+ <description>Shortcut between TXFRAMEEND event and ENABLERXDATA task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Enable or disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDDETECTED</name>
+ <description>Enable or disable interrupt for FIELDDETECTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDLOST</name>
+ <description>Enable or disable interrupt for FIELDLOST event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMESTART</name>
+ <description>Enable or disable interrupt for TXFRAMESTART event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMEEND</name>
+ <description>Enable or disable interrupt for TXFRAMEEND event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXFRAMESTART</name>
+ <description>Enable or disable interrupt for RXFRAMESTART event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXFRAMEEND</name>
+ <description>Enable or disable interrupt for RXFRAMEEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Enable or disable interrupt for ERROR event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXERROR</name>
+ <description>Enable or disable interrupt for RXERROR event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Enable or disable interrupt for ENDRX event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Enable or disable interrupt for ENDTX event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>AUTOCOLRESSTARTED</name>
+ <description>Enable or disable interrupt for AUTOCOLRESSTARTED event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COLLISION</name>
+ <description>Enable or disable interrupt for COLLISION event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SELECTED</name>
+ <description>Enable or disable interrupt for SELECTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Enable or disable interrupt for STARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to enable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDDETECTED</name>
+ <description>Write '1' to enable interrupt for FIELDDETECTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDLOST</name>
+ <description>Write '1' to enable interrupt for FIELDLOST event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMESTART</name>
+ <description>Write '1' to enable interrupt for TXFRAMESTART event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMEEND</name>
+ <description>Write '1' to enable interrupt for TXFRAMEEND event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXFRAMESTART</name>
+ <description>Write '1' to enable interrupt for RXFRAMESTART event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXFRAMEEND</name>
+ <description>Write '1' to enable interrupt for RXFRAMEEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to enable interrupt for ERROR event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXERROR</name>
+ <description>Write '1' to enable interrupt for RXERROR event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to enable interrupt for ENDRX event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to enable interrupt for ENDTX event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>AUTOCOLRESSTARTED</name>
+ <description>Write '1' to enable interrupt for AUTOCOLRESSTARTED event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COLLISION</name>
+ <description>Write '1' to enable interrupt for COLLISION event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SELECTED</name>
+ <description>Write '1' to enable interrupt for SELECTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to enable interrupt for STARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDDETECTED</name>
+ <description>Write '1' to disable interrupt for FIELDDETECTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>FIELDLOST</name>
+ <description>Write '1' to disable interrupt for FIELDLOST event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMESTART</name>
+ <description>Write '1' to disable interrupt for TXFRAMESTART event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXFRAMEEND</name>
+ <description>Write '1' to disable interrupt for TXFRAMEEND event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXFRAMESTART</name>
+ <description>Write '1' to disable interrupt for RXFRAMESTART event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXFRAMEEND</name>
+ <description>Write '1' to disable interrupt for RXFRAMEEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to disable interrupt for ERROR event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RXERROR</name>
+ <description>Write '1' to disable interrupt for RXERROR event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDRX</name>
+ <description>Write '1' to disable interrupt for ENDRX event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDTX</name>
+ <description>Write '1' to disable interrupt for ENDTX event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>AUTOCOLRESSTARTED</name>
+ <description>Write '1' to disable interrupt for AUTOCOLRESSTARTED event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COLLISION</name>
+ <description>Write '1' to disable interrupt for COLLISION event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SELECTED</name>
+ <description>Write '1' to disable interrupt for SELECTED event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to disable interrupt for STARTED event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERRORSTATUS</name>
+ <description>NFC Error Status register</description>
+ <addressOffset>0x404</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>FRAMEDELAYTIMEOUT</name>
+ <description>No STARTTX task triggered before expiration of the time set in FRAMEDELAYMAX</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>FRAMESTATUS</name>
+ <description>Unspecified</description>
+ <headerStructName>NFCT_FRAMESTATUS</headerStructName>
+ <addressOffset>0x40C</addressOffset>
+ <register>
+ <name>RX</name>
+ <description>Result of last incoming frame</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>CRCERROR</name>
+ <description>No valid end of frame (EoF) detected</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>CRCCorrect</name>
+ <description>Valid CRC detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CRCError</name>
+ <description>CRC received does not match local check</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PARITYSTATUS</name>
+ <description>Parity status of received frame</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ParityOK</name>
+ <description>Frame received with parity OK</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ParityError</name>
+ <description>Frame received with parity error</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVERRUN</name>
+ <description>Overrun detected</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoOverrun</name>
+ <description>No overrun detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Overrun</name>
+ <description>Overrun error</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>NFCTAGSTATE</name>
+ <description>NfcTag state register</description>
+ <addressOffset>0x410</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>NFCTAGSTATE</name>
+ <description>NfcTag state</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled or sense</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>RampUp</name>
+ <description>RampUp</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Idle</name>
+ <description>Idle</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Receive</name>
+ <description>Receive</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>FrameDelay</name>
+ <description>FrameDelay</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Transmit</name>
+ <description>Transmit</description>
+ <value>6</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SLEEPSTATE</name>
+ <description>Sleep state during automatic collision resolution</description>
+ <addressOffset>0x420</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>SLEEPSTATE</name>
+ <description>Reflects the sleep state during automatic collision resolution. Set to IDLE
+ by a GOIDLE task. Set to SLEEP_A when a valid SLEEP_REQ frame is received or by a
+ GOSLEEP task.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Idle</name>
+ <description>State is IDLE.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SleepA</name>
+ <description>State is SLEEP_A.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FIELDPRESENT</name>
+ <description>Indicates the presence or not of a valid field</description>
+ <addressOffset>0x43C</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>FIELDPRESENT</name>
+ <description>Indicates if a valid field is present. Available only in the activated state.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoField</name>
+ <description>No valid field detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>FieldPresent</name>
+ <description>Valid field detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOCKDETECT</name>
+ <description>Indicates if the low level has locked to the field</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLocked</name>
+ <description>Not locked to field</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Locked</name>
+ <description>Locked to field</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FRAMEDELAYMIN</name>
+ <description>Minimum frame delay</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000480</resetValue>
+ <fields>
+ <field>
+ <name>FRAMEDELAYMIN</name>
+ <description>Minimum frame delay in number of 13.56 MHz clocks</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FRAMEDELAYMAX</name>
+ <description>Maximum frame delay</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00001000</resetValue>
+ <fields>
+ <field>
+ <name>FRAMEDELAYMAX</name>
+ <description>Maximum frame delay in number of 13.56 MHz clocks</description>
+ <lsb>0</lsb>
+ <msb>19</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FRAMEDELAYMODE</name>
+ <description>Configuration register for the Frame Delay Timer</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>FRAMEDELAYMODE</name>
+ <description>Configuration register for the Frame Delay Timer</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>FreeRun</name>
+ <description>Transmission is independent of frame timer and will start when the STARTTX task is triggered. No timeout.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Window</name>
+ <description>Frame is transmitted between FRAMEDELAYMIN and FRAMEDELAYMAX</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ExactVal</name>
+ <description>Frame is transmitted exactly at FRAMEDELAYMAX</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>WindowGrid</name>
+ <description>Frame is transmitted on a bit grid between FRAMEDELAYMIN and FRAMEDELAYMAX</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PACKETPTR</name>
+ <description>Packet pointer for TXD and RXD data storage in Data RAM</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Packet pointer for TXD and RXD data storage in Data RAM. This address is a byte-aligned RAM address.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXLEN</name>
+ <description>Size of the RAM buffer allocated to TXD and RXD data storage each</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXLEN</name>
+ <description>Size of the RAM buffer allocated to TXD and RXD data storage each</description>
+ <lsb>0</lsb>
+ <msb>8</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>TXD</name>
+ <description>Unspecified</description>
+ <headerStructName>NFCT_TXD</headerStructName>
+ <addressOffset>0x518</addressOffset>
+ <register>
+ <name>FRAMECONFIG</name>
+ <description>Configuration of outgoing frames</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000017</resetValue>
+ <fields>
+ <field>
+ <name>PARITY</name>
+ <description>Indicates if parity is added to the frame</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoParity</name>
+ <description>Parity is not added to TX frames</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Parity</name>
+ <description>Parity is added to TX frames</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DISCARDMODE</name>
+ <description>Discarding unused bits at start or end of a frame</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DiscardEnd</name>
+ <description>Unused bits are discarded at end of frame (EoF)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DiscardStart</name>
+ <description>Unused bits are discarded at start of frame (SoF)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SOF</name>
+ <description>Adding SoF or not in TX frames</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoSoF</name>
+ <description>SoF symbol not added</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SoF</name>
+ <description>SoF symbol added</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCMODETX</name>
+ <description>CRC mode for outgoing frames</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoCRCTX</name>
+ <description>CRC is not added to the frame</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CRC16TX</name>
+ <description>16 bit CRC added to the frame based on all the data read from RAM that is used in the frame</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Size of outgoing frame</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TXDATABITS</name>
+ <description>Number of bits in the last or first byte read from RAM that shall be included in the frame (excluding parity bit).</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ <field>
+ <name>TXDATABYTES</name>
+ <description>Number of complete bytes that shall be included in the frame, excluding CRC, parity and framing</description>
+ <lsb>3</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>RXD</name>
+ <description>Unspecified</description>
+ <headerStructName>NFCT_RXD</headerStructName>
+ <addressOffset>0x520</addressOffset>
+ <register>
+ <name>FRAMECONFIG</name>
+ <description>Configuration of incoming frames</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000015</resetValue>
+ <fields>
+ <field>
+ <name>PARITY</name>
+ <description>Indicates if parity expected in RX frame</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoParity</name>
+ <description>Parity is not expected in RX frames</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Parity</name>
+ <description>Parity is expected in RX frames</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SOF</name>
+ <description>SoF expected or not in RX frames</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoSoF</name>
+ <description>SoF symbol is not expected in RX frames</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SoF</name>
+ <description>SoF symbol is expected in RX frames</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CRCMODERX</name>
+ <description>CRC mode for incoming frames</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoCRCRX</name>
+ <description>CRC is not expected in RX frames</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CRC16RX</name>
+ <description>Last 16 bits in RX frame is CRC, CRC is checked and CRCSTATUS updated</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Size of last incoming frame</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RXDATABITS</name>
+ <description>Number of bits in the last byte in the frame, if less than 8 (including CRC, but excluding parity and SoF/EoF framing).</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ <field>
+ <name>RXDATABYTES</name>
+ <description>Number of complete bytes received in the frame (including CRC, but excluding parity and SoF/EoF framing)</description>
+ <lsb>3</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>NFCID1_LAST</name>
+ <description>Last NFCID1 part (4, 7 or 10 bytes ID)</description>
+ <addressOffset>0x590</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00006363</resetValue>
+ <fields>
+ <field>
+ <name>NFCID1_Z</name>
+ <description>NFCID1 byte Z (very last byte sent)</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>NFCID1_Y</name>
+ <description>NFCID1 byte Y</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>NFCID1_X</name>
+ <description>NFCID1 byte X</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>NFCID1_W</name>
+ <description>NFCID1 byte W</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NFCID1_2ND_LAST</name>
+ <description>Second last NFCID1 part (7 or 10 bytes ID)</description>
+ <addressOffset>0x594</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>NFCID1_V</name>
+ <description>NFCID1 byte V</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>NFCID1_U</name>
+ <description>NFCID1 byte U</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>NFCID1_T</name>
+ <description>NFCID1 byte T</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NFCID1_3RD_LAST</name>
+ <description>Third last NFCID1 part (10 bytes ID)</description>
+ <addressOffset>0x598</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>NFCID1_S</name>
+ <description>NFCID1 byte S</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>NFCID1_R</name>
+ <description>NFCID1 byte R</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>NFCID1_Q</name>
+ <description>NFCID1 byte Q</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AUTOCOLRESCONFIG</name>
+ <description>Controls the auto collision resolution function. This setting must be done before the NFCT peripheral is enabled.</description>
+ <addressOffset>0x59C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000002</resetValue>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Enables/disables auto collision resolution</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Auto collision resolution enabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Auto collision resolution disabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SENSRES</name>
+ <description>NFC-A SENS_RES auto-response settings</description>
+ <addressOffset>0x5A0</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>BITFRAMESDD</name>
+ <description>Bit frame SDD as defined by the b5:b1 of byte 1 in SENS_RES response in the NFC Forum, NFC Digital Protocol Technical Specification</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>SDD00000</name>
+ <description>SDD pattern 00000</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SDD00001</name>
+ <description>SDD pattern 00001</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SDD00010</name>
+ <description>SDD pattern 00010</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SDD00100</name>
+ <description>SDD pattern 00100</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SDD01000</name>
+ <description>SDD pattern 01000</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>SDD10000</name>
+ <description>SDD pattern 10000</description>
+ <value>16</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RFU5</name>
+ <description>Reserved for future use. Shall be 0.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>NFCIDSIZE</name>
+ <description>NFCID1 size. This value is used by the auto collision resolution engine.</description>
+ <lsb>6</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NFCID1Single</name>
+ <description>NFCID1 size: single (4 bytes)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NFCID1Double</name>
+ <description>NFCID1 size: double (7 bytes)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NFCID1Triple</name>
+ <description>NFCID1 size: triple (10 bytes)</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PLATFCONFIG</name>
+ <description>Tag platform configuration as defined by the b4:b1 of byte 2 in SENS_RES response in the NFC Forum, NFC Digital Protocol Technical Specification</description>
+ <lsb>8</lsb>
+ <msb>11</msb>
+ </field>
+ <field>
+ <name>RFU74</name>
+ <description>Reserved for future use. Shall be 0.</description>
+ <lsb>12</lsb>
+ <msb>15</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SELRES</name>
+ <description>NFC-A SEL_RES auto-response settings</description>
+ <addressOffset>0x5A4</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RFU10</name>
+ <description>Reserved for future use. Shall be 0.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ </field>
+ <field>
+ <name>CASCADE</name>
+ <description>Cascade as defined by the b3 of SEL_RES response in the NFC Forum, NFC Digital Protocol Technical Specification (controlled by hardware, shall be 0)</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ </field>
+ <field>
+ <name>RFU43</name>
+ <description>Reserved for future use. Shall be 0.</description>
+ <lsb>3</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PROTOCOL</name>
+ <description>Protocol as defined by the b7:b6 of SEL_RES response in the NFC Forum, NFC Digital Protocol Technical Specification</description>
+ <lsb>5</lsb>
+ <msb>6</msb>
+ </field>
+ <field>
+ <name>RFU7</name>
+ <description>Reserved for future use. Shall be 0.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>GPIOTE</name>
+ <description>GPIO Tasks and Events</description>
+ <baseAddress>0x40006000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>GPIOTE</name>
+ <value>6</value>
+ </interrupt>
+ <groupName>GPIOTE</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>TASKS_OUT[%s]</name>
+ <description>Description collection[n]: Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is configured in CONFIG[n].POLARITY.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_OUT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>TASKS_SET[%s]</name>
+ <description>Description collection[n]: Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is to set it high.</description>
+ <addressOffset>0x030</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SET</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>TASKS_CLR[%s]</name>
+ <description>Description collection[n]: Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is to set it low.</description>
+ <addressOffset>0x060</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CLR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>EVENTS_IN[%s]</name>
+ <description>Description collection[n]: Event generated from pin specified in CONFIG[n].PSEL</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_IN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_PORT</name>
+ <description>Event generated from multiple input GPIO pins with SENSE mechanism enabled</description>
+ <addressOffset>0x17C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_PORT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>IN0</name>
+ <description>Write '1' to enable interrupt for IN[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN1</name>
+ <description>Write '1' to enable interrupt for IN[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN2</name>
+ <description>Write '1' to enable interrupt for IN[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN3</name>
+ <description>Write '1' to enable interrupt for IN[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN4</name>
+ <description>Write '1' to enable interrupt for IN[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN5</name>
+ <description>Write '1' to enable interrupt for IN[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN6</name>
+ <description>Write '1' to enable interrupt for IN[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN7</name>
+ <description>Write '1' to enable interrupt for IN[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Write '1' to enable interrupt for PORT event</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>IN0</name>
+ <description>Write '1' to disable interrupt for IN[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN1</name>
+ <description>Write '1' to disable interrupt for IN[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN2</name>
+ <description>Write '1' to disable interrupt for IN[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN3</name>
+ <description>Write '1' to disable interrupt for IN[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN4</name>
+ <description>Write '1' to disable interrupt for IN[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN5</name>
+ <description>Write '1' to disable interrupt for IN[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN6</name>
+ <description>Write '1' to disable interrupt for IN[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN7</name>
+ <description>Write '1' to disable interrupt for IN[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Write '1' to disable interrupt for PORT event</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>CONFIG[%s]</name>
+ <description>Description collection[n]: Configuration for OUT[n], SET[n] and CLR[n] tasks and IN[n] event</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Mode</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled. Pin specified by PSEL will not be acquired by the GPIOTE module.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Event</name>
+ <description>Event mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Task</name>
+ <description>Task mode</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PSEL</name>
+ <description>GPIO number associated with SET[n], CLR[n] and OUT[n] tasks and IN[n] event</description>
+ <lsb>8</lsb>
+ <msb>12</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ </field>
+ <field>
+ <name>POLARITY</name>
+ <description>When In task mode: Operation to be performed on output when OUT[n] task is triggered. When In event mode: Operation on input that shall trigger IN[n] event.</description>
+ <lsb>16</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>None</name>
+ <description>Task mode: No effect on pin from OUT[n] task. Event mode: no IN[n] event generated on pin activity.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LoToHi</name>
+ <description>Task mode: Set pin from OUT[n] task. Event mode: Generate IN[n] event when rising edge on pin.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>HiToLo</name>
+ <description>Task mode: Clear pin from OUT[n] task. Event mode: Generate IN[n] event when falling edge on pin.</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Toggle</name>
+ <description>Task mode: Toggle pin from OUT[n]. Event mode: Generate IN[n] when any change on pin.</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OUTINIT</name>
+ <description>When in task mode: Initial value of the output when the GPIOTE channel is configured. When in event mode: No effect.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Task mode: Initial value of pin before task triggering is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Task mode: Initial value of pin before task triggering is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SAADC</name>
+ <description>Successive approximation register (SAR) analog-to-digital converter</description>
+ <baseAddress>0x40007000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SAADC</name>
+ <value>7</value>
+ </interrupt>
+ <groupName>SAADC</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Starts the SAADC and prepares the result buffer in RAM</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SAMPLE</name>
+ <description>Takes one SAADC sample</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SAMPLE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stops the SAADC and terminates all on-going conversions</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CALIBRATEOFFSET</name>
+ <description>Starts offset auto-calibration</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CALIBRATEOFFSET</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STARTED</name>
+ <description>The SAADC has started</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>The SAADC has filled up the result buffer</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_END</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DONE</name>
+ <description>A conversion task has been completed. Depending on the configuration, multiple conversions might be needed for a result to be transferred to RAM.</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DONE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RESULTDONE</name>
+ <description>Result ready for transfer to RAM</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RESULTDONE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CALIBRATEDONE</name>
+ <description>Calibration is complete</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CALIBRATEDONE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>The SAADC has stopped</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>8</dim>
+ <dimIncrement>0x008</dimIncrement>
+ <name>EVENTS_CH[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>SAADC_EVENTS_CH</headerStructName>
+ <addressOffset>0x118</addressOffset>
+ <register>
+ <name>LIMITH</name>
+ <description>Description cluster[n]: Last result is equal or above CH[n].LIMIT.HIGH</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIMITH</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIMITL</name>
+ <description>Description cluster[n]: Last result is equal or below CH[n].LIMIT.LOW</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LIMITL</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Enable or disable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Enable or disable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Enable or disable interrupt for DONE event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESULTDONE</name>
+ <description>Enable or disable interrupt for RESULTDONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CALIBRATEDONE</name>
+ <description>Enable or disable interrupt for CALIBRATEDONE event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITH</name>
+ <description>Enable or disable interrupt for CH[0].LIMITH event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITL</name>
+ <description>Enable or disable interrupt for CH[0].LIMITL event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITH</name>
+ <description>Enable or disable interrupt for CH[1].LIMITH event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITL</name>
+ <description>Enable or disable interrupt for CH[1].LIMITL event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITH</name>
+ <description>Enable or disable interrupt for CH[2].LIMITH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITL</name>
+ <description>Enable or disable interrupt for CH[2].LIMITL event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITH</name>
+ <description>Enable or disable interrupt for CH[3].LIMITH event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITL</name>
+ <description>Enable or disable interrupt for CH[3].LIMITL event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITH</name>
+ <description>Enable or disable interrupt for CH[4].LIMITH event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITL</name>
+ <description>Enable or disable interrupt for CH[4].LIMITL event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITH</name>
+ <description>Enable or disable interrupt for CH[5].LIMITH event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITL</name>
+ <description>Enable or disable interrupt for CH[5].LIMITL event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITH</name>
+ <description>Enable or disable interrupt for CH[6].LIMITH event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITL</name>
+ <description>Enable or disable interrupt for CH[6].LIMITL event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITH</name>
+ <description>Enable or disable interrupt for CH[7].LIMITH event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITL</name>
+ <description>Enable or disable interrupt for CH[7].LIMITL event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to enable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to enable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Write '1' to enable interrupt for DONE event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESULTDONE</name>
+ <description>Write '1' to enable interrupt for RESULTDONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CALIBRATEDONE</name>
+ <description>Write '1' to enable interrupt for CALIBRATEDONE event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to enable interrupt for STOPPED event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITH</name>
+ <description>Write '1' to enable interrupt for CH[0].LIMITH event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITL</name>
+ <description>Write '1' to enable interrupt for CH[0].LIMITL event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITH</name>
+ <description>Write '1' to enable interrupt for CH[1].LIMITH event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITL</name>
+ <description>Write '1' to enable interrupt for CH[1].LIMITL event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITH</name>
+ <description>Write '1' to enable interrupt for CH[2].LIMITH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITL</name>
+ <description>Write '1' to enable interrupt for CH[2].LIMITL event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITH</name>
+ <description>Write '1' to enable interrupt for CH[3].LIMITH event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITL</name>
+ <description>Write '1' to enable interrupt for CH[3].LIMITL event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITH</name>
+ <description>Write '1' to enable interrupt for CH[4].LIMITH event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITL</name>
+ <description>Write '1' to enable interrupt for CH[4].LIMITL event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITH</name>
+ <description>Write '1' to enable interrupt for CH[5].LIMITH event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITL</name>
+ <description>Write '1' to enable interrupt for CH[5].LIMITL event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITH</name>
+ <description>Write '1' to enable interrupt for CH[6].LIMITH event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITL</name>
+ <description>Write '1' to enable interrupt for CH[6].LIMITL event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITH</name>
+ <description>Write '1' to enable interrupt for CH[7].LIMITH event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITL</name>
+ <description>Write '1' to enable interrupt for CH[7].LIMITL event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to disable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to disable interrupt for END event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DONE</name>
+ <description>Write '1' to disable interrupt for DONE event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESULTDONE</name>
+ <description>Write '1' to disable interrupt for RESULTDONE event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CALIBRATEDONE</name>
+ <description>Write '1' to disable interrupt for CALIBRATEDONE event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to disable interrupt for STOPPED event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITH</name>
+ <description>Write '1' to disable interrupt for CH[0].LIMITH event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH0LIMITL</name>
+ <description>Write '1' to disable interrupt for CH[0].LIMITL event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITH</name>
+ <description>Write '1' to disable interrupt for CH[1].LIMITH event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1LIMITL</name>
+ <description>Write '1' to disable interrupt for CH[1].LIMITL event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITH</name>
+ <description>Write '1' to disable interrupt for CH[2].LIMITH event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2LIMITL</name>
+ <description>Write '1' to disable interrupt for CH[2].LIMITL event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITH</name>
+ <description>Write '1' to disable interrupt for CH[3].LIMITH event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3LIMITL</name>
+ <description>Write '1' to disable interrupt for CH[3].LIMITL event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITH</name>
+ <description>Write '1' to disable interrupt for CH[4].LIMITH event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4LIMITL</name>
+ <description>Write '1' to disable interrupt for CH[4].LIMITL event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITH</name>
+ <description>Write '1' to disable interrupt for CH[5].LIMITH event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5LIMITL</name>
+ <description>Write '1' to disable interrupt for CH[5].LIMITL event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITH</name>
+ <description>Write '1' to disable interrupt for CH[6].LIMITH event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6LIMITL</name>
+ <description>Write '1' to disable interrupt for CH[6].LIMITL event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITH</name>
+ <description>Write '1' to disable interrupt for CH[7].LIMITH event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7LIMITL</name>
+ <description>Write '1' to disable interrupt for CH[7].LIMITL event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATUS</name>
+ <description>Status</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>Status</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Ready</name>
+ <description>SAADC is ready. No on-going conversions.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Busy</name>
+ <description>SAADC is busy. Conversion in progress.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable or disable SAADC</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable SAADC</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable SAADC</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable SAADC</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>8</dim>
+ <dimIncrement>0x010</dimIncrement>
+ <name>CH[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>SAADC_CH</headerStructName>
+ <addressOffset>0x510</addressOffset>
+ <register>
+ <name>PSELP</name>
+ <description>Description cluster[n]: Input positive pin selection for CH[n]</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PSELP</name>
+ <description>Analog positive input channel</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NC</name>
+ <description>Not connected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>AIN0</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>AIN1</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>AIN2</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>AIN3</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>AIN4</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>AIN5</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>AIN6</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput7</name>
+ <description>AIN7</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD</name>
+ <description>VDD</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDDHDIV5</name>
+ <description>VDDH/5</description>
+ <value>0x0D</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSELN</name>
+ <description>Description cluster[n]: Input negative pin selection for CH[n]</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PSELN</name>
+ <description>Analog negative input, enables differential channel</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NC</name>
+ <description>Not connected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>AIN0</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>AIN1</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>AIN2</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>AIN3</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>AIN4</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>AIN5</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>AIN6</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput7</name>
+ <description>AIN7</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD</name>
+ <description>VDD</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDDHDIV5</name>
+ <description>VDDH/5</description>
+ <value>0x0D</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Description cluster[n]: Input configuration for CH[n]</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00020000</resetValue>
+ <fields>
+ <field>
+ <name>RESP</name>
+ <description>Positive channel resistor control</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Bypass</name>
+ <description>Bypass resistor ladder</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pulldown</name>
+ <description>Pull-down to GND</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pullup</name>
+ <description>Pull-up to VDD</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD1_2</name>
+ <description>Set input at VDD/2</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESN</name>
+ <description>Negative channel resistor control</description>
+ <lsb>4</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Bypass</name>
+ <description>Bypass resistor ladder</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pulldown</name>
+ <description>Pull-down to GND</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pullup</name>
+ <description>Pull-up to VDD</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD1_2</name>
+ <description>Set input at VDD/2</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>GAIN</name>
+ <description>Gain control</description>
+ <lsb>8</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Gain1_6</name>
+ <description>1/6</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1_5</name>
+ <description>1/5</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1_4</name>
+ <description>1/4</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1_3</name>
+ <description>1/3</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1_2</name>
+ <description>1/2</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain1</name>
+ <description>1</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain2</name>
+ <description>2</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Gain4</name>
+ <description>4</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REFSEL</name>
+ <description>Reference control</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Internal</name>
+ <description>Internal reference (0.6 V)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD1_4</name>
+ <description>VDD/4 as reference</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TACQ</name>
+ <description>Acquisition time, the time the SAADC uses to sample the input voltage</description>
+ <lsb>16</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>3us</name>
+ <description>3 us</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>5us</name>
+ <description>5 us</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>10us</name>
+ <description>10 us</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>15us</name>
+ <description>15 us</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>20us</name>
+ <description>20 us</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>40us</name>
+ <description>40 us</description>
+ <value>5</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>MODE</name>
+ <description>Enable differential mode</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>SE</name>
+ <description>Single-ended, PSELN will be ignored, negative input to SAADC shorted to GND</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Diff</name>
+ <description>Differential</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>BURST</name>
+ <description>Enable burst mode</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Burst mode is disabled (normal operation)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LIMIT</name>
+ <description>Description cluster[n]: High/low limits for event monitoring of a channel</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x7FFF8000</resetValue>
+ <fields>
+ <field>
+ <name>LOW</name>
+ <description>Low level limit</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>HIGH</name>
+ <description>High level limit</description>
+ <lsb>16</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>RESOLUTION</name>
+ <description>Resolution configuration</description>
+ <addressOffset>0x5F0</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>VAL</name>
+ <description>Set the resolution</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>8bit</name>
+ <description>8 bits</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>10bit</name>
+ <description>10 bits</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>12bit</name>
+ <description>12 bits</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>14bit</name>
+ <description>14 bits</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OVERSAMPLE</name>
+ <description>Oversampling configuration. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used.</description>
+ <addressOffset>0x5F4</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>OVERSAMPLE</name>
+ <description>Oversample control</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Bypass</name>
+ <description>Bypass oversampling</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over2x</name>
+ <description>Oversample 2x</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over4x</name>
+ <description>Oversample 4x</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over8x</name>
+ <description>Oversample 8x</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over16x</name>
+ <description>Oversample 16x</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over32x</name>
+ <description>Oversample 32x</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over64x</name>
+ <description>Oversample 64x</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over128x</name>
+ <description>Oversample 128x</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Over256x</name>
+ <description>Oversample 256x</description>
+ <value>8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SAMPLERATE</name>
+ <description>Controls normal or continuous sample rate</description>
+ <addressOffset>0x5F8</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CC</name>
+ <description>Capture and compare value. Sample rate is 16 MHz/CC</description>
+ <lsb>0</lsb>
+ <msb>10</msb>
+ </field>
+ <field>
+ <name>MODE</name>
+ <description>Select mode for sample rate control</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Task</name>
+ <description>Rate is controlled from SAMPLE task</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Timers</name>
+ <description>Rate is controlled from local timer (use CC to control the rate)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>RESULT</name>
+ <description>RESULT EasyDMA channel</description>
+ <headerStructName>SAADC_RESULT</headerStructName>
+ <addressOffset>0x62C</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of 16-bit samples to be written to output RAM buffer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of 16-bit samples to be written to output RAM buffer</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of 16-bit samples written to output RAM buffer since the previous START task</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of 16-bit samples written to output RAM buffer since the previous START task. This register can be read after an END or STOPPED event.</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TIMER0</name>
+ <description>Timer/Counter 0</description>
+ <baseAddress>0x40008000</baseAddress>
+ <headerStructName>TIMER</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>TIMER0</name>
+ <value>8</value>
+ </interrupt>
+ <groupName>TIMER</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start Timer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop Timer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_COUNT</name>
+ <description>Increment Timer (Counter mode only)</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_COUNT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CLEAR</name>
+ <description>Clear time</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CLEAR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SHUTDOWN</name>
+ <description>Deprecated register - Shut down timer</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SHUTDOWN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x6</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>TASKS_CAPTURE[%s]</name>
+ <description>Description collection[n]: Capture Timer value to CC[n] register</description>
+ <addressOffset>0x040</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CAPTURE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x6</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>EVENTS_COMPARE[%s]</name>
+ <description>Description collection[n]: Compare event on CC[n] match</description>
+ <addressOffset>0x140</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_COMPARE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>COMPARE0_CLEAR</name>
+ <description>Shortcut between COMPARE[0] event and CLEAR task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1_CLEAR</name>
+ <description>Shortcut between COMPARE[1] event and CLEAR task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2_CLEAR</name>
+ <description>Shortcut between COMPARE[2] event and CLEAR task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3_CLEAR</name>
+ <description>Shortcut between COMPARE[3] event and CLEAR task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE4_CLEAR</name>
+ <description>Shortcut between COMPARE[4] event and CLEAR task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE5_CLEAR</name>
+ <description>Shortcut between COMPARE[5] event and CLEAR task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0_STOP</name>
+ <description>Shortcut between COMPARE[0] event and STOP task</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1_STOP</name>
+ <description>Shortcut between COMPARE[1] event and STOP task</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2_STOP</name>
+ <description>Shortcut between COMPARE[2] event and STOP task</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3_STOP</name>
+ <description>Shortcut between COMPARE[3] event and STOP task</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE4_STOP</name>
+ <description>Shortcut between COMPARE[4] event and STOP task</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE5_STOP</name>
+ <description>Shortcut between COMPARE[5] event and STOP task</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to enable interrupt for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to enable interrupt for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to enable interrupt for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to enable interrupt for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE4</name>
+ <description>Write '1' to enable interrupt for COMPARE[4] event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE5</name>
+ <description>Write '1' to enable interrupt for COMPARE[5] event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to disable interrupt for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to disable interrupt for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to disable interrupt for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to disable interrupt for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE4</name>
+ <description>Write '1' to disable interrupt for COMPARE[4] event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE5</name>
+ <description>Write '1' to disable interrupt for COMPARE[5] event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Timer mode selection</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>Timer mode</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Timer</name>
+ <description>Select Timer mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Counter</name>
+ <description>Deprecated enumerator - Select Counter mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LowPowerCounter</name>
+ <description>Select Low Power Counter mode</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BITMODE</name>
+ <description>Configure the number of bits used by the TIMER</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BITMODE</name>
+ <description>Timer bit width</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>16Bit</name>
+ <description>16 bit timer bit width</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>08Bit</name>
+ <description>8 bit timer bit width</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>24Bit</name>
+ <description>24 bit timer bit width</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32Bit</name>
+ <description>32 bit timer bit width</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PRESCALER</name>
+ <description>Timer prescaler register</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000004</resetValue>
+ <fields>
+ <field>
+ <name>PRESCALER</name>
+ <description>Prescaler value</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x6</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>CC[%s]</name>
+ <description>Description collection[n]: Capture/Compare register n</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CC</name>
+ <description>Capture/Compare value</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="TIMER0">
+ <name>TIMER1</name>
+ <description>Timer/Counter 1</description>
+ <baseAddress>0x40009000</baseAddress>
+ <interrupt>
+ <name>TIMER1</name>
+ <value>9</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TIMER0">
+ <name>TIMER2</name>
+ <description>Timer/Counter 2</description>
+ <baseAddress>0x4000A000</baseAddress>
+ <interrupt>
+ <name>TIMER2</name>
+ <value>10</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>RTC0</name>
+ <description>Real time counter 0</description>
+ <baseAddress>0x4000B000</baseAddress>
+ <headerStructName>RTC</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>RTC0</name>
+ <value>11</value>
+ </interrupt>
+ <groupName>RTC</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start RTC COUNTER</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop RTC COUNTER</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CLEAR</name>
+ <description>Clear RTC COUNTER</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CLEAR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_TRIGOVRFLW</name>
+ <description>Set COUNTER to 0xFFFFF0</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_TRIGOVRFLW</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TICK</name>
+ <description>Event on COUNTER increment</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TICK</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_OVRFLW</name>
+ <description>Event on COUNTER overflow</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_OVRFLW</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x4</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>EVENTS_COMPARE[%s]</name>
+ <description>Description collection[n]: Compare event on CC[n] match</description>
+ <addressOffset>0x140</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_COMPARE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Write '1' to enable interrupt for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Write '1' to enable interrupt for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to enable interrupt for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to enable interrupt for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to enable interrupt for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to enable interrupt for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Write '1' to disable interrupt for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Write '1' to disable interrupt for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to disable interrupt for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to disable interrupt for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to disable interrupt for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to disable interrupt for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVTEN</name>
+ <description>Enable or disable event routing</description>
+ <addressOffset>0x340</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Enable or disable event routing for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Enable or disable event routing for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Enable or disable event routing for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Enable or disable event routing for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Enable or disable event routing for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Enable or disable event routing for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVTENSET</name>
+ <description>Enable event routing</description>
+ <addressOffset>0x344</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Write '1' to enable event routing for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Write '1' to enable event routing for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to enable event routing for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to enable event routing for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to enable event routing for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to enable event routing for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVTENCLR</name>
+ <description>Disable event routing</description>
+ <addressOffset>0x348</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TICK</name>
+ <description>Write '1' to disable event routing for TICK event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OVRFLW</name>
+ <description>Write '1' to disable event routing for OVRFLW event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE0</name>
+ <description>Write '1' to disable event routing for COMPARE[0] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE1</name>
+ <description>Write '1' to disable event routing for COMPARE[1] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE2</name>
+ <description>Write '1' to disable event routing for COMPARE[2] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>COMPARE3</name>
+ <description>Write '1' to disable event routing for COMPARE[3] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>COUNTER</name>
+ <description>Current COUNTER value</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>COUNTER</name>
+ <description>Counter value</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PRESCALER</name>
+ <description>12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must be written when RTC is stopped</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PRESCALER</name>
+ <description>Prescaler value</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x4</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>CC[%s]</name>
+ <description>Description collection[n]: Compare register n</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>COMPARE</name>
+ <description>Compare value</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>TEMP</name>
+ <description>Temperature Sensor</description>
+ <baseAddress>0x4000C000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>TEMP</name>
+ <value>12</value>
+ </interrupt>
+ <groupName>TEMP</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start temperature measurement</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop temperature measurement</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DATARDY</name>
+ <description>Temperature measurement complete, data ready</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DATARDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DATARDY</name>
+ <description>Write '1' to enable interrupt for DATARDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DATARDY</name>
+ <description>Write '1' to disable interrupt for DATARDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TEMP</name>
+ <description>Temperature in degC (0.25deg steps)</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>TEMP</name>
+ <description>Temperature in degC (0.25deg steps)</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A0</name>
+ <description>Slope of 1st piece wise linear function</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000326</resetValue>
+ <fields>
+ <field>
+ <name>A0</name>
+ <description>Slope of 1st piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A1</name>
+ <description>Slope of 2nd piece wise linear function</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000348</resetValue>
+ <fields>
+ <field>
+ <name>A1</name>
+ <description>Slope of 2nd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A2</name>
+ <description>Slope of 3rd piece wise linear function</description>
+ <addressOffset>0x528</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000003AA</resetValue>
+ <fields>
+ <field>
+ <name>A2</name>
+ <description>Slope of 3rd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A3</name>
+ <description>Slope of 4th piece wise linear function</description>
+ <addressOffset>0x52C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000040E</resetValue>
+ <fields>
+ <field>
+ <name>A3</name>
+ <description>Slope of 4th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A4</name>
+ <description>Slope of 5th piece wise linear function</description>
+ <addressOffset>0x530</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000004BD</resetValue>
+ <fields>
+ <field>
+ <name>A4</name>
+ <description>Slope of 5th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A5</name>
+ <description>Slope of 6th piece wise linear function</description>
+ <addressOffset>0x534</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000005A3</resetValue>
+ <fields>
+ <field>
+ <name>A5</name>
+ <description>Slope of 6th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>11</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B0</name>
+ <description>y-intercept of 1st piece wise linear function</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00003FEF</resetValue>
+ <fields>
+ <field>
+ <name>B0</name>
+ <description>y-intercept of 1st piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B1</name>
+ <description>y-intercept of 2nd piece wise linear function</description>
+ <addressOffset>0x544</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00003FBE</resetValue>
+ <fields>
+ <field>
+ <name>B1</name>
+ <description>y-intercept of 2nd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B2</name>
+ <description>y-intercept of 3rd piece wise linear function</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00003FBE</resetValue>
+ <fields>
+ <field>
+ <name>B2</name>
+ <description>y-intercept of 3rd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B3</name>
+ <description>y-intercept of 4th piece wise linear function</description>
+ <addressOffset>0x54C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000012</resetValue>
+ <fields>
+ <field>
+ <name>B3</name>
+ <description>y-intercept of 4th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B4</name>
+ <description>y-intercept of 5th piece wise linear function</description>
+ <addressOffset>0x550</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000124</resetValue>
+ <fields>
+ <field>
+ <name>B4</name>
+ <description>y-intercept of 5th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B5</name>
+ <description>y-intercept of 6th piece wise linear function</description>
+ <addressOffset>0x554</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000027C</resetValue>
+ <fields>
+ <field>
+ <name>B5</name>
+ <description>y-intercept of 6th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T0</name>
+ <description>End point of 1st piece wise linear function</description>
+ <addressOffset>0x560</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000000E2</resetValue>
+ <fields>
+ <field>
+ <name>T0</name>
+ <description>End point of 1st piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T1</name>
+ <description>End point of 2nd piece wise linear function</description>
+ <addressOffset>0x564</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>T1</name>
+ <description>End point of 2nd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T2</name>
+ <description>End point of 3rd piece wise linear function</description>
+ <addressOffset>0x568</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000019</resetValue>
+ <fields>
+ <field>
+ <name>T2</name>
+ <description>End point of 3rd piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T3</name>
+ <description>End point of 4th piece wise linear function</description>
+ <addressOffset>0x56C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000003C</resetValue>
+ <fields>
+ <field>
+ <name>T3</name>
+ <description>End point of 4th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>T4</name>
+ <description>End point of 5th piece wise linear function</description>
+ <addressOffset>0x570</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000050</resetValue>
+ <fields>
+ <field>
+ <name>T4</name>
+ <description>End point of 5th piece wise linear function</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>RNG</name>
+ <description>Random Number Generator</description>
+ <baseAddress>0x4000D000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>RNG</name>
+ <value>13</value>
+ </interrupt>
+ <groupName>RNG</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Task starting the random number generator</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Task stopping the random number generator</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_VALRDY</name>
+ <description>Event being generated for every new random number written to the VALUE register</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_VALRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>VALRDY_STOP</name>
+ <description>Shortcut between VALRDY event and STOP task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>VALRDY</name>
+ <description>Write '1' to enable interrupt for VALRDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>VALRDY</name>
+ <description>Write '1' to disable interrupt for VALRDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DERCEN</name>
+ <description>Bias correction</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>VALUE</name>
+ <description>Output random number</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>VALUE</name>
+ <description>Generated random number</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>ECB</name>
+ <description>AES ECB Mode Encryption</description>
+ <baseAddress>0x4000E000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>ECB</name>
+ <value>14</value>
+ </interrupt>
+ <groupName>ECB</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_STARTECB</name>
+ <description>Start ECB block encrypt</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTECB</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOPECB</name>
+ <description>Abort a possible executing ECB operation</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOPECB</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDECB</name>
+ <description>ECB block encrypt complete</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDECB</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERRORECB</name>
+ <description>ECB block encrypt aborted because of a STOPECB task or due to an error</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERRORECB</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDECB</name>
+ <description>Write '1' to enable interrupt for ENDECB event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERRORECB</name>
+ <description>Write '1' to enable interrupt for ERRORECB event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDECB</name>
+ <description>Write '1' to disable interrupt for ENDECB event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERRORECB</name>
+ <description>Write '1' to disable interrupt for ERRORECB event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ECBDATAPTR</name>
+ <description>ECB block encrypt memory pointers</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ECBDATAPTR</name>
+ <description>Pointer to the ECB data structure (see Table 1 ECB data structure overview)</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>AAR</name>
+ <description>Accelerated Address Resolver</description>
+ <baseAddress>0x4000F000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>CCM_AAR</name>
+ <value>15</value>
+ </interrupt>
+ <groupName>AAR</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start resolving addresses based on IRKs specified in the IRK data structure</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop resolving addresses</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>Address resolution procedure complete</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_END</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RESOLVED</name>
+ <description>Address resolved</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RESOLVED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_NOTRESOLVED</name>
+ <description>Address not resolved</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_NOTRESOLVED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Write '1' to enable interrupt for END event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESOLVED</name>
+ <description>Write '1' to enable interrupt for RESOLVED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NOTRESOLVED</name>
+ <description>Write '1' to enable interrupt for NOTRESOLVED event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Write '1' to disable interrupt for END event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESOLVED</name>
+ <description>Write '1' to disable interrupt for RESOLVED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>NOTRESOLVED</name>
+ <description>Write '1' to disable interrupt for NOTRESOLVED event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATUS</name>
+ <description>Resolution status</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>STATUS</name>
+ <description>The IRK that was used last time an address was resolved</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable AAR</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable AAR</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NIRK</name>
+ <description>Number of IRKs</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>NIRK</name>
+ <description>Number of Identity root keys available in the IRK data structure</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IRKPTR</name>
+ <description>Pointer to IRK data structure</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>IRKPTR</name>
+ <description>Pointer to the IRK data structure</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ADDRPTR</name>
+ <description>Pointer to the resolvable address</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ADDRPTR</name>
+ <description>Pointer to the resolvable address (6-bytes)</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to data area used for temporary storage</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to a scratch data area used for temporary storage during resolution.A space of minimum 3 bytes must be reserved.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>CCM</name>
+ <description>AES CCM Mode Encryption</description>
+ <baseAddress>0x4000F000</baseAddress>
+ <alternatePeripheral>AAR</alternatePeripheral>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>CCM_AAR</name>
+ <value>15</value>
+ </interrupt>
+ <groupName>CCM</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_KSGEN</name>
+ <description>Start generation of key-stream. This operation will stop by itself when completed.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_KSGEN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_CRYPT</name>
+ <description>Start encryption/decryption. This operation will stop by itself when completed.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_CRYPT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop encryption/decryption</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RATEOVERRIDE</name>
+ <description>Override DATARATE setting in MODE register with the contents of the RATEOVERRIDE register for any ongoing encryption/decryption</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RATEOVERRIDE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDKSGEN</name>
+ <description>Key-stream generation complete</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDKSGEN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDCRYPT</name>
+ <description>Encrypt/decrypt complete</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDCRYPT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ERROR</name>
+ <description>Deprecated register - CCM error event</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ERROR</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDKSGEN_CRYPT</name>
+ <description>Shortcut between ENDKSGEN event and CRYPT task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDKSGEN</name>
+ <description>Write '1' to enable interrupt for ENDKSGEN event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDCRYPT</name>
+ <description>Write '1' to enable interrupt for ENDCRYPT event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to enable interrupt for ERROR event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENDKSGEN</name>
+ <description>Write '1' to disable interrupt for ENDKSGEN event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDCRYPT</name>
+ <description>Write '1' to disable interrupt for ENDCRYPT event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ERROR</name>
+ <description>Write '1' to disable interrupt for ERROR event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MICSTATUS</name>
+ <description>MIC check result</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>MICSTATUS</name>
+ <description>The result of the MIC check performed during the previous decryption operation</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>CheckFailed</name>
+ <description>MIC check failed</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>CheckPassed</name>
+ <description>MIC check passed</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable CCM</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Operation mode</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>The mode of operation to be used. The settings in this register apply whenever either the KSGEN or CRYPT tasks are triggered.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Encryption</name>
+ <description>AES CCM packet encryption mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Decryption</name>
+ <description>AES CCM packet decryption mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DATARATE</name>
+ <description>Radio data rate that the CCM shall run synchronous with</description>
+ <lsb>16</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>1Mbit</name>
+ <description>1 Mbps</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2Mbit</name>
+ <description>2 Mbps</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>125Kbps</name>
+ <description>125 Kbps</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>500Kbps</name>
+ <description>500 Kbps</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LENGTH</name>
+ <description>Packet length configuration</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>Default length. Effective length of LENGTH field in encrypted/decrypted packet is 5 bits. A key-stream for packet payloads up to 27 bytes will be generated.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Extended</name>
+ <description>Extended length. Effective length of LENGTH field in encrypted/decrypted packet is 8 bits. A key-stream for packet payloads up to MAXPACKETSIZE bytes will be generated.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CNFPTR</name>
+ <description>Pointer to data structure holding AES key and NONCE vector</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CNFPTR</name>
+ <description>Pointer to the data structure holding the AES key and the CCM NONCE vector (see Table 1 CCM data structure overview)</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INPTR</name>
+ <description>Input pointer</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>INPTR</name>
+ <description>Input pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OUTPTR</name>
+ <description>Output pointer</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>OUTPTR</name>
+ <description>Output pointer</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to data area used for temporary storage</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SCRATCHPTR</name>
+ <description>Pointer to a scratch data area used for temporary storage during key-stream generation,
+ MIC generation and encryption/decryption.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXPACKETSIZE</name>
+ <description>Length of key-stream generated when MODE.LENGTH = Extended.</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000000FB</resetValue>
+ <fields>
+ <field>
+ <name>MAXPACKETSIZE</name>
+ <description>Length of key-stream generated when MODE.LENGTH = Extended. This value must be greater or equal to the subsequent packet payload to be encrypted/decrypted.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RATEOVERRIDE</name>
+ <description>Data rate override setting.</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>RATEOVERRIDE</name>
+ <description>Data rate override setting.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>1Mbit</name>
+ <description>1 Mbps</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2Mbit</name>
+ <description>2 Mbps</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>125Kbps</name>
+ <description>125 Kbps</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>500Kbps</name>
+ <description>500 Kbps</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>WDT</name>
+ <description>Watchdog Timer</description>
+ <baseAddress>0x40010000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>WDT</name>
+ <value>16</value>
+ </interrupt>
+ <groupName>WDT</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start the watchdog</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TIMEOUT</name>
+ <description>Watchdog timeout</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TIMEOUT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TIMEOUT</name>
+ <description>Write '1' to enable interrupt for TIMEOUT event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TIMEOUT</name>
+ <description>Write '1' to disable interrupt for TIMEOUT event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RUNSTATUS</name>
+ <description>Run status</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RUNSTATUS</name>
+ <description>Indicates whether or not the watchdog is running</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotRunning</name>
+ <description>Watchdog not running</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Running</name>
+ <description>Watchdog is running</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REQSTATUS</name>
+ <description>Request status</description>
+ <addressOffset>0x404</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>RR0</name>
+ <description>Request status for RR[0] register</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[0] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[0] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR1</name>
+ <description>Request status for RR[1] register</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[1] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[1] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR2</name>
+ <description>Request status for RR[2] register</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[2] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[2] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR3</name>
+ <description>Request status for RR[3] register</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[3] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[3] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR4</name>
+ <description>Request status for RR[4] register</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[4] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[4] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR5</name>
+ <description>Request status for RR[5] register</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[5] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[5] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR6</name>
+ <description>Request status for RR[6] register</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[6] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[6] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR7</name>
+ <description>Request status for RR[7] register</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DisabledOrRequested</name>
+ <description>RR[7] register is not enabled, or are already requesting reload</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>EnabledAndUnrequested</name>
+ <description>RR[7] register is enabled, and are not yet requesting reload</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CRV</name>
+ <description>Counter reload value</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>CRV</name>
+ <description>Counter reload value in number of cycles of the 32.768 kHz clock</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RREN</name>
+ <description>Enable register for reload request registers</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>RR0</name>
+ <description>Enable or disable RR[0] register</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[0] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[0] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR1</name>
+ <description>Enable or disable RR[1] register</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[1] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[1] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR2</name>
+ <description>Enable or disable RR[2] register</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[2] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[2] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR3</name>
+ <description>Enable or disable RR[3] register</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[3] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[3] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR4</name>
+ <description>Enable or disable RR[4] register</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[4] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[4] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR5</name>
+ <description>Enable or disable RR[5] register</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[5] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[5] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR6</name>
+ <description>Enable or disable RR[6] register</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[6] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[6] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RR7</name>
+ <description>Enable or disable RR[7] register</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable RR[7] register</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable RR[7] register</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>SLEEP</name>
+ <description>Configure the watchdog to either be paused, or kept running, while the CPU is sleeping</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Pause</name>
+ <description>Pause watchdog while the CPU is sleeping</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Run</name>
+ <description>Keep the watchdog running while the CPU is sleeping</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>HALT</name>
+ <description>Configure the watchdog to either be paused, or kept running, while the CPU is halted by the debugger</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Pause</name>
+ <description>Pause watchdog while the CPU is halted by the debugger</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Run</name>
+ <description>Keep the watchdog running while the CPU is halted by the debugger</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>RR[%s]</name>
+ <description>Description collection[n]: Reload request n</description>
+ <addressOffset>0x600</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>RR</name>
+ <description>Reload request register</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Reload</name>
+ <description>Value to request a reload of the watchdog timer</description>
+ <value>0x6E524635</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="RTC0">
+ <name>RTC1</name>
+ <description>Real time counter 1</description>
+ <baseAddress>0x40011000</baseAddress>
+ <interrupt>
+ <name>RTC1</name>
+ <value>17</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>QDEC</name>
+ <description>Quadrature Decoder</description>
+ <baseAddress>0x40012000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>QDEC</name>
+ <value>18</value>
+ </interrupt>
+ <groupName>QDEC</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Task starting the quadrature decoder</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Task stopping the quadrature decoder</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_READCLRACC</name>
+ <description>Read and clear ACC and ACCDBL</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_READCLRACC</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RDCLRACC</name>
+ <description>Read and clear ACC</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RDCLRACC</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_RDCLRDBL</name>
+ <description>Read and clear ACCDBL</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_RDCLRDBL</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_SAMPLERDY</name>
+ <description>Event being generated for every new sample value written to the SAMPLE register</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SAMPLERDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_REPORTRDY</name>
+ <description>Non-null report ready</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_REPORTRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ACCOF</name>
+ <description>ACC or ACCDBL register overflow</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ACCOF</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DBLRDY</name>
+ <description>Double displacement(s) detected</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DBLRDY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>QDEC has been stopped</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REPORTRDY_READCLRACC</name>
+ <description>Shortcut between REPORTRDY event and READCLRACC task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SAMPLERDY_STOP</name>
+ <description>Shortcut between SAMPLERDY event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY_RDCLRACC</name>
+ <description>Shortcut between REPORTRDY event and RDCLRACC task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY_STOP</name>
+ <description>Shortcut between REPORTRDY event and STOP task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DBLRDY_RDCLRDBL</name>
+ <description>Shortcut between DBLRDY event and RDCLRDBL task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DBLRDY_STOP</name>
+ <description>Shortcut between DBLRDY event and STOP task</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SAMPLERDY_READCLRACC</name>
+ <description>Shortcut between SAMPLERDY event and READCLRACC task</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SAMPLERDY</name>
+ <description>Write '1' to enable interrupt for SAMPLERDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY</name>
+ <description>Write '1' to enable interrupt for REPORTRDY event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACCOF</name>
+ <description>Write '1' to enable interrupt for ACCOF event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DBLRDY</name>
+ <description>Write '1' to enable interrupt for DBLRDY event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to enable interrupt for STOPPED event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SAMPLERDY</name>
+ <description>Write '1' to disable interrupt for SAMPLERDY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REPORTRDY</name>
+ <description>Write '1' to disable interrupt for REPORTRDY event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ACCOF</name>
+ <description>Write '1' to disable interrupt for ACCOF event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DBLRDY</name>
+ <description>Write '1' to disable interrupt for DBLRDY event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to disable interrupt for STOPPED event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable the quadrature decoder</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable the quadrature decoder</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LEDPOL</name>
+ <description>LED output pin polarity</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LEDPOL</name>
+ <description>LED output pin polarity</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ActiveLow</name>
+ <description>Led active on output pin low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ActiveHigh</name>
+ <description>Led active on output pin high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SAMPLEPER</name>
+ <description>Sample period</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SAMPLEPER</name>
+ <description>Sample period. The SAMPLE register will be updated for every new sample</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>128us</name>
+ <description>128 us</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>256us</name>
+ <description>256 us</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>512us</name>
+ <description>512 us</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1024us</name>
+ <description>1024 us</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2048us</name>
+ <description>2048 us</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>4096us</name>
+ <description>4096 us</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>8192us</name>
+ <description>8192 us</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>16384us</name>
+ <description>16384 us</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32ms</name>
+ <description>32768 us</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>65ms</name>
+ <description>65536 us</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>131ms</name>
+ <description>131072 us</description>
+ <value>10</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SAMPLE</name>
+ <description>Motion sample value</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>SAMPLE</name>
+ <description>Last motion sample</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REPORTPER</name>
+ <description>Number of samples to be taken before REPORTRDY and DBLRDY events can be generated</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REPORTPER</name>
+ <description>Specifies the number of samples to be accumulated in the ACC register before the REPORTRDY and DBLRDY events can be generated</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>10Smpl</name>
+ <description>10 samples / report</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>40Smpl</name>
+ <description>40 samples / report</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>80Smpl</name>
+ <description>80 samples / report</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>120Smpl</name>
+ <description>120 samples / report</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>160Smpl</name>
+ <description>160 samples / report</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>200Smpl</name>
+ <description>200 samples / report</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>240Smpl</name>
+ <description>240 samples / report</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>280Smpl</name>
+ <description>280 samples / report</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1Smpl</name>
+ <description>1 sample / report</description>
+ <value>8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ACC</name>
+ <description>Register accumulating the valid transitions</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>ACC</name>
+ <description>Register accumulating all valid samples (not double transition) read from the SAMPLE register</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ACCREAD</name>
+ <description>Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC task</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-only</access>
+ <dataType>int32_t</dataType>
+ <fields>
+ <field>
+ <name>ACCREAD</name>
+ <description>Snapshot of the ACC register.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>QDEC_PSEL</headerStructName>
+ <addressOffset>0x51C</addressOffset>
+ <register>
+ <name>LED</name>
+ <description>Pin select for LED signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>A</name>
+ <description>Pin select for A signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>B</name>
+ <description>Pin select for B signal</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>DBFEN</name>
+ <description>Enable input debounce filters</description>
+ <addressOffset>0x528</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DBFEN</name>
+ <description>Enable input debounce filters</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Debounce input filters disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Debounce input filters enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LEDPRE</name>
+ <description>Time period the LED is switched ON prior to sampling</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000010</resetValue>
+ <fields>
+ <field>
+ <name>LEDPRE</name>
+ <description>Period in us the LED is switched on prior to sampling</description>
+ <lsb>0</lsb>
+ <msb>8</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ACCDBL</name>
+ <description>Register accumulating the number of detected double transitions</description>
+ <addressOffset>0x544</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>ACCDBL</name>
+ <description>Register accumulating the number of detected double or illegal transitions. ( SAMPLE = 2 ).</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ACCDBLREAD</name>
+ <description>Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL task</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>ACCDBLREAD</name>
+ <description>Snapshot of the ACCDBL register. This field is updated when the READCLRACC or RDCLRDBL task is triggered.</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>COMP</name>
+ <description>Comparator</description>
+ <baseAddress>0x40013000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>COMP_LPCOMP</name>
+ <value>19</value>
+ </interrupt>
+ <groupName>COMP</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start comparator</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop comparator</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SAMPLE</name>
+ <description>Sample comparator value</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SAMPLE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>COMP is ready and output is valid</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_READY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DOWN</name>
+ <description>Downward crossing</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DOWN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_UP</name>
+ <description>Upward crossing</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_UP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CROSS</name>
+ <description>Downward or upward crossing</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CROSS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY_SAMPLE</name>
+ <description>Shortcut between READY event and SAMPLE task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READY_STOP</name>
+ <description>Shortcut between READY event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN_STOP</name>
+ <description>Shortcut between DOWN event and STOP task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP_STOP</name>
+ <description>Shortcut between UP event and STOP task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS_STOP</name>
+ <description>Shortcut between CROSS event and STOP task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Enable or disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Enable or disable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Enable or disable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Enable or disable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to enable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Write '1' to enable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Write '1' to enable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Write '1' to enable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Write '1' to disable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Write '1' to disable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Write '1' to disable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RESULT</name>
+ <description>Compare result</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RESULT</name>
+ <description>Result of last compare. Decision point SAMPLE task.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Below</name>
+ <description>Input voltage is below the threshold (VIN+ &amp;lt; VIN-)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Above</name>
+ <description>Input voltage is above the threshold (VIN+ &amp;gt; VIN-)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>COMP enable</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable COMP</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSEL</name>
+ <description>Pin select</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PSEL</name>
+ <description>Analog pin select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>AIN0 selected as analog input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>AIN1 selected as analog input</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>AIN2 selected as analog input</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>AIN3 selected as analog input</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>AIN4 selected as analog input</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>AIN5 selected as analog input</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>AIN6 selected as analog input</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput7</name>
+ <description>AIN7 selected as analog input</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REFSEL</name>
+ <description>Reference source select for single-ended mode</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000004</resetValue>
+ <fields>
+ <field>
+ <name>REFSEL</name>
+ <description>Reference select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Int1V2</name>
+ <description>VREF = internal 1.2 V reference (VDD &amp;gt;= 1.7 V)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Int1V8</name>
+ <description>VREF = internal 1.8 V reference (VDD &amp;gt;= VREF + 0.2 V)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Int2V4</name>
+ <description>VREF = internal 2.4 V reference (VDD &amp;gt;= VREF + 0.2 V)</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>VDD</name>
+ <description>VREF = VDD</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ARef</name>
+ <description>VREF = AREF (VDD &amp;gt;= VREF &amp;gt;= AREFMIN)</description>
+ <value>5</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EXTREFSEL</name>
+ <description>External reference select</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EXTREFSEL</name>
+ <description>External analog reference select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogReference0</name>
+ <description>Use AIN0 as external analog reference</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference1</name>
+ <description>Use AIN1 as external analog reference</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference2</name>
+ <description>Use AIN2 as external analog reference</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference3</name>
+ <description>Use AIN3 as external analog reference</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference4</name>
+ <description>Use AIN4 as external analog reference</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference5</name>
+ <description>Use AIN5 as external analog reference</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference6</name>
+ <description>Use AIN6 as external analog reference</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference7</name>
+ <description>Use AIN7 as external analog reference</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TH</name>
+ <description>Threshold configuration for hysteresis unit</description>
+ <addressOffset>0x530</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>THDOWN</name>
+ <description>VDOWN = (THDOWN+1)/64*VREF</description>
+ <lsb>0</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>THUP</name>
+ <description>VUP = (THUP+1)/64*VREF</description>
+ <lsb>8</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Mode configuration</description>
+ <addressOffset>0x534</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SP</name>
+ <description>Speed and power modes</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Low-power mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Normal</name>
+ <description>Normal mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>High-speed mode</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>MAIN</name>
+ <description>Main operation modes</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>SE</name>
+ <description>Single-ended mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Diff</name>
+ <description>Differential mode</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HYST</name>
+ <description>Comparator hysteresis enable</description>
+ <addressOffset>0x538</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HYST</name>
+ <description>Comparator hysteresis</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoHyst</name>
+ <description>Comparator hysteresis disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Hyst50mV</name>
+ <description>Comparator hysteresis enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>LPCOMP</name>
+ <description>Low Power Comparator</description>
+ <baseAddress>0x40013000</baseAddress>
+ <alternatePeripheral>COMP</alternatePeripheral>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>COMP_LPCOMP</name>
+ <value>19</value>
+ </interrupt>
+ <groupName>LPCOMP</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Start comparator</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stop comparator</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_SAMPLE</name>
+ <description>Sample comparator value</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SAMPLE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>LPCOMP is ready and output is valid</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_READY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_DOWN</name>
+ <description>Downward crossing</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_DOWN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_UP</name>
+ <description>Upward crossing</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_UP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_CROSS</name>
+ <description>Downward or upward crossing</description>
+ <addressOffset>0x10C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_CROSS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY_SAMPLE</name>
+ <description>Shortcut between READY event and SAMPLE task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READY_STOP</name>
+ <description>Shortcut between READY event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN_STOP</name>
+ <description>Shortcut between DOWN event and STOP task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP_STOP</name>
+ <description>Shortcut between UP event and STOP task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS_STOP</name>
+ <description>Shortcut between CROSS event and STOP task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to enable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Write '1' to enable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Write '1' to enable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Write '1' to enable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DOWN</name>
+ <description>Write '1' to disable interrupt for DOWN event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>UP</name>
+ <description>Write '1' to disable interrupt for UP event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CROSS</name>
+ <description>Write '1' to disable interrupt for CROSS event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RESULT</name>
+ <description>Compare result</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>RESULT</name>
+ <description>Result of last compare. Decision point SAMPLE task.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Below</name>
+ <description>Input voltage is below the reference threshold (VIN+ &amp;lt; VIN-).</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Above</name>
+ <description>Input voltage is above the reference threshold (VIN+ &amp;gt; VIN-).</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable LPCOMP</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable LPCOMP</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PSEL</name>
+ <description>Input pin select</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PSEL</name>
+ <description>Analog pin select</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogInput0</name>
+ <description>AIN0 selected as analog input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput1</name>
+ <description>AIN1 selected as analog input</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput2</name>
+ <description>AIN2 selected as analog input</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput3</name>
+ <description>AIN3 selected as analog input</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput4</name>
+ <description>AIN4 selected as analog input</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput5</name>
+ <description>AIN5 selected as analog input</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput6</name>
+ <description>AIN6 selected as analog input</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogInput7</name>
+ <description>AIN7 selected as analog input</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REFSEL</name>
+ <description>Reference select</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000004</resetValue>
+ <fields>
+ <field>
+ <name>REFSEL</name>
+ <description>Reference select</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Ref1_8Vdd</name>
+ <description>VDD * 1/8 selected as reference</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref2_8Vdd</name>
+ <description>VDD * 2/8 selected as reference</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref3_8Vdd</name>
+ <description>VDD * 3/8 selected as reference</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref4_8Vdd</name>
+ <description>VDD * 4/8 selected as reference</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref5_8Vdd</name>
+ <description>VDD * 5/8 selected as reference</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref6_8Vdd</name>
+ <description>VDD * 6/8 selected as reference</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref7_8Vdd</name>
+ <description>VDD * 7/8 selected as reference</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ARef</name>
+ <description>External analog reference selected</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref1_16Vdd</name>
+ <description>VDD * 1/16 selected as reference</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref3_16Vdd</name>
+ <description>VDD * 3/16 selected as reference</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref5_16Vdd</name>
+ <description>VDD * 5/16 selected as reference</description>
+ <value>10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref7_16Vdd</name>
+ <description>VDD * 7/16 selected as reference</description>
+ <value>11</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref9_16Vdd</name>
+ <description>VDD * 9/16 selected as reference</description>
+ <value>12</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref11_16Vdd</name>
+ <description>VDD * 11/16 selected as reference</description>
+ <value>13</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref13_16Vdd</name>
+ <description>VDD * 13/16 selected as reference</description>
+ <value>14</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ref15_16Vdd</name>
+ <description>VDD * 15/16 selected as reference</description>
+ <value>15</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EXTREFSEL</name>
+ <description>External reference select</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EXTREFSEL</name>
+ <description>External analog reference select</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>AnalogReference0</name>
+ <description>Use AIN0 as external analog reference</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>AnalogReference1</name>
+ <description>Use AIN1 as external analog reference</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ANADETECT</name>
+ <description>Analog detect configuration</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ANADETECT</name>
+ <description>Analog detect configuration</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Cross</name>
+ <description>Generate ANADETECT on crossing, both upward crossing and downward crossing</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Up</name>
+ <description>Generate ANADETECT on upward crossing only</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Down</name>
+ <description>Generate ANADETECT on downward crossing only</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HYST</name>
+ <description>Comparator hysteresis enable</description>
+ <addressOffset>0x538</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HYST</name>
+ <description>Comparator hysteresis enable</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Comparator hysteresis disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Comparator hysteresis enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>EGU0</name>
+ <description>Event Generator Unit 0</description>
+ <baseAddress>0x40014000</baseAddress>
+ <headerStructName>EGU</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SWI0_EGU0</name>
+ <value>20</value>
+ </interrupt>
+ <groupName>EGU</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <dim>0x10</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>TASKS_TRIGGER[%s]</name>
+ <description>Description collection[n]: Trigger n for triggering the corresponding TRIGGERED[n] event</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_TRIGGER</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x10</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>EVENTS_TRIGGERED[%s]</name>
+ <description>Description collection[n]: Event number n generated by triggering the corresponding TRIGGER[n] task</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TRIGGERED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TRIGGERED0</name>
+ <description>Enable or disable interrupt for TRIGGERED[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED1</name>
+ <description>Enable or disable interrupt for TRIGGERED[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED2</name>
+ <description>Enable or disable interrupt for TRIGGERED[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED3</name>
+ <description>Enable or disable interrupt for TRIGGERED[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED4</name>
+ <description>Enable or disable interrupt for TRIGGERED[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED5</name>
+ <description>Enable or disable interrupt for TRIGGERED[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED6</name>
+ <description>Enable or disable interrupt for TRIGGERED[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED7</name>
+ <description>Enable or disable interrupt for TRIGGERED[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED8</name>
+ <description>Enable or disable interrupt for TRIGGERED[8] event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED9</name>
+ <description>Enable or disable interrupt for TRIGGERED[9] event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED10</name>
+ <description>Enable or disable interrupt for TRIGGERED[10] event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED11</name>
+ <description>Enable or disable interrupt for TRIGGERED[11] event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED12</name>
+ <description>Enable or disable interrupt for TRIGGERED[12] event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED13</name>
+ <description>Enable or disable interrupt for TRIGGERED[13] event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED14</name>
+ <description>Enable or disable interrupt for TRIGGERED[14] event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED15</name>
+ <description>Enable or disable interrupt for TRIGGERED[15] event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TRIGGERED0</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED1</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED2</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED3</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED4</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED5</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED6</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED7</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED8</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[8] event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED9</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[9] event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED10</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[10] event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED11</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[11] event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED12</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[12] event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED13</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[13] event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED14</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[14] event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED15</name>
+ <description>Write '1' to enable interrupt for TRIGGERED[15] event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TRIGGERED0</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[0] event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED1</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[1] event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED2</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[2] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED3</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[3] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED4</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[4] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED5</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[5] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED6</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[6] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED7</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[7] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED8</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[8] event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED9</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[9] event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED10</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[10] event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED11</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[11] event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED12</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[12] event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED13</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[13] event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED14</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[14] event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TRIGGERED15</name>
+ <description>Write '1' to disable interrupt for TRIGGERED[15] event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>SWI0</name>
+ <description>Software interrupt 0</description>
+ <baseAddress>0x40014000</baseAddress>
+ <alternatePeripheral>EGU0</alternatePeripheral>
+ <headerStructName>SWI</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>SWI0_EGU0</name>
+ <value>20</value>
+ </interrupt>
+ <groupName>SWI</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>UNUSED</name>
+ <description>Unused.</description>
+ <addressOffset>0x000</addressOffset>
+ <resetValue>0x00000000</resetValue>
+ <access>read-only</access>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="EGU0">
+ <name>EGU1</name>
+ <description>Event Generator Unit 1</description>
+ <baseAddress>0x40015000</baseAddress>
+ <interrupt>
+ <name>SWI1_EGU1</name>
+ <value>21</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI1</name>
+ <description>Software interrupt 1</description>
+ <baseAddress>0x40015000</baseAddress>
+ <alternatePeripheral>EGU1</alternatePeripheral>
+ <interrupt>
+ <name>SWI1_EGU1</name>
+ <value>21</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="EGU0">
+ <name>EGU2</name>
+ <description>Event Generator Unit 2</description>
+ <baseAddress>0x40016000</baseAddress>
+ <interrupt>
+ <name>SWI2_EGU2</name>
+ <value>22</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI2</name>
+ <description>Software interrupt 2</description>
+ <baseAddress>0x40016000</baseAddress>
+ <alternatePeripheral>EGU2</alternatePeripheral>
+ <interrupt>
+ <name>SWI2_EGU2</name>
+ <value>22</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="EGU0">
+ <name>EGU3</name>
+ <description>Event Generator Unit 3</description>
+ <baseAddress>0x40017000</baseAddress>
+ <interrupt>
+ <name>SWI3_EGU3</name>
+ <value>23</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI3</name>
+ <description>Software interrupt 3</description>
+ <baseAddress>0x40017000</baseAddress>
+ <alternatePeripheral>EGU3</alternatePeripheral>
+ <interrupt>
+ <name>SWI3_EGU3</name>
+ <value>23</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="EGU0">
+ <name>EGU4</name>
+ <description>Event Generator Unit 4</description>
+ <baseAddress>0x40018000</baseAddress>
+ <interrupt>
+ <name>SWI4_EGU4</name>
+ <value>24</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI4</name>
+ <description>Software interrupt 4</description>
+ <baseAddress>0x40018000</baseAddress>
+ <alternatePeripheral>EGU4</alternatePeripheral>
+ <interrupt>
+ <name>SWI4_EGU4</name>
+ <value>24</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="EGU0">
+ <name>EGU5</name>
+ <description>Event Generator Unit 5</description>
+ <baseAddress>0x40019000</baseAddress>
+ <interrupt>
+ <name>SWI5_EGU5</name>
+ <value>25</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SWI0">
+ <name>SWI5</name>
+ <description>Software interrupt 5</description>
+ <baseAddress>0x40019000</baseAddress>
+ <alternatePeripheral>EGU5</alternatePeripheral>
+ <interrupt>
+ <name>SWI5_EGU5</name>
+ <value>25</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TIMER0">
+ <name>TIMER3</name>
+ <description>Timer/Counter 3</description>
+ <baseAddress>0x4001A000</baseAddress>
+ <interrupt>
+ <name>TIMER3</name>
+ <value>26</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="TIMER0">
+ <name>TIMER4</name>
+ <description>Timer/Counter 4</description>
+ <baseAddress>0x4001B000</baseAddress>
+ <interrupt>
+ <name>TIMER4</name>
+ <value>27</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>PWM0</name>
+ <description>Pulse width modulation unit 0</description>
+ <baseAddress>0x4001C000</baseAddress>
+ <headerStructName>PWM</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>PWM0</name>
+ <value>28</value>
+ </interrupt>
+ <groupName>PWM</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x2</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>TASKS_SEQSTART[%s]</name>
+ <description>Description collection[n]: Loads the first PWM value on all enabled channels from sequence n, and starts playing that sequence at the rate defined in SEQ[n]REFRESH and/or DECODER.MODE. Causes PWM generation to start if not running.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_SEQSTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_NEXTSTEP</name>
+ <description>Steps by one value in the current sequence on all enabled channels if DECODER.MODE=NextStep. Does not cause PWM generation to start if not running.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_NEXTSTEP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>Response to STOP task, emitted when PWM pulses are no longer generated</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x2</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>EVENTS_SEQSTARTED[%s]</name>
+ <description>Description collection[n]: First PWM period started on sequence n</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SEQSTARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x2</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>EVENTS_SEQEND[%s]</name>
+ <description>Description collection[n]: Emitted at end of every sequence n, when last value from RAM has been applied to wave counter</description>
+ <addressOffset>0x110</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SEQEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_PWMPERIODEND</name>
+ <description>Emitted at the end of each PWM period</description>
+ <addressOffset>0x118</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_PWMPERIODEND</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_LOOPSDONE</name>
+ <description>Concatenated sequences have been played the amount of times defined in LOOP.CNT</description>
+ <addressOffset>0x11C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_LOOPSDONE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SEQEND0_STOP</name>
+ <description>Shortcut between SEQEND[0] event and STOP task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND1_STOP</name>
+ <description>Shortcut between SEQEND[1] event and STOP task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE_SEQSTART0</name>
+ <description>Shortcut between LOOPSDONE event and SEQSTART[0] task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE_SEQSTART1</name>
+ <description>Shortcut between LOOPSDONE event and SEQSTART[1] task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE_STOP</name>
+ <description>Shortcut between LOOPSDONE event and STOP task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED0</name>
+ <description>Enable or disable interrupt for SEQSTARTED[0] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED1</name>
+ <description>Enable or disable interrupt for SEQSTARTED[1] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND0</name>
+ <description>Enable or disable interrupt for SEQEND[0] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND1</name>
+ <description>Enable or disable interrupt for SEQEND[1] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PWMPERIODEND</name>
+ <description>Enable or disable interrupt for PWMPERIODEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE</name>
+ <description>Enable or disable interrupt for LOOPSDONE event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED0</name>
+ <description>Write '1' to enable interrupt for SEQSTARTED[0] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED1</name>
+ <description>Write '1' to enable interrupt for SEQSTARTED[1] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND0</name>
+ <description>Write '1' to enable interrupt for SEQEND[0] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND1</name>
+ <description>Write '1' to enable interrupt for SEQEND[1] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PWMPERIODEND</name>
+ <description>Write '1' to enable interrupt for PWMPERIODEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE</name>
+ <description>Write '1' to enable interrupt for LOOPSDONE event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED0</name>
+ <description>Write '1' to disable interrupt for SEQSTARTED[0] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQSTARTED1</name>
+ <description>Write '1' to disable interrupt for SEQSTARTED[1] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND0</name>
+ <description>Write '1' to disable interrupt for SEQEND[0] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SEQEND1</name>
+ <description>Write '1' to disable interrupt for SEQEND[1] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PWMPERIODEND</name>
+ <description>Write '1' to disable interrupt for PWMPERIODEND event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LOOPSDONE</name>
+ <description>Write '1' to disable interrupt for LOOPSDONE event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>PWM module enable register</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable PWM module</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Selects operating mode of the wave counter</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>UPDOWN</name>
+ <description>Selects up mode or up-and-down mode for the counter</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Up</name>
+ <description>Up counter, edge-aligned PWM duty cycle</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>UpAndDown</name>
+ <description>Up and down counter, center-aligned PWM duty cycle</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>COUNTERTOP</name>
+ <description>Value up to which the pulse generator counter counts</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000003FF</resetValue>
+ <fields>
+ <field>
+ <name>COUNTERTOP</name>
+ <description>Value up to which the pulse generator counter counts. This register is ignored when DECODER.MODE=WaveForm and only values from RAM are used.</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PRESCALER</name>
+ <description>Configuration for PWM_CLK</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PRESCALER</name>
+ <description>Prescaler of PWM_CLK</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>DIV_1</name>
+ <description>Divide by 1 (16 MHz)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_2</name>
+ <description>Divide by 2 (8 MHz)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_4</name>
+ <description>Divide by 4 (4 MHz)</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_8</name>
+ <description>Divide by 8 (2 MHz)</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_16</name>
+ <description>Divide by 16 (1 MHz)</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_32</name>
+ <description>Divide by 32 (500 kHz)</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_64</name>
+ <description>Divide by 64 (250 kHz)</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DIV_128</name>
+ <description>Divide by 128 (125 kHz)</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DECODER</name>
+ <description>Configuration of the decoder</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>LOAD</name>
+ <description>How a sequence is read from RAM and spread to the compare register</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Common</name>
+ <description>1st half word (16-bit) used in all PWM channels 0..3</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Grouped</name>
+ <description>1st half word (16-bit) used in channel 0..1; 2nd word in channel 2..3</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Individual</name>
+ <description>1st half word (16-bit) in ch.0; 2nd in ch.1; ...; 4th in ch.3</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>WaveForm</name>
+ <description>1st half word (16-bit) in ch.0; 2nd in ch.1; ...; 4th in COUNTERTOP</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>MODE</name>
+ <description>Selects source for advancing the active sequence</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>RefreshCount</name>
+ <description>SEQ[n].REFRESH is used to determine loading internal compare registers</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>NextStep</name>
+ <description>NEXTSTEP task causes a new value to be loaded to internal compare registers</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LOOP</name>
+ <description>Number of playbacks of a loop</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Number of playbacks of pattern cycles</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Looping disabled (stop at the end of the sequence)</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>2</dim>
+ <dimIncrement>0x020</dimIncrement>
+ <name>SEQ[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>PWM_SEQ</headerStructName>
+ <addressOffset>0x520</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Description cluster[n]: Beginning address in RAM of this sequence</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Beginning address in RAM of this sequence</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CNT</name>
+ <description>Description cluster[n]: Number of values (duty cycles) in this sequence</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Number of values (duty cycles) in this sequence</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Sequence is disabled, and shall not be started as it is empty</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REFRESH</name>
+ <description>Description cluster[n]: Number of additional PWM periods between samples loaded into compare register</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Number of additional PWM periods between samples loaded into compare register (load every REFRESH.CNT+1 PWM periods)</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Continuous</name>
+ <description>Update every PWM period</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENDDELAY</name>
+ <description>Description cluster[n]: Time added after the sequence</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Time added after the sequence in PWM periods</description>
+ <lsb>0</lsb>
+ <msb>23</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>PWM_PSEL</headerStructName>
+ <addressOffset>0x560</addressOffset>
+ <register>
+ <dim>0x4</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>OUT[%s]</name>
+ <description>Description collection[n]: Output pin select for PWM channel n</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>PDM</name>
+ <description>Pulse Density Modulation (Digital Microphone) Interface</description>
+ <baseAddress>0x4001D000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>PDM</name>
+ <value>29</value>
+ </interrupt>
+ <groupName>PDM</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Starts continuous PDM transfer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stops PDM transfer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STARTED</name>
+ <description>PDM transfer has started</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>PDM transfer has finished</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_END</name>
+ <description>The PDM has written the last sample specified by SAMPLE.MAXCNT (or the last sample after a STOP task has been received) to Data RAM</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_END</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Enable or disable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Enable or disable interrupt for END event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to enable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to enable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to enable interrupt for END event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to disable interrupt for STARTED event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to disable interrupt for STOPPED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>END</name>
+ <description>Write '1' to disable interrupt for END event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>PDM module enable register</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable PDM module</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PDMCLKCTRL</name>
+ <description>PDM clock generator control</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x08400000</resetValue>
+ <fields>
+ <field>
+ <name>FREQ</name>
+ <description>PDM_CLK frequency</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>1000K</name>
+ <description>PDM_CLK = 32 MHz / 32 = 1.000 MHz</description>
+ <value>0x08000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>PDM_CLK = 32 MHz / 31 = 1.032 MHz. Nominal clock for RATIO=Ratio64.</description>
+ <value>0x08400000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1067K</name>
+ <description>PDM_CLK = 32 MHz / 30 = 1.067 MHz</description>
+ <value>0x08800000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1231K</name>
+ <description>PDM_CLK = 32 MHz / 26 = 1.231 MHz</description>
+ <value>0x09800000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1280K</name>
+ <description>PDM_CLK = 32 MHz / 25 = 1.280 MHz. Nominal clock for RATIO=Ratio80.</description>
+ <value>0x0A000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>1333K</name>
+ <description>PDM_CLK = 32 MHz / 24 = 1.333 MHz</description>
+ <value>0x0A800000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MODE</name>
+ <description>Defines the routing of the connected PDM microphones' signals</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>OPERATION</name>
+ <description>Mono or stereo operation</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Stereo</name>
+ <description>Sample and store one pair (Left + Right) of 16bit samples per RAM word R=[31:16]; L=[15:0]</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Mono</name>
+ <description>Sample and store two successive Left samples (16 bit each) per RAM word L1=[31:16]; L0=[15:0]</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EDGE</name>
+ <description>Defines on which PDM_CLK edge Left (or mono) is sampled</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>LeftFalling</name>
+ <description>Left (or mono) is sampled on falling edge of PDM_CLK</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LeftRising</name>
+ <description>Left (or mono) is sampled on rising edge of PDM_CLK</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>GAINL</name>
+ <description>Left output gain adjustment</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000028</resetValue>
+ <fields>
+ <field>
+ <name>GAINL</name>
+ <description>Left output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters) 0x00 -20 dB gain adjust 0x01 -19.5 dB gain adjust (...) 0x27 -0.5 dB gain adjust 0x28 0 dB gain adjust 0x29 +0.5 dB gain adjust (...) 0x4F +19.5 dB gain adjust 0x50 +20 dB gain adjust</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MinGain</name>
+ <description>-20dB gain adjustment (minimum)</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DefaultGain</name>
+ <description>0dB gain adjustment</description>
+ <value>0x28</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>MaxGain</name>
+ <description>+20dB gain adjustment (maximum)</description>
+ <value>0x50</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>GAINR</name>
+ <description>Right output gain adjustment</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000028</resetValue>
+ <fields>
+ <field>
+ <name>GAINR</name>
+ <description>Right output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters)</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MinGain</name>
+ <description>-20dB gain adjustment (minimum)</description>
+ <value>0x00</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DefaultGain</name>
+ <description>0dB gain adjustment</description>
+ <value>0x28</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>MaxGain</name>
+ <description>+20dB gain adjustment (maximum)</description>
+ <value>0x50</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RATIO</name>
+ <description>Selects the ratio between PDM_CLK and output sample rate. Change PDMCLKCTRL accordingly.</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>RATIO</name>
+ <description>Selects the ratio between PDM_CLK and output sample rate</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Ratio64</name>
+ <description>Ratio of 64</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ratio80</name>
+ <description>Ratio of 80</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>PDM_PSEL</headerStructName>
+ <addressOffset>0x540</addressOffset>
+ <register>
+ <name>CLK</name>
+ <description>Pin number configuration for PDM CLK signal</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIN</name>
+ <description>Pin number configuration for PDM DIN signal</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>SAMPLE</name>
+ <description>Unspecified</description>
+ <headerStructName>PDM_SAMPLE</headerStructName>
+ <addressOffset>0x560</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>RAM address pointer to write samples to with EasyDMA</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SAMPLEPTR</name>
+ <description>Address to write PDM samples to over DMA</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Number of samples to allocate memory for in EasyDMA mode</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BUFFSIZE</name>
+ <description>Length of DMA RAM allocation in number of samples</description>
+ <lsb>0</lsb>
+ <msb>14</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>ACL</name>
+ <description>Access control lists</description>
+ <baseAddress>0x4001E000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <groupName>ACL</groupName>
+ <size>0x20</size>
+ <registers>
+ <cluster>
+ <dim>8</dim>
+ <dimIncrement>0x010</dimIncrement>
+ <name>ACL[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>ACL_ACL</headerStructName>
+ <addressOffset>0x800</addressOffset>
+ <register>
+ <name>ADDR</name>
+ <description>Description cluster[n]: Configure the word-aligned start address of region n to protect</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>ADDR</name>
+ <description>Valid word-aligned start address of region n to protect. Address must point to a flash page boundary.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SIZE</name>
+ <description>Description cluster[n]: Size of region to protect counting from address ACL[n].ADDR. Write '0' as no effect.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>SIZE</name>
+ <description>Size of flash region n in bytes. Must be a multiple of the flash page size, and the maximum region size is limited to 512kB.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>PERM</name>
+ <description>Description cluster[n]: Access permissions for region n as defined by start address ACL[n].ADDR and size ACL[n].SIZE</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>WRITE</name>
+ <description>Configure write and erase permissions for region n. Write '0' has no effect.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Allow write and erase instructions to region n</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Block write and erase instructions to region n</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READ</name>
+ <description>Configure read permissions for region n. Write '0' has no effect.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Allow read instructions to region n</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Block read instructions to region n</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>UNUSED0</name>
+ <description>Unspecified</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>NVMC</name>
+ <description>Non Volatile Memory Controller</description>
+ <baseAddress>0x4001E000</baseAddress>
+ <alternatePeripheral>ACL</alternatePeripheral>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <groupName>NVMC</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>READY</name>
+ <description>Ready flag</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>NVMC is ready or busy</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Busy</name>
+ <description>NVMC is busy (on-going write or erase operation)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ready</name>
+ <description>NVMC is ready</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>READYNEXT</name>
+ <description>Ready flag</description>
+ <addressOffset>0x408</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>READYNEXT</name>
+ <description>NVMC can accept a new write operation</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Busy</name>
+ <description>NVMC cannot accept any write operation</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ready</name>
+ <description>NVMC is ready</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CONFIG</name>
+ <description>Configuration register</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>WEN</name>
+ <description>Program memory access mode. It is strongly recommended to only activate erase and write modes when they are actively used. Enabling write or erase will invalidate the cache and keep it invalidated.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Ren</name>
+ <description>Read only access</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Wen</name>
+ <description>Write enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Een</name>
+ <description>Erase enabled</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEPAGE</name>
+ <description>Register for erasing a page in code area</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEPAGE</name>
+ <description>Register for starting erase of a page in code area</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEPCR1</name>
+ <description>Deprecated register - Register for erasing a page in code area. Equivalent to ERASEPAGE.</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <alternateRegister>ERASEPAGE</alternateRegister>
+ <fields>
+ <field>
+ <name>ERASEPCR1</name>
+ <description>Register for erasing a page in code area. Equivalent to ERASEPAGE.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEALL</name>
+ <description>Register for erasing all non-volatile user memory</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEALL</name>
+ <description>Erase all non-volatile memory including UICR registers. Note that the erase must be enabled using CONFIG.WEN before the non-volatile memory can be erased.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoOperation</name>
+ <description>No operation</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Erase</name>
+ <description>Start chip erase</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEPCR0</name>
+ <description>Deprecated register - Register for erasing a page in code area. Equivalent to ERASEPAGE.</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEPCR0</name>
+ <description>Register for starting erase of a page in code area. Equivalent to ERASEPAGE.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEUICR</name>
+ <description>Register for erasing user information configuration registers</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEUICR</name>
+ <description>Register starting erase of all user information configuration registers. Note that the erase must be enabled using CONFIG.WEN before the UICR can be erased.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoOperation</name>
+ <description>No operation</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Erase</name>
+ <description>Start erase of UICR</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEPAGEPARTIAL</name>
+ <description>Register for partial erase of a page in code area</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ERASEPAGEPARTIAL</name>
+ <description>Register for starting partial erase of a page in code area</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ERASEPAGEPARTIALCFG</name>
+ <description>Register for partial erase configuration</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x0000000A</resetValue>
+ <fields>
+ <field>
+ <name>DURATION</name>
+ <description>Duration of the partial erase in milliseconds</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ICACHECNF</name>
+ <description>I-code cache configuration register.</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CACHEEN</name>
+ <description>Cache enable</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable cache. Invalidates all cache entries.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable cache</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CACHEPROFEN</name>
+ <description>Cache profiling enable</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable cache profiling</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable cache profiling</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IHIT</name>
+ <description>I-code cache hit counter.</description>
+ <addressOffset>0x548</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>HITS</name>
+ <description>Number of cache hits</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IMISS</name>
+ <description>I-code cache miss counter.</description>
+ <addressOffset>0x54C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MISSES</name>
+ <description>Number of cache misses</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>PPI</name>
+ <description>Programmable Peripheral Interconnect</description>
+ <baseAddress>0x4001F000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <groupName>PPI</groupName>
+ <size>0x20</size>
+ <registers>
+ <cluster>
+ <dim>6</dim>
+ <dimIncrement>0x008</dimIncrement>
+ <name>TASKS_CHG[%s]</name>
+ <description>Channel group tasks</description>
+ <headerStructName>PPI_TASKS_CHG</headerStructName>
+ <addressOffset>0x000</addressOffset>
+ <register>
+ <name>EN</name>
+ <description>Description cluster[n]: Enable channel group n</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>EN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIS</name>
+ <description>Description cluster[n]: Disable channel group n</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>DIS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>CHEN</name>
+ <description>Channel enable register</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Enable or disable channel 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Enable or disable channel 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Enable or disable channel 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Enable or disable channel 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Enable or disable channel 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Enable or disable channel 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Enable or disable channel 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Enable or disable channel 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Enable or disable channel 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Enable or disable channel 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Enable or disable channel 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Enable or disable channel 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Enable or disable channel 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Enable or disable channel 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Enable or disable channel 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Enable or disable channel 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH16</name>
+ <description>Enable or disable channel 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH17</name>
+ <description>Enable or disable channel 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH18</name>
+ <description>Enable or disable channel 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH19</name>
+ <description>Enable or disable channel 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Enable or disable channel 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Enable or disable channel 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Enable or disable channel 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Enable or disable channel 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Enable or disable channel 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Enable or disable channel 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Enable or disable channel 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Enable or disable channel 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Enable or disable channel 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Enable or disable channel 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Enable or disable channel 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Enable or disable channel 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable channel</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CHENSET</name>
+ <description>Channel enable set register</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToSet</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Channel 0 enable set register. Writing '0' has no effect</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Channel 1 enable set register. Writing '0' has no effect</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Channel 2 enable set register. Writing '0' has no effect</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Channel 3 enable set register. Writing '0' has no effect</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Channel 4 enable set register. Writing '0' has no effect</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Channel 5 enable set register. Writing '0' has no effect</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Channel 6 enable set register. Writing '0' has no effect</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Channel 7 enable set register. Writing '0' has no effect</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Channel 8 enable set register. Writing '0' has no effect</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Channel 9 enable set register. Writing '0' has no effect</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Channel 10 enable set register. Writing '0' has no effect</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Channel 11 enable set register. Writing '0' has no effect</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Channel 12 enable set register. Writing '0' has no effect</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Channel 13 enable set register. Writing '0' has no effect</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Channel 14 enable set register. Writing '0' has no effect</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Channel 15 enable set register. Writing '0' has no effect</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH16</name>
+ <description>Channel 16 enable set register. Writing '0' has no effect</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH17</name>
+ <description>Channel 17 enable set register. Writing '0' has no effect</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH18</name>
+ <description>Channel 18 enable set register. Writing '0' has no effect</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH19</name>
+ <description>Channel 19 enable set register. Writing '0' has no effect</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Channel 20 enable set register. Writing '0' has no effect</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Channel 21 enable set register. Writing '0' has no effect</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Channel 22 enable set register. Writing '0' has no effect</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Channel 23 enable set register. Writing '0' has no effect</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Channel 24 enable set register. Writing '0' has no effect</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Channel 25 enable set register. Writing '0' has no effect</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Channel 26 enable set register. Writing '0' has no effect</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Channel 27 enable set register. Writing '0' has no effect</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Channel 28 enable set register. Writing '0' has no effect</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Channel 29 enable set register. Writing '0' has no effect</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Channel 30 enable set register. Writing '0' has no effect</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Channel 31 enable set register. Writing '0' has no effect</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: Enable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CHENCLR</name>
+ <description>Channel enable clear register</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Channel 0 enable clear register. Writing '0' has no effect</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Channel 1 enable clear register. Writing '0' has no effect</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Channel 2 enable clear register. Writing '0' has no effect</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Channel 3 enable clear register. Writing '0' has no effect</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Channel 4 enable clear register. Writing '0' has no effect</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Channel 5 enable clear register. Writing '0' has no effect</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Channel 6 enable clear register. Writing '0' has no effect</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Channel 7 enable clear register. Writing '0' has no effect</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Channel 8 enable clear register. Writing '0' has no effect</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Channel 9 enable clear register. Writing '0' has no effect</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Channel 10 enable clear register. Writing '0' has no effect</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Channel 11 enable clear register. Writing '0' has no effect</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Channel 12 enable clear register. Writing '0' has no effect</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Channel 13 enable clear register. Writing '0' has no effect</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Channel 14 enable clear register. Writing '0' has no effect</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Channel 15 enable clear register. Writing '0' has no effect</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH16</name>
+ <description>Channel 16 enable clear register. Writing '0' has no effect</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH17</name>
+ <description>Channel 17 enable clear register. Writing '0' has no effect</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH18</name>
+ <description>Channel 18 enable clear register. Writing '0' has no effect</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH19</name>
+ <description>Channel 19 enable clear register. Writing '0' has no effect</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Channel 20 enable clear register. Writing '0' has no effect</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Channel 21 enable clear register. Writing '0' has no effect</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Channel 22 enable clear register. Writing '0' has no effect</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Channel 23 enable clear register. Writing '0' has no effect</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Channel 24 enable clear register. Writing '0' has no effect</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Channel 25 enable clear register. Writing '0' has no effect</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Channel 26 enable clear register. Writing '0' has no effect</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Channel 27 enable clear register. Writing '0' has no effect</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Channel 28 enable clear register. Writing '0' has no effect</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Channel 29 enable clear register. Writing '0' has no effect</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Channel 30 enable clear register. Writing '0' has no effect</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Channel 31 enable clear register. Writing '0' has no effect</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: channel disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: channel enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: disable channel</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>20</dim>
+ <dimIncrement>0x008</dimIncrement>
+ <name>CH[%s]</name>
+ <description>PPI Channel</description>
+ <headerStructName>PPI_CH</headerStructName>
+ <addressOffset>0x510</addressOffset>
+ <register>
+ <name>EEP</name>
+ <description>Description cluster[n]: Channel n event end-point</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EEP</name>
+ <description>Pointer to event register. Accepts only addresses to registers from the Event group.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TEP</name>
+ <description>Description cluster[n]: Channel n task end-point</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TEP</name>
+ <description>Pointer to task register. Accepts only addresses to registers from the Task group.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <dim>0x6</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>CHG[%s]</name>
+ <description>Description collection[n]: Channel group n</description>
+ <addressOffset>0x800</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CH0</name>
+ <description>Include or exclude channel 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH1</name>
+ <description>Include or exclude channel 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH2</name>
+ <description>Include or exclude channel 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH3</name>
+ <description>Include or exclude channel 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH4</name>
+ <description>Include or exclude channel 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH5</name>
+ <description>Include or exclude channel 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH6</name>
+ <description>Include or exclude channel 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH7</name>
+ <description>Include or exclude channel 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH8</name>
+ <description>Include or exclude channel 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH9</name>
+ <description>Include or exclude channel 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH10</name>
+ <description>Include or exclude channel 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH11</name>
+ <description>Include or exclude channel 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH12</name>
+ <description>Include or exclude channel 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH13</name>
+ <description>Include or exclude channel 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH14</name>
+ <description>Include or exclude channel 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH15</name>
+ <description>Include or exclude channel 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH16</name>
+ <description>Include or exclude channel 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH17</name>
+ <description>Include or exclude channel 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH18</name>
+ <description>Include or exclude channel 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH19</name>
+ <description>Include or exclude channel 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH20</name>
+ <description>Include or exclude channel 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH21</name>
+ <description>Include or exclude channel 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH22</name>
+ <description>Include or exclude channel 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH23</name>
+ <description>Include or exclude channel 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH24</name>
+ <description>Include or exclude channel 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH25</name>
+ <description>Include or exclude channel 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH26</name>
+ <description>Include or exclude channel 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH27</name>
+ <description>Include or exclude channel 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH28</name>
+ <description>Include or exclude channel 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH29</name>
+ <description>Include or exclude channel 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH30</name>
+ <description>Include or exclude channel 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>CH31</name>
+ <description>Include or exclude channel 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Excluded</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Included</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>32</dim>
+ <dimIncrement>0x004</dimIncrement>
+ <name>FORK[%s]</name>
+ <description>Fork</description>
+ <headerStructName>PPI_FORK</headerStructName>
+ <addressOffset>0x910</addressOffset>
+ <register>
+ <name>TEP</name>
+ <description>Description cluster[n]: Channel n task end-point</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>TEP</name>
+ <description>Pointer to task register</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>MWU</name>
+ <description>Memory Watch Unit</description>
+ <baseAddress>0x40020000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>MWU</name>
+ <value>32</value>
+ </interrupt>
+ <groupName>MWU</groupName>
+ <size>0x20</size>
+ <registers>
+ <cluster>
+ <dim>4</dim>
+ <dimIncrement>0x008</dimIncrement>
+ <name>EVENTS_REGION[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>MWU_EVENTS_REGION</headerStructName>
+ <addressOffset>0x100</addressOffset>
+ <register>
+ <name>WA</name>
+ <description>Description cluster[n]: Write access to region n detected</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>WA</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RA</name>
+ <description>Description cluster[n]: Read access to region n detected</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RA</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <dim>2</dim>
+ <dimIncrement>0x008</dimIncrement>
+ <name>EVENTS_PREGION[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>MWU_EVENTS_PREGION</headerStructName>
+ <addressOffset>0x160</addressOffset>
+ <register>
+ <name>WA</name>
+ <description>Description cluster[n]: Write access to peripheral region n detected</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>WA</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RA</name>
+ <description>Description cluster[n]: Read access to peripheral region n detected</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RA</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0WA</name>
+ <description>Enable or disable interrupt for REGION[0].WA event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION0RA</name>
+ <description>Enable or disable interrupt for REGION[0].RA event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1WA</name>
+ <description>Enable or disable interrupt for REGION[1].WA event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1RA</name>
+ <description>Enable or disable interrupt for REGION[1].RA event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2WA</name>
+ <description>Enable or disable interrupt for REGION[2].WA event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2RA</name>
+ <description>Enable or disable interrupt for REGION[2].RA event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3WA</name>
+ <description>Enable or disable interrupt for REGION[3].WA event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3RA</name>
+ <description>Enable or disable interrupt for REGION[3].RA event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0WA</name>
+ <description>Enable or disable interrupt for PREGION[0].WA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0RA</name>
+ <description>Enable or disable interrupt for PREGION[0].RA event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1WA</name>
+ <description>Enable or disable interrupt for PREGION[1].WA event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1RA</name>
+ <description>Enable or disable interrupt for PREGION[1].RA event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0WA</name>
+ <description>Write '1' to enable interrupt for REGION[0].WA event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION0RA</name>
+ <description>Write '1' to enable interrupt for REGION[0].RA event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1WA</name>
+ <description>Write '1' to enable interrupt for REGION[1].WA event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1RA</name>
+ <description>Write '1' to enable interrupt for REGION[1].RA event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2WA</name>
+ <description>Write '1' to enable interrupt for REGION[2].WA event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2RA</name>
+ <description>Write '1' to enable interrupt for REGION[2].RA event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3WA</name>
+ <description>Write '1' to enable interrupt for REGION[3].WA event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3RA</name>
+ <description>Write '1' to enable interrupt for REGION[3].RA event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0WA</name>
+ <description>Write '1' to enable interrupt for PREGION[0].WA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0RA</name>
+ <description>Write '1' to enable interrupt for PREGION[0].RA event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1WA</name>
+ <description>Write '1' to enable interrupt for PREGION[1].WA event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1RA</name>
+ <description>Write '1' to enable interrupt for PREGION[1].RA event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0WA</name>
+ <description>Write '1' to disable interrupt for REGION[0].WA event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION0RA</name>
+ <description>Write '1' to disable interrupt for REGION[0].RA event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1WA</name>
+ <description>Write '1' to disable interrupt for REGION[1].WA event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1RA</name>
+ <description>Write '1' to disable interrupt for REGION[1].RA event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2WA</name>
+ <description>Write '1' to disable interrupt for REGION[2].WA event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2RA</name>
+ <description>Write '1' to disable interrupt for REGION[2].RA event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3WA</name>
+ <description>Write '1' to disable interrupt for REGION[3].WA event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3RA</name>
+ <description>Write '1' to disable interrupt for REGION[3].RA event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0WA</name>
+ <description>Write '1' to disable interrupt for PREGION[0].WA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0RA</name>
+ <description>Write '1' to disable interrupt for PREGION[0].RA event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1WA</name>
+ <description>Write '1' to disable interrupt for PREGION[1].WA event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1RA</name>
+ <description>Write '1' to disable interrupt for PREGION[1].RA event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NMIEN</name>
+ <description>Enable or disable non-maskable interrupt</description>
+ <addressOffset>0x320</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0WA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[0].WA event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION0RA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[0].RA event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1WA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[1].WA event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1RA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[1].RA event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2WA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[2].WA event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2RA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[2].RA event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3WA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[3].WA event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3RA</name>
+ <description>Enable or disable non-maskable interrupt for REGION[3].RA event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0WA</name>
+ <description>Enable or disable non-maskable interrupt for PREGION[0].WA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0RA</name>
+ <description>Enable or disable non-maskable interrupt for PREGION[0].RA event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1WA</name>
+ <description>Enable or disable non-maskable interrupt for PREGION[1].WA event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1RA</name>
+ <description>Enable or disable non-maskable interrupt for PREGION[1].RA event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NMIENSET</name>
+ <description>Enable non-maskable interrupt</description>
+ <addressOffset>0x324</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0WA</name>
+ <description>Write '1' to enable non-maskable interrupt for REGION[0].WA event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION0RA</name>
+ <description>Write '1' to enable non-maskable interrupt for REGION[0].RA event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1WA</name>
+ <description>Write '1' to enable non-maskable interrupt for REGION[1].WA event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1RA</name>
+ <description>Write '1' to enable non-maskable interrupt for REGION[1].RA event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2WA</name>
+ <description>Write '1' to enable non-maskable interrupt for REGION[2].WA event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2RA</name>
+ <description>Write '1' to enable non-maskable interrupt for REGION[2].RA event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3WA</name>
+ <description>Write '1' to enable non-maskable interrupt for REGION[3].WA event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3RA</name>
+ <description>Write '1' to enable non-maskable interrupt for REGION[3].RA event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0WA</name>
+ <description>Write '1' to enable non-maskable interrupt for PREGION[0].WA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0RA</name>
+ <description>Write '1' to enable non-maskable interrupt for PREGION[0].RA event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1WA</name>
+ <description>Write '1' to enable non-maskable interrupt for PREGION[1].WA event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1RA</name>
+ <description>Write '1' to enable non-maskable interrupt for PREGION[1].RA event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>NMIENCLR</name>
+ <description>Disable non-maskable interrupt</description>
+ <addressOffset>0x328</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>REGION0WA</name>
+ <description>Write '1' to disable non-maskable interrupt for REGION[0].WA event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION0RA</name>
+ <description>Write '1' to disable non-maskable interrupt for REGION[0].RA event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1WA</name>
+ <description>Write '1' to disable non-maskable interrupt for REGION[1].WA event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION1RA</name>
+ <description>Write '1' to disable non-maskable interrupt for REGION[1].RA event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2WA</name>
+ <description>Write '1' to disable non-maskable interrupt for REGION[2].WA event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION2RA</name>
+ <description>Write '1' to disable non-maskable interrupt for REGION[2].RA event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3WA</name>
+ <description>Write '1' to disable non-maskable interrupt for REGION[3].WA event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>REGION3RA</name>
+ <description>Write '1' to disable non-maskable interrupt for REGION[3].RA event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0WA</name>
+ <description>Write '1' to disable non-maskable interrupt for PREGION[0].WA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION0RA</name>
+ <description>Write '1' to disable non-maskable interrupt for PREGION[0].RA event</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1WA</name>
+ <description>Write '1' to disable non-maskable interrupt for PREGION[1].WA event</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PREGION1RA</name>
+ <description>Write '1' to disable non-maskable interrupt for PREGION[1].RA event</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>2</dim>
+ <dimIncrement>0x008</dimIncrement>
+ <name>PERREGION[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>MWU_PERREGION</headerStructName>
+ <addressOffset>0x400</addressOffset>
+ <register>
+ <name>SUBSTATWA</name>
+ <description>Description cluster[n]: Source of event/interrupt in region n, write access detected while corresponding subregion was enabled for watching</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>SR0</name>
+ <description>Subregion 0 in region n (write '1' to clear)</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR1</name>
+ <description>Subregion 1 in region n (write '1' to clear)</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR2</name>
+ <description>Subregion 2 in region n (write '1' to clear)</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR3</name>
+ <description>Subregion 3 in region n (write '1' to clear)</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR4</name>
+ <description>Subregion 4 in region n (write '1' to clear)</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR5</name>
+ <description>Subregion 5 in region n (write '1' to clear)</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR6</name>
+ <description>Subregion 6 in region n (write '1' to clear)</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR7</name>
+ <description>Subregion 7 in region n (write '1' to clear)</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR8</name>
+ <description>Subregion 8 in region n (write '1' to clear)</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR9</name>
+ <description>Subregion 9 in region n (write '1' to clear)</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR10</name>
+ <description>Subregion 10 in region n (write '1' to clear)</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR11</name>
+ <description>Subregion 11 in region n (write '1' to clear)</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR12</name>
+ <description>Subregion 12 in region n (write '1' to clear)</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR13</name>
+ <description>Subregion 13 in region n (write '1' to clear)</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR14</name>
+ <description>Subregion 14 in region n (write '1' to clear)</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR15</name>
+ <description>Subregion 15 in region n (write '1' to clear)</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR16</name>
+ <description>Subregion 16 in region n (write '1' to clear)</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR17</name>
+ <description>Subregion 17 in region n (write '1' to clear)</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR18</name>
+ <description>Subregion 18 in region n (write '1' to clear)</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR19</name>
+ <description>Subregion 19 in region n (write '1' to clear)</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR20</name>
+ <description>Subregion 20 in region n (write '1' to clear)</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR21</name>
+ <description>Subregion 21 in region n (write '1' to clear)</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR22</name>
+ <description>Subregion 22 in region n (write '1' to clear)</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR23</name>
+ <description>Subregion 23 in region n (write '1' to clear)</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR24</name>
+ <description>Subregion 24 in region n (write '1' to clear)</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR25</name>
+ <description>Subregion 25 in region n (write '1' to clear)</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR26</name>
+ <description>Subregion 26 in region n (write '1' to clear)</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR27</name>
+ <description>Subregion 27 in region n (write '1' to clear)</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR28</name>
+ <description>Subregion 28 in region n (write '1' to clear)</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR29</name>
+ <description>Subregion 29 in region n (write '1' to clear)</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR30</name>
+ <description>Subregion 30 in region n (write '1' to clear)</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR31</name>
+ <description>Subregion 31 in region n (write '1' to clear)</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No write access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Write access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SUBSTATRA</name>
+ <description>Description cluster[n]: Source of event/interrupt in region n, read access detected while corresponding subregion was enabled for watching</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>SR0</name>
+ <description>Subregion 0 in region n (write '1' to clear)</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR1</name>
+ <description>Subregion 1 in region n (write '1' to clear)</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR2</name>
+ <description>Subregion 2 in region n (write '1' to clear)</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR3</name>
+ <description>Subregion 3 in region n (write '1' to clear)</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR4</name>
+ <description>Subregion 4 in region n (write '1' to clear)</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR5</name>
+ <description>Subregion 5 in region n (write '1' to clear)</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR6</name>
+ <description>Subregion 6 in region n (write '1' to clear)</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR7</name>
+ <description>Subregion 7 in region n (write '1' to clear)</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR8</name>
+ <description>Subregion 8 in region n (write '1' to clear)</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR9</name>
+ <description>Subregion 9 in region n (write '1' to clear)</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR10</name>
+ <description>Subregion 10 in region n (write '1' to clear)</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR11</name>
+ <description>Subregion 11 in region n (write '1' to clear)</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR12</name>
+ <description>Subregion 12 in region n (write '1' to clear)</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR13</name>
+ <description>Subregion 13 in region n (write '1' to clear)</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR14</name>
+ <description>Subregion 14 in region n (write '1' to clear)</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR15</name>
+ <description>Subregion 15 in region n (write '1' to clear)</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR16</name>
+ <description>Subregion 16 in region n (write '1' to clear)</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR17</name>
+ <description>Subregion 17 in region n (write '1' to clear)</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR18</name>
+ <description>Subregion 18 in region n (write '1' to clear)</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR19</name>
+ <description>Subregion 19 in region n (write '1' to clear)</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR20</name>
+ <description>Subregion 20 in region n (write '1' to clear)</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR21</name>
+ <description>Subregion 21 in region n (write '1' to clear)</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR22</name>
+ <description>Subregion 22 in region n (write '1' to clear)</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR23</name>
+ <description>Subregion 23 in region n (write '1' to clear)</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR24</name>
+ <description>Subregion 24 in region n (write '1' to clear)</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR25</name>
+ <description>Subregion 25 in region n (write '1' to clear)</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR26</name>
+ <description>Subregion 26 in region n (write '1' to clear)</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR27</name>
+ <description>Subregion 27 in region n (write '1' to clear)</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR28</name>
+ <description>Subregion 28 in region n (write '1' to clear)</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR29</name>
+ <description>Subregion 29 in region n (write '1' to clear)</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR30</name>
+ <description>Subregion 30 in region n (write '1' to clear)</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR31</name>
+ <description>Subregion 31 in region n (write '1' to clear)</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoAccess</name>
+ <description>No read access occurred in this subregion</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Access</name>
+ <description>Read access(es) occurred in this subregion</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>REGIONEN</name>
+ <description>Enable/disable regions watch</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RGN0WA</name>
+ <description>Enable/disable write access watch in region[0]</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable write access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN0RA</name>
+ <description>Enable/disable read access watch in region[0]</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable read access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN1WA</name>
+ <description>Enable/disable write access watch in region[1]</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable write access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN1RA</name>
+ <description>Enable/disable read access watch in region[1]</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable read access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN2WA</name>
+ <description>Enable/disable write access watch in region[2]</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable write access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN2RA</name>
+ <description>Enable/disable read access watch in region[2]</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable read access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN3WA</name>
+ <description>Enable/disable write access watch in region[3]</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable write access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN3RA</name>
+ <description>Enable/disable read access watch in region[3]</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable read access watch in this region</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN0WA</name>
+ <description>Enable/disable write access watch in PREGION[0]</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable write access watch in this PREGION</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable write access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN0RA</name>
+ <description>Enable/disable read access watch in PREGION[0]</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable read access watch in this PREGION</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable read access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN1WA</name>
+ <description>Enable/disable write access watch in PREGION[1]</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable write access watch in this PREGION</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable write access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN1RA</name>
+ <description>Enable/disable read access watch in PREGION[1]</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable read access watch in this PREGION</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable read access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REGIONENSET</name>
+ <description>Enable regions watch</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RGN0WA</name>
+ <description>Enable write access watch in region[0]</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN0RA</name>
+ <description>Enable read access watch in region[0]</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN1WA</name>
+ <description>Enable write access watch in region[1]</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN1RA</name>
+ <description>Enable read access watch in region[1]</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN2WA</name>
+ <description>Enable write access watch in region[2]</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN2RA</name>
+ <description>Enable read access watch in region[2]</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN3WA</name>
+ <description>Enable write access watch in region[3]</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN3RA</name>
+ <description>Enable read access watch in region[3]</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN0WA</name>
+ <description>Enable write access watch in PREGION[0]</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable write access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN0RA</name>
+ <description>Enable read access watch in PREGION[0]</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable read access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN1WA</name>
+ <description>Enable write access watch in PREGION[1]</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable write access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN1RA</name>
+ <description>Enable read access watch in PREGION[1]</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable read access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>REGIONENCLR</name>
+ <description>Disable regions watch</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RGN0WA</name>
+ <description>Disable write access watch in region[0]</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN0RA</name>
+ <description>Disable read access watch in region[0]</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN1WA</name>
+ <description>Disable write access watch in region[1]</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN1RA</name>
+ <description>Disable read access watch in region[1]</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN2WA</name>
+ <description>Disable write access watch in region[2]</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN2RA</name>
+ <description>Disable read access watch in region[2]</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN3WA</name>
+ <description>Disable write access watch in region[3]</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable write access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RGN3RA</name>
+ <description>Disable read access watch in region[3]</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this region is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this region is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable read access watch in this region</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN0WA</name>
+ <description>Disable write access watch in PREGION[0]</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable write access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN0RA</name>
+ <description>Disable read access watch in PREGION[0]</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable read access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN1WA</name>
+ <description>Disable write access watch in PREGION[1]</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Write access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Write access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable write access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PRGN1RA</name>
+ <description>Disable read access watch in PREGION[1]</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read access watch in this PREGION is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read access watch in this PREGION is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable read access watch in this PREGION</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>4</dim>
+ <dimIncrement>0x010</dimIncrement>
+ <name>REGION[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>MWU_REGION</headerStructName>
+ <addressOffset>0x600</addressOffset>
+ <register>
+ <name>START</name>
+ <description>Description cluster[n]: Start address for region n</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>START</name>
+ <description>Start address for region</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>END</name>
+ <description>Description cluster[n]: End address of region n</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>End address of region.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <dim>2</dim>
+ <dimIncrement>0x010</dimIncrement>
+ <name>PREGION[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>MWU_PREGION</headerStructName>
+ <addressOffset>0x6C0</addressOffset>
+ <register>
+ <name>START</name>
+ <description>Description cluster[n]: Reserved for future use</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>START</name>
+ <description>Reserved for future use</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>END</name>
+ <description>Description cluster[n]: Reserved for future use</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>END</name>
+ <description>Reserved for future use</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SUBS</name>
+ <description>Description cluster[n]: Subregions of region n</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>SR0</name>
+ <description>Include or exclude subregion 0 in region</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR1</name>
+ <description>Include or exclude subregion 1 in region</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR2</name>
+ <description>Include or exclude subregion 2 in region</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR3</name>
+ <description>Include or exclude subregion 3 in region</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR4</name>
+ <description>Include or exclude subregion 4 in region</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR5</name>
+ <description>Include or exclude subregion 5 in region</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR6</name>
+ <description>Include or exclude subregion 6 in region</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR7</name>
+ <description>Include or exclude subregion 7 in region</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR8</name>
+ <description>Include or exclude subregion 8 in region</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR9</name>
+ <description>Include or exclude subregion 9 in region</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR10</name>
+ <description>Include or exclude subregion 10 in region</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR11</name>
+ <description>Include or exclude subregion 11 in region</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR12</name>
+ <description>Include or exclude subregion 12 in region</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR13</name>
+ <description>Include or exclude subregion 13 in region</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR14</name>
+ <description>Include or exclude subregion 14 in region</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR15</name>
+ <description>Include or exclude subregion 15 in region</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR16</name>
+ <description>Include or exclude subregion 16 in region</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR17</name>
+ <description>Include or exclude subregion 17 in region</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR18</name>
+ <description>Include or exclude subregion 18 in region</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR19</name>
+ <description>Include or exclude subregion 19 in region</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR20</name>
+ <description>Include or exclude subregion 20 in region</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR21</name>
+ <description>Include or exclude subregion 21 in region</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR22</name>
+ <description>Include or exclude subregion 22 in region</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR23</name>
+ <description>Include or exclude subregion 23 in region</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR24</name>
+ <description>Include or exclude subregion 24 in region</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR25</name>
+ <description>Include or exclude subregion 25 in region</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR26</name>
+ <description>Include or exclude subregion 26 in region</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR27</name>
+ <description>Include or exclude subregion 27 in region</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR28</name>
+ <description>Include or exclude subregion 28 in region</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR29</name>
+ <description>Include or exclude subregion 29 in region</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR30</name>
+ <description>Include or exclude subregion 30 in region</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SR31</name>
+ <description>Include or exclude subregion 31 in region</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exclude</name>
+ <description>Exclude</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Include</name>
+ <description>Include</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="PWM0">
+ <name>PWM1</name>
+ <description>Pulse width modulation unit 1</description>
+ <baseAddress>0x40021000</baseAddress>
+ <interrupt>
+ <name>PWM1</name>
+ <value>33</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="PWM0">
+ <name>PWM2</name>
+ <description>Pulse width modulation unit 2</description>
+ <baseAddress>0x40022000</baseAddress>
+ <interrupt>
+ <name>PWM2</name>
+ <value>34</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SPI0">
+ <name>SPI2</name>
+ <description>Serial Peripheral Interface 2</description>
+ <baseAddress>0x40023000</baseAddress>
+ <interrupt>
+ <name>SPIM2_SPIS2_SPI2</name>
+ <value>35</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SPIM0">
+ <name>SPIM2</name>
+ <description>Serial Peripheral Interface Master with EasyDMA 2</description>
+ <baseAddress>0x40023000</baseAddress>
+ <alternatePeripheral>SPI2</alternatePeripheral>
+ <interrupt>
+ <name>SPIM2_SPIS2_SPI2</name>
+ <value>35</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SPIS0">
+ <name>SPIS2</name>
+ <description>SPI Slave 2</description>
+ <baseAddress>0x40023000</baseAddress>
+ <alternatePeripheral>SPI2</alternatePeripheral>
+ <interrupt>
+ <name>SPIM2_SPIS2_SPI2</name>
+ <value>35</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="RTC0">
+ <name>RTC2</name>
+ <description>Real time counter 2</description>
+ <baseAddress>0x40024000</baseAddress>
+ <interrupt>
+ <name>RTC2</name>
+ <value>36</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>I2S</name>
+ <description>Inter-IC Sound</description>
+ <baseAddress>0x40025000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>I2S</name>
+ <value>37</value>
+ </interrupt>
+ <groupName>I2S</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_START</name>
+ <description>Starts continuous I2S transfer. Also starts MCK generator when this is enabled.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_START</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STOP</name>
+ <description>Stops I2S transfer. Also stops MCK generator. Triggering this task will cause the {event:STOPPED} event to be generated.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STOP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_RXPTRUPD</name>
+ <description>The RXD.PTR register has been copied to internal double-buffers.
+ When the I2S module is started and RX is enabled, this event will be generated for every RXTXD.MAXCNT words that are received on the SDIN pin.</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_RXPTRUPD</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STOPPED</name>
+ <description>I2S transfer stopped.</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STOPPED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_TXPTRUPD</name>
+ <description>The TDX.PTR register has been copied to internal double-buffers.
+ When the I2S module is started and TX is enabled, this event will be generated for every RXTXD.MAXCNT words that are sent on the SDOUT pin.</description>
+ <addressOffset>0x114</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_TXPTRUPD</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RXPTRUPD</name>
+ <description>Enable or disable interrupt for RXPTRUPD event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Enable or disable interrupt for STOPPED event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXPTRUPD</name>
+ <description>Enable or disable interrupt for TXPTRUPD event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RXPTRUPD</name>
+ <description>Write '1' to enable interrupt for RXPTRUPD event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to enable interrupt for STOPPED event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXPTRUPD</name>
+ <description>Write '1' to enable interrupt for TXPTRUPD event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RXPTRUPD</name>
+ <description>Write '1' to disable interrupt for RXPTRUPD event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STOPPED</name>
+ <description>Write '1' to disable interrupt for STOPPED event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TXPTRUPD</name>
+ <description>Write '1' to disable interrupt for TXPTRUPD event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable I2S module.</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable I2S module.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>CONFIG</name>
+ <description>Unspecified</description>
+ <headerStructName>I2S_CONFIG</headerStructName>
+ <addressOffset>0x504</addressOffset>
+ <register>
+ <name>MODE</name>
+ <description>I2S mode.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>MODE</name>
+ <description>I2S mode.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Master</name>
+ <description>Master mode. SCK and LRCK generated from internal master clcok (MCK) and output on pins defined by PSEL.xxx.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Slave</name>
+ <description>Slave mode. SCK and LRCK generated by external master and received on pins defined by PSEL.xxx</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RXEN</name>
+ <description>Reception (RX) enable.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>RXEN</name>
+ <description>Reception (RX) enable.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Reception disabled and now data will be written to the RXD.PTR address.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Reception enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TXEN</name>
+ <description>Transmission (TX) enable.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>TXEN</name>
+ <description>Transmission (TX) enable.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Transmission disabled and now data will be read from the RXD.TXD address.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Transmission enabled.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MCKEN</name>
+ <description>Master clock generator enable.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>MCKEN</name>
+ <description>Master clock generator enable.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Master clock generator disabled and PSEL.MCK not connected(available as GPIO).</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Master clock generator running and MCK output on PSEL.MCK.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MCKFREQ</name>
+ <description>Master clock generator frequency.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x20000000</resetValue>
+ <fields>
+ <field>
+ <name>MCKFREQ</name>
+ <description>Master clock generator frequency.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>32MDIV2</name>
+ <description>32 MHz / 2 = 16.0 MHz</description>
+ <value>0x80000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV3</name>
+ <description>32 MHz / 3 = 10.6666667 MHz</description>
+ <value>0x50000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV4</name>
+ <description>32 MHz / 4 = 8.0 MHz</description>
+ <value>0x40000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV5</name>
+ <description>32 MHz / 5 = 6.4 MHz</description>
+ <value>0x30000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV6</name>
+ <description>32 MHz / 6 = 5.3333333 MHz</description>
+ <value>0x28000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV8</name>
+ <description>32 MHz / 8 = 4.0 MHz</description>
+ <value>0x20000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV10</name>
+ <description>32 MHz / 10 = 3.2 MHz</description>
+ <value>0x18000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV11</name>
+ <description>32 MHz / 11 = 2.9090909 MHz</description>
+ <value>0x16000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV15</name>
+ <description>32 MHz / 15 = 2.1333333 MHz</description>
+ <value>0x11000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV16</name>
+ <description>32 MHz / 16 = 2.0 MHz</description>
+ <value>0x10000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV21</name>
+ <description>32 MHz / 21 = 1.5238095</description>
+ <value>0x0C000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV23</name>
+ <description>32 MHz / 23 = 1.3913043 MHz</description>
+ <value>0x0B000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV30</name>
+ <description>32 MHz / 30 = 1.0666667 MHz</description>
+ <value>0x08800000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV31</name>
+ <description>32 MHz / 31 = 1.0322581 MHz</description>
+ <value>0x08400000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV32</name>
+ <description>32 MHz / 32 = 1.0 MHz</description>
+ <value>0x08000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV42</name>
+ <description>32 MHz / 42 = 0.7619048 MHz</description>
+ <value>0x06000000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV63</name>
+ <description>32 MHz / 63 = 0.5079365 MHz</description>
+ <value>0x04100000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32MDIV125</name>
+ <description>32 MHz / 125 = 0.256 MHz</description>
+ <value>0x020C0000</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>RATIO</name>
+ <description>MCK / LRCK ratio.</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000006</resetValue>
+ <fields>
+ <field>
+ <name>RATIO</name>
+ <description>MCK / LRCK ratio.</description>
+ <lsb>0</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>32X</name>
+ <description>LRCK = MCK / 32</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>48X</name>
+ <description>LRCK = MCK / 48</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>64X</name>
+ <description>LRCK = MCK / 64</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>96X</name>
+ <description>LRCK = MCK / 96</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>128X</name>
+ <description>LRCK = MCK / 128</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>192X</name>
+ <description>LRCK = MCK / 192</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>256X</name>
+ <description>LRCK = MCK / 256</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>384X</name>
+ <description>LRCK = MCK / 384</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>512X</name>
+ <description>LRCK = MCK / 512</description>
+ <value>8</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SWIDTH</name>
+ <description>Sample width.</description>
+ <addressOffset>0x018</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>SWIDTH</name>
+ <description>Sample width.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>8Bit</name>
+ <description>8 bit.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>16Bit</name>
+ <description>16 bit.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>24Bit</name>
+ <description>24 bit.</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ALIGN</name>
+ <description>Alignment of sample within a frame.</description>
+ <addressOffset>0x01C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>ALIGN</name>
+ <description>Alignment of sample within a frame.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Left</name>
+ <description>Left-aligned.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Right</name>
+ <description>Right-aligned.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FORMAT</name>
+ <description>Frame format.</description>
+ <addressOffset>0x020</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>FORMAT</name>
+ <description>Frame format.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>I2S</name>
+ <description>Original I2S format.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Aligned</name>
+ <description>Alternate (left- or right-aligned) format.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CHANNELS</name>
+ <description>Enable channels.</description>
+ <addressOffset>0x024</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>CHANNELS</name>
+ <description>Enable channels.</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Stereo</name>
+ <description>Stereo.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Left</name>
+ <description>Left only.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Right</name>
+ <description>Right only.</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>RXD</name>
+ <description>Unspecified</description>
+ <headerStructName>I2S_RXD</headerStructName>
+ <addressOffset>0x538</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Receive buffer RAM start address.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Receive buffer Data RAM start address. When receiving, words containing samples will be written to this address. This address is a word aligned Data RAM address.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>TXD</name>
+ <description>Unspecified</description>
+ <headerStructName>I2S_TXD</headerStructName>
+ <addressOffset>0x540</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Transmit buffer RAM start address.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Transmit buffer Data RAM start address. When transmitting, words containing samples will be fetched from this address. This address is a word aligned Data RAM address.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>RXTXD</name>
+ <description>Unspecified</description>
+ <headerStructName>I2S_RXTXD</headerStructName>
+ <addressOffset>0x550</addressOffset>
+ <register>
+ <name>MAXCNT</name>
+ <description>Size of RXD and TXD buffers.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Size of RXD and TXD buffers in number of 32 bit words.</description>
+ <lsb>0</lsb>
+ <msb>13</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>I2S_PSEL</headerStructName>
+ <addressOffset>0x560</addressOffset>
+ <register>
+ <name>MCK</name>
+ <description>Pin select for MCK signal.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SCK</name>
+ <description>Pin select for SCK signal.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LRCK</name>
+ <description>Pin select for LRCK signal.</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SDIN</name>
+ <description>Pin select for SDIN signal.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SDOUT</name>
+ <description>Pin select for SDOUT signal.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>FPU</name>
+ <description>FPU</description>
+ <baseAddress>0x40026000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>FPU</name>
+ <value>38</value>
+ </interrupt>
+ <groupName>FPU</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>UNUSED</name>
+ <description>Unused.</description>
+ <addressOffset>0x000</addressOffset>
+ <resetValue>0x00000000</resetValue>
+ <access>read-only</access>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>USBD</name>
+ <description>Universal serial bus device</description>
+ <baseAddress>0x40027000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>USBD</name>
+ <value>39</value>
+ </interrupt>
+ <groupName>USBD</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>TASKS_STARTEPIN[%s]</name>
+ <description>Description collection[n]: Captures the EPIN[n].PTR and EPIN[n].MAXCNT registers values, and enables endpoint IN n to respond to traffic from host</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTEPIN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STARTISOIN</name>
+ <description>Captures the ISOIN.PTR and ISOIN.MAXCNT registers values, and enables sending data on ISO endpoint</description>
+ <addressOffset>0x024</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTISOIN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>TASKS_STARTEPOUT[%s]</name>
+ <description>Description collection[n]: Captures the EPOUT[n].PTR and EPOUT[n].MAXCNT registers values, and enables endpoint n to respond to traffic from host</description>
+ <addressOffset>0x028</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTEPOUT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_STARTISOOUT</name>
+ <description>Captures the ISOOUT.PTR and ISOOUT.MAXCNT registers values, and enables receiving of data on ISO endpoint</description>
+ <addressOffset>0x048</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_STARTISOOUT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_EP0RCVOUT</name>
+ <description>Allows OUT data stage on control endpoint 0</description>
+ <addressOffset>0x04C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_EP0RCVOUT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_EP0STATUS</name>
+ <description>Allows status stage on control endpoint 0</description>
+ <addressOffset>0x050</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_EP0STATUS</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_EP0STALL</name>
+ <description>Stalls data and status stage on control endpoint 0</description>
+ <addressOffset>0x054</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_EP0STALL</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_DPDMDRIVE</name>
+ <description>Forces D+ and D- lines into the state defined in the DPDMVALUE register</description>
+ <addressOffset>0x058</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_DPDMDRIVE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_DPDMNODRIVE</name>
+ <description>Stops forcing D+ and D- lines into any state (USB engine takes control)</description>
+ <addressOffset>0x05C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_DPDMNODRIVE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_USBRESET</name>
+ <description>Signals that a USB reset condition has been detected on USB lines</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_USBRESET</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_STARTED</name>
+ <description>Confirms that the EPIN[n].PTR and EPIN[n].MAXCNT, or EPOUT[n].PTR and EPOUT[n].MAXCNT registers have been captured on all endpoints reported in the EPSTATUS register</description>
+ <addressOffset>0x104</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_STARTED</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>EVENTS_ENDEPIN[%s]</name>
+ <description>Description collection[n]: The whole EPIN[n] buffer has been consumed. The RAM buffer can be accessed safely by software.</description>
+ <addressOffset>0x108</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDEPIN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_EP0DATADONE</name>
+ <description>An acknowledged data transfer has taken place on the control endpoint</description>
+ <addressOffset>0x128</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_EP0DATADONE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDISOIN</name>
+ <description>The whole ISOIN buffer has been consumed. The RAM buffer can be accessed safely by software.</description>
+ <addressOffset>0x12C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDISOIN</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>EVENTS_ENDEPOUT[%s]</name>
+ <description>Description collection[n]: The whole EPOUT[n] buffer has been consumed. The RAM buffer can be accessed safely by software.</description>
+ <addressOffset>0x130</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDEPOUT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_ENDISOOUT</name>
+ <description>The whole ISOOUT buffer has been consumed. The RAM buffer can be accessed safely by software.</description>
+ <addressOffset>0x150</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_ENDISOOUT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_SOF</name>
+ <description>Signals that a SOF (start of frame) condition has been detected on USB lines</description>
+ <addressOffset>0x154</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_SOF</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_USBEVENT</name>
+ <description>An event or an error not covered by specific events has occurred. Check EVENTCAUSE register to find the cause.</description>
+ <addressOffset>0x158</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_USBEVENT</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_EP0SETUP</name>
+ <description>A valid SETUP token has been received (and acknowledged) on the control endpoint</description>
+ <addressOffset>0x15C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_EP0SETUP</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_EPDATA</name>
+ <description>A data transfer has occurred on a data endpoint, indicated by the EPDATASTATUS register</description>
+ <addressOffset>0x160</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_EPDATA</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SHORTS</name>
+ <description>Shortcut register</description>
+ <addressOffset>0x200</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EP0DATADONE_STARTEPIN0</name>
+ <description>Shortcut between EP0DATADONE event and STARTEPIN[0] task</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EP0DATADONE_STARTEPOUT0</name>
+ <description>Shortcut between EP0DATADONE event and STARTEPOUT[0] task</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EP0DATADONE_EP0STATUS</name>
+ <description>Shortcut between EP0DATADONE event and EP0STATUS task</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT0_EP0STATUS</name>
+ <description>Shortcut between ENDEPOUT[0] event and EP0STATUS task</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT0_EP0RCVOUT</name>
+ <description>Shortcut between ENDEPOUT[0] event and EP0RCVOUT task</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable shortcut</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable shortcut</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>USBRESET</name>
+ <description>Enable or disable interrupt for USBRESET event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Enable or disable interrupt for STARTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN0</name>
+ <description>Enable or disable interrupt for ENDEPIN[0] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN1</name>
+ <description>Enable or disable interrupt for ENDEPIN[1] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN2</name>
+ <description>Enable or disable interrupt for ENDEPIN[2] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN3</name>
+ <description>Enable or disable interrupt for ENDEPIN[3] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN4</name>
+ <description>Enable or disable interrupt for ENDEPIN[4] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN5</name>
+ <description>Enable or disable interrupt for ENDEPIN[5] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN6</name>
+ <description>Enable or disable interrupt for ENDEPIN[6] event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN7</name>
+ <description>Enable or disable interrupt for ENDEPIN[7] event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EP0DATADONE</name>
+ <description>Enable or disable interrupt for EP0DATADONE event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDISOIN</name>
+ <description>Enable or disable interrupt for ENDISOIN event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT0</name>
+ <description>Enable or disable interrupt for ENDEPOUT[0] event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT1</name>
+ <description>Enable or disable interrupt for ENDEPOUT[1] event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT2</name>
+ <description>Enable or disable interrupt for ENDEPOUT[2] event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT3</name>
+ <description>Enable or disable interrupt for ENDEPOUT[3] event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT4</name>
+ <description>Enable or disable interrupt for ENDEPOUT[4] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT5</name>
+ <description>Enable or disable interrupt for ENDEPOUT[5] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT6</name>
+ <description>Enable or disable interrupt for ENDEPOUT[6] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT7</name>
+ <description>Enable or disable interrupt for ENDEPOUT[7] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDISOOUT</name>
+ <description>Enable or disable interrupt for ENDISOOUT event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SOF</name>
+ <description>Enable or disable interrupt for SOF event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>USBEVENT</name>
+ <description>Enable or disable interrupt for USBEVENT event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EP0SETUP</name>
+ <description>Enable or disable interrupt for EP0SETUP event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPDATA</name>
+ <description>Enable or disable interrupt for EPDATA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>USBRESET</name>
+ <description>Write '1' to enable interrupt for USBRESET event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to enable interrupt for STARTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN0</name>
+ <description>Write '1' to enable interrupt for ENDEPIN[0] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN1</name>
+ <description>Write '1' to enable interrupt for ENDEPIN[1] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN2</name>
+ <description>Write '1' to enable interrupt for ENDEPIN[2] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN3</name>
+ <description>Write '1' to enable interrupt for ENDEPIN[3] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN4</name>
+ <description>Write '1' to enable interrupt for ENDEPIN[4] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN5</name>
+ <description>Write '1' to enable interrupt for ENDEPIN[5] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN6</name>
+ <description>Write '1' to enable interrupt for ENDEPIN[6] event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN7</name>
+ <description>Write '1' to enable interrupt for ENDEPIN[7] event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EP0DATADONE</name>
+ <description>Write '1' to enable interrupt for EP0DATADONE event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDISOIN</name>
+ <description>Write '1' to enable interrupt for ENDISOIN event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT0</name>
+ <description>Write '1' to enable interrupt for ENDEPOUT[0] event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT1</name>
+ <description>Write '1' to enable interrupt for ENDEPOUT[1] event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT2</name>
+ <description>Write '1' to enable interrupt for ENDEPOUT[2] event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT3</name>
+ <description>Write '1' to enable interrupt for ENDEPOUT[3] event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT4</name>
+ <description>Write '1' to enable interrupt for ENDEPOUT[4] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT5</name>
+ <description>Write '1' to enable interrupt for ENDEPOUT[5] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT6</name>
+ <description>Write '1' to enable interrupt for ENDEPOUT[6] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT7</name>
+ <description>Write '1' to enable interrupt for ENDEPOUT[7] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDISOOUT</name>
+ <description>Write '1' to enable interrupt for ENDISOOUT event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SOF</name>
+ <description>Write '1' to enable interrupt for SOF event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>USBEVENT</name>
+ <description>Write '1' to enable interrupt for USBEVENT event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EP0SETUP</name>
+ <description>Write '1' to enable interrupt for EP0SETUP event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPDATA</name>
+ <description>Write '1' to enable interrupt for EPDATA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>USBRESET</name>
+ <description>Write '1' to disable interrupt for USBRESET event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STARTED</name>
+ <description>Write '1' to disable interrupt for STARTED event</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN0</name>
+ <description>Write '1' to disable interrupt for ENDEPIN[0] event</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN1</name>
+ <description>Write '1' to disable interrupt for ENDEPIN[1] event</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN2</name>
+ <description>Write '1' to disable interrupt for ENDEPIN[2] event</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN3</name>
+ <description>Write '1' to disable interrupt for ENDEPIN[3] event</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN4</name>
+ <description>Write '1' to disable interrupt for ENDEPIN[4] event</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN5</name>
+ <description>Write '1' to disable interrupt for ENDEPIN[5] event</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN6</name>
+ <description>Write '1' to disable interrupt for ENDEPIN[6] event</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPIN7</name>
+ <description>Write '1' to disable interrupt for ENDEPIN[7] event</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EP0DATADONE</name>
+ <description>Write '1' to disable interrupt for EP0DATADONE event</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDISOIN</name>
+ <description>Write '1' to disable interrupt for ENDISOIN event</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT0</name>
+ <description>Write '1' to disable interrupt for ENDEPOUT[0] event</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT1</name>
+ <description>Write '1' to disable interrupt for ENDEPOUT[1] event</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT2</name>
+ <description>Write '1' to disable interrupt for ENDEPOUT[2] event</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT3</name>
+ <description>Write '1' to disable interrupt for ENDEPOUT[3] event</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT4</name>
+ <description>Write '1' to disable interrupt for ENDEPOUT[4] event</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT5</name>
+ <description>Write '1' to disable interrupt for ENDEPOUT[5] event</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT6</name>
+ <description>Write '1' to disable interrupt for ENDEPOUT[6] event</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDEPOUT7</name>
+ <description>Write '1' to disable interrupt for ENDEPOUT[7] event</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ENDISOOUT</name>
+ <description>Write '1' to disable interrupt for ENDISOOUT event</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SOF</name>
+ <description>Write '1' to disable interrupt for SOF event</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>USBEVENT</name>
+ <description>Write '1' to disable interrupt for USBEVENT event</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EP0SETUP</name>
+ <description>Write '1' to disable interrupt for EP0SETUP event</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPDATA</name>
+ <description>Write '1' to disable interrupt for EPDATA event</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTCAUSE</name>
+ <description>Details on what caused the USBEVENT event</description>
+ <addressOffset>0x400</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>ISOOUTCRC</name>
+ <description>CRC error was detected on isochronous OUT endpoint 8. Write '1' to clear.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>No error detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Error detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SUSPEND</name>
+ <description>Signals that USB lines have been idle long enough for the device to enter suspend. Write '1' to clear.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Suspend not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Suspend detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>RESUME</name>
+ <description>Signals that a RESUME condition (K state or activity restart) has been detected on USB lines. Write '1' to clear.</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>Resume not detected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Detected</name>
+ <description>Resume detected</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>USBWUALLOWED</name>
+ <description>USB MAC has been woken up and operational. Write '1' to clear.</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotAllowed</name>
+ <description>Wake up not allowed</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Allowed</name>
+ <description>Wake up allowed</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READY</name>
+ <description>USB device is ready for normal operation. Write '1' to clear.</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDetected</name>
+ <description>USBEVENT was not issued due to USBD peripheral ready</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Ready</name>
+ <description>USBD peripheral is ready</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>HALTED</name>
+ <description>Unspecified</description>
+ <headerStructName>USBD_HALTED</headerStructName>
+ <addressOffset>0x420</addressOffset>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>EPIN[%s]</name>
+ <description>Description collection[n]: IN endpoint halted status. Can be used as is as response to a GetStatus() request to endpoint.</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>GETSTATUS</name>
+ <description>IN endpoint halted status. Can be used as is as response to a GetStatus() request to endpoint.</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotHalted</name>
+ <description>Endpoint is not halted</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Halted</name>
+ <description>Endpoint is halted</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>EPOUT[%s]</name>
+ <description>Description collection[n]: OUT endpoint halted status. Can be used as is as response to a GetStatus() request to endpoint.</description>
+ <addressOffset>0x024</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>GETSTATUS</name>
+ <description>OUT endpoint halted status. Can be used as is as response to a GetStatus() request to endpoint.</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotHalted</name>
+ <description>Endpoint is not halted</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Halted</name>
+ <description>Endpoint is halted</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>EPSTATUS</name>
+ <description>Provides information on which endpoint's EasyDMA registers have been captured</description>
+ <addressOffset>0x468</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>EPIN0</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN1</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN2</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN3</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN4</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN5</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN6</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN7</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN8</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT0</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT1</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT2</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT3</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT4</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT5</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT6</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT7</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT8</name>
+ <description>Captured state of endpoint's EasyDMA registers. Write '1' to clear.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoData</name>
+ <description>EasyDMA registers have not been captured for this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>EasyDMA registers have been captured for this endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EPDATASTATUS</name>
+ <description>Provides information on which endpoint(s) an acknowledged data transfer has occurred (EPDATA event)</description>
+ <addressOffset>0x46C</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>EPIN1</name>
+ <description>Acknowledged data transfer on this IN endpoint. Write '1' to clear.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDone</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN2</name>
+ <description>Acknowledged data transfer on this IN endpoint. Write '1' to clear.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDone</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN3</name>
+ <description>Acknowledged data transfer on this IN endpoint. Write '1' to clear.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDone</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN4</name>
+ <description>Acknowledged data transfer on this IN endpoint. Write '1' to clear.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDone</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN5</name>
+ <description>Acknowledged data transfer on this IN endpoint. Write '1' to clear.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDone</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN6</name>
+ <description>Acknowledged data transfer on this IN endpoint. Write '1' to clear.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDone</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPIN7</name>
+ <description>Acknowledged data transfer on this IN endpoint. Write '1' to clear.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotDone</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DataDone</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT1</name>
+ <description>Acknowledged data transfer on this OUT endpoint. Write '1' to clear.</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotStarted</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Started</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT2</name>
+ <description>Acknowledged data transfer on this OUT endpoint. Write '1' to clear.</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotStarted</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Started</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT3</name>
+ <description>Acknowledged data transfer on this OUT endpoint. Write '1' to clear.</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotStarted</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Started</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT4</name>
+ <description>Acknowledged data transfer on this OUT endpoint. Write '1' to clear.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotStarted</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Started</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT5</name>
+ <description>Acknowledged data transfer on this OUT endpoint. Write '1' to clear.</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotStarted</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Started</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT6</name>
+ <description>Acknowledged data transfer on this OUT endpoint. Write '1' to clear.</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotStarted</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Started</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>EPOUT7</name>
+ <description>Acknowledged data transfer on this OUT endpoint. Write '1' to clear.</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotStarted</name>
+ <description>No acknowledged data transfer on this endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Started</name>
+ <description>Acknowledged data transfer on this endpoint has occurred</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>USBADDR</name>
+ <description>Device USB address</description>
+ <addressOffset>0x470</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>ADDR</name>
+ <description>Device USB address</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BMREQUESTTYPE</name>
+ <description>SETUP data, byte 0, bmRequestType</description>
+ <addressOffset>0x480</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>RECIPIENT</name>
+ <description>Data transfer type</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Device</name>
+ <description>Device</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Interface</name>
+ <description>Interface</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Endpoint</name>
+ <description>Endpoint</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Other</name>
+ <description>Other</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>TYPE</name>
+ <description>Data transfer type</description>
+ <lsb>5</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Standard</name>
+ <description>Standard</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Class</name>
+ <description>Class</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Vendor</name>
+ <description>Vendor</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DIRECTION</name>
+ <description>Data transfer direction</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>HostToDevice</name>
+ <description>Host-to-device</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>DeviceToHost</name>
+ <description>Device-to-host</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>BREQUEST</name>
+ <description>SETUP data, byte 1, bRequest</description>
+ <addressOffset>0x484</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>BREQUEST</name>
+ <description>SETUP data, byte 1, bRequest. Values provided for standard requests only, user must implement class and vendor values.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>STD_GET_STATUS</name>
+ <description>Standard request GET_STATUS</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>STD_CLEAR_FEATURE</name>
+ <description>Standard request CLEAR_FEATURE</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>STD_SET_FEATURE</name>
+ <description>Standard request SET_FEATURE</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>STD_SET_ADDRESS</name>
+ <description>Standard request SET_ADDRESS</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>STD_GET_DESCRIPTOR</name>
+ <description>Standard request GET_DESCRIPTOR</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>STD_SET_DESCRIPTOR</name>
+ <description>Standard request SET_DESCRIPTOR</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>STD_GET_CONFIGURATION</name>
+ <description>Standard request GET_CONFIGURATION</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>STD_SET_CONFIGURATION</name>
+ <description>Standard request SET_CONFIGURATION</description>
+ <value>9</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>STD_GET_INTERFACE</name>
+ <description>Standard request GET_INTERFACE</description>
+ <value>10</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>STD_SET_INTERFACE</name>
+ <description>Standard request SET_INTERFACE</description>
+ <value>11</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>STD_SYNCH_FRAME</name>
+ <description>Standard request SYNCH_FRAME</description>
+ <value>12</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>WVALUEL</name>
+ <description>SETUP data, byte 2, LSB of wValue</description>
+ <addressOffset>0x488</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>WVALUEL</name>
+ <description>SETUP data, byte 2, LSB of wValue</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>WVALUEH</name>
+ <description>SETUP data, byte 3, MSB of wValue</description>
+ <addressOffset>0x48C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>WVALUEH</name>
+ <description>SETUP data, byte 3, MSB of wValue</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>WINDEXL</name>
+ <description>SETUP data, byte 4, LSB of wIndex</description>
+ <addressOffset>0x490</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>WINDEXL</name>
+ <description>SETUP data, byte 4, LSB of wIndex</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>WINDEXH</name>
+ <description>SETUP data, byte 5, MSB of wIndex</description>
+ <addressOffset>0x494</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>WINDEXH</name>
+ <description>SETUP data, byte 5, MSB of wIndex</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>WLENGTHL</name>
+ <description>SETUP data, byte 6, LSB of wLength</description>
+ <addressOffset>0x498</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>WLENGTHL</name>
+ <description>SETUP data, byte 6, LSB of wLength</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>WLENGTHH</name>
+ <description>SETUP data, byte 7, MSB of wLength</description>
+ <addressOffset>0x49C</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>WLENGTHH</name>
+ <description>SETUP data, byte 7, MSB of wLength</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>SIZE</name>
+ <description>Unspecified</description>
+ <headerStructName>USBD_SIZE</headerStructName>
+ <addressOffset>0x4A0</addressOffset>
+ <register>
+ <dim>0x8</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>EPOUT[%s]</name>
+ <description>Description collection[n]: Number of bytes received last in the data stage of this OUT endpoint</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SIZE</name>
+ <description>Number of bytes received last in the data stage of this OUT endpoint</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ISOOUT</name>
+ <description>Number of bytes received last on this ISO OUT data endpoint</description>
+ <addressOffset>0x020</addressOffset>
+ <access>read-only</access>
+ <resetValue>0x00010000</resetValue>
+ <fields>
+ <field>
+ <name>SIZE</name>
+ <description>Number of bytes received last on this ISO OUT data endpoint</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ <field>
+ <name>ZERO</name>
+ <description>Zero-length data packet received</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Normal</name>
+ <description>No zero-length data received, use value in SIZE</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ZeroData</name>
+ <description>Zero-length data received, ignore value in SIZE</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable USB</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable USB</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>USB peripheral is disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>USB peripheral is enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>USBPULLUP</name>
+ <description>Control of the USB pull-up</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CONNECT</name>
+ <description>Control of the USB pull-up on the D+ line</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Pull-up is disconnected</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Pull-up is connected to D+</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DPDMVALUE</name>
+ <description>State D+ and D- lines will be forced into by the DPDMDRIVE task. The DPDMNODRIVE task reverts the control of the lines to MAC IP (no forcing).</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>STATE</name>
+ <description>State D+ and D- lines will be forced into by the DPDMDRIVE task</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Resume</name>
+ <description>D+ forced low, D- forced high (K state) for a timing preset in hardware (50 us or 5 ms, depending on bus state)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>J</name>
+ <description>D+ forced high, D- forced low (J state)</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K</name>
+ <description>D+ forced low, D- forced high (K state)</description>
+ <value>4</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DTOGGLE</name>
+ <description>Data toggle control and status</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000100</resetValue>
+ <fields>
+ <field>
+ <name>EP</name>
+ <description>Select bulk endpoint number</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ <field>
+ <name>IO</name>
+ <description>Selects IN or OUT endpoint</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Out</name>
+ <description>Selects OUT endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>In</name>
+ <description>Selects IN endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>VALUE</name>
+ <description>Data toggle value</description>
+ <lsb>8</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Nop</name>
+ <description>No action on data toggle when writing the register with this value</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Data0</name>
+ <description>Data toggle is DATA0 on endpoint set by EP and IO</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Data1</name>
+ <description>Data toggle is DATA1 on endpoint set by EP and IO</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EPINEN</name>
+ <description>Endpoint IN enable</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>IN0</name>
+ <description>Enable IN endpoint 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint IN 0 (no response to IN tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint IN 0 (response to IN tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN1</name>
+ <description>Enable IN endpoint 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint IN 1 (no response to IN tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint IN 1 (response to IN tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN2</name>
+ <description>Enable IN endpoint 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint IN 2 (no response to IN tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint IN 2 (response to IN tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN3</name>
+ <description>Enable IN endpoint 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint IN 3 (no response to IN tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint IN 3 (response to IN tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN4</name>
+ <description>Enable IN endpoint 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint IN 4 (no response to IN tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint IN 4 (response to IN tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN5</name>
+ <description>Enable IN endpoint 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint IN 5 (no response to IN tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint IN 5 (response to IN tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN6</name>
+ <description>Enable IN endpoint 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint IN 6 (no response to IN tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint IN 6 (response to IN tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>IN7</name>
+ <description>Enable IN endpoint 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint IN 7 (no response to IN tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint IN 7 (response to IN tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ISOIN</name>
+ <description>Enable ISO IN endpoint</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable ISO IN endpoint 8</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable ISO IN endpoint 8</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EPOUTEN</name>
+ <description>Endpoint OUT enable</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000001</resetValue>
+ <fields>
+ <field>
+ <name>OUT0</name>
+ <description>Enable OUT endpoint 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint OUT 0 (no response to OUT tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint OUT 0 (response to OUT tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OUT1</name>
+ <description>Enable OUT endpoint 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint OUT 1 (no response to OUT tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint OUT 1 (response to OUT tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OUT2</name>
+ <description>Enable OUT endpoint 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint OUT 2 (no response to OUT tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint OUT 2 (response to OUT tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OUT3</name>
+ <description>Enable OUT endpoint 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint OUT 3 (no response to OUT tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint OUT 3 (response to OUT tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OUT4</name>
+ <description>Enable OUT endpoint 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint OUT 4 (no response to OUT tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint OUT 4 (response to OUT tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OUT5</name>
+ <description>Enable OUT endpoint 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint OUT 5 (no response to OUT tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint OUT 5 (response to OUT tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OUT6</name>
+ <description>Enable OUT endpoint 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint OUT 6 (no response to OUT tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint OUT 6 (response to OUT tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>OUT7</name>
+ <description>Enable OUT endpoint 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable endpoint OUT 7 (no response to OUT tokens)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable endpoint OUT 7 (response to OUT tokens)</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ISOOUT</name>
+ <description>Enable ISO OUT endpoint 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable ISO OUT endpoint 8</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable ISO OUT endpoint 8</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EPSTALL</name>
+ <description>STALL endpoints</description>
+ <addressOffset>0x518</addressOffset>
+ <access>write-only</access>
+ <resetValue>0x00000000</resetValue>
+ <readAction>modifyExternal</readAction>
+ <fields>
+ <field>
+ <name>EP</name>
+ <description>Select endpoint number</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ </field>
+ <field>
+ <name>IO</name>
+ <description>Selects IN or OUT endpoint</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Out</name>
+ <description>Selects OUT endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>In</name>
+ <description>Selects IN endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>STALL</name>
+ <description>Stall selected endpoint</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>UnStall</name>
+ <description>Don't stall selected endpoint</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Stall</name>
+ <description>Stall selected endpoint</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ISOSPLIT</name>
+ <description>Controls the split of ISO buffers</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SPLIT</name>
+ <description>Controls the split of ISO buffers</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>OneDir</name>
+ <description>Full buffer dedicated to either iso IN or OUT</description>
+ <value>0x0000</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>HalfIN</name>
+ <description>Lower half for IN, upper half for OUT</description>
+ <value>0x0080</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>FRAMECNTR</name>
+ <description>Returns the current value of the start of frame counter</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>FRAMECNTR</name>
+ <description>Returns the current value of the start of frame counter</description>
+ <lsb>0</lsb>
+ <msb>10</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LOWPOWER</name>
+ <description>Controls USBD peripheral low power mode during USB suspend</description>
+ <addressOffset>0x52C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>LOWPOWER</name>
+ <description>Controls USBD peripheral low-power mode during USB suspend</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>ForceNormal</name>
+ <description>Software must write this value to exit low power mode and before performing a remote wake-up</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LowPower</name>
+ <description>Software must write this value to enter low power mode after DMA and software have finished interacting with the USB peripheral</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ISOINCONFIG</name>
+ <description>Controls the response of the ISO IN endpoint to an IN token when no data is ready to be sent</description>
+ <addressOffset>0x530</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>RESPONSE</name>
+ <description>Controls the response of the ISO IN endpoint to an IN token when no data is ready to be sent</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoResp</name>
+ <description>Endpoint does not respond in that case</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>ZeroData</name>
+ <description>Endpoint responds with a zero-length data packet in that case</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <dim>8</dim>
+ <dimIncrement>0x014</dimIncrement>
+ <name>EPIN[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>USBD_EPIN</headerStructName>
+ <addressOffset>0x600</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Description cluster[n]: Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer. Accepts any address in Data RAM.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Description cluster[n]: Maximum number of bytes to transfer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes to transfer</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Description cluster[n]: Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>ISOIN</name>
+ <description>Unspecified</description>
+ <headerStructName>USBD_ISOIN</headerStructName>
+ <addressOffset>0x6A0</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer. Accepts any address in Data RAM.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes to transfer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes to transfer</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <dim>8</dim>
+ <dimIncrement>0x014</dimIncrement>
+ <name>EPOUT[%s]</name>
+ <description>Unspecified</description>
+ <headerStructName>USBD_EPOUT</headerStructName>
+ <addressOffset>0x700</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Description cluster[n]: Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer. Accepts any address in Data RAM.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Description cluster[n]: Maximum number of bytes to transfer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes to transfer</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Description cluster[n]: Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>6</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>ISOOUT</name>
+ <description>Unspecified</description>
+ <headerStructName>USBD_ISOOUT</headerStructName>
+ <addressOffset>0x7A0</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Data pointer</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Data pointer. Accepts any address in Data RAM.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes to transfer</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>MAXCNT</name>
+ <description>Maximum number of bytes to transfer</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>AMOUNT</name>
+ <description>Number of bytes transferred in the last transaction</description>
+ <lsb>0</lsb>
+ <msb>9</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="UARTE0">
+ <name>UARTE1</name>
+ <description>UART with EasyDMA 1</description>
+ <baseAddress>0x40028000</baseAddress>
+ <interrupt>
+ <name>UARTE1</name>
+ <value>40</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>QSPI</name>
+ <description>External flash interface</description>
+ <baseAddress>0x40029000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>QSPI</name>
+ <value>41</value>
+ </interrupt>
+ <groupName>QSPI</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>TASKS_ACTIVATE</name>
+ <description>Activate QSPI interface</description>
+ <addressOffset>0x000</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_ACTIVATE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_READSTART</name>
+ <description>Start transfer from external flash memory to internal RAM</description>
+ <addressOffset>0x004</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_READSTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_WRITESTART</name>
+ <description>Start transfer from internal RAM to external flash memory</description>
+ <addressOffset>0x008</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_WRITESTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_ERASESTART</name>
+ <description>Start external flash memory erase operation</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_ERASESTART</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>TASKS_DEACTIVATE</name>
+ <description>Deactivate QSPI interface</description>
+ <addressOffset>0x010</addressOffset>
+ <access>write-only</access>
+ <fields>
+ <field>
+ <name>TASKS_DEACTIVATE</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>EVENTS_READY</name>
+ <description>QSPI peripheral is ready. This event will be generated as a response to any QSPI task.</description>
+ <addressOffset>0x100</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>EVENTS_READY</name>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTEN</name>
+ <description>Enable or disable interrupt</description>
+ <addressOffset>0x300</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Enable or disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENSET</name>
+ <description>Enable interrupt</description>
+ <addressOffset>0x304</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to enable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Enable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>INTENCLR</name>
+ <description>Disable interrupt</description>
+ <addressOffset>0x308</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READY</name>
+ <description>Write '1' to disable interrupt for READY event</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Read: Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Read: Enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Disable</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable QSPI peripheral and acquire the pins selected in PSELn registers</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable QSPI</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disable QSPI</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>Enable QSPI</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <cluster>
+ <name>READ</name>
+ <description>Unspecified</description>
+ <headerStructName>QSPI_READ</headerStructName>
+ <addressOffset>0x504</addressOffset>
+ <register>
+ <name>SRC</name>
+ <description>Flash memory source address</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Word-aligned flash memory source address.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DST</name>
+ <description>RAM destination address</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DST</name>
+ <description>Word-aligned RAM destination address.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CNT</name>
+ <description>Read transfer length</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Read transfer length in number of bytes. The length must be a multiple of 4 bytes.</description>
+ <lsb>0</lsb>
+ <msb>20</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>WRITE</name>
+ <description>Unspecified</description>
+ <headerStructName>QSPI_WRITE</headerStructName>
+ <addressOffset>0x510</addressOffset>
+ <register>
+ <name>DST</name>
+ <description>Flash destination address</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DST</name>
+ <description>Word-aligned flash destination address.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>SRC</name>
+ <description>RAM source address</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>SRC</name>
+ <description>Word-aligned RAM source address.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CNT</name>
+ <description>Write transfer length</description>
+ <addressOffset>0x008</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>CNT</name>
+ <description>Write transfer length in number of bytes. The length must be a multiple of 4 bytes.</description>
+ <lsb>0</lsb>
+ <msb>20</msb>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>ERASE</name>
+ <description>Unspecified</description>
+ <headerStructName>QSPI_ERASE</headerStructName>
+ <addressOffset>0x51C</addressOffset>
+ <register>
+ <name>PTR</name>
+ <description>Start address of flash block to be erased</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PTR</name>
+ <description>Word-aligned start address of block to be erased.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LEN</name>
+ <description>Size of block to be erased.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>LEN</name>
+ <description>LEN</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>4KB</name>
+ <description>Erase 4 kB block (flash command 0x20)</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>64KB</name>
+ <description>Erase 64 kB block (flash command 0xD8)</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>All</name>
+ <description>Erase all (flash command 0xC7)</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <cluster>
+ <name>PSEL</name>
+ <description>Unspecified</description>
+ <headerStructName>QSPI_PSEL</headerStructName>
+ <addressOffset>0x524</addressOffset>
+ <register>
+ <name>SCK</name>
+ <description>Pin select for serial clock SCK</description>
+ <addressOffset>0x000</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CSN</name>
+ <description>Pin select for chip select signal CSN.</description>
+ <addressOffset>0x004</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IO0</name>
+ <description>Pin select for serial data MOSI/IO0.</description>
+ <addressOffset>0x00C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IO1</name>
+ <description>Pin select for serial data MISO/IO1.</description>
+ <addressOffset>0x010</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IO2</name>
+ <description>Pin select for serial data IO2.</description>
+ <addressOffset>0x014</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IO3</name>
+ <description>Pin select for serial data IO3.</description>
+ <addressOffset>0x018</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>PIN</name>
+ <description>Pin number</description>
+ <lsb>0</lsb>
+ <msb>4</msb>
+ </field>
+ <field>
+ <name>PORT</name>
+ <description>Port number</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ </field>
+ <field>
+ <name>CONNECT</name>
+ <description>Connection</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disconnected</name>
+ <description>Disconnect</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Connected</name>
+ <description>Connect</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </cluster>
+ <register>
+ <name>XIPOFFSET</name>
+ <description>Address offset into the external memory for Execute in Place operation.</description>
+ <addressOffset>0x540</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>XIPOFFSET</name>
+ <description>Address offset into the external memory for Execute in Place operation. Value must be a multiple of 4.</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IFCONFIG0</name>
+ <description>Interface configuration.</description>
+ <addressOffset>0x544</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>READOC</name>
+ <description>Configure number of data lines and opcode used for reading.</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>FASTREAD</name>
+ <description>Single data line SPI. FAST_READ (opcode 0x0B).</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>READ2O</name>
+ <description>Dual data line SPI. READ2O (opcode 0x3B).</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>READ2IO</name>
+ <description>Dual data line SPI. READ2IO (opcode 0xBB).</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>READ4O</name>
+ <description>Quad data line SPI. READ4O (opcode 0x6B).</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>READ4IO</name>
+ <description>Quad data line SPI. READ4IO (opcode 0xEB).</description>
+ <value>4</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WRITEOC</name>
+ <description>Configure number of data lines and opcode used for writing.</description>
+ <lsb>3</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>PP</name>
+ <description>Single data line SPI. PP (opcode 0x02).</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>PP2O</name>
+ <description>Dual data line SPI. PP2O (opcode 0xA2).</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>PP4O</name>
+ <description>Quad data line SPI. PP4O (opcode 0x32).</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>PP4IO</name>
+ <description>Quad data line SPI. PP4IO (opcode 0x38).</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>ADDRMODE</name>
+ <description>Addressing mode.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>24BIT</name>
+ <description>24-bit addressing.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>32BIT</name>
+ <description>32-bit addressing.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DPMENABLE</name>
+ <description>Enable deep power-down mode (DPM) feature.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Disable DPM feature.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Enable DPM feature.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PPSIZE</name>
+ <description>Page size for commands PP, PP2O, PP4O and PP4IO.</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>256Bytes</name>
+ <description>256 bytes.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>512Bytes</name>
+ <description>512 bytes.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IFCONFIG1</name>
+ <description>Interface configuration.</description>
+ <addressOffset>0x600</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00040480</resetValue>
+ <fields>
+ <field>
+ <name>SCKDELAY</name>
+ <description>Minimum amount of time that the CSN pin must stay high before it can go low again. Value is specified in number of 16 MHz periods (62.5 ns).</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>DPMEN</name>
+ <description>Enter/exit deep power-down mode (DPM) for external flash memory.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Exit</name>
+ <description>Exit DPM.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enter</name>
+ <description>Enter DPM.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SPIMODE</name>
+ <description>Select SPI mode.</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>MODE0</name>
+ <description>Mode 0: Data are captured on the clock rising edge and data is output on a falling edge. Base level of clock is 0 (CPOL=0, CPHA=0).</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>MODE3</name>
+ <description>Mode 3: Data are captured on the clock falling edge and data is output on a rising edge. Base level of clock is 1 (CPOL=1, CPHA=1).</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SCKFREQ</name>
+ <description>SCK frequency is given as 32 MHz / (SCKFREQ + 1).</description>
+ <lsb>28</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>STATUS</name>
+ <description>Status register.</description>
+ <addressOffset>0x604</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>DPM</name>
+ <description>Deep power-down mode (DPM) status of external flash.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>External flash is not in DPM.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>External flash is in DPM.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>READY</name>
+ <description>Ready status.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>READY</name>
+ <description>QSPI peripheral is ready. It is allowed to trigger new tasks, writing custom instructions or enter/exit DPM.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>BUSY</name>
+ <description>QSPI peripheral is busy. It is not allowed to trigger any new tasks, writing custom instructions or enter/exit DPM.</description>
+ <value>0</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SREG</name>
+ <description>Value of external flash device Status Register. When the external flash has two bytes status register this field includes the value of the low byte.</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DPMDUR</name>
+ <description>Set the duration required to enter/exit deep power-down mode (DPM).</description>
+ <addressOffset>0x614</addressOffset>
+ <access>read-write</access>
+ <resetValue>0xFFFFFFFF</resetValue>
+ <fields>
+ <field>
+ <name>ENTER</name>
+ <description>Duration needed by external flash to enter DPM. Duration is given as ENTER * 256 * 62.5 ns.</description>
+ <lsb>0</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>EXIT</name>
+ <description>Duration needed by external flash to exit DPM. Duration is given as EXIT * 256 * 62.5 ns.</description>
+ <lsb>16</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>ADDRCONF</name>
+ <description>Extended address configuration.</description>
+ <addressOffset>0x624</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x000000B7</resetValue>
+ <fields>
+ <field>
+ <name>OPCODE</name>
+ <description>Opcode that enters the 32-bit addressing mode.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>BYTE0</name>
+ <description>Byte 0 following opcode.</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>BYTE1</name>
+ <description>Byte 1 following byte 0.</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>MODE</name>
+ <description>Extended addressing mode.</description>
+ <lsb>24</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NoInstr</name>
+ <description>Do not send any instruction.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Opcode</name>
+ <description>Send opcode.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>OpByte0</name>
+ <description>Send opcode, byte0.</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>All</name>
+ <description>Send opcode, byte0, byte1.</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WIPWAIT</name>
+ <description>Wait for write complete before sending command.</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>No wait.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Wait.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WREN</name>
+ <description>Send WREN (write enable opcode 0x06) before instruction.</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Do not send WREN.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Send WREN.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CINSTRCONF</name>
+ <description>Custom instruction configuration register.</description>
+ <addressOffset>0x634</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00002000</resetValue>
+ <fields>
+ <field>
+ <name>OPCODE</name>
+ <description>Opcode of Custom instruction.</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>LENGTH</name>
+ <description>Length of custom instruction in number of bytes.</description>
+ <lsb>8</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>1B</name>
+ <description>Send opcode only.</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>2B</name>
+ <description>Send opcode, CINSTRDAT0.BYTE0.</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>3B</name>
+ <description>Send opcode, CINSTRDAT0.BYTE0 -&amp;gt; CINSTRDAT0.BYTE1.</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>4B</name>
+ <description>Send opcode, CINSTRDAT0.BYTE0 -&amp;gt; CINSTRDAT0.BYTE2.</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>5B</name>
+ <description>Send opcode, CINSTRDAT0.BYTE0 -&amp;gt; CINSTRDAT0.BYTE3.</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>6B</name>
+ <description>Send opcode, CINSTRDAT0.BYTE0 -&amp;gt; CINSTRDAT1.BYTE4.</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>7B</name>
+ <description>Send opcode, CINSTRDAT0.BYTE0 -&amp;gt; CINSTRDAT1.BYTE5.</description>
+ <value>7</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>8B</name>
+ <description>Send opcode, CINSTRDAT0.BYTE0 -&amp;gt; CINSTRDAT1.BYTE6.</description>
+ <value>8</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>9B</name>
+ <description>Send opcode, CINSTRDAT0.BYTE0 -&amp;gt; CINSTRDAT1.BYTE7.</description>
+ <value>9</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LIO2</name>
+ <description>Level of the IO2 pin (if connected) during transmission of custom instruction.</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ </field>
+ <field>
+ <name>LIO3</name>
+ <description>Level of the IO3 pin (if connected) during transmission of custom instruction.</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ </field>
+ <field>
+ <name>WIPWAIT</name>
+ <description>Wait for write complete before sending command.</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>No wait.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Wait.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>WREN</name>
+ <description>Send WREN (write enable opcode 0x06) before instruction.</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Do not send WREN.</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Send WREN.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LFEN</name>
+ <description>Enable long frame mode. When enabled, a custom instruction transaction has to be ended by writing the LFSTOP field.</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disable</name>
+ <description>Long frame mode disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enable</name>
+ <description>Long frame mode enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LFSTOP</name>
+ <description>Stop (finalize) long frame transaction</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Stop</name>
+ <description>Stop</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CINSTRDAT0</name>
+ <description>Custom instruction data register 0.</description>
+ <addressOffset>0x638</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BYTE0</name>
+ <description>Data byte 0</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>BYTE1</name>
+ <description>Data byte 1</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>BYTE2</name>
+ <description>Data byte 2</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>BYTE3</name>
+ <description>Data byte 3</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>CINSTRDAT1</name>
+ <description>Custom instruction data register 1.</description>
+ <addressOffset>0x63C</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>BYTE4</name>
+ <description>Data byte 4</description>
+ <lsb>0</lsb>
+ <msb>7</msb>
+ </field>
+ <field>
+ <name>BYTE5</name>
+ <description>Data byte 5</description>
+ <lsb>8</lsb>
+ <msb>15</msb>
+ </field>
+ <field>
+ <name>BYTE6</name>
+ <description>Data byte 6</description>
+ <lsb>16</lsb>
+ <msb>23</msb>
+ </field>
+ <field>
+ <name>BYTE7</name>
+ <description>Data byte 7</description>
+ <lsb>24</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IFTIMING</name>
+ <description>SPI interface timing.</description>
+ <addressOffset>0x640</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000200</resetValue>
+ <fields>
+ <field>
+ <name>RXDELAY</name>
+ <description>Timing related to sampling of the input serial data. The value of RXDELAY specifies the number of 64 MHz cycles (15.625 ns) delay from the the rising edge of the SPI Clock (SCK) until the input serial data is sampled. As en example, if set to 0 the input serial data is sampled on the rising edge of SCK.</description>
+ <lsb>8</lsb>
+ <msb>10</msb>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="PWM0">
+ <name>PWM3</name>
+ <description>Pulse width modulation unit 3</description>
+ <baseAddress>0x4002D000</baseAddress>
+ <interrupt>
+ <name>PWM3</name>
+ <value>45</value>
+ </interrupt>
+ </peripheral>
+ <peripheral derivedFrom="SPIM0">
+ <name>SPIM3</name>
+ <description>Serial Peripheral Interface Master with EasyDMA 3</description>
+ <baseAddress>0x4002F000</baseAddress>
+ <interrupt>
+ <name>SPIM3</name>
+ <value>47</value>
+ </interrupt>
+ </peripheral>
+ <peripheral>
+ <name>P0</name>
+ <description>GPIO Port 1</description>
+ <baseAddress>0x50000000</baseAddress>
+ <headerStructName>GPIO</headerStructName>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x1000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <groupName>GPIO</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>OUT</name>
+ <description>Write GPIO port</description>
+ <addressOffset>0x504</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OUTSET</name>
+ <description>Set individual bits in GPIO port</description>
+ <addressOffset>0x508</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToSet</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets the pin high; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>OUTCLR</name>
+ <description>Clear individual bits in GPIO port</description>
+ <addressOffset>0x50C</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Read: pin driver is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Read: pin driver is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets the pin low; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>IN</name>
+ <description>Read GPIO port</description>
+ <addressOffset>0x510</addressOffset>
+ <access>read-only</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Pin input is low</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Pin input is high</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIR</name>
+ <description>Direction of GPIO pins</description>
+ <addressOffset>0x514</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIRSET</name>
+ <description>DIR set register</description>
+ <addressOffset>0x518</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToSet</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Set as output pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Set as output pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Set as output pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Set as output pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Set as output pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Set as output pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Set as output pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Set as output pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Set as output pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Set as output pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Set as output pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Set as output pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Set as output pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Set as output pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Set as output pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Set as output pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Set as output pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Set as output pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Set as output pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Set as output pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Set as output pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Set as output pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Set as output pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Set as output pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Set as output pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Set as output pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Set as output pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Set as output pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Set as output pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Set as output pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Set as output pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Set as output pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Set</name>
+ <description>Write: writing a '1' sets pin to output; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DIRCLR</name>
+ <description>DIR clear register</description>
+ <addressOffset>0x51C</addressOffset>
+ <access>read-write</access>
+ <modifiedWriteValues>oneToClear</modifiedWriteValues>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Set as input pin 0</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Set as input pin 1</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Set as input pin 2</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Set as input pin 3</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Set as input pin 4</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Set as input pin 5</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Set as input pin 6</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Set as input pin 7</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Set as input pin 8</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Set as input pin 9</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Set as input pin 10</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Set as input pin 11</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Set as input pin 12</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Set as input pin 13</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Set as input pin 14</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Set as input pin 15</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Set as input pin 16</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Set as input pin 17</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Set as input pin 18</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Set as input pin 19</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Set as input pin 20</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Set as input pin 21</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Set as input pin 22</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Set as input pin 23</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Set as input pin 24</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Set as input pin 25</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Set as input pin 26</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Set as input pin 27</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Set as input pin 28</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Set as input pin 29</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Set as input pin 30</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Set as input pin 31</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <usage>read</usage>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Read: pin set as input</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Read: pin set as output</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ <enumeratedValues>
+ <usage>write</usage>
+ <enumeratedValue>
+ <name>Clear</name>
+ <description>Write: writing a '1' sets pin to input; writing a '0' has no effect</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>LATCH</name>
+ <description>Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF[n].SENSE registers</description>
+ <addressOffset>0x520</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>PIN0</name>
+ <description>Status on whether PIN0 has met criteria set in PIN_CNF0.SENSE register. Write '1' to clear.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN1</name>
+ <description>Status on whether PIN1 has met criteria set in PIN_CNF1.SENSE register. Write '1' to clear.</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN2</name>
+ <description>Status on whether PIN2 has met criteria set in PIN_CNF2.SENSE register. Write '1' to clear.</description>
+ <lsb>2</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN3</name>
+ <description>Status on whether PIN3 has met criteria set in PIN_CNF3.SENSE register. Write '1' to clear.</description>
+ <lsb>3</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN4</name>
+ <description>Status on whether PIN4 has met criteria set in PIN_CNF4.SENSE register. Write '1' to clear.</description>
+ <lsb>4</lsb>
+ <msb>4</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN5</name>
+ <description>Status on whether PIN5 has met criteria set in PIN_CNF5.SENSE register. Write '1' to clear.</description>
+ <lsb>5</lsb>
+ <msb>5</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN6</name>
+ <description>Status on whether PIN6 has met criteria set in PIN_CNF6.SENSE register. Write '1' to clear.</description>
+ <lsb>6</lsb>
+ <msb>6</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN7</name>
+ <description>Status on whether PIN7 has met criteria set in PIN_CNF7.SENSE register. Write '1' to clear.</description>
+ <lsb>7</lsb>
+ <msb>7</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN8</name>
+ <description>Status on whether PIN8 has met criteria set in PIN_CNF8.SENSE register. Write '1' to clear.</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN9</name>
+ <description>Status on whether PIN9 has met criteria set in PIN_CNF9.SENSE register. Write '1' to clear.</description>
+ <lsb>9</lsb>
+ <msb>9</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN10</name>
+ <description>Status on whether PIN10 has met criteria set in PIN_CNF10.SENSE register. Write '1' to clear.</description>
+ <lsb>10</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN11</name>
+ <description>Status on whether PIN11 has met criteria set in PIN_CNF11.SENSE register. Write '1' to clear.</description>
+ <lsb>11</lsb>
+ <msb>11</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN12</name>
+ <description>Status on whether PIN12 has met criteria set in PIN_CNF12.SENSE register. Write '1' to clear.</description>
+ <lsb>12</lsb>
+ <msb>12</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN13</name>
+ <description>Status on whether PIN13 has met criteria set in PIN_CNF13.SENSE register. Write '1' to clear.</description>
+ <lsb>13</lsb>
+ <msb>13</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN14</name>
+ <description>Status on whether PIN14 has met criteria set in PIN_CNF14.SENSE register. Write '1' to clear.</description>
+ <lsb>14</lsb>
+ <msb>14</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN15</name>
+ <description>Status on whether PIN15 has met criteria set in PIN_CNF15.SENSE register. Write '1' to clear.</description>
+ <lsb>15</lsb>
+ <msb>15</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN16</name>
+ <description>Status on whether PIN16 has met criteria set in PIN_CNF16.SENSE register. Write '1' to clear.</description>
+ <lsb>16</lsb>
+ <msb>16</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN17</name>
+ <description>Status on whether PIN17 has met criteria set in PIN_CNF17.SENSE register. Write '1' to clear.</description>
+ <lsb>17</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN18</name>
+ <description>Status on whether PIN18 has met criteria set in PIN_CNF18.SENSE register. Write '1' to clear.</description>
+ <lsb>18</lsb>
+ <msb>18</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN19</name>
+ <description>Status on whether PIN19 has met criteria set in PIN_CNF19.SENSE register. Write '1' to clear.</description>
+ <lsb>19</lsb>
+ <msb>19</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN20</name>
+ <description>Status on whether PIN20 has met criteria set in PIN_CNF20.SENSE register. Write '1' to clear.</description>
+ <lsb>20</lsb>
+ <msb>20</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN21</name>
+ <description>Status on whether PIN21 has met criteria set in PIN_CNF21.SENSE register. Write '1' to clear.</description>
+ <lsb>21</lsb>
+ <msb>21</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN22</name>
+ <description>Status on whether PIN22 has met criteria set in PIN_CNF22.SENSE register. Write '1' to clear.</description>
+ <lsb>22</lsb>
+ <msb>22</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN23</name>
+ <description>Status on whether PIN23 has met criteria set in PIN_CNF23.SENSE register. Write '1' to clear.</description>
+ <lsb>23</lsb>
+ <msb>23</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN24</name>
+ <description>Status on whether PIN24 has met criteria set in PIN_CNF24.SENSE register. Write '1' to clear.</description>
+ <lsb>24</lsb>
+ <msb>24</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN25</name>
+ <description>Status on whether PIN25 has met criteria set in PIN_CNF25.SENSE register. Write '1' to clear.</description>
+ <lsb>25</lsb>
+ <msb>25</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN26</name>
+ <description>Status on whether PIN26 has met criteria set in PIN_CNF26.SENSE register. Write '1' to clear.</description>
+ <lsb>26</lsb>
+ <msb>26</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN27</name>
+ <description>Status on whether PIN27 has met criteria set in PIN_CNF27.SENSE register. Write '1' to clear.</description>
+ <lsb>27</lsb>
+ <msb>27</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN28</name>
+ <description>Status on whether PIN28 has met criteria set in PIN_CNF28.SENSE register. Write '1' to clear.</description>
+ <lsb>28</lsb>
+ <msb>28</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN29</name>
+ <description>Status on whether PIN29 has met criteria set in PIN_CNF29.SENSE register. Write '1' to clear.</description>
+ <lsb>29</lsb>
+ <msb>29</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN30</name>
+ <description>Status on whether PIN30 has met criteria set in PIN_CNF30.SENSE register. Write '1' to clear.</description>
+ <lsb>30</lsb>
+ <msb>30</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PIN31</name>
+ <description>Status on whether PIN31 has met criteria set in PIN_CNF31.SENSE register. Write '1' to clear.</description>
+ <lsb>31</lsb>
+ <msb>31</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>NotLatched</name>
+ <description>Criteria has not been met</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Latched</name>
+ <description>Criteria has been met</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>DETECTMODE</name>
+ <description>Select between default DETECT signal behaviour and LDETECT mode</description>
+ <addressOffset>0x524</addressOffset>
+ <access>read-write</access>
+ <fields>
+ <field>
+ <name>DETECTMODE</name>
+ <description>Select between default DETECT signal behaviour and LDETECT mode</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Default</name>
+ <description>DETECT directly connected to PIN DETECT signals</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>LDETECT</name>
+ <description>Use the latched LDETECT behaviour</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <dim>0x20</dim>
+ <dimIncrement>0x4</dimIncrement>
+ <name>PIN_CNF[%s]</name>
+ <description>Description collection[n]: Configuration of GPIO pins</description>
+ <addressOffset>0x700</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000002</resetValue>
+ <fields>
+ <field>
+ <name>DIR</name>
+ <description>Pin direction. Same physical register as DIR register</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Input</name>
+ <description>Configure pin as an input pin</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Output</name>
+ <description>Configure pin as an output pin</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>INPUT</name>
+ <description>Connect or disconnect input buffer</description>
+ <lsb>1</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Connect</name>
+ <description>Connect input buffer</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Disconnect</name>
+ <description>Disconnect input buffer</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>PULL</name>
+ <description>Pull configuration</description>
+ <lsb>2</lsb>
+ <msb>3</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>No pull</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pulldown</name>
+ <description>Pull down on pin</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Pullup</name>
+ <description>Pull up on pin</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>DRIVE</name>
+ <description>Drive configuration</description>
+ <lsb>8</lsb>
+ <msb>10</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>S0S1</name>
+ <description>Standard '0', standard '1'</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>H0S1</name>
+ <description>High drive '0', standard '1'</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>S0H1</name>
+ <description>Standard '0', high drive '1'</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>H0H1</name>
+ <description>High drive '0', high 'drive '1''</description>
+ <value>3</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>D0S1</name>
+ <description>Disconnect '0' standard '1' (normally used for wired-or connections)</description>
+ <value>4</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>D0H1</name>
+ <description>Disconnect '0', high drive '1' (normally used for wired-or connections)</description>
+ <value>5</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>S0D1</name>
+ <description>Standard '0'. disconnect '1' (normally used for wired-and connections)</description>
+ <value>6</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>H0D1</name>
+ <description>High drive '0', disconnect '1' (normally used for wired-and connections)</description>
+ <value>7</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>SENSE</name>
+ <description>Pin sensing mechanism</description>
+ <lsb>16</lsb>
+ <msb>17</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>Disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>High</name>
+ <description>Sense for high level</description>
+ <value>2</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Low</name>
+ <description>Sense for low level</description>
+ <value>3</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral derivedFrom="P0">
+ <name>P1</name>
+ <description>GPIO Port 2</description>
+ <baseAddress>0x50000300</baseAddress>
+ <alternatePeripheral>P0</alternatePeripheral>
+ </peripheral>
+ <peripheral>
+ <name>CC_HOST_RGF</name>
+ <description>CRYPTOCELL HOST_RGF interface</description>
+ <baseAddress>0x5002A000</baseAddress>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x2000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <groupName>CC_HOST_RGF</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>HOST_CRYPTOKEY_SEL</name>
+ <description>AES hardware key select</description>
+ <addressOffset>0x1A38</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>HOST_CRYPTOKEY_SEL</name>
+ <description>Select the source of the HW key that is used by the AES engine</description>
+ <lsb>0</lsb>
+ <msb>1</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>K_DR</name>
+ <description>Use device root key K_DR from CRYPTOCELL AO power domain</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>K_PRTL</name>
+ <description>Use hard-coded RTL key K_PRTL</description>
+ <value>1</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Session</name>
+ <description>Use provided session key</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HOST_IOT_KPRTL_LOCK</name>
+ <description>This write-once register is the K_PRTL lock register. When this register is set, K_PRTL can not be used and a zeroed key will be used instead. The value of this register is saved in the CRYPTOCELL AO power domain.</description>
+ <addressOffset>0x1A4C</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>HOST_IOT_KPRTL_LOCK</name>
+ <description>This register is the K_PRTL lock register. When this register is set, K_PRTL can not be used and a zeroed key will be used instead. The value of this register is saved in the CRYPTOCELL AO power domain.</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>K_PRTL can be selected for use from register HOST_CRYPTOKEY_SEL</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>K_PRTL has been locked until next power-on reset (POR). If K_PRTL is selected anyway, a zeroed key will be used instead.</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HOST_IOT_KDR0</name>
+ <description>This register holds bits 31:0 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain. Reading from this address returns the K_DR valid status indicating if K_DR is successfully retained.</description>
+ <addressOffset>0x1A50</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>HOST_IOT_KDR0</name>
+ <description>Write: K_DR bits 31:0 Read: 0x00000000 when 128-bit K_DR key value is not yet retained in the CRYPTOCELL AO power domain Read: 0x00000001 when 128-bit K_DR key value is successfully retained in the CRYPTOCELL AO power domain</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HOST_IOT_KDR1</name>
+ <description>This register holds bits 63:32 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain.</description>
+ <addressOffset>0x1A54</addressOffset>
+ <access>write-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>HOST_IOT_KDR1</name>
+ <description>K_DR bits 63:32</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HOST_IOT_KDR2</name>
+ <description>This register holds bits 95:64 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain.</description>
+ <addressOffset>0x1A58</addressOffset>
+ <access>write-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>HOST_IOT_KDR2</name>
+ <description>K_DR bits 95:64</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HOST_IOT_KDR3</name>
+ <description>This register holds bits 127:96 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain.</description>
+ <addressOffset>0x1A5C</addressOffset>
+ <access>write-only</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>HOST_IOT_KDR3</name>
+ <description>K_DR bits 127:96</description>
+ <lsb>0</lsb>
+ <msb>31</msb>
+ </field>
+ </fields>
+ </register>
+ <register>
+ <name>HOST_IOT_LCS</name>
+ <description>Controls lifecycle state (LCS) for CRYPTOCELL subsystem</description>
+ <addressOffset>0x1A60</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000002</resetValue>
+ <fields>
+ <field>
+ <name>LCS</name>
+ <description>Lifecycle state value. This field is write-once per reset.</description>
+ <lsb>0</lsb>
+ <msb>2</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Debug</name>
+ <description>CC310 operates in debug mode</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Secure</name>
+ <description>CC310 operates in secure mode</description>
+ <value>2</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ <field>
+ <name>LCS_IS_VALID</name>
+ <description>This field is read-only and indicates if CRYPTOCELL LCS has been successfully configured since last reset</description>
+ <lsb>8</lsb>
+ <msb>8</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Invalid</name>
+ <description>A valid LCS is not yet retained in the CRYPTOCELL AO power domain</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Valid</name>
+ <description>A valid LCS is successfully retained in the CRYPTOCELL AO power domain</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ <peripheral>
+ <name>CRYPTOCELL</name>
+ <description>ARM TrustZone CryptoCell register interface</description>
+ <baseAddress>0x5002A000</baseAddress>
+ <alternatePeripheral>CC_HOST_RGF</alternatePeripheral>
+ <addressBlock>
+ <offset>0</offset>
+ <size>0x2000</size>
+ <usage>registers</usage>
+ </addressBlock>
+ <interrupt>
+ <name>CRYPTOCELL</name>
+ <value>42</value>
+ </interrupt>
+ <groupName>CRYPTOCELL</groupName>
+ <size>0x20</size>
+ <registers>
+ <register>
+ <name>ENABLE</name>
+ <description>Enable CRYPTOCELL subsystem</description>
+ <addressOffset>0x500</addressOffset>
+ <access>read-write</access>
+ <resetValue>0x00000000</resetValue>
+ <fields>
+ <field>
+ <name>ENABLE</name>
+ <description>Enable or disable the CRYPTOCELL subsystem</description>
+ <lsb>0</lsb>
+ <msb>0</msb>
+ <enumeratedValues>
+ <enumeratedValue>
+ <name>Disabled</name>
+ <description>CRYPTOCELL subsystem disabled</description>
+ <value>0</value>
+ </enumeratedValue>
+ <enumeratedValue>
+ <name>Enabled</name>
+ <description>CRYPTOCELL subsystem enabled</description>
+ <value>1</value>
+ </enumeratedValue>
+ </enumeratedValues>
+ </field>
+ </fields>
+ </register>
+ </registers>
+ </peripheral>
+ </peripherals>
+</device> \ No newline at end of file
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840_bitfields.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840_bitfields.h
new file mode 100644
index 0000000..64cd8b9
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840_bitfields.h
@@ -0,0 +1,16915 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef __NRF52840_BITS_H
+#define __NRF52840_BITS_H
+
+/*lint ++flb "Enter library region" */
+
+/* Peripheral: AAR */
+/* Description: Accelerated Address Resolver */
+
+/* Register: AAR_TASKS_START */
+/* Description: Start resolving addresses based on IRKs specified in the IRK data structure */
+
+/* Bit 0 : */
+#define AAR_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define AAR_TASKS_START_TASKS_START_Msk (0x1UL << AAR_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: AAR_TASKS_STOP */
+/* Description: Stop resolving addresses */
+
+/* Bit 0 : */
+#define AAR_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define AAR_TASKS_STOP_TASKS_STOP_Msk (0x1UL << AAR_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: AAR_EVENTS_END */
+/* Description: Address resolution procedure complete */
+
+/* Bit 0 : */
+#define AAR_EVENTS_END_EVENTS_END_Pos (0UL) /*!< Position of EVENTS_END field. */
+#define AAR_EVENTS_END_EVENTS_END_Msk (0x1UL << AAR_EVENTS_END_EVENTS_END_Pos) /*!< Bit mask of EVENTS_END field. */
+
+/* Register: AAR_EVENTS_RESOLVED */
+/* Description: Address resolved */
+
+/* Bit 0 : */
+#define AAR_EVENTS_RESOLVED_EVENTS_RESOLVED_Pos (0UL) /*!< Position of EVENTS_RESOLVED field. */
+#define AAR_EVENTS_RESOLVED_EVENTS_RESOLVED_Msk (0x1UL << AAR_EVENTS_RESOLVED_EVENTS_RESOLVED_Pos) /*!< Bit mask of EVENTS_RESOLVED field. */
+
+/* Register: AAR_EVENTS_NOTRESOLVED */
+/* Description: Address not resolved */
+
+/* Bit 0 : */
+#define AAR_EVENTS_NOTRESOLVED_EVENTS_NOTRESOLVED_Pos (0UL) /*!< Position of EVENTS_NOTRESOLVED field. */
+#define AAR_EVENTS_NOTRESOLVED_EVENTS_NOTRESOLVED_Msk (0x1UL << AAR_EVENTS_NOTRESOLVED_EVENTS_NOTRESOLVED_Pos) /*!< Bit mask of EVENTS_NOTRESOLVED field. */
+
+/* Register: AAR_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 2 : Write '1' to enable interrupt for NOTRESOLVED event */
+#define AAR_INTENSET_NOTRESOLVED_Pos (2UL) /*!< Position of NOTRESOLVED field. */
+#define AAR_INTENSET_NOTRESOLVED_Msk (0x1UL << AAR_INTENSET_NOTRESOLVED_Pos) /*!< Bit mask of NOTRESOLVED field. */
+#define AAR_INTENSET_NOTRESOLVED_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENSET_NOTRESOLVED_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENSET_NOTRESOLVED_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for RESOLVED event */
+#define AAR_INTENSET_RESOLVED_Pos (1UL) /*!< Position of RESOLVED field. */
+#define AAR_INTENSET_RESOLVED_Msk (0x1UL << AAR_INTENSET_RESOLVED_Pos) /*!< Bit mask of RESOLVED field. */
+#define AAR_INTENSET_RESOLVED_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENSET_RESOLVED_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENSET_RESOLVED_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for END event */
+#define AAR_INTENSET_END_Pos (0UL) /*!< Position of END field. */
+#define AAR_INTENSET_END_Msk (0x1UL << AAR_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define AAR_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Register: AAR_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 2 : Write '1' to disable interrupt for NOTRESOLVED event */
+#define AAR_INTENCLR_NOTRESOLVED_Pos (2UL) /*!< Position of NOTRESOLVED field. */
+#define AAR_INTENCLR_NOTRESOLVED_Msk (0x1UL << AAR_INTENCLR_NOTRESOLVED_Pos) /*!< Bit mask of NOTRESOLVED field. */
+#define AAR_INTENCLR_NOTRESOLVED_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENCLR_NOTRESOLVED_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENCLR_NOTRESOLVED_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for RESOLVED event */
+#define AAR_INTENCLR_RESOLVED_Pos (1UL) /*!< Position of RESOLVED field. */
+#define AAR_INTENCLR_RESOLVED_Msk (0x1UL << AAR_INTENCLR_RESOLVED_Pos) /*!< Bit mask of RESOLVED field. */
+#define AAR_INTENCLR_RESOLVED_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENCLR_RESOLVED_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENCLR_RESOLVED_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for END event */
+#define AAR_INTENCLR_END_Pos (0UL) /*!< Position of END field. */
+#define AAR_INTENCLR_END_Msk (0x1UL << AAR_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define AAR_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Register: AAR_STATUS */
+/* Description: Resolution status */
+
+/* Bits 3..0 : The IRK that was used last time an address was resolved */
+#define AAR_STATUS_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define AAR_STATUS_STATUS_Msk (0xFUL << AAR_STATUS_STATUS_Pos) /*!< Bit mask of STATUS field. */
+
+/* Register: AAR_ENABLE */
+/* Description: Enable AAR */
+
+/* Bits 1..0 : Enable or disable AAR */
+#define AAR_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define AAR_ENABLE_ENABLE_Msk (0x3UL << AAR_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define AAR_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define AAR_ENABLE_ENABLE_Enabled (3UL) /*!< Enable */
+
+/* Register: AAR_NIRK */
+/* Description: Number of IRKs */
+
+/* Bits 4..0 : Number of Identity root keys available in the IRK data structure */
+#define AAR_NIRK_NIRK_Pos (0UL) /*!< Position of NIRK field. */
+#define AAR_NIRK_NIRK_Msk (0x1FUL << AAR_NIRK_NIRK_Pos) /*!< Bit mask of NIRK field. */
+
+/* Register: AAR_IRKPTR */
+/* Description: Pointer to IRK data structure */
+
+/* Bits 31..0 : Pointer to the IRK data structure */
+#define AAR_IRKPTR_IRKPTR_Pos (0UL) /*!< Position of IRKPTR field. */
+#define AAR_IRKPTR_IRKPTR_Msk (0xFFFFFFFFUL << AAR_IRKPTR_IRKPTR_Pos) /*!< Bit mask of IRKPTR field. */
+
+/* Register: AAR_ADDRPTR */
+/* Description: Pointer to the resolvable address */
+
+/* Bits 31..0 : Pointer to the resolvable address (6-bytes) */
+#define AAR_ADDRPTR_ADDRPTR_Pos (0UL) /*!< Position of ADDRPTR field. */
+#define AAR_ADDRPTR_ADDRPTR_Msk (0xFFFFFFFFUL << AAR_ADDRPTR_ADDRPTR_Pos) /*!< Bit mask of ADDRPTR field. */
+
+/* Register: AAR_SCRATCHPTR */
+/* Description: Pointer to data area used for temporary storage */
+
+/* Bits 31..0 : Pointer to a scratch data area used for temporary storage during resolution.A space of minimum 3 bytes must be reserved. */
+#define AAR_SCRATCHPTR_SCRATCHPTR_Pos (0UL) /*!< Position of SCRATCHPTR field. */
+#define AAR_SCRATCHPTR_SCRATCHPTR_Msk (0xFFFFFFFFUL << AAR_SCRATCHPTR_SCRATCHPTR_Pos) /*!< Bit mask of SCRATCHPTR field. */
+
+
+/* Peripheral: ACL */
+/* Description: Access control lists */
+
+/* Register: ACL_ACL_ADDR */
+/* Description: Description cluster[n]: Configure the word-aligned start address of region n to protect */
+
+/* Bits 31..0 : Valid word-aligned start address of region n to protect. Address must point to a flash page boundary. */
+#define ACL_ACL_ADDR_ADDR_Pos (0UL) /*!< Position of ADDR field. */
+#define ACL_ACL_ADDR_ADDR_Msk (0xFFFFFFFFUL << ACL_ACL_ADDR_ADDR_Pos) /*!< Bit mask of ADDR field. */
+
+/* Register: ACL_ACL_SIZE */
+/* Description: Description cluster[n]: Size of region to protect counting from address ACL[n].ADDR. Write '0' as no effect. */
+
+/* Bits 31..0 : Size of flash region n in bytes. Must be a multiple of the flash page size, and the maximum region size is limited to 512kB. */
+#define ACL_ACL_SIZE_SIZE_Pos (0UL) /*!< Position of SIZE field. */
+#define ACL_ACL_SIZE_SIZE_Msk (0xFFFFFFFFUL << ACL_ACL_SIZE_SIZE_Pos) /*!< Bit mask of SIZE field. */
+
+/* Register: ACL_ACL_PERM */
+/* Description: Description cluster[n]: Access permissions for region n as defined by start address ACL[n].ADDR and size ACL[n].SIZE */
+
+/* Bit 2 : Configure read permissions for region n. Write '0' has no effect. */
+#define ACL_ACL_PERM_READ_Pos (2UL) /*!< Position of READ field. */
+#define ACL_ACL_PERM_READ_Msk (0x1UL << ACL_ACL_PERM_READ_Pos) /*!< Bit mask of READ field. */
+#define ACL_ACL_PERM_READ_Enable (0UL) /*!< Allow read instructions to region n */
+#define ACL_ACL_PERM_READ_Disable (1UL) /*!< Block read instructions to region n */
+
+/* Bit 1 : Configure write and erase permissions for region n. Write '0' has no effect. */
+#define ACL_ACL_PERM_WRITE_Pos (1UL) /*!< Position of WRITE field. */
+#define ACL_ACL_PERM_WRITE_Msk (0x1UL << ACL_ACL_PERM_WRITE_Pos) /*!< Bit mask of WRITE field. */
+#define ACL_ACL_PERM_WRITE_Enable (0UL) /*!< Allow write and erase instructions to region n */
+#define ACL_ACL_PERM_WRITE_Disable (1UL) /*!< Block write and erase instructions to region n */
+
+
+/* Peripheral: CCM */
+/* Description: AES CCM Mode Encryption */
+
+/* Register: CCM_TASKS_KSGEN */
+/* Description: Start generation of key-stream. This operation will stop by itself when completed. */
+
+/* Bit 0 : */
+#define CCM_TASKS_KSGEN_TASKS_KSGEN_Pos (0UL) /*!< Position of TASKS_KSGEN field. */
+#define CCM_TASKS_KSGEN_TASKS_KSGEN_Msk (0x1UL << CCM_TASKS_KSGEN_TASKS_KSGEN_Pos) /*!< Bit mask of TASKS_KSGEN field. */
+
+/* Register: CCM_TASKS_CRYPT */
+/* Description: Start encryption/decryption. This operation will stop by itself when completed. */
+
+/* Bit 0 : */
+#define CCM_TASKS_CRYPT_TASKS_CRYPT_Pos (0UL) /*!< Position of TASKS_CRYPT field. */
+#define CCM_TASKS_CRYPT_TASKS_CRYPT_Msk (0x1UL << CCM_TASKS_CRYPT_TASKS_CRYPT_Pos) /*!< Bit mask of TASKS_CRYPT field. */
+
+/* Register: CCM_TASKS_STOP */
+/* Description: Stop encryption/decryption */
+
+/* Bit 0 : */
+#define CCM_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define CCM_TASKS_STOP_TASKS_STOP_Msk (0x1UL << CCM_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: CCM_TASKS_RATEOVERRIDE */
+/* Description: Override DATARATE setting in MODE register with the contents of the RATEOVERRIDE register for any ongoing encryption/decryption */
+
+/* Bit 0 : */
+#define CCM_TASKS_RATEOVERRIDE_TASKS_RATEOVERRIDE_Pos (0UL) /*!< Position of TASKS_RATEOVERRIDE field. */
+#define CCM_TASKS_RATEOVERRIDE_TASKS_RATEOVERRIDE_Msk (0x1UL << CCM_TASKS_RATEOVERRIDE_TASKS_RATEOVERRIDE_Pos) /*!< Bit mask of TASKS_RATEOVERRIDE field. */
+
+/* Register: CCM_EVENTS_ENDKSGEN */
+/* Description: Key-stream generation complete */
+
+/* Bit 0 : */
+#define CCM_EVENTS_ENDKSGEN_EVENTS_ENDKSGEN_Pos (0UL) /*!< Position of EVENTS_ENDKSGEN field. */
+#define CCM_EVENTS_ENDKSGEN_EVENTS_ENDKSGEN_Msk (0x1UL << CCM_EVENTS_ENDKSGEN_EVENTS_ENDKSGEN_Pos) /*!< Bit mask of EVENTS_ENDKSGEN field. */
+
+/* Register: CCM_EVENTS_ENDCRYPT */
+/* Description: Encrypt/decrypt complete */
+
+/* Bit 0 : */
+#define CCM_EVENTS_ENDCRYPT_EVENTS_ENDCRYPT_Pos (0UL) /*!< Position of EVENTS_ENDCRYPT field. */
+#define CCM_EVENTS_ENDCRYPT_EVENTS_ENDCRYPT_Msk (0x1UL << CCM_EVENTS_ENDCRYPT_EVENTS_ENDCRYPT_Pos) /*!< Bit mask of EVENTS_ENDCRYPT field. */
+
+/* Register: CCM_EVENTS_ERROR */
+/* Description: Deprecated register - CCM error event */
+
+/* Bit 0 : */
+#define CCM_EVENTS_ERROR_EVENTS_ERROR_Pos (0UL) /*!< Position of EVENTS_ERROR field. */
+#define CCM_EVENTS_ERROR_EVENTS_ERROR_Msk (0x1UL << CCM_EVENTS_ERROR_EVENTS_ERROR_Pos) /*!< Bit mask of EVENTS_ERROR field. */
+
+/* Register: CCM_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 0 : Shortcut between ENDKSGEN event and CRYPT task */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Pos (0UL) /*!< Position of ENDKSGEN_CRYPT field. */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Msk (0x1UL << CCM_SHORTS_ENDKSGEN_CRYPT_Pos) /*!< Bit mask of ENDKSGEN_CRYPT field. */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Disabled (0UL) /*!< Disable shortcut */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: CCM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 2 : Write '1' to enable interrupt for ERROR event */
+#define CCM_INTENSET_ERROR_Pos (2UL) /*!< Position of ERROR field. */
+#define CCM_INTENSET_ERROR_Msk (0x1UL << CCM_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define CCM_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for ENDCRYPT event */
+#define CCM_INTENSET_ENDCRYPT_Pos (1UL) /*!< Position of ENDCRYPT field. */
+#define CCM_INTENSET_ENDCRYPT_Msk (0x1UL << CCM_INTENSET_ENDCRYPT_Pos) /*!< Bit mask of ENDCRYPT field. */
+#define CCM_INTENSET_ENDCRYPT_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENSET_ENDCRYPT_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENSET_ENDCRYPT_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for ENDKSGEN event */
+#define CCM_INTENSET_ENDKSGEN_Pos (0UL) /*!< Position of ENDKSGEN field. */
+#define CCM_INTENSET_ENDKSGEN_Msk (0x1UL << CCM_INTENSET_ENDKSGEN_Pos) /*!< Bit mask of ENDKSGEN field. */
+#define CCM_INTENSET_ENDKSGEN_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENSET_ENDKSGEN_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENSET_ENDKSGEN_Set (1UL) /*!< Enable */
+
+/* Register: CCM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 2 : Write '1' to disable interrupt for ERROR event */
+#define CCM_INTENCLR_ERROR_Pos (2UL) /*!< Position of ERROR field. */
+#define CCM_INTENCLR_ERROR_Msk (0x1UL << CCM_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define CCM_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for ENDCRYPT event */
+#define CCM_INTENCLR_ENDCRYPT_Pos (1UL) /*!< Position of ENDCRYPT field. */
+#define CCM_INTENCLR_ENDCRYPT_Msk (0x1UL << CCM_INTENCLR_ENDCRYPT_Pos) /*!< Bit mask of ENDCRYPT field. */
+#define CCM_INTENCLR_ENDCRYPT_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENCLR_ENDCRYPT_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENCLR_ENDCRYPT_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for ENDKSGEN event */
+#define CCM_INTENCLR_ENDKSGEN_Pos (0UL) /*!< Position of ENDKSGEN field. */
+#define CCM_INTENCLR_ENDKSGEN_Msk (0x1UL << CCM_INTENCLR_ENDKSGEN_Pos) /*!< Bit mask of ENDKSGEN field. */
+#define CCM_INTENCLR_ENDKSGEN_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENCLR_ENDKSGEN_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENCLR_ENDKSGEN_Clear (1UL) /*!< Disable */
+
+/* Register: CCM_MICSTATUS */
+/* Description: MIC check result */
+
+/* Bit 0 : The result of the MIC check performed during the previous decryption operation */
+#define CCM_MICSTATUS_MICSTATUS_Pos (0UL) /*!< Position of MICSTATUS field. */
+#define CCM_MICSTATUS_MICSTATUS_Msk (0x1UL << CCM_MICSTATUS_MICSTATUS_Pos) /*!< Bit mask of MICSTATUS field. */
+#define CCM_MICSTATUS_MICSTATUS_CheckFailed (0UL) /*!< MIC check failed */
+#define CCM_MICSTATUS_MICSTATUS_CheckPassed (1UL) /*!< MIC check passed */
+
+/* Register: CCM_ENABLE */
+/* Description: Enable */
+
+/* Bits 1..0 : Enable or disable CCM */
+#define CCM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define CCM_ENABLE_ENABLE_Msk (0x3UL << CCM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define CCM_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define CCM_ENABLE_ENABLE_Enabled (2UL) /*!< Enable */
+
+/* Register: CCM_MODE */
+/* Description: Operation mode */
+
+/* Bit 24 : Packet length configuration */
+#define CCM_MODE_LENGTH_Pos (24UL) /*!< Position of LENGTH field. */
+#define CCM_MODE_LENGTH_Msk (0x1UL << CCM_MODE_LENGTH_Pos) /*!< Bit mask of LENGTH field. */
+#define CCM_MODE_LENGTH_Default (0UL) /*!< Default length. Effective length of LENGTH field in encrypted/decrypted packet is 5 bits. A key-stream for packet payloads up to 27 bytes will be generated. */
+#define CCM_MODE_LENGTH_Extended (1UL) /*!< Extended length. Effective length of LENGTH field in encrypted/decrypted packet is 8 bits. A key-stream for packet payloads up to MAXPACKETSIZE bytes will be generated. */
+
+/* Bits 17..16 : Radio data rate that the CCM shall run synchronous with */
+#define CCM_MODE_DATARATE_Pos (16UL) /*!< Position of DATARATE field. */
+#define CCM_MODE_DATARATE_Msk (0x3UL << CCM_MODE_DATARATE_Pos) /*!< Bit mask of DATARATE field. */
+#define CCM_MODE_DATARATE_1Mbit (0UL) /*!< 1 Mbps */
+#define CCM_MODE_DATARATE_2Mbit (1UL) /*!< 2 Mbps */
+#define CCM_MODE_DATARATE_125Kbps (2UL) /*!< 125 Kbps */
+#define CCM_MODE_DATARATE_500Kbps (3UL) /*!< 500 Kbps */
+
+/* Bit 0 : The mode of operation to be used. The settings in this register apply whenever either the KSGEN or CRYPT tasks are triggered. */
+#define CCM_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define CCM_MODE_MODE_Msk (0x1UL << CCM_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define CCM_MODE_MODE_Encryption (0UL) /*!< AES CCM packet encryption mode */
+#define CCM_MODE_MODE_Decryption (1UL) /*!< AES CCM packet decryption mode */
+
+/* Register: CCM_CNFPTR */
+/* Description: Pointer to data structure holding AES key and NONCE vector */
+
+/* Bits 31..0 : Pointer to the data structure holding the AES key and the CCM NONCE vector (see Table 1 CCM data structure overview) */
+#define CCM_CNFPTR_CNFPTR_Pos (0UL) /*!< Position of CNFPTR field. */
+#define CCM_CNFPTR_CNFPTR_Msk (0xFFFFFFFFUL << CCM_CNFPTR_CNFPTR_Pos) /*!< Bit mask of CNFPTR field. */
+
+/* Register: CCM_INPTR */
+/* Description: Input pointer */
+
+/* Bits 31..0 : Input pointer */
+#define CCM_INPTR_INPTR_Pos (0UL) /*!< Position of INPTR field. */
+#define CCM_INPTR_INPTR_Msk (0xFFFFFFFFUL << CCM_INPTR_INPTR_Pos) /*!< Bit mask of INPTR field. */
+
+/* Register: CCM_OUTPTR */
+/* Description: Output pointer */
+
+/* Bits 31..0 : Output pointer */
+#define CCM_OUTPTR_OUTPTR_Pos (0UL) /*!< Position of OUTPTR field. */
+#define CCM_OUTPTR_OUTPTR_Msk (0xFFFFFFFFUL << CCM_OUTPTR_OUTPTR_Pos) /*!< Bit mask of OUTPTR field. */
+
+/* Register: CCM_SCRATCHPTR */
+/* Description: Pointer to data area used for temporary storage */
+
+/* Bits 31..0 : Pointer to a scratch data area used for temporary storage during key-stream generation,
+ MIC generation and encryption/decryption. */
+#define CCM_SCRATCHPTR_SCRATCHPTR_Pos (0UL) /*!< Position of SCRATCHPTR field. */
+#define CCM_SCRATCHPTR_SCRATCHPTR_Msk (0xFFFFFFFFUL << CCM_SCRATCHPTR_SCRATCHPTR_Pos) /*!< Bit mask of SCRATCHPTR field. */
+
+/* Register: CCM_MAXPACKETSIZE */
+/* Description: Length of key-stream generated when MODE.LENGTH = Extended. */
+
+/* Bits 7..0 : Length of key-stream generated when MODE.LENGTH = Extended. This value must be greater or equal to the subsequent packet payload to be encrypted/decrypted. */
+#define CCM_MAXPACKETSIZE_MAXPACKETSIZE_Pos (0UL) /*!< Position of MAXPACKETSIZE field. */
+#define CCM_MAXPACKETSIZE_MAXPACKETSIZE_Msk (0xFFUL << CCM_MAXPACKETSIZE_MAXPACKETSIZE_Pos) /*!< Bit mask of MAXPACKETSIZE field. */
+
+/* Register: CCM_RATEOVERRIDE */
+/* Description: Data rate override setting. */
+
+/* Bits 1..0 : Data rate override setting. */
+#define CCM_RATEOVERRIDE_RATEOVERRIDE_Pos (0UL) /*!< Position of RATEOVERRIDE field. */
+#define CCM_RATEOVERRIDE_RATEOVERRIDE_Msk (0x3UL << CCM_RATEOVERRIDE_RATEOVERRIDE_Pos) /*!< Bit mask of RATEOVERRIDE field. */
+#define CCM_RATEOVERRIDE_RATEOVERRIDE_1Mbit (0UL) /*!< 1 Mbps */
+#define CCM_RATEOVERRIDE_RATEOVERRIDE_2Mbit (1UL) /*!< 2 Mbps */
+#define CCM_RATEOVERRIDE_RATEOVERRIDE_125Kbps (2UL) /*!< 125 Kbps */
+#define CCM_RATEOVERRIDE_RATEOVERRIDE_500Kbps (3UL) /*!< 500 Kbps */
+
+
+/* Peripheral: CC_HOST_RGF */
+/* Description: CRYPTOCELL HOST_RGF interface */
+
+/* Register: CC_HOST_RGF_HOST_CRYPTOKEY_SEL */
+/* Description: AES hardware key select */
+
+/* Bits 1..0 : Select the source of the HW key that is used by the AES engine */
+#define CC_HOST_RGF_HOST_CRYPTOKEY_SEL_HOST_CRYPTOKEY_SEL_Pos (0UL) /*!< Position of HOST_CRYPTOKEY_SEL field. */
+#define CC_HOST_RGF_HOST_CRYPTOKEY_SEL_HOST_CRYPTOKEY_SEL_Msk (0x3UL << CC_HOST_RGF_HOST_CRYPTOKEY_SEL_HOST_CRYPTOKEY_SEL_Pos) /*!< Bit mask of HOST_CRYPTOKEY_SEL field. */
+#define CC_HOST_RGF_HOST_CRYPTOKEY_SEL_HOST_CRYPTOKEY_SEL_K_DR (0UL) /*!< Use device root key K_DR from CRYPTOCELL AO power domain */
+#define CC_HOST_RGF_HOST_CRYPTOKEY_SEL_HOST_CRYPTOKEY_SEL_K_PRTL (1UL) /*!< Use hard-coded RTL key K_PRTL */
+#define CC_HOST_RGF_HOST_CRYPTOKEY_SEL_HOST_CRYPTOKEY_SEL_Session (2UL) /*!< Use provided session key */
+
+/* Register: CC_HOST_RGF_HOST_IOT_KPRTL_LOCK */
+/* Description: This write-once register is the K_PRTL lock register. When this register is set, K_PRTL can not be used and a zeroed key will be used instead. The value of this register is saved in the CRYPTOCELL AO power domain. */
+
+/* Bit 0 : This register is the K_PRTL lock register. When this register is set, K_PRTL can not be used and a zeroed key will be used instead. The value of this register is saved in the CRYPTOCELL AO power domain. */
+#define CC_HOST_RGF_HOST_IOT_KPRTL_LOCK_HOST_IOT_KPRTL_LOCK_Pos (0UL) /*!< Position of HOST_IOT_KPRTL_LOCK field. */
+#define CC_HOST_RGF_HOST_IOT_KPRTL_LOCK_HOST_IOT_KPRTL_LOCK_Msk (0x1UL << CC_HOST_RGF_HOST_IOT_KPRTL_LOCK_HOST_IOT_KPRTL_LOCK_Pos) /*!< Bit mask of HOST_IOT_KPRTL_LOCK field. */
+#define CC_HOST_RGF_HOST_IOT_KPRTL_LOCK_HOST_IOT_KPRTL_LOCK_Disabled (0UL) /*!< K_PRTL can be selected for use from register HOST_CRYPTOKEY_SEL */
+#define CC_HOST_RGF_HOST_IOT_KPRTL_LOCK_HOST_IOT_KPRTL_LOCK_Enabled (1UL) /*!< K_PRTL has been locked until next power-on reset (POR). If K_PRTL is selected anyway, a zeroed key will be used instead. */
+
+/* Register: CC_HOST_RGF_HOST_IOT_KDR0 */
+/* Description: This register holds bits 31:0 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain. Reading from this address returns the K_DR valid status indicating if K_DR is successfully retained. */
+
+/* Bits 31..0 : Write: K_DR bits 31:0 Read: 0x00000000 when 128-bit K_DR key value is not yet retained in the CRYPTOCELL AO power domain Read: 0x00000001 when 128-bit K_DR key value is successfully retained in the CRYPTOCELL AO power domain */
+#define CC_HOST_RGF_HOST_IOT_KDR0_HOST_IOT_KDR0_Pos (0UL) /*!< Position of HOST_IOT_KDR0 field. */
+#define CC_HOST_RGF_HOST_IOT_KDR0_HOST_IOT_KDR0_Msk (0xFFFFFFFFUL << CC_HOST_RGF_HOST_IOT_KDR0_HOST_IOT_KDR0_Pos) /*!< Bit mask of HOST_IOT_KDR0 field. */
+
+/* Register: CC_HOST_RGF_HOST_IOT_KDR1 */
+/* Description: This register holds bits 63:32 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain. */
+
+/* Bits 31..0 : K_DR bits 63:32 */
+#define CC_HOST_RGF_HOST_IOT_KDR1_HOST_IOT_KDR1_Pos (0UL) /*!< Position of HOST_IOT_KDR1 field. */
+#define CC_HOST_RGF_HOST_IOT_KDR1_HOST_IOT_KDR1_Msk (0xFFFFFFFFUL << CC_HOST_RGF_HOST_IOT_KDR1_HOST_IOT_KDR1_Pos) /*!< Bit mask of HOST_IOT_KDR1 field. */
+
+/* Register: CC_HOST_RGF_HOST_IOT_KDR2 */
+/* Description: This register holds bits 95:64 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain. */
+
+/* Bits 31..0 : K_DR bits 95:64 */
+#define CC_HOST_RGF_HOST_IOT_KDR2_HOST_IOT_KDR2_Pos (0UL) /*!< Position of HOST_IOT_KDR2 field. */
+#define CC_HOST_RGF_HOST_IOT_KDR2_HOST_IOT_KDR2_Msk (0xFFFFFFFFUL << CC_HOST_RGF_HOST_IOT_KDR2_HOST_IOT_KDR2_Pos) /*!< Bit mask of HOST_IOT_KDR2 field. */
+
+/* Register: CC_HOST_RGF_HOST_IOT_KDR3 */
+/* Description: This register holds bits 127:96 of K_DR. The value of this register is saved in the CRYPTOCELL AO power domain. */
+
+/* Bits 31..0 : K_DR bits 127:96 */
+#define CC_HOST_RGF_HOST_IOT_KDR3_HOST_IOT_KDR3_Pos (0UL) /*!< Position of HOST_IOT_KDR3 field. */
+#define CC_HOST_RGF_HOST_IOT_KDR3_HOST_IOT_KDR3_Msk (0xFFFFFFFFUL << CC_HOST_RGF_HOST_IOT_KDR3_HOST_IOT_KDR3_Pos) /*!< Bit mask of HOST_IOT_KDR3 field. */
+
+/* Register: CC_HOST_RGF_HOST_IOT_LCS */
+/* Description: Controls lifecycle state (LCS) for CRYPTOCELL subsystem */
+
+/* Bit 8 : This field is read-only and indicates if CRYPTOCELL LCS has been successfully configured since last reset */
+#define CC_HOST_RGF_HOST_IOT_LCS_LCS_IS_VALID_Pos (8UL) /*!< Position of LCS_IS_VALID field. */
+#define CC_HOST_RGF_HOST_IOT_LCS_LCS_IS_VALID_Msk (0x1UL << CC_HOST_RGF_HOST_IOT_LCS_LCS_IS_VALID_Pos) /*!< Bit mask of LCS_IS_VALID field. */
+#define CC_HOST_RGF_HOST_IOT_LCS_LCS_IS_VALID_Invalid (0UL) /*!< A valid LCS is not yet retained in the CRYPTOCELL AO power domain */
+#define CC_HOST_RGF_HOST_IOT_LCS_LCS_IS_VALID_Valid (1UL) /*!< A valid LCS is successfully retained in the CRYPTOCELL AO power domain */
+
+/* Bits 2..0 : Lifecycle state value. This field is write-once per reset. */
+#define CC_HOST_RGF_HOST_IOT_LCS_LCS_Pos (0UL) /*!< Position of LCS field. */
+#define CC_HOST_RGF_HOST_IOT_LCS_LCS_Msk (0x7UL << CC_HOST_RGF_HOST_IOT_LCS_LCS_Pos) /*!< Bit mask of LCS field. */
+#define CC_HOST_RGF_HOST_IOT_LCS_LCS_Debug (0UL) /*!< CC310 operates in debug mode */
+#define CC_HOST_RGF_HOST_IOT_LCS_LCS_Secure (2UL) /*!< CC310 operates in secure mode */
+
+
+/* Peripheral: CLOCK */
+/* Description: Clock control */
+
+/* Register: CLOCK_TASKS_HFCLKSTART */
+/* Description: Start HFXO crystal oscillator */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_HFCLKSTART_TASKS_HFCLKSTART_Pos (0UL) /*!< Position of TASKS_HFCLKSTART field. */
+#define CLOCK_TASKS_HFCLKSTART_TASKS_HFCLKSTART_Msk (0x1UL << CLOCK_TASKS_HFCLKSTART_TASKS_HFCLKSTART_Pos) /*!< Bit mask of TASKS_HFCLKSTART field. */
+
+/* Register: CLOCK_TASKS_HFCLKSTOP */
+/* Description: Stop HFXO crystal oscillator */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_HFCLKSTOP_TASKS_HFCLKSTOP_Pos (0UL) /*!< Position of TASKS_HFCLKSTOP field. */
+#define CLOCK_TASKS_HFCLKSTOP_TASKS_HFCLKSTOP_Msk (0x1UL << CLOCK_TASKS_HFCLKSTOP_TASKS_HFCLKSTOP_Pos) /*!< Bit mask of TASKS_HFCLKSTOP field. */
+
+/* Register: CLOCK_TASKS_LFCLKSTART */
+/* Description: Start LFCLK */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_LFCLKSTART_TASKS_LFCLKSTART_Pos (0UL) /*!< Position of TASKS_LFCLKSTART field. */
+#define CLOCK_TASKS_LFCLKSTART_TASKS_LFCLKSTART_Msk (0x1UL << CLOCK_TASKS_LFCLKSTART_TASKS_LFCLKSTART_Pos) /*!< Bit mask of TASKS_LFCLKSTART field. */
+
+/* Register: CLOCK_TASKS_LFCLKSTOP */
+/* Description: Stop LFCLK */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_LFCLKSTOP_TASKS_LFCLKSTOP_Pos (0UL) /*!< Position of TASKS_LFCLKSTOP field. */
+#define CLOCK_TASKS_LFCLKSTOP_TASKS_LFCLKSTOP_Msk (0x1UL << CLOCK_TASKS_LFCLKSTOP_TASKS_LFCLKSTOP_Pos) /*!< Bit mask of TASKS_LFCLKSTOP field. */
+
+/* Register: CLOCK_TASKS_CAL */
+/* Description: Start calibration of LFRC */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_CAL_TASKS_CAL_Pos (0UL) /*!< Position of TASKS_CAL field. */
+#define CLOCK_TASKS_CAL_TASKS_CAL_Msk (0x1UL << CLOCK_TASKS_CAL_TASKS_CAL_Pos) /*!< Bit mask of TASKS_CAL field. */
+
+/* Register: CLOCK_TASKS_CTSTART */
+/* Description: Start calibration timer */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_CTSTART_TASKS_CTSTART_Pos (0UL) /*!< Position of TASKS_CTSTART field. */
+#define CLOCK_TASKS_CTSTART_TASKS_CTSTART_Msk (0x1UL << CLOCK_TASKS_CTSTART_TASKS_CTSTART_Pos) /*!< Bit mask of TASKS_CTSTART field. */
+
+/* Register: CLOCK_TASKS_CTSTOP */
+/* Description: Stop calibration timer */
+
+/* Bit 0 : */
+#define CLOCK_TASKS_CTSTOP_TASKS_CTSTOP_Pos (0UL) /*!< Position of TASKS_CTSTOP field. */
+#define CLOCK_TASKS_CTSTOP_TASKS_CTSTOP_Msk (0x1UL << CLOCK_TASKS_CTSTOP_TASKS_CTSTOP_Pos) /*!< Bit mask of TASKS_CTSTOP field. */
+
+/* Register: CLOCK_EVENTS_HFCLKSTARTED */
+/* Description: HFXO crystal oscillator started */
+
+/* Bit 0 : */
+#define CLOCK_EVENTS_HFCLKSTARTED_EVENTS_HFCLKSTARTED_Pos (0UL) /*!< Position of EVENTS_HFCLKSTARTED field. */
+#define CLOCK_EVENTS_HFCLKSTARTED_EVENTS_HFCLKSTARTED_Msk (0x1UL << CLOCK_EVENTS_HFCLKSTARTED_EVENTS_HFCLKSTARTED_Pos) /*!< Bit mask of EVENTS_HFCLKSTARTED field. */
+
+/* Register: CLOCK_EVENTS_LFCLKSTARTED */
+/* Description: LFCLK started */
+
+/* Bit 0 : */
+#define CLOCK_EVENTS_LFCLKSTARTED_EVENTS_LFCLKSTARTED_Pos (0UL) /*!< Position of EVENTS_LFCLKSTARTED field. */
+#define CLOCK_EVENTS_LFCLKSTARTED_EVENTS_LFCLKSTARTED_Msk (0x1UL << CLOCK_EVENTS_LFCLKSTARTED_EVENTS_LFCLKSTARTED_Pos) /*!< Bit mask of EVENTS_LFCLKSTARTED field. */
+
+/* Register: CLOCK_EVENTS_DONE */
+/* Description: Calibration of LFRC completed */
+
+/* Bit 0 : */
+#define CLOCK_EVENTS_DONE_EVENTS_DONE_Pos (0UL) /*!< Position of EVENTS_DONE field. */
+#define CLOCK_EVENTS_DONE_EVENTS_DONE_Msk (0x1UL << CLOCK_EVENTS_DONE_EVENTS_DONE_Pos) /*!< Bit mask of EVENTS_DONE field. */
+
+/* Register: CLOCK_EVENTS_CTTO */
+/* Description: Calibration timer timeout */
+
+/* Bit 0 : */
+#define CLOCK_EVENTS_CTTO_EVENTS_CTTO_Pos (0UL) /*!< Position of EVENTS_CTTO field. */
+#define CLOCK_EVENTS_CTTO_EVENTS_CTTO_Msk (0x1UL << CLOCK_EVENTS_CTTO_EVENTS_CTTO_Pos) /*!< Bit mask of EVENTS_CTTO field. */
+
+/* Register: CLOCK_EVENTS_CTSTARTED */
+/* Description: Calibration timer has been started and is ready to process new tasks */
+
+/* Bit 0 : */
+#define CLOCK_EVENTS_CTSTARTED_EVENTS_CTSTARTED_Pos (0UL) /*!< Position of EVENTS_CTSTARTED field. */
+#define CLOCK_EVENTS_CTSTARTED_EVENTS_CTSTARTED_Msk (0x1UL << CLOCK_EVENTS_CTSTARTED_EVENTS_CTSTARTED_Pos) /*!< Bit mask of EVENTS_CTSTARTED field. */
+
+/* Register: CLOCK_EVENTS_CTSTOPPED */
+/* Description: Calibration timer has been stopped and is ready to process new tasks */
+
+/* Bit 0 : */
+#define CLOCK_EVENTS_CTSTOPPED_EVENTS_CTSTOPPED_Pos (0UL) /*!< Position of EVENTS_CTSTOPPED field. */
+#define CLOCK_EVENTS_CTSTOPPED_EVENTS_CTSTOPPED_Msk (0x1UL << CLOCK_EVENTS_CTSTOPPED_EVENTS_CTSTOPPED_Pos) /*!< Bit mask of EVENTS_CTSTOPPED field. */
+
+/* Register: CLOCK_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 11 : Write '1' to enable interrupt for CTSTOPPED event */
+#define CLOCK_INTENSET_CTSTOPPED_Pos (11UL) /*!< Position of CTSTOPPED field. */
+#define CLOCK_INTENSET_CTSTOPPED_Msk (0x1UL << CLOCK_INTENSET_CTSTOPPED_Pos) /*!< Bit mask of CTSTOPPED field. */
+#define CLOCK_INTENSET_CTSTOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_CTSTOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_CTSTOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to enable interrupt for CTSTARTED event */
+#define CLOCK_INTENSET_CTSTARTED_Pos (10UL) /*!< Position of CTSTARTED field. */
+#define CLOCK_INTENSET_CTSTARTED_Msk (0x1UL << CLOCK_INTENSET_CTSTARTED_Pos) /*!< Bit mask of CTSTARTED field. */
+#define CLOCK_INTENSET_CTSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_CTSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_CTSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable interrupt for CTTO event */
+#define CLOCK_INTENSET_CTTO_Pos (4UL) /*!< Position of CTTO field. */
+#define CLOCK_INTENSET_CTTO_Msk (0x1UL << CLOCK_INTENSET_CTTO_Pos) /*!< Bit mask of CTTO field. */
+#define CLOCK_INTENSET_CTTO_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_CTTO_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_CTTO_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to enable interrupt for DONE event */
+#define CLOCK_INTENSET_DONE_Pos (3UL) /*!< Position of DONE field. */
+#define CLOCK_INTENSET_DONE_Msk (0x1UL << CLOCK_INTENSET_DONE_Pos) /*!< Bit mask of DONE field. */
+#define CLOCK_INTENSET_DONE_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_DONE_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_DONE_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for LFCLKSTARTED event */
+#define CLOCK_INTENSET_LFCLKSTARTED_Pos (1UL) /*!< Position of LFCLKSTARTED field. */
+#define CLOCK_INTENSET_LFCLKSTARTED_Msk (0x1UL << CLOCK_INTENSET_LFCLKSTARTED_Pos) /*!< Bit mask of LFCLKSTARTED field. */
+#define CLOCK_INTENSET_LFCLKSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_LFCLKSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_LFCLKSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for HFCLKSTARTED event */
+#define CLOCK_INTENSET_HFCLKSTARTED_Pos (0UL) /*!< Position of HFCLKSTARTED field. */
+#define CLOCK_INTENSET_HFCLKSTARTED_Msk (0x1UL << CLOCK_INTENSET_HFCLKSTARTED_Pos) /*!< Bit mask of HFCLKSTARTED field. */
+#define CLOCK_INTENSET_HFCLKSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_HFCLKSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_HFCLKSTARTED_Set (1UL) /*!< Enable */
+
+/* Register: CLOCK_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 11 : Write '1' to disable interrupt for CTSTOPPED event */
+#define CLOCK_INTENCLR_CTSTOPPED_Pos (11UL) /*!< Position of CTSTOPPED field. */
+#define CLOCK_INTENCLR_CTSTOPPED_Msk (0x1UL << CLOCK_INTENCLR_CTSTOPPED_Pos) /*!< Bit mask of CTSTOPPED field. */
+#define CLOCK_INTENCLR_CTSTOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_CTSTOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_CTSTOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to disable interrupt for CTSTARTED event */
+#define CLOCK_INTENCLR_CTSTARTED_Pos (10UL) /*!< Position of CTSTARTED field. */
+#define CLOCK_INTENCLR_CTSTARTED_Msk (0x1UL << CLOCK_INTENCLR_CTSTARTED_Pos) /*!< Bit mask of CTSTARTED field. */
+#define CLOCK_INTENCLR_CTSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_CTSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_CTSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable interrupt for CTTO event */
+#define CLOCK_INTENCLR_CTTO_Pos (4UL) /*!< Position of CTTO field. */
+#define CLOCK_INTENCLR_CTTO_Msk (0x1UL << CLOCK_INTENCLR_CTTO_Pos) /*!< Bit mask of CTTO field. */
+#define CLOCK_INTENCLR_CTTO_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_CTTO_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_CTTO_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to disable interrupt for DONE event */
+#define CLOCK_INTENCLR_DONE_Pos (3UL) /*!< Position of DONE field. */
+#define CLOCK_INTENCLR_DONE_Msk (0x1UL << CLOCK_INTENCLR_DONE_Pos) /*!< Bit mask of DONE field. */
+#define CLOCK_INTENCLR_DONE_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_DONE_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_DONE_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for LFCLKSTARTED event */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Pos (1UL) /*!< Position of LFCLKSTARTED field. */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Msk (0x1UL << CLOCK_INTENCLR_LFCLKSTARTED_Pos) /*!< Bit mask of LFCLKSTARTED field. */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for HFCLKSTARTED event */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Pos (0UL) /*!< Position of HFCLKSTARTED field. */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Msk (0x1UL << CLOCK_INTENCLR_HFCLKSTARTED_Pos) /*!< Bit mask of HFCLKSTARTED field. */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Clear (1UL) /*!< Disable */
+
+/* Register: CLOCK_HFCLKRUN */
+/* Description: Status indicating that HFCLKSTART task has been triggered */
+
+/* Bit 0 : HFCLKSTART task triggered or not */
+#define CLOCK_HFCLKRUN_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define CLOCK_HFCLKRUN_STATUS_Msk (0x1UL << CLOCK_HFCLKRUN_STATUS_Pos) /*!< Bit mask of STATUS field. */
+#define CLOCK_HFCLKRUN_STATUS_NotTriggered (0UL) /*!< Task not triggered */
+#define CLOCK_HFCLKRUN_STATUS_Triggered (1UL) /*!< Task triggered */
+
+/* Register: CLOCK_HFCLKSTAT */
+/* Description: HFCLK status */
+
+/* Bit 16 : HFCLK state */
+#define CLOCK_HFCLKSTAT_STATE_Pos (16UL) /*!< Position of STATE field. */
+#define CLOCK_HFCLKSTAT_STATE_Msk (0x1UL << CLOCK_HFCLKSTAT_STATE_Pos) /*!< Bit mask of STATE field. */
+#define CLOCK_HFCLKSTAT_STATE_NotRunning (0UL) /*!< HFCLK not running */
+#define CLOCK_HFCLKSTAT_STATE_Running (1UL) /*!< HFCLK running */
+
+/* Bit 0 : Source of HFCLK */
+#define CLOCK_HFCLKSTAT_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_HFCLKSTAT_SRC_Msk (0x1UL << CLOCK_HFCLKSTAT_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_HFCLKSTAT_SRC_RC (0UL) /*!< 64 MHz internal oscillator (HFINT) */
+#define CLOCK_HFCLKSTAT_SRC_Xtal (1UL) /*!< 64 MHz crystal oscillator (HFXO) */
+
+/* Register: CLOCK_LFCLKRUN */
+/* Description: Status indicating that LFCLKSTART task has been triggered */
+
+/* Bit 0 : LFCLKSTART task triggered or not */
+#define CLOCK_LFCLKRUN_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define CLOCK_LFCLKRUN_STATUS_Msk (0x1UL << CLOCK_LFCLKRUN_STATUS_Pos) /*!< Bit mask of STATUS field. */
+#define CLOCK_LFCLKRUN_STATUS_NotTriggered (0UL) /*!< Task not triggered */
+#define CLOCK_LFCLKRUN_STATUS_Triggered (1UL) /*!< Task triggered */
+
+/* Register: CLOCK_LFCLKSTAT */
+/* Description: LFCLK status */
+
+/* Bit 16 : LFCLK state */
+#define CLOCK_LFCLKSTAT_STATE_Pos (16UL) /*!< Position of STATE field. */
+#define CLOCK_LFCLKSTAT_STATE_Msk (0x1UL << CLOCK_LFCLKSTAT_STATE_Pos) /*!< Bit mask of STATE field. */
+#define CLOCK_LFCLKSTAT_STATE_NotRunning (0UL) /*!< LFCLK not running */
+#define CLOCK_LFCLKSTAT_STATE_Running (1UL) /*!< LFCLK running */
+
+/* Bits 1..0 : Source of LFCLK */
+#define CLOCK_LFCLKSTAT_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_LFCLKSTAT_SRC_Msk (0x3UL << CLOCK_LFCLKSTAT_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_LFCLKSTAT_SRC_RC (0UL) /*!< 32.768 kHz RC oscillator (LFRC) */
+#define CLOCK_LFCLKSTAT_SRC_Xtal (1UL) /*!< 32.768 kHz crystal oscillator (LFXO) */
+#define CLOCK_LFCLKSTAT_SRC_Synth (2UL) /*!< 32.768 kHz synthesized from HFCLK (LFSYNT) */
+
+/* Register: CLOCK_LFCLKSRCCOPY */
+/* Description: Copy of LFCLKSRC register, set when LFCLKSTART task was triggered */
+
+/* Bits 1..0 : Clock source */
+#define CLOCK_LFCLKSRCCOPY_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_LFCLKSRCCOPY_SRC_Msk (0x3UL << CLOCK_LFCLKSRCCOPY_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_LFCLKSRCCOPY_SRC_RC (0UL) /*!< 32.768 kHz RC oscillator (LFRC) */
+#define CLOCK_LFCLKSRCCOPY_SRC_Xtal (1UL) /*!< 32.768 kHz crystal oscillator (LFXO) */
+#define CLOCK_LFCLKSRCCOPY_SRC_Synth (2UL) /*!< 32.768 kHz synthesized from HFCLK (LFSYNT) */
+
+/* Register: CLOCK_LFCLKSRC */
+/* Description: Clock source for the LFCLK */
+
+/* Bit 17 : Enable or disable external source for LFCLK */
+#define CLOCK_LFCLKSRC_EXTERNAL_Pos (17UL) /*!< Position of EXTERNAL field. */
+#define CLOCK_LFCLKSRC_EXTERNAL_Msk (0x1UL << CLOCK_LFCLKSRC_EXTERNAL_Pos) /*!< Bit mask of EXTERNAL field. */
+#define CLOCK_LFCLKSRC_EXTERNAL_Disabled (0UL) /*!< Disable external source (use with Xtal) */
+#define CLOCK_LFCLKSRC_EXTERNAL_Enabled (1UL) /*!< Enable use of external source instead of Xtal (SRC needs to be set to Xtal) */
+
+/* Bit 16 : Enable or disable bypass of LFCLK crystal oscillator with external clock source */
+#define CLOCK_LFCLKSRC_BYPASS_Pos (16UL) /*!< Position of BYPASS field. */
+#define CLOCK_LFCLKSRC_BYPASS_Msk (0x1UL << CLOCK_LFCLKSRC_BYPASS_Pos) /*!< Bit mask of BYPASS field. */
+#define CLOCK_LFCLKSRC_BYPASS_Disabled (0UL) /*!< Disable (use with Xtal or low-swing external source) */
+#define CLOCK_LFCLKSRC_BYPASS_Enabled (1UL) /*!< Enable (use with rail-to-rail external source) */
+
+/* Bits 1..0 : Clock source */
+#define CLOCK_LFCLKSRC_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_LFCLKSRC_SRC_Msk (0x3UL << CLOCK_LFCLKSRC_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_LFCLKSRC_SRC_RC (0UL) /*!< 32.768 kHz RC oscillator (LFRC) */
+#define CLOCK_LFCLKSRC_SRC_Xtal (1UL) /*!< 32.768 kHz crystal oscillator (LFXO) */
+#define CLOCK_LFCLKSRC_SRC_Synth (2UL) /*!< 32.768 kHz synthesized from HFCLK (LFSYNT) */
+
+/* Register: CLOCK_HFXODEBOUNCE */
+/* Description: HFXO debounce time. The HFXO is started by triggering the TASKS_HFCLKSTART task. */
+
+/* Bits 7..0 : HFXO debounce time. Debounce time = HFXODEBOUNCE * 16 us. */
+#define CLOCK_HFXODEBOUNCE_HFXODEBOUNCE_Pos (0UL) /*!< Position of HFXODEBOUNCE field. */
+#define CLOCK_HFXODEBOUNCE_HFXODEBOUNCE_Msk (0xFFUL << CLOCK_HFXODEBOUNCE_HFXODEBOUNCE_Pos) /*!< Bit mask of HFXODEBOUNCE field. */
+#define CLOCK_HFXODEBOUNCE_HFXODEBOUNCE_Db256us (0x10UL) /*!< 256 us debounce time. Recommended for TSX-3225, FA-20H and FA-128 crystals. */
+#define CLOCK_HFXODEBOUNCE_HFXODEBOUNCE_Db1024us (0x40UL) /*!< 1024 us debounce time. Recommended for NX1612AA and NX1210AB crystals. */
+
+/* Register: CLOCK_CTIV */
+/* Description: Calibration timer interval */
+
+/* Bits 6..0 : Calibration timer interval in multiple of 0.25 seconds. Range: 0.25 seconds to 31.75 seconds. */
+#define CLOCK_CTIV_CTIV_Pos (0UL) /*!< Position of CTIV field. */
+#define CLOCK_CTIV_CTIV_Msk (0x7FUL << CLOCK_CTIV_CTIV_Pos) /*!< Bit mask of CTIV field. */
+
+/* Register: CLOCK_TRACECONFIG */
+/* Description: Clocking options for the trace port debug interface */
+
+/* Bits 17..16 : Pin multiplexing of trace signals. See pin assignment chapter for more details. */
+#define CLOCK_TRACECONFIG_TRACEMUX_Pos (16UL) /*!< Position of TRACEMUX field. */
+#define CLOCK_TRACECONFIG_TRACEMUX_Msk (0x3UL << CLOCK_TRACECONFIG_TRACEMUX_Pos) /*!< Bit mask of TRACEMUX field. */
+#define CLOCK_TRACECONFIG_TRACEMUX_GPIO (0UL) /*!< No trace signals routed to pins. All pins can be used as regular GPIOs. */
+#define CLOCK_TRACECONFIG_TRACEMUX_Serial (1UL) /*!< SWO trace signal routed to pin. Remaining pins can be used as regular GPIOs. */
+#define CLOCK_TRACECONFIG_TRACEMUX_Parallel (2UL) /*!< All trace signals (TRACECLK and TRACEDATA[n]) routed to pins. */
+
+/* Bits 1..0 : Speed of trace port clock. Note that the TRACECLK pin will output this clock divided by two. */
+#define CLOCK_TRACECONFIG_TRACEPORTSPEED_Pos (0UL) /*!< Position of TRACEPORTSPEED field. */
+#define CLOCK_TRACECONFIG_TRACEPORTSPEED_Msk (0x3UL << CLOCK_TRACECONFIG_TRACEPORTSPEED_Pos) /*!< Bit mask of TRACEPORTSPEED field. */
+#define CLOCK_TRACECONFIG_TRACEPORTSPEED_32MHz (0UL) /*!< 32 MHz trace port clock (TRACECLK = 16 MHz) */
+#define CLOCK_TRACECONFIG_TRACEPORTSPEED_16MHz (1UL) /*!< 16 MHz trace port clock (TRACECLK = 8 MHz) */
+#define CLOCK_TRACECONFIG_TRACEPORTSPEED_8MHz (2UL) /*!< 8 MHz trace port clock (TRACECLK = 4 MHz) */
+#define CLOCK_TRACECONFIG_TRACEPORTSPEED_4MHz (3UL) /*!< 4 MHz trace port clock (TRACECLK = 2 MHz) */
+
+/* Register: CLOCK_LFRCMODE */
+/* Description: LFRC mode configuration */
+
+/* Bit 16 : Active LFRC mode. This field is read only. */
+#define CLOCK_LFRCMODE_STATUS_Pos (16UL) /*!< Position of STATUS field. */
+#define CLOCK_LFRCMODE_STATUS_Msk (0x1UL << CLOCK_LFRCMODE_STATUS_Pos) /*!< Bit mask of STATUS field. */
+#define CLOCK_LFRCMODE_STATUS_Normal (0UL) /*!< Normal mode */
+#define CLOCK_LFRCMODE_STATUS_ULP (1UL) /*!< Ultra-low power mode (ULP) */
+
+/* Bit 0 : Set LFRC mode */
+#define CLOCK_LFRCMODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define CLOCK_LFRCMODE_MODE_Msk (0x1UL << CLOCK_LFRCMODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define CLOCK_LFRCMODE_MODE_Normal (0UL) /*!< Normal mode */
+#define CLOCK_LFRCMODE_MODE_ULP (1UL) /*!< Ultra-low power mode (ULP) */
+
+
+/* Peripheral: COMP */
+/* Description: Comparator */
+
+/* Register: COMP_TASKS_START */
+/* Description: Start comparator */
+
+/* Bit 0 : */
+#define COMP_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define COMP_TASKS_START_TASKS_START_Msk (0x1UL << COMP_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: COMP_TASKS_STOP */
+/* Description: Stop comparator */
+
+/* Bit 0 : */
+#define COMP_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define COMP_TASKS_STOP_TASKS_STOP_Msk (0x1UL << COMP_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: COMP_TASKS_SAMPLE */
+/* Description: Sample comparator value */
+
+/* Bit 0 : */
+#define COMP_TASKS_SAMPLE_TASKS_SAMPLE_Pos (0UL) /*!< Position of TASKS_SAMPLE field. */
+#define COMP_TASKS_SAMPLE_TASKS_SAMPLE_Msk (0x1UL << COMP_TASKS_SAMPLE_TASKS_SAMPLE_Pos) /*!< Bit mask of TASKS_SAMPLE field. */
+
+/* Register: COMP_EVENTS_READY */
+/* Description: COMP is ready and output is valid */
+
+/* Bit 0 : */
+#define COMP_EVENTS_READY_EVENTS_READY_Pos (0UL) /*!< Position of EVENTS_READY field. */
+#define COMP_EVENTS_READY_EVENTS_READY_Msk (0x1UL << COMP_EVENTS_READY_EVENTS_READY_Pos) /*!< Bit mask of EVENTS_READY field. */
+
+/* Register: COMP_EVENTS_DOWN */
+/* Description: Downward crossing */
+
+/* Bit 0 : */
+#define COMP_EVENTS_DOWN_EVENTS_DOWN_Pos (0UL) /*!< Position of EVENTS_DOWN field. */
+#define COMP_EVENTS_DOWN_EVENTS_DOWN_Msk (0x1UL << COMP_EVENTS_DOWN_EVENTS_DOWN_Pos) /*!< Bit mask of EVENTS_DOWN field. */
+
+/* Register: COMP_EVENTS_UP */
+/* Description: Upward crossing */
+
+/* Bit 0 : */
+#define COMP_EVENTS_UP_EVENTS_UP_Pos (0UL) /*!< Position of EVENTS_UP field. */
+#define COMP_EVENTS_UP_EVENTS_UP_Msk (0x1UL << COMP_EVENTS_UP_EVENTS_UP_Pos) /*!< Bit mask of EVENTS_UP field. */
+
+/* Register: COMP_EVENTS_CROSS */
+/* Description: Downward or upward crossing */
+
+/* Bit 0 : */
+#define COMP_EVENTS_CROSS_EVENTS_CROSS_Pos (0UL) /*!< Position of EVENTS_CROSS field. */
+#define COMP_EVENTS_CROSS_EVENTS_CROSS_Msk (0x1UL << COMP_EVENTS_CROSS_EVENTS_CROSS_Pos) /*!< Bit mask of EVENTS_CROSS field. */
+
+/* Register: COMP_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 4 : Shortcut between CROSS event and STOP task */
+#define COMP_SHORTS_CROSS_STOP_Pos (4UL) /*!< Position of CROSS_STOP field. */
+#define COMP_SHORTS_CROSS_STOP_Msk (0x1UL << COMP_SHORTS_CROSS_STOP_Pos) /*!< Bit mask of CROSS_STOP field. */
+#define COMP_SHORTS_CROSS_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_CROSS_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between UP event and STOP task */
+#define COMP_SHORTS_UP_STOP_Pos (3UL) /*!< Position of UP_STOP field. */
+#define COMP_SHORTS_UP_STOP_Msk (0x1UL << COMP_SHORTS_UP_STOP_Pos) /*!< Bit mask of UP_STOP field. */
+#define COMP_SHORTS_UP_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_UP_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between DOWN event and STOP task */
+#define COMP_SHORTS_DOWN_STOP_Pos (2UL) /*!< Position of DOWN_STOP field. */
+#define COMP_SHORTS_DOWN_STOP_Msk (0x1UL << COMP_SHORTS_DOWN_STOP_Pos) /*!< Bit mask of DOWN_STOP field. */
+#define COMP_SHORTS_DOWN_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_DOWN_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between READY event and STOP task */
+#define COMP_SHORTS_READY_STOP_Pos (1UL) /*!< Position of READY_STOP field. */
+#define COMP_SHORTS_READY_STOP_Msk (0x1UL << COMP_SHORTS_READY_STOP_Pos) /*!< Bit mask of READY_STOP field. */
+#define COMP_SHORTS_READY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_READY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between READY event and SAMPLE task */
+#define COMP_SHORTS_READY_SAMPLE_Pos (0UL) /*!< Position of READY_SAMPLE field. */
+#define COMP_SHORTS_READY_SAMPLE_Msk (0x1UL << COMP_SHORTS_READY_SAMPLE_Pos) /*!< Bit mask of READY_SAMPLE field. */
+#define COMP_SHORTS_READY_SAMPLE_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_READY_SAMPLE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: COMP_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 3 : Enable or disable interrupt for CROSS event */
+#define COMP_INTEN_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define COMP_INTEN_CROSS_Msk (0x1UL << COMP_INTEN_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define COMP_INTEN_CROSS_Disabled (0UL) /*!< Disable */
+#define COMP_INTEN_CROSS_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for UP event */
+#define COMP_INTEN_UP_Pos (2UL) /*!< Position of UP field. */
+#define COMP_INTEN_UP_Msk (0x1UL << COMP_INTEN_UP_Pos) /*!< Bit mask of UP field. */
+#define COMP_INTEN_UP_Disabled (0UL) /*!< Disable */
+#define COMP_INTEN_UP_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for DOWN event */
+#define COMP_INTEN_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define COMP_INTEN_DOWN_Msk (0x1UL << COMP_INTEN_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define COMP_INTEN_DOWN_Disabled (0UL) /*!< Disable */
+#define COMP_INTEN_DOWN_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for READY event */
+#define COMP_INTEN_READY_Pos (0UL) /*!< Position of READY field. */
+#define COMP_INTEN_READY_Msk (0x1UL << COMP_INTEN_READY_Pos) /*!< Bit mask of READY field. */
+#define COMP_INTEN_READY_Disabled (0UL) /*!< Disable */
+#define COMP_INTEN_READY_Enabled (1UL) /*!< Enable */
+
+/* Register: COMP_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 3 : Write '1' to enable interrupt for CROSS event */
+#define COMP_INTENSET_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define COMP_INTENSET_CROSS_Msk (0x1UL << COMP_INTENSET_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define COMP_INTENSET_CROSS_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENSET_CROSS_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENSET_CROSS_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for UP event */
+#define COMP_INTENSET_UP_Pos (2UL) /*!< Position of UP field. */
+#define COMP_INTENSET_UP_Msk (0x1UL << COMP_INTENSET_UP_Pos) /*!< Bit mask of UP field. */
+#define COMP_INTENSET_UP_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENSET_UP_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENSET_UP_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for DOWN event */
+#define COMP_INTENSET_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define COMP_INTENSET_DOWN_Msk (0x1UL << COMP_INTENSET_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define COMP_INTENSET_DOWN_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENSET_DOWN_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENSET_DOWN_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for READY event */
+#define COMP_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define COMP_INTENSET_READY_Msk (0x1UL << COMP_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define COMP_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: COMP_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 3 : Write '1' to disable interrupt for CROSS event */
+#define COMP_INTENCLR_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define COMP_INTENCLR_CROSS_Msk (0x1UL << COMP_INTENCLR_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define COMP_INTENCLR_CROSS_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENCLR_CROSS_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENCLR_CROSS_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for UP event */
+#define COMP_INTENCLR_UP_Pos (2UL) /*!< Position of UP field. */
+#define COMP_INTENCLR_UP_Msk (0x1UL << COMP_INTENCLR_UP_Pos) /*!< Bit mask of UP field. */
+#define COMP_INTENCLR_UP_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENCLR_UP_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENCLR_UP_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for DOWN event */
+#define COMP_INTENCLR_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define COMP_INTENCLR_DOWN_Msk (0x1UL << COMP_INTENCLR_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define COMP_INTENCLR_DOWN_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENCLR_DOWN_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENCLR_DOWN_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for READY event */
+#define COMP_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define COMP_INTENCLR_READY_Msk (0x1UL << COMP_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define COMP_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: COMP_RESULT */
+/* Description: Compare result */
+
+/* Bit 0 : Result of last compare. Decision point SAMPLE task. */
+#define COMP_RESULT_RESULT_Pos (0UL) /*!< Position of RESULT field. */
+#define COMP_RESULT_RESULT_Msk (0x1UL << COMP_RESULT_RESULT_Pos) /*!< Bit mask of RESULT field. */
+#define COMP_RESULT_RESULT_Below (0UL) /*!< Input voltage is below the threshold (VIN+ &lt; VIN-) */
+#define COMP_RESULT_RESULT_Above (1UL) /*!< Input voltage is above the threshold (VIN+ &gt; VIN-) */
+
+/* Register: COMP_ENABLE */
+/* Description: COMP enable */
+
+/* Bits 1..0 : Enable or disable COMP */
+#define COMP_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define COMP_ENABLE_ENABLE_Msk (0x3UL << COMP_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define COMP_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define COMP_ENABLE_ENABLE_Enabled (2UL) /*!< Enable */
+
+/* Register: COMP_PSEL */
+/* Description: Pin select */
+
+/* Bits 2..0 : Analog pin select */
+#define COMP_PSEL_PSEL_Pos (0UL) /*!< Position of PSEL field. */
+#define COMP_PSEL_PSEL_Msk (0x7UL << COMP_PSEL_PSEL_Pos) /*!< Bit mask of PSEL field. */
+#define COMP_PSEL_PSEL_AnalogInput0 (0UL) /*!< AIN0 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput1 (1UL) /*!< AIN1 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput2 (2UL) /*!< AIN2 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput3 (3UL) /*!< AIN3 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput4 (4UL) /*!< AIN4 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput5 (5UL) /*!< AIN5 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput6 (6UL) /*!< AIN6 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput7 (7UL) /*!< AIN7 selected as analog input */
+
+/* Register: COMP_REFSEL */
+/* Description: Reference source select for single-ended mode */
+
+/* Bits 2..0 : Reference select */
+#define COMP_REFSEL_REFSEL_Pos (0UL) /*!< Position of REFSEL field. */
+#define COMP_REFSEL_REFSEL_Msk (0x7UL << COMP_REFSEL_REFSEL_Pos) /*!< Bit mask of REFSEL field. */
+#define COMP_REFSEL_REFSEL_Int1V2 (0UL) /*!< VREF = internal 1.2 V reference (VDD &gt;= 1.7 V) */
+#define COMP_REFSEL_REFSEL_Int1V8 (1UL) /*!< VREF = internal 1.8 V reference (VDD &gt;= VREF + 0.2 V) */
+#define COMP_REFSEL_REFSEL_Int2V4 (2UL) /*!< VREF = internal 2.4 V reference (VDD &gt;= VREF + 0.2 V) */
+#define COMP_REFSEL_REFSEL_VDD (4UL) /*!< VREF = VDD */
+#define COMP_REFSEL_REFSEL_ARef (5UL) /*!< VREF = AREF (VDD &gt;= VREF &gt;= AREFMIN) */
+
+/* Register: COMP_EXTREFSEL */
+/* Description: External reference select */
+
+/* Bits 2..0 : External analog reference select */
+#define COMP_EXTREFSEL_EXTREFSEL_Pos (0UL) /*!< Position of EXTREFSEL field. */
+#define COMP_EXTREFSEL_EXTREFSEL_Msk (0x7UL << COMP_EXTREFSEL_EXTREFSEL_Pos) /*!< Bit mask of EXTREFSEL field. */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference0 (0UL) /*!< Use AIN0 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference1 (1UL) /*!< Use AIN1 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference2 (2UL) /*!< Use AIN2 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference3 (3UL) /*!< Use AIN3 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference4 (4UL) /*!< Use AIN4 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference5 (5UL) /*!< Use AIN5 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference6 (6UL) /*!< Use AIN6 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference7 (7UL) /*!< Use AIN7 as external analog reference */
+
+/* Register: COMP_TH */
+/* Description: Threshold configuration for hysteresis unit */
+
+/* Bits 13..8 : VUP = (THUP+1)/64*VREF */
+#define COMP_TH_THUP_Pos (8UL) /*!< Position of THUP field. */
+#define COMP_TH_THUP_Msk (0x3FUL << COMP_TH_THUP_Pos) /*!< Bit mask of THUP field. */
+
+/* Bits 5..0 : VDOWN = (THDOWN+1)/64*VREF */
+#define COMP_TH_THDOWN_Pos (0UL) /*!< Position of THDOWN field. */
+#define COMP_TH_THDOWN_Msk (0x3FUL << COMP_TH_THDOWN_Pos) /*!< Bit mask of THDOWN field. */
+
+/* Register: COMP_MODE */
+/* Description: Mode configuration */
+
+/* Bit 8 : Main operation modes */
+#define COMP_MODE_MAIN_Pos (8UL) /*!< Position of MAIN field. */
+#define COMP_MODE_MAIN_Msk (0x1UL << COMP_MODE_MAIN_Pos) /*!< Bit mask of MAIN field. */
+#define COMP_MODE_MAIN_SE (0UL) /*!< Single-ended mode */
+#define COMP_MODE_MAIN_Diff (1UL) /*!< Differential mode */
+
+/* Bits 1..0 : Speed and power modes */
+#define COMP_MODE_SP_Pos (0UL) /*!< Position of SP field. */
+#define COMP_MODE_SP_Msk (0x3UL << COMP_MODE_SP_Pos) /*!< Bit mask of SP field. */
+#define COMP_MODE_SP_Low (0UL) /*!< Low-power mode */
+#define COMP_MODE_SP_Normal (1UL) /*!< Normal mode */
+#define COMP_MODE_SP_High (2UL) /*!< High-speed mode */
+
+/* Register: COMP_HYST */
+/* Description: Comparator hysteresis enable */
+
+/* Bit 0 : Comparator hysteresis */
+#define COMP_HYST_HYST_Pos (0UL) /*!< Position of HYST field. */
+#define COMP_HYST_HYST_Msk (0x1UL << COMP_HYST_HYST_Pos) /*!< Bit mask of HYST field. */
+#define COMP_HYST_HYST_NoHyst (0UL) /*!< Comparator hysteresis disabled */
+#define COMP_HYST_HYST_Hyst50mV (1UL) /*!< Comparator hysteresis enabled */
+
+
+/* Peripheral: CRYPTOCELL */
+/* Description: ARM TrustZone CryptoCell register interface */
+
+/* Register: CRYPTOCELL_ENABLE */
+/* Description: Enable CRYPTOCELL subsystem */
+
+/* Bit 0 : Enable or disable the CRYPTOCELL subsystem */
+#define CRYPTOCELL_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define CRYPTOCELL_ENABLE_ENABLE_Msk (0x1UL << CRYPTOCELL_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define CRYPTOCELL_ENABLE_ENABLE_Disabled (0UL) /*!< CRYPTOCELL subsystem disabled */
+#define CRYPTOCELL_ENABLE_ENABLE_Enabled (1UL) /*!< CRYPTOCELL subsystem enabled */
+
+
+/* Peripheral: ECB */
+/* Description: AES ECB Mode Encryption */
+
+/* Register: ECB_TASKS_STARTECB */
+/* Description: Start ECB block encrypt */
+
+/* Bit 0 : */
+#define ECB_TASKS_STARTECB_TASKS_STARTECB_Pos (0UL) /*!< Position of TASKS_STARTECB field. */
+#define ECB_TASKS_STARTECB_TASKS_STARTECB_Msk (0x1UL << ECB_TASKS_STARTECB_TASKS_STARTECB_Pos) /*!< Bit mask of TASKS_STARTECB field. */
+
+/* Register: ECB_TASKS_STOPECB */
+/* Description: Abort a possible executing ECB operation */
+
+/* Bit 0 : */
+#define ECB_TASKS_STOPECB_TASKS_STOPECB_Pos (0UL) /*!< Position of TASKS_STOPECB field. */
+#define ECB_TASKS_STOPECB_TASKS_STOPECB_Msk (0x1UL << ECB_TASKS_STOPECB_TASKS_STOPECB_Pos) /*!< Bit mask of TASKS_STOPECB field. */
+
+/* Register: ECB_EVENTS_ENDECB */
+/* Description: ECB block encrypt complete */
+
+/* Bit 0 : */
+#define ECB_EVENTS_ENDECB_EVENTS_ENDECB_Pos (0UL) /*!< Position of EVENTS_ENDECB field. */
+#define ECB_EVENTS_ENDECB_EVENTS_ENDECB_Msk (0x1UL << ECB_EVENTS_ENDECB_EVENTS_ENDECB_Pos) /*!< Bit mask of EVENTS_ENDECB field. */
+
+/* Register: ECB_EVENTS_ERRORECB */
+/* Description: ECB block encrypt aborted because of a STOPECB task or due to an error */
+
+/* Bit 0 : */
+#define ECB_EVENTS_ERRORECB_EVENTS_ERRORECB_Pos (0UL) /*!< Position of EVENTS_ERRORECB field. */
+#define ECB_EVENTS_ERRORECB_EVENTS_ERRORECB_Msk (0x1UL << ECB_EVENTS_ERRORECB_EVENTS_ERRORECB_Pos) /*!< Bit mask of EVENTS_ERRORECB field. */
+
+/* Register: ECB_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 1 : Write '1' to enable interrupt for ERRORECB event */
+#define ECB_INTENSET_ERRORECB_Pos (1UL) /*!< Position of ERRORECB field. */
+#define ECB_INTENSET_ERRORECB_Msk (0x1UL << ECB_INTENSET_ERRORECB_Pos) /*!< Bit mask of ERRORECB field. */
+#define ECB_INTENSET_ERRORECB_Disabled (0UL) /*!< Read: Disabled */
+#define ECB_INTENSET_ERRORECB_Enabled (1UL) /*!< Read: Enabled */
+#define ECB_INTENSET_ERRORECB_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for ENDECB event */
+#define ECB_INTENSET_ENDECB_Pos (0UL) /*!< Position of ENDECB field. */
+#define ECB_INTENSET_ENDECB_Msk (0x1UL << ECB_INTENSET_ENDECB_Pos) /*!< Bit mask of ENDECB field. */
+#define ECB_INTENSET_ENDECB_Disabled (0UL) /*!< Read: Disabled */
+#define ECB_INTENSET_ENDECB_Enabled (1UL) /*!< Read: Enabled */
+#define ECB_INTENSET_ENDECB_Set (1UL) /*!< Enable */
+
+/* Register: ECB_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 1 : Write '1' to disable interrupt for ERRORECB event */
+#define ECB_INTENCLR_ERRORECB_Pos (1UL) /*!< Position of ERRORECB field. */
+#define ECB_INTENCLR_ERRORECB_Msk (0x1UL << ECB_INTENCLR_ERRORECB_Pos) /*!< Bit mask of ERRORECB field. */
+#define ECB_INTENCLR_ERRORECB_Disabled (0UL) /*!< Read: Disabled */
+#define ECB_INTENCLR_ERRORECB_Enabled (1UL) /*!< Read: Enabled */
+#define ECB_INTENCLR_ERRORECB_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for ENDECB event */
+#define ECB_INTENCLR_ENDECB_Pos (0UL) /*!< Position of ENDECB field. */
+#define ECB_INTENCLR_ENDECB_Msk (0x1UL << ECB_INTENCLR_ENDECB_Pos) /*!< Bit mask of ENDECB field. */
+#define ECB_INTENCLR_ENDECB_Disabled (0UL) /*!< Read: Disabled */
+#define ECB_INTENCLR_ENDECB_Enabled (1UL) /*!< Read: Enabled */
+#define ECB_INTENCLR_ENDECB_Clear (1UL) /*!< Disable */
+
+/* Register: ECB_ECBDATAPTR */
+/* Description: ECB block encrypt memory pointers */
+
+/* Bits 31..0 : Pointer to the ECB data structure (see Table 1 ECB data structure overview) */
+#define ECB_ECBDATAPTR_ECBDATAPTR_Pos (0UL) /*!< Position of ECBDATAPTR field. */
+#define ECB_ECBDATAPTR_ECBDATAPTR_Msk (0xFFFFFFFFUL << ECB_ECBDATAPTR_ECBDATAPTR_Pos) /*!< Bit mask of ECBDATAPTR field. */
+
+
+/* Peripheral: EGU */
+/* Description: Event Generator Unit 0 */
+
+/* Register: EGU_TASKS_TRIGGER */
+/* Description: Description collection[n]: Trigger n for triggering the corresponding TRIGGERED[n] event */
+
+/* Bit 0 : */
+#define EGU_TASKS_TRIGGER_TASKS_TRIGGER_Pos (0UL) /*!< Position of TASKS_TRIGGER field. */
+#define EGU_TASKS_TRIGGER_TASKS_TRIGGER_Msk (0x1UL << EGU_TASKS_TRIGGER_TASKS_TRIGGER_Pos) /*!< Bit mask of TASKS_TRIGGER field. */
+
+/* Register: EGU_EVENTS_TRIGGERED */
+/* Description: Description collection[n]: Event number n generated by triggering the corresponding TRIGGER[n] task */
+
+/* Bit 0 : */
+#define EGU_EVENTS_TRIGGERED_EVENTS_TRIGGERED_Pos (0UL) /*!< Position of EVENTS_TRIGGERED field. */
+#define EGU_EVENTS_TRIGGERED_EVENTS_TRIGGERED_Msk (0x1UL << EGU_EVENTS_TRIGGERED_EVENTS_TRIGGERED_Pos) /*!< Bit mask of EVENTS_TRIGGERED field. */
+
+/* Register: EGU_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 15 : Enable or disable interrupt for TRIGGERED[15] event */
+#define EGU_INTEN_TRIGGERED15_Pos (15UL) /*!< Position of TRIGGERED15 field. */
+#define EGU_INTEN_TRIGGERED15_Msk (0x1UL << EGU_INTEN_TRIGGERED15_Pos) /*!< Bit mask of TRIGGERED15 field. */
+#define EGU_INTEN_TRIGGERED15_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED15_Enabled (1UL) /*!< Enable */
+
+/* Bit 14 : Enable or disable interrupt for TRIGGERED[14] event */
+#define EGU_INTEN_TRIGGERED14_Pos (14UL) /*!< Position of TRIGGERED14 field. */
+#define EGU_INTEN_TRIGGERED14_Msk (0x1UL << EGU_INTEN_TRIGGERED14_Pos) /*!< Bit mask of TRIGGERED14 field. */
+#define EGU_INTEN_TRIGGERED14_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED14_Enabled (1UL) /*!< Enable */
+
+/* Bit 13 : Enable or disable interrupt for TRIGGERED[13] event */
+#define EGU_INTEN_TRIGGERED13_Pos (13UL) /*!< Position of TRIGGERED13 field. */
+#define EGU_INTEN_TRIGGERED13_Msk (0x1UL << EGU_INTEN_TRIGGERED13_Pos) /*!< Bit mask of TRIGGERED13 field. */
+#define EGU_INTEN_TRIGGERED13_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED13_Enabled (1UL) /*!< Enable */
+
+/* Bit 12 : Enable or disable interrupt for TRIGGERED[12] event */
+#define EGU_INTEN_TRIGGERED12_Pos (12UL) /*!< Position of TRIGGERED12 field. */
+#define EGU_INTEN_TRIGGERED12_Msk (0x1UL << EGU_INTEN_TRIGGERED12_Pos) /*!< Bit mask of TRIGGERED12 field. */
+#define EGU_INTEN_TRIGGERED12_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED12_Enabled (1UL) /*!< Enable */
+
+/* Bit 11 : Enable or disable interrupt for TRIGGERED[11] event */
+#define EGU_INTEN_TRIGGERED11_Pos (11UL) /*!< Position of TRIGGERED11 field. */
+#define EGU_INTEN_TRIGGERED11_Msk (0x1UL << EGU_INTEN_TRIGGERED11_Pos) /*!< Bit mask of TRIGGERED11 field. */
+#define EGU_INTEN_TRIGGERED11_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED11_Enabled (1UL) /*!< Enable */
+
+/* Bit 10 : Enable or disable interrupt for TRIGGERED[10] event */
+#define EGU_INTEN_TRIGGERED10_Pos (10UL) /*!< Position of TRIGGERED10 field. */
+#define EGU_INTEN_TRIGGERED10_Msk (0x1UL << EGU_INTEN_TRIGGERED10_Pos) /*!< Bit mask of TRIGGERED10 field. */
+#define EGU_INTEN_TRIGGERED10_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED10_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for TRIGGERED[9] event */
+#define EGU_INTEN_TRIGGERED9_Pos (9UL) /*!< Position of TRIGGERED9 field. */
+#define EGU_INTEN_TRIGGERED9_Msk (0x1UL << EGU_INTEN_TRIGGERED9_Pos) /*!< Bit mask of TRIGGERED9 field. */
+#define EGU_INTEN_TRIGGERED9_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED9_Enabled (1UL) /*!< Enable */
+
+/* Bit 8 : Enable or disable interrupt for TRIGGERED[8] event */
+#define EGU_INTEN_TRIGGERED8_Pos (8UL) /*!< Position of TRIGGERED8 field. */
+#define EGU_INTEN_TRIGGERED8_Msk (0x1UL << EGU_INTEN_TRIGGERED8_Pos) /*!< Bit mask of TRIGGERED8 field. */
+#define EGU_INTEN_TRIGGERED8_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED8_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for TRIGGERED[7] event */
+#define EGU_INTEN_TRIGGERED7_Pos (7UL) /*!< Position of TRIGGERED7 field. */
+#define EGU_INTEN_TRIGGERED7_Msk (0x1UL << EGU_INTEN_TRIGGERED7_Pos) /*!< Bit mask of TRIGGERED7 field. */
+#define EGU_INTEN_TRIGGERED7_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED7_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for TRIGGERED[6] event */
+#define EGU_INTEN_TRIGGERED6_Pos (6UL) /*!< Position of TRIGGERED6 field. */
+#define EGU_INTEN_TRIGGERED6_Msk (0x1UL << EGU_INTEN_TRIGGERED6_Pos) /*!< Bit mask of TRIGGERED6 field. */
+#define EGU_INTEN_TRIGGERED6_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED6_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for TRIGGERED[5] event */
+#define EGU_INTEN_TRIGGERED5_Pos (5UL) /*!< Position of TRIGGERED5 field. */
+#define EGU_INTEN_TRIGGERED5_Msk (0x1UL << EGU_INTEN_TRIGGERED5_Pos) /*!< Bit mask of TRIGGERED5 field. */
+#define EGU_INTEN_TRIGGERED5_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED5_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for TRIGGERED[4] event */
+#define EGU_INTEN_TRIGGERED4_Pos (4UL) /*!< Position of TRIGGERED4 field. */
+#define EGU_INTEN_TRIGGERED4_Msk (0x1UL << EGU_INTEN_TRIGGERED4_Pos) /*!< Bit mask of TRIGGERED4 field. */
+#define EGU_INTEN_TRIGGERED4_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED4_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for TRIGGERED[3] event */
+#define EGU_INTEN_TRIGGERED3_Pos (3UL) /*!< Position of TRIGGERED3 field. */
+#define EGU_INTEN_TRIGGERED3_Msk (0x1UL << EGU_INTEN_TRIGGERED3_Pos) /*!< Bit mask of TRIGGERED3 field. */
+#define EGU_INTEN_TRIGGERED3_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED3_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for TRIGGERED[2] event */
+#define EGU_INTEN_TRIGGERED2_Pos (2UL) /*!< Position of TRIGGERED2 field. */
+#define EGU_INTEN_TRIGGERED2_Msk (0x1UL << EGU_INTEN_TRIGGERED2_Pos) /*!< Bit mask of TRIGGERED2 field. */
+#define EGU_INTEN_TRIGGERED2_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED2_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for TRIGGERED[1] event */
+#define EGU_INTEN_TRIGGERED1_Pos (1UL) /*!< Position of TRIGGERED1 field. */
+#define EGU_INTEN_TRIGGERED1_Msk (0x1UL << EGU_INTEN_TRIGGERED1_Pos) /*!< Bit mask of TRIGGERED1 field. */
+#define EGU_INTEN_TRIGGERED1_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED1_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for TRIGGERED[0] event */
+#define EGU_INTEN_TRIGGERED0_Pos (0UL) /*!< Position of TRIGGERED0 field. */
+#define EGU_INTEN_TRIGGERED0_Msk (0x1UL << EGU_INTEN_TRIGGERED0_Pos) /*!< Bit mask of TRIGGERED0 field. */
+#define EGU_INTEN_TRIGGERED0_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED0_Enabled (1UL) /*!< Enable */
+
+/* Register: EGU_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 15 : Write '1' to enable interrupt for TRIGGERED[15] event */
+#define EGU_INTENSET_TRIGGERED15_Pos (15UL) /*!< Position of TRIGGERED15 field. */
+#define EGU_INTENSET_TRIGGERED15_Msk (0x1UL << EGU_INTENSET_TRIGGERED15_Pos) /*!< Bit mask of TRIGGERED15 field. */
+#define EGU_INTENSET_TRIGGERED15_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED15_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED15_Set (1UL) /*!< Enable */
+
+/* Bit 14 : Write '1' to enable interrupt for TRIGGERED[14] event */
+#define EGU_INTENSET_TRIGGERED14_Pos (14UL) /*!< Position of TRIGGERED14 field. */
+#define EGU_INTENSET_TRIGGERED14_Msk (0x1UL << EGU_INTENSET_TRIGGERED14_Pos) /*!< Bit mask of TRIGGERED14 field. */
+#define EGU_INTENSET_TRIGGERED14_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED14_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED14_Set (1UL) /*!< Enable */
+
+/* Bit 13 : Write '1' to enable interrupt for TRIGGERED[13] event */
+#define EGU_INTENSET_TRIGGERED13_Pos (13UL) /*!< Position of TRIGGERED13 field. */
+#define EGU_INTENSET_TRIGGERED13_Msk (0x1UL << EGU_INTENSET_TRIGGERED13_Pos) /*!< Bit mask of TRIGGERED13 field. */
+#define EGU_INTENSET_TRIGGERED13_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED13_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED13_Set (1UL) /*!< Enable */
+
+/* Bit 12 : Write '1' to enable interrupt for TRIGGERED[12] event */
+#define EGU_INTENSET_TRIGGERED12_Pos (12UL) /*!< Position of TRIGGERED12 field. */
+#define EGU_INTENSET_TRIGGERED12_Msk (0x1UL << EGU_INTENSET_TRIGGERED12_Pos) /*!< Bit mask of TRIGGERED12 field. */
+#define EGU_INTENSET_TRIGGERED12_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED12_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED12_Set (1UL) /*!< Enable */
+
+/* Bit 11 : Write '1' to enable interrupt for TRIGGERED[11] event */
+#define EGU_INTENSET_TRIGGERED11_Pos (11UL) /*!< Position of TRIGGERED11 field. */
+#define EGU_INTENSET_TRIGGERED11_Msk (0x1UL << EGU_INTENSET_TRIGGERED11_Pos) /*!< Bit mask of TRIGGERED11 field. */
+#define EGU_INTENSET_TRIGGERED11_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED11_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED11_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to enable interrupt for TRIGGERED[10] event */
+#define EGU_INTENSET_TRIGGERED10_Pos (10UL) /*!< Position of TRIGGERED10 field. */
+#define EGU_INTENSET_TRIGGERED10_Msk (0x1UL << EGU_INTENSET_TRIGGERED10_Pos) /*!< Bit mask of TRIGGERED10 field. */
+#define EGU_INTENSET_TRIGGERED10_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED10_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED10_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to enable interrupt for TRIGGERED[9] event */
+#define EGU_INTENSET_TRIGGERED9_Pos (9UL) /*!< Position of TRIGGERED9 field. */
+#define EGU_INTENSET_TRIGGERED9_Msk (0x1UL << EGU_INTENSET_TRIGGERED9_Pos) /*!< Bit mask of TRIGGERED9 field. */
+#define EGU_INTENSET_TRIGGERED9_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED9_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED9_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to enable interrupt for TRIGGERED[8] event */
+#define EGU_INTENSET_TRIGGERED8_Pos (8UL) /*!< Position of TRIGGERED8 field. */
+#define EGU_INTENSET_TRIGGERED8_Msk (0x1UL << EGU_INTENSET_TRIGGERED8_Pos) /*!< Bit mask of TRIGGERED8 field. */
+#define EGU_INTENSET_TRIGGERED8_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED8_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED8_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to enable interrupt for TRIGGERED[7] event */
+#define EGU_INTENSET_TRIGGERED7_Pos (7UL) /*!< Position of TRIGGERED7 field. */
+#define EGU_INTENSET_TRIGGERED7_Msk (0x1UL << EGU_INTENSET_TRIGGERED7_Pos) /*!< Bit mask of TRIGGERED7 field. */
+#define EGU_INTENSET_TRIGGERED7_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED7_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED7_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to enable interrupt for TRIGGERED[6] event */
+#define EGU_INTENSET_TRIGGERED6_Pos (6UL) /*!< Position of TRIGGERED6 field. */
+#define EGU_INTENSET_TRIGGERED6_Msk (0x1UL << EGU_INTENSET_TRIGGERED6_Pos) /*!< Bit mask of TRIGGERED6 field. */
+#define EGU_INTENSET_TRIGGERED6_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED6_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED6_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to enable interrupt for TRIGGERED[5] event */
+#define EGU_INTENSET_TRIGGERED5_Pos (5UL) /*!< Position of TRIGGERED5 field. */
+#define EGU_INTENSET_TRIGGERED5_Msk (0x1UL << EGU_INTENSET_TRIGGERED5_Pos) /*!< Bit mask of TRIGGERED5 field. */
+#define EGU_INTENSET_TRIGGERED5_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED5_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED5_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable interrupt for TRIGGERED[4] event */
+#define EGU_INTENSET_TRIGGERED4_Pos (4UL) /*!< Position of TRIGGERED4 field. */
+#define EGU_INTENSET_TRIGGERED4_Msk (0x1UL << EGU_INTENSET_TRIGGERED4_Pos) /*!< Bit mask of TRIGGERED4 field. */
+#define EGU_INTENSET_TRIGGERED4_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED4_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED4_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to enable interrupt for TRIGGERED[3] event */
+#define EGU_INTENSET_TRIGGERED3_Pos (3UL) /*!< Position of TRIGGERED3 field. */
+#define EGU_INTENSET_TRIGGERED3_Msk (0x1UL << EGU_INTENSET_TRIGGERED3_Pos) /*!< Bit mask of TRIGGERED3 field. */
+#define EGU_INTENSET_TRIGGERED3_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED3_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED3_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for TRIGGERED[2] event */
+#define EGU_INTENSET_TRIGGERED2_Pos (2UL) /*!< Position of TRIGGERED2 field. */
+#define EGU_INTENSET_TRIGGERED2_Msk (0x1UL << EGU_INTENSET_TRIGGERED2_Pos) /*!< Bit mask of TRIGGERED2 field. */
+#define EGU_INTENSET_TRIGGERED2_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED2_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED2_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for TRIGGERED[1] event */
+#define EGU_INTENSET_TRIGGERED1_Pos (1UL) /*!< Position of TRIGGERED1 field. */
+#define EGU_INTENSET_TRIGGERED1_Msk (0x1UL << EGU_INTENSET_TRIGGERED1_Pos) /*!< Bit mask of TRIGGERED1 field. */
+#define EGU_INTENSET_TRIGGERED1_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED1_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED1_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for TRIGGERED[0] event */
+#define EGU_INTENSET_TRIGGERED0_Pos (0UL) /*!< Position of TRIGGERED0 field. */
+#define EGU_INTENSET_TRIGGERED0_Msk (0x1UL << EGU_INTENSET_TRIGGERED0_Pos) /*!< Bit mask of TRIGGERED0 field. */
+#define EGU_INTENSET_TRIGGERED0_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED0_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED0_Set (1UL) /*!< Enable */
+
+/* Register: EGU_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 15 : Write '1' to disable interrupt for TRIGGERED[15] event */
+#define EGU_INTENCLR_TRIGGERED15_Pos (15UL) /*!< Position of TRIGGERED15 field. */
+#define EGU_INTENCLR_TRIGGERED15_Msk (0x1UL << EGU_INTENCLR_TRIGGERED15_Pos) /*!< Bit mask of TRIGGERED15 field. */
+#define EGU_INTENCLR_TRIGGERED15_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED15_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED15_Clear (1UL) /*!< Disable */
+
+/* Bit 14 : Write '1' to disable interrupt for TRIGGERED[14] event */
+#define EGU_INTENCLR_TRIGGERED14_Pos (14UL) /*!< Position of TRIGGERED14 field. */
+#define EGU_INTENCLR_TRIGGERED14_Msk (0x1UL << EGU_INTENCLR_TRIGGERED14_Pos) /*!< Bit mask of TRIGGERED14 field. */
+#define EGU_INTENCLR_TRIGGERED14_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED14_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED14_Clear (1UL) /*!< Disable */
+
+/* Bit 13 : Write '1' to disable interrupt for TRIGGERED[13] event */
+#define EGU_INTENCLR_TRIGGERED13_Pos (13UL) /*!< Position of TRIGGERED13 field. */
+#define EGU_INTENCLR_TRIGGERED13_Msk (0x1UL << EGU_INTENCLR_TRIGGERED13_Pos) /*!< Bit mask of TRIGGERED13 field. */
+#define EGU_INTENCLR_TRIGGERED13_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED13_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED13_Clear (1UL) /*!< Disable */
+
+/* Bit 12 : Write '1' to disable interrupt for TRIGGERED[12] event */
+#define EGU_INTENCLR_TRIGGERED12_Pos (12UL) /*!< Position of TRIGGERED12 field. */
+#define EGU_INTENCLR_TRIGGERED12_Msk (0x1UL << EGU_INTENCLR_TRIGGERED12_Pos) /*!< Bit mask of TRIGGERED12 field. */
+#define EGU_INTENCLR_TRIGGERED12_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED12_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED12_Clear (1UL) /*!< Disable */
+
+/* Bit 11 : Write '1' to disable interrupt for TRIGGERED[11] event */
+#define EGU_INTENCLR_TRIGGERED11_Pos (11UL) /*!< Position of TRIGGERED11 field. */
+#define EGU_INTENCLR_TRIGGERED11_Msk (0x1UL << EGU_INTENCLR_TRIGGERED11_Pos) /*!< Bit mask of TRIGGERED11 field. */
+#define EGU_INTENCLR_TRIGGERED11_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED11_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED11_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to disable interrupt for TRIGGERED[10] event */
+#define EGU_INTENCLR_TRIGGERED10_Pos (10UL) /*!< Position of TRIGGERED10 field. */
+#define EGU_INTENCLR_TRIGGERED10_Msk (0x1UL << EGU_INTENCLR_TRIGGERED10_Pos) /*!< Bit mask of TRIGGERED10 field. */
+#define EGU_INTENCLR_TRIGGERED10_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED10_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED10_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to disable interrupt for TRIGGERED[9] event */
+#define EGU_INTENCLR_TRIGGERED9_Pos (9UL) /*!< Position of TRIGGERED9 field. */
+#define EGU_INTENCLR_TRIGGERED9_Msk (0x1UL << EGU_INTENCLR_TRIGGERED9_Pos) /*!< Bit mask of TRIGGERED9 field. */
+#define EGU_INTENCLR_TRIGGERED9_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED9_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED9_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to disable interrupt for TRIGGERED[8] event */
+#define EGU_INTENCLR_TRIGGERED8_Pos (8UL) /*!< Position of TRIGGERED8 field. */
+#define EGU_INTENCLR_TRIGGERED8_Msk (0x1UL << EGU_INTENCLR_TRIGGERED8_Pos) /*!< Bit mask of TRIGGERED8 field. */
+#define EGU_INTENCLR_TRIGGERED8_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED8_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED8_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to disable interrupt for TRIGGERED[7] event */
+#define EGU_INTENCLR_TRIGGERED7_Pos (7UL) /*!< Position of TRIGGERED7 field. */
+#define EGU_INTENCLR_TRIGGERED7_Msk (0x1UL << EGU_INTENCLR_TRIGGERED7_Pos) /*!< Bit mask of TRIGGERED7 field. */
+#define EGU_INTENCLR_TRIGGERED7_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED7_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED7_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to disable interrupt for TRIGGERED[6] event */
+#define EGU_INTENCLR_TRIGGERED6_Pos (6UL) /*!< Position of TRIGGERED6 field. */
+#define EGU_INTENCLR_TRIGGERED6_Msk (0x1UL << EGU_INTENCLR_TRIGGERED6_Pos) /*!< Bit mask of TRIGGERED6 field. */
+#define EGU_INTENCLR_TRIGGERED6_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED6_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED6_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to disable interrupt for TRIGGERED[5] event */
+#define EGU_INTENCLR_TRIGGERED5_Pos (5UL) /*!< Position of TRIGGERED5 field. */
+#define EGU_INTENCLR_TRIGGERED5_Msk (0x1UL << EGU_INTENCLR_TRIGGERED5_Pos) /*!< Bit mask of TRIGGERED5 field. */
+#define EGU_INTENCLR_TRIGGERED5_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED5_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED5_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable interrupt for TRIGGERED[4] event */
+#define EGU_INTENCLR_TRIGGERED4_Pos (4UL) /*!< Position of TRIGGERED4 field. */
+#define EGU_INTENCLR_TRIGGERED4_Msk (0x1UL << EGU_INTENCLR_TRIGGERED4_Pos) /*!< Bit mask of TRIGGERED4 field. */
+#define EGU_INTENCLR_TRIGGERED4_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED4_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED4_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to disable interrupt for TRIGGERED[3] event */
+#define EGU_INTENCLR_TRIGGERED3_Pos (3UL) /*!< Position of TRIGGERED3 field. */
+#define EGU_INTENCLR_TRIGGERED3_Msk (0x1UL << EGU_INTENCLR_TRIGGERED3_Pos) /*!< Bit mask of TRIGGERED3 field. */
+#define EGU_INTENCLR_TRIGGERED3_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED3_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED3_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for TRIGGERED[2] event */
+#define EGU_INTENCLR_TRIGGERED2_Pos (2UL) /*!< Position of TRIGGERED2 field. */
+#define EGU_INTENCLR_TRIGGERED2_Msk (0x1UL << EGU_INTENCLR_TRIGGERED2_Pos) /*!< Bit mask of TRIGGERED2 field. */
+#define EGU_INTENCLR_TRIGGERED2_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED2_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED2_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for TRIGGERED[1] event */
+#define EGU_INTENCLR_TRIGGERED1_Pos (1UL) /*!< Position of TRIGGERED1 field. */
+#define EGU_INTENCLR_TRIGGERED1_Msk (0x1UL << EGU_INTENCLR_TRIGGERED1_Pos) /*!< Bit mask of TRIGGERED1 field. */
+#define EGU_INTENCLR_TRIGGERED1_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED1_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED1_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for TRIGGERED[0] event */
+#define EGU_INTENCLR_TRIGGERED0_Pos (0UL) /*!< Position of TRIGGERED0 field. */
+#define EGU_INTENCLR_TRIGGERED0_Msk (0x1UL << EGU_INTENCLR_TRIGGERED0_Pos) /*!< Bit mask of TRIGGERED0 field. */
+#define EGU_INTENCLR_TRIGGERED0_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED0_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED0_Clear (1UL) /*!< Disable */
+
+
+/* Peripheral: FICR */
+/* Description: Factory information configuration registers */
+
+/* Register: FICR_CODEPAGESIZE */
+/* Description: Code memory page size */
+
+/* Bits 31..0 : Code memory page size */
+#define FICR_CODEPAGESIZE_CODEPAGESIZE_Pos (0UL) /*!< Position of CODEPAGESIZE field. */
+#define FICR_CODEPAGESIZE_CODEPAGESIZE_Msk (0xFFFFFFFFUL << FICR_CODEPAGESIZE_CODEPAGESIZE_Pos) /*!< Bit mask of CODEPAGESIZE field. */
+
+/* Register: FICR_CODESIZE */
+/* Description: Code memory size */
+
+/* Bits 31..0 : Code memory size in number of pages */
+#define FICR_CODESIZE_CODESIZE_Pos (0UL) /*!< Position of CODESIZE field. */
+#define FICR_CODESIZE_CODESIZE_Msk (0xFFFFFFFFUL << FICR_CODESIZE_CODESIZE_Pos) /*!< Bit mask of CODESIZE field. */
+
+/* Register: FICR_DEVICEID */
+/* Description: Description collection[n]: Device identifier */
+
+/* Bits 31..0 : 64 bit unique device identifier */
+#define FICR_DEVICEID_DEVICEID_Pos (0UL) /*!< Position of DEVICEID field. */
+#define FICR_DEVICEID_DEVICEID_Msk (0xFFFFFFFFUL << FICR_DEVICEID_DEVICEID_Pos) /*!< Bit mask of DEVICEID field. */
+
+/* Register: FICR_ER */
+/* Description: Description collection[n]: Encryption root, word n */
+
+/* Bits 31..0 : Encryption root, word n */
+#define FICR_ER_ER_Pos (0UL) /*!< Position of ER field. */
+#define FICR_ER_ER_Msk (0xFFFFFFFFUL << FICR_ER_ER_Pos) /*!< Bit mask of ER field. */
+
+/* Register: FICR_IR */
+/* Description: Description collection[n]: Identity Root, word n */
+
+/* Bits 31..0 : Identity Root, word n */
+#define FICR_IR_IR_Pos (0UL) /*!< Position of IR field. */
+#define FICR_IR_IR_Msk (0xFFFFFFFFUL << FICR_IR_IR_Pos) /*!< Bit mask of IR field. */
+
+/* Register: FICR_DEVICEADDRTYPE */
+/* Description: Device address type */
+
+/* Bit 0 : Device address type */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Pos (0UL) /*!< Position of DEVICEADDRTYPE field. */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Msk (0x1UL << FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Pos) /*!< Bit mask of DEVICEADDRTYPE field. */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Public (0UL) /*!< Public address */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Random (1UL) /*!< Random address */
+
+/* Register: FICR_DEVICEADDR */
+/* Description: Description collection[n]: Device address n */
+
+/* Bits 31..0 : 48 bit device address */
+#define FICR_DEVICEADDR_DEVICEADDR_Pos (0UL) /*!< Position of DEVICEADDR field. */
+#define FICR_DEVICEADDR_DEVICEADDR_Msk (0xFFFFFFFFUL << FICR_DEVICEADDR_DEVICEADDR_Pos) /*!< Bit mask of DEVICEADDR field. */
+
+/* Register: FICR_INFO_PART */
+/* Description: Part code */
+
+/* Bits 31..0 : Part code */
+#define FICR_INFO_PART_PART_Pos (0UL) /*!< Position of PART field. */
+#define FICR_INFO_PART_PART_Msk (0xFFFFFFFFUL << FICR_INFO_PART_PART_Pos) /*!< Bit mask of PART field. */
+#define FICR_INFO_PART_PART_N52840 (0x52840UL) /*!< nRF52840 */
+#define FICR_INFO_PART_PART_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_INFO_VARIANT */
+/* Description: Build code (hardware version and production configuration) */
+
+/* Bits 31..0 : Build code (hardware version and production configuration). Encoded as ASCII. */
+#define FICR_INFO_VARIANT_VARIANT_Pos (0UL) /*!< Position of VARIANT field. */
+#define FICR_INFO_VARIANT_VARIANT_Msk (0xFFFFFFFFUL << FICR_INFO_VARIANT_VARIANT_Pos) /*!< Bit mask of VARIANT field. */
+#define FICR_INFO_VARIANT_VARIANT_AAAA (0x41414141UL) /*!< AAAA */
+#define FICR_INFO_VARIANT_VARIANT_AAAB (0x41414142UL) /*!< AAAB */
+#define FICR_INFO_VARIANT_VARIANT_AABA (0x41414241UL) /*!< AABA */
+#define FICR_INFO_VARIANT_VARIANT_AABB (0x41414242UL) /*!< AABB */
+#define FICR_INFO_VARIANT_VARIANT_AACA (0x41414341UL) /*!< AACA */
+#define FICR_INFO_VARIANT_VARIANT_BAAA (0x42414141UL) /*!< BAAA */
+#define FICR_INFO_VARIANT_VARIANT_CAAA (0x43414141UL) /*!< CAAA */
+#define FICR_INFO_VARIANT_VARIANT_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_INFO_PACKAGE */
+/* Description: Package option */
+
+/* Bits 31..0 : Package option */
+#define FICR_INFO_PACKAGE_PACKAGE_Pos (0UL) /*!< Position of PACKAGE field. */
+#define FICR_INFO_PACKAGE_PACKAGE_Msk (0xFFFFFFFFUL << FICR_INFO_PACKAGE_PACKAGE_Pos) /*!< Bit mask of PACKAGE field. */
+#define FICR_INFO_PACKAGE_PACKAGE_QI (0x2004UL) /*!< QIxx - 73-pin aQFN */
+#define FICR_INFO_PACKAGE_PACKAGE_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_INFO_RAM */
+/* Description: RAM variant */
+
+/* Bits 31..0 : RAM variant */
+#define FICR_INFO_RAM_RAM_Pos (0UL) /*!< Position of RAM field. */
+#define FICR_INFO_RAM_RAM_Msk (0xFFFFFFFFUL << FICR_INFO_RAM_RAM_Pos) /*!< Bit mask of RAM field. */
+#define FICR_INFO_RAM_RAM_K16 (0x10UL) /*!< 16 kByte RAM */
+#define FICR_INFO_RAM_RAM_K32 (0x20UL) /*!< 32 kByte RAM */
+#define FICR_INFO_RAM_RAM_K64 (0x40UL) /*!< 64 kByte RAM */
+#define FICR_INFO_RAM_RAM_K128 (0x80UL) /*!< 128 kByte RAM */
+#define FICR_INFO_RAM_RAM_K256 (0x100UL) /*!< 256 kByte RAM */
+#define FICR_INFO_RAM_RAM_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_INFO_FLASH */
+/* Description: Flash variant */
+
+/* Bits 31..0 : Flash variant */
+#define FICR_INFO_FLASH_FLASH_Pos (0UL) /*!< Position of FLASH field. */
+#define FICR_INFO_FLASH_FLASH_Msk (0xFFFFFFFFUL << FICR_INFO_FLASH_FLASH_Pos) /*!< Bit mask of FLASH field. */
+#define FICR_INFO_FLASH_FLASH_K128 (0x80UL) /*!< 128 kByte FLASH */
+#define FICR_INFO_FLASH_FLASH_K256 (0x100UL) /*!< 256 kByte FLASH */
+#define FICR_INFO_FLASH_FLASH_K512 (0x200UL) /*!< 512 kByte FLASH */
+#define FICR_INFO_FLASH_FLASH_K1024 (0x400UL) /*!< 1 MByte FLASH */
+#define FICR_INFO_FLASH_FLASH_K2048 (0x800UL) /*!< 2 MByte FLASH */
+#define FICR_INFO_FLASH_FLASH_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_PRODTEST */
+/* Description: Description collection[n]: Production test signature n */
+
+/* Bits 31..0 : Production test signature n */
+#define FICR_PRODTEST_PRODTEST_Pos (0UL) /*!< Position of PRODTEST field. */
+#define FICR_PRODTEST_PRODTEST_Msk (0xFFFFFFFFUL << FICR_PRODTEST_PRODTEST_Pos) /*!< Bit mask of PRODTEST field. */
+#define FICR_PRODTEST_PRODTEST_Done (0xBB42319FUL) /*!< Production tests done */
+#define FICR_PRODTEST_PRODTEST_NotDone (0xFFFFFFFFUL) /*!< Production tests not done */
+
+/* Register: FICR_TEMP_A0 */
+/* Description: Slope definition A0 */
+
+/* Bits 11..0 : A (slope definition) register. */
+#define FICR_TEMP_A0_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A0_A_Msk (0xFFFUL << FICR_TEMP_A0_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A1 */
+/* Description: Slope definition A1 */
+
+/* Bits 11..0 : A (slope definition) register. */
+#define FICR_TEMP_A1_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A1_A_Msk (0xFFFUL << FICR_TEMP_A1_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A2 */
+/* Description: Slope definition A2 */
+
+/* Bits 11..0 : A (slope definition) register. */
+#define FICR_TEMP_A2_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A2_A_Msk (0xFFFUL << FICR_TEMP_A2_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A3 */
+/* Description: Slope definition A3 */
+
+/* Bits 11..0 : A (slope definition) register. */
+#define FICR_TEMP_A3_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A3_A_Msk (0xFFFUL << FICR_TEMP_A3_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A4 */
+/* Description: Slope definition A4 */
+
+/* Bits 11..0 : A (slope definition) register. */
+#define FICR_TEMP_A4_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A4_A_Msk (0xFFFUL << FICR_TEMP_A4_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A5 */
+/* Description: Slope definition A5 */
+
+/* Bits 11..0 : A (slope definition) register. */
+#define FICR_TEMP_A5_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A5_A_Msk (0xFFFUL << FICR_TEMP_A5_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_B0 */
+/* Description: Y-intercept B0 */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B0_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B0_B_Msk (0x3FFFUL << FICR_TEMP_B0_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B1 */
+/* Description: Y-intercept B1 */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B1_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B1_B_Msk (0x3FFFUL << FICR_TEMP_B1_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B2 */
+/* Description: Y-intercept B2 */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B2_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B2_B_Msk (0x3FFFUL << FICR_TEMP_B2_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B3 */
+/* Description: Y-intercept B3 */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B3_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B3_B_Msk (0x3FFFUL << FICR_TEMP_B3_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B4 */
+/* Description: Y-intercept B4 */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B4_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B4_B_Msk (0x3FFFUL << FICR_TEMP_B4_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B5 */
+/* Description: Y-intercept B5 */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B5_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B5_B_Msk (0x3FFFUL << FICR_TEMP_B5_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_T0 */
+/* Description: Segment end T0 */
+
+/* Bits 7..0 : T (segment end) register */
+#define FICR_TEMP_T0_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T0_T_Msk (0xFFUL << FICR_TEMP_T0_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_TEMP_T1 */
+/* Description: Segment end T1 */
+
+/* Bits 7..0 : T (segment end) register */
+#define FICR_TEMP_T1_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T1_T_Msk (0xFFUL << FICR_TEMP_T1_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_TEMP_T2 */
+/* Description: Segment end T2 */
+
+/* Bits 7..0 : T (segment end) register */
+#define FICR_TEMP_T2_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T2_T_Msk (0xFFUL << FICR_TEMP_T2_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_TEMP_T3 */
+/* Description: Segment end T3 */
+
+/* Bits 7..0 : T (segment end) register */
+#define FICR_TEMP_T3_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T3_T_Msk (0xFFUL << FICR_TEMP_T3_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_TEMP_T4 */
+/* Description: Segment end T4 */
+
+/* Bits 7..0 : T (segment end) register */
+#define FICR_TEMP_T4_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T4_T_Msk (0xFFUL << FICR_TEMP_T4_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_NFC_TAGHEADER0 */
+/* Description: Default header for NFC tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+
+/* Bits 31..24 : Unique identifier byte 3 */
+#define FICR_NFC_TAGHEADER0_UD3_Pos (24UL) /*!< Position of UD3 field. */
+#define FICR_NFC_TAGHEADER0_UD3_Msk (0xFFUL << FICR_NFC_TAGHEADER0_UD3_Pos) /*!< Bit mask of UD3 field. */
+
+/* Bits 23..16 : Unique identifier byte 2 */
+#define FICR_NFC_TAGHEADER0_UD2_Pos (16UL) /*!< Position of UD2 field. */
+#define FICR_NFC_TAGHEADER0_UD2_Msk (0xFFUL << FICR_NFC_TAGHEADER0_UD2_Pos) /*!< Bit mask of UD2 field. */
+
+/* Bits 15..8 : Unique identifier byte 1 */
+#define FICR_NFC_TAGHEADER0_UD1_Pos (8UL) /*!< Position of UD1 field. */
+#define FICR_NFC_TAGHEADER0_UD1_Msk (0xFFUL << FICR_NFC_TAGHEADER0_UD1_Pos) /*!< Bit mask of UD1 field. */
+
+/* Bits 7..0 : Default Manufacturer ID: Nordic Semiconductor ASA has ICM 0x5F */
+#define FICR_NFC_TAGHEADER0_MFGID_Pos (0UL) /*!< Position of MFGID field. */
+#define FICR_NFC_TAGHEADER0_MFGID_Msk (0xFFUL << FICR_NFC_TAGHEADER0_MFGID_Pos) /*!< Bit mask of MFGID field. */
+
+/* Register: FICR_NFC_TAGHEADER1 */
+/* Description: Default header for NFC tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+
+/* Bits 31..24 : Unique identifier byte 7 */
+#define FICR_NFC_TAGHEADER1_UD7_Pos (24UL) /*!< Position of UD7 field. */
+#define FICR_NFC_TAGHEADER1_UD7_Msk (0xFFUL << FICR_NFC_TAGHEADER1_UD7_Pos) /*!< Bit mask of UD7 field. */
+
+/* Bits 23..16 : Unique identifier byte 6 */
+#define FICR_NFC_TAGHEADER1_UD6_Pos (16UL) /*!< Position of UD6 field. */
+#define FICR_NFC_TAGHEADER1_UD6_Msk (0xFFUL << FICR_NFC_TAGHEADER1_UD6_Pos) /*!< Bit mask of UD6 field. */
+
+/* Bits 15..8 : Unique identifier byte 5 */
+#define FICR_NFC_TAGHEADER1_UD5_Pos (8UL) /*!< Position of UD5 field. */
+#define FICR_NFC_TAGHEADER1_UD5_Msk (0xFFUL << FICR_NFC_TAGHEADER1_UD5_Pos) /*!< Bit mask of UD5 field. */
+
+/* Bits 7..0 : Unique identifier byte 4 */
+#define FICR_NFC_TAGHEADER1_UD4_Pos (0UL) /*!< Position of UD4 field. */
+#define FICR_NFC_TAGHEADER1_UD4_Msk (0xFFUL << FICR_NFC_TAGHEADER1_UD4_Pos) /*!< Bit mask of UD4 field. */
+
+/* Register: FICR_NFC_TAGHEADER2 */
+/* Description: Default header for NFC tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+
+/* Bits 31..24 : Unique identifier byte 11 */
+#define FICR_NFC_TAGHEADER2_UD11_Pos (24UL) /*!< Position of UD11 field. */
+#define FICR_NFC_TAGHEADER2_UD11_Msk (0xFFUL << FICR_NFC_TAGHEADER2_UD11_Pos) /*!< Bit mask of UD11 field. */
+
+/* Bits 23..16 : Unique identifier byte 10 */
+#define FICR_NFC_TAGHEADER2_UD10_Pos (16UL) /*!< Position of UD10 field. */
+#define FICR_NFC_TAGHEADER2_UD10_Msk (0xFFUL << FICR_NFC_TAGHEADER2_UD10_Pos) /*!< Bit mask of UD10 field. */
+
+/* Bits 15..8 : Unique identifier byte 9 */
+#define FICR_NFC_TAGHEADER2_UD9_Pos (8UL) /*!< Position of UD9 field. */
+#define FICR_NFC_TAGHEADER2_UD9_Msk (0xFFUL << FICR_NFC_TAGHEADER2_UD9_Pos) /*!< Bit mask of UD9 field. */
+
+/* Bits 7..0 : Unique identifier byte 8 */
+#define FICR_NFC_TAGHEADER2_UD8_Pos (0UL) /*!< Position of UD8 field. */
+#define FICR_NFC_TAGHEADER2_UD8_Msk (0xFFUL << FICR_NFC_TAGHEADER2_UD8_Pos) /*!< Bit mask of UD8 field. */
+
+/* Register: FICR_NFC_TAGHEADER3 */
+/* Description: Default header for NFC tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+
+/* Bits 31..24 : Unique identifier byte 15 */
+#define FICR_NFC_TAGHEADER3_UD15_Pos (24UL) /*!< Position of UD15 field. */
+#define FICR_NFC_TAGHEADER3_UD15_Msk (0xFFUL << FICR_NFC_TAGHEADER3_UD15_Pos) /*!< Bit mask of UD15 field. */
+
+/* Bits 23..16 : Unique identifier byte 14 */
+#define FICR_NFC_TAGHEADER3_UD14_Pos (16UL) /*!< Position of UD14 field. */
+#define FICR_NFC_TAGHEADER3_UD14_Msk (0xFFUL << FICR_NFC_TAGHEADER3_UD14_Pos) /*!< Bit mask of UD14 field. */
+
+/* Bits 15..8 : Unique identifier byte 13 */
+#define FICR_NFC_TAGHEADER3_UD13_Pos (8UL) /*!< Position of UD13 field. */
+#define FICR_NFC_TAGHEADER3_UD13_Msk (0xFFUL << FICR_NFC_TAGHEADER3_UD13_Pos) /*!< Bit mask of UD13 field. */
+
+/* Bits 7..0 : Unique identifier byte 12 */
+#define FICR_NFC_TAGHEADER3_UD12_Pos (0UL) /*!< Position of UD12 field. */
+#define FICR_NFC_TAGHEADER3_UD12_Msk (0xFFUL << FICR_NFC_TAGHEADER3_UD12_Pos) /*!< Bit mask of UD12 field. */
+
+/* Register: FICR_TRNG90B_BYTES */
+/* Description: Amount of bytes for the required entropy bits */
+
+/* Bits 31..0 : Amount of bytes for the required entropy bits */
+#define FICR_TRNG90B_BYTES_BYTES_Pos (0UL) /*!< Position of BYTES field. */
+#define FICR_TRNG90B_BYTES_BYTES_Msk (0xFFFFFFFFUL << FICR_TRNG90B_BYTES_BYTES_Pos) /*!< Bit mask of BYTES field. */
+
+/* Register: FICR_TRNG90B_RCCUTOFF */
+/* Description: Repetition counter cutoff */
+
+/* Bits 31..0 : Repetition counter cutoff */
+#define FICR_TRNG90B_RCCUTOFF_RCCUTOFF_Pos (0UL) /*!< Position of RCCUTOFF field. */
+#define FICR_TRNG90B_RCCUTOFF_RCCUTOFF_Msk (0xFFFFFFFFUL << FICR_TRNG90B_RCCUTOFF_RCCUTOFF_Pos) /*!< Bit mask of RCCUTOFF field. */
+
+/* Register: FICR_TRNG90B_APCUTOFF */
+/* Description: Adaptive proportion cutoff */
+
+/* Bits 31..0 : Adaptive proportion cutoff */
+#define FICR_TRNG90B_APCUTOFF_APCUTOFF_Pos (0UL) /*!< Position of APCUTOFF field. */
+#define FICR_TRNG90B_APCUTOFF_APCUTOFF_Msk (0xFFFFFFFFUL << FICR_TRNG90B_APCUTOFF_APCUTOFF_Pos) /*!< Bit mask of APCUTOFF field. */
+
+/* Register: FICR_TRNG90B_STARTUP */
+/* Description: Amount of bytes for the startup tests */
+
+/* Bits 31..0 : Amount of bytes for the startup tests */
+#define FICR_TRNG90B_STARTUP_STARTUP_Pos (0UL) /*!< Position of STARTUP field. */
+#define FICR_TRNG90B_STARTUP_STARTUP_Msk (0xFFFFFFFFUL << FICR_TRNG90B_STARTUP_STARTUP_Pos) /*!< Bit mask of STARTUP field. */
+
+/* Register: FICR_TRNG90B_ROSC1 */
+/* Description: Sample count for ring oscillator 1 */
+
+/* Bits 31..0 : Sample count for ring oscillator 1 */
+#define FICR_TRNG90B_ROSC1_ROSC1_Pos (0UL) /*!< Position of ROSC1 field. */
+#define FICR_TRNG90B_ROSC1_ROSC1_Msk (0xFFFFFFFFUL << FICR_TRNG90B_ROSC1_ROSC1_Pos) /*!< Bit mask of ROSC1 field. */
+
+/* Register: FICR_TRNG90B_ROSC2 */
+/* Description: Sample count for ring oscillator 2 */
+
+/* Bits 31..0 : Sample count for ring oscillator 2 */
+#define FICR_TRNG90B_ROSC2_ROSC2_Pos (0UL) /*!< Position of ROSC2 field. */
+#define FICR_TRNG90B_ROSC2_ROSC2_Msk (0xFFFFFFFFUL << FICR_TRNG90B_ROSC2_ROSC2_Pos) /*!< Bit mask of ROSC2 field. */
+
+/* Register: FICR_TRNG90B_ROSC3 */
+/* Description: Sample count for ring oscillator 3 */
+
+/* Bits 31..0 : Sample count for ring oscillator 3 */
+#define FICR_TRNG90B_ROSC3_ROSC3_Pos (0UL) /*!< Position of ROSC3 field. */
+#define FICR_TRNG90B_ROSC3_ROSC3_Msk (0xFFFFFFFFUL << FICR_TRNG90B_ROSC3_ROSC3_Pos) /*!< Bit mask of ROSC3 field. */
+
+/* Register: FICR_TRNG90B_ROSC4 */
+/* Description: Sample count for ring oscillator 4 */
+
+/* Bits 31..0 : Sample count for ring oscillator 4 */
+#define FICR_TRNG90B_ROSC4_ROSC4_Pos (0UL) /*!< Position of ROSC4 field. */
+#define FICR_TRNG90B_ROSC4_ROSC4_Msk (0xFFFFFFFFUL << FICR_TRNG90B_ROSC4_ROSC4_Pos) /*!< Bit mask of ROSC4 field. */
+
+
+/* Peripheral: GPIOTE */
+/* Description: GPIO Tasks and Events */
+
+/* Register: GPIOTE_TASKS_OUT */
+/* Description: Description collection[n]: Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is configured in CONFIG[n].POLARITY. */
+
+/* Bit 0 : */
+#define GPIOTE_TASKS_OUT_TASKS_OUT_Pos (0UL) /*!< Position of TASKS_OUT field. */
+#define GPIOTE_TASKS_OUT_TASKS_OUT_Msk (0x1UL << GPIOTE_TASKS_OUT_TASKS_OUT_Pos) /*!< Bit mask of TASKS_OUT field. */
+
+/* Register: GPIOTE_TASKS_SET */
+/* Description: Description collection[n]: Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is to set it high. */
+
+/* Bit 0 : */
+#define GPIOTE_TASKS_SET_TASKS_SET_Pos (0UL) /*!< Position of TASKS_SET field. */
+#define GPIOTE_TASKS_SET_TASKS_SET_Msk (0x1UL << GPIOTE_TASKS_SET_TASKS_SET_Pos) /*!< Bit mask of TASKS_SET field. */
+
+/* Register: GPIOTE_TASKS_CLR */
+/* Description: Description collection[n]: Task for writing to pin specified in CONFIG[n].PSEL. Action on pin is to set it low. */
+
+/* Bit 0 : */
+#define GPIOTE_TASKS_CLR_TASKS_CLR_Pos (0UL) /*!< Position of TASKS_CLR field. */
+#define GPIOTE_TASKS_CLR_TASKS_CLR_Msk (0x1UL << GPIOTE_TASKS_CLR_TASKS_CLR_Pos) /*!< Bit mask of TASKS_CLR field. */
+
+/* Register: GPIOTE_EVENTS_IN */
+/* Description: Description collection[n]: Event generated from pin specified in CONFIG[n].PSEL */
+
+/* Bit 0 : */
+#define GPIOTE_EVENTS_IN_EVENTS_IN_Pos (0UL) /*!< Position of EVENTS_IN field. */
+#define GPIOTE_EVENTS_IN_EVENTS_IN_Msk (0x1UL << GPIOTE_EVENTS_IN_EVENTS_IN_Pos) /*!< Bit mask of EVENTS_IN field. */
+
+/* Register: GPIOTE_EVENTS_PORT */
+/* Description: Event generated from multiple input GPIO pins with SENSE mechanism enabled */
+
+/* Bit 0 : */
+#define GPIOTE_EVENTS_PORT_EVENTS_PORT_Pos (0UL) /*!< Position of EVENTS_PORT field. */
+#define GPIOTE_EVENTS_PORT_EVENTS_PORT_Msk (0x1UL << GPIOTE_EVENTS_PORT_EVENTS_PORT_Pos) /*!< Bit mask of EVENTS_PORT field. */
+
+/* Register: GPIOTE_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 31 : Write '1' to enable interrupt for PORT event */
+#define GPIOTE_INTENSET_PORT_Pos (31UL) /*!< Position of PORT field. */
+#define GPIOTE_INTENSET_PORT_Msk (0x1UL << GPIOTE_INTENSET_PORT_Pos) /*!< Bit mask of PORT field. */
+#define GPIOTE_INTENSET_PORT_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_PORT_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_PORT_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to enable interrupt for IN[7] event */
+#define GPIOTE_INTENSET_IN7_Pos (7UL) /*!< Position of IN7 field. */
+#define GPIOTE_INTENSET_IN7_Msk (0x1UL << GPIOTE_INTENSET_IN7_Pos) /*!< Bit mask of IN7 field. */
+#define GPIOTE_INTENSET_IN7_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN7_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN7_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to enable interrupt for IN[6] event */
+#define GPIOTE_INTENSET_IN6_Pos (6UL) /*!< Position of IN6 field. */
+#define GPIOTE_INTENSET_IN6_Msk (0x1UL << GPIOTE_INTENSET_IN6_Pos) /*!< Bit mask of IN6 field. */
+#define GPIOTE_INTENSET_IN6_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN6_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN6_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to enable interrupt for IN[5] event */
+#define GPIOTE_INTENSET_IN5_Pos (5UL) /*!< Position of IN5 field. */
+#define GPIOTE_INTENSET_IN5_Msk (0x1UL << GPIOTE_INTENSET_IN5_Pos) /*!< Bit mask of IN5 field. */
+#define GPIOTE_INTENSET_IN5_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN5_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN5_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable interrupt for IN[4] event */
+#define GPIOTE_INTENSET_IN4_Pos (4UL) /*!< Position of IN4 field. */
+#define GPIOTE_INTENSET_IN4_Msk (0x1UL << GPIOTE_INTENSET_IN4_Pos) /*!< Bit mask of IN4 field. */
+#define GPIOTE_INTENSET_IN4_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN4_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN4_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to enable interrupt for IN[3] event */
+#define GPIOTE_INTENSET_IN3_Pos (3UL) /*!< Position of IN3 field. */
+#define GPIOTE_INTENSET_IN3_Msk (0x1UL << GPIOTE_INTENSET_IN3_Pos) /*!< Bit mask of IN3 field. */
+#define GPIOTE_INTENSET_IN3_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN3_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN3_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for IN[2] event */
+#define GPIOTE_INTENSET_IN2_Pos (2UL) /*!< Position of IN2 field. */
+#define GPIOTE_INTENSET_IN2_Msk (0x1UL << GPIOTE_INTENSET_IN2_Pos) /*!< Bit mask of IN2 field. */
+#define GPIOTE_INTENSET_IN2_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN2_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN2_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for IN[1] event */
+#define GPIOTE_INTENSET_IN1_Pos (1UL) /*!< Position of IN1 field. */
+#define GPIOTE_INTENSET_IN1_Msk (0x1UL << GPIOTE_INTENSET_IN1_Pos) /*!< Bit mask of IN1 field. */
+#define GPIOTE_INTENSET_IN1_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN1_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN1_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for IN[0] event */
+#define GPIOTE_INTENSET_IN0_Pos (0UL) /*!< Position of IN0 field. */
+#define GPIOTE_INTENSET_IN0_Msk (0x1UL << GPIOTE_INTENSET_IN0_Pos) /*!< Bit mask of IN0 field. */
+#define GPIOTE_INTENSET_IN0_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN0_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN0_Set (1UL) /*!< Enable */
+
+/* Register: GPIOTE_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 31 : Write '1' to disable interrupt for PORT event */
+#define GPIOTE_INTENCLR_PORT_Pos (31UL) /*!< Position of PORT field. */
+#define GPIOTE_INTENCLR_PORT_Msk (0x1UL << GPIOTE_INTENCLR_PORT_Pos) /*!< Bit mask of PORT field. */
+#define GPIOTE_INTENCLR_PORT_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_PORT_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_PORT_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to disable interrupt for IN[7] event */
+#define GPIOTE_INTENCLR_IN7_Pos (7UL) /*!< Position of IN7 field. */
+#define GPIOTE_INTENCLR_IN7_Msk (0x1UL << GPIOTE_INTENCLR_IN7_Pos) /*!< Bit mask of IN7 field. */
+#define GPIOTE_INTENCLR_IN7_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN7_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN7_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to disable interrupt for IN[6] event */
+#define GPIOTE_INTENCLR_IN6_Pos (6UL) /*!< Position of IN6 field. */
+#define GPIOTE_INTENCLR_IN6_Msk (0x1UL << GPIOTE_INTENCLR_IN6_Pos) /*!< Bit mask of IN6 field. */
+#define GPIOTE_INTENCLR_IN6_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN6_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN6_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to disable interrupt for IN[5] event */
+#define GPIOTE_INTENCLR_IN5_Pos (5UL) /*!< Position of IN5 field. */
+#define GPIOTE_INTENCLR_IN5_Msk (0x1UL << GPIOTE_INTENCLR_IN5_Pos) /*!< Bit mask of IN5 field. */
+#define GPIOTE_INTENCLR_IN5_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN5_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN5_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable interrupt for IN[4] event */
+#define GPIOTE_INTENCLR_IN4_Pos (4UL) /*!< Position of IN4 field. */
+#define GPIOTE_INTENCLR_IN4_Msk (0x1UL << GPIOTE_INTENCLR_IN4_Pos) /*!< Bit mask of IN4 field. */
+#define GPIOTE_INTENCLR_IN4_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN4_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN4_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to disable interrupt for IN[3] event */
+#define GPIOTE_INTENCLR_IN3_Pos (3UL) /*!< Position of IN3 field. */
+#define GPIOTE_INTENCLR_IN3_Msk (0x1UL << GPIOTE_INTENCLR_IN3_Pos) /*!< Bit mask of IN3 field. */
+#define GPIOTE_INTENCLR_IN3_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN3_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN3_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for IN[2] event */
+#define GPIOTE_INTENCLR_IN2_Pos (2UL) /*!< Position of IN2 field. */
+#define GPIOTE_INTENCLR_IN2_Msk (0x1UL << GPIOTE_INTENCLR_IN2_Pos) /*!< Bit mask of IN2 field. */
+#define GPIOTE_INTENCLR_IN2_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN2_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN2_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for IN[1] event */
+#define GPIOTE_INTENCLR_IN1_Pos (1UL) /*!< Position of IN1 field. */
+#define GPIOTE_INTENCLR_IN1_Msk (0x1UL << GPIOTE_INTENCLR_IN1_Pos) /*!< Bit mask of IN1 field. */
+#define GPIOTE_INTENCLR_IN1_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN1_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN1_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for IN[0] event */
+#define GPIOTE_INTENCLR_IN0_Pos (0UL) /*!< Position of IN0 field. */
+#define GPIOTE_INTENCLR_IN0_Msk (0x1UL << GPIOTE_INTENCLR_IN0_Pos) /*!< Bit mask of IN0 field. */
+#define GPIOTE_INTENCLR_IN0_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN0_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN0_Clear (1UL) /*!< Disable */
+
+/* Register: GPIOTE_CONFIG */
+/* Description: Description collection[n]: Configuration for OUT[n], SET[n] and CLR[n] tasks and IN[n] event */
+
+/* Bit 20 : When in task mode: Initial value of the output when the GPIOTE channel is configured. When in event mode: No effect. */
+#define GPIOTE_CONFIG_OUTINIT_Pos (20UL) /*!< Position of OUTINIT field. */
+#define GPIOTE_CONFIG_OUTINIT_Msk (0x1UL << GPIOTE_CONFIG_OUTINIT_Pos) /*!< Bit mask of OUTINIT field. */
+#define GPIOTE_CONFIG_OUTINIT_Low (0UL) /*!< Task mode: Initial value of pin before task triggering is low */
+#define GPIOTE_CONFIG_OUTINIT_High (1UL) /*!< Task mode: Initial value of pin before task triggering is high */
+
+/* Bits 17..16 : When In task mode: Operation to be performed on output when OUT[n] task is triggered. When In event mode: Operation on input that shall trigger IN[n] event. */
+#define GPIOTE_CONFIG_POLARITY_Pos (16UL) /*!< Position of POLARITY field. */
+#define GPIOTE_CONFIG_POLARITY_Msk (0x3UL << GPIOTE_CONFIG_POLARITY_Pos) /*!< Bit mask of POLARITY field. */
+#define GPIOTE_CONFIG_POLARITY_None (0UL) /*!< Task mode: No effect on pin from OUT[n] task. Event mode: no IN[n] event generated on pin activity. */
+#define GPIOTE_CONFIG_POLARITY_LoToHi (1UL) /*!< Task mode: Set pin from OUT[n] task. Event mode: Generate IN[n] event when rising edge on pin. */
+#define GPIOTE_CONFIG_POLARITY_HiToLo (2UL) /*!< Task mode: Clear pin from OUT[n] task. Event mode: Generate IN[n] event when falling edge on pin. */
+#define GPIOTE_CONFIG_POLARITY_Toggle (3UL) /*!< Task mode: Toggle pin from OUT[n]. Event mode: Generate IN[n] when any change on pin. */
+
+/* Bit 13 : Port number */
+#define GPIOTE_CONFIG_PORT_Pos (13UL) /*!< Position of PORT field. */
+#define GPIOTE_CONFIG_PORT_Msk (0x1UL << GPIOTE_CONFIG_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 12..8 : GPIO number associated with SET[n], CLR[n] and OUT[n] tasks and IN[n] event */
+#define GPIOTE_CONFIG_PSEL_Pos (8UL) /*!< Position of PSEL field. */
+#define GPIOTE_CONFIG_PSEL_Msk (0x1FUL << GPIOTE_CONFIG_PSEL_Pos) /*!< Bit mask of PSEL field. */
+
+/* Bits 1..0 : Mode */
+#define GPIOTE_CONFIG_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define GPIOTE_CONFIG_MODE_Msk (0x3UL << GPIOTE_CONFIG_MODE_Pos) /*!< Bit mask of MODE field. */
+#define GPIOTE_CONFIG_MODE_Disabled (0UL) /*!< Disabled. Pin specified by PSEL will not be acquired by the GPIOTE module. */
+#define GPIOTE_CONFIG_MODE_Event (1UL) /*!< Event mode */
+#define GPIOTE_CONFIG_MODE_Task (3UL) /*!< Task mode */
+
+
+/* Peripheral: I2S */
+/* Description: Inter-IC Sound */
+
+/* Register: I2S_TASKS_START */
+/* Description: Starts continuous I2S transfer. Also starts MCK generator when this is enabled. */
+
+/* Bit 0 : */
+#define I2S_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define I2S_TASKS_START_TASKS_START_Msk (0x1UL << I2S_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: I2S_TASKS_STOP */
+/* Description: Stops I2S transfer. Also stops MCK generator. Triggering this task will cause the {event:STOPPED} event to be generated. */
+
+/* Bit 0 : */
+#define I2S_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define I2S_TASKS_STOP_TASKS_STOP_Msk (0x1UL << I2S_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: I2S_EVENTS_RXPTRUPD */
+/* Description: The RXD.PTR register has been copied to internal double-buffers.
+ When the I2S module is started and RX is enabled, this event will be generated for every RXTXD.MAXCNT words that are received on the SDIN pin. */
+
+/* Bit 0 : */
+#define I2S_EVENTS_RXPTRUPD_EVENTS_RXPTRUPD_Pos (0UL) /*!< Position of EVENTS_RXPTRUPD field. */
+#define I2S_EVENTS_RXPTRUPD_EVENTS_RXPTRUPD_Msk (0x1UL << I2S_EVENTS_RXPTRUPD_EVENTS_RXPTRUPD_Pos) /*!< Bit mask of EVENTS_RXPTRUPD field. */
+
+/* Register: I2S_EVENTS_STOPPED */
+/* Description: I2S transfer stopped. */
+
+/* Bit 0 : */
+#define I2S_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define I2S_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << I2S_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: I2S_EVENTS_TXPTRUPD */
+/* Description: The TDX.PTR register has been copied to internal double-buffers.
+ When the I2S module is started and TX is enabled, this event will be generated for every RXTXD.MAXCNT words that are sent on the SDOUT pin. */
+
+/* Bit 0 : */
+#define I2S_EVENTS_TXPTRUPD_EVENTS_TXPTRUPD_Pos (0UL) /*!< Position of EVENTS_TXPTRUPD field. */
+#define I2S_EVENTS_TXPTRUPD_EVENTS_TXPTRUPD_Msk (0x1UL << I2S_EVENTS_TXPTRUPD_EVENTS_TXPTRUPD_Pos) /*!< Bit mask of EVENTS_TXPTRUPD field. */
+
+/* Register: I2S_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 5 : Enable or disable interrupt for TXPTRUPD event */
+#define I2S_INTEN_TXPTRUPD_Pos (5UL) /*!< Position of TXPTRUPD field. */
+#define I2S_INTEN_TXPTRUPD_Msk (0x1UL << I2S_INTEN_TXPTRUPD_Pos) /*!< Bit mask of TXPTRUPD field. */
+#define I2S_INTEN_TXPTRUPD_Disabled (0UL) /*!< Disable */
+#define I2S_INTEN_TXPTRUPD_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for STOPPED event */
+#define I2S_INTEN_STOPPED_Pos (2UL) /*!< Position of STOPPED field. */
+#define I2S_INTEN_STOPPED_Msk (0x1UL << I2S_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define I2S_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define I2S_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for RXPTRUPD event */
+#define I2S_INTEN_RXPTRUPD_Pos (1UL) /*!< Position of RXPTRUPD field. */
+#define I2S_INTEN_RXPTRUPD_Msk (0x1UL << I2S_INTEN_RXPTRUPD_Pos) /*!< Bit mask of RXPTRUPD field. */
+#define I2S_INTEN_RXPTRUPD_Disabled (0UL) /*!< Disable */
+#define I2S_INTEN_RXPTRUPD_Enabled (1UL) /*!< Enable */
+
+/* Register: I2S_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 5 : Write '1' to enable interrupt for TXPTRUPD event */
+#define I2S_INTENSET_TXPTRUPD_Pos (5UL) /*!< Position of TXPTRUPD field. */
+#define I2S_INTENSET_TXPTRUPD_Msk (0x1UL << I2S_INTENSET_TXPTRUPD_Pos) /*!< Bit mask of TXPTRUPD field. */
+#define I2S_INTENSET_TXPTRUPD_Disabled (0UL) /*!< Read: Disabled */
+#define I2S_INTENSET_TXPTRUPD_Enabled (1UL) /*!< Read: Enabled */
+#define I2S_INTENSET_TXPTRUPD_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for STOPPED event */
+#define I2S_INTENSET_STOPPED_Pos (2UL) /*!< Position of STOPPED field. */
+#define I2S_INTENSET_STOPPED_Msk (0x1UL << I2S_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define I2S_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define I2S_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define I2S_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for RXPTRUPD event */
+#define I2S_INTENSET_RXPTRUPD_Pos (1UL) /*!< Position of RXPTRUPD field. */
+#define I2S_INTENSET_RXPTRUPD_Msk (0x1UL << I2S_INTENSET_RXPTRUPD_Pos) /*!< Bit mask of RXPTRUPD field. */
+#define I2S_INTENSET_RXPTRUPD_Disabled (0UL) /*!< Read: Disabled */
+#define I2S_INTENSET_RXPTRUPD_Enabled (1UL) /*!< Read: Enabled */
+#define I2S_INTENSET_RXPTRUPD_Set (1UL) /*!< Enable */
+
+/* Register: I2S_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 5 : Write '1' to disable interrupt for TXPTRUPD event */
+#define I2S_INTENCLR_TXPTRUPD_Pos (5UL) /*!< Position of TXPTRUPD field. */
+#define I2S_INTENCLR_TXPTRUPD_Msk (0x1UL << I2S_INTENCLR_TXPTRUPD_Pos) /*!< Bit mask of TXPTRUPD field. */
+#define I2S_INTENCLR_TXPTRUPD_Disabled (0UL) /*!< Read: Disabled */
+#define I2S_INTENCLR_TXPTRUPD_Enabled (1UL) /*!< Read: Enabled */
+#define I2S_INTENCLR_TXPTRUPD_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for STOPPED event */
+#define I2S_INTENCLR_STOPPED_Pos (2UL) /*!< Position of STOPPED field. */
+#define I2S_INTENCLR_STOPPED_Msk (0x1UL << I2S_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define I2S_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define I2S_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define I2S_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for RXPTRUPD event */
+#define I2S_INTENCLR_RXPTRUPD_Pos (1UL) /*!< Position of RXPTRUPD field. */
+#define I2S_INTENCLR_RXPTRUPD_Msk (0x1UL << I2S_INTENCLR_RXPTRUPD_Pos) /*!< Bit mask of RXPTRUPD field. */
+#define I2S_INTENCLR_RXPTRUPD_Disabled (0UL) /*!< Read: Disabled */
+#define I2S_INTENCLR_RXPTRUPD_Enabled (1UL) /*!< Read: Enabled */
+#define I2S_INTENCLR_RXPTRUPD_Clear (1UL) /*!< Disable */
+
+/* Register: I2S_ENABLE */
+/* Description: Enable I2S module. */
+
+/* Bit 0 : Enable I2S module. */
+#define I2S_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define I2S_ENABLE_ENABLE_Msk (0x1UL << I2S_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define I2S_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define I2S_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: I2S_CONFIG_MODE */
+/* Description: I2S mode. */
+
+/* Bit 0 : I2S mode. */
+#define I2S_CONFIG_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define I2S_CONFIG_MODE_MODE_Msk (0x1UL << I2S_CONFIG_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define I2S_CONFIG_MODE_MODE_Master (0UL) /*!< Master mode. SCK and LRCK generated from internal master clcok (MCK) and output on pins defined by PSEL.xxx. */
+#define I2S_CONFIG_MODE_MODE_Slave (1UL) /*!< Slave mode. SCK and LRCK generated by external master and received on pins defined by PSEL.xxx */
+
+/* Register: I2S_CONFIG_RXEN */
+/* Description: Reception (RX) enable. */
+
+/* Bit 0 : Reception (RX) enable. */
+#define I2S_CONFIG_RXEN_RXEN_Pos (0UL) /*!< Position of RXEN field. */
+#define I2S_CONFIG_RXEN_RXEN_Msk (0x1UL << I2S_CONFIG_RXEN_RXEN_Pos) /*!< Bit mask of RXEN field. */
+#define I2S_CONFIG_RXEN_RXEN_Disabled (0UL) /*!< Reception disabled and now data will be written to the RXD.PTR address. */
+#define I2S_CONFIG_RXEN_RXEN_Enabled (1UL) /*!< Reception enabled. */
+
+/* Register: I2S_CONFIG_TXEN */
+/* Description: Transmission (TX) enable. */
+
+/* Bit 0 : Transmission (TX) enable. */
+#define I2S_CONFIG_TXEN_TXEN_Pos (0UL) /*!< Position of TXEN field. */
+#define I2S_CONFIG_TXEN_TXEN_Msk (0x1UL << I2S_CONFIG_TXEN_TXEN_Pos) /*!< Bit mask of TXEN field. */
+#define I2S_CONFIG_TXEN_TXEN_Disabled (0UL) /*!< Transmission disabled and now data will be read from the RXD.TXD address. */
+#define I2S_CONFIG_TXEN_TXEN_Enabled (1UL) /*!< Transmission enabled. */
+
+/* Register: I2S_CONFIG_MCKEN */
+/* Description: Master clock generator enable. */
+
+/* Bit 0 : Master clock generator enable. */
+#define I2S_CONFIG_MCKEN_MCKEN_Pos (0UL) /*!< Position of MCKEN field. */
+#define I2S_CONFIG_MCKEN_MCKEN_Msk (0x1UL << I2S_CONFIG_MCKEN_MCKEN_Pos) /*!< Bit mask of MCKEN field. */
+#define I2S_CONFIG_MCKEN_MCKEN_Disabled (0UL) /*!< Master clock generator disabled and PSEL.MCK not connected(available as GPIO). */
+#define I2S_CONFIG_MCKEN_MCKEN_Enabled (1UL) /*!< Master clock generator running and MCK output on PSEL.MCK. */
+
+/* Register: I2S_CONFIG_MCKFREQ */
+/* Description: Master clock generator frequency. */
+
+/* Bits 31..0 : Master clock generator frequency. */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_Pos (0UL) /*!< Position of MCKFREQ field. */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_Msk (0xFFFFFFFFUL << I2S_CONFIG_MCKFREQ_MCKFREQ_Pos) /*!< Bit mask of MCKFREQ field. */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV125 (0x020C0000UL) /*!< 32 MHz / 125 = 0.256 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV63 (0x04100000UL) /*!< 32 MHz / 63 = 0.5079365 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV42 (0x06000000UL) /*!< 32 MHz / 42 = 0.7619048 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV32 (0x08000000UL) /*!< 32 MHz / 32 = 1.0 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV31 (0x08400000UL) /*!< 32 MHz / 31 = 1.0322581 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV30 (0x08800000UL) /*!< 32 MHz / 30 = 1.0666667 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV23 (0x0B000000UL) /*!< 32 MHz / 23 = 1.3913043 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV21 (0x0C000000UL) /*!< 32 MHz / 21 = 1.5238095 */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV16 (0x10000000UL) /*!< 32 MHz / 16 = 2.0 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV15 (0x11000000UL) /*!< 32 MHz / 15 = 2.1333333 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV11 (0x16000000UL) /*!< 32 MHz / 11 = 2.9090909 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV10 (0x18000000UL) /*!< 32 MHz / 10 = 3.2 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV8 (0x20000000UL) /*!< 32 MHz / 8 = 4.0 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV6 (0x28000000UL) /*!< 32 MHz / 6 = 5.3333333 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV5 (0x30000000UL) /*!< 32 MHz / 5 = 6.4 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV4 (0x40000000UL) /*!< 32 MHz / 4 = 8.0 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV3 (0x50000000UL) /*!< 32 MHz / 3 = 10.6666667 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV2 (0x80000000UL) /*!< 32 MHz / 2 = 16.0 MHz */
+
+/* Register: I2S_CONFIG_RATIO */
+/* Description: MCK / LRCK ratio. */
+
+/* Bits 3..0 : MCK / LRCK ratio. */
+#define I2S_CONFIG_RATIO_RATIO_Pos (0UL) /*!< Position of RATIO field. */
+#define I2S_CONFIG_RATIO_RATIO_Msk (0xFUL << I2S_CONFIG_RATIO_RATIO_Pos) /*!< Bit mask of RATIO field. */
+#define I2S_CONFIG_RATIO_RATIO_32X (0UL) /*!< LRCK = MCK / 32 */
+#define I2S_CONFIG_RATIO_RATIO_48X (1UL) /*!< LRCK = MCK / 48 */
+#define I2S_CONFIG_RATIO_RATIO_64X (2UL) /*!< LRCK = MCK / 64 */
+#define I2S_CONFIG_RATIO_RATIO_96X (3UL) /*!< LRCK = MCK / 96 */
+#define I2S_CONFIG_RATIO_RATIO_128X (4UL) /*!< LRCK = MCK / 128 */
+#define I2S_CONFIG_RATIO_RATIO_192X (5UL) /*!< LRCK = MCK / 192 */
+#define I2S_CONFIG_RATIO_RATIO_256X (6UL) /*!< LRCK = MCK / 256 */
+#define I2S_CONFIG_RATIO_RATIO_384X (7UL) /*!< LRCK = MCK / 384 */
+#define I2S_CONFIG_RATIO_RATIO_512X (8UL) /*!< LRCK = MCK / 512 */
+
+/* Register: I2S_CONFIG_SWIDTH */
+/* Description: Sample width. */
+
+/* Bits 1..0 : Sample width. */
+#define I2S_CONFIG_SWIDTH_SWIDTH_Pos (0UL) /*!< Position of SWIDTH field. */
+#define I2S_CONFIG_SWIDTH_SWIDTH_Msk (0x3UL << I2S_CONFIG_SWIDTH_SWIDTH_Pos) /*!< Bit mask of SWIDTH field. */
+#define I2S_CONFIG_SWIDTH_SWIDTH_8Bit (0UL) /*!< 8 bit. */
+#define I2S_CONFIG_SWIDTH_SWIDTH_16Bit (1UL) /*!< 16 bit. */
+#define I2S_CONFIG_SWIDTH_SWIDTH_24Bit (2UL) /*!< 24 bit. */
+
+/* Register: I2S_CONFIG_ALIGN */
+/* Description: Alignment of sample within a frame. */
+
+/* Bit 0 : Alignment of sample within a frame. */
+#define I2S_CONFIG_ALIGN_ALIGN_Pos (0UL) /*!< Position of ALIGN field. */
+#define I2S_CONFIG_ALIGN_ALIGN_Msk (0x1UL << I2S_CONFIG_ALIGN_ALIGN_Pos) /*!< Bit mask of ALIGN field. */
+#define I2S_CONFIG_ALIGN_ALIGN_Left (0UL) /*!< Left-aligned. */
+#define I2S_CONFIG_ALIGN_ALIGN_Right (1UL) /*!< Right-aligned. */
+
+/* Register: I2S_CONFIG_FORMAT */
+/* Description: Frame format. */
+
+/* Bit 0 : Frame format. */
+#define I2S_CONFIG_FORMAT_FORMAT_Pos (0UL) /*!< Position of FORMAT field. */
+#define I2S_CONFIG_FORMAT_FORMAT_Msk (0x1UL << I2S_CONFIG_FORMAT_FORMAT_Pos) /*!< Bit mask of FORMAT field. */
+#define I2S_CONFIG_FORMAT_FORMAT_I2S (0UL) /*!< Original I2S format. */
+#define I2S_CONFIG_FORMAT_FORMAT_Aligned (1UL) /*!< Alternate (left- or right-aligned) format. */
+
+/* Register: I2S_CONFIG_CHANNELS */
+/* Description: Enable channels. */
+
+/* Bits 1..0 : Enable channels. */
+#define I2S_CONFIG_CHANNELS_CHANNELS_Pos (0UL) /*!< Position of CHANNELS field. */
+#define I2S_CONFIG_CHANNELS_CHANNELS_Msk (0x3UL << I2S_CONFIG_CHANNELS_CHANNELS_Pos) /*!< Bit mask of CHANNELS field. */
+#define I2S_CONFIG_CHANNELS_CHANNELS_Stereo (0UL) /*!< Stereo. */
+#define I2S_CONFIG_CHANNELS_CHANNELS_Left (1UL) /*!< Left only. */
+#define I2S_CONFIG_CHANNELS_CHANNELS_Right (2UL) /*!< Right only. */
+
+/* Register: I2S_RXD_PTR */
+/* Description: Receive buffer RAM start address. */
+
+/* Bits 31..0 : Receive buffer Data RAM start address. When receiving, words containing samples will be written to this address. This address is a word aligned Data RAM address. */
+#define I2S_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define I2S_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << I2S_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: I2S_TXD_PTR */
+/* Description: Transmit buffer RAM start address. */
+
+/* Bits 31..0 : Transmit buffer Data RAM start address. When transmitting, words containing samples will be fetched from this address. This address is a word aligned Data RAM address. */
+#define I2S_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define I2S_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << I2S_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: I2S_RXTXD_MAXCNT */
+/* Description: Size of RXD and TXD buffers. */
+
+/* Bits 13..0 : Size of RXD and TXD buffers in number of 32 bit words. */
+#define I2S_RXTXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define I2S_RXTXD_MAXCNT_MAXCNT_Msk (0x3FFFUL << I2S_RXTXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: I2S_PSEL_MCK */
+/* Description: Pin select for MCK signal. */
+
+/* Bit 31 : Connection */
+#define I2S_PSEL_MCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define I2S_PSEL_MCK_CONNECT_Msk (0x1UL << I2S_PSEL_MCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define I2S_PSEL_MCK_CONNECT_Connected (0UL) /*!< Connect */
+#define I2S_PSEL_MCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define I2S_PSEL_MCK_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define I2S_PSEL_MCK_PORT_Msk (0x1UL << I2S_PSEL_MCK_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define I2S_PSEL_MCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define I2S_PSEL_MCK_PIN_Msk (0x1FUL << I2S_PSEL_MCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: I2S_PSEL_SCK */
+/* Description: Pin select for SCK signal. */
+
+/* Bit 31 : Connection */
+#define I2S_PSEL_SCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define I2S_PSEL_SCK_CONNECT_Msk (0x1UL << I2S_PSEL_SCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define I2S_PSEL_SCK_CONNECT_Connected (0UL) /*!< Connect */
+#define I2S_PSEL_SCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define I2S_PSEL_SCK_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define I2S_PSEL_SCK_PORT_Msk (0x1UL << I2S_PSEL_SCK_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define I2S_PSEL_SCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define I2S_PSEL_SCK_PIN_Msk (0x1FUL << I2S_PSEL_SCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: I2S_PSEL_LRCK */
+/* Description: Pin select for LRCK signal. */
+
+/* Bit 31 : Connection */
+#define I2S_PSEL_LRCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define I2S_PSEL_LRCK_CONNECT_Msk (0x1UL << I2S_PSEL_LRCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define I2S_PSEL_LRCK_CONNECT_Connected (0UL) /*!< Connect */
+#define I2S_PSEL_LRCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define I2S_PSEL_LRCK_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define I2S_PSEL_LRCK_PORT_Msk (0x1UL << I2S_PSEL_LRCK_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define I2S_PSEL_LRCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define I2S_PSEL_LRCK_PIN_Msk (0x1FUL << I2S_PSEL_LRCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: I2S_PSEL_SDIN */
+/* Description: Pin select for SDIN signal. */
+
+/* Bit 31 : Connection */
+#define I2S_PSEL_SDIN_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define I2S_PSEL_SDIN_CONNECT_Msk (0x1UL << I2S_PSEL_SDIN_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define I2S_PSEL_SDIN_CONNECT_Connected (0UL) /*!< Connect */
+#define I2S_PSEL_SDIN_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define I2S_PSEL_SDIN_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define I2S_PSEL_SDIN_PORT_Msk (0x1UL << I2S_PSEL_SDIN_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define I2S_PSEL_SDIN_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define I2S_PSEL_SDIN_PIN_Msk (0x1FUL << I2S_PSEL_SDIN_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: I2S_PSEL_SDOUT */
+/* Description: Pin select for SDOUT signal. */
+
+/* Bit 31 : Connection */
+#define I2S_PSEL_SDOUT_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define I2S_PSEL_SDOUT_CONNECT_Msk (0x1UL << I2S_PSEL_SDOUT_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define I2S_PSEL_SDOUT_CONNECT_Connected (0UL) /*!< Connect */
+#define I2S_PSEL_SDOUT_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define I2S_PSEL_SDOUT_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define I2S_PSEL_SDOUT_PORT_Msk (0x1UL << I2S_PSEL_SDOUT_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define I2S_PSEL_SDOUT_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define I2S_PSEL_SDOUT_PIN_Msk (0x1FUL << I2S_PSEL_SDOUT_PIN_Pos) /*!< Bit mask of PIN field. */
+
+
+/* Peripheral: LPCOMP */
+/* Description: Low Power Comparator */
+
+/* Register: LPCOMP_TASKS_START */
+/* Description: Start comparator */
+
+/* Bit 0 : */
+#define LPCOMP_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define LPCOMP_TASKS_START_TASKS_START_Msk (0x1UL << LPCOMP_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: LPCOMP_TASKS_STOP */
+/* Description: Stop comparator */
+
+/* Bit 0 : */
+#define LPCOMP_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define LPCOMP_TASKS_STOP_TASKS_STOP_Msk (0x1UL << LPCOMP_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: LPCOMP_TASKS_SAMPLE */
+/* Description: Sample comparator value */
+
+/* Bit 0 : */
+#define LPCOMP_TASKS_SAMPLE_TASKS_SAMPLE_Pos (0UL) /*!< Position of TASKS_SAMPLE field. */
+#define LPCOMP_TASKS_SAMPLE_TASKS_SAMPLE_Msk (0x1UL << LPCOMP_TASKS_SAMPLE_TASKS_SAMPLE_Pos) /*!< Bit mask of TASKS_SAMPLE field. */
+
+/* Register: LPCOMP_EVENTS_READY */
+/* Description: LPCOMP is ready and output is valid */
+
+/* Bit 0 : */
+#define LPCOMP_EVENTS_READY_EVENTS_READY_Pos (0UL) /*!< Position of EVENTS_READY field. */
+#define LPCOMP_EVENTS_READY_EVENTS_READY_Msk (0x1UL << LPCOMP_EVENTS_READY_EVENTS_READY_Pos) /*!< Bit mask of EVENTS_READY field. */
+
+/* Register: LPCOMP_EVENTS_DOWN */
+/* Description: Downward crossing */
+
+/* Bit 0 : */
+#define LPCOMP_EVENTS_DOWN_EVENTS_DOWN_Pos (0UL) /*!< Position of EVENTS_DOWN field. */
+#define LPCOMP_EVENTS_DOWN_EVENTS_DOWN_Msk (0x1UL << LPCOMP_EVENTS_DOWN_EVENTS_DOWN_Pos) /*!< Bit mask of EVENTS_DOWN field. */
+
+/* Register: LPCOMP_EVENTS_UP */
+/* Description: Upward crossing */
+
+/* Bit 0 : */
+#define LPCOMP_EVENTS_UP_EVENTS_UP_Pos (0UL) /*!< Position of EVENTS_UP field. */
+#define LPCOMP_EVENTS_UP_EVENTS_UP_Msk (0x1UL << LPCOMP_EVENTS_UP_EVENTS_UP_Pos) /*!< Bit mask of EVENTS_UP field. */
+
+/* Register: LPCOMP_EVENTS_CROSS */
+/* Description: Downward or upward crossing */
+
+/* Bit 0 : */
+#define LPCOMP_EVENTS_CROSS_EVENTS_CROSS_Pos (0UL) /*!< Position of EVENTS_CROSS field. */
+#define LPCOMP_EVENTS_CROSS_EVENTS_CROSS_Msk (0x1UL << LPCOMP_EVENTS_CROSS_EVENTS_CROSS_Pos) /*!< Bit mask of EVENTS_CROSS field. */
+
+/* Register: LPCOMP_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 4 : Shortcut between CROSS event and STOP task */
+#define LPCOMP_SHORTS_CROSS_STOP_Pos (4UL) /*!< Position of CROSS_STOP field. */
+#define LPCOMP_SHORTS_CROSS_STOP_Msk (0x1UL << LPCOMP_SHORTS_CROSS_STOP_Pos) /*!< Bit mask of CROSS_STOP field. */
+#define LPCOMP_SHORTS_CROSS_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define LPCOMP_SHORTS_CROSS_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between UP event and STOP task */
+#define LPCOMP_SHORTS_UP_STOP_Pos (3UL) /*!< Position of UP_STOP field. */
+#define LPCOMP_SHORTS_UP_STOP_Msk (0x1UL << LPCOMP_SHORTS_UP_STOP_Pos) /*!< Bit mask of UP_STOP field. */
+#define LPCOMP_SHORTS_UP_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define LPCOMP_SHORTS_UP_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between DOWN event and STOP task */
+#define LPCOMP_SHORTS_DOWN_STOP_Pos (2UL) /*!< Position of DOWN_STOP field. */
+#define LPCOMP_SHORTS_DOWN_STOP_Msk (0x1UL << LPCOMP_SHORTS_DOWN_STOP_Pos) /*!< Bit mask of DOWN_STOP field. */
+#define LPCOMP_SHORTS_DOWN_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define LPCOMP_SHORTS_DOWN_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between READY event and STOP task */
+#define LPCOMP_SHORTS_READY_STOP_Pos (1UL) /*!< Position of READY_STOP field. */
+#define LPCOMP_SHORTS_READY_STOP_Msk (0x1UL << LPCOMP_SHORTS_READY_STOP_Pos) /*!< Bit mask of READY_STOP field. */
+#define LPCOMP_SHORTS_READY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define LPCOMP_SHORTS_READY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between READY event and SAMPLE task */
+#define LPCOMP_SHORTS_READY_SAMPLE_Pos (0UL) /*!< Position of READY_SAMPLE field. */
+#define LPCOMP_SHORTS_READY_SAMPLE_Msk (0x1UL << LPCOMP_SHORTS_READY_SAMPLE_Pos) /*!< Bit mask of READY_SAMPLE field. */
+#define LPCOMP_SHORTS_READY_SAMPLE_Disabled (0UL) /*!< Disable shortcut */
+#define LPCOMP_SHORTS_READY_SAMPLE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: LPCOMP_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 3 : Write '1' to enable interrupt for CROSS event */
+#define LPCOMP_INTENSET_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define LPCOMP_INTENSET_CROSS_Msk (0x1UL << LPCOMP_INTENSET_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define LPCOMP_INTENSET_CROSS_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENSET_CROSS_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENSET_CROSS_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for UP event */
+#define LPCOMP_INTENSET_UP_Pos (2UL) /*!< Position of UP field. */
+#define LPCOMP_INTENSET_UP_Msk (0x1UL << LPCOMP_INTENSET_UP_Pos) /*!< Bit mask of UP field. */
+#define LPCOMP_INTENSET_UP_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENSET_UP_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENSET_UP_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for DOWN event */
+#define LPCOMP_INTENSET_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define LPCOMP_INTENSET_DOWN_Msk (0x1UL << LPCOMP_INTENSET_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define LPCOMP_INTENSET_DOWN_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENSET_DOWN_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENSET_DOWN_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for READY event */
+#define LPCOMP_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define LPCOMP_INTENSET_READY_Msk (0x1UL << LPCOMP_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define LPCOMP_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: LPCOMP_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 3 : Write '1' to disable interrupt for CROSS event */
+#define LPCOMP_INTENCLR_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define LPCOMP_INTENCLR_CROSS_Msk (0x1UL << LPCOMP_INTENCLR_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define LPCOMP_INTENCLR_CROSS_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENCLR_CROSS_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENCLR_CROSS_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for UP event */
+#define LPCOMP_INTENCLR_UP_Pos (2UL) /*!< Position of UP field. */
+#define LPCOMP_INTENCLR_UP_Msk (0x1UL << LPCOMP_INTENCLR_UP_Pos) /*!< Bit mask of UP field. */
+#define LPCOMP_INTENCLR_UP_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENCLR_UP_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENCLR_UP_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for DOWN event */
+#define LPCOMP_INTENCLR_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define LPCOMP_INTENCLR_DOWN_Msk (0x1UL << LPCOMP_INTENCLR_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define LPCOMP_INTENCLR_DOWN_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENCLR_DOWN_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENCLR_DOWN_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for READY event */
+#define LPCOMP_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define LPCOMP_INTENCLR_READY_Msk (0x1UL << LPCOMP_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define LPCOMP_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: LPCOMP_RESULT */
+/* Description: Compare result */
+
+/* Bit 0 : Result of last compare. Decision point SAMPLE task. */
+#define LPCOMP_RESULT_RESULT_Pos (0UL) /*!< Position of RESULT field. */
+#define LPCOMP_RESULT_RESULT_Msk (0x1UL << LPCOMP_RESULT_RESULT_Pos) /*!< Bit mask of RESULT field. */
+#define LPCOMP_RESULT_RESULT_Below (0UL) /*!< Input voltage is below the reference threshold (VIN+ &lt; VIN-). */
+#define LPCOMP_RESULT_RESULT_Above (1UL) /*!< Input voltage is above the reference threshold (VIN+ &gt; VIN-). */
+
+/* Register: LPCOMP_ENABLE */
+/* Description: Enable LPCOMP */
+
+/* Bits 1..0 : Enable or disable LPCOMP */
+#define LPCOMP_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define LPCOMP_ENABLE_ENABLE_Msk (0x3UL << LPCOMP_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define LPCOMP_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define LPCOMP_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: LPCOMP_PSEL */
+/* Description: Input pin select */
+
+/* Bits 2..0 : Analog pin select */
+#define LPCOMP_PSEL_PSEL_Pos (0UL) /*!< Position of PSEL field. */
+#define LPCOMP_PSEL_PSEL_Msk (0x7UL << LPCOMP_PSEL_PSEL_Pos) /*!< Bit mask of PSEL field. */
+#define LPCOMP_PSEL_PSEL_AnalogInput0 (0UL) /*!< AIN0 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput1 (1UL) /*!< AIN1 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput2 (2UL) /*!< AIN2 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput3 (3UL) /*!< AIN3 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput4 (4UL) /*!< AIN4 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput5 (5UL) /*!< AIN5 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput6 (6UL) /*!< AIN6 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput7 (7UL) /*!< AIN7 selected as analog input */
+
+/* Register: LPCOMP_REFSEL */
+/* Description: Reference select */
+
+/* Bits 3..0 : Reference select */
+#define LPCOMP_REFSEL_REFSEL_Pos (0UL) /*!< Position of REFSEL field. */
+#define LPCOMP_REFSEL_REFSEL_Msk (0xFUL << LPCOMP_REFSEL_REFSEL_Pos) /*!< Bit mask of REFSEL field. */
+#define LPCOMP_REFSEL_REFSEL_Ref1_8Vdd (0UL) /*!< VDD * 1/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref2_8Vdd (1UL) /*!< VDD * 2/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref3_8Vdd (2UL) /*!< VDD * 3/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref4_8Vdd (3UL) /*!< VDD * 4/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref5_8Vdd (4UL) /*!< VDD * 5/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref6_8Vdd (5UL) /*!< VDD * 6/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref7_8Vdd (6UL) /*!< VDD * 7/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_ARef (7UL) /*!< External analog reference selected */
+#define LPCOMP_REFSEL_REFSEL_Ref1_16Vdd (8UL) /*!< VDD * 1/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref3_16Vdd (9UL) /*!< VDD * 3/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref5_16Vdd (10UL) /*!< VDD * 5/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref7_16Vdd (11UL) /*!< VDD * 7/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref9_16Vdd (12UL) /*!< VDD * 9/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref11_16Vdd (13UL) /*!< VDD * 11/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref13_16Vdd (14UL) /*!< VDD * 13/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref15_16Vdd (15UL) /*!< VDD * 15/16 selected as reference */
+
+/* Register: LPCOMP_EXTREFSEL */
+/* Description: External reference select */
+
+/* Bit 0 : External analog reference select */
+#define LPCOMP_EXTREFSEL_EXTREFSEL_Pos (0UL) /*!< Position of EXTREFSEL field. */
+#define LPCOMP_EXTREFSEL_EXTREFSEL_Msk (0x1UL << LPCOMP_EXTREFSEL_EXTREFSEL_Pos) /*!< Bit mask of EXTREFSEL field. */
+#define LPCOMP_EXTREFSEL_EXTREFSEL_AnalogReference0 (0UL) /*!< Use AIN0 as external analog reference */
+#define LPCOMP_EXTREFSEL_EXTREFSEL_AnalogReference1 (1UL) /*!< Use AIN1 as external analog reference */
+
+/* Register: LPCOMP_ANADETECT */
+/* Description: Analog detect configuration */
+
+/* Bits 1..0 : Analog detect configuration */
+#define LPCOMP_ANADETECT_ANADETECT_Pos (0UL) /*!< Position of ANADETECT field. */
+#define LPCOMP_ANADETECT_ANADETECT_Msk (0x3UL << LPCOMP_ANADETECT_ANADETECT_Pos) /*!< Bit mask of ANADETECT field. */
+#define LPCOMP_ANADETECT_ANADETECT_Cross (0UL) /*!< Generate ANADETECT on crossing, both upward crossing and downward crossing */
+#define LPCOMP_ANADETECT_ANADETECT_Up (1UL) /*!< Generate ANADETECT on upward crossing only */
+#define LPCOMP_ANADETECT_ANADETECT_Down (2UL) /*!< Generate ANADETECT on downward crossing only */
+
+/* Register: LPCOMP_HYST */
+/* Description: Comparator hysteresis enable */
+
+/* Bit 0 : Comparator hysteresis enable */
+#define LPCOMP_HYST_HYST_Pos (0UL) /*!< Position of HYST field. */
+#define LPCOMP_HYST_HYST_Msk (0x1UL << LPCOMP_HYST_HYST_Pos) /*!< Bit mask of HYST field. */
+#define LPCOMP_HYST_HYST_Disabled (0UL) /*!< Comparator hysteresis disabled */
+#define LPCOMP_HYST_HYST_Enabled (1UL) /*!< Comparator hysteresis enabled */
+
+
+/* Peripheral: MWU */
+/* Description: Memory Watch Unit */
+
+/* Register: MWU_EVENTS_REGION_WA */
+/* Description: Description cluster[n]: Write access to region n detected */
+
+/* Bit 0 : */
+#define MWU_EVENTS_REGION_WA_WA_Pos (0UL) /*!< Position of WA field. */
+#define MWU_EVENTS_REGION_WA_WA_Msk (0x1UL << MWU_EVENTS_REGION_WA_WA_Pos) /*!< Bit mask of WA field. */
+
+/* Register: MWU_EVENTS_REGION_RA */
+/* Description: Description cluster[n]: Read access to region n detected */
+
+/* Bit 0 : */
+#define MWU_EVENTS_REGION_RA_RA_Pos (0UL) /*!< Position of RA field. */
+#define MWU_EVENTS_REGION_RA_RA_Msk (0x1UL << MWU_EVENTS_REGION_RA_RA_Pos) /*!< Bit mask of RA field. */
+
+/* Register: MWU_EVENTS_PREGION_WA */
+/* Description: Description cluster[n]: Write access to peripheral region n detected */
+
+/* Bit 0 : */
+#define MWU_EVENTS_PREGION_WA_WA_Pos (0UL) /*!< Position of WA field. */
+#define MWU_EVENTS_PREGION_WA_WA_Msk (0x1UL << MWU_EVENTS_PREGION_WA_WA_Pos) /*!< Bit mask of WA field. */
+
+/* Register: MWU_EVENTS_PREGION_RA */
+/* Description: Description cluster[n]: Read access to peripheral region n detected */
+
+/* Bit 0 : */
+#define MWU_EVENTS_PREGION_RA_RA_Pos (0UL) /*!< Position of RA field. */
+#define MWU_EVENTS_PREGION_RA_RA_Msk (0x1UL << MWU_EVENTS_PREGION_RA_RA_Pos) /*!< Bit mask of RA field. */
+
+/* Register: MWU_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 27 : Enable or disable interrupt for PREGION[1].RA event */
+#define MWU_INTEN_PREGION1RA_Pos (27UL) /*!< Position of PREGION1RA field. */
+#define MWU_INTEN_PREGION1RA_Msk (0x1UL << MWU_INTEN_PREGION1RA_Pos) /*!< Bit mask of PREGION1RA field. */
+#define MWU_INTEN_PREGION1RA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_PREGION1RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 26 : Enable or disable interrupt for PREGION[1].WA event */
+#define MWU_INTEN_PREGION1WA_Pos (26UL) /*!< Position of PREGION1WA field. */
+#define MWU_INTEN_PREGION1WA_Msk (0x1UL << MWU_INTEN_PREGION1WA_Pos) /*!< Bit mask of PREGION1WA field. */
+#define MWU_INTEN_PREGION1WA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_PREGION1WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 25 : Enable or disable interrupt for PREGION[0].RA event */
+#define MWU_INTEN_PREGION0RA_Pos (25UL) /*!< Position of PREGION0RA field. */
+#define MWU_INTEN_PREGION0RA_Msk (0x1UL << MWU_INTEN_PREGION0RA_Pos) /*!< Bit mask of PREGION0RA field. */
+#define MWU_INTEN_PREGION0RA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_PREGION0RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 24 : Enable or disable interrupt for PREGION[0].WA event */
+#define MWU_INTEN_PREGION0WA_Pos (24UL) /*!< Position of PREGION0WA field. */
+#define MWU_INTEN_PREGION0WA_Msk (0x1UL << MWU_INTEN_PREGION0WA_Pos) /*!< Bit mask of PREGION0WA field. */
+#define MWU_INTEN_PREGION0WA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_PREGION0WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for REGION[3].RA event */
+#define MWU_INTEN_REGION3RA_Pos (7UL) /*!< Position of REGION3RA field. */
+#define MWU_INTEN_REGION3RA_Msk (0x1UL << MWU_INTEN_REGION3RA_Pos) /*!< Bit mask of REGION3RA field. */
+#define MWU_INTEN_REGION3RA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION3RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for REGION[3].WA event */
+#define MWU_INTEN_REGION3WA_Pos (6UL) /*!< Position of REGION3WA field. */
+#define MWU_INTEN_REGION3WA_Msk (0x1UL << MWU_INTEN_REGION3WA_Pos) /*!< Bit mask of REGION3WA field. */
+#define MWU_INTEN_REGION3WA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION3WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for REGION[2].RA event */
+#define MWU_INTEN_REGION2RA_Pos (5UL) /*!< Position of REGION2RA field. */
+#define MWU_INTEN_REGION2RA_Msk (0x1UL << MWU_INTEN_REGION2RA_Pos) /*!< Bit mask of REGION2RA field. */
+#define MWU_INTEN_REGION2RA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION2RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for REGION[2].WA event */
+#define MWU_INTEN_REGION2WA_Pos (4UL) /*!< Position of REGION2WA field. */
+#define MWU_INTEN_REGION2WA_Msk (0x1UL << MWU_INTEN_REGION2WA_Pos) /*!< Bit mask of REGION2WA field. */
+#define MWU_INTEN_REGION2WA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION2WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for REGION[1].RA event */
+#define MWU_INTEN_REGION1RA_Pos (3UL) /*!< Position of REGION1RA field. */
+#define MWU_INTEN_REGION1RA_Msk (0x1UL << MWU_INTEN_REGION1RA_Pos) /*!< Bit mask of REGION1RA field. */
+#define MWU_INTEN_REGION1RA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION1RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for REGION[1].WA event */
+#define MWU_INTEN_REGION1WA_Pos (2UL) /*!< Position of REGION1WA field. */
+#define MWU_INTEN_REGION1WA_Msk (0x1UL << MWU_INTEN_REGION1WA_Pos) /*!< Bit mask of REGION1WA field. */
+#define MWU_INTEN_REGION1WA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION1WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for REGION[0].RA event */
+#define MWU_INTEN_REGION0RA_Pos (1UL) /*!< Position of REGION0RA field. */
+#define MWU_INTEN_REGION0RA_Msk (0x1UL << MWU_INTEN_REGION0RA_Pos) /*!< Bit mask of REGION0RA field. */
+#define MWU_INTEN_REGION0RA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION0RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for REGION[0].WA event */
+#define MWU_INTEN_REGION0WA_Pos (0UL) /*!< Position of REGION0WA field. */
+#define MWU_INTEN_REGION0WA_Msk (0x1UL << MWU_INTEN_REGION0WA_Pos) /*!< Bit mask of REGION0WA field. */
+#define MWU_INTEN_REGION0WA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION0WA_Enabled (1UL) /*!< Enable */
+
+/* Register: MWU_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 27 : Write '1' to enable interrupt for PREGION[1].RA event */
+#define MWU_INTENSET_PREGION1RA_Pos (27UL) /*!< Position of PREGION1RA field. */
+#define MWU_INTENSET_PREGION1RA_Msk (0x1UL << MWU_INTENSET_PREGION1RA_Pos) /*!< Bit mask of PREGION1RA field. */
+#define MWU_INTENSET_PREGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_PREGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_PREGION1RA_Set (1UL) /*!< Enable */
+
+/* Bit 26 : Write '1' to enable interrupt for PREGION[1].WA event */
+#define MWU_INTENSET_PREGION1WA_Pos (26UL) /*!< Position of PREGION1WA field. */
+#define MWU_INTENSET_PREGION1WA_Msk (0x1UL << MWU_INTENSET_PREGION1WA_Pos) /*!< Bit mask of PREGION1WA field. */
+#define MWU_INTENSET_PREGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_PREGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_PREGION1WA_Set (1UL) /*!< Enable */
+
+/* Bit 25 : Write '1' to enable interrupt for PREGION[0].RA event */
+#define MWU_INTENSET_PREGION0RA_Pos (25UL) /*!< Position of PREGION0RA field. */
+#define MWU_INTENSET_PREGION0RA_Msk (0x1UL << MWU_INTENSET_PREGION0RA_Pos) /*!< Bit mask of PREGION0RA field. */
+#define MWU_INTENSET_PREGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_PREGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_PREGION0RA_Set (1UL) /*!< Enable */
+
+/* Bit 24 : Write '1' to enable interrupt for PREGION[0].WA event */
+#define MWU_INTENSET_PREGION0WA_Pos (24UL) /*!< Position of PREGION0WA field. */
+#define MWU_INTENSET_PREGION0WA_Msk (0x1UL << MWU_INTENSET_PREGION0WA_Pos) /*!< Bit mask of PREGION0WA field. */
+#define MWU_INTENSET_PREGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_PREGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_PREGION0WA_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to enable interrupt for REGION[3].RA event */
+#define MWU_INTENSET_REGION3RA_Pos (7UL) /*!< Position of REGION3RA field. */
+#define MWU_INTENSET_REGION3RA_Msk (0x1UL << MWU_INTENSET_REGION3RA_Pos) /*!< Bit mask of REGION3RA field. */
+#define MWU_INTENSET_REGION3RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION3RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION3RA_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to enable interrupt for REGION[3].WA event */
+#define MWU_INTENSET_REGION3WA_Pos (6UL) /*!< Position of REGION3WA field. */
+#define MWU_INTENSET_REGION3WA_Msk (0x1UL << MWU_INTENSET_REGION3WA_Pos) /*!< Bit mask of REGION3WA field. */
+#define MWU_INTENSET_REGION3WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION3WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION3WA_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to enable interrupt for REGION[2].RA event */
+#define MWU_INTENSET_REGION2RA_Pos (5UL) /*!< Position of REGION2RA field. */
+#define MWU_INTENSET_REGION2RA_Msk (0x1UL << MWU_INTENSET_REGION2RA_Pos) /*!< Bit mask of REGION2RA field. */
+#define MWU_INTENSET_REGION2RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION2RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION2RA_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable interrupt for REGION[2].WA event */
+#define MWU_INTENSET_REGION2WA_Pos (4UL) /*!< Position of REGION2WA field. */
+#define MWU_INTENSET_REGION2WA_Msk (0x1UL << MWU_INTENSET_REGION2WA_Pos) /*!< Bit mask of REGION2WA field. */
+#define MWU_INTENSET_REGION2WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION2WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION2WA_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to enable interrupt for REGION[1].RA event */
+#define MWU_INTENSET_REGION1RA_Pos (3UL) /*!< Position of REGION1RA field. */
+#define MWU_INTENSET_REGION1RA_Msk (0x1UL << MWU_INTENSET_REGION1RA_Pos) /*!< Bit mask of REGION1RA field. */
+#define MWU_INTENSET_REGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION1RA_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for REGION[1].WA event */
+#define MWU_INTENSET_REGION1WA_Pos (2UL) /*!< Position of REGION1WA field. */
+#define MWU_INTENSET_REGION1WA_Msk (0x1UL << MWU_INTENSET_REGION1WA_Pos) /*!< Bit mask of REGION1WA field. */
+#define MWU_INTENSET_REGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION1WA_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for REGION[0].RA event */
+#define MWU_INTENSET_REGION0RA_Pos (1UL) /*!< Position of REGION0RA field. */
+#define MWU_INTENSET_REGION0RA_Msk (0x1UL << MWU_INTENSET_REGION0RA_Pos) /*!< Bit mask of REGION0RA field. */
+#define MWU_INTENSET_REGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION0RA_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for REGION[0].WA event */
+#define MWU_INTENSET_REGION0WA_Pos (0UL) /*!< Position of REGION0WA field. */
+#define MWU_INTENSET_REGION0WA_Msk (0x1UL << MWU_INTENSET_REGION0WA_Pos) /*!< Bit mask of REGION0WA field. */
+#define MWU_INTENSET_REGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION0WA_Set (1UL) /*!< Enable */
+
+/* Register: MWU_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 27 : Write '1' to disable interrupt for PREGION[1].RA event */
+#define MWU_INTENCLR_PREGION1RA_Pos (27UL) /*!< Position of PREGION1RA field. */
+#define MWU_INTENCLR_PREGION1RA_Msk (0x1UL << MWU_INTENCLR_PREGION1RA_Pos) /*!< Bit mask of PREGION1RA field. */
+#define MWU_INTENCLR_PREGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_PREGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_PREGION1RA_Clear (1UL) /*!< Disable */
+
+/* Bit 26 : Write '1' to disable interrupt for PREGION[1].WA event */
+#define MWU_INTENCLR_PREGION1WA_Pos (26UL) /*!< Position of PREGION1WA field. */
+#define MWU_INTENCLR_PREGION1WA_Msk (0x1UL << MWU_INTENCLR_PREGION1WA_Pos) /*!< Bit mask of PREGION1WA field. */
+#define MWU_INTENCLR_PREGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_PREGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_PREGION1WA_Clear (1UL) /*!< Disable */
+
+/* Bit 25 : Write '1' to disable interrupt for PREGION[0].RA event */
+#define MWU_INTENCLR_PREGION0RA_Pos (25UL) /*!< Position of PREGION0RA field. */
+#define MWU_INTENCLR_PREGION0RA_Msk (0x1UL << MWU_INTENCLR_PREGION0RA_Pos) /*!< Bit mask of PREGION0RA field. */
+#define MWU_INTENCLR_PREGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_PREGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_PREGION0RA_Clear (1UL) /*!< Disable */
+
+/* Bit 24 : Write '1' to disable interrupt for PREGION[0].WA event */
+#define MWU_INTENCLR_PREGION0WA_Pos (24UL) /*!< Position of PREGION0WA field. */
+#define MWU_INTENCLR_PREGION0WA_Msk (0x1UL << MWU_INTENCLR_PREGION0WA_Pos) /*!< Bit mask of PREGION0WA field. */
+#define MWU_INTENCLR_PREGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_PREGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_PREGION0WA_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to disable interrupt for REGION[3].RA event */
+#define MWU_INTENCLR_REGION3RA_Pos (7UL) /*!< Position of REGION3RA field. */
+#define MWU_INTENCLR_REGION3RA_Msk (0x1UL << MWU_INTENCLR_REGION3RA_Pos) /*!< Bit mask of REGION3RA field. */
+#define MWU_INTENCLR_REGION3RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION3RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION3RA_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to disable interrupt for REGION[3].WA event */
+#define MWU_INTENCLR_REGION3WA_Pos (6UL) /*!< Position of REGION3WA field. */
+#define MWU_INTENCLR_REGION3WA_Msk (0x1UL << MWU_INTENCLR_REGION3WA_Pos) /*!< Bit mask of REGION3WA field. */
+#define MWU_INTENCLR_REGION3WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION3WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION3WA_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to disable interrupt for REGION[2].RA event */
+#define MWU_INTENCLR_REGION2RA_Pos (5UL) /*!< Position of REGION2RA field. */
+#define MWU_INTENCLR_REGION2RA_Msk (0x1UL << MWU_INTENCLR_REGION2RA_Pos) /*!< Bit mask of REGION2RA field. */
+#define MWU_INTENCLR_REGION2RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION2RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION2RA_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable interrupt for REGION[2].WA event */
+#define MWU_INTENCLR_REGION2WA_Pos (4UL) /*!< Position of REGION2WA field. */
+#define MWU_INTENCLR_REGION2WA_Msk (0x1UL << MWU_INTENCLR_REGION2WA_Pos) /*!< Bit mask of REGION2WA field. */
+#define MWU_INTENCLR_REGION2WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION2WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION2WA_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to disable interrupt for REGION[1].RA event */
+#define MWU_INTENCLR_REGION1RA_Pos (3UL) /*!< Position of REGION1RA field. */
+#define MWU_INTENCLR_REGION1RA_Msk (0x1UL << MWU_INTENCLR_REGION1RA_Pos) /*!< Bit mask of REGION1RA field. */
+#define MWU_INTENCLR_REGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION1RA_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for REGION[1].WA event */
+#define MWU_INTENCLR_REGION1WA_Pos (2UL) /*!< Position of REGION1WA field. */
+#define MWU_INTENCLR_REGION1WA_Msk (0x1UL << MWU_INTENCLR_REGION1WA_Pos) /*!< Bit mask of REGION1WA field. */
+#define MWU_INTENCLR_REGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION1WA_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for REGION[0].RA event */
+#define MWU_INTENCLR_REGION0RA_Pos (1UL) /*!< Position of REGION0RA field. */
+#define MWU_INTENCLR_REGION0RA_Msk (0x1UL << MWU_INTENCLR_REGION0RA_Pos) /*!< Bit mask of REGION0RA field. */
+#define MWU_INTENCLR_REGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION0RA_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for REGION[0].WA event */
+#define MWU_INTENCLR_REGION0WA_Pos (0UL) /*!< Position of REGION0WA field. */
+#define MWU_INTENCLR_REGION0WA_Msk (0x1UL << MWU_INTENCLR_REGION0WA_Pos) /*!< Bit mask of REGION0WA field. */
+#define MWU_INTENCLR_REGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION0WA_Clear (1UL) /*!< Disable */
+
+/* Register: MWU_NMIEN */
+/* Description: Enable or disable non-maskable interrupt */
+
+/* Bit 27 : Enable or disable non-maskable interrupt for PREGION[1].RA event */
+#define MWU_NMIEN_PREGION1RA_Pos (27UL) /*!< Position of PREGION1RA field. */
+#define MWU_NMIEN_PREGION1RA_Msk (0x1UL << MWU_NMIEN_PREGION1RA_Pos) /*!< Bit mask of PREGION1RA field. */
+#define MWU_NMIEN_PREGION1RA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_PREGION1RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 26 : Enable or disable non-maskable interrupt for PREGION[1].WA event */
+#define MWU_NMIEN_PREGION1WA_Pos (26UL) /*!< Position of PREGION1WA field. */
+#define MWU_NMIEN_PREGION1WA_Msk (0x1UL << MWU_NMIEN_PREGION1WA_Pos) /*!< Bit mask of PREGION1WA field. */
+#define MWU_NMIEN_PREGION1WA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_PREGION1WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 25 : Enable or disable non-maskable interrupt for PREGION[0].RA event */
+#define MWU_NMIEN_PREGION0RA_Pos (25UL) /*!< Position of PREGION0RA field. */
+#define MWU_NMIEN_PREGION0RA_Msk (0x1UL << MWU_NMIEN_PREGION0RA_Pos) /*!< Bit mask of PREGION0RA field. */
+#define MWU_NMIEN_PREGION0RA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_PREGION0RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 24 : Enable or disable non-maskable interrupt for PREGION[0].WA event */
+#define MWU_NMIEN_PREGION0WA_Pos (24UL) /*!< Position of PREGION0WA field. */
+#define MWU_NMIEN_PREGION0WA_Msk (0x1UL << MWU_NMIEN_PREGION0WA_Pos) /*!< Bit mask of PREGION0WA field. */
+#define MWU_NMIEN_PREGION0WA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_PREGION0WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable non-maskable interrupt for REGION[3].RA event */
+#define MWU_NMIEN_REGION3RA_Pos (7UL) /*!< Position of REGION3RA field. */
+#define MWU_NMIEN_REGION3RA_Msk (0x1UL << MWU_NMIEN_REGION3RA_Pos) /*!< Bit mask of REGION3RA field. */
+#define MWU_NMIEN_REGION3RA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION3RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable non-maskable interrupt for REGION[3].WA event */
+#define MWU_NMIEN_REGION3WA_Pos (6UL) /*!< Position of REGION3WA field. */
+#define MWU_NMIEN_REGION3WA_Msk (0x1UL << MWU_NMIEN_REGION3WA_Pos) /*!< Bit mask of REGION3WA field. */
+#define MWU_NMIEN_REGION3WA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION3WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable non-maskable interrupt for REGION[2].RA event */
+#define MWU_NMIEN_REGION2RA_Pos (5UL) /*!< Position of REGION2RA field. */
+#define MWU_NMIEN_REGION2RA_Msk (0x1UL << MWU_NMIEN_REGION2RA_Pos) /*!< Bit mask of REGION2RA field. */
+#define MWU_NMIEN_REGION2RA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION2RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable non-maskable interrupt for REGION[2].WA event */
+#define MWU_NMIEN_REGION2WA_Pos (4UL) /*!< Position of REGION2WA field. */
+#define MWU_NMIEN_REGION2WA_Msk (0x1UL << MWU_NMIEN_REGION2WA_Pos) /*!< Bit mask of REGION2WA field. */
+#define MWU_NMIEN_REGION2WA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION2WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable non-maskable interrupt for REGION[1].RA event */
+#define MWU_NMIEN_REGION1RA_Pos (3UL) /*!< Position of REGION1RA field. */
+#define MWU_NMIEN_REGION1RA_Msk (0x1UL << MWU_NMIEN_REGION1RA_Pos) /*!< Bit mask of REGION1RA field. */
+#define MWU_NMIEN_REGION1RA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION1RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable non-maskable interrupt for REGION[1].WA event */
+#define MWU_NMIEN_REGION1WA_Pos (2UL) /*!< Position of REGION1WA field. */
+#define MWU_NMIEN_REGION1WA_Msk (0x1UL << MWU_NMIEN_REGION1WA_Pos) /*!< Bit mask of REGION1WA field. */
+#define MWU_NMIEN_REGION1WA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION1WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable non-maskable interrupt for REGION[0].RA event */
+#define MWU_NMIEN_REGION0RA_Pos (1UL) /*!< Position of REGION0RA field. */
+#define MWU_NMIEN_REGION0RA_Msk (0x1UL << MWU_NMIEN_REGION0RA_Pos) /*!< Bit mask of REGION0RA field. */
+#define MWU_NMIEN_REGION0RA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION0RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable non-maskable interrupt for REGION[0].WA event */
+#define MWU_NMIEN_REGION0WA_Pos (0UL) /*!< Position of REGION0WA field. */
+#define MWU_NMIEN_REGION0WA_Msk (0x1UL << MWU_NMIEN_REGION0WA_Pos) /*!< Bit mask of REGION0WA field. */
+#define MWU_NMIEN_REGION0WA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION0WA_Enabled (1UL) /*!< Enable */
+
+/* Register: MWU_NMIENSET */
+/* Description: Enable non-maskable interrupt */
+
+/* Bit 27 : Write '1' to enable non-maskable interrupt for PREGION[1].RA event */
+#define MWU_NMIENSET_PREGION1RA_Pos (27UL) /*!< Position of PREGION1RA field. */
+#define MWU_NMIENSET_PREGION1RA_Msk (0x1UL << MWU_NMIENSET_PREGION1RA_Pos) /*!< Bit mask of PREGION1RA field. */
+#define MWU_NMIENSET_PREGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_PREGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_PREGION1RA_Set (1UL) /*!< Enable */
+
+/* Bit 26 : Write '1' to enable non-maskable interrupt for PREGION[1].WA event */
+#define MWU_NMIENSET_PREGION1WA_Pos (26UL) /*!< Position of PREGION1WA field. */
+#define MWU_NMIENSET_PREGION1WA_Msk (0x1UL << MWU_NMIENSET_PREGION1WA_Pos) /*!< Bit mask of PREGION1WA field. */
+#define MWU_NMIENSET_PREGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_PREGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_PREGION1WA_Set (1UL) /*!< Enable */
+
+/* Bit 25 : Write '1' to enable non-maskable interrupt for PREGION[0].RA event */
+#define MWU_NMIENSET_PREGION0RA_Pos (25UL) /*!< Position of PREGION0RA field. */
+#define MWU_NMIENSET_PREGION0RA_Msk (0x1UL << MWU_NMIENSET_PREGION0RA_Pos) /*!< Bit mask of PREGION0RA field. */
+#define MWU_NMIENSET_PREGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_PREGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_PREGION0RA_Set (1UL) /*!< Enable */
+
+/* Bit 24 : Write '1' to enable non-maskable interrupt for PREGION[0].WA event */
+#define MWU_NMIENSET_PREGION0WA_Pos (24UL) /*!< Position of PREGION0WA field. */
+#define MWU_NMIENSET_PREGION0WA_Msk (0x1UL << MWU_NMIENSET_PREGION0WA_Pos) /*!< Bit mask of PREGION0WA field. */
+#define MWU_NMIENSET_PREGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_PREGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_PREGION0WA_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to enable non-maskable interrupt for REGION[3].RA event */
+#define MWU_NMIENSET_REGION3RA_Pos (7UL) /*!< Position of REGION3RA field. */
+#define MWU_NMIENSET_REGION3RA_Msk (0x1UL << MWU_NMIENSET_REGION3RA_Pos) /*!< Bit mask of REGION3RA field. */
+#define MWU_NMIENSET_REGION3RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION3RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION3RA_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to enable non-maskable interrupt for REGION[3].WA event */
+#define MWU_NMIENSET_REGION3WA_Pos (6UL) /*!< Position of REGION3WA field. */
+#define MWU_NMIENSET_REGION3WA_Msk (0x1UL << MWU_NMIENSET_REGION3WA_Pos) /*!< Bit mask of REGION3WA field. */
+#define MWU_NMIENSET_REGION3WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION3WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION3WA_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to enable non-maskable interrupt for REGION[2].RA event */
+#define MWU_NMIENSET_REGION2RA_Pos (5UL) /*!< Position of REGION2RA field. */
+#define MWU_NMIENSET_REGION2RA_Msk (0x1UL << MWU_NMIENSET_REGION2RA_Pos) /*!< Bit mask of REGION2RA field. */
+#define MWU_NMIENSET_REGION2RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION2RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION2RA_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable non-maskable interrupt for REGION[2].WA event */
+#define MWU_NMIENSET_REGION2WA_Pos (4UL) /*!< Position of REGION2WA field. */
+#define MWU_NMIENSET_REGION2WA_Msk (0x1UL << MWU_NMIENSET_REGION2WA_Pos) /*!< Bit mask of REGION2WA field. */
+#define MWU_NMIENSET_REGION2WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION2WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION2WA_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to enable non-maskable interrupt for REGION[1].RA event */
+#define MWU_NMIENSET_REGION1RA_Pos (3UL) /*!< Position of REGION1RA field. */
+#define MWU_NMIENSET_REGION1RA_Msk (0x1UL << MWU_NMIENSET_REGION1RA_Pos) /*!< Bit mask of REGION1RA field. */
+#define MWU_NMIENSET_REGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION1RA_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable non-maskable interrupt for REGION[1].WA event */
+#define MWU_NMIENSET_REGION1WA_Pos (2UL) /*!< Position of REGION1WA field. */
+#define MWU_NMIENSET_REGION1WA_Msk (0x1UL << MWU_NMIENSET_REGION1WA_Pos) /*!< Bit mask of REGION1WA field. */
+#define MWU_NMIENSET_REGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION1WA_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable non-maskable interrupt for REGION[0].RA event */
+#define MWU_NMIENSET_REGION0RA_Pos (1UL) /*!< Position of REGION0RA field. */
+#define MWU_NMIENSET_REGION0RA_Msk (0x1UL << MWU_NMIENSET_REGION0RA_Pos) /*!< Bit mask of REGION0RA field. */
+#define MWU_NMIENSET_REGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION0RA_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable non-maskable interrupt for REGION[0].WA event */
+#define MWU_NMIENSET_REGION0WA_Pos (0UL) /*!< Position of REGION0WA field. */
+#define MWU_NMIENSET_REGION0WA_Msk (0x1UL << MWU_NMIENSET_REGION0WA_Pos) /*!< Bit mask of REGION0WA field. */
+#define MWU_NMIENSET_REGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION0WA_Set (1UL) /*!< Enable */
+
+/* Register: MWU_NMIENCLR */
+/* Description: Disable non-maskable interrupt */
+
+/* Bit 27 : Write '1' to disable non-maskable interrupt for PREGION[1].RA event */
+#define MWU_NMIENCLR_PREGION1RA_Pos (27UL) /*!< Position of PREGION1RA field. */
+#define MWU_NMIENCLR_PREGION1RA_Msk (0x1UL << MWU_NMIENCLR_PREGION1RA_Pos) /*!< Bit mask of PREGION1RA field. */
+#define MWU_NMIENCLR_PREGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_PREGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_PREGION1RA_Clear (1UL) /*!< Disable */
+
+/* Bit 26 : Write '1' to disable non-maskable interrupt for PREGION[1].WA event */
+#define MWU_NMIENCLR_PREGION1WA_Pos (26UL) /*!< Position of PREGION1WA field. */
+#define MWU_NMIENCLR_PREGION1WA_Msk (0x1UL << MWU_NMIENCLR_PREGION1WA_Pos) /*!< Bit mask of PREGION1WA field. */
+#define MWU_NMIENCLR_PREGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_PREGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_PREGION1WA_Clear (1UL) /*!< Disable */
+
+/* Bit 25 : Write '1' to disable non-maskable interrupt for PREGION[0].RA event */
+#define MWU_NMIENCLR_PREGION0RA_Pos (25UL) /*!< Position of PREGION0RA field. */
+#define MWU_NMIENCLR_PREGION0RA_Msk (0x1UL << MWU_NMIENCLR_PREGION0RA_Pos) /*!< Bit mask of PREGION0RA field. */
+#define MWU_NMIENCLR_PREGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_PREGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_PREGION0RA_Clear (1UL) /*!< Disable */
+
+/* Bit 24 : Write '1' to disable non-maskable interrupt for PREGION[0].WA event */
+#define MWU_NMIENCLR_PREGION0WA_Pos (24UL) /*!< Position of PREGION0WA field. */
+#define MWU_NMIENCLR_PREGION0WA_Msk (0x1UL << MWU_NMIENCLR_PREGION0WA_Pos) /*!< Bit mask of PREGION0WA field. */
+#define MWU_NMIENCLR_PREGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_PREGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_PREGION0WA_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to disable non-maskable interrupt for REGION[3].RA event */
+#define MWU_NMIENCLR_REGION3RA_Pos (7UL) /*!< Position of REGION3RA field. */
+#define MWU_NMIENCLR_REGION3RA_Msk (0x1UL << MWU_NMIENCLR_REGION3RA_Pos) /*!< Bit mask of REGION3RA field. */
+#define MWU_NMIENCLR_REGION3RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION3RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION3RA_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to disable non-maskable interrupt for REGION[3].WA event */
+#define MWU_NMIENCLR_REGION3WA_Pos (6UL) /*!< Position of REGION3WA field. */
+#define MWU_NMIENCLR_REGION3WA_Msk (0x1UL << MWU_NMIENCLR_REGION3WA_Pos) /*!< Bit mask of REGION3WA field. */
+#define MWU_NMIENCLR_REGION3WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION3WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION3WA_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to disable non-maskable interrupt for REGION[2].RA event */
+#define MWU_NMIENCLR_REGION2RA_Pos (5UL) /*!< Position of REGION2RA field. */
+#define MWU_NMIENCLR_REGION2RA_Msk (0x1UL << MWU_NMIENCLR_REGION2RA_Pos) /*!< Bit mask of REGION2RA field. */
+#define MWU_NMIENCLR_REGION2RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION2RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION2RA_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable non-maskable interrupt for REGION[2].WA event */
+#define MWU_NMIENCLR_REGION2WA_Pos (4UL) /*!< Position of REGION2WA field. */
+#define MWU_NMIENCLR_REGION2WA_Msk (0x1UL << MWU_NMIENCLR_REGION2WA_Pos) /*!< Bit mask of REGION2WA field. */
+#define MWU_NMIENCLR_REGION2WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION2WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION2WA_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to disable non-maskable interrupt for REGION[1].RA event */
+#define MWU_NMIENCLR_REGION1RA_Pos (3UL) /*!< Position of REGION1RA field. */
+#define MWU_NMIENCLR_REGION1RA_Msk (0x1UL << MWU_NMIENCLR_REGION1RA_Pos) /*!< Bit mask of REGION1RA field. */
+#define MWU_NMIENCLR_REGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION1RA_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable non-maskable interrupt for REGION[1].WA event */
+#define MWU_NMIENCLR_REGION1WA_Pos (2UL) /*!< Position of REGION1WA field. */
+#define MWU_NMIENCLR_REGION1WA_Msk (0x1UL << MWU_NMIENCLR_REGION1WA_Pos) /*!< Bit mask of REGION1WA field. */
+#define MWU_NMIENCLR_REGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION1WA_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable non-maskable interrupt for REGION[0].RA event */
+#define MWU_NMIENCLR_REGION0RA_Pos (1UL) /*!< Position of REGION0RA field. */
+#define MWU_NMIENCLR_REGION0RA_Msk (0x1UL << MWU_NMIENCLR_REGION0RA_Pos) /*!< Bit mask of REGION0RA field. */
+#define MWU_NMIENCLR_REGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION0RA_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable non-maskable interrupt for REGION[0].WA event */
+#define MWU_NMIENCLR_REGION0WA_Pos (0UL) /*!< Position of REGION0WA field. */
+#define MWU_NMIENCLR_REGION0WA_Msk (0x1UL << MWU_NMIENCLR_REGION0WA_Pos) /*!< Bit mask of REGION0WA field. */
+#define MWU_NMIENCLR_REGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION0WA_Clear (1UL) /*!< Disable */
+
+/* Register: MWU_PERREGION_SUBSTATWA */
+/* Description: Description cluster[n]: Source of event/interrupt in region n, write access detected while corresponding subregion was enabled for watching */
+
+/* Bit 31 : Subregion 31 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR31_Pos (31UL) /*!< Position of SR31 field. */
+#define MWU_PERREGION_SUBSTATWA_SR31_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR31_Pos) /*!< Bit mask of SR31 field. */
+#define MWU_PERREGION_SUBSTATWA_SR31_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR31_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 30 : Subregion 30 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR30_Pos (30UL) /*!< Position of SR30 field. */
+#define MWU_PERREGION_SUBSTATWA_SR30_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR30_Pos) /*!< Bit mask of SR30 field. */
+#define MWU_PERREGION_SUBSTATWA_SR30_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR30_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 29 : Subregion 29 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR29_Pos (29UL) /*!< Position of SR29 field. */
+#define MWU_PERREGION_SUBSTATWA_SR29_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR29_Pos) /*!< Bit mask of SR29 field. */
+#define MWU_PERREGION_SUBSTATWA_SR29_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR29_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 28 : Subregion 28 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR28_Pos (28UL) /*!< Position of SR28 field. */
+#define MWU_PERREGION_SUBSTATWA_SR28_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR28_Pos) /*!< Bit mask of SR28 field. */
+#define MWU_PERREGION_SUBSTATWA_SR28_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR28_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 27 : Subregion 27 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR27_Pos (27UL) /*!< Position of SR27 field. */
+#define MWU_PERREGION_SUBSTATWA_SR27_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR27_Pos) /*!< Bit mask of SR27 field. */
+#define MWU_PERREGION_SUBSTATWA_SR27_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR27_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 26 : Subregion 26 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR26_Pos (26UL) /*!< Position of SR26 field. */
+#define MWU_PERREGION_SUBSTATWA_SR26_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR26_Pos) /*!< Bit mask of SR26 field. */
+#define MWU_PERREGION_SUBSTATWA_SR26_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR26_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 25 : Subregion 25 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR25_Pos (25UL) /*!< Position of SR25 field. */
+#define MWU_PERREGION_SUBSTATWA_SR25_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR25_Pos) /*!< Bit mask of SR25 field. */
+#define MWU_PERREGION_SUBSTATWA_SR25_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR25_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 24 : Subregion 24 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR24_Pos (24UL) /*!< Position of SR24 field. */
+#define MWU_PERREGION_SUBSTATWA_SR24_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR24_Pos) /*!< Bit mask of SR24 field. */
+#define MWU_PERREGION_SUBSTATWA_SR24_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR24_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 23 : Subregion 23 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR23_Pos (23UL) /*!< Position of SR23 field. */
+#define MWU_PERREGION_SUBSTATWA_SR23_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR23_Pos) /*!< Bit mask of SR23 field. */
+#define MWU_PERREGION_SUBSTATWA_SR23_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR23_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 22 : Subregion 22 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR22_Pos (22UL) /*!< Position of SR22 field. */
+#define MWU_PERREGION_SUBSTATWA_SR22_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR22_Pos) /*!< Bit mask of SR22 field. */
+#define MWU_PERREGION_SUBSTATWA_SR22_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR22_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 21 : Subregion 21 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR21_Pos (21UL) /*!< Position of SR21 field. */
+#define MWU_PERREGION_SUBSTATWA_SR21_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR21_Pos) /*!< Bit mask of SR21 field. */
+#define MWU_PERREGION_SUBSTATWA_SR21_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR21_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 20 : Subregion 20 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR20_Pos (20UL) /*!< Position of SR20 field. */
+#define MWU_PERREGION_SUBSTATWA_SR20_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR20_Pos) /*!< Bit mask of SR20 field. */
+#define MWU_PERREGION_SUBSTATWA_SR20_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR20_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 19 : Subregion 19 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR19_Pos (19UL) /*!< Position of SR19 field. */
+#define MWU_PERREGION_SUBSTATWA_SR19_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR19_Pos) /*!< Bit mask of SR19 field. */
+#define MWU_PERREGION_SUBSTATWA_SR19_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR19_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 18 : Subregion 18 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR18_Pos (18UL) /*!< Position of SR18 field. */
+#define MWU_PERREGION_SUBSTATWA_SR18_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR18_Pos) /*!< Bit mask of SR18 field. */
+#define MWU_PERREGION_SUBSTATWA_SR18_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR18_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 17 : Subregion 17 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR17_Pos (17UL) /*!< Position of SR17 field. */
+#define MWU_PERREGION_SUBSTATWA_SR17_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR17_Pos) /*!< Bit mask of SR17 field. */
+#define MWU_PERREGION_SUBSTATWA_SR17_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR17_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 16 : Subregion 16 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR16_Pos (16UL) /*!< Position of SR16 field. */
+#define MWU_PERREGION_SUBSTATWA_SR16_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR16_Pos) /*!< Bit mask of SR16 field. */
+#define MWU_PERREGION_SUBSTATWA_SR16_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR16_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 15 : Subregion 15 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR15_Pos (15UL) /*!< Position of SR15 field. */
+#define MWU_PERREGION_SUBSTATWA_SR15_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR15_Pos) /*!< Bit mask of SR15 field. */
+#define MWU_PERREGION_SUBSTATWA_SR15_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR15_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 14 : Subregion 14 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR14_Pos (14UL) /*!< Position of SR14 field. */
+#define MWU_PERREGION_SUBSTATWA_SR14_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR14_Pos) /*!< Bit mask of SR14 field. */
+#define MWU_PERREGION_SUBSTATWA_SR14_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR14_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 13 : Subregion 13 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR13_Pos (13UL) /*!< Position of SR13 field. */
+#define MWU_PERREGION_SUBSTATWA_SR13_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR13_Pos) /*!< Bit mask of SR13 field. */
+#define MWU_PERREGION_SUBSTATWA_SR13_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR13_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 12 : Subregion 12 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR12_Pos (12UL) /*!< Position of SR12 field. */
+#define MWU_PERREGION_SUBSTATWA_SR12_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR12_Pos) /*!< Bit mask of SR12 field. */
+#define MWU_PERREGION_SUBSTATWA_SR12_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR12_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 11 : Subregion 11 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR11_Pos (11UL) /*!< Position of SR11 field. */
+#define MWU_PERREGION_SUBSTATWA_SR11_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR11_Pos) /*!< Bit mask of SR11 field. */
+#define MWU_PERREGION_SUBSTATWA_SR11_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR11_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 10 : Subregion 10 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR10_Pos (10UL) /*!< Position of SR10 field. */
+#define MWU_PERREGION_SUBSTATWA_SR10_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR10_Pos) /*!< Bit mask of SR10 field. */
+#define MWU_PERREGION_SUBSTATWA_SR10_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR10_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 9 : Subregion 9 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR9_Pos (9UL) /*!< Position of SR9 field. */
+#define MWU_PERREGION_SUBSTATWA_SR9_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR9_Pos) /*!< Bit mask of SR9 field. */
+#define MWU_PERREGION_SUBSTATWA_SR9_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR9_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 8 : Subregion 8 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR8_Pos (8UL) /*!< Position of SR8 field. */
+#define MWU_PERREGION_SUBSTATWA_SR8_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR8_Pos) /*!< Bit mask of SR8 field. */
+#define MWU_PERREGION_SUBSTATWA_SR8_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR8_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 7 : Subregion 7 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR7_Pos (7UL) /*!< Position of SR7 field. */
+#define MWU_PERREGION_SUBSTATWA_SR7_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR7_Pos) /*!< Bit mask of SR7 field. */
+#define MWU_PERREGION_SUBSTATWA_SR7_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR7_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 6 : Subregion 6 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR6_Pos (6UL) /*!< Position of SR6 field. */
+#define MWU_PERREGION_SUBSTATWA_SR6_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR6_Pos) /*!< Bit mask of SR6 field. */
+#define MWU_PERREGION_SUBSTATWA_SR6_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR6_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 5 : Subregion 5 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR5_Pos (5UL) /*!< Position of SR5 field. */
+#define MWU_PERREGION_SUBSTATWA_SR5_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR5_Pos) /*!< Bit mask of SR5 field. */
+#define MWU_PERREGION_SUBSTATWA_SR5_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR5_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 4 : Subregion 4 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR4_Pos (4UL) /*!< Position of SR4 field. */
+#define MWU_PERREGION_SUBSTATWA_SR4_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR4_Pos) /*!< Bit mask of SR4 field. */
+#define MWU_PERREGION_SUBSTATWA_SR4_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR4_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 3 : Subregion 3 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR3_Pos (3UL) /*!< Position of SR3 field. */
+#define MWU_PERREGION_SUBSTATWA_SR3_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR3_Pos) /*!< Bit mask of SR3 field. */
+#define MWU_PERREGION_SUBSTATWA_SR3_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR3_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 2 : Subregion 2 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR2_Pos (2UL) /*!< Position of SR2 field. */
+#define MWU_PERREGION_SUBSTATWA_SR2_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR2_Pos) /*!< Bit mask of SR2 field. */
+#define MWU_PERREGION_SUBSTATWA_SR2_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR2_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 1 : Subregion 1 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR1_Pos (1UL) /*!< Position of SR1 field. */
+#define MWU_PERREGION_SUBSTATWA_SR1_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR1_Pos) /*!< Bit mask of SR1 field. */
+#define MWU_PERREGION_SUBSTATWA_SR1_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR1_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 0 : Subregion 0 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR0_Pos (0UL) /*!< Position of SR0 field. */
+#define MWU_PERREGION_SUBSTATWA_SR0_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR0_Pos) /*!< Bit mask of SR0 field. */
+#define MWU_PERREGION_SUBSTATWA_SR0_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR0_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Register: MWU_PERREGION_SUBSTATRA */
+/* Description: Description cluster[n]: Source of event/interrupt in region n, read access detected while corresponding subregion was enabled for watching */
+
+/* Bit 31 : Subregion 31 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR31_Pos (31UL) /*!< Position of SR31 field. */
+#define MWU_PERREGION_SUBSTATRA_SR31_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR31_Pos) /*!< Bit mask of SR31 field. */
+#define MWU_PERREGION_SUBSTATRA_SR31_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR31_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 30 : Subregion 30 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR30_Pos (30UL) /*!< Position of SR30 field. */
+#define MWU_PERREGION_SUBSTATRA_SR30_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR30_Pos) /*!< Bit mask of SR30 field. */
+#define MWU_PERREGION_SUBSTATRA_SR30_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR30_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 29 : Subregion 29 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR29_Pos (29UL) /*!< Position of SR29 field. */
+#define MWU_PERREGION_SUBSTATRA_SR29_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR29_Pos) /*!< Bit mask of SR29 field. */
+#define MWU_PERREGION_SUBSTATRA_SR29_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR29_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 28 : Subregion 28 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR28_Pos (28UL) /*!< Position of SR28 field. */
+#define MWU_PERREGION_SUBSTATRA_SR28_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR28_Pos) /*!< Bit mask of SR28 field. */
+#define MWU_PERREGION_SUBSTATRA_SR28_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR28_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 27 : Subregion 27 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR27_Pos (27UL) /*!< Position of SR27 field. */
+#define MWU_PERREGION_SUBSTATRA_SR27_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR27_Pos) /*!< Bit mask of SR27 field. */
+#define MWU_PERREGION_SUBSTATRA_SR27_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR27_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 26 : Subregion 26 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR26_Pos (26UL) /*!< Position of SR26 field. */
+#define MWU_PERREGION_SUBSTATRA_SR26_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR26_Pos) /*!< Bit mask of SR26 field. */
+#define MWU_PERREGION_SUBSTATRA_SR26_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR26_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 25 : Subregion 25 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR25_Pos (25UL) /*!< Position of SR25 field. */
+#define MWU_PERREGION_SUBSTATRA_SR25_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR25_Pos) /*!< Bit mask of SR25 field. */
+#define MWU_PERREGION_SUBSTATRA_SR25_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR25_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 24 : Subregion 24 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR24_Pos (24UL) /*!< Position of SR24 field. */
+#define MWU_PERREGION_SUBSTATRA_SR24_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR24_Pos) /*!< Bit mask of SR24 field. */
+#define MWU_PERREGION_SUBSTATRA_SR24_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR24_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 23 : Subregion 23 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR23_Pos (23UL) /*!< Position of SR23 field. */
+#define MWU_PERREGION_SUBSTATRA_SR23_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR23_Pos) /*!< Bit mask of SR23 field. */
+#define MWU_PERREGION_SUBSTATRA_SR23_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR23_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 22 : Subregion 22 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR22_Pos (22UL) /*!< Position of SR22 field. */
+#define MWU_PERREGION_SUBSTATRA_SR22_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR22_Pos) /*!< Bit mask of SR22 field. */
+#define MWU_PERREGION_SUBSTATRA_SR22_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR22_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 21 : Subregion 21 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR21_Pos (21UL) /*!< Position of SR21 field. */
+#define MWU_PERREGION_SUBSTATRA_SR21_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR21_Pos) /*!< Bit mask of SR21 field. */
+#define MWU_PERREGION_SUBSTATRA_SR21_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR21_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 20 : Subregion 20 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR20_Pos (20UL) /*!< Position of SR20 field. */
+#define MWU_PERREGION_SUBSTATRA_SR20_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR20_Pos) /*!< Bit mask of SR20 field. */
+#define MWU_PERREGION_SUBSTATRA_SR20_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR20_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 19 : Subregion 19 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR19_Pos (19UL) /*!< Position of SR19 field. */
+#define MWU_PERREGION_SUBSTATRA_SR19_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR19_Pos) /*!< Bit mask of SR19 field. */
+#define MWU_PERREGION_SUBSTATRA_SR19_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR19_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 18 : Subregion 18 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR18_Pos (18UL) /*!< Position of SR18 field. */
+#define MWU_PERREGION_SUBSTATRA_SR18_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR18_Pos) /*!< Bit mask of SR18 field. */
+#define MWU_PERREGION_SUBSTATRA_SR18_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR18_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 17 : Subregion 17 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR17_Pos (17UL) /*!< Position of SR17 field. */
+#define MWU_PERREGION_SUBSTATRA_SR17_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR17_Pos) /*!< Bit mask of SR17 field. */
+#define MWU_PERREGION_SUBSTATRA_SR17_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR17_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 16 : Subregion 16 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR16_Pos (16UL) /*!< Position of SR16 field. */
+#define MWU_PERREGION_SUBSTATRA_SR16_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR16_Pos) /*!< Bit mask of SR16 field. */
+#define MWU_PERREGION_SUBSTATRA_SR16_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR16_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 15 : Subregion 15 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR15_Pos (15UL) /*!< Position of SR15 field. */
+#define MWU_PERREGION_SUBSTATRA_SR15_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR15_Pos) /*!< Bit mask of SR15 field. */
+#define MWU_PERREGION_SUBSTATRA_SR15_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR15_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 14 : Subregion 14 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR14_Pos (14UL) /*!< Position of SR14 field. */
+#define MWU_PERREGION_SUBSTATRA_SR14_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR14_Pos) /*!< Bit mask of SR14 field. */
+#define MWU_PERREGION_SUBSTATRA_SR14_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR14_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 13 : Subregion 13 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR13_Pos (13UL) /*!< Position of SR13 field. */
+#define MWU_PERREGION_SUBSTATRA_SR13_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR13_Pos) /*!< Bit mask of SR13 field. */
+#define MWU_PERREGION_SUBSTATRA_SR13_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR13_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 12 : Subregion 12 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR12_Pos (12UL) /*!< Position of SR12 field. */
+#define MWU_PERREGION_SUBSTATRA_SR12_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR12_Pos) /*!< Bit mask of SR12 field. */
+#define MWU_PERREGION_SUBSTATRA_SR12_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR12_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 11 : Subregion 11 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR11_Pos (11UL) /*!< Position of SR11 field. */
+#define MWU_PERREGION_SUBSTATRA_SR11_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR11_Pos) /*!< Bit mask of SR11 field. */
+#define MWU_PERREGION_SUBSTATRA_SR11_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR11_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 10 : Subregion 10 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR10_Pos (10UL) /*!< Position of SR10 field. */
+#define MWU_PERREGION_SUBSTATRA_SR10_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR10_Pos) /*!< Bit mask of SR10 field. */
+#define MWU_PERREGION_SUBSTATRA_SR10_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR10_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 9 : Subregion 9 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR9_Pos (9UL) /*!< Position of SR9 field. */
+#define MWU_PERREGION_SUBSTATRA_SR9_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR9_Pos) /*!< Bit mask of SR9 field. */
+#define MWU_PERREGION_SUBSTATRA_SR9_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR9_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 8 : Subregion 8 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR8_Pos (8UL) /*!< Position of SR8 field. */
+#define MWU_PERREGION_SUBSTATRA_SR8_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR8_Pos) /*!< Bit mask of SR8 field. */
+#define MWU_PERREGION_SUBSTATRA_SR8_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR8_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 7 : Subregion 7 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR7_Pos (7UL) /*!< Position of SR7 field. */
+#define MWU_PERREGION_SUBSTATRA_SR7_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR7_Pos) /*!< Bit mask of SR7 field. */
+#define MWU_PERREGION_SUBSTATRA_SR7_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR7_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 6 : Subregion 6 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR6_Pos (6UL) /*!< Position of SR6 field. */
+#define MWU_PERREGION_SUBSTATRA_SR6_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR6_Pos) /*!< Bit mask of SR6 field. */
+#define MWU_PERREGION_SUBSTATRA_SR6_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR6_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 5 : Subregion 5 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR5_Pos (5UL) /*!< Position of SR5 field. */
+#define MWU_PERREGION_SUBSTATRA_SR5_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR5_Pos) /*!< Bit mask of SR5 field. */
+#define MWU_PERREGION_SUBSTATRA_SR5_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR5_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 4 : Subregion 4 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR4_Pos (4UL) /*!< Position of SR4 field. */
+#define MWU_PERREGION_SUBSTATRA_SR4_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR4_Pos) /*!< Bit mask of SR4 field. */
+#define MWU_PERREGION_SUBSTATRA_SR4_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR4_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 3 : Subregion 3 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR3_Pos (3UL) /*!< Position of SR3 field. */
+#define MWU_PERREGION_SUBSTATRA_SR3_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR3_Pos) /*!< Bit mask of SR3 field. */
+#define MWU_PERREGION_SUBSTATRA_SR3_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR3_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 2 : Subregion 2 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR2_Pos (2UL) /*!< Position of SR2 field. */
+#define MWU_PERREGION_SUBSTATRA_SR2_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR2_Pos) /*!< Bit mask of SR2 field. */
+#define MWU_PERREGION_SUBSTATRA_SR2_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR2_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 1 : Subregion 1 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR1_Pos (1UL) /*!< Position of SR1 field. */
+#define MWU_PERREGION_SUBSTATRA_SR1_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR1_Pos) /*!< Bit mask of SR1 field. */
+#define MWU_PERREGION_SUBSTATRA_SR1_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR1_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 0 : Subregion 0 in region n (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR0_Pos (0UL) /*!< Position of SR0 field. */
+#define MWU_PERREGION_SUBSTATRA_SR0_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR0_Pos) /*!< Bit mask of SR0 field. */
+#define MWU_PERREGION_SUBSTATRA_SR0_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR0_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Register: MWU_REGIONEN */
+/* Description: Enable/disable regions watch */
+
+/* Bit 27 : Enable/disable read access watch in PREGION[1] */
+#define MWU_REGIONEN_PRGN1RA_Pos (27UL) /*!< Position of PRGN1RA field. */
+#define MWU_REGIONEN_PRGN1RA_Msk (0x1UL << MWU_REGIONEN_PRGN1RA_Pos) /*!< Bit mask of PRGN1RA field. */
+#define MWU_REGIONEN_PRGN1RA_Disable (0UL) /*!< Disable read access watch in this PREGION */
+#define MWU_REGIONEN_PRGN1RA_Enable (1UL) /*!< Enable read access watch in this PREGION */
+
+/* Bit 26 : Enable/disable write access watch in PREGION[1] */
+#define MWU_REGIONEN_PRGN1WA_Pos (26UL) /*!< Position of PRGN1WA field. */
+#define MWU_REGIONEN_PRGN1WA_Msk (0x1UL << MWU_REGIONEN_PRGN1WA_Pos) /*!< Bit mask of PRGN1WA field. */
+#define MWU_REGIONEN_PRGN1WA_Disable (0UL) /*!< Disable write access watch in this PREGION */
+#define MWU_REGIONEN_PRGN1WA_Enable (1UL) /*!< Enable write access watch in this PREGION */
+
+/* Bit 25 : Enable/disable read access watch in PREGION[0] */
+#define MWU_REGIONEN_PRGN0RA_Pos (25UL) /*!< Position of PRGN0RA field. */
+#define MWU_REGIONEN_PRGN0RA_Msk (0x1UL << MWU_REGIONEN_PRGN0RA_Pos) /*!< Bit mask of PRGN0RA field. */
+#define MWU_REGIONEN_PRGN0RA_Disable (0UL) /*!< Disable read access watch in this PREGION */
+#define MWU_REGIONEN_PRGN0RA_Enable (1UL) /*!< Enable read access watch in this PREGION */
+
+/* Bit 24 : Enable/disable write access watch in PREGION[0] */
+#define MWU_REGIONEN_PRGN0WA_Pos (24UL) /*!< Position of PRGN0WA field. */
+#define MWU_REGIONEN_PRGN0WA_Msk (0x1UL << MWU_REGIONEN_PRGN0WA_Pos) /*!< Bit mask of PRGN0WA field. */
+#define MWU_REGIONEN_PRGN0WA_Disable (0UL) /*!< Disable write access watch in this PREGION */
+#define MWU_REGIONEN_PRGN0WA_Enable (1UL) /*!< Enable write access watch in this PREGION */
+
+/* Bit 7 : Enable/disable read access watch in region[3] */
+#define MWU_REGIONEN_RGN3RA_Pos (7UL) /*!< Position of RGN3RA field. */
+#define MWU_REGIONEN_RGN3RA_Msk (0x1UL << MWU_REGIONEN_RGN3RA_Pos) /*!< Bit mask of RGN3RA field. */
+#define MWU_REGIONEN_RGN3RA_Disable (0UL) /*!< Disable read access watch in this region */
+#define MWU_REGIONEN_RGN3RA_Enable (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 6 : Enable/disable write access watch in region[3] */
+#define MWU_REGIONEN_RGN3WA_Pos (6UL) /*!< Position of RGN3WA field. */
+#define MWU_REGIONEN_RGN3WA_Msk (0x1UL << MWU_REGIONEN_RGN3WA_Pos) /*!< Bit mask of RGN3WA field. */
+#define MWU_REGIONEN_RGN3WA_Disable (0UL) /*!< Disable write access watch in this region */
+#define MWU_REGIONEN_RGN3WA_Enable (1UL) /*!< Enable write access watch in this region */
+
+/* Bit 5 : Enable/disable read access watch in region[2] */
+#define MWU_REGIONEN_RGN2RA_Pos (5UL) /*!< Position of RGN2RA field. */
+#define MWU_REGIONEN_RGN2RA_Msk (0x1UL << MWU_REGIONEN_RGN2RA_Pos) /*!< Bit mask of RGN2RA field. */
+#define MWU_REGIONEN_RGN2RA_Disable (0UL) /*!< Disable read access watch in this region */
+#define MWU_REGIONEN_RGN2RA_Enable (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 4 : Enable/disable write access watch in region[2] */
+#define MWU_REGIONEN_RGN2WA_Pos (4UL) /*!< Position of RGN2WA field. */
+#define MWU_REGIONEN_RGN2WA_Msk (0x1UL << MWU_REGIONEN_RGN2WA_Pos) /*!< Bit mask of RGN2WA field. */
+#define MWU_REGIONEN_RGN2WA_Disable (0UL) /*!< Disable write access watch in this region */
+#define MWU_REGIONEN_RGN2WA_Enable (1UL) /*!< Enable write access watch in this region */
+
+/* Bit 3 : Enable/disable read access watch in region[1] */
+#define MWU_REGIONEN_RGN1RA_Pos (3UL) /*!< Position of RGN1RA field. */
+#define MWU_REGIONEN_RGN1RA_Msk (0x1UL << MWU_REGIONEN_RGN1RA_Pos) /*!< Bit mask of RGN1RA field. */
+#define MWU_REGIONEN_RGN1RA_Disable (0UL) /*!< Disable read access watch in this region */
+#define MWU_REGIONEN_RGN1RA_Enable (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 2 : Enable/disable write access watch in region[1] */
+#define MWU_REGIONEN_RGN1WA_Pos (2UL) /*!< Position of RGN1WA field. */
+#define MWU_REGIONEN_RGN1WA_Msk (0x1UL << MWU_REGIONEN_RGN1WA_Pos) /*!< Bit mask of RGN1WA field. */
+#define MWU_REGIONEN_RGN1WA_Disable (0UL) /*!< Disable write access watch in this region */
+#define MWU_REGIONEN_RGN1WA_Enable (1UL) /*!< Enable write access watch in this region */
+
+/* Bit 1 : Enable/disable read access watch in region[0] */
+#define MWU_REGIONEN_RGN0RA_Pos (1UL) /*!< Position of RGN0RA field. */
+#define MWU_REGIONEN_RGN0RA_Msk (0x1UL << MWU_REGIONEN_RGN0RA_Pos) /*!< Bit mask of RGN0RA field. */
+#define MWU_REGIONEN_RGN0RA_Disable (0UL) /*!< Disable read access watch in this region */
+#define MWU_REGIONEN_RGN0RA_Enable (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 0 : Enable/disable write access watch in region[0] */
+#define MWU_REGIONEN_RGN0WA_Pos (0UL) /*!< Position of RGN0WA field. */
+#define MWU_REGIONEN_RGN0WA_Msk (0x1UL << MWU_REGIONEN_RGN0WA_Pos) /*!< Bit mask of RGN0WA field. */
+#define MWU_REGIONEN_RGN0WA_Disable (0UL) /*!< Disable write access watch in this region */
+#define MWU_REGIONEN_RGN0WA_Enable (1UL) /*!< Enable write access watch in this region */
+
+/* Register: MWU_REGIONENSET */
+/* Description: Enable regions watch */
+
+/* Bit 27 : Enable read access watch in PREGION[1] */
+#define MWU_REGIONENSET_PRGN1RA_Pos (27UL) /*!< Position of PRGN1RA field. */
+#define MWU_REGIONENSET_PRGN1RA_Msk (0x1UL << MWU_REGIONENSET_PRGN1RA_Pos) /*!< Bit mask of PRGN1RA field. */
+#define MWU_REGIONENSET_PRGN1RA_Disabled (0UL) /*!< Read access watch in this PREGION is disabled */
+#define MWU_REGIONENSET_PRGN1RA_Enabled (1UL) /*!< Read access watch in this PREGION is enabled */
+#define MWU_REGIONENSET_PRGN1RA_Set (1UL) /*!< Enable read access watch in this PREGION */
+
+/* Bit 26 : Enable write access watch in PREGION[1] */
+#define MWU_REGIONENSET_PRGN1WA_Pos (26UL) /*!< Position of PRGN1WA field. */
+#define MWU_REGIONENSET_PRGN1WA_Msk (0x1UL << MWU_REGIONENSET_PRGN1WA_Pos) /*!< Bit mask of PRGN1WA field. */
+#define MWU_REGIONENSET_PRGN1WA_Disabled (0UL) /*!< Write access watch in this PREGION is disabled */
+#define MWU_REGIONENSET_PRGN1WA_Enabled (1UL) /*!< Write access watch in this PREGION is enabled */
+#define MWU_REGIONENSET_PRGN1WA_Set (1UL) /*!< Enable write access watch in this PREGION */
+
+/* Bit 25 : Enable read access watch in PREGION[0] */
+#define MWU_REGIONENSET_PRGN0RA_Pos (25UL) /*!< Position of PRGN0RA field. */
+#define MWU_REGIONENSET_PRGN0RA_Msk (0x1UL << MWU_REGIONENSET_PRGN0RA_Pos) /*!< Bit mask of PRGN0RA field. */
+#define MWU_REGIONENSET_PRGN0RA_Disabled (0UL) /*!< Read access watch in this PREGION is disabled */
+#define MWU_REGIONENSET_PRGN0RA_Enabled (1UL) /*!< Read access watch in this PREGION is enabled */
+#define MWU_REGIONENSET_PRGN0RA_Set (1UL) /*!< Enable read access watch in this PREGION */
+
+/* Bit 24 : Enable write access watch in PREGION[0] */
+#define MWU_REGIONENSET_PRGN0WA_Pos (24UL) /*!< Position of PRGN0WA field. */
+#define MWU_REGIONENSET_PRGN0WA_Msk (0x1UL << MWU_REGIONENSET_PRGN0WA_Pos) /*!< Bit mask of PRGN0WA field. */
+#define MWU_REGIONENSET_PRGN0WA_Disabled (0UL) /*!< Write access watch in this PREGION is disabled */
+#define MWU_REGIONENSET_PRGN0WA_Enabled (1UL) /*!< Write access watch in this PREGION is enabled */
+#define MWU_REGIONENSET_PRGN0WA_Set (1UL) /*!< Enable write access watch in this PREGION */
+
+/* Bit 7 : Enable read access watch in region[3] */
+#define MWU_REGIONENSET_RGN3RA_Pos (7UL) /*!< Position of RGN3RA field. */
+#define MWU_REGIONENSET_RGN3RA_Msk (0x1UL << MWU_REGIONENSET_RGN3RA_Pos) /*!< Bit mask of RGN3RA field. */
+#define MWU_REGIONENSET_RGN3RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN3RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN3RA_Set (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 6 : Enable write access watch in region[3] */
+#define MWU_REGIONENSET_RGN3WA_Pos (6UL) /*!< Position of RGN3WA field. */
+#define MWU_REGIONENSET_RGN3WA_Msk (0x1UL << MWU_REGIONENSET_RGN3WA_Pos) /*!< Bit mask of RGN3WA field. */
+#define MWU_REGIONENSET_RGN3WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN3WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN3WA_Set (1UL) /*!< Enable write access watch in this region */
+
+/* Bit 5 : Enable read access watch in region[2] */
+#define MWU_REGIONENSET_RGN2RA_Pos (5UL) /*!< Position of RGN2RA field. */
+#define MWU_REGIONENSET_RGN2RA_Msk (0x1UL << MWU_REGIONENSET_RGN2RA_Pos) /*!< Bit mask of RGN2RA field. */
+#define MWU_REGIONENSET_RGN2RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN2RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN2RA_Set (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 4 : Enable write access watch in region[2] */
+#define MWU_REGIONENSET_RGN2WA_Pos (4UL) /*!< Position of RGN2WA field. */
+#define MWU_REGIONENSET_RGN2WA_Msk (0x1UL << MWU_REGIONENSET_RGN2WA_Pos) /*!< Bit mask of RGN2WA field. */
+#define MWU_REGIONENSET_RGN2WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN2WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN2WA_Set (1UL) /*!< Enable write access watch in this region */
+
+/* Bit 3 : Enable read access watch in region[1] */
+#define MWU_REGIONENSET_RGN1RA_Pos (3UL) /*!< Position of RGN1RA field. */
+#define MWU_REGIONENSET_RGN1RA_Msk (0x1UL << MWU_REGIONENSET_RGN1RA_Pos) /*!< Bit mask of RGN1RA field. */
+#define MWU_REGIONENSET_RGN1RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN1RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN1RA_Set (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 2 : Enable write access watch in region[1] */
+#define MWU_REGIONENSET_RGN1WA_Pos (2UL) /*!< Position of RGN1WA field. */
+#define MWU_REGIONENSET_RGN1WA_Msk (0x1UL << MWU_REGIONENSET_RGN1WA_Pos) /*!< Bit mask of RGN1WA field. */
+#define MWU_REGIONENSET_RGN1WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN1WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN1WA_Set (1UL) /*!< Enable write access watch in this region */
+
+/* Bit 1 : Enable read access watch in region[0] */
+#define MWU_REGIONENSET_RGN0RA_Pos (1UL) /*!< Position of RGN0RA field. */
+#define MWU_REGIONENSET_RGN0RA_Msk (0x1UL << MWU_REGIONENSET_RGN0RA_Pos) /*!< Bit mask of RGN0RA field. */
+#define MWU_REGIONENSET_RGN0RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN0RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN0RA_Set (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 0 : Enable write access watch in region[0] */
+#define MWU_REGIONENSET_RGN0WA_Pos (0UL) /*!< Position of RGN0WA field. */
+#define MWU_REGIONENSET_RGN0WA_Msk (0x1UL << MWU_REGIONENSET_RGN0WA_Pos) /*!< Bit mask of RGN0WA field. */
+#define MWU_REGIONENSET_RGN0WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN0WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN0WA_Set (1UL) /*!< Enable write access watch in this region */
+
+/* Register: MWU_REGIONENCLR */
+/* Description: Disable regions watch */
+
+/* Bit 27 : Disable read access watch in PREGION[1] */
+#define MWU_REGIONENCLR_PRGN1RA_Pos (27UL) /*!< Position of PRGN1RA field. */
+#define MWU_REGIONENCLR_PRGN1RA_Msk (0x1UL << MWU_REGIONENCLR_PRGN1RA_Pos) /*!< Bit mask of PRGN1RA field. */
+#define MWU_REGIONENCLR_PRGN1RA_Disabled (0UL) /*!< Read access watch in this PREGION is disabled */
+#define MWU_REGIONENCLR_PRGN1RA_Enabled (1UL) /*!< Read access watch in this PREGION is enabled */
+#define MWU_REGIONENCLR_PRGN1RA_Clear (1UL) /*!< Disable read access watch in this PREGION */
+
+/* Bit 26 : Disable write access watch in PREGION[1] */
+#define MWU_REGIONENCLR_PRGN1WA_Pos (26UL) /*!< Position of PRGN1WA field. */
+#define MWU_REGIONENCLR_PRGN1WA_Msk (0x1UL << MWU_REGIONENCLR_PRGN1WA_Pos) /*!< Bit mask of PRGN1WA field. */
+#define MWU_REGIONENCLR_PRGN1WA_Disabled (0UL) /*!< Write access watch in this PREGION is disabled */
+#define MWU_REGIONENCLR_PRGN1WA_Enabled (1UL) /*!< Write access watch in this PREGION is enabled */
+#define MWU_REGIONENCLR_PRGN1WA_Clear (1UL) /*!< Disable write access watch in this PREGION */
+
+/* Bit 25 : Disable read access watch in PREGION[0] */
+#define MWU_REGIONENCLR_PRGN0RA_Pos (25UL) /*!< Position of PRGN0RA field. */
+#define MWU_REGIONENCLR_PRGN0RA_Msk (0x1UL << MWU_REGIONENCLR_PRGN0RA_Pos) /*!< Bit mask of PRGN0RA field. */
+#define MWU_REGIONENCLR_PRGN0RA_Disabled (0UL) /*!< Read access watch in this PREGION is disabled */
+#define MWU_REGIONENCLR_PRGN0RA_Enabled (1UL) /*!< Read access watch in this PREGION is enabled */
+#define MWU_REGIONENCLR_PRGN0RA_Clear (1UL) /*!< Disable read access watch in this PREGION */
+
+/* Bit 24 : Disable write access watch in PREGION[0] */
+#define MWU_REGIONENCLR_PRGN0WA_Pos (24UL) /*!< Position of PRGN0WA field. */
+#define MWU_REGIONENCLR_PRGN0WA_Msk (0x1UL << MWU_REGIONENCLR_PRGN0WA_Pos) /*!< Bit mask of PRGN0WA field. */
+#define MWU_REGIONENCLR_PRGN0WA_Disabled (0UL) /*!< Write access watch in this PREGION is disabled */
+#define MWU_REGIONENCLR_PRGN0WA_Enabled (1UL) /*!< Write access watch in this PREGION is enabled */
+#define MWU_REGIONENCLR_PRGN0WA_Clear (1UL) /*!< Disable write access watch in this PREGION */
+
+/* Bit 7 : Disable read access watch in region[3] */
+#define MWU_REGIONENCLR_RGN3RA_Pos (7UL) /*!< Position of RGN3RA field. */
+#define MWU_REGIONENCLR_RGN3RA_Msk (0x1UL << MWU_REGIONENCLR_RGN3RA_Pos) /*!< Bit mask of RGN3RA field. */
+#define MWU_REGIONENCLR_RGN3RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN3RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN3RA_Clear (1UL) /*!< Disable read access watch in this region */
+
+/* Bit 6 : Disable write access watch in region[3] */
+#define MWU_REGIONENCLR_RGN3WA_Pos (6UL) /*!< Position of RGN3WA field. */
+#define MWU_REGIONENCLR_RGN3WA_Msk (0x1UL << MWU_REGIONENCLR_RGN3WA_Pos) /*!< Bit mask of RGN3WA field. */
+#define MWU_REGIONENCLR_RGN3WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN3WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN3WA_Clear (1UL) /*!< Disable write access watch in this region */
+
+/* Bit 5 : Disable read access watch in region[2] */
+#define MWU_REGIONENCLR_RGN2RA_Pos (5UL) /*!< Position of RGN2RA field. */
+#define MWU_REGIONENCLR_RGN2RA_Msk (0x1UL << MWU_REGIONENCLR_RGN2RA_Pos) /*!< Bit mask of RGN2RA field. */
+#define MWU_REGIONENCLR_RGN2RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN2RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN2RA_Clear (1UL) /*!< Disable read access watch in this region */
+
+/* Bit 4 : Disable write access watch in region[2] */
+#define MWU_REGIONENCLR_RGN2WA_Pos (4UL) /*!< Position of RGN2WA field. */
+#define MWU_REGIONENCLR_RGN2WA_Msk (0x1UL << MWU_REGIONENCLR_RGN2WA_Pos) /*!< Bit mask of RGN2WA field. */
+#define MWU_REGIONENCLR_RGN2WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN2WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN2WA_Clear (1UL) /*!< Disable write access watch in this region */
+
+/* Bit 3 : Disable read access watch in region[1] */
+#define MWU_REGIONENCLR_RGN1RA_Pos (3UL) /*!< Position of RGN1RA field. */
+#define MWU_REGIONENCLR_RGN1RA_Msk (0x1UL << MWU_REGIONENCLR_RGN1RA_Pos) /*!< Bit mask of RGN1RA field. */
+#define MWU_REGIONENCLR_RGN1RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN1RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN1RA_Clear (1UL) /*!< Disable read access watch in this region */
+
+/* Bit 2 : Disable write access watch in region[1] */
+#define MWU_REGIONENCLR_RGN1WA_Pos (2UL) /*!< Position of RGN1WA field. */
+#define MWU_REGIONENCLR_RGN1WA_Msk (0x1UL << MWU_REGIONENCLR_RGN1WA_Pos) /*!< Bit mask of RGN1WA field. */
+#define MWU_REGIONENCLR_RGN1WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN1WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN1WA_Clear (1UL) /*!< Disable write access watch in this region */
+
+/* Bit 1 : Disable read access watch in region[0] */
+#define MWU_REGIONENCLR_RGN0RA_Pos (1UL) /*!< Position of RGN0RA field. */
+#define MWU_REGIONENCLR_RGN0RA_Msk (0x1UL << MWU_REGIONENCLR_RGN0RA_Pos) /*!< Bit mask of RGN0RA field. */
+#define MWU_REGIONENCLR_RGN0RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN0RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN0RA_Clear (1UL) /*!< Disable read access watch in this region */
+
+/* Bit 0 : Disable write access watch in region[0] */
+#define MWU_REGIONENCLR_RGN0WA_Pos (0UL) /*!< Position of RGN0WA field. */
+#define MWU_REGIONENCLR_RGN0WA_Msk (0x1UL << MWU_REGIONENCLR_RGN0WA_Pos) /*!< Bit mask of RGN0WA field. */
+#define MWU_REGIONENCLR_RGN0WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN0WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN0WA_Clear (1UL) /*!< Disable write access watch in this region */
+
+/* Register: MWU_REGION_START */
+/* Description: Description cluster[n]: Start address for region n */
+
+/* Bits 31..0 : Start address for region */
+#define MWU_REGION_START_START_Pos (0UL) /*!< Position of START field. */
+#define MWU_REGION_START_START_Msk (0xFFFFFFFFUL << MWU_REGION_START_START_Pos) /*!< Bit mask of START field. */
+
+/* Register: MWU_REGION_END */
+/* Description: Description cluster[n]: End address of region n */
+
+/* Bits 31..0 : End address of region. */
+#define MWU_REGION_END_END_Pos (0UL) /*!< Position of END field. */
+#define MWU_REGION_END_END_Msk (0xFFFFFFFFUL << MWU_REGION_END_END_Pos) /*!< Bit mask of END field. */
+
+/* Register: MWU_PREGION_START */
+/* Description: Description cluster[n]: Reserved for future use */
+
+/* Bits 31..0 : Reserved for future use */
+#define MWU_PREGION_START_START_Pos (0UL) /*!< Position of START field. */
+#define MWU_PREGION_START_START_Msk (0xFFFFFFFFUL << MWU_PREGION_START_START_Pos) /*!< Bit mask of START field. */
+
+/* Register: MWU_PREGION_END */
+/* Description: Description cluster[n]: Reserved for future use */
+
+/* Bits 31..0 : Reserved for future use */
+#define MWU_PREGION_END_END_Pos (0UL) /*!< Position of END field. */
+#define MWU_PREGION_END_END_Msk (0xFFFFFFFFUL << MWU_PREGION_END_END_Pos) /*!< Bit mask of END field. */
+
+/* Register: MWU_PREGION_SUBS */
+/* Description: Description cluster[n]: Subregions of region n */
+
+/* Bit 31 : Include or exclude subregion 31 in region */
+#define MWU_PREGION_SUBS_SR31_Pos (31UL) /*!< Position of SR31 field. */
+#define MWU_PREGION_SUBS_SR31_Msk (0x1UL << MWU_PREGION_SUBS_SR31_Pos) /*!< Bit mask of SR31 field. */
+#define MWU_PREGION_SUBS_SR31_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR31_Include (1UL) /*!< Include */
+
+/* Bit 30 : Include or exclude subregion 30 in region */
+#define MWU_PREGION_SUBS_SR30_Pos (30UL) /*!< Position of SR30 field. */
+#define MWU_PREGION_SUBS_SR30_Msk (0x1UL << MWU_PREGION_SUBS_SR30_Pos) /*!< Bit mask of SR30 field. */
+#define MWU_PREGION_SUBS_SR30_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR30_Include (1UL) /*!< Include */
+
+/* Bit 29 : Include or exclude subregion 29 in region */
+#define MWU_PREGION_SUBS_SR29_Pos (29UL) /*!< Position of SR29 field. */
+#define MWU_PREGION_SUBS_SR29_Msk (0x1UL << MWU_PREGION_SUBS_SR29_Pos) /*!< Bit mask of SR29 field. */
+#define MWU_PREGION_SUBS_SR29_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR29_Include (1UL) /*!< Include */
+
+/* Bit 28 : Include or exclude subregion 28 in region */
+#define MWU_PREGION_SUBS_SR28_Pos (28UL) /*!< Position of SR28 field. */
+#define MWU_PREGION_SUBS_SR28_Msk (0x1UL << MWU_PREGION_SUBS_SR28_Pos) /*!< Bit mask of SR28 field. */
+#define MWU_PREGION_SUBS_SR28_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR28_Include (1UL) /*!< Include */
+
+/* Bit 27 : Include or exclude subregion 27 in region */
+#define MWU_PREGION_SUBS_SR27_Pos (27UL) /*!< Position of SR27 field. */
+#define MWU_PREGION_SUBS_SR27_Msk (0x1UL << MWU_PREGION_SUBS_SR27_Pos) /*!< Bit mask of SR27 field. */
+#define MWU_PREGION_SUBS_SR27_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR27_Include (1UL) /*!< Include */
+
+/* Bit 26 : Include or exclude subregion 26 in region */
+#define MWU_PREGION_SUBS_SR26_Pos (26UL) /*!< Position of SR26 field. */
+#define MWU_PREGION_SUBS_SR26_Msk (0x1UL << MWU_PREGION_SUBS_SR26_Pos) /*!< Bit mask of SR26 field. */
+#define MWU_PREGION_SUBS_SR26_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR26_Include (1UL) /*!< Include */
+
+/* Bit 25 : Include or exclude subregion 25 in region */
+#define MWU_PREGION_SUBS_SR25_Pos (25UL) /*!< Position of SR25 field. */
+#define MWU_PREGION_SUBS_SR25_Msk (0x1UL << MWU_PREGION_SUBS_SR25_Pos) /*!< Bit mask of SR25 field. */
+#define MWU_PREGION_SUBS_SR25_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR25_Include (1UL) /*!< Include */
+
+/* Bit 24 : Include or exclude subregion 24 in region */
+#define MWU_PREGION_SUBS_SR24_Pos (24UL) /*!< Position of SR24 field. */
+#define MWU_PREGION_SUBS_SR24_Msk (0x1UL << MWU_PREGION_SUBS_SR24_Pos) /*!< Bit mask of SR24 field. */
+#define MWU_PREGION_SUBS_SR24_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR24_Include (1UL) /*!< Include */
+
+/* Bit 23 : Include or exclude subregion 23 in region */
+#define MWU_PREGION_SUBS_SR23_Pos (23UL) /*!< Position of SR23 field. */
+#define MWU_PREGION_SUBS_SR23_Msk (0x1UL << MWU_PREGION_SUBS_SR23_Pos) /*!< Bit mask of SR23 field. */
+#define MWU_PREGION_SUBS_SR23_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR23_Include (1UL) /*!< Include */
+
+/* Bit 22 : Include or exclude subregion 22 in region */
+#define MWU_PREGION_SUBS_SR22_Pos (22UL) /*!< Position of SR22 field. */
+#define MWU_PREGION_SUBS_SR22_Msk (0x1UL << MWU_PREGION_SUBS_SR22_Pos) /*!< Bit mask of SR22 field. */
+#define MWU_PREGION_SUBS_SR22_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR22_Include (1UL) /*!< Include */
+
+/* Bit 21 : Include or exclude subregion 21 in region */
+#define MWU_PREGION_SUBS_SR21_Pos (21UL) /*!< Position of SR21 field. */
+#define MWU_PREGION_SUBS_SR21_Msk (0x1UL << MWU_PREGION_SUBS_SR21_Pos) /*!< Bit mask of SR21 field. */
+#define MWU_PREGION_SUBS_SR21_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR21_Include (1UL) /*!< Include */
+
+/* Bit 20 : Include or exclude subregion 20 in region */
+#define MWU_PREGION_SUBS_SR20_Pos (20UL) /*!< Position of SR20 field. */
+#define MWU_PREGION_SUBS_SR20_Msk (0x1UL << MWU_PREGION_SUBS_SR20_Pos) /*!< Bit mask of SR20 field. */
+#define MWU_PREGION_SUBS_SR20_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR20_Include (1UL) /*!< Include */
+
+/* Bit 19 : Include or exclude subregion 19 in region */
+#define MWU_PREGION_SUBS_SR19_Pos (19UL) /*!< Position of SR19 field. */
+#define MWU_PREGION_SUBS_SR19_Msk (0x1UL << MWU_PREGION_SUBS_SR19_Pos) /*!< Bit mask of SR19 field. */
+#define MWU_PREGION_SUBS_SR19_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR19_Include (1UL) /*!< Include */
+
+/* Bit 18 : Include or exclude subregion 18 in region */
+#define MWU_PREGION_SUBS_SR18_Pos (18UL) /*!< Position of SR18 field. */
+#define MWU_PREGION_SUBS_SR18_Msk (0x1UL << MWU_PREGION_SUBS_SR18_Pos) /*!< Bit mask of SR18 field. */
+#define MWU_PREGION_SUBS_SR18_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR18_Include (1UL) /*!< Include */
+
+/* Bit 17 : Include or exclude subregion 17 in region */
+#define MWU_PREGION_SUBS_SR17_Pos (17UL) /*!< Position of SR17 field. */
+#define MWU_PREGION_SUBS_SR17_Msk (0x1UL << MWU_PREGION_SUBS_SR17_Pos) /*!< Bit mask of SR17 field. */
+#define MWU_PREGION_SUBS_SR17_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR17_Include (1UL) /*!< Include */
+
+/* Bit 16 : Include or exclude subregion 16 in region */
+#define MWU_PREGION_SUBS_SR16_Pos (16UL) /*!< Position of SR16 field. */
+#define MWU_PREGION_SUBS_SR16_Msk (0x1UL << MWU_PREGION_SUBS_SR16_Pos) /*!< Bit mask of SR16 field. */
+#define MWU_PREGION_SUBS_SR16_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR16_Include (1UL) /*!< Include */
+
+/* Bit 15 : Include or exclude subregion 15 in region */
+#define MWU_PREGION_SUBS_SR15_Pos (15UL) /*!< Position of SR15 field. */
+#define MWU_PREGION_SUBS_SR15_Msk (0x1UL << MWU_PREGION_SUBS_SR15_Pos) /*!< Bit mask of SR15 field. */
+#define MWU_PREGION_SUBS_SR15_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR15_Include (1UL) /*!< Include */
+
+/* Bit 14 : Include or exclude subregion 14 in region */
+#define MWU_PREGION_SUBS_SR14_Pos (14UL) /*!< Position of SR14 field. */
+#define MWU_PREGION_SUBS_SR14_Msk (0x1UL << MWU_PREGION_SUBS_SR14_Pos) /*!< Bit mask of SR14 field. */
+#define MWU_PREGION_SUBS_SR14_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR14_Include (1UL) /*!< Include */
+
+/* Bit 13 : Include or exclude subregion 13 in region */
+#define MWU_PREGION_SUBS_SR13_Pos (13UL) /*!< Position of SR13 field. */
+#define MWU_PREGION_SUBS_SR13_Msk (0x1UL << MWU_PREGION_SUBS_SR13_Pos) /*!< Bit mask of SR13 field. */
+#define MWU_PREGION_SUBS_SR13_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR13_Include (1UL) /*!< Include */
+
+/* Bit 12 : Include or exclude subregion 12 in region */
+#define MWU_PREGION_SUBS_SR12_Pos (12UL) /*!< Position of SR12 field. */
+#define MWU_PREGION_SUBS_SR12_Msk (0x1UL << MWU_PREGION_SUBS_SR12_Pos) /*!< Bit mask of SR12 field. */
+#define MWU_PREGION_SUBS_SR12_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR12_Include (1UL) /*!< Include */
+
+/* Bit 11 : Include or exclude subregion 11 in region */
+#define MWU_PREGION_SUBS_SR11_Pos (11UL) /*!< Position of SR11 field. */
+#define MWU_PREGION_SUBS_SR11_Msk (0x1UL << MWU_PREGION_SUBS_SR11_Pos) /*!< Bit mask of SR11 field. */
+#define MWU_PREGION_SUBS_SR11_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR11_Include (1UL) /*!< Include */
+
+/* Bit 10 : Include or exclude subregion 10 in region */
+#define MWU_PREGION_SUBS_SR10_Pos (10UL) /*!< Position of SR10 field. */
+#define MWU_PREGION_SUBS_SR10_Msk (0x1UL << MWU_PREGION_SUBS_SR10_Pos) /*!< Bit mask of SR10 field. */
+#define MWU_PREGION_SUBS_SR10_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR10_Include (1UL) /*!< Include */
+
+/* Bit 9 : Include or exclude subregion 9 in region */
+#define MWU_PREGION_SUBS_SR9_Pos (9UL) /*!< Position of SR9 field. */
+#define MWU_PREGION_SUBS_SR9_Msk (0x1UL << MWU_PREGION_SUBS_SR9_Pos) /*!< Bit mask of SR9 field. */
+#define MWU_PREGION_SUBS_SR9_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR9_Include (1UL) /*!< Include */
+
+/* Bit 8 : Include or exclude subregion 8 in region */
+#define MWU_PREGION_SUBS_SR8_Pos (8UL) /*!< Position of SR8 field. */
+#define MWU_PREGION_SUBS_SR8_Msk (0x1UL << MWU_PREGION_SUBS_SR8_Pos) /*!< Bit mask of SR8 field. */
+#define MWU_PREGION_SUBS_SR8_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR8_Include (1UL) /*!< Include */
+
+/* Bit 7 : Include or exclude subregion 7 in region */
+#define MWU_PREGION_SUBS_SR7_Pos (7UL) /*!< Position of SR7 field. */
+#define MWU_PREGION_SUBS_SR7_Msk (0x1UL << MWU_PREGION_SUBS_SR7_Pos) /*!< Bit mask of SR7 field. */
+#define MWU_PREGION_SUBS_SR7_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR7_Include (1UL) /*!< Include */
+
+/* Bit 6 : Include or exclude subregion 6 in region */
+#define MWU_PREGION_SUBS_SR6_Pos (6UL) /*!< Position of SR6 field. */
+#define MWU_PREGION_SUBS_SR6_Msk (0x1UL << MWU_PREGION_SUBS_SR6_Pos) /*!< Bit mask of SR6 field. */
+#define MWU_PREGION_SUBS_SR6_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR6_Include (1UL) /*!< Include */
+
+/* Bit 5 : Include or exclude subregion 5 in region */
+#define MWU_PREGION_SUBS_SR5_Pos (5UL) /*!< Position of SR5 field. */
+#define MWU_PREGION_SUBS_SR5_Msk (0x1UL << MWU_PREGION_SUBS_SR5_Pos) /*!< Bit mask of SR5 field. */
+#define MWU_PREGION_SUBS_SR5_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR5_Include (1UL) /*!< Include */
+
+/* Bit 4 : Include or exclude subregion 4 in region */
+#define MWU_PREGION_SUBS_SR4_Pos (4UL) /*!< Position of SR4 field. */
+#define MWU_PREGION_SUBS_SR4_Msk (0x1UL << MWU_PREGION_SUBS_SR4_Pos) /*!< Bit mask of SR4 field. */
+#define MWU_PREGION_SUBS_SR4_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR4_Include (1UL) /*!< Include */
+
+/* Bit 3 : Include or exclude subregion 3 in region */
+#define MWU_PREGION_SUBS_SR3_Pos (3UL) /*!< Position of SR3 field. */
+#define MWU_PREGION_SUBS_SR3_Msk (0x1UL << MWU_PREGION_SUBS_SR3_Pos) /*!< Bit mask of SR3 field. */
+#define MWU_PREGION_SUBS_SR3_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR3_Include (1UL) /*!< Include */
+
+/* Bit 2 : Include or exclude subregion 2 in region */
+#define MWU_PREGION_SUBS_SR2_Pos (2UL) /*!< Position of SR2 field. */
+#define MWU_PREGION_SUBS_SR2_Msk (0x1UL << MWU_PREGION_SUBS_SR2_Pos) /*!< Bit mask of SR2 field. */
+#define MWU_PREGION_SUBS_SR2_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR2_Include (1UL) /*!< Include */
+
+/* Bit 1 : Include or exclude subregion 1 in region */
+#define MWU_PREGION_SUBS_SR1_Pos (1UL) /*!< Position of SR1 field. */
+#define MWU_PREGION_SUBS_SR1_Msk (0x1UL << MWU_PREGION_SUBS_SR1_Pos) /*!< Bit mask of SR1 field. */
+#define MWU_PREGION_SUBS_SR1_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR1_Include (1UL) /*!< Include */
+
+/* Bit 0 : Include or exclude subregion 0 in region */
+#define MWU_PREGION_SUBS_SR0_Pos (0UL) /*!< Position of SR0 field. */
+#define MWU_PREGION_SUBS_SR0_Msk (0x1UL << MWU_PREGION_SUBS_SR0_Pos) /*!< Bit mask of SR0 field. */
+#define MWU_PREGION_SUBS_SR0_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR0_Include (1UL) /*!< Include */
+
+
+/* Peripheral: NFCT */
+/* Description: NFC-A compatible radio */
+
+/* Register: NFCT_TASKS_ACTIVATE */
+/* Description: Activate NFCT peripheral for incoming and outgoing frames, change state to activated */
+
+/* Bit 0 : */
+#define NFCT_TASKS_ACTIVATE_TASKS_ACTIVATE_Pos (0UL) /*!< Position of TASKS_ACTIVATE field. */
+#define NFCT_TASKS_ACTIVATE_TASKS_ACTIVATE_Msk (0x1UL << NFCT_TASKS_ACTIVATE_TASKS_ACTIVATE_Pos) /*!< Bit mask of TASKS_ACTIVATE field. */
+
+/* Register: NFCT_TASKS_DISABLE */
+/* Description: Disable NFCT peripheral */
+
+/* Bit 0 : */
+#define NFCT_TASKS_DISABLE_TASKS_DISABLE_Pos (0UL) /*!< Position of TASKS_DISABLE field. */
+#define NFCT_TASKS_DISABLE_TASKS_DISABLE_Msk (0x1UL << NFCT_TASKS_DISABLE_TASKS_DISABLE_Pos) /*!< Bit mask of TASKS_DISABLE field. */
+
+/* Register: NFCT_TASKS_SENSE */
+/* Description: Enable NFC sense field mode, change state to sense mode */
+
+/* Bit 0 : */
+#define NFCT_TASKS_SENSE_TASKS_SENSE_Pos (0UL) /*!< Position of TASKS_SENSE field. */
+#define NFCT_TASKS_SENSE_TASKS_SENSE_Msk (0x1UL << NFCT_TASKS_SENSE_TASKS_SENSE_Pos) /*!< Bit mask of TASKS_SENSE field. */
+
+/* Register: NFCT_TASKS_STARTTX */
+/* Description: Start transmission of an outgoing frame, change state to transmit */
+
+/* Bit 0 : */
+#define NFCT_TASKS_STARTTX_TASKS_STARTTX_Pos (0UL) /*!< Position of TASKS_STARTTX field. */
+#define NFCT_TASKS_STARTTX_TASKS_STARTTX_Msk (0x1UL << NFCT_TASKS_STARTTX_TASKS_STARTTX_Pos) /*!< Bit mask of TASKS_STARTTX field. */
+
+/* Register: NFCT_TASKS_ENABLERXDATA */
+/* Description: Initializes the EasyDMA for receive. */
+
+/* Bit 0 : */
+#define NFCT_TASKS_ENABLERXDATA_TASKS_ENABLERXDATA_Pos (0UL) /*!< Position of TASKS_ENABLERXDATA field. */
+#define NFCT_TASKS_ENABLERXDATA_TASKS_ENABLERXDATA_Msk (0x1UL << NFCT_TASKS_ENABLERXDATA_TASKS_ENABLERXDATA_Pos) /*!< Bit mask of TASKS_ENABLERXDATA field. */
+
+/* Register: NFCT_TASKS_GOIDLE */
+/* Description: Force state machine to IDLE state */
+
+/* Bit 0 : */
+#define NFCT_TASKS_GOIDLE_TASKS_GOIDLE_Pos (0UL) /*!< Position of TASKS_GOIDLE field. */
+#define NFCT_TASKS_GOIDLE_TASKS_GOIDLE_Msk (0x1UL << NFCT_TASKS_GOIDLE_TASKS_GOIDLE_Pos) /*!< Bit mask of TASKS_GOIDLE field. */
+
+/* Register: NFCT_TASKS_GOSLEEP */
+/* Description: Force state machine to SLEEP_A state */
+
+/* Bit 0 : */
+#define NFCT_TASKS_GOSLEEP_TASKS_GOSLEEP_Pos (0UL) /*!< Position of TASKS_GOSLEEP field. */
+#define NFCT_TASKS_GOSLEEP_TASKS_GOSLEEP_Msk (0x1UL << NFCT_TASKS_GOSLEEP_TASKS_GOSLEEP_Pos) /*!< Bit mask of TASKS_GOSLEEP field. */
+
+/* Register: NFCT_EVENTS_READY */
+/* Description: The NFCT peripheral is ready to receive and send frames */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_READY_EVENTS_READY_Pos (0UL) /*!< Position of EVENTS_READY field. */
+#define NFCT_EVENTS_READY_EVENTS_READY_Msk (0x1UL << NFCT_EVENTS_READY_EVENTS_READY_Pos) /*!< Bit mask of EVENTS_READY field. */
+
+/* Register: NFCT_EVENTS_FIELDDETECTED */
+/* Description: Remote NFC field detected */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_FIELDDETECTED_EVENTS_FIELDDETECTED_Pos (0UL) /*!< Position of EVENTS_FIELDDETECTED field. */
+#define NFCT_EVENTS_FIELDDETECTED_EVENTS_FIELDDETECTED_Msk (0x1UL << NFCT_EVENTS_FIELDDETECTED_EVENTS_FIELDDETECTED_Pos) /*!< Bit mask of EVENTS_FIELDDETECTED field. */
+
+/* Register: NFCT_EVENTS_FIELDLOST */
+/* Description: Remote NFC field lost */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_FIELDLOST_EVENTS_FIELDLOST_Pos (0UL) /*!< Position of EVENTS_FIELDLOST field. */
+#define NFCT_EVENTS_FIELDLOST_EVENTS_FIELDLOST_Msk (0x1UL << NFCT_EVENTS_FIELDLOST_EVENTS_FIELDLOST_Pos) /*!< Bit mask of EVENTS_FIELDLOST field. */
+
+/* Register: NFCT_EVENTS_TXFRAMESTART */
+/* Description: Marks the start of the first symbol of a transmitted frame */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_TXFRAMESTART_EVENTS_TXFRAMESTART_Pos (0UL) /*!< Position of EVENTS_TXFRAMESTART field. */
+#define NFCT_EVENTS_TXFRAMESTART_EVENTS_TXFRAMESTART_Msk (0x1UL << NFCT_EVENTS_TXFRAMESTART_EVENTS_TXFRAMESTART_Pos) /*!< Bit mask of EVENTS_TXFRAMESTART field. */
+
+/* Register: NFCT_EVENTS_TXFRAMEEND */
+/* Description: Marks the end of the last transmitted on-air symbol of a frame */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_TXFRAMEEND_EVENTS_TXFRAMEEND_Pos (0UL) /*!< Position of EVENTS_TXFRAMEEND field. */
+#define NFCT_EVENTS_TXFRAMEEND_EVENTS_TXFRAMEEND_Msk (0x1UL << NFCT_EVENTS_TXFRAMEEND_EVENTS_TXFRAMEEND_Pos) /*!< Bit mask of EVENTS_TXFRAMEEND field. */
+
+/* Register: NFCT_EVENTS_RXFRAMESTART */
+/* Description: Marks the end of the first symbol of a received frame */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_RXFRAMESTART_EVENTS_RXFRAMESTART_Pos (0UL) /*!< Position of EVENTS_RXFRAMESTART field. */
+#define NFCT_EVENTS_RXFRAMESTART_EVENTS_RXFRAMESTART_Msk (0x1UL << NFCT_EVENTS_RXFRAMESTART_EVENTS_RXFRAMESTART_Pos) /*!< Bit mask of EVENTS_RXFRAMESTART field. */
+
+/* Register: NFCT_EVENTS_RXFRAMEEND */
+/* Description: Received data has been checked (CRC, parity) and transferred to RAM, and EasyDMA has ended accessing the RX buffer */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_RXFRAMEEND_EVENTS_RXFRAMEEND_Pos (0UL) /*!< Position of EVENTS_RXFRAMEEND field. */
+#define NFCT_EVENTS_RXFRAMEEND_EVENTS_RXFRAMEEND_Msk (0x1UL << NFCT_EVENTS_RXFRAMEEND_EVENTS_RXFRAMEEND_Pos) /*!< Bit mask of EVENTS_RXFRAMEEND field. */
+
+/* Register: NFCT_EVENTS_ERROR */
+/* Description: NFC error reported. The ERRORSTATUS register contains details on the source of the error. */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_ERROR_EVENTS_ERROR_Pos (0UL) /*!< Position of EVENTS_ERROR field. */
+#define NFCT_EVENTS_ERROR_EVENTS_ERROR_Msk (0x1UL << NFCT_EVENTS_ERROR_EVENTS_ERROR_Pos) /*!< Bit mask of EVENTS_ERROR field. */
+
+/* Register: NFCT_EVENTS_RXERROR */
+/* Description: NFC RX frame error reported. The FRAMESTATUS.RX register contains details on the source of the error. */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_RXERROR_EVENTS_RXERROR_Pos (0UL) /*!< Position of EVENTS_RXERROR field. */
+#define NFCT_EVENTS_RXERROR_EVENTS_RXERROR_Msk (0x1UL << NFCT_EVENTS_RXERROR_EVENTS_RXERROR_Pos) /*!< Bit mask of EVENTS_RXERROR field. */
+
+/* Register: NFCT_EVENTS_ENDRX */
+/* Description: RX buffer (as defined by PACKETPTR and MAXLEN) in Data RAM full. */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_ENDRX_EVENTS_ENDRX_Pos (0UL) /*!< Position of EVENTS_ENDRX field. */
+#define NFCT_EVENTS_ENDRX_EVENTS_ENDRX_Msk (0x1UL << NFCT_EVENTS_ENDRX_EVENTS_ENDRX_Pos) /*!< Bit mask of EVENTS_ENDRX field. */
+
+/* Register: NFCT_EVENTS_ENDTX */
+/* Description: Transmission of data in RAM has ended, and EasyDMA has ended accessing the TX buffer */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_ENDTX_EVENTS_ENDTX_Pos (0UL) /*!< Position of EVENTS_ENDTX field. */
+#define NFCT_EVENTS_ENDTX_EVENTS_ENDTX_Msk (0x1UL << NFCT_EVENTS_ENDTX_EVENTS_ENDTX_Pos) /*!< Bit mask of EVENTS_ENDTX field. */
+
+/* Register: NFCT_EVENTS_AUTOCOLRESSTARTED */
+/* Description: Auto collision resolution process has started */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_AUTOCOLRESSTARTED_EVENTS_AUTOCOLRESSTARTED_Pos (0UL) /*!< Position of EVENTS_AUTOCOLRESSTARTED field. */
+#define NFCT_EVENTS_AUTOCOLRESSTARTED_EVENTS_AUTOCOLRESSTARTED_Msk (0x1UL << NFCT_EVENTS_AUTOCOLRESSTARTED_EVENTS_AUTOCOLRESSTARTED_Pos) /*!< Bit mask of EVENTS_AUTOCOLRESSTARTED field. */
+
+/* Register: NFCT_EVENTS_COLLISION */
+/* Description: NFC auto collision resolution error reported. */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_COLLISION_EVENTS_COLLISION_Pos (0UL) /*!< Position of EVENTS_COLLISION field. */
+#define NFCT_EVENTS_COLLISION_EVENTS_COLLISION_Msk (0x1UL << NFCT_EVENTS_COLLISION_EVENTS_COLLISION_Pos) /*!< Bit mask of EVENTS_COLLISION field. */
+
+/* Register: NFCT_EVENTS_SELECTED */
+/* Description: NFC auto collision resolution successfully completed */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_SELECTED_EVENTS_SELECTED_Pos (0UL) /*!< Position of EVENTS_SELECTED field. */
+#define NFCT_EVENTS_SELECTED_EVENTS_SELECTED_Msk (0x1UL << NFCT_EVENTS_SELECTED_EVENTS_SELECTED_Pos) /*!< Bit mask of EVENTS_SELECTED field. */
+
+/* Register: NFCT_EVENTS_STARTED */
+/* Description: EasyDMA is ready to receive or send frames. */
+
+/* Bit 0 : */
+#define NFCT_EVENTS_STARTED_EVENTS_STARTED_Pos (0UL) /*!< Position of EVENTS_STARTED field. */
+#define NFCT_EVENTS_STARTED_EVENTS_STARTED_Msk (0x1UL << NFCT_EVENTS_STARTED_EVENTS_STARTED_Pos) /*!< Bit mask of EVENTS_STARTED field. */
+
+/* Register: NFCT_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 5 : Shortcut between TXFRAMEEND event and ENABLERXDATA task */
+#define NFCT_SHORTS_TXFRAMEEND_ENABLERXDATA_Pos (5UL) /*!< Position of TXFRAMEEND_ENABLERXDATA field. */
+#define NFCT_SHORTS_TXFRAMEEND_ENABLERXDATA_Msk (0x1UL << NFCT_SHORTS_TXFRAMEEND_ENABLERXDATA_Pos) /*!< Bit mask of TXFRAMEEND_ENABLERXDATA field. */
+#define NFCT_SHORTS_TXFRAMEEND_ENABLERXDATA_Disabled (0UL) /*!< Disable shortcut */
+#define NFCT_SHORTS_TXFRAMEEND_ENABLERXDATA_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between FIELDLOST event and SENSE task */
+#define NFCT_SHORTS_FIELDLOST_SENSE_Pos (1UL) /*!< Position of FIELDLOST_SENSE field. */
+#define NFCT_SHORTS_FIELDLOST_SENSE_Msk (0x1UL << NFCT_SHORTS_FIELDLOST_SENSE_Pos) /*!< Bit mask of FIELDLOST_SENSE field. */
+#define NFCT_SHORTS_FIELDLOST_SENSE_Disabled (0UL) /*!< Disable shortcut */
+#define NFCT_SHORTS_FIELDLOST_SENSE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between FIELDDETECTED event and ACTIVATE task */
+#define NFCT_SHORTS_FIELDDETECTED_ACTIVATE_Pos (0UL) /*!< Position of FIELDDETECTED_ACTIVATE field. */
+#define NFCT_SHORTS_FIELDDETECTED_ACTIVATE_Msk (0x1UL << NFCT_SHORTS_FIELDDETECTED_ACTIVATE_Pos) /*!< Bit mask of FIELDDETECTED_ACTIVATE field. */
+#define NFCT_SHORTS_FIELDDETECTED_ACTIVATE_Disabled (0UL) /*!< Disable shortcut */
+#define NFCT_SHORTS_FIELDDETECTED_ACTIVATE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: NFCT_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 20 : Enable or disable interrupt for STARTED event */
+#define NFCT_INTEN_STARTED_Pos (20UL) /*!< Position of STARTED field. */
+#define NFCT_INTEN_STARTED_Msk (0x1UL << NFCT_INTEN_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define NFCT_INTEN_STARTED_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_STARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for SELECTED event */
+#define NFCT_INTEN_SELECTED_Pos (19UL) /*!< Position of SELECTED field. */
+#define NFCT_INTEN_SELECTED_Msk (0x1UL << NFCT_INTEN_SELECTED_Pos) /*!< Bit mask of SELECTED field. */
+#define NFCT_INTEN_SELECTED_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_SELECTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 18 : Enable or disable interrupt for COLLISION event */
+#define NFCT_INTEN_COLLISION_Pos (18UL) /*!< Position of COLLISION field. */
+#define NFCT_INTEN_COLLISION_Msk (0x1UL << NFCT_INTEN_COLLISION_Pos) /*!< Bit mask of COLLISION field. */
+#define NFCT_INTEN_COLLISION_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_COLLISION_Enabled (1UL) /*!< Enable */
+
+/* Bit 14 : Enable or disable interrupt for AUTOCOLRESSTARTED event */
+#define NFCT_INTEN_AUTOCOLRESSTARTED_Pos (14UL) /*!< Position of AUTOCOLRESSTARTED field. */
+#define NFCT_INTEN_AUTOCOLRESSTARTED_Msk (0x1UL << NFCT_INTEN_AUTOCOLRESSTARTED_Pos) /*!< Bit mask of AUTOCOLRESSTARTED field. */
+#define NFCT_INTEN_AUTOCOLRESSTARTED_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_AUTOCOLRESSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 12 : Enable or disable interrupt for ENDTX event */
+#define NFCT_INTEN_ENDTX_Pos (12UL) /*!< Position of ENDTX field. */
+#define NFCT_INTEN_ENDTX_Msk (0x1UL << NFCT_INTEN_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define NFCT_INTEN_ENDTX_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_ENDTX_Enabled (1UL) /*!< Enable */
+
+/* Bit 11 : Enable or disable interrupt for ENDRX event */
+#define NFCT_INTEN_ENDRX_Pos (11UL) /*!< Position of ENDRX field. */
+#define NFCT_INTEN_ENDRX_Msk (0x1UL << NFCT_INTEN_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define NFCT_INTEN_ENDRX_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_ENDRX_Enabled (1UL) /*!< Enable */
+
+/* Bit 10 : Enable or disable interrupt for RXERROR event */
+#define NFCT_INTEN_RXERROR_Pos (10UL) /*!< Position of RXERROR field. */
+#define NFCT_INTEN_RXERROR_Msk (0x1UL << NFCT_INTEN_RXERROR_Pos) /*!< Bit mask of RXERROR field. */
+#define NFCT_INTEN_RXERROR_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_RXERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for ERROR event */
+#define NFCT_INTEN_ERROR_Pos (7UL) /*!< Position of ERROR field. */
+#define NFCT_INTEN_ERROR_Msk (0x1UL << NFCT_INTEN_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define NFCT_INTEN_ERROR_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_ERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for RXFRAMEEND event */
+#define NFCT_INTEN_RXFRAMEEND_Pos (6UL) /*!< Position of RXFRAMEEND field. */
+#define NFCT_INTEN_RXFRAMEEND_Msk (0x1UL << NFCT_INTEN_RXFRAMEEND_Pos) /*!< Bit mask of RXFRAMEEND field. */
+#define NFCT_INTEN_RXFRAMEEND_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_RXFRAMEEND_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for RXFRAMESTART event */
+#define NFCT_INTEN_RXFRAMESTART_Pos (5UL) /*!< Position of RXFRAMESTART field. */
+#define NFCT_INTEN_RXFRAMESTART_Msk (0x1UL << NFCT_INTEN_RXFRAMESTART_Pos) /*!< Bit mask of RXFRAMESTART field. */
+#define NFCT_INTEN_RXFRAMESTART_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_RXFRAMESTART_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for TXFRAMEEND event */
+#define NFCT_INTEN_TXFRAMEEND_Pos (4UL) /*!< Position of TXFRAMEEND field. */
+#define NFCT_INTEN_TXFRAMEEND_Msk (0x1UL << NFCT_INTEN_TXFRAMEEND_Pos) /*!< Bit mask of TXFRAMEEND field. */
+#define NFCT_INTEN_TXFRAMEEND_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_TXFRAMEEND_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for TXFRAMESTART event */
+#define NFCT_INTEN_TXFRAMESTART_Pos (3UL) /*!< Position of TXFRAMESTART field. */
+#define NFCT_INTEN_TXFRAMESTART_Msk (0x1UL << NFCT_INTEN_TXFRAMESTART_Pos) /*!< Bit mask of TXFRAMESTART field. */
+#define NFCT_INTEN_TXFRAMESTART_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_TXFRAMESTART_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for FIELDLOST event */
+#define NFCT_INTEN_FIELDLOST_Pos (2UL) /*!< Position of FIELDLOST field. */
+#define NFCT_INTEN_FIELDLOST_Msk (0x1UL << NFCT_INTEN_FIELDLOST_Pos) /*!< Bit mask of FIELDLOST field. */
+#define NFCT_INTEN_FIELDLOST_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_FIELDLOST_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for FIELDDETECTED event */
+#define NFCT_INTEN_FIELDDETECTED_Pos (1UL) /*!< Position of FIELDDETECTED field. */
+#define NFCT_INTEN_FIELDDETECTED_Msk (0x1UL << NFCT_INTEN_FIELDDETECTED_Pos) /*!< Bit mask of FIELDDETECTED field. */
+#define NFCT_INTEN_FIELDDETECTED_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_FIELDDETECTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for READY event */
+#define NFCT_INTEN_READY_Pos (0UL) /*!< Position of READY field. */
+#define NFCT_INTEN_READY_Msk (0x1UL << NFCT_INTEN_READY_Pos) /*!< Bit mask of READY field. */
+#define NFCT_INTEN_READY_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_READY_Enabled (1UL) /*!< Enable */
+
+/* Register: NFCT_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 20 : Write '1' to enable interrupt for STARTED event */
+#define NFCT_INTENSET_STARTED_Pos (20UL) /*!< Position of STARTED field. */
+#define NFCT_INTENSET_STARTED_Msk (0x1UL << NFCT_INTENSET_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define NFCT_INTENSET_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_STARTED_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to enable interrupt for SELECTED event */
+#define NFCT_INTENSET_SELECTED_Pos (19UL) /*!< Position of SELECTED field. */
+#define NFCT_INTENSET_SELECTED_Msk (0x1UL << NFCT_INTENSET_SELECTED_Pos) /*!< Bit mask of SELECTED field. */
+#define NFCT_INTENSET_SELECTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_SELECTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_SELECTED_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to enable interrupt for COLLISION event */
+#define NFCT_INTENSET_COLLISION_Pos (18UL) /*!< Position of COLLISION field. */
+#define NFCT_INTENSET_COLLISION_Msk (0x1UL << NFCT_INTENSET_COLLISION_Pos) /*!< Bit mask of COLLISION field. */
+#define NFCT_INTENSET_COLLISION_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_COLLISION_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_COLLISION_Set (1UL) /*!< Enable */
+
+/* Bit 14 : Write '1' to enable interrupt for AUTOCOLRESSTARTED event */
+#define NFCT_INTENSET_AUTOCOLRESSTARTED_Pos (14UL) /*!< Position of AUTOCOLRESSTARTED field. */
+#define NFCT_INTENSET_AUTOCOLRESSTARTED_Msk (0x1UL << NFCT_INTENSET_AUTOCOLRESSTARTED_Pos) /*!< Bit mask of AUTOCOLRESSTARTED field. */
+#define NFCT_INTENSET_AUTOCOLRESSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_AUTOCOLRESSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_AUTOCOLRESSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 12 : Write '1' to enable interrupt for ENDTX event */
+#define NFCT_INTENSET_ENDTX_Pos (12UL) /*!< Position of ENDTX field. */
+#define NFCT_INTENSET_ENDTX_Msk (0x1UL << NFCT_INTENSET_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define NFCT_INTENSET_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_ENDTX_Set (1UL) /*!< Enable */
+
+/* Bit 11 : Write '1' to enable interrupt for ENDRX event */
+#define NFCT_INTENSET_ENDRX_Pos (11UL) /*!< Position of ENDRX field. */
+#define NFCT_INTENSET_ENDRX_Msk (0x1UL << NFCT_INTENSET_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define NFCT_INTENSET_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_ENDRX_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to enable interrupt for RXERROR event */
+#define NFCT_INTENSET_RXERROR_Pos (10UL) /*!< Position of RXERROR field. */
+#define NFCT_INTENSET_RXERROR_Msk (0x1UL << NFCT_INTENSET_RXERROR_Pos) /*!< Bit mask of RXERROR field. */
+#define NFCT_INTENSET_RXERROR_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_RXERROR_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_RXERROR_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to enable interrupt for ERROR event */
+#define NFCT_INTENSET_ERROR_Pos (7UL) /*!< Position of ERROR field. */
+#define NFCT_INTENSET_ERROR_Msk (0x1UL << NFCT_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define NFCT_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to enable interrupt for RXFRAMEEND event */
+#define NFCT_INTENSET_RXFRAMEEND_Pos (6UL) /*!< Position of RXFRAMEEND field. */
+#define NFCT_INTENSET_RXFRAMEEND_Msk (0x1UL << NFCT_INTENSET_RXFRAMEEND_Pos) /*!< Bit mask of RXFRAMEEND field. */
+#define NFCT_INTENSET_RXFRAMEEND_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_RXFRAMEEND_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_RXFRAMEEND_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to enable interrupt for RXFRAMESTART event */
+#define NFCT_INTENSET_RXFRAMESTART_Pos (5UL) /*!< Position of RXFRAMESTART field. */
+#define NFCT_INTENSET_RXFRAMESTART_Msk (0x1UL << NFCT_INTENSET_RXFRAMESTART_Pos) /*!< Bit mask of RXFRAMESTART field. */
+#define NFCT_INTENSET_RXFRAMESTART_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_RXFRAMESTART_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_RXFRAMESTART_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable interrupt for TXFRAMEEND event */
+#define NFCT_INTENSET_TXFRAMEEND_Pos (4UL) /*!< Position of TXFRAMEEND field. */
+#define NFCT_INTENSET_TXFRAMEEND_Msk (0x1UL << NFCT_INTENSET_TXFRAMEEND_Pos) /*!< Bit mask of TXFRAMEEND field. */
+#define NFCT_INTENSET_TXFRAMEEND_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_TXFRAMEEND_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_TXFRAMEEND_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to enable interrupt for TXFRAMESTART event */
+#define NFCT_INTENSET_TXFRAMESTART_Pos (3UL) /*!< Position of TXFRAMESTART field. */
+#define NFCT_INTENSET_TXFRAMESTART_Msk (0x1UL << NFCT_INTENSET_TXFRAMESTART_Pos) /*!< Bit mask of TXFRAMESTART field. */
+#define NFCT_INTENSET_TXFRAMESTART_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_TXFRAMESTART_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_TXFRAMESTART_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for FIELDLOST event */
+#define NFCT_INTENSET_FIELDLOST_Pos (2UL) /*!< Position of FIELDLOST field. */
+#define NFCT_INTENSET_FIELDLOST_Msk (0x1UL << NFCT_INTENSET_FIELDLOST_Pos) /*!< Bit mask of FIELDLOST field. */
+#define NFCT_INTENSET_FIELDLOST_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_FIELDLOST_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_FIELDLOST_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for FIELDDETECTED event */
+#define NFCT_INTENSET_FIELDDETECTED_Pos (1UL) /*!< Position of FIELDDETECTED field. */
+#define NFCT_INTENSET_FIELDDETECTED_Msk (0x1UL << NFCT_INTENSET_FIELDDETECTED_Pos) /*!< Bit mask of FIELDDETECTED field. */
+#define NFCT_INTENSET_FIELDDETECTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_FIELDDETECTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_FIELDDETECTED_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for READY event */
+#define NFCT_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define NFCT_INTENSET_READY_Msk (0x1UL << NFCT_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define NFCT_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: NFCT_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 20 : Write '1' to disable interrupt for STARTED event */
+#define NFCT_INTENCLR_STARTED_Pos (20UL) /*!< Position of STARTED field. */
+#define NFCT_INTENCLR_STARTED_Msk (0x1UL << NFCT_INTENCLR_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define NFCT_INTENCLR_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_STARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to disable interrupt for SELECTED event */
+#define NFCT_INTENCLR_SELECTED_Pos (19UL) /*!< Position of SELECTED field. */
+#define NFCT_INTENCLR_SELECTED_Msk (0x1UL << NFCT_INTENCLR_SELECTED_Pos) /*!< Bit mask of SELECTED field. */
+#define NFCT_INTENCLR_SELECTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_SELECTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_SELECTED_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to disable interrupt for COLLISION event */
+#define NFCT_INTENCLR_COLLISION_Pos (18UL) /*!< Position of COLLISION field. */
+#define NFCT_INTENCLR_COLLISION_Msk (0x1UL << NFCT_INTENCLR_COLLISION_Pos) /*!< Bit mask of COLLISION field. */
+#define NFCT_INTENCLR_COLLISION_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_COLLISION_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_COLLISION_Clear (1UL) /*!< Disable */
+
+/* Bit 14 : Write '1' to disable interrupt for AUTOCOLRESSTARTED event */
+#define NFCT_INTENCLR_AUTOCOLRESSTARTED_Pos (14UL) /*!< Position of AUTOCOLRESSTARTED field. */
+#define NFCT_INTENCLR_AUTOCOLRESSTARTED_Msk (0x1UL << NFCT_INTENCLR_AUTOCOLRESSTARTED_Pos) /*!< Bit mask of AUTOCOLRESSTARTED field. */
+#define NFCT_INTENCLR_AUTOCOLRESSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_AUTOCOLRESSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_AUTOCOLRESSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 12 : Write '1' to disable interrupt for ENDTX event */
+#define NFCT_INTENCLR_ENDTX_Pos (12UL) /*!< Position of ENDTX field. */
+#define NFCT_INTENCLR_ENDTX_Msk (0x1UL << NFCT_INTENCLR_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define NFCT_INTENCLR_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_ENDTX_Clear (1UL) /*!< Disable */
+
+/* Bit 11 : Write '1' to disable interrupt for ENDRX event */
+#define NFCT_INTENCLR_ENDRX_Pos (11UL) /*!< Position of ENDRX field. */
+#define NFCT_INTENCLR_ENDRX_Msk (0x1UL << NFCT_INTENCLR_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define NFCT_INTENCLR_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_ENDRX_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to disable interrupt for RXERROR event */
+#define NFCT_INTENCLR_RXERROR_Pos (10UL) /*!< Position of RXERROR field. */
+#define NFCT_INTENCLR_RXERROR_Msk (0x1UL << NFCT_INTENCLR_RXERROR_Pos) /*!< Bit mask of RXERROR field. */
+#define NFCT_INTENCLR_RXERROR_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_RXERROR_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_RXERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to disable interrupt for ERROR event */
+#define NFCT_INTENCLR_ERROR_Pos (7UL) /*!< Position of ERROR field. */
+#define NFCT_INTENCLR_ERROR_Msk (0x1UL << NFCT_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define NFCT_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to disable interrupt for RXFRAMEEND event */
+#define NFCT_INTENCLR_RXFRAMEEND_Pos (6UL) /*!< Position of RXFRAMEEND field. */
+#define NFCT_INTENCLR_RXFRAMEEND_Msk (0x1UL << NFCT_INTENCLR_RXFRAMEEND_Pos) /*!< Bit mask of RXFRAMEEND field. */
+#define NFCT_INTENCLR_RXFRAMEEND_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_RXFRAMEEND_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_RXFRAMEEND_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to disable interrupt for RXFRAMESTART event */
+#define NFCT_INTENCLR_RXFRAMESTART_Pos (5UL) /*!< Position of RXFRAMESTART field. */
+#define NFCT_INTENCLR_RXFRAMESTART_Msk (0x1UL << NFCT_INTENCLR_RXFRAMESTART_Pos) /*!< Bit mask of RXFRAMESTART field. */
+#define NFCT_INTENCLR_RXFRAMESTART_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_RXFRAMESTART_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_RXFRAMESTART_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable interrupt for TXFRAMEEND event */
+#define NFCT_INTENCLR_TXFRAMEEND_Pos (4UL) /*!< Position of TXFRAMEEND field. */
+#define NFCT_INTENCLR_TXFRAMEEND_Msk (0x1UL << NFCT_INTENCLR_TXFRAMEEND_Pos) /*!< Bit mask of TXFRAMEEND field. */
+#define NFCT_INTENCLR_TXFRAMEEND_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_TXFRAMEEND_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_TXFRAMEEND_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to disable interrupt for TXFRAMESTART event */
+#define NFCT_INTENCLR_TXFRAMESTART_Pos (3UL) /*!< Position of TXFRAMESTART field. */
+#define NFCT_INTENCLR_TXFRAMESTART_Msk (0x1UL << NFCT_INTENCLR_TXFRAMESTART_Pos) /*!< Bit mask of TXFRAMESTART field. */
+#define NFCT_INTENCLR_TXFRAMESTART_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_TXFRAMESTART_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_TXFRAMESTART_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for FIELDLOST event */
+#define NFCT_INTENCLR_FIELDLOST_Pos (2UL) /*!< Position of FIELDLOST field. */
+#define NFCT_INTENCLR_FIELDLOST_Msk (0x1UL << NFCT_INTENCLR_FIELDLOST_Pos) /*!< Bit mask of FIELDLOST field. */
+#define NFCT_INTENCLR_FIELDLOST_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_FIELDLOST_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_FIELDLOST_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for FIELDDETECTED event */
+#define NFCT_INTENCLR_FIELDDETECTED_Pos (1UL) /*!< Position of FIELDDETECTED field. */
+#define NFCT_INTENCLR_FIELDDETECTED_Msk (0x1UL << NFCT_INTENCLR_FIELDDETECTED_Pos) /*!< Bit mask of FIELDDETECTED field. */
+#define NFCT_INTENCLR_FIELDDETECTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_FIELDDETECTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_FIELDDETECTED_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for READY event */
+#define NFCT_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define NFCT_INTENCLR_READY_Msk (0x1UL << NFCT_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define NFCT_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: NFCT_ERRORSTATUS */
+/* Description: NFC Error Status register */
+
+/* Bit 0 : No STARTTX task triggered before expiration of the time set in FRAMEDELAYMAX */
+#define NFCT_ERRORSTATUS_FRAMEDELAYTIMEOUT_Pos (0UL) /*!< Position of FRAMEDELAYTIMEOUT field. */
+#define NFCT_ERRORSTATUS_FRAMEDELAYTIMEOUT_Msk (0x1UL << NFCT_ERRORSTATUS_FRAMEDELAYTIMEOUT_Pos) /*!< Bit mask of FRAMEDELAYTIMEOUT field. */
+
+/* Register: NFCT_FRAMESTATUS_RX */
+/* Description: Result of last incoming frame */
+
+/* Bit 3 : Overrun detected */
+#define NFCT_FRAMESTATUS_RX_OVERRUN_Pos (3UL) /*!< Position of OVERRUN field. */
+#define NFCT_FRAMESTATUS_RX_OVERRUN_Msk (0x1UL << NFCT_FRAMESTATUS_RX_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define NFCT_FRAMESTATUS_RX_OVERRUN_NoOverrun (0UL) /*!< No overrun detected */
+#define NFCT_FRAMESTATUS_RX_OVERRUN_Overrun (1UL) /*!< Overrun error */
+
+/* Bit 2 : Parity status of received frame */
+#define NFCT_FRAMESTATUS_RX_PARITYSTATUS_Pos (2UL) /*!< Position of PARITYSTATUS field. */
+#define NFCT_FRAMESTATUS_RX_PARITYSTATUS_Msk (0x1UL << NFCT_FRAMESTATUS_RX_PARITYSTATUS_Pos) /*!< Bit mask of PARITYSTATUS field. */
+#define NFCT_FRAMESTATUS_RX_PARITYSTATUS_ParityOK (0UL) /*!< Frame received with parity OK */
+#define NFCT_FRAMESTATUS_RX_PARITYSTATUS_ParityError (1UL) /*!< Frame received with parity error */
+
+/* Bit 0 : No valid end of frame (EoF) detected */
+#define NFCT_FRAMESTATUS_RX_CRCERROR_Pos (0UL) /*!< Position of CRCERROR field. */
+#define NFCT_FRAMESTATUS_RX_CRCERROR_Msk (0x1UL << NFCT_FRAMESTATUS_RX_CRCERROR_Pos) /*!< Bit mask of CRCERROR field. */
+#define NFCT_FRAMESTATUS_RX_CRCERROR_CRCCorrect (0UL) /*!< Valid CRC detected */
+#define NFCT_FRAMESTATUS_RX_CRCERROR_CRCError (1UL) /*!< CRC received does not match local check */
+
+/* Register: NFCT_NFCTAGSTATE */
+/* Description: NfcTag state register */
+
+/* Bits 2..0 : NfcTag state */
+#define NFCT_NFCTAGSTATE_NFCTAGSTATE_Pos (0UL) /*!< Position of NFCTAGSTATE field. */
+#define NFCT_NFCTAGSTATE_NFCTAGSTATE_Msk (0x7UL << NFCT_NFCTAGSTATE_NFCTAGSTATE_Pos) /*!< Bit mask of NFCTAGSTATE field. */
+#define NFCT_NFCTAGSTATE_NFCTAGSTATE_Disabled (0UL) /*!< Disabled or sense */
+#define NFCT_NFCTAGSTATE_NFCTAGSTATE_RampUp (2UL) /*!< RampUp */
+#define NFCT_NFCTAGSTATE_NFCTAGSTATE_Idle (3UL) /*!< Idle */
+#define NFCT_NFCTAGSTATE_NFCTAGSTATE_Receive (4UL) /*!< Receive */
+#define NFCT_NFCTAGSTATE_NFCTAGSTATE_FrameDelay (5UL) /*!< FrameDelay */
+#define NFCT_NFCTAGSTATE_NFCTAGSTATE_Transmit (6UL) /*!< Transmit */
+
+/* Register: NFCT_SLEEPSTATE */
+/* Description: Sleep state during automatic collision resolution */
+
+/* Bit 0 : Reflects the sleep state during automatic collision resolution. Set to IDLE
+ by a GOIDLE task. Set to SLEEP_A when a valid SLEEP_REQ frame is received or by a
+ GOSLEEP task. */
+#define NFCT_SLEEPSTATE_SLEEPSTATE_Pos (0UL) /*!< Position of SLEEPSTATE field. */
+#define NFCT_SLEEPSTATE_SLEEPSTATE_Msk (0x1UL << NFCT_SLEEPSTATE_SLEEPSTATE_Pos) /*!< Bit mask of SLEEPSTATE field. */
+#define NFCT_SLEEPSTATE_SLEEPSTATE_Idle (0UL) /*!< State is IDLE. */
+#define NFCT_SLEEPSTATE_SLEEPSTATE_SleepA (1UL) /*!< State is SLEEP_A. */
+
+/* Register: NFCT_FIELDPRESENT */
+/* Description: Indicates the presence or not of a valid field */
+
+/* Bit 1 : Indicates if the low level has locked to the field */
+#define NFCT_FIELDPRESENT_LOCKDETECT_Pos (1UL) /*!< Position of LOCKDETECT field. */
+#define NFCT_FIELDPRESENT_LOCKDETECT_Msk (0x1UL << NFCT_FIELDPRESENT_LOCKDETECT_Pos) /*!< Bit mask of LOCKDETECT field. */
+#define NFCT_FIELDPRESENT_LOCKDETECT_NotLocked (0UL) /*!< Not locked to field */
+#define NFCT_FIELDPRESENT_LOCKDETECT_Locked (1UL) /*!< Locked to field */
+
+/* Bit 0 : Indicates if a valid field is present. Available only in the activated state. */
+#define NFCT_FIELDPRESENT_FIELDPRESENT_Pos (0UL) /*!< Position of FIELDPRESENT field. */
+#define NFCT_FIELDPRESENT_FIELDPRESENT_Msk (0x1UL << NFCT_FIELDPRESENT_FIELDPRESENT_Pos) /*!< Bit mask of FIELDPRESENT field. */
+#define NFCT_FIELDPRESENT_FIELDPRESENT_NoField (0UL) /*!< No valid field detected */
+#define NFCT_FIELDPRESENT_FIELDPRESENT_FieldPresent (1UL) /*!< Valid field detected */
+
+/* Register: NFCT_FRAMEDELAYMIN */
+/* Description: Minimum frame delay */
+
+/* Bits 15..0 : Minimum frame delay in number of 13.56 MHz clocks */
+#define NFCT_FRAMEDELAYMIN_FRAMEDELAYMIN_Pos (0UL) /*!< Position of FRAMEDELAYMIN field. */
+#define NFCT_FRAMEDELAYMIN_FRAMEDELAYMIN_Msk (0xFFFFUL << NFCT_FRAMEDELAYMIN_FRAMEDELAYMIN_Pos) /*!< Bit mask of FRAMEDELAYMIN field. */
+
+/* Register: NFCT_FRAMEDELAYMAX */
+/* Description: Maximum frame delay */
+
+/* Bits 19..0 : Maximum frame delay in number of 13.56 MHz clocks */
+#define NFCT_FRAMEDELAYMAX_FRAMEDELAYMAX_Pos (0UL) /*!< Position of FRAMEDELAYMAX field. */
+#define NFCT_FRAMEDELAYMAX_FRAMEDELAYMAX_Msk (0xFFFFFUL << NFCT_FRAMEDELAYMAX_FRAMEDELAYMAX_Pos) /*!< Bit mask of FRAMEDELAYMAX field. */
+
+/* Register: NFCT_FRAMEDELAYMODE */
+/* Description: Configuration register for the Frame Delay Timer */
+
+/* Bits 1..0 : Configuration register for the Frame Delay Timer */
+#define NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_Pos (0UL) /*!< Position of FRAMEDELAYMODE field. */
+#define NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_Msk (0x3UL << NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_Pos) /*!< Bit mask of FRAMEDELAYMODE field. */
+#define NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_FreeRun (0UL) /*!< Transmission is independent of frame timer and will start when the STARTTX task is triggered. No timeout. */
+#define NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_Window (1UL) /*!< Frame is transmitted between FRAMEDELAYMIN and FRAMEDELAYMAX */
+#define NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_ExactVal (2UL) /*!< Frame is transmitted exactly at FRAMEDELAYMAX */
+#define NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_WindowGrid (3UL) /*!< Frame is transmitted on a bit grid between FRAMEDELAYMIN and FRAMEDELAYMAX */
+
+/* Register: NFCT_PACKETPTR */
+/* Description: Packet pointer for TXD and RXD data storage in Data RAM */
+
+/* Bits 31..0 : Packet pointer for TXD and RXD data storage in Data RAM. This address is a byte-aligned RAM address. */
+#define NFCT_PACKETPTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define NFCT_PACKETPTR_PTR_Msk (0xFFFFFFFFUL << NFCT_PACKETPTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: NFCT_MAXLEN */
+/* Description: Size of the RAM buffer allocated to TXD and RXD data storage each */
+
+/* Bits 8..0 : Size of the RAM buffer allocated to TXD and RXD data storage each */
+#define NFCT_MAXLEN_MAXLEN_Pos (0UL) /*!< Position of MAXLEN field. */
+#define NFCT_MAXLEN_MAXLEN_Msk (0x1FFUL << NFCT_MAXLEN_MAXLEN_Pos) /*!< Bit mask of MAXLEN field. */
+
+/* Register: NFCT_TXD_FRAMECONFIG */
+/* Description: Configuration of outgoing frames */
+
+/* Bit 4 : CRC mode for outgoing frames */
+#define NFCT_TXD_FRAMECONFIG_CRCMODETX_Pos (4UL) /*!< Position of CRCMODETX field. */
+#define NFCT_TXD_FRAMECONFIG_CRCMODETX_Msk (0x1UL << NFCT_TXD_FRAMECONFIG_CRCMODETX_Pos) /*!< Bit mask of CRCMODETX field. */
+#define NFCT_TXD_FRAMECONFIG_CRCMODETX_NoCRCTX (0UL) /*!< CRC is not added to the frame */
+#define NFCT_TXD_FRAMECONFIG_CRCMODETX_CRC16TX (1UL) /*!< 16 bit CRC added to the frame based on all the data read from RAM that is used in the frame */
+
+/* Bit 2 : Adding SoF or not in TX frames */
+#define NFCT_TXD_FRAMECONFIG_SOF_Pos (2UL) /*!< Position of SOF field. */
+#define NFCT_TXD_FRAMECONFIG_SOF_Msk (0x1UL << NFCT_TXD_FRAMECONFIG_SOF_Pos) /*!< Bit mask of SOF field. */
+#define NFCT_TXD_FRAMECONFIG_SOF_NoSoF (0UL) /*!< SoF symbol not added */
+#define NFCT_TXD_FRAMECONFIG_SOF_SoF (1UL) /*!< SoF symbol added */
+
+/* Bit 1 : Discarding unused bits at start or end of a frame */
+#define NFCT_TXD_FRAMECONFIG_DISCARDMODE_Pos (1UL) /*!< Position of DISCARDMODE field. */
+#define NFCT_TXD_FRAMECONFIG_DISCARDMODE_Msk (0x1UL << NFCT_TXD_FRAMECONFIG_DISCARDMODE_Pos) /*!< Bit mask of DISCARDMODE field. */
+#define NFCT_TXD_FRAMECONFIG_DISCARDMODE_DiscardEnd (0UL) /*!< Unused bits are discarded at end of frame (EoF) */
+#define NFCT_TXD_FRAMECONFIG_DISCARDMODE_DiscardStart (1UL) /*!< Unused bits are discarded at start of frame (SoF) */
+
+/* Bit 0 : Indicates if parity is added to the frame */
+#define NFCT_TXD_FRAMECONFIG_PARITY_Pos (0UL) /*!< Position of PARITY field. */
+#define NFCT_TXD_FRAMECONFIG_PARITY_Msk (0x1UL << NFCT_TXD_FRAMECONFIG_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define NFCT_TXD_FRAMECONFIG_PARITY_NoParity (0UL) /*!< Parity is not added to TX frames */
+#define NFCT_TXD_FRAMECONFIG_PARITY_Parity (1UL) /*!< Parity is added to TX frames */
+
+/* Register: NFCT_TXD_AMOUNT */
+/* Description: Size of outgoing frame */
+
+/* Bits 11..3 : Number of complete bytes that shall be included in the frame, excluding CRC, parity and framing */
+#define NFCT_TXD_AMOUNT_TXDATABYTES_Pos (3UL) /*!< Position of TXDATABYTES field. */
+#define NFCT_TXD_AMOUNT_TXDATABYTES_Msk (0x1FFUL << NFCT_TXD_AMOUNT_TXDATABYTES_Pos) /*!< Bit mask of TXDATABYTES field. */
+
+/* Bits 2..0 : Number of bits in the last or first byte read from RAM that shall be included in the frame (excluding parity bit). */
+#define NFCT_TXD_AMOUNT_TXDATABITS_Pos (0UL) /*!< Position of TXDATABITS field. */
+#define NFCT_TXD_AMOUNT_TXDATABITS_Msk (0x7UL << NFCT_TXD_AMOUNT_TXDATABITS_Pos) /*!< Bit mask of TXDATABITS field. */
+
+/* Register: NFCT_RXD_FRAMECONFIG */
+/* Description: Configuration of incoming frames */
+
+/* Bit 4 : CRC mode for incoming frames */
+#define NFCT_RXD_FRAMECONFIG_CRCMODERX_Pos (4UL) /*!< Position of CRCMODERX field. */
+#define NFCT_RXD_FRAMECONFIG_CRCMODERX_Msk (0x1UL << NFCT_RXD_FRAMECONFIG_CRCMODERX_Pos) /*!< Bit mask of CRCMODERX field. */
+#define NFCT_RXD_FRAMECONFIG_CRCMODERX_NoCRCRX (0UL) /*!< CRC is not expected in RX frames */
+#define NFCT_RXD_FRAMECONFIG_CRCMODERX_CRC16RX (1UL) /*!< Last 16 bits in RX frame is CRC, CRC is checked and CRCSTATUS updated */
+
+/* Bit 2 : SoF expected or not in RX frames */
+#define NFCT_RXD_FRAMECONFIG_SOF_Pos (2UL) /*!< Position of SOF field. */
+#define NFCT_RXD_FRAMECONFIG_SOF_Msk (0x1UL << NFCT_RXD_FRAMECONFIG_SOF_Pos) /*!< Bit mask of SOF field. */
+#define NFCT_RXD_FRAMECONFIG_SOF_NoSoF (0UL) /*!< SoF symbol is not expected in RX frames */
+#define NFCT_RXD_FRAMECONFIG_SOF_SoF (1UL) /*!< SoF symbol is expected in RX frames */
+
+/* Bit 0 : Indicates if parity expected in RX frame */
+#define NFCT_RXD_FRAMECONFIG_PARITY_Pos (0UL) /*!< Position of PARITY field. */
+#define NFCT_RXD_FRAMECONFIG_PARITY_Msk (0x1UL << NFCT_RXD_FRAMECONFIG_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define NFCT_RXD_FRAMECONFIG_PARITY_NoParity (0UL) /*!< Parity is not expected in RX frames */
+#define NFCT_RXD_FRAMECONFIG_PARITY_Parity (1UL) /*!< Parity is expected in RX frames */
+
+/* Register: NFCT_RXD_AMOUNT */
+/* Description: Size of last incoming frame */
+
+/* Bits 11..3 : Number of complete bytes received in the frame (including CRC, but excluding parity and SoF/EoF framing) */
+#define NFCT_RXD_AMOUNT_RXDATABYTES_Pos (3UL) /*!< Position of RXDATABYTES field. */
+#define NFCT_RXD_AMOUNT_RXDATABYTES_Msk (0x1FFUL << NFCT_RXD_AMOUNT_RXDATABYTES_Pos) /*!< Bit mask of RXDATABYTES field. */
+
+/* Bits 2..0 : Number of bits in the last byte in the frame, if less than 8 (including CRC, but excluding parity and SoF/EoF framing). */
+#define NFCT_RXD_AMOUNT_RXDATABITS_Pos (0UL) /*!< Position of RXDATABITS field. */
+#define NFCT_RXD_AMOUNT_RXDATABITS_Msk (0x7UL << NFCT_RXD_AMOUNT_RXDATABITS_Pos) /*!< Bit mask of RXDATABITS field. */
+
+/* Register: NFCT_NFCID1_LAST */
+/* Description: Last NFCID1 part (4, 7 or 10 bytes ID) */
+
+/* Bits 31..24 : NFCID1 byte W */
+#define NFCT_NFCID1_LAST_NFCID1_W_Pos (24UL) /*!< Position of NFCID1_W field. */
+#define NFCT_NFCID1_LAST_NFCID1_W_Msk (0xFFUL << NFCT_NFCID1_LAST_NFCID1_W_Pos) /*!< Bit mask of NFCID1_W field. */
+
+/* Bits 23..16 : NFCID1 byte X */
+#define NFCT_NFCID1_LAST_NFCID1_X_Pos (16UL) /*!< Position of NFCID1_X field. */
+#define NFCT_NFCID1_LAST_NFCID1_X_Msk (0xFFUL << NFCT_NFCID1_LAST_NFCID1_X_Pos) /*!< Bit mask of NFCID1_X field. */
+
+/* Bits 15..8 : NFCID1 byte Y */
+#define NFCT_NFCID1_LAST_NFCID1_Y_Pos (8UL) /*!< Position of NFCID1_Y field. */
+#define NFCT_NFCID1_LAST_NFCID1_Y_Msk (0xFFUL << NFCT_NFCID1_LAST_NFCID1_Y_Pos) /*!< Bit mask of NFCID1_Y field. */
+
+/* Bits 7..0 : NFCID1 byte Z (very last byte sent) */
+#define NFCT_NFCID1_LAST_NFCID1_Z_Pos (0UL) /*!< Position of NFCID1_Z field. */
+#define NFCT_NFCID1_LAST_NFCID1_Z_Msk (0xFFUL << NFCT_NFCID1_LAST_NFCID1_Z_Pos) /*!< Bit mask of NFCID1_Z field. */
+
+/* Register: NFCT_NFCID1_2ND_LAST */
+/* Description: Second last NFCID1 part (7 or 10 bytes ID) */
+
+/* Bits 23..16 : NFCID1 byte T */
+#define NFCT_NFCID1_2ND_LAST_NFCID1_T_Pos (16UL) /*!< Position of NFCID1_T field. */
+#define NFCT_NFCID1_2ND_LAST_NFCID1_T_Msk (0xFFUL << NFCT_NFCID1_2ND_LAST_NFCID1_T_Pos) /*!< Bit mask of NFCID1_T field. */
+
+/* Bits 15..8 : NFCID1 byte U */
+#define NFCT_NFCID1_2ND_LAST_NFCID1_U_Pos (8UL) /*!< Position of NFCID1_U field. */
+#define NFCT_NFCID1_2ND_LAST_NFCID1_U_Msk (0xFFUL << NFCT_NFCID1_2ND_LAST_NFCID1_U_Pos) /*!< Bit mask of NFCID1_U field. */
+
+/* Bits 7..0 : NFCID1 byte V */
+#define NFCT_NFCID1_2ND_LAST_NFCID1_V_Pos (0UL) /*!< Position of NFCID1_V field. */
+#define NFCT_NFCID1_2ND_LAST_NFCID1_V_Msk (0xFFUL << NFCT_NFCID1_2ND_LAST_NFCID1_V_Pos) /*!< Bit mask of NFCID1_V field. */
+
+/* Register: NFCT_NFCID1_3RD_LAST */
+/* Description: Third last NFCID1 part (10 bytes ID) */
+
+/* Bits 23..16 : NFCID1 byte Q */
+#define NFCT_NFCID1_3RD_LAST_NFCID1_Q_Pos (16UL) /*!< Position of NFCID1_Q field. */
+#define NFCT_NFCID1_3RD_LAST_NFCID1_Q_Msk (0xFFUL << NFCT_NFCID1_3RD_LAST_NFCID1_Q_Pos) /*!< Bit mask of NFCID1_Q field. */
+
+/* Bits 15..8 : NFCID1 byte R */
+#define NFCT_NFCID1_3RD_LAST_NFCID1_R_Pos (8UL) /*!< Position of NFCID1_R field. */
+#define NFCT_NFCID1_3RD_LAST_NFCID1_R_Msk (0xFFUL << NFCT_NFCID1_3RD_LAST_NFCID1_R_Pos) /*!< Bit mask of NFCID1_R field. */
+
+/* Bits 7..0 : NFCID1 byte S */
+#define NFCT_NFCID1_3RD_LAST_NFCID1_S_Pos (0UL) /*!< Position of NFCID1_S field. */
+#define NFCT_NFCID1_3RD_LAST_NFCID1_S_Msk (0xFFUL << NFCT_NFCID1_3RD_LAST_NFCID1_S_Pos) /*!< Bit mask of NFCID1_S field. */
+
+/* Register: NFCT_AUTOCOLRESCONFIG */
+/* Description: Controls the auto collision resolution function. This setting must be done before the NFCT peripheral is enabled. */
+
+/* Bit 0 : Enables/disables auto collision resolution */
+#define NFCT_AUTOCOLRESCONFIG_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define NFCT_AUTOCOLRESCONFIG_MODE_Msk (0x1UL << NFCT_AUTOCOLRESCONFIG_MODE_Pos) /*!< Bit mask of MODE field. */
+#define NFCT_AUTOCOLRESCONFIG_MODE_Enabled (0UL) /*!< Auto collision resolution enabled */
+#define NFCT_AUTOCOLRESCONFIG_MODE_Disabled (1UL) /*!< Auto collision resolution disabled */
+
+/* Register: NFCT_SENSRES */
+/* Description: NFC-A SENS_RES auto-response settings */
+
+/* Bits 15..12 : Reserved for future use. Shall be 0. */
+#define NFCT_SENSRES_RFU74_Pos (12UL) /*!< Position of RFU74 field. */
+#define NFCT_SENSRES_RFU74_Msk (0xFUL << NFCT_SENSRES_RFU74_Pos) /*!< Bit mask of RFU74 field. */
+
+/* Bits 11..8 : Tag platform configuration as defined by the b4:b1 of byte 2 in SENS_RES response in the NFC Forum, NFC Digital Protocol Technical Specification */
+#define NFCT_SENSRES_PLATFCONFIG_Pos (8UL) /*!< Position of PLATFCONFIG field. */
+#define NFCT_SENSRES_PLATFCONFIG_Msk (0xFUL << NFCT_SENSRES_PLATFCONFIG_Pos) /*!< Bit mask of PLATFCONFIG field. */
+
+/* Bits 7..6 : NFCID1 size. This value is used by the auto collision resolution engine. */
+#define NFCT_SENSRES_NFCIDSIZE_Pos (6UL) /*!< Position of NFCIDSIZE field. */
+#define NFCT_SENSRES_NFCIDSIZE_Msk (0x3UL << NFCT_SENSRES_NFCIDSIZE_Pos) /*!< Bit mask of NFCIDSIZE field. */
+#define NFCT_SENSRES_NFCIDSIZE_NFCID1Single (0UL) /*!< NFCID1 size: single (4 bytes) */
+#define NFCT_SENSRES_NFCIDSIZE_NFCID1Double (1UL) /*!< NFCID1 size: double (7 bytes) */
+#define NFCT_SENSRES_NFCIDSIZE_NFCID1Triple (2UL) /*!< NFCID1 size: triple (10 bytes) */
+
+/* Bit 5 : Reserved for future use. Shall be 0. */
+#define NFCT_SENSRES_RFU5_Pos (5UL) /*!< Position of RFU5 field. */
+#define NFCT_SENSRES_RFU5_Msk (0x1UL << NFCT_SENSRES_RFU5_Pos) /*!< Bit mask of RFU5 field. */
+
+/* Bits 4..0 : Bit frame SDD as defined by the b5:b1 of byte 1 in SENS_RES response in the NFC Forum, NFC Digital Protocol Technical Specification */
+#define NFCT_SENSRES_BITFRAMESDD_Pos (0UL) /*!< Position of BITFRAMESDD field. */
+#define NFCT_SENSRES_BITFRAMESDD_Msk (0x1FUL << NFCT_SENSRES_BITFRAMESDD_Pos) /*!< Bit mask of BITFRAMESDD field. */
+#define NFCT_SENSRES_BITFRAMESDD_SDD00000 (0UL) /*!< SDD pattern 00000 */
+#define NFCT_SENSRES_BITFRAMESDD_SDD00001 (1UL) /*!< SDD pattern 00001 */
+#define NFCT_SENSRES_BITFRAMESDD_SDD00010 (2UL) /*!< SDD pattern 00010 */
+#define NFCT_SENSRES_BITFRAMESDD_SDD00100 (4UL) /*!< SDD pattern 00100 */
+#define NFCT_SENSRES_BITFRAMESDD_SDD01000 (8UL) /*!< SDD pattern 01000 */
+#define NFCT_SENSRES_BITFRAMESDD_SDD10000 (16UL) /*!< SDD pattern 10000 */
+
+/* Register: NFCT_SELRES */
+/* Description: NFC-A SEL_RES auto-response settings */
+
+/* Bit 7 : Reserved for future use. Shall be 0. */
+#define NFCT_SELRES_RFU7_Pos (7UL) /*!< Position of RFU7 field. */
+#define NFCT_SELRES_RFU7_Msk (0x1UL << NFCT_SELRES_RFU7_Pos) /*!< Bit mask of RFU7 field. */
+
+/* Bits 6..5 : Protocol as defined by the b7:b6 of SEL_RES response in the NFC Forum, NFC Digital Protocol Technical Specification */
+#define NFCT_SELRES_PROTOCOL_Pos (5UL) /*!< Position of PROTOCOL field. */
+#define NFCT_SELRES_PROTOCOL_Msk (0x3UL << NFCT_SELRES_PROTOCOL_Pos) /*!< Bit mask of PROTOCOL field. */
+
+/* Bits 4..3 : Reserved for future use. Shall be 0. */
+#define NFCT_SELRES_RFU43_Pos (3UL) /*!< Position of RFU43 field. */
+#define NFCT_SELRES_RFU43_Msk (0x3UL << NFCT_SELRES_RFU43_Pos) /*!< Bit mask of RFU43 field. */
+
+/* Bit 2 : Cascade as defined by the b3 of SEL_RES response in the NFC Forum, NFC Digital Protocol Technical Specification (controlled by hardware, shall be 0) */
+#define NFCT_SELRES_CASCADE_Pos (2UL) /*!< Position of CASCADE field. */
+#define NFCT_SELRES_CASCADE_Msk (0x1UL << NFCT_SELRES_CASCADE_Pos) /*!< Bit mask of CASCADE field. */
+
+/* Bits 1..0 : Reserved for future use. Shall be 0. */
+#define NFCT_SELRES_RFU10_Pos (0UL) /*!< Position of RFU10 field. */
+#define NFCT_SELRES_RFU10_Msk (0x3UL << NFCT_SELRES_RFU10_Pos) /*!< Bit mask of RFU10 field. */
+
+
+/* Peripheral: NVMC */
+/* Description: Non Volatile Memory Controller */
+
+/* Register: NVMC_READY */
+/* Description: Ready flag */
+
+/* Bit 0 : NVMC is ready or busy */
+#define NVMC_READY_READY_Pos (0UL) /*!< Position of READY field. */
+#define NVMC_READY_READY_Msk (0x1UL << NVMC_READY_READY_Pos) /*!< Bit mask of READY field. */
+#define NVMC_READY_READY_Busy (0UL) /*!< NVMC is busy (on-going write or erase operation) */
+#define NVMC_READY_READY_Ready (1UL) /*!< NVMC is ready */
+
+/* Register: NVMC_READYNEXT */
+/* Description: Ready flag */
+
+/* Bit 0 : NVMC can accept a new write operation */
+#define NVMC_READYNEXT_READYNEXT_Pos (0UL) /*!< Position of READYNEXT field. */
+#define NVMC_READYNEXT_READYNEXT_Msk (0x1UL << NVMC_READYNEXT_READYNEXT_Pos) /*!< Bit mask of READYNEXT field. */
+#define NVMC_READYNEXT_READYNEXT_Busy (0UL) /*!< NVMC cannot accept any write operation */
+#define NVMC_READYNEXT_READYNEXT_Ready (1UL) /*!< NVMC is ready */
+
+/* Register: NVMC_CONFIG */
+/* Description: Configuration register */
+
+/* Bits 1..0 : Program memory access mode. It is strongly recommended to only activate erase and write modes when they are actively used. Enabling write or erase will invalidate the cache and keep it invalidated. */
+#define NVMC_CONFIG_WEN_Pos (0UL) /*!< Position of WEN field. */
+#define NVMC_CONFIG_WEN_Msk (0x3UL << NVMC_CONFIG_WEN_Pos) /*!< Bit mask of WEN field. */
+#define NVMC_CONFIG_WEN_Ren (0UL) /*!< Read only access */
+#define NVMC_CONFIG_WEN_Wen (1UL) /*!< Write enabled */
+#define NVMC_CONFIG_WEN_Een (2UL) /*!< Erase enabled */
+
+/* Register: NVMC_ERASEPAGE */
+/* Description: Register for erasing a page in code area */
+
+/* Bits 31..0 : Register for starting erase of a page in code area */
+#define NVMC_ERASEPAGE_ERASEPAGE_Pos (0UL) /*!< Position of ERASEPAGE field. */
+#define NVMC_ERASEPAGE_ERASEPAGE_Msk (0xFFFFFFFFUL << NVMC_ERASEPAGE_ERASEPAGE_Pos) /*!< Bit mask of ERASEPAGE field. */
+
+/* Register: NVMC_ERASEPCR1 */
+/* Description: Deprecated register - Register for erasing a page in code area. Equivalent to ERASEPAGE. */
+
+/* Bits 31..0 : Register for erasing a page in code area. Equivalent to ERASEPAGE. */
+#define NVMC_ERASEPCR1_ERASEPCR1_Pos (0UL) /*!< Position of ERASEPCR1 field. */
+#define NVMC_ERASEPCR1_ERASEPCR1_Msk (0xFFFFFFFFUL << NVMC_ERASEPCR1_ERASEPCR1_Pos) /*!< Bit mask of ERASEPCR1 field. */
+
+/* Register: NVMC_ERASEALL */
+/* Description: Register for erasing all non-volatile user memory */
+
+/* Bit 0 : Erase all non-volatile memory including UICR registers. Note that the erase must be enabled using CONFIG.WEN before the non-volatile memory can be erased. */
+#define NVMC_ERASEALL_ERASEALL_Pos (0UL) /*!< Position of ERASEALL field. */
+#define NVMC_ERASEALL_ERASEALL_Msk (0x1UL << NVMC_ERASEALL_ERASEALL_Pos) /*!< Bit mask of ERASEALL field. */
+#define NVMC_ERASEALL_ERASEALL_NoOperation (0UL) /*!< No operation */
+#define NVMC_ERASEALL_ERASEALL_Erase (1UL) /*!< Start chip erase */
+
+/* Register: NVMC_ERASEPCR0 */
+/* Description: Deprecated register - Register for erasing a page in code area. Equivalent to ERASEPAGE. */
+
+/* Bits 31..0 : Register for starting erase of a page in code area. Equivalent to ERASEPAGE. */
+#define NVMC_ERASEPCR0_ERASEPCR0_Pos (0UL) /*!< Position of ERASEPCR0 field. */
+#define NVMC_ERASEPCR0_ERASEPCR0_Msk (0xFFFFFFFFUL << NVMC_ERASEPCR0_ERASEPCR0_Pos) /*!< Bit mask of ERASEPCR0 field. */
+
+/* Register: NVMC_ERASEUICR */
+/* Description: Register for erasing user information configuration registers */
+
+/* Bit 0 : Register starting erase of all user information configuration registers. Note that the erase must be enabled using CONFIG.WEN before the UICR can be erased. */
+#define NVMC_ERASEUICR_ERASEUICR_Pos (0UL) /*!< Position of ERASEUICR field. */
+#define NVMC_ERASEUICR_ERASEUICR_Msk (0x1UL << NVMC_ERASEUICR_ERASEUICR_Pos) /*!< Bit mask of ERASEUICR field. */
+#define NVMC_ERASEUICR_ERASEUICR_NoOperation (0UL) /*!< No operation */
+#define NVMC_ERASEUICR_ERASEUICR_Erase (1UL) /*!< Start erase of UICR */
+
+/* Register: NVMC_ERASEPAGEPARTIAL */
+/* Description: Register for partial erase of a page in code area */
+
+/* Bits 31..0 : Register for starting partial erase of a page in code area */
+#define NVMC_ERASEPAGEPARTIAL_ERASEPAGEPARTIAL_Pos (0UL) /*!< Position of ERASEPAGEPARTIAL field. */
+#define NVMC_ERASEPAGEPARTIAL_ERASEPAGEPARTIAL_Msk (0xFFFFFFFFUL << NVMC_ERASEPAGEPARTIAL_ERASEPAGEPARTIAL_Pos) /*!< Bit mask of ERASEPAGEPARTIAL field. */
+
+/* Register: NVMC_ERASEPAGEPARTIALCFG */
+/* Description: Register for partial erase configuration */
+
+/* Bits 6..0 : Duration of the partial erase in milliseconds */
+#define NVMC_ERASEPAGEPARTIALCFG_DURATION_Pos (0UL) /*!< Position of DURATION field. */
+#define NVMC_ERASEPAGEPARTIALCFG_DURATION_Msk (0x7FUL << NVMC_ERASEPAGEPARTIALCFG_DURATION_Pos) /*!< Bit mask of DURATION field. */
+
+/* Register: NVMC_ICACHECNF */
+/* Description: I-code cache configuration register. */
+
+/* Bit 8 : Cache profiling enable */
+#define NVMC_ICACHECNF_CACHEPROFEN_Pos (8UL) /*!< Position of CACHEPROFEN field. */
+#define NVMC_ICACHECNF_CACHEPROFEN_Msk (0x1UL << NVMC_ICACHECNF_CACHEPROFEN_Pos) /*!< Bit mask of CACHEPROFEN field. */
+#define NVMC_ICACHECNF_CACHEPROFEN_Disabled (0UL) /*!< Disable cache profiling */
+#define NVMC_ICACHECNF_CACHEPROFEN_Enabled (1UL) /*!< Enable cache profiling */
+
+/* Bit 0 : Cache enable */
+#define NVMC_ICACHECNF_CACHEEN_Pos (0UL) /*!< Position of CACHEEN field. */
+#define NVMC_ICACHECNF_CACHEEN_Msk (0x1UL << NVMC_ICACHECNF_CACHEEN_Pos) /*!< Bit mask of CACHEEN field. */
+#define NVMC_ICACHECNF_CACHEEN_Disabled (0UL) /*!< Disable cache. Invalidates all cache entries. */
+#define NVMC_ICACHECNF_CACHEEN_Enabled (1UL) /*!< Enable cache */
+
+/* Register: NVMC_IHIT */
+/* Description: I-code cache hit counter. */
+
+/* Bits 31..0 : Number of cache hits */
+#define NVMC_IHIT_HITS_Pos (0UL) /*!< Position of HITS field. */
+#define NVMC_IHIT_HITS_Msk (0xFFFFFFFFUL << NVMC_IHIT_HITS_Pos) /*!< Bit mask of HITS field. */
+
+/* Register: NVMC_IMISS */
+/* Description: I-code cache miss counter. */
+
+/* Bits 31..0 : Number of cache misses */
+#define NVMC_IMISS_MISSES_Pos (0UL) /*!< Position of MISSES field. */
+#define NVMC_IMISS_MISSES_Msk (0xFFFFFFFFUL << NVMC_IMISS_MISSES_Pos) /*!< Bit mask of MISSES field. */
+
+
+/* Peripheral: GPIO */
+/* Description: GPIO Port 1 */
+
+/* Register: GPIO_OUT */
+/* Description: Write GPIO port */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_OUT_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_OUT_PIN31_Msk (0x1UL << GPIO_OUT_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_OUT_PIN31_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN31_High (1UL) /*!< Pin driver is high */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_OUT_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_OUT_PIN30_Msk (0x1UL << GPIO_OUT_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_OUT_PIN30_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN30_High (1UL) /*!< Pin driver is high */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_OUT_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_OUT_PIN29_Msk (0x1UL << GPIO_OUT_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_OUT_PIN29_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN29_High (1UL) /*!< Pin driver is high */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_OUT_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_OUT_PIN28_Msk (0x1UL << GPIO_OUT_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_OUT_PIN28_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN28_High (1UL) /*!< Pin driver is high */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_OUT_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_OUT_PIN27_Msk (0x1UL << GPIO_OUT_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_OUT_PIN27_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN27_High (1UL) /*!< Pin driver is high */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_OUT_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_OUT_PIN26_Msk (0x1UL << GPIO_OUT_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_OUT_PIN26_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN26_High (1UL) /*!< Pin driver is high */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_OUT_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_OUT_PIN25_Msk (0x1UL << GPIO_OUT_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_OUT_PIN25_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN25_High (1UL) /*!< Pin driver is high */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_OUT_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_OUT_PIN24_Msk (0x1UL << GPIO_OUT_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_OUT_PIN24_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN24_High (1UL) /*!< Pin driver is high */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_OUT_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_OUT_PIN23_Msk (0x1UL << GPIO_OUT_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_OUT_PIN23_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN23_High (1UL) /*!< Pin driver is high */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_OUT_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_OUT_PIN22_Msk (0x1UL << GPIO_OUT_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_OUT_PIN22_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN22_High (1UL) /*!< Pin driver is high */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_OUT_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_OUT_PIN21_Msk (0x1UL << GPIO_OUT_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_OUT_PIN21_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN21_High (1UL) /*!< Pin driver is high */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_OUT_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_OUT_PIN20_Msk (0x1UL << GPIO_OUT_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_OUT_PIN20_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN20_High (1UL) /*!< Pin driver is high */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_OUT_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_OUT_PIN19_Msk (0x1UL << GPIO_OUT_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_OUT_PIN19_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN19_High (1UL) /*!< Pin driver is high */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_OUT_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_OUT_PIN18_Msk (0x1UL << GPIO_OUT_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_OUT_PIN18_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN18_High (1UL) /*!< Pin driver is high */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_OUT_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_OUT_PIN17_Msk (0x1UL << GPIO_OUT_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_OUT_PIN17_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN17_High (1UL) /*!< Pin driver is high */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_OUT_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_OUT_PIN16_Msk (0x1UL << GPIO_OUT_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_OUT_PIN16_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN16_High (1UL) /*!< Pin driver is high */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_OUT_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_OUT_PIN15_Msk (0x1UL << GPIO_OUT_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_OUT_PIN15_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN15_High (1UL) /*!< Pin driver is high */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_OUT_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_OUT_PIN14_Msk (0x1UL << GPIO_OUT_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_OUT_PIN14_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN14_High (1UL) /*!< Pin driver is high */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_OUT_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_OUT_PIN13_Msk (0x1UL << GPIO_OUT_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_OUT_PIN13_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN13_High (1UL) /*!< Pin driver is high */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_OUT_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_OUT_PIN12_Msk (0x1UL << GPIO_OUT_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_OUT_PIN12_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN12_High (1UL) /*!< Pin driver is high */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_OUT_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_OUT_PIN11_Msk (0x1UL << GPIO_OUT_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_OUT_PIN11_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN11_High (1UL) /*!< Pin driver is high */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_OUT_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_OUT_PIN10_Msk (0x1UL << GPIO_OUT_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_OUT_PIN10_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN10_High (1UL) /*!< Pin driver is high */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_OUT_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_OUT_PIN9_Msk (0x1UL << GPIO_OUT_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_OUT_PIN9_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN9_High (1UL) /*!< Pin driver is high */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_OUT_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_OUT_PIN8_Msk (0x1UL << GPIO_OUT_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_OUT_PIN8_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN8_High (1UL) /*!< Pin driver is high */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_OUT_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_OUT_PIN7_Msk (0x1UL << GPIO_OUT_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_OUT_PIN7_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN7_High (1UL) /*!< Pin driver is high */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_OUT_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_OUT_PIN6_Msk (0x1UL << GPIO_OUT_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_OUT_PIN6_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN6_High (1UL) /*!< Pin driver is high */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_OUT_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_OUT_PIN5_Msk (0x1UL << GPIO_OUT_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_OUT_PIN5_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN5_High (1UL) /*!< Pin driver is high */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_OUT_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_OUT_PIN4_Msk (0x1UL << GPIO_OUT_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_OUT_PIN4_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN4_High (1UL) /*!< Pin driver is high */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_OUT_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_OUT_PIN3_Msk (0x1UL << GPIO_OUT_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_OUT_PIN3_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN3_High (1UL) /*!< Pin driver is high */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_OUT_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_OUT_PIN2_Msk (0x1UL << GPIO_OUT_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_OUT_PIN2_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN2_High (1UL) /*!< Pin driver is high */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_OUT_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_OUT_PIN1_Msk (0x1UL << GPIO_OUT_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_OUT_PIN1_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN1_High (1UL) /*!< Pin driver is high */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_OUT_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_OUT_PIN0_Msk (0x1UL << GPIO_OUT_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_OUT_PIN0_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN0_High (1UL) /*!< Pin driver is high */
+
+/* Register: GPIO_OUTSET */
+/* Description: Set individual bits in GPIO port */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_OUTSET_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_OUTSET_PIN31_Msk (0x1UL << GPIO_OUTSET_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_OUTSET_PIN31_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN31_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN31_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_OUTSET_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_OUTSET_PIN30_Msk (0x1UL << GPIO_OUTSET_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_OUTSET_PIN30_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN30_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN30_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_OUTSET_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_OUTSET_PIN29_Msk (0x1UL << GPIO_OUTSET_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_OUTSET_PIN29_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN29_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN29_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_OUTSET_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_OUTSET_PIN28_Msk (0x1UL << GPIO_OUTSET_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_OUTSET_PIN28_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN28_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN28_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_OUTSET_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_OUTSET_PIN27_Msk (0x1UL << GPIO_OUTSET_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_OUTSET_PIN27_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN27_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN27_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_OUTSET_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_OUTSET_PIN26_Msk (0x1UL << GPIO_OUTSET_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_OUTSET_PIN26_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN26_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN26_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_OUTSET_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_OUTSET_PIN25_Msk (0x1UL << GPIO_OUTSET_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_OUTSET_PIN25_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN25_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN25_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_OUTSET_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_OUTSET_PIN24_Msk (0x1UL << GPIO_OUTSET_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_OUTSET_PIN24_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN24_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN24_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_OUTSET_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_OUTSET_PIN23_Msk (0x1UL << GPIO_OUTSET_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_OUTSET_PIN23_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN23_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN23_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_OUTSET_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_OUTSET_PIN22_Msk (0x1UL << GPIO_OUTSET_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_OUTSET_PIN22_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN22_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN22_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_OUTSET_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_OUTSET_PIN21_Msk (0x1UL << GPIO_OUTSET_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_OUTSET_PIN21_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN21_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN21_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_OUTSET_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_OUTSET_PIN20_Msk (0x1UL << GPIO_OUTSET_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_OUTSET_PIN20_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN20_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN20_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_OUTSET_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_OUTSET_PIN19_Msk (0x1UL << GPIO_OUTSET_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_OUTSET_PIN19_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN19_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN19_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_OUTSET_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_OUTSET_PIN18_Msk (0x1UL << GPIO_OUTSET_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_OUTSET_PIN18_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN18_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN18_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_OUTSET_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_OUTSET_PIN17_Msk (0x1UL << GPIO_OUTSET_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_OUTSET_PIN17_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN17_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN17_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_OUTSET_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_OUTSET_PIN16_Msk (0x1UL << GPIO_OUTSET_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_OUTSET_PIN16_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN16_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN16_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_OUTSET_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_OUTSET_PIN15_Msk (0x1UL << GPIO_OUTSET_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_OUTSET_PIN15_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN15_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN15_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_OUTSET_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_OUTSET_PIN14_Msk (0x1UL << GPIO_OUTSET_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_OUTSET_PIN14_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN14_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN14_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_OUTSET_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_OUTSET_PIN13_Msk (0x1UL << GPIO_OUTSET_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_OUTSET_PIN13_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN13_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN13_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_OUTSET_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_OUTSET_PIN12_Msk (0x1UL << GPIO_OUTSET_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_OUTSET_PIN12_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN12_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN12_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_OUTSET_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_OUTSET_PIN11_Msk (0x1UL << GPIO_OUTSET_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_OUTSET_PIN11_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN11_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN11_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_OUTSET_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_OUTSET_PIN10_Msk (0x1UL << GPIO_OUTSET_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_OUTSET_PIN10_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN10_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN10_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_OUTSET_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_OUTSET_PIN9_Msk (0x1UL << GPIO_OUTSET_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_OUTSET_PIN9_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN9_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN9_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_OUTSET_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_OUTSET_PIN8_Msk (0x1UL << GPIO_OUTSET_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_OUTSET_PIN8_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN8_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN8_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_OUTSET_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_OUTSET_PIN7_Msk (0x1UL << GPIO_OUTSET_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_OUTSET_PIN7_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN7_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN7_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_OUTSET_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_OUTSET_PIN6_Msk (0x1UL << GPIO_OUTSET_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_OUTSET_PIN6_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN6_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN6_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_OUTSET_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_OUTSET_PIN5_Msk (0x1UL << GPIO_OUTSET_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_OUTSET_PIN5_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN5_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN5_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_OUTSET_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_OUTSET_PIN4_Msk (0x1UL << GPIO_OUTSET_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_OUTSET_PIN4_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN4_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN4_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_OUTSET_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_OUTSET_PIN3_Msk (0x1UL << GPIO_OUTSET_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_OUTSET_PIN3_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN3_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN3_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_OUTSET_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_OUTSET_PIN2_Msk (0x1UL << GPIO_OUTSET_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_OUTSET_PIN2_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN2_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN2_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_OUTSET_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_OUTSET_PIN1_Msk (0x1UL << GPIO_OUTSET_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_OUTSET_PIN1_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN1_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN1_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_OUTSET_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_OUTSET_PIN0_Msk (0x1UL << GPIO_OUTSET_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_OUTSET_PIN0_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN0_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN0_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Register: GPIO_OUTCLR */
+/* Description: Clear individual bits in GPIO port */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_OUTCLR_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_OUTCLR_PIN31_Msk (0x1UL << GPIO_OUTCLR_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_OUTCLR_PIN31_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN31_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN31_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_OUTCLR_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_OUTCLR_PIN30_Msk (0x1UL << GPIO_OUTCLR_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_OUTCLR_PIN30_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN30_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN30_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_OUTCLR_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_OUTCLR_PIN29_Msk (0x1UL << GPIO_OUTCLR_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_OUTCLR_PIN29_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN29_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN29_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_OUTCLR_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_OUTCLR_PIN28_Msk (0x1UL << GPIO_OUTCLR_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_OUTCLR_PIN28_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN28_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN28_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_OUTCLR_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_OUTCLR_PIN27_Msk (0x1UL << GPIO_OUTCLR_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_OUTCLR_PIN27_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN27_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN27_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_OUTCLR_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_OUTCLR_PIN26_Msk (0x1UL << GPIO_OUTCLR_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_OUTCLR_PIN26_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN26_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN26_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_OUTCLR_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_OUTCLR_PIN25_Msk (0x1UL << GPIO_OUTCLR_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_OUTCLR_PIN25_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN25_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN25_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_OUTCLR_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_OUTCLR_PIN24_Msk (0x1UL << GPIO_OUTCLR_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_OUTCLR_PIN24_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN24_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN24_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_OUTCLR_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_OUTCLR_PIN23_Msk (0x1UL << GPIO_OUTCLR_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_OUTCLR_PIN23_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN23_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN23_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_OUTCLR_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_OUTCLR_PIN22_Msk (0x1UL << GPIO_OUTCLR_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_OUTCLR_PIN22_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN22_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN22_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_OUTCLR_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_OUTCLR_PIN21_Msk (0x1UL << GPIO_OUTCLR_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_OUTCLR_PIN21_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN21_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN21_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_OUTCLR_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_OUTCLR_PIN20_Msk (0x1UL << GPIO_OUTCLR_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_OUTCLR_PIN20_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN20_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN20_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_OUTCLR_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_OUTCLR_PIN19_Msk (0x1UL << GPIO_OUTCLR_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_OUTCLR_PIN19_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN19_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN19_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_OUTCLR_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_OUTCLR_PIN18_Msk (0x1UL << GPIO_OUTCLR_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_OUTCLR_PIN18_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN18_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN18_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_OUTCLR_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_OUTCLR_PIN17_Msk (0x1UL << GPIO_OUTCLR_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_OUTCLR_PIN17_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN17_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN17_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_OUTCLR_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_OUTCLR_PIN16_Msk (0x1UL << GPIO_OUTCLR_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_OUTCLR_PIN16_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN16_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN16_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_OUTCLR_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_OUTCLR_PIN15_Msk (0x1UL << GPIO_OUTCLR_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_OUTCLR_PIN15_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN15_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN15_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_OUTCLR_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_OUTCLR_PIN14_Msk (0x1UL << GPIO_OUTCLR_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_OUTCLR_PIN14_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN14_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN14_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_OUTCLR_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_OUTCLR_PIN13_Msk (0x1UL << GPIO_OUTCLR_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_OUTCLR_PIN13_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN13_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN13_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_OUTCLR_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_OUTCLR_PIN12_Msk (0x1UL << GPIO_OUTCLR_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_OUTCLR_PIN12_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN12_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN12_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_OUTCLR_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_OUTCLR_PIN11_Msk (0x1UL << GPIO_OUTCLR_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_OUTCLR_PIN11_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN11_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN11_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_OUTCLR_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_OUTCLR_PIN10_Msk (0x1UL << GPIO_OUTCLR_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_OUTCLR_PIN10_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN10_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN10_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_OUTCLR_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_OUTCLR_PIN9_Msk (0x1UL << GPIO_OUTCLR_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_OUTCLR_PIN9_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN9_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN9_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_OUTCLR_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_OUTCLR_PIN8_Msk (0x1UL << GPIO_OUTCLR_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_OUTCLR_PIN8_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN8_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN8_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_OUTCLR_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_OUTCLR_PIN7_Msk (0x1UL << GPIO_OUTCLR_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_OUTCLR_PIN7_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN7_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN7_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_OUTCLR_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_OUTCLR_PIN6_Msk (0x1UL << GPIO_OUTCLR_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_OUTCLR_PIN6_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN6_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN6_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_OUTCLR_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_OUTCLR_PIN5_Msk (0x1UL << GPIO_OUTCLR_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_OUTCLR_PIN5_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN5_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN5_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_OUTCLR_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_OUTCLR_PIN4_Msk (0x1UL << GPIO_OUTCLR_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_OUTCLR_PIN4_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN4_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN4_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_OUTCLR_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_OUTCLR_PIN3_Msk (0x1UL << GPIO_OUTCLR_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_OUTCLR_PIN3_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN3_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN3_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_OUTCLR_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_OUTCLR_PIN2_Msk (0x1UL << GPIO_OUTCLR_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_OUTCLR_PIN2_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN2_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN2_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_OUTCLR_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_OUTCLR_PIN1_Msk (0x1UL << GPIO_OUTCLR_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_OUTCLR_PIN1_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN1_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN1_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_OUTCLR_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_OUTCLR_PIN0_Msk (0x1UL << GPIO_OUTCLR_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_OUTCLR_PIN0_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN0_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN0_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Register: GPIO_IN */
+/* Description: Read GPIO port */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_IN_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_IN_PIN31_Msk (0x1UL << GPIO_IN_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_IN_PIN31_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN31_High (1UL) /*!< Pin input is high */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_IN_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_IN_PIN30_Msk (0x1UL << GPIO_IN_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_IN_PIN30_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN30_High (1UL) /*!< Pin input is high */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_IN_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_IN_PIN29_Msk (0x1UL << GPIO_IN_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_IN_PIN29_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN29_High (1UL) /*!< Pin input is high */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_IN_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_IN_PIN28_Msk (0x1UL << GPIO_IN_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_IN_PIN28_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN28_High (1UL) /*!< Pin input is high */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_IN_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_IN_PIN27_Msk (0x1UL << GPIO_IN_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_IN_PIN27_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN27_High (1UL) /*!< Pin input is high */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_IN_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_IN_PIN26_Msk (0x1UL << GPIO_IN_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_IN_PIN26_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN26_High (1UL) /*!< Pin input is high */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_IN_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_IN_PIN25_Msk (0x1UL << GPIO_IN_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_IN_PIN25_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN25_High (1UL) /*!< Pin input is high */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_IN_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_IN_PIN24_Msk (0x1UL << GPIO_IN_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_IN_PIN24_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN24_High (1UL) /*!< Pin input is high */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_IN_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_IN_PIN23_Msk (0x1UL << GPIO_IN_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_IN_PIN23_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN23_High (1UL) /*!< Pin input is high */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_IN_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_IN_PIN22_Msk (0x1UL << GPIO_IN_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_IN_PIN22_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN22_High (1UL) /*!< Pin input is high */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_IN_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_IN_PIN21_Msk (0x1UL << GPIO_IN_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_IN_PIN21_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN21_High (1UL) /*!< Pin input is high */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_IN_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_IN_PIN20_Msk (0x1UL << GPIO_IN_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_IN_PIN20_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN20_High (1UL) /*!< Pin input is high */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_IN_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_IN_PIN19_Msk (0x1UL << GPIO_IN_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_IN_PIN19_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN19_High (1UL) /*!< Pin input is high */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_IN_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_IN_PIN18_Msk (0x1UL << GPIO_IN_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_IN_PIN18_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN18_High (1UL) /*!< Pin input is high */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_IN_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_IN_PIN17_Msk (0x1UL << GPIO_IN_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_IN_PIN17_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN17_High (1UL) /*!< Pin input is high */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_IN_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_IN_PIN16_Msk (0x1UL << GPIO_IN_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_IN_PIN16_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN16_High (1UL) /*!< Pin input is high */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_IN_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_IN_PIN15_Msk (0x1UL << GPIO_IN_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_IN_PIN15_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN15_High (1UL) /*!< Pin input is high */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_IN_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_IN_PIN14_Msk (0x1UL << GPIO_IN_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_IN_PIN14_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN14_High (1UL) /*!< Pin input is high */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_IN_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_IN_PIN13_Msk (0x1UL << GPIO_IN_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_IN_PIN13_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN13_High (1UL) /*!< Pin input is high */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_IN_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_IN_PIN12_Msk (0x1UL << GPIO_IN_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_IN_PIN12_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN12_High (1UL) /*!< Pin input is high */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_IN_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_IN_PIN11_Msk (0x1UL << GPIO_IN_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_IN_PIN11_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN11_High (1UL) /*!< Pin input is high */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_IN_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_IN_PIN10_Msk (0x1UL << GPIO_IN_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_IN_PIN10_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN10_High (1UL) /*!< Pin input is high */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_IN_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_IN_PIN9_Msk (0x1UL << GPIO_IN_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_IN_PIN9_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN9_High (1UL) /*!< Pin input is high */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_IN_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_IN_PIN8_Msk (0x1UL << GPIO_IN_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_IN_PIN8_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN8_High (1UL) /*!< Pin input is high */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_IN_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_IN_PIN7_Msk (0x1UL << GPIO_IN_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_IN_PIN7_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN7_High (1UL) /*!< Pin input is high */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_IN_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_IN_PIN6_Msk (0x1UL << GPIO_IN_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_IN_PIN6_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN6_High (1UL) /*!< Pin input is high */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_IN_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_IN_PIN5_Msk (0x1UL << GPIO_IN_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_IN_PIN5_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN5_High (1UL) /*!< Pin input is high */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_IN_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_IN_PIN4_Msk (0x1UL << GPIO_IN_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_IN_PIN4_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN4_High (1UL) /*!< Pin input is high */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_IN_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_IN_PIN3_Msk (0x1UL << GPIO_IN_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_IN_PIN3_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN3_High (1UL) /*!< Pin input is high */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_IN_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_IN_PIN2_Msk (0x1UL << GPIO_IN_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_IN_PIN2_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN2_High (1UL) /*!< Pin input is high */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_IN_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_IN_PIN1_Msk (0x1UL << GPIO_IN_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_IN_PIN1_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN1_High (1UL) /*!< Pin input is high */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_IN_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_IN_PIN0_Msk (0x1UL << GPIO_IN_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_IN_PIN0_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN0_High (1UL) /*!< Pin input is high */
+
+/* Register: GPIO_DIR */
+/* Description: Direction of GPIO pins */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_DIR_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_DIR_PIN31_Msk (0x1UL << GPIO_DIR_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_DIR_PIN31_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN31_Output (1UL) /*!< Pin set as output */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_DIR_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_DIR_PIN30_Msk (0x1UL << GPIO_DIR_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_DIR_PIN30_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN30_Output (1UL) /*!< Pin set as output */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_DIR_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_DIR_PIN29_Msk (0x1UL << GPIO_DIR_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_DIR_PIN29_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN29_Output (1UL) /*!< Pin set as output */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_DIR_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_DIR_PIN28_Msk (0x1UL << GPIO_DIR_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_DIR_PIN28_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN28_Output (1UL) /*!< Pin set as output */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_DIR_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_DIR_PIN27_Msk (0x1UL << GPIO_DIR_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_DIR_PIN27_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN27_Output (1UL) /*!< Pin set as output */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_DIR_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_DIR_PIN26_Msk (0x1UL << GPIO_DIR_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_DIR_PIN26_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN26_Output (1UL) /*!< Pin set as output */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_DIR_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_DIR_PIN25_Msk (0x1UL << GPIO_DIR_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_DIR_PIN25_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN25_Output (1UL) /*!< Pin set as output */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_DIR_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_DIR_PIN24_Msk (0x1UL << GPIO_DIR_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_DIR_PIN24_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN24_Output (1UL) /*!< Pin set as output */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_DIR_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_DIR_PIN23_Msk (0x1UL << GPIO_DIR_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_DIR_PIN23_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN23_Output (1UL) /*!< Pin set as output */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_DIR_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_DIR_PIN22_Msk (0x1UL << GPIO_DIR_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_DIR_PIN22_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN22_Output (1UL) /*!< Pin set as output */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_DIR_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_DIR_PIN21_Msk (0x1UL << GPIO_DIR_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_DIR_PIN21_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN21_Output (1UL) /*!< Pin set as output */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_DIR_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_DIR_PIN20_Msk (0x1UL << GPIO_DIR_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_DIR_PIN20_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN20_Output (1UL) /*!< Pin set as output */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_DIR_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_DIR_PIN19_Msk (0x1UL << GPIO_DIR_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_DIR_PIN19_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN19_Output (1UL) /*!< Pin set as output */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_DIR_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_DIR_PIN18_Msk (0x1UL << GPIO_DIR_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_DIR_PIN18_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN18_Output (1UL) /*!< Pin set as output */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_DIR_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_DIR_PIN17_Msk (0x1UL << GPIO_DIR_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_DIR_PIN17_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN17_Output (1UL) /*!< Pin set as output */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_DIR_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_DIR_PIN16_Msk (0x1UL << GPIO_DIR_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_DIR_PIN16_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN16_Output (1UL) /*!< Pin set as output */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_DIR_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_DIR_PIN15_Msk (0x1UL << GPIO_DIR_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_DIR_PIN15_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN15_Output (1UL) /*!< Pin set as output */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_DIR_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_DIR_PIN14_Msk (0x1UL << GPIO_DIR_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_DIR_PIN14_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN14_Output (1UL) /*!< Pin set as output */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_DIR_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_DIR_PIN13_Msk (0x1UL << GPIO_DIR_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_DIR_PIN13_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN13_Output (1UL) /*!< Pin set as output */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_DIR_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_DIR_PIN12_Msk (0x1UL << GPIO_DIR_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_DIR_PIN12_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN12_Output (1UL) /*!< Pin set as output */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_DIR_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_DIR_PIN11_Msk (0x1UL << GPIO_DIR_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_DIR_PIN11_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN11_Output (1UL) /*!< Pin set as output */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_DIR_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_DIR_PIN10_Msk (0x1UL << GPIO_DIR_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_DIR_PIN10_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN10_Output (1UL) /*!< Pin set as output */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_DIR_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_DIR_PIN9_Msk (0x1UL << GPIO_DIR_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_DIR_PIN9_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN9_Output (1UL) /*!< Pin set as output */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_DIR_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_DIR_PIN8_Msk (0x1UL << GPIO_DIR_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_DIR_PIN8_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN8_Output (1UL) /*!< Pin set as output */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_DIR_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_DIR_PIN7_Msk (0x1UL << GPIO_DIR_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_DIR_PIN7_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN7_Output (1UL) /*!< Pin set as output */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_DIR_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_DIR_PIN6_Msk (0x1UL << GPIO_DIR_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_DIR_PIN6_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN6_Output (1UL) /*!< Pin set as output */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_DIR_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_DIR_PIN5_Msk (0x1UL << GPIO_DIR_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_DIR_PIN5_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN5_Output (1UL) /*!< Pin set as output */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_DIR_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_DIR_PIN4_Msk (0x1UL << GPIO_DIR_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_DIR_PIN4_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN4_Output (1UL) /*!< Pin set as output */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_DIR_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_DIR_PIN3_Msk (0x1UL << GPIO_DIR_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_DIR_PIN3_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN3_Output (1UL) /*!< Pin set as output */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_DIR_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_DIR_PIN2_Msk (0x1UL << GPIO_DIR_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_DIR_PIN2_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN2_Output (1UL) /*!< Pin set as output */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_DIR_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_DIR_PIN1_Msk (0x1UL << GPIO_DIR_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_DIR_PIN1_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN1_Output (1UL) /*!< Pin set as output */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_DIR_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_DIR_PIN0_Msk (0x1UL << GPIO_DIR_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_DIR_PIN0_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN0_Output (1UL) /*!< Pin set as output */
+
+/* Register: GPIO_DIRSET */
+/* Description: DIR set register */
+
+/* Bit 31 : Set as output pin 31 */
+#define GPIO_DIRSET_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_DIRSET_PIN31_Msk (0x1UL << GPIO_DIRSET_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_DIRSET_PIN31_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN31_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN31_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 30 : Set as output pin 30 */
+#define GPIO_DIRSET_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_DIRSET_PIN30_Msk (0x1UL << GPIO_DIRSET_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_DIRSET_PIN30_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN30_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN30_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 29 : Set as output pin 29 */
+#define GPIO_DIRSET_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_DIRSET_PIN29_Msk (0x1UL << GPIO_DIRSET_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_DIRSET_PIN29_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN29_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN29_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 28 : Set as output pin 28 */
+#define GPIO_DIRSET_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_DIRSET_PIN28_Msk (0x1UL << GPIO_DIRSET_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_DIRSET_PIN28_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN28_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN28_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 27 : Set as output pin 27 */
+#define GPIO_DIRSET_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_DIRSET_PIN27_Msk (0x1UL << GPIO_DIRSET_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_DIRSET_PIN27_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN27_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN27_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 26 : Set as output pin 26 */
+#define GPIO_DIRSET_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_DIRSET_PIN26_Msk (0x1UL << GPIO_DIRSET_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_DIRSET_PIN26_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN26_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN26_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 25 : Set as output pin 25 */
+#define GPIO_DIRSET_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_DIRSET_PIN25_Msk (0x1UL << GPIO_DIRSET_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_DIRSET_PIN25_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN25_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN25_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 24 : Set as output pin 24 */
+#define GPIO_DIRSET_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_DIRSET_PIN24_Msk (0x1UL << GPIO_DIRSET_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_DIRSET_PIN24_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN24_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN24_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 23 : Set as output pin 23 */
+#define GPIO_DIRSET_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_DIRSET_PIN23_Msk (0x1UL << GPIO_DIRSET_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_DIRSET_PIN23_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN23_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN23_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 22 : Set as output pin 22 */
+#define GPIO_DIRSET_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_DIRSET_PIN22_Msk (0x1UL << GPIO_DIRSET_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_DIRSET_PIN22_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN22_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN22_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 21 : Set as output pin 21 */
+#define GPIO_DIRSET_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_DIRSET_PIN21_Msk (0x1UL << GPIO_DIRSET_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_DIRSET_PIN21_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN21_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN21_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 20 : Set as output pin 20 */
+#define GPIO_DIRSET_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_DIRSET_PIN20_Msk (0x1UL << GPIO_DIRSET_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_DIRSET_PIN20_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN20_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN20_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 19 : Set as output pin 19 */
+#define GPIO_DIRSET_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_DIRSET_PIN19_Msk (0x1UL << GPIO_DIRSET_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_DIRSET_PIN19_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN19_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN19_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 18 : Set as output pin 18 */
+#define GPIO_DIRSET_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_DIRSET_PIN18_Msk (0x1UL << GPIO_DIRSET_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_DIRSET_PIN18_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN18_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN18_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 17 : Set as output pin 17 */
+#define GPIO_DIRSET_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_DIRSET_PIN17_Msk (0x1UL << GPIO_DIRSET_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_DIRSET_PIN17_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN17_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN17_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 16 : Set as output pin 16 */
+#define GPIO_DIRSET_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_DIRSET_PIN16_Msk (0x1UL << GPIO_DIRSET_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_DIRSET_PIN16_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN16_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN16_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 15 : Set as output pin 15 */
+#define GPIO_DIRSET_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_DIRSET_PIN15_Msk (0x1UL << GPIO_DIRSET_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_DIRSET_PIN15_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN15_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN15_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 14 : Set as output pin 14 */
+#define GPIO_DIRSET_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_DIRSET_PIN14_Msk (0x1UL << GPIO_DIRSET_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_DIRSET_PIN14_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN14_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN14_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 13 : Set as output pin 13 */
+#define GPIO_DIRSET_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_DIRSET_PIN13_Msk (0x1UL << GPIO_DIRSET_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_DIRSET_PIN13_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN13_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN13_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 12 : Set as output pin 12 */
+#define GPIO_DIRSET_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_DIRSET_PIN12_Msk (0x1UL << GPIO_DIRSET_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_DIRSET_PIN12_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN12_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN12_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 11 : Set as output pin 11 */
+#define GPIO_DIRSET_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_DIRSET_PIN11_Msk (0x1UL << GPIO_DIRSET_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_DIRSET_PIN11_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN11_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN11_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 10 : Set as output pin 10 */
+#define GPIO_DIRSET_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_DIRSET_PIN10_Msk (0x1UL << GPIO_DIRSET_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_DIRSET_PIN10_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN10_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN10_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 9 : Set as output pin 9 */
+#define GPIO_DIRSET_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_DIRSET_PIN9_Msk (0x1UL << GPIO_DIRSET_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_DIRSET_PIN9_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN9_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN9_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 8 : Set as output pin 8 */
+#define GPIO_DIRSET_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_DIRSET_PIN8_Msk (0x1UL << GPIO_DIRSET_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_DIRSET_PIN8_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN8_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN8_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 7 : Set as output pin 7 */
+#define GPIO_DIRSET_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_DIRSET_PIN7_Msk (0x1UL << GPIO_DIRSET_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_DIRSET_PIN7_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN7_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN7_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 6 : Set as output pin 6 */
+#define GPIO_DIRSET_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_DIRSET_PIN6_Msk (0x1UL << GPIO_DIRSET_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_DIRSET_PIN6_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN6_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN6_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 5 : Set as output pin 5 */
+#define GPIO_DIRSET_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_DIRSET_PIN5_Msk (0x1UL << GPIO_DIRSET_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_DIRSET_PIN5_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN5_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN5_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 4 : Set as output pin 4 */
+#define GPIO_DIRSET_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_DIRSET_PIN4_Msk (0x1UL << GPIO_DIRSET_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_DIRSET_PIN4_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN4_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN4_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 3 : Set as output pin 3 */
+#define GPIO_DIRSET_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_DIRSET_PIN3_Msk (0x1UL << GPIO_DIRSET_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_DIRSET_PIN3_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN3_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN3_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 2 : Set as output pin 2 */
+#define GPIO_DIRSET_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_DIRSET_PIN2_Msk (0x1UL << GPIO_DIRSET_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_DIRSET_PIN2_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN2_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN2_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 1 : Set as output pin 1 */
+#define GPIO_DIRSET_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_DIRSET_PIN1_Msk (0x1UL << GPIO_DIRSET_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_DIRSET_PIN1_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN1_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN1_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 0 : Set as output pin 0 */
+#define GPIO_DIRSET_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_DIRSET_PIN0_Msk (0x1UL << GPIO_DIRSET_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_DIRSET_PIN0_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN0_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN0_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Register: GPIO_DIRCLR */
+/* Description: DIR clear register */
+
+/* Bit 31 : Set as input pin 31 */
+#define GPIO_DIRCLR_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_DIRCLR_PIN31_Msk (0x1UL << GPIO_DIRCLR_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_DIRCLR_PIN31_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN31_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN31_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 30 : Set as input pin 30 */
+#define GPIO_DIRCLR_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_DIRCLR_PIN30_Msk (0x1UL << GPIO_DIRCLR_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_DIRCLR_PIN30_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN30_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN30_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 29 : Set as input pin 29 */
+#define GPIO_DIRCLR_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_DIRCLR_PIN29_Msk (0x1UL << GPIO_DIRCLR_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_DIRCLR_PIN29_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN29_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN29_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 28 : Set as input pin 28 */
+#define GPIO_DIRCLR_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_DIRCLR_PIN28_Msk (0x1UL << GPIO_DIRCLR_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_DIRCLR_PIN28_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN28_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN28_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 27 : Set as input pin 27 */
+#define GPIO_DIRCLR_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_DIRCLR_PIN27_Msk (0x1UL << GPIO_DIRCLR_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_DIRCLR_PIN27_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN27_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN27_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 26 : Set as input pin 26 */
+#define GPIO_DIRCLR_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_DIRCLR_PIN26_Msk (0x1UL << GPIO_DIRCLR_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_DIRCLR_PIN26_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN26_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN26_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 25 : Set as input pin 25 */
+#define GPIO_DIRCLR_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_DIRCLR_PIN25_Msk (0x1UL << GPIO_DIRCLR_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_DIRCLR_PIN25_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN25_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN25_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 24 : Set as input pin 24 */
+#define GPIO_DIRCLR_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_DIRCLR_PIN24_Msk (0x1UL << GPIO_DIRCLR_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_DIRCLR_PIN24_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN24_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN24_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 23 : Set as input pin 23 */
+#define GPIO_DIRCLR_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_DIRCLR_PIN23_Msk (0x1UL << GPIO_DIRCLR_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_DIRCLR_PIN23_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN23_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN23_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 22 : Set as input pin 22 */
+#define GPIO_DIRCLR_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_DIRCLR_PIN22_Msk (0x1UL << GPIO_DIRCLR_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_DIRCLR_PIN22_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN22_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN22_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 21 : Set as input pin 21 */
+#define GPIO_DIRCLR_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_DIRCLR_PIN21_Msk (0x1UL << GPIO_DIRCLR_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_DIRCLR_PIN21_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN21_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN21_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 20 : Set as input pin 20 */
+#define GPIO_DIRCLR_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_DIRCLR_PIN20_Msk (0x1UL << GPIO_DIRCLR_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_DIRCLR_PIN20_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN20_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN20_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 19 : Set as input pin 19 */
+#define GPIO_DIRCLR_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_DIRCLR_PIN19_Msk (0x1UL << GPIO_DIRCLR_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_DIRCLR_PIN19_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN19_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN19_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 18 : Set as input pin 18 */
+#define GPIO_DIRCLR_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_DIRCLR_PIN18_Msk (0x1UL << GPIO_DIRCLR_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_DIRCLR_PIN18_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN18_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN18_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 17 : Set as input pin 17 */
+#define GPIO_DIRCLR_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_DIRCLR_PIN17_Msk (0x1UL << GPIO_DIRCLR_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_DIRCLR_PIN17_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN17_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN17_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 16 : Set as input pin 16 */
+#define GPIO_DIRCLR_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_DIRCLR_PIN16_Msk (0x1UL << GPIO_DIRCLR_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_DIRCLR_PIN16_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN16_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN16_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 15 : Set as input pin 15 */
+#define GPIO_DIRCLR_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_DIRCLR_PIN15_Msk (0x1UL << GPIO_DIRCLR_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_DIRCLR_PIN15_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN15_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN15_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 14 : Set as input pin 14 */
+#define GPIO_DIRCLR_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_DIRCLR_PIN14_Msk (0x1UL << GPIO_DIRCLR_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_DIRCLR_PIN14_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN14_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN14_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 13 : Set as input pin 13 */
+#define GPIO_DIRCLR_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_DIRCLR_PIN13_Msk (0x1UL << GPIO_DIRCLR_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_DIRCLR_PIN13_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN13_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN13_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 12 : Set as input pin 12 */
+#define GPIO_DIRCLR_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_DIRCLR_PIN12_Msk (0x1UL << GPIO_DIRCLR_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_DIRCLR_PIN12_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN12_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN12_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 11 : Set as input pin 11 */
+#define GPIO_DIRCLR_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_DIRCLR_PIN11_Msk (0x1UL << GPIO_DIRCLR_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_DIRCLR_PIN11_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN11_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN11_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 10 : Set as input pin 10 */
+#define GPIO_DIRCLR_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_DIRCLR_PIN10_Msk (0x1UL << GPIO_DIRCLR_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_DIRCLR_PIN10_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN10_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN10_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 9 : Set as input pin 9 */
+#define GPIO_DIRCLR_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_DIRCLR_PIN9_Msk (0x1UL << GPIO_DIRCLR_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_DIRCLR_PIN9_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN9_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN9_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 8 : Set as input pin 8 */
+#define GPIO_DIRCLR_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_DIRCLR_PIN8_Msk (0x1UL << GPIO_DIRCLR_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_DIRCLR_PIN8_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN8_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN8_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 7 : Set as input pin 7 */
+#define GPIO_DIRCLR_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_DIRCLR_PIN7_Msk (0x1UL << GPIO_DIRCLR_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_DIRCLR_PIN7_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN7_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN7_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 6 : Set as input pin 6 */
+#define GPIO_DIRCLR_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_DIRCLR_PIN6_Msk (0x1UL << GPIO_DIRCLR_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_DIRCLR_PIN6_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN6_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN6_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 5 : Set as input pin 5 */
+#define GPIO_DIRCLR_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_DIRCLR_PIN5_Msk (0x1UL << GPIO_DIRCLR_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_DIRCLR_PIN5_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN5_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN5_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 4 : Set as input pin 4 */
+#define GPIO_DIRCLR_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_DIRCLR_PIN4_Msk (0x1UL << GPIO_DIRCLR_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_DIRCLR_PIN4_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN4_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN4_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 3 : Set as input pin 3 */
+#define GPIO_DIRCLR_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_DIRCLR_PIN3_Msk (0x1UL << GPIO_DIRCLR_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_DIRCLR_PIN3_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN3_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN3_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 2 : Set as input pin 2 */
+#define GPIO_DIRCLR_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_DIRCLR_PIN2_Msk (0x1UL << GPIO_DIRCLR_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_DIRCLR_PIN2_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN2_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN2_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 1 : Set as input pin 1 */
+#define GPIO_DIRCLR_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_DIRCLR_PIN1_Msk (0x1UL << GPIO_DIRCLR_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_DIRCLR_PIN1_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN1_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN1_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 0 : Set as input pin 0 */
+#define GPIO_DIRCLR_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_DIRCLR_PIN0_Msk (0x1UL << GPIO_DIRCLR_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_DIRCLR_PIN0_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN0_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN0_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Register: GPIO_LATCH */
+/* Description: Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF[n].SENSE registers */
+
+/* Bit 31 : Status on whether PIN31 has met criteria set in PIN_CNF31.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_LATCH_PIN31_Msk (0x1UL << GPIO_LATCH_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_LATCH_PIN31_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN31_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 30 : Status on whether PIN30 has met criteria set in PIN_CNF30.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_LATCH_PIN30_Msk (0x1UL << GPIO_LATCH_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_LATCH_PIN30_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN30_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 29 : Status on whether PIN29 has met criteria set in PIN_CNF29.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_LATCH_PIN29_Msk (0x1UL << GPIO_LATCH_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_LATCH_PIN29_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN29_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 28 : Status on whether PIN28 has met criteria set in PIN_CNF28.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_LATCH_PIN28_Msk (0x1UL << GPIO_LATCH_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_LATCH_PIN28_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN28_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 27 : Status on whether PIN27 has met criteria set in PIN_CNF27.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_LATCH_PIN27_Msk (0x1UL << GPIO_LATCH_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_LATCH_PIN27_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN27_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 26 : Status on whether PIN26 has met criteria set in PIN_CNF26.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_LATCH_PIN26_Msk (0x1UL << GPIO_LATCH_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_LATCH_PIN26_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN26_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 25 : Status on whether PIN25 has met criteria set in PIN_CNF25.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_LATCH_PIN25_Msk (0x1UL << GPIO_LATCH_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_LATCH_PIN25_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN25_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 24 : Status on whether PIN24 has met criteria set in PIN_CNF24.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_LATCH_PIN24_Msk (0x1UL << GPIO_LATCH_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_LATCH_PIN24_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN24_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 23 : Status on whether PIN23 has met criteria set in PIN_CNF23.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_LATCH_PIN23_Msk (0x1UL << GPIO_LATCH_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_LATCH_PIN23_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN23_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 22 : Status on whether PIN22 has met criteria set in PIN_CNF22.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_LATCH_PIN22_Msk (0x1UL << GPIO_LATCH_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_LATCH_PIN22_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN22_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 21 : Status on whether PIN21 has met criteria set in PIN_CNF21.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_LATCH_PIN21_Msk (0x1UL << GPIO_LATCH_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_LATCH_PIN21_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN21_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 20 : Status on whether PIN20 has met criteria set in PIN_CNF20.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_LATCH_PIN20_Msk (0x1UL << GPIO_LATCH_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_LATCH_PIN20_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN20_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 19 : Status on whether PIN19 has met criteria set in PIN_CNF19.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_LATCH_PIN19_Msk (0x1UL << GPIO_LATCH_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_LATCH_PIN19_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN19_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 18 : Status on whether PIN18 has met criteria set in PIN_CNF18.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_LATCH_PIN18_Msk (0x1UL << GPIO_LATCH_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_LATCH_PIN18_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN18_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 17 : Status on whether PIN17 has met criteria set in PIN_CNF17.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_LATCH_PIN17_Msk (0x1UL << GPIO_LATCH_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_LATCH_PIN17_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN17_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 16 : Status on whether PIN16 has met criteria set in PIN_CNF16.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_LATCH_PIN16_Msk (0x1UL << GPIO_LATCH_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_LATCH_PIN16_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN16_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 15 : Status on whether PIN15 has met criteria set in PIN_CNF15.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_LATCH_PIN15_Msk (0x1UL << GPIO_LATCH_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_LATCH_PIN15_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN15_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 14 : Status on whether PIN14 has met criteria set in PIN_CNF14.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_LATCH_PIN14_Msk (0x1UL << GPIO_LATCH_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_LATCH_PIN14_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN14_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 13 : Status on whether PIN13 has met criteria set in PIN_CNF13.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_LATCH_PIN13_Msk (0x1UL << GPIO_LATCH_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_LATCH_PIN13_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN13_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 12 : Status on whether PIN12 has met criteria set in PIN_CNF12.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_LATCH_PIN12_Msk (0x1UL << GPIO_LATCH_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_LATCH_PIN12_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN12_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 11 : Status on whether PIN11 has met criteria set in PIN_CNF11.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_LATCH_PIN11_Msk (0x1UL << GPIO_LATCH_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_LATCH_PIN11_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN11_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 10 : Status on whether PIN10 has met criteria set in PIN_CNF10.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_LATCH_PIN10_Msk (0x1UL << GPIO_LATCH_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_LATCH_PIN10_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN10_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 9 : Status on whether PIN9 has met criteria set in PIN_CNF9.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_LATCH_PIN9_Msk (0x1UL << GPIO_LATCH_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_LATCH_PIN9_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN9_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 8 : Status on whether PIN8 has met criteria set in PIN_CNF8.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_LATCH_PIN8_Msk (0x1UL << GPIO_LATCH_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_LATCH_PIN8_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN8_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 7 : Status on whether PIN7 has met criteria set in PIN_CNF7.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_LATCH_PIN7_Msk (0x1UL << GPIO_LATCH_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_LATCH_PIN7_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN7_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 6 : Status on whether PIN6 has met criteria set in PIN_CNF6.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_LATCH_PIN6_Msk (0x1UL << GPIO_LATCH_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_LATCH_PIN6_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN6_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 5 : Status on whether PIN5 has met criteria set in PIN_CNF5.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_LATCH_PIN5_Msk (0x1UL << GPIO_LATCH_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_LATCH_PIN5_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN5_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 4 : Status on whether PIN4 has met criteria set in PIN_CNF4.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_LATCH_PIN4_Msk (0x1UL << GPIO_LATCH_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_LATCH_PIN4_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN4_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 3 : Status on whether PIN3 has met criteria set in PIN_CNF3.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_LATCH_PIN3_Msk (0x1UL << GPIO_LATCH_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_LATCH_PIN3_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN3_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 2 : Status on whether PIN2 has met criteria set in PIN_CNF2.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_LATCH_PIN2_Msk (0x1UL << GPIO_LATCH_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_LATCH_PIN2_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN2_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 1 : Status on whether PIN1 has met criteria set in PIN_CNF1.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_LATCH_PIN1_Msk (0x1UL << GPIO_LATCH_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_LATCH_PIN1_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN1_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 0 : Status on whether PIN0 has met criteria set in PIN_CNF0.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_LATCH_PIN0_Msk (0x1UL << GPIO_LATCH_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_LATCH_PIN0_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN0_Latched (1UL) /*!< Criteria has been met */
+
+/* Register: GPIO_DETECTMODE */
+/* Description: Select between default DETECT signal behaviour and LDETECT mode */
+
+/* Bit 0 : Select between default DETECT signal behaviour and LDETECT mode */
+#define GPIO_DETECTMODE_DETECTMODE_Pos (0UL) /*!< Position of DETECTMODE field. */
+#define GPIO_DETECTMODE_DETECTMODE_Msk (0x1UL << GPIO_DETECTMODE_DETECTMODE_Pos) /*!< Bit mask of DETECTMODE field. */
+#define GPIO_DETECTMODE_DETECTMODE_Default (0UL) /*!< DETECT directly connected to PIN DETECT signals */
+#define GPIO_DETECTMODE_DETECTMODE_LDETECT (1UL) /*!< Use the latched LDETECT behaviour */
+
+/* Register: GPIO_PIN_CNF */
+/* Description: Description collection[n]: Configuration of GPIO pins */
+
+/* Bits 17..16 : Pin sensing mechanism */
+#define GPIO_PIN_CNF_SENSE_Pos (16UL) /*!< Position of SENSE field. */
+#define GPIO_PIN_CNF_SENSE_Msk (0x3UL << GPIO_PIN_CNF_SENSE_Pos) /*!< Bit mask of SENSE field. */
+#define GPIO_PIN_CNF_SENSE_Disabled (0UL) /*!< Disabled */
+#define GPIO_PIN_CNF_SENSE_High (2UL) /*!< Sense for high level */
+#define GPIO_PIN_CNF_SENSE_Low (3UL) /*!< Sense for low level */
+
+/* Bits 10..8 : Drive configuration */
+#define GPIO_PIN_CNF_DRIVE_Pos (8UL) /*!< Position of DRIVE field. */
+#define GPIO_PIN_CNF_DRIVE_Msk (0x7UL << GPIO_PIN_CNF_DRIVE_Pos) /*!< Bit mask of DRIVE field. */
+#define GPIO_PIN_CNF_DRIVE_S0S1 (0UL) /*!< Standard '0', standard '1' */
+#define GPIO_PIN_CNF_DRIVE_H0S1 (1UL) /*!< High drive '0', standard '1' */
+#define GPIO_PIN_CNF_DRIVE_S0H1 (2UL) /*!< Standard '0', high drive '1' */
+#define GPIO_PIN_CNF_DRIVE_H0H1 (3UL) /*!< High drive '0', high 'drive '1'' */
+#define GPIO_PIN_CNF_DRIVE_D0S1 (4UL) /*!< Disconnect '0' standard '1' (normally used for wired-or connections) */
+#define GPIO_PIN_CNF_DRIVE_D0H1 (5UL) /*!< Disconnect '0', high drive '1' (normally used for wired-or connections) */
+#define GPIO_PIN_CNF_DRIVE_S0D1 (6UL) /*!< Standard '0'. disconnect '1' (normally used for wired-and connections) */
+#define GPIO_PIN_CNF_DRIVE_H0D1 (7UL) /*!< High drive '0', disconnect '1' (normally used for wired-and connections) */
+
+/* Bits 3..2 : Pull configuration */
+#define GPIO_PIN_CNF_PULL_Pos (2UL) /*!< Position of PULL field. */
+#define GPIO_PIN_CNF_PULL_Msk (0x3UL << GPIO_PIN_CNF_PULL_Pos) /*!< Bit mask of PULL field. */
+#define GPIO_PIN_CNF_PULL_Disabled (0UL) /*!< No pull */
+#define GPIO_PIN_CNF_PULL_Pulldown (1UL) /*!< Pull down on pin */
+#define GPIO_PIN_CNF_PULL_Pullup (3UL) /*!< Pull up on pin */
+
+/* Bit 1 : Connect or disconnect input buffer */
+#define GPIO_PIN_CNF_INPUT_Pos (1UL) /*!< Position of INPUT field. */
+#define GPIO_PIN_CNF_INPUT_Msk (0x1UL << GPIO_PIN_CNF_INPUT_Pos) /*!< Bit mask of INPUT field. */
+#define GPIO_PIN_CNF_INPUT_Connect (0UL) /*!< Connect input buffer */
+#define GPIO_PIN_CNF_INPUT_Disconnect (1UL) /*!< Disconnect input buffer */
+
+/* Bit 0 : Pin direction. Same physical register as DIR register */
+#define GPIO_PIN_CNF_DIR_Pos (0UL) /*!< Position of DIR field. */
+#define GPIO_PIN_CNF_DIR_Msk (0x1UL << GPIO_PIN_CNF_DIR_Pos) /*!< Bit mask of DIR field. */
+#define GPIO_PIN_CNF_DIR_Input (0UL) /*!< Configure pin as an input pin */
+#define GPIO_PIN_CNF_DIR_Output (1UL) /*!< Configure pin as an output pin */
+
+
+/* Peripheral: PDM */
+/* Description: Pulse Density Modulation (Digital Microphone) Interface */
+
+/* Register: PDM_TASKS_START */
+/* Description: Starts continuous PDM transfer */
+
+/* Bit 0 : */
+#define PDM_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define PDM_TASKS_START_TASKS_START_Msk (0x1UL << PDM_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: PDM_TASKS_STOP */
+/* Description: Stops PDM transfer */
+
+/* Bit 0 : */
+#define PDM_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define PDM_TASKS_STOP_TASKS_STOP_Msk (0x1UL << PDM_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: PDM_EVENTS_STARTED */
+/* Description: PDM transfer has started */
+
+/* Bit 0 : */
+#define PDM_EVENTS_STARTED_EVENTS_STARTED_Pos (0UL) /*!< Position of EVENTS_STARTED field. */
+#define PDM_EVENTS_STARTED_EVENTS_STARTED_Msk (0x1UL << PDM_EVENTS_STARTED_EVENTS_STARTED_Pos) /*!< Bit mask of EVENTS_STARTED field. */
+
+/* Register: PDM_EVENTS_STOPPED */
+/* Description: PDM transfer has finished */
+
+/* Bit 0 : */
+#define PDM_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define PDM_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << PDM_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: PDM_EVENTS_END */
+/* Description: The PDM has written the last sample specified by SAMPLE.MAXCNT (or the last sample after a STOP task has been received) to Data RAM */
+
+/* Bit 0 : */
+#define PDM_EVENTS_END_EVENTS_END_Pos (0UL) /*!< Position of EVENTS_END field. */
+#define PDM_EVENTS_END_EVENTS_END_Msk (0x1UL << PDM_EVENTS_END_EVENTS_END_Pos) /*!< Bit mask of EVENTS_END field. */
+
+/* Register: PDM_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 2 : Enable or disable interrupt for END event */
+#define PDM_INTEN_END_Pos (2UL) /*!< Position of END field. */
+#define PDM_INTEN_END_Msk (0x1UL << PDM_INTEN_END_Pos) /*!< Bit mask of END field. */
+#define PDM_INTEN_END_Disabled (0UL) /*!< Disable */
+#define PDM_INTEN_END_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STOPPED event */
+#define PDM_INTEN_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PDM_INTEN_STOPPED_Msk (0x1UL << PDM_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PDM_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define PDM_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for STARTED event */
+#define PDM_INTEN_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define PDM_INTEN_STARTED_Msk (0x1UL << PDM_INTEN_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define PDM_INTEN_STARTED_Disabled (0UL) /*!< Disable */
+#define PDM_INTEN_STARTED_Enabled (1UL) /*!< Enable */
+
+/* Register: PDM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 2 : Write '1' to enable interrupt for END event */
+#define PDM_INTENSET_END_Pos (2UL) /*!< Position of END field. */
+#define PDM_INTENSET_END_Msk (0x1UL << PDM_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define PDM_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for STOPPED event */
+#define PDM_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PDM_INTENSET_STOPPED_Msk (0x1UL << PDM_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PDM_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for STARTED event */
+#define PDM_INTENSET_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define PDM_INTENSET_STARTED_Msk (0x1UL << PDM_INTENSET_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define PDM_INTENSET_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENSET_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENSET_STARTED_Set (1UL) /*!< Enable */
+
+/* Register: PDM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 2 : Write '1' to disable interrupt for END event */
+#define PDM_INTENCLR_END_Pos (2UL) /*!< Position of END field. */
+#define PDM_INTENCLR_END_Msk (0x1UL << PDM_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define PDM_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for STOPPED event */
+#define PDM_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PDM_INTENCLR_STOPPED_Msk (0x1UL << PDM_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PDM_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for STARTED event */
+#define PDM_INTENCLR_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define PDM_INTENCLR_STARTED_Msk (0x1UL << PDM_INTENCLR_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define PDM_INTENCLR_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENCLR_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENCLR_STARTED_Clear (1UL) /*!< Disable */
+
+/* Register: PDM_ENABLE */
+/* Description: PDM module enable register */
+
+/* Bit 0 : Enable or disable PDM module */
+#define PDM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define PDM_ENABLE_ENABLE_Msk (0x1UL << PDM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define PDM_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define PDM_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: PDM_PDMCLKCTRL */
+/* Description: PDM clock generator control */
+
+/* Bits 31..0 : PDM_CLK frequency */
+#define PDM_PDMCLKCTRL_FREQ_Pos (0UL) /*!< Position of FREQ field. */
+#define PDM_PDMCLKCTRL_FREQ_Msk (0xFFFFFFFFUL << PDM_PDMCLKCTRL_FREQ_Pos) /*!< Bit mask of FREQ field. */
+#define PDM_PDMCLKCTRL_FREQ_1000K (0x08000000UL) /*!< PDM_CLK = 32 MHz / 32 = 1.000 MHz */
+#define PDM_PDMCLKCTRL_FREQ_Default (0x08400000UL) /*!< PDM_CLK = 32 MHz / 31 = 1.032 MHz. Nominal clock for RATIO=Ratio64. */
+#define PDM_PDMCLKCTRL_FREQ_1067K (0x08800000UL) /*!< PDM_CLK = 32 MHz / 30 = 1.067 MHz */
+#define PDM_PDMCLKCTRL_FREQ_1231K (0x09800000UL) /*!< PDM_CLK = 32 MHz / 26 = 1.231 MHz */
+#define PDM_PDMCLKCTRL_FREQ_1280K (0x0A000000UL) /*!< PDM_CLK = 32 MHz / 25 = 1.280 MHz. Nominal clock for RATIO=Ratio80. */
+#define PDM_PDMCLKCTRL_FREQ_1333K (0x0A800000UL) /*!< PDM_CLK = 32 MHz / 24 = 1.333 MHz */
+
+/* Register: PDM_MODE */
+/* Description: Defines the routing of the connected PDM microphones' signals */
+
+/* Bit 1 : Defines on which PDM_CLK edge Left (or mono) is sampled */
+#define PDM_MODE_EDGE_Pos (1UL) /*!< Position of EDGE field. */
+#define PDM_MODE_EDGE_Msk (0x1UL << PDM_MODE_EDGE_Pos) /*!< Bit mask of EDGE field. */
+#define PDM_MODE_EDGE_LeftFalling (0UL) /*!< Left (or mono) is sampled on falling edge of PDM_CLK */
+#define PDM_MODE_EDGE_LeftRising (1UL) /*!< Left (or mono) is sampled on rising edge of PDM_CLK */
+
+/* Bit 0 : Mono or stereo operation */
+#define PDM_MODE_OPERATION_Pos (0UL) /*!< Position of OPERATION field. */
+#define PDM_MODE_OPERATION_Msk (0x1UL << PDM_MODE_OPERATION_Pos) /*!< Bit mask of OPERATION field. */
+#define PDM_MODE_OPERATION_Stereo (0UL) /*!< Sample and store one pair (Left + Right) of 16bit samples per RAM word R=[31:16]; L=[15:0] */
+#define PDM_MODE_OPERATION_Mono (1UL) /*!< Sample and store two successive Left samples (16 bit each) per RAM word L1=[31:16]; L0=[15:0] */
+
+/* Register: PDM_GAINL */
+/* Description: Left output gain adjustment */
+
+/* Bits 6..0 : Left output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters) 0x00 -20 dB gain adjust 0x01 -19.5 dB gain adjust (...) 0x27 -0.5 dB gain adjust 0x28 0 dB gain adjust 0x29 +0.5 dB gain adjust (...) 0x4F +19.5 dB gain adjust 0x50 +20 dB gain adjust */
+#define PDM_GAINL_GAINL_Pos (0UL) /*!< Position of GAINL field. */
+#define PDM_GAINL_GAINL_Msk (0x7FUL << PDM_GAINL_GAINL_Pos) /*!< Bit mask of GAINL field. */
+#define PDM_GAINL_GAINL_MinGain (0x00UL) /*!< -20dB gain adjustment (minimum) */
+#define PDM_GAINL_GAINL_DefaultGain (0x28UL) /*!< 0dB gain adjustment */
+#define PDM_GAINL_GAINL_MaxGain (0x50UL) /*!< +20dB gain adjustment (maximum) */
+
+/* Register: PDM_GAINR */
+/* Description: Right output gain adjustment */
+
+/* Bits 6..0 : Right output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters) */
+#define PDM_GAINR_GAINR_Pos (0UL) /*!< Position of GAINR field. */
+#define PDM_GAINR_GAINR_Msk (0x7FUL << PDM_GAINR_GAINR_Pos) /*!< Bit mask of GAINR field. */
+#define PDM_GAINR_GAINR_MinGain (0x00UL) /*!< -20dB gain adjustment (minimum) */
+#define PDM_GAINR_GAINR_DefaultGain (0x28UL) /*!< 0dB gain adjustment */
+#define PDM_GAINR_GAINR_MaxGain (0x50UL) /*!< +20dB gain adjustment (maximum) */
+
+/* Register: PDM_RATIO */
+/* Description: Selects the ratio between PDM_CLK and output sample rate. Change PDMCLKCTRL accordingly. */
+
+/* Bit 0 : Selects the ratio between PDM_CLK and output sample rate */
+#define PDM_RATIO_RATIO_Pos (0UL) /*!< Position of RATIO field. */
+#define PDM_RATIO_RATIO_Msk (0x1UL << PDM_RATIO_RATIO_Pos) /*!< Bit mask of RATIO field. */
+#define PDM_RATIO_RATIO_Ratio64 (0UL) /*!< Ratio of 64 */
+#define PDM_RATIO_RATIO_Ratio80 (1UL) /*!< Ratio of 80 */
+
+/* Register: PDM_PSEL_CLK */
+/* Description: Pin number configuration for PDM CLK signal */
+
+/* Bit 31 : Connection */
+#define PDM_PSEL_CLK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define PDM_PSEL_CLK_CONNECT_Msk (0x1UL << PDM_PSEL_CLK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define PDM_PSEL_CLK_CONNECT_Connected (0UL) /*!< Connect */
+#define PDM_PSEL_CLK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define PDM_PSEL_CLK_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define PDM_PSEL_CLK_PORT_Msk (0x1UL << PDM_PSEL_CLK_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define PDM_PSEL_CLK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define PDM_PSEL_CLK_PIN_Msk (0x1FUL << PDM_PSEL_CLK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: PDM_PSEL_DIN */
+/* Description: Pin number configuration for PDM DIN signal */
+
+/* Bit 31 : Connection */
+#define PDM_PSEL_DIN_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define PDM_PSEL_DIN_CONNECT_Msk (0x1UL << PDM_PSEL_DIN_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define PDM_PSEL_DIN_CONNECT_Connected (0UL) /*!< Connect */
+#define PDM_PSEL_DIN_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define PDM_PSEL_DIN_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define PDM_PSEL_DIN_PORT_Msk (0x1UL << PDM_PSEL_DIN_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define PDM_PSEL_DIN_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define PDM_PSEL_DIN_PIN_Msk (0x1FUL << PDM_PSEL_DIN_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: PDM_SAMPLE_PTR */
+/* Description: RAM address pointer to write samples to with EasyDMA */
+
+/* Bits 31..0 : Address to write PDM samples to over DMA */
+#define PDM_SAMPLE_PTR_SAMPLEPTR_Pos (0UL) /*!< Position of SAMPLEPTR field. */
+#define PDM_SAMPLE_PTR_SAMPLEPTR_Msk (0xFFFFFFFFUL << PDM_SAMPLE_PTR_SAMPLEPTR_Pos) /*!< Bit mask of SAMPLEPTR field. */
+
+/* Register: PDM_SAMPLE_MAXCNT */
+/* Description: Number of samples to allocate memory for in EasyDMA mode */
+
+/* Bits 14..0 : Length of DMA RAM allocation in number of samples */
+#define PDM_SAMPLE_MAXCNT_BUFFSIZE_Pos (0UL) /*!< Position of BUFFSIZE field. */
+#define PDM_SAMPLE_MAXCNT_BUFFSIZE_Msk (0x7FFFUL << PDM_SAMPLE_MAXCNT_BUFFSIZE_Pos) /*!< Bit mask of BUFFSIZE field. */
+
+
+/* Peripheral: POWER */
+/* Description: Power control */
+
+/* Register: POWER_TASKS_CONSTLAT */
+/* Description: Enable constant latency mode */
+
+/* Bit 0 : */
+#define POWER_TASKS_CONSTLAT_TASKS_CONSTLAT_Pos (0UL) /*!< Position of TASKS_CONSTLAT field. */
+#define POWER_TASKS_CONSTLAT_TASKS_CONSTLAT_Msk (0x1UL << POWER_TASKS_CONSTLAT_TASKS_CONSTLAT_Pos) /*!< Bit mask of TASKS_CONSTLAT field. */
+
+/* Register: POWER_TASKS_LOWPWR */
+/* Description: Enable low power mode (variable latency) */
+
+/* Bit 0 : */
+#define POWER_TASKS_LOWPWR_TASKS_LOWPWR_Pos (0UL) /*!< Position of TASKS_LOWPWR field. */
+#define POWER_TASKS_LOWPWR_TASKS_LOWPWR_Msk (0x1UL << POWER_TASKS_LOWPWR_TASKS_LOWPWR_Pos) /*!< Bit mask of TASKS_LOWPWR field. */
+
+/* Register: POWER_EVENTS_POFWARN */
+/* Description: Power failure warning */
+
+/* Bit 0 : */
+#define POWER_EVENTS_POFWARN_EVENTS_POFWARN_Pos (0UL) /*!< Position of EVENTS_POFWARN field. */
+#define POWER_EVENTS_POFWARN_EVENTS_POFWARN_Msk (0x1UL << POWER_EVENTS_POFWARN_EVENTS_POFWARN_Pos) /*!< Bit mask of EVENTS_POFWARN field. */
+
+/* Register: POWER_EVENTS_SLEEPENTER */
+/* Description: CPU entered WFI/WFE sleep */
+
+/* Bit 0 : */
+#define POWER_EVENTS_SLEEPENTER_EVENTS_SLEEPENTER_Pos (0UL) /*!< Position of EVENTS_SLEEPENTER field. */
+#define POWER_EVENTS_SLEEPENTER_EVENTS_SLEEPENTER_Msk (0x1UL << POWER_EVENTS_SLEEPENTER_EVENTS_SLEEPENTER_Pos) /*!< Bit mask of EVENTS_SLEEPENTER field. */
+
+/* Register: POWER_EVENTS_SLEEPEXIT */
+/* Description: CPU exited WFI/WFE sleep */
+
+/* Bit 0 : */
+#define POWER_EVENTS_SLEEPEXIT_EVENTS_SLEEPEXIT_Pos (0UL) /*!< Position of EVENTS_SLEEPEXIT field. */
+#define POWER_EVENTS_SLEEPEXIT_EVENTS_SLEEPEXIT_Msk (0x1UL << POWER_EVENTS_SLEEPEXIT_EVENTS_SLEEPEXIT_Pos) /*!< Bit mask of EVENTS_SLEEPEXIT field. */
+
+/* Register: POWER_EVENTS_USBDETECTED */
+/* Description: Voltage supply detected on VBUS */
+
+/* Bit 0 : */
+#define POWER_EVENTS_USBDETECTED_EVENTS_USBDETECTED_Pos (0UL) /*!< Position of EVENTS_USBDETECTED field. */
+#define POWER_EVENTS_USBDETECTED_EVENTS_USBDETECTED_Msk (0x1UL << POWER_EVENTS_USBDETECTED_EVENTS_USBDETECTED_Pos) /*!< Bit mask of EVENTS_USBDETECTED field. */
+
+/* Register: POWER_EVENTS_USBREMOVED */
+/* Description: Voltage supply removed from VBUS */
+
+/* Bit 0 : */
+#define POWER_EVENTS_USBREMOVED_EVENTS_USBREMOVED_Pos (0UL) /*!< Position of EVENTS_USBREMOVED field. */
+#define POWER_EVENTS_USBREMOVED_EVENTS_USBREMOVED_Msk (0x1UL << POWER_EVENTS_USBREMOVED_EVENTS_USBREMOVED_Pos) /*!< Bit mask of EVENTS_USBREMOVED field. */
+
+/* Register: POWER_EVENTS_USBPWRRDY */
+/* Description: USB 3.3 V supply ready */
+
+/* Bit 0 : */
+#define POWER_EVENTS_USBPWRRDY_EVENTS_USBPWRRDY_Pos (0UL) /*!< Position of EVENTS_USBPWRRDY field. */
+#define POWER_EVENTS_USBPWRRDY_EVENTS_USBPWRRDY_Msk (0x1UL << POWER_EVENTS_USBPWRRDY_EVENTS_USBPWRRDY_Pos) /*!< Bit mask of EVENTS_USBPWRRDY field. */
+
+/* Register: POWER_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 9 : Write '1' to enable interrupt for USBPWRRDY event */
+#define POWER_INTENSET_USBPWRRDY_Pos (9UL) /*!< Position of USBPWRRDY field. */
+#define POWER_INTENSET_USBPWRRDY_Msk (0x1UL << POWER_INTENSET_USBPWRRDY_Pos) /*!< Bit mask of USBPWRRDY field. */
+#define POWER_INTENSET_USBPWRRDY_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENSET_USBPWRRDY_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENSET_USBPWRRDY_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to enable interrupt for USBREMOVED event */
+#define POWER_INTENSET_USBREMOVED_Pos (8UL) /*!< Position of USBREMOVED field. */
+#define POWER_INTENSET_USBREMOVED_Msk (0x1UL << POWER_INTENSET_USBREMOVED_Pos) /*!< Bit mask of USBREMOVED field. */
+#define POWER_INTENSET_USBREMOVED_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENSET_USBREMOVED_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENSET_USBREMOVED_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to enable interrupt for USBDETECTED event */
+#define POWER_INTENSET_USBDETECTED_Pos (7UL) /*!< Position of USBDETECTED field. */
+#define POWER_INTENSET_USBDETECTED_Msk (0x1UL << POWER_INTENSET_USBDETECTED_Pos) /*!< Bit mask of USBDETECTED field. */
+#define POWER_INTENSET_USBDETECTED_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENSET_USBDETECTED_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENSET_USBDETECTED_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to enable interrupt for SLEEPEXIT event */
+#define POWER_INTENSET_SLEEPEXIT_Pos (6UL) /*!< Position of SLEEPEXIT field. */
+#define POWER_INTENSET_SLEEPEXIT_Msk (0x1UL << POWER_INTENSET_SLEEPEXIT_Pos) /*!< Bit mask of SLEEPEXIT field. */
+#define POWER_INTENSET_SLEEPEXIT_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENSET_SLEEPEXIT_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENSET_SLEEPEXIT_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to enable interrupt for SLEEPENTER event */
+#define POWER_INTENSET_SLEEPENTER_Pos (5UL) /*!< Position of SLEEPENTER field. */
+#define POWER_INTENSET_SLEEPENTER_Msk (0x1UL << POWER_INTENSET_SLEEPENTER_Pos) /*!< Bit mask of SLEEPENTER field. */
+#define POWER_INTENSET_SLEEPENTER_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENSET_SLEEPENTER_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENSET_SLEEPENTER_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for POFWARN event */
+#define POWER_INTENSET_POFWARN_Pos (2UL) /*!< Position of POFWARN field. */
+#define POWER_INTENSET_POFWARN_Msk (0x1UL << POWER_INTENSET_POFWARN_Pos) /*!< Bit mask of POFWARN field. */
+#define POWER_INTENSET_POFWARN_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENSET_POFWARN_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENSET_POFWARN_Set (1UL) /*!< Enable */
+
+/* Register: POWER_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 9 : Write '1' to disable interrupt for USBPWRRDY event */
+#define POWER_INTENCLR_USBPWRRDY_Pos (9UL) /*!< Position of USBPWRRDY field. */
+#define POWER_INTENCLR_USBPWRRDY_Msk (0x1UL << POWER_INTENCLR_USBPWRRDY_Pos) /*!< Bit mask of USBPWRRDY field. */
+#define POWER_INTENCLR_USBPWRRDY_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENCLR_USBPWRRDY_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENCLR_USBPWRRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to disable interrupt for USBREMOVED event */
+#define POWER_INTENCLR_USBREMOVED_Pos (8UL) /*!< Position of USBREMOVED field. */
+#define POWER_INTENCLR_USBREMOVED_Msk (0x1UL << POWER_INTENCLR_USBREMOVED_Pos) /*!< Bit mask of USBREMOVED field. */
+#define POWER_INTENCLR_USBREMOVED_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENCLR_USBREMOVED_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENCLR_USBREMOVED_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to disable interrupt for USBDETECTED event */
+#define POWER_INTENCLR_USBDETECTED_Pos (7UL) /*!< Position of USBDETECTED field. */
+#define POWER_INTENCLR_USBDETECTED_Msk (0x1UL << POWER_INTENCLR_USBDETECTED_Pos) /*!< Bit mask of USBDETECTED field. */
+#define POWER_INTENCLR_USBDETECTED_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENCLR_USBDETECTED_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENCLR_USBDETECTED_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to disable interrupt for SLEEPEXIT event */
+#define POWER_INTENCLR_SLEEPEXIT_Pos (6UL) /*!< Position of SLEEPEXIT field. */
+#define POWER_INTENCLR_SLEEPEXIT_Msk (0x1UL << POWER_INTENCLR_SLEEPEXIT_Pos) /*!< Bit mask of SLEEPEXIT field. */
+#define POWER_INTENCLR_SLEEPEXIT_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENCLR_SLEEPEXIT_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENCLR_SLEEPEXIT_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to disable interrupt for SLEEPENTER event */
+#define POWER_INTENCLR_SLEEPENTER_Pos (5UL) /*!< Position of SLEEPENTER field. */
+#define POWER_INTENCLR_SLEEPENTER_Msk (0x1UL << POWER_INTENCLR_SLEEPENTER_Pos) /*!< Bit mask of SLEEPENTER field. */
+#define POWER_INTENCLR_SLEEPENTER_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENCLR_SLEEPENTER_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENCLR_SLEEPENTER_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for POFWARN event */
+#define POWER_INTENCLR_POFWARN_Pos (2UL) /*!< Position of POFWARN field. */
+#define POWER_INTENCLR_POFWARN_Msk (0x1UL << POWER_INTENCLR_POFWARN_Pos) /*!< Bit mask of POFWARN field. */
+#define POWER_INTENCLR_POFWARN_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENCLR_POFWARN_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENCLR_POFWARN_Clear (1UL) /*!< Disable */
+
+/* Register: POWER_RESETREAS */
+/* Description: Reset reason */
+
+/* Bit 20 : Reset due to wake up from System OFF mode by VBUS rising into valid range */
+#define POWER_RESETREAS_VBUS_Pos (20UL) /*!< Position of VBUS field. */
+#define POWER_RESETREAS_VBUS_Msk (0x1UL << POWER_RESETREAS_VBUS_Pos) /*!< Bit mask of VBUS field. */
+#define POWER_RESETREAS_VBUS_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_VBUS_Detected (1UL) /*!< Detected */
+
+/* Bit 19 : Reset due to wake up from System OFF mode by NFC field detect */
+#define POWER_RESETREAS_NFC_Pos (19UL) /*!< Position of NFC field. */
+#define POWER_RESETREAS_NFC_Msk (0x1UL << POWER_RESETREAS_NFC_Pos) /*!< Bit mask of NFC field. */
+#define POWER_RESETREAS_NFC_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_NFC_Detected (1UL) /*!< Detected */
+
+/* Bit 18 : Reset due to wake up from System OFF mode when wakeup is triggered from entering into debug interface mode */
+#define POWER_RESETREAS_DIF_Pos (18UL) /*!< Position of DIF field. */
+#define POWER_RESETREAS_DIF_Msk (0x1UL << POWER_RESETREAS_DIF_Pos) /*!< Bit mask of DIF field. */
+#define POWER_RESETREAS_DIF_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_DIF_Detected (1UL) /*!< Detected */
+
+/* Bit 17 : Reset due to wake up from System OFF mode when wakeup is triggered from ANADETECT signal from LPCOMP */
+#define POWER_RESETREAS_LPCOMP_Pos (17UL) /*!< Position of LPCOMP field. */
+#define POWER_RESETREAS_LPCOMP_Msk (0x1UL << POWER_RESETREAS_LPCOMP_Pos) /*!< Bit mask of LPCOMP field. */
+#define POWER_RESETREAS_LPCOMP_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_LPCOMP_Detected (1UL) /*!< Detected */
+
+/* Bit 16 : Reset due to wake up from System OFF mode when wakeup is triggered from DETECT signal from GPIO */
+#define POWER_RESETREAS_OFF_Pos (16UL) /*!< Position of OFF field. */
+#define POWER_RESETREAS_OFF_Msk (0x1UL << POWER_RESETREAS_OFF_Pos) /*!< Bit mask of OFF field. */
+#define POWER_RESETREAS_OFF_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_OFF_Detected (1UL) /*!< Detected */
+
+/* Bit 3 : Reset from CPU lock-up detected */
+#define POWER_RESETREAS_LOCKUP_Pos (3UL) /*!< Position of LOCKUP field. */
+#define POWER_RESETREAS_LOCKUP_Msk (0x1UL << POWER_RESETREAS_LOCKUP_Pos) /*!< Bit mask of LOCKUP field. */
+#define POWER_RESETREAS_LOCKUP_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_LOCKUP_Detected (1UL) /*!< Detected */
+
+/* Bit 2 : Reset from soft reset detected */
+#define POWER_RESETREAS_SREQ_Pos (2UL) /*!< Position of SREQ field. */
+#define POWER_RESETREAS_SREQ_Msk (0x1UL << POWER_RESETREAS_SREQ_Pos) /*!< Bit mask of SREQ field. */
+#define POWER_RESETREAS_SREQ_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_SREQ_Detected (1UL) /*!< Detected */
+
+/* Bit 1 : Reset from watchdog detected */
+#define POWER_RESETREAS_DOG_Pos (1UL) /*!< Position of DOG field. */
+#define POWER_RESETREAS_DOG_Msk (0x1UL << POWER_RESETREAS_DOG_Pos) /*!< Bit mask of DOG field. */
+#define POWER_RESETREAS_DOG_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_DOG_Detected (1UL) /*!< Detected */
+
+/* Bit 0 : Reset from pin-reset detected */
+#define POWER_RESETREAS_RESETPIN_Pos (0UL) /*!< Position of RESETPIN field. */
+#define POWER_RESETREAS_RESETPIN_Msk (0x1UL << POWER_RESETREAS_RESETPIN_Pos) /*!< Bit mask of RESETPIN field. */
+#define POWER_RESETREAS_RESETPIN_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_RESETPIN_Detected (1UL) /*!< Detected */
+
+/* Register: POWER_RAMSTATUS */
+/* Description: Deprecated register - RAM status register */
+
+/* Bit 3 : RAM block 3 is on or off/powering up */
+#define POWER_RAMSTATUS_RAMBLOCK3_Pos (3UL) /*!< Position of RAMBLOCK3 field. */
+#define POWER_RAMSTATUS_RAMBLOCK3_Msk (0x1UL << POWER_RAMSTATUS_RAMBLOCK3_Pos) /*!< Bit mask of RAMBLOCK3 field. */
+#define POWER_RAMSTATUS_RAMBLOCK3_Off (0UL) /*!< Off */
+#define POWER_RAMSTATUS_RAMBLOCK3_On (1UL) /*!< On */
+
+/* Bit 2 : RAM block 2 is on or off/powering up */
+#define POWER_RAMSTATUS_RAMBLOCK2_Pos (2UL) /*!< Position of RAMBLOCK2 field. */
+#define POWER_RAMSTATUS_RAMBLOCK2_Msk (0x1UL << POWER_RAMSTATUS_RAMBLOCK2_Pos) /*!< Bit mask of RAMBLOCK2 field. */
+#define POWER_RAMSTATUS_RAMBLOCK2_Off (0UL) /*!< Off */
+#define POWER_RAMSTATUS_RAMBLOCK2_On (1UL) /*!< On */
+
+/* Bit 1 : RAM block 1 is on or off/powering up */
+#define POWER_RAMSTATUS_RAMBLOCK1_Pos (1UL) /*!< Position of RAMBLOCK1 field. */
+#define POWER_RAMSTATUS_RAMBLOCK1_Msk (0x1UL << POWER_RAMSTATUS_RAMBLOCK1_Pos) /*!< Bit mask of RAMBLOCK1 field. */
+#define POWER_RAMSTATUS_RAMBLOCK1_Off (0UL) /*!< Off */
+#define POWER_RAMSTATUS_RAMBLOCK1_On (1UL) /*!< On */
+
+/* Bit 0 : RAM block 0 is on or off/powering up */
+#define POWER_RAMSTATUS_RAMBLOCK0_Pos (0UL) /*!< Position of RAMBLOCK0 field. */
+#define POWER_RAMSTATUS_RAMBLOCK0_Msk (0x1UL << POWER_RAMSTATUS_RAMBLOCK0_Pos) /*!< Bit mask of RAMBLOCK0 field. */
+#define POWER_RAMSTATUS_RAMBLOCK0_Off (0UL) /*!< Off */
+#define POWER_RAMSTATUS_RAMBLOCK0_On (1UL) /*!< On */
+
+/* Register: POWER_USBREGSTATUS */
+/* Description: USB supply status */
+
+/* Bit 1 : USB supply output settling time elapsed */
+#define POWER_USBREGSTATUS_OUTPUTRDY_Pos (1UL) /*!< Position of OUTPUTRDY field. */
+#define POWER_USBREGSTATUS_OUTPUTRDY_Msk (0x1UL << POWER_USBREGSTATUS_OUTPUTRDY_Pos) /*!< Bit mask of OUTPUTRDY field. */
+#define POWER_USBREGSTATUS_OUTPUTRDY_NotReady (0UL) /*!< USBREG output settling time not elapsed */
+#define POWER_USBREGSTATUS_OUTPUTRDY_Ready (1UL) /*!< USBREG output settling time elapsed (same information as USBPWRRDY event) */
+
+/* Bit 0 : VBUS input detection status (USBDETECTED and USBREMOVED events are derived from this information) */
+#define POWER_USBREGSTATUS_VBUSDETECT_Pos (0UL) /*!< Position of VBUSDETECT field. */
+#define POWER_USBREGSTATUS_VBUSDETECT_Msk (0x1UL << POWER_USBREGSTATUS_VBUSDETECT_Pos) /*!< Bit mask of VBUSDETECT field. */
+#define POWER_USBREGSTATUS_VBUSDETECT_NoVbus (0UL) /*!< VBUS voltage below valid threshold */
+#define POWER_USBREGSTATUS_VBUSDETECT_VbusPresent (1UL) /*!< VBUS voltage above valid threshold */
+
+/* Register: POWER_SYSTEMOFF */
+/* Description: System OFF register */
+
+/* Bit 0 : Enable System OFF mode */
+#define POWER_SYSTEMOFF_SYSTEMOFF_Pos (0UL) /*!< Position of SYSTEMOFF field. */
+#define POWER_SYSTEMOFF_SYSTEMOFF_Msk (0x1UL << POWER_SYSTEMOFF_SYSTEMOFF_Pos) /*!< Bit mask of SYSTEMOFF field. */
+#define POWER_SYSTEMOFF_SYSTEMOFF_Enter (1UL) /*!< Enable System OFF mode */
+
+/* Register: POWER_POFCON */
+/* Description: Power-fail comparator configuration */
+
+/* Bits 11..8 : Power-fail comparator threshold setting for high voltage mode (supply connected to VDDH only). This setting does not apply for normal voltage mode (supply connected to both VDD and VDDH). */
+#define POWER_POFCON_THRESHOLDVDDH_Pos (8UL) /*!< Position of THRESHOLDVDDH field. */
+#define POWER_POFCON_THRESHOLDVDDH_Msk (0xFUL << POWER_POFCON_THRESHOLDVDDH_Pos) /*!< Bit mask of THRESHOLDVDDH field. */
+#define POWER_POFCON_THRESHOLDVDDH_V27 (0UL) /*!< Set threshold to 2.7 V */
+#define POWER_POFCON_THRESHOLDVDDH_V28 (1UL) /*!< Set threshold to 2.8 V */
+#define POWER_POFCON_THRESHOLDVDDH_V29 (2UL) /*!< Set threshold to 2.9 V */
+#define POWER_POFCON_THRESHOLDVDDH_V30 (3UL) /*!< Set threshold to 3.0 V */
+#define POWER_POFCON_THRESHOLDVDDH_V31 (4UL) /*!< Set threshold to 3.1 V */
+#define POWER_POFCON_THRESHOLDVDDH_V32 (5UL) /*!< Set threshold to 3.2 V */
+#define POWER_POFCON_THRESHOLDVDDH_V33 (6UL) /*!< Set threshold to 3.3 V */
+#define POWER_POFCON_THRESHOLDVDDH_V34 (7UL) /*!< Set threshold to 3.4 V */
+#define POWER_POFCON_THRESHOLDVDDH_V35 (8UL) /*!< Set threshold to 3.5 V */
+#define POWER_POFCON_THRESHOLDVDDH_V36 (9UL) /*!< Set threshold to 3.6 V */
+#define POWER_POFCON_THRESHOLDVDDH_V37 (10UL) /*!< Set threshold to 3.7 V */
+#define POWER_POFCON_THRESHOLDVDDH_V38 (11UL) /*!< Set threshold to 3.8 V */
+#define POWER_POFCON_THRESHOLDVDDH_V39 (12UL) /*!< Set threshold to 3.9 V */
+#define POWER_POFCON_THRESHOLDVDDH_V40 (13UL) /*!< Set threshold to 4.0 V */
+#define POWER_POFCON_THRESHOLDVDDH_V41 (14UL) /*!< Set threshold to 4.1 V */
+#define POWER_POFCON_THRESHOLDVDDH_V42 (15UL) /*!< Set threshold to 4.2 V */
+
+/* Bits 4..1 : Power-fail comparator threshold setting. This setting applies both for normal voltage mode (supply connected to both VDD and VDDH) and high voltage mode (supply connected to VDDH only). Values 0-3 set threshold below 1.7 V and should not be used as brown out detection will be activated before power failure warning on such low voltages. */
+#define POWER_POFCON_THRESHOLD_Pos (1UL) /*!< Position of THRESHOLD field. */
+#define POWER_POFCON_THRESHOLD_Msk (0xFUL << POWER_POFCON_THRESHOLD_Pos) /*!< Bit mask of THRESHOLD field. */
+#define POWER_POFCON_THRESHOLD_V17 (4UL) /*!< Set threshold to 1.7 V */
+#define POWER_POFCON_THRESHOLD_V18 (5UL) /*!< Set threshold to 1.8 V */
+#define POWER_POFCON_THRESHOLD_V19 (6UL) /*!< Set threshold to 1.9 V */
+#define POWER_POFCON_THRESHOLD_V20 (7UL) /*!< Set threshold to 2.0 V */
+#define POWER_POFCON_THRESHOLD_V21 (8UL) /*!< Set threshold to 2.1 V */
+#define POWER_POFCON_THRESHOLD_V22 (9UL) /*!< Set threshold to 2.2 V */
+#define POWER_POFCON_THRESHOLD_V23 (10UL) /*!< Set threshold to 2.3 V */
+#define POWER_POFCON_THRESHOLD_V24 (11UL) /*!< Set threshold to 2.4 V */
+#define POWER_POFCON_THRESHOLD_V25 (12UL) /*!< Set threshold to 2.5 V */
+#define POWER_POFCON_THRESHOLD_V26 (13UL) /*!< Set threshold to 2.6 V */
+#define POWER_POFCON_THRESHOLD_V27 (14UL) /*!< Set threshold to 2.7 V */
+#define POWER_POFCON_THRESHOLD_V28 (15UL) /*!< Set threshold to 2.8 V */
+
+/* Bit 0 : Enable or disable power failure warning */
+#define POWER_POFCON_POF_Pos (0UL) /*!< Position of POF field. */
+#define POWER_POFCON_POF_Msk (0x1UL << POWER_POFCON_POF_Pos) /*!< Bit mask of POF field. */
+#define POWER_POFCON_POF_Disabled (0UL) /*!< Disable */
+#define POWER_POFCON_POF_Enabled (1UL) /*!< Enable */
+
+/* Register: POWER_GPREGRET */
+/* Description: General purpose retention register */
+
+/* Bits 7..0 : General purpose retention register */
+#define POWER_GPREGRET_GPREGRET_Pos (0UL) /*!< Position of GPREGRET field. */
+#define POWER_GPREGRET_GPREGRET_Msk (0xFFUL << POWER_GPREGRET_GPREGRET_Pos) /*!< Bit mask of GPREGRET field. */
+
+/* Register: POWER_GPREGRET2 */
+/* Description: General purpose retention register */
+
+/* Bits 7..0 : General purpose retention register */
+#define POWER_GPREGRET2_GPREGRET_Pos (0UL) /*!< Position of GPREGRET field. */
+#define POWER_GPREGRET2_GPREGRET_Msk (0xFFUL << POWER_GPREGRET2_GPREGRET_Pos) /*!< Bit mask of GPREGRET field. */
+
+/* Register: POWER_DCDCEN */
+/* Description: Enable DC/DC converter for REG1 stage. */
+
+/* Bit 0 : Enable DC/DC converter for REG1 stage. */
+#define POWER_DCDCEN_DCDCEN_Pos (0UL) /*!< Position of DCDCEN field. */
+#define POWER_DCDCEN_DCDCEN_Msk (0x1UL << POWER_DCDCEN_DCDCEN_Pos) /*!< Bit mask of DCDCEN field. */
+#define POWER_DCDCEN_DCDCEN_Disabled (0UL) /*!< Disable */
+#define POWER_DCDCEN_DCDCEN_Enabled (1UL) /*!< Enable */
+
+/* Register: POWER_DCDCEN0 */
+/* Description: Enable DC/DC converter for REG0 stage. */
+
+/* Bit 0 : Enable DC/DC converter for REG0 stage. */
+#define POWER_DCDCEN0_DCDCEN_Pos (0UL) /*!< Position of DCDCEN field. */
+#define POWER_DCDCEN0_DCDCEN_Msk (0x1UL << POWER_DCDCEN0_DCDCEN_Pos) /*!< Bit mask of DCDCEN field. */
+#define POWER_DCDCEN0_DCDCEN_Disabled (0UL) /*!< Disable */
+#define POWER_DCDCEN0_DCDCEN_Enabled (1UL) /*!< Enable */
+
+/* Register: POWER_MAINREGSTATUS */
+/* Description: Main supply status */
+
+/* Bit 0 : Main supply status */
+#define POWER_MAINREGSTATUS_MAINREGSTATUS_Pos (0UL) /*!< Position of MAINREGSTATUS field. */
+#define POWER_MAINREGSTATUS_MAINREGSTATUS_Msk (0x1UL << POWER_MAINREGSTATUS_MAINREGSTATUS_Pos) /*!< Bit mask of MAINREGSTATUS field. */
+#define POWER_MAINREGSTATUS_MAINREGSTATUS_Normal (0UL) /*!< Normal voltage mode. Voltage supplied on VDD. */
+#define POWER_MAINREGSTATUS_MAINREGSTATUS_High (1UL) /*!< High voltage mode. Voltage supplied on VDDH. */
+
+/* Register: POWER_RAM_POWER */
+/* Description: Description cluster[n]: RAMn power control register */
+
+/* Bit 31 : Keep retention on RAM section S15 when RAM section is off */
+#define POWER_RAM_POWER_S15RETENTION_Pos (31UL) /*!< Position of S15RETENTION field. */
+#define POWER_RAM_POWER_S15RETENTION_Msk (0x1UL << POWER_RAM_POWER_S15RETENTION_Pos) /*!< Bit mask of S15RETENTION field. */
+#define POWER_RAM_POWER_S15RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S15RETENTION_On (1UL) /*!< On */
+
+/* Bit 30 : Keep retention on RAM section S14 when RAM section is off */
+#define POWER_RAM_POWER_S14RETENTION_Pos (30UL) /*!< Position of S14RETENTION field. */
+#define POWER_RAM_POWER_S14RETENTION_Msk (0x1UL << POWER_RAM_POWER_S14RETENTION_Pos) /*!< Bit mask of S14RETENTION field. */
+#define POWER_RAM_POWER_S14RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S14RETENTION_On (1UL) /*!< On */
+
+/* Bit 29 : Keep retention on RAM section S13 when RAM section is off */
+#define POWER_RAM_POWER_S13RETENTION_Pos (29UL) /*!< Position of S13RETENTION field. */
+#define POWER_RAM_POWER_S13RETENTION_Msk (0x1UL << POWER_RAM_POWER_S13RETENTION_Pos) /*!< Bit mask of S13RETENTION field. */
+#define POWER_RAM_POWER_S13RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S13RETENTION_On (1UL) /*!< On */
+
+/* Bit 28 : Keep retention on RAM section S12 when RAM section is off */
+#define POWER_RAM_POWER_S12RETENTION_Pos (28UL) /*!< Position of S12RETENTION field. */
+#define POWER_RAM_POWER_S12RETENTION_Msk (0x1UL << POWER_RAM_POWER_S12RETENTION_Pos) /*!< Bit mask of S12RETENTION field. */
+#define POWER_RAM_POWER_S12RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S12RETENTION_On (1UL) /*!< On */
+
+/* Bit 27 : Keep retention on RAM section S11 when RAM section is off */
+#define POWER_RAM_POWER_S11RETENTION_Pos (27UL) /*!< Position of S11RETENTION field. */
+#define POWER_RAM_POWER_S11RETENTION_Msk (0x1UL << POWER_RAM_POWER_S11RETENTION_Pos) /*!< Bit mask of S11RETENTION field. */
+#define POWER_RAM_POWER_S11RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S11RETENTION_On (1UL) /*!< On */
+
+/* Bit 26 : Keep retention on RAM section S10 when RAM section is off */
+#define POWER_RAM_POWER_S10RETENTION_Pos (26UL) /*!< Position of S10RETENTION field. */
+#define POWER_RAM_POWER_S10RETENTION_Msk (0x1UL << POWER_RAM_POWER_S10RETENTION_Pos) /*!< Bit mask of S10RETENTION field. */
+#define POWER_RAM_POWER_S10RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S10RETENTION_On (1UL) /*!< On */
+
+/* Bit 25 : Keep retention on RAM section S9 when RAM section is off */
+#define POWER_RAM_POWER_S9RETENTION_Pos (25UL) /*!< Position of S9RETENTION field. */
+#define POWER_RAM_POWER_S9RETENTION_Msk (0x1UL << POWER_RAM_POWER_S9RETENTION_Pos) /*!< Bit mask of S9RETENTION field. */
+#define POWER_RAM_POWER_S9RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S9RETENTION_On (1UL) /*!< On */
+
+/* Bit 24 : Keep retention on RAM section S8 when RAM section is off */
+#define POWER_RAM_POWER_S8RETENTION_Pos (24UL) /*!< Position of S8RETENTION field. */
+#define POWER_RAM_POWER_S8RETENTION_Msk (0x1UL << POWER_RAM_POWER_S8RETENTION_Pos) /*!< Bit mask of S8RETENTION field. */
+#define POWER_RAM_POWER_S8RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S8RETENTION_On (1UL) /*!< On */
+
+/* Bit 23 : Keep retention on RAM section S7 when RAM section is off */
+#define POWER_RAM_POWER_S7RETENTION_Pos (23UL) /*!< Position of S7RETENTION field. */
+#define POWER_RAM_POWER_S7RETENTION_Msk (0x1UL << POWER_RAM_POWER_S7RETENTION_Pos) /*!< Bit mask of S7RETENTION field. */
+#define POWER_RAM_POWER_S7RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S7RETENTION_On (1UL) /*!< On */
+
+/* Bit 22 : Keep retention on RAM section S6 when RAM section is off */
+#define POWER_RAM_POWER_S6RETENTION_Pos (22UL) /*!< Position of S6RETENTION field. */
+#define POWER_RAM_POWER_S6RETENTION_Msk (0x1UL << POWER_RAM_POWER_S6RETENTION_Pos) /*!< Bit mask of S6RETENTION field. */
+#define POWER_RAM_POWER_S6RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S6RETENTION_On (1UL) /*!< On */
+
+/* Bit 21 : Keep retention on RAM section S5 when RAM section is off */
+#define POWER_RAM_POWER_S5RETENTION_Pos (21UL) /*!< Position of S5RETENTION field. */
+#define POWER_RAM_POWER_S5RETENTION_Msk (0x1UL << POWER_RAM_POWER_S5RETENTION_Pos) /*!< Bit mask of S5RETENTION field. */
+#define POWER_RAM_POWER_S5RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S5RETENTION_On (1UL) /*!< On */
+
+/* Bit 20 : Keep retention on RAM section S4 when RAM section is off */
+#define POWER_RAM_POWER_S4RETENTION_Pos (20UL) /*!< Position of S4RETENTION field. */
+#define POWER_RAM_POWER_S4RETENTION_Msk (0x1UL << POWER_RAM_POWER_S4RETENTION_Pos) /*!< Bit mask of S4RETENTION field. */
+#define POWER_RAM_POWER_S4RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S4RETENTION_On (1UL) /*!< On */
+
+/* Bit 19 : Keep retention on RAM section S3 when RAM section is off */
+#define POWER_RAM_POWER_S3RETENTION_Pos (19UL) /*!< Position of S3RETENTION field. */
+#define POWER_RAM_POWER_S3RETENTION_Msk (0x1UL << POWER_RAM_POWER_S3RETENTION_Pos) /*!< Bit mask of S3RETENTION field. */
+#define POWER_RAM_POWER_S3RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S3RETENTION_On (1UL) /*!< On */
+
+/* Bit 18 : Keep retention on RAM section S2 when RAM section is off */
+#define POWER_RAM_POWER_S2RETENTION_Pos (18UL) /*!< Position of S2RETENTION field. */
+#define POWER_RAM_POWER_S2RETENTION_Msk (0x1UL << POWER_RAM_POWER_S2RETENTION_Pos) /*!< Bit mask of S2RETENTION field. */
+#define POWER_RAM_POWER_S2RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S2RETENTION_On (1UL) /*!< On */
+
+/* Bit 17 : Keep retention on RAM section S1 when RAM section is off */
+#define POWER_RAM_POWER_S1RETENTION_Pos (17UL) /*!< Position of S1RETENTION field. */
+#define POWER_RAM_POWER_S1RETENTION_Msk (0x1UL << POWER_RAM_POWER_S1RETENTION_Pos) /*!< Bit mask of S1RETENTION field. */
+#define POWER_RAM_POWER_S1RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S1RETENTION_On (1UL) /*!< On */
+
+/* Bit 16 : Keep retention on RAM section S0 when RAM section is off */
+#define POWER_RAM_POWER_S0RETENTION_Pos (16UL) /*!< Position of S0RETENTION field. */
+#define POWER_RAM_POWER_S0RETENTION_Msk (0x1UL << POWER_RAM_POWER_S0RETENTION_Pos) /*!< Bit mask of S0RETENTION field. */
+#define POWER_RAM_POWER_S0RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S0RETENTION_On (1UL) /*!< On */
+
+/* Bit 15 : Keep RAM section S15 on or off in System ON mode. */
+#define POWER_RAM_POWER_S15POWER_Pos (15UL) /*!< Position of S15POWER field. */
+#define POWER_RAM_POWER_S15POWER_Msk (0x1UL << POWER_RAM_POWER_S15POWER_Pos) /*!< Bit mask of S15POWER field. */
+#define POWER_RAM_POWER_S15POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S15POWER_On (1UL) /*!< On */
+
+/* Bit 14 : Keep RAM section S14 on or off in System ON mode. */
+#define POWER_RAM_POWER_S14POWER_Pos (14UL) /*!< Position of S14POWER field. */
+#define POWER_RAM_POWER_S14POWER_Msk (0x1UL << POWER_RAM_POWER_S14POWER_Pos) /*!< Bit mask of S14POWER field. */
+#define POWER_RAM_POWER_S14POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S14POWER_On (1UL) /*!< On */
+
+/* Bit 13 : Keep RAM section S13 on or off in System ON mode. */
+#define POWER_RAM_POWER_S13POWER_Pos (13UL) /*!< Position of S13POWER field. */
+#define POWER_RAM_POWER_S13POWER_Msk (0x1UL << POWER_RAM_POWER_S13POWER_Pos) /*!< Bit mask of S13POWER field. */
+#define POWER_RAM_POWER_S13POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S13POWER_On (1UL) /*!< On */
+
+/* Bit 12 : Keep RAM section S12 on or off in System ON mode. */
+#define POWER_RAM_POWER_S12POWER_Pos (12UL) /*!< Position of S12POWER field. */
+#define POWER_RAM_POWER_S12POWER_Msk (0x1UL << POWER_RAM_POWER_S12POWER_Pos) /*!< Bit mask of S12POWER field. */
+#define POWER_RAM_POWER_S12POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S12POWER_On (1UL) /*!< On */
+
+/* Bit 11 : Keep RAM section S11 on or off in System ON mode. */
+#define POWER_RAM_POWER_S11POWER_Pos (11UL) /*!< Position of S11POWER field. */
+#define POWER_RAM_POWER_S11POWER_Msk (0x1UL << POWER_RAM_POWER_S11POWER_Pos) /*!< Bit mask of S11POWER field. */
+#define POWER_RAM_POWER_S11POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S11POWER_On (1UL) /*!< On */
+
+/* Bit 10 : Keep RAM section S10 on or off in System ON mode. */
+#define POWER_RAM_POWER_S10POWER_Pos (10UL) /*!< Position of S10POWER field. */
+#define POWER_RAM_POWER_S10POWER_Msk (0x1UL << POWER_RAM_POWER_S10POWER_Pos) /*!< Bit mask of S10POWER field. */
+#define POWER_RAM_POWER_S10POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S10POWER_On (1UL) /*!< On */
+
+/* Bit 9 : Keep RAM section S9 on or off in System ON mode. */
+#define POWER_RAM_POWER_S9POWER_Pos (9UL) /*!< Position of S9POWER field. */
+#define POWER_RAM_POWER_S9POWER_Msk (0x1UL << POWER_RAM_POWER_S9POWER_Pos) /*!< Bit mask of S9POWER field. */
+#define POWER_RAM_POWER_S9POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S9POWER_On (1UL) /*!< On */
+
+/* Bit 8 : Keep RAM section S8 on or off in System ON mode. */
+#define POWER_RAM_POWER_S8POWER_Pos (8UL) /*!< Position of S8POWER field. */
+#define POWER_RAM_POWER_S8POWER_Msk (0x1UL << POWER_RAM_POWER_S8POWER_Pos) /*!< Bit mask of S8POWER field. */
+#define POWER_RAM_POWER_S8POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S8POWER_On (1UL) /*!< On */
+
+/* Bit 7 : Keep RAM section S7 on or off in System ON mode. */
+#define POWER_RAM_POWER_S7POWER_Pos (7UL) /*!< Position of S7POWER field. */
+#define POWER_RAM_POWER_S7POWER_Msk (0x1UL << POWER_RAM_POWER_S7POWER_Pos) /*!< Bit mask of S7POWER field. */
+#define POWER_RAM_POWER_S7POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S7POWER_On (1UL) /*!< On */
+
+/* Bit 6 : Keep RAM section S6 on or off in System ON mode. */
+#define POWER_RAM_POWER_S6POWER_Pos (6UL) /*!< Position of S6POWER field. */
+#define POWER_RAM_POWER_S6POWER_Msk (0x1UL << POWER_RAM_POWER_S6POWER_Pos) /*!< Bit mask of S6POWER field. */
+#define POWER_RAM_POWER_S6POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S6POWER_On (1UL) /*!< On */
+
+/* Bit 5 : Keep RAM section S5 on or off in System ON mode. */
+#define POWER_RAM_POWER_S5POWER_Pos (5UL) /*!< Position of S5POWER field. */
+#define POWER_RAM_POWER_S5POWER_Msk (0x1UL << POWER_RAM_POWER_S5POWER_Pos) /*!< Bit mask of S5POWER field. */
+#define POWER_RAM_POWER_S5POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S5POWER_On (1UL) /*!< On */
+
+/* Bit 4 : Keep RAM section S4 on or off in System ON mode. */
+#define POWER_RAM_POWER_S4POWER_Pos (4UL) /*!< Position of S4POWER field. */
+#define POWER_RAM_POWER_S4POWER_Msk (0x1UL << POWER_RAM_POWER_S4POWER_Pos) /*!< Bit mask of S4POWER field. */
+#define POWER_RAM_POWER_S4POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S4POWER_On (1UL) /*!< On */
+
+/* Bit 3 : Keep RAM section S3 on or off in System ON mode. */
+#define POWER_RAM_POWER_S3POWER_Pos (3UL) /*!< Position of S3POWER field. */
+#define POWER_RAM_POWER_S3POWER_Msk (0x1UL << POWER_RAM_POWER_S3POWER_Pos) /*!< Bit mask of S3POWER field. */
+#define POWER_RAM_POWER_S3POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S3POWER_On (1UL) /*!< On */
+
+/* Bit 2 : Keep RAM section S2 on or off in System ON mode. */
+#define POWER_RAM_POWER_S2POWER_Pos (2UL) /*!< Position of S2POWER field. */
+#define POWER_RAM_POWER_S2POWER_Msk (0x1UL << POWER_RAM_POWER_S2POWER_Pos) /*!< Bit mask of S2POWER field. */
+#define POWER_RAM_POWER_S2POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S2POWER_On (1UL) /*!< On */
+
+/* Bit 1 : Keep RAM section S1 on or off in System ON mode. */
+#define POWER_RAM_POWER_S1POWER_Pos (1UL) /*!< Position of S1POWER field. */
+#define POWER_RAM_POWER_S1POWER_Msk (0x1UL << POWER_RAM_POWER_S1POWER_Pos) /*!< Bit mask of S1POWER field. */
+#define POWER_RAM_POWER_S1POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S1POWER_On (1UL) /*!< On */
+
+/* Bit 0 : Keep RAM section S0 on or off in System ON mode. */
+#define POWER_RAM_POWER_S0POWER_Pos (0UL) /*!< Position of S0POWER field. */
+#define POWER_RAM_POWER_S0POWER_Msk (0x1UL << POWER_RAM_POWER_S0POWER_Pos) /*!< Bit mask of S0POWER field. */
+#define POWER_RAM_POWER_S0POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S0POWER_On (1UL) /*!< On */
+
+/* Register: POWER_RAM_POWERSET */
+/* Description: Description cluster[n]: RAMn power control set register */
+
+/* Bit 31 : Keep retention on RAM section S15 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S15RETENTION_Pos (31UL) /*!< Position of S15RETENTION field. */
+#define POWER_RAM_POWERSET_S15RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S15RETENTION_Pos) /*!< Bit mask of S15RETENTION field. */
+#define POWER_RAM_POWERSET_S15RETENTION_On (1UL) /*!< On */
+
+/* Bit 30 : Keep retention on RAM section S14 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S14RETENTION_Pos (30UL) /*!< Position of S14RETENTION field. */
+#define POWER_RAM_POWERSET_S14RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S14RETENTION_Pos) /*!< Bit mask of S14RETENTION field. */
+#define POWER_RAM_POWERSET_S14RETENTION_On (1UL) /*!< On */
+
+/* Bit 29 : Keep retention on RAM section S13 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S13RETENTION_Pos (29UL) /*!< Position of S13RETENTION field. */
+#define POWER_RAM_POWERSET_S13RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S13RETENTION_Pos) /*!< Bit mask of S13RETENTION field. */
+#define POWER_RAM_POWERSET_S13RETENTION_On (1UL) /*!< On */
+
+/* Bit 28 : Keep retention on RAM section S12 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S12RETENTION_Pos (28UL) /*!< Position of S12RETENTION field. */
+#define POWER_RAM_POWERSET_S12RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S12RETENTION_Pos) /*!< Bit mask of S12RETENTION field. */
+#define POWER_RAM_POWERSET_S12RETENTION_On (1UL) /*!< On */
+
+/* Bit 27 : Keep retention on RAM section S11 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S11RETENTION_Pos (27UL) /*!< Position of S11RETENTION field. */
+#define POWER_RAM_POWERSET_S11RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S11RETENTION_Pos) /*!< Bit mask of S11RETENTION field. */
+#define POWER_RAM_POWERSET_S11RETENTION_On (1UL) /*!< On */
+
+/* Bit 26 : Keep retention on RAM section S10 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S10RETENTION_Pos (26UL) /*!< Position of S10RETENTION field. */
+#define POWER_RAM_POWERSET_S10RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S10RETENTION_Pos) /*!< Bit mask of S10RETENTION field. */
+#define POWER_RAM_POWERSET_S10RETENTION_On (1UL) /*!< On */
+
+/* Bit 25 : Keep retention on RAM section S9 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S9RETENTION_Pos (25UL) /*!< Position of S9RETENTION field. */
+#define POWER_RAM_POWERSET_S9RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S9RETENTION_Pos) /*!< Bit mask of S9RETENTION field. */
+#define POWER_RAM_POWERSET_S9RETENTION_On (1UL) /*!< On */
+
+/* Bit 24 : Keep retention on RAM section S8 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S8RETENTION_Pos (24UL) /*!< Position of S8RETENTION field. */
+#define POWER_RAM_POWERSET_S8RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S8RETENTION_Pos) /*!< Bit mask of S8RETENTION field. */
+#define POWER_RAM_POWERSET_S8RETENTION_On (1UL) /*!< On */
+
+/* Bit 23 : Keep retention on RAM section S7 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S7RETENTION_Pos (23UL) /*!< Position of S7RETENTION field. */
+#define POWER_RAM_POWERSET_S7RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S7RETENTION_Pos) /*!< Bit mask of S7RETENTION field. */
+#define POWER_RAM_POWERSET_S7RETENTION_On (1UL) /*!< On */
+
+/* Bit 22 : Keep retention on RAM section S6 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S6RETENTION_Pos (22UL) /*!< Position of S6RETENTION field. */
+#define POWER_RAM_POWERSET_S6RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S6RETENTION_Pos) /*!< Bit mask of S6RETENTION field. */
+#define POWER_RAM_POWERSET_S6RETENTION_On (1UL) /*!< On */
+
+/* Bit 21 : Keep retention on RAM section S5 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S5RETENTION_Pos (21UL) /*!< Position of S5RETENTION field. */
+#define POWER_RAM_POWERSET_S5RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S5RETENTION_Pos) /*!< Bit mask of S5RETENTION field. */
+#define POWER_RAM_POWERSET_S5RETENTION_On (1UL) /*!< On */
+
+/* Bit 20 : Keep retention on RAM section S4 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S4RETENTION_Pos (20UL) /*!< Position of S4RETENTION field. */
+#define POWER_RAM_POWERSET_S4RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S4RETENTION_Pos) /*!< Bit mask of S4RETENTION field. */
+#define POWER_RAM_POWERSET_S4RETENTION_On (1UL) /*!< On */
+
+/* Bit 19 : Keep retention on RAM section S3 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S3RETENTION_Pos (19UL) /*!< Position of S3RETENTION field. */
+#define POWER_RAM_POWERSET_S3RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S3RETENTION_Pos) /*!< Bit mask of S3RETENTION field. */
+#define POWER_RAM_POWERSET_S3RETENTION_On (1UL) /*!< On */
+
+/* Bit 18 : Keep retention on RAM section S2 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S2RETENTION_Pos (18UL) /*!< Position of S2RETENTION field. */
+#define POWER_RAM_POWERSET_S2RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S2RETENTION_Pos) /*!< Bit mask of S2RETENTION field. */
+#define POWER_RAM_POWERSET_S2RETENTION_On (1UL) /*!< On */
+
+/* Bit 17 : Keep retention on RAM section S1 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S1RETENTION_Pos (17UL) /*!< Position of S1RETENTION field. */
+#define POWER_RAM_POWERSET_S1RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S1RETENTION_Pos) /*!< Bit mask of S1RETENTION field. */
+#define POWER_RAM_POWERSET_S1RETENTION_On (1UL) /*!< On */
+
+/* Bit 16 : Keep retention on RAM section S0 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S0RETENTION_Pos (16UL) /*!< Position of S0RETENTION field. */
+#define POWER_RAM_POWERSET_S0RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S0RETENTION_Pos) /*!< Bit mask of S0RETENTION field. */
+#define POWER_RAM_POWERSET_S0RETENTION_On (1UL) /*!< On */
+
+/* Bit 15 : Keep RAM section S15 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S15POWER_Pos (15UL) /*!< Position of S15POWER field. */
+#define POWER_RAM_POWERSET_S15POWER_Msk (0x1UL << POWER_RAM_POWERSET_S15POWER_Pos) /*!< Bit mask of S15POWER field. */
+#define POWER_RAM_POWERSET_S15POWER_On (1UL) /*!< On */
+
+/* Bit 14 : Keep RAM section S14 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S14POWER_Pos (14UL) /*!< Position of S14POWER field. */
+#define POWER_RAM_POWERSET_S14POWER_Msk (0x1UL << POWER_RAM_POWERSET_S14POWER_Pos) /*!< Bit mask of S14POWER field. */
+#define POWER_RAM_POWERSET_S14POWER_On (1UL) /*!< On */
+
+/* Bit 13 : Keep RAM section S13 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S13POWER_Pos (13UL) /*!< Position of S13POWER field. */
+#define POWER_RAM_POWERSET_S13POWER_Msk (0x1UL << POWER_RAM_POWERSET_S13POWER_Pos) /*!< Bit mask of S13POWER field. */
+#define POWER_RAM_POWERSET_S13POWER_On (1UL) /*!< On */
+
+/* Bit 12 : Keep RAM section S12 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S12POWER_Pos (12UL) /*!< Position of S12POWER field. */
+#define POWER_RAM_POWERSET_S12POWER_Msk (0x1UL << POWER_RAM_POWERSET_S12POWER_Pos) /*!< Bit mask of S12POWER field. */
+#define POWER_RAM_POWERSET_S12POWER_On (1UL) /*!< On */
+
+/* Bit 11 : Keep RAM section S11 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S11POWER_Pos (11UL) /*!< Position of S11POWER field. */
+#define POWER_RAM_POWERSET_S11POWER_Msk (0x1UL << POWER_RAM_POWERSET_S11POWER_Pos) /*!< Bit mask of S11POWER field. */
+#define POWER_RAM_POWERSET_S11POWER_On (1UL) /*!< On */
+
+/* Bit 10 : Keep RAM section S10 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S10POWER_Pos (10UL) /*!< Position of S10POWER field. */
+#define POWER_RAM_POWERSET_S10POWER_Msk (0x1UL << POWER_RAM_POWERSET_S10POWER_Pos) /*!< Bit mask of S10POWER field. */
+#define POWER_RAM_POWERSET_S10POWER_On (1UL) /*!< On */
+
+/* Bit 9 : Keep RAM section S9 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S9POWER_Pos (9UL) /*!< Position of S9POWER field. */
+#define POWER_RAM_POWERSET_S9POWER_Msk (0x1UL << POWER_RAM_POWERSET_S9POWER_Pos) /*!< Bit mask of S9POWER field. */
+#define POWER_RAM_POWERSET_S9POWER_On (1UL) /*!< On */
+
+/* Bit 8 : Keep RAM section S8 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S8POWER_Pos (8UL) /*!< Position of S8POWER field. */
+#define POWER_RAM_POWERSET_S8POWER_Msk (0x1UL << POWER_RAM_POWERSET_S8POWER_Pos) /*!< Bit mask of S8POWER field. */
+#define POWER_RAM_POWERSET_S8POWER_On (1UL) /*!< On */
+
+/* Bit 7 : Keep RAM section S7 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S7POWER_Pos (7UL) /*!< Position of S7POWER field. */
+#define POWER_RAM_POWERSET_S7POWER_Msk (0x1UL << POWER_RAM_POWERSET_S7POWER_Pos) /*!< Bit mask of S7POWER field. */
+#define POWER_RAM_POWERSET_S7POWER_On (1UL) /*!< On */
+
+/* Bit 6 : Keep RAM section S6 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S6POWER_Pos (6UL) /*!< Position of S6POWER field. */
+#define POWER_RAM_POWERSET_S6POWER_Msk (0x1UL << POWER_RAM_POWERSET_S6POWER_Pos) /*!< Bit mask of S6POWER field. */
+#define POWER_RAM_POWERSET_S6POWER_On (1UL) /*!< On */
+
+/* Bit 5 : Keep RAM section S5 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S5POWER_Pos (5UL) /*!< Position of S5POWER field. */
+#define POWER_RAM_POWERSET_S5POWER_Msk (0x1UL << POWER_RAM_POWERSET_S5POWER_Pos) /*!< Bit mask of S5POWER field. */
+#define POWER_RAM_POWERSET_S5POWER_On (1UL) /*!< On */
+
+/* Bit 4 : Keep RAM section S4 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S4POWER_Pos (4UL) /*!< Position of S4POWER field. */
+#define POWER_RAM_POWERSET_S4POWER_Msk (0x1UL << POWER_RAM_POWERSET_S4POWER_Pos) /*!< Bit mask of S4POWER field. */
+#define POWER_RAM_POWERSET_S4POWER_On (1UL) /*!< On */
+
+/* Bit 3 : Keep RAM section S3 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S3POWER_Pos (3UL) /*!< Position of S3POWER field. */
+#define POWER_RAM_POWERSET_S3POWER_Msk (0x1UL << POWER_RAM_POWERSET_S3POWER_Pos) /*!< Bit mask of S3POWER field. */
+#define POWER_RAM_POWERSET_S3POWER_On (1UL) /*!< On */
+
+/* Bit 2 : Keep RAM section S2 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S2POWER_Pos (2UL) /*!< Position of S2POWER field. */
+#define POWER_RAM_POWERSET_S2POWER_Msk (0x1UL << POWER_RAM_POWERSET_S2POWER_Pos) /*!< Bit mask of S2POWER field. */
+#define POWER_RAM_POWERSET_S2POWER_On (1UL) /*!< On */
+
+/* Bit 1 : Keep RAM section S1 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S1POWER_Pos (1UL) /*!< Position of S1POWER field. */
+#define POWER_RAM_POWERSET_S1POWER_Msk (0x1UL << POWER_RAM_POWERSET_S1POWER_Pos) /*!< Bit mask of S1POWER field. */
+#define POWER_RAM_POWERSET_S1POWER_On (1UL) /*!< On */
+
+/* Bit 0 : Keep RAM section S0 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERSET_S0POWER_Pos (0UL) /*!< Position of S0POWER field. */
+#define POWER_RAM_POWERSET_S0POWER_Msk (0x1UL << POWER_RAM_POWERSET_S0POWER_Pos) /*!< Bit mask of S0POWER field. */
+#define POWER_RAM_POWERSET_S0POWER_On (1UL) /*!< On */
+
+/* Register: POWER_RAM_POWERCLR */
+/* Description: Description cluster[n]: RAMn power control clear register */
+
+/* Bit 31 : Keep retention on RAM section S15 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S15RETENTION_Pos (31UL) /*!< Position of S15RETENTION field. */
+#define POWER_RAM_POWERCLR_S15RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S15RETENTION_Pos) /*!< Bit mask of S15RETENTION field. */
+#define POWER_RAM_POWERCLR_S15RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 30 : Keep retention on RAM section S14 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S14RETENTION_Pos (30UL) /*!< Position of S14RETENTION field. */
+#define POWER_RAM_POWERCLR_S14RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S14RETENTION_Pos) /*!< Bit mask of S14RETENTION field. */
+#define POWER_RAM_POWERCLR_S14RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 29 : Keep retention on RAM section S13 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S13RETENTION_Pos (29UL) /*!< Position of S13RETENTION field. */
+#define POWER_RAM_POWERCLR_S13RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S13RETENTION_Pos) /*!< Bit mask of S13RETENTION field. */
+#define POWER_RAM_POWERCLR_S13RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 28 : Keep retention on RAM section S12 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S12RETENTION_Pos (28UL) /*!< Position of S12RETENTION field. */
+#define POWER_RAM_POWERCLR_S12RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S12RETENTION_Pos) /*!< Bit mask of S12RETENTION field. */
+#define POWER_RAM_POWERCLR_S12RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 27 : Keep retention on RAM section S11 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S11RETENTION_Pos (27UL) /*!< Position of S11RETENTION field. */
+#define POWER_RAM_POWERCLR_S11RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S11RETENTION_Pos) /*!< Bit mask of S11RETENTION field. */
+#define POWER_RAM_POWERCLR_S11RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 26 : Keep retention on RAM section S10 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S10RETENTION_Pos (26UL) /*!< Position of S10RETENTION field. */
+#define POWER_RAM_POWERCLR_S10RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S10RETENTION_Pos) /*!< Bit mask of S10RETENTION field. */
+#define POWER_RAM_POWERCLR_S10RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 25 : Keep retention on RAM section S9 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S9RETENTION_Pos (25UL) /*!< Position of S9RETENTION field. */
+#define POWER_RAM_POWERCLR_S9RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S9RETENTION_Pos) /*!< Bit mask of S9RETENTION field. */
+#define POWER_RAM_POWERCLR_S9RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 24 : Keep retention on RAM section S8 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S8RETENTION_Pos (24UL) /*!< Position of S8RETENTION field. */
+#define POWER_RAM_POWERCLR_S8RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S8RETENTION_Pos) /*!< Bit mask of S8RETENTION field. */
+#define POWER_RAM_POWERCLR_S8RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 23 : Keep retention on RAM section S7 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S7RETENTION_Pos (23UL) /*!< Position of S7RETENTION field. */
+#define POWER_RAM_POWERCLR_S7RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S7RETENTION_Pos) /*!< Bit mask of S7RETENTION field. */
+#define POWER_RAM_POWERCLR_S7RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 22 : Keep retention on RAM section S6 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S6RETENTION_Pos (22UL) /*!< Position of S6RETENTION field. */
+#define POWER_RAM_POWERCLR_S6RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S6RETENTION_Pos) /*!< Bit mask of S6RETENTION field. */
+#define POWER_RAM_POWERCLR_S6RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 21 : Keep retention on RAM section S5 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S5RETENTION_Pos (21UL) /*!< Position of S5RETENTION field. */
+#define POWER_RAM_POWERCLR_S5RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S5RETENTION_Pos) /*!< Bit mask of S5RETENTION field. */
+#define POWER_RAM_POWERCLR_S5RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 20 : Keep retention on RAM section S4 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S4RETENTION_Pos (20UL) /*!< Position of S4RETENTION field. */
+#define POWER_RAM_POWERCLR_S4RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S4RETENTION_Pos) /*!< Bit mask of S4RETENTION field. */
+#define POWER_RAM_POWERCLR_S4RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 19 : Keep retention on RAM section S3 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S3RETENTION_Pos (19UL) /*!< Position of S3RETENTION field. */
+#define POWER_RAM_POWERCLR_S3RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S3RETENTION_Pos) /*!< Bit mask of S3RETENTION field. */
+#define POWER_RAM_POWERCLR_S3RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 18 : Keep retention on RAM section S2 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S2RETENTION_Pos (18UL) /*!< Position of S2RETENTION field. */
+#define POWER_RAM_POWERCLR_S2RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S2RETENTION_Pos) /*!< Bit mask of S2RETENTION field. */
+#define POWER_RAM_POWERCLR_S2RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 17 : Keep retention on RAM section S1 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S1RETENTION_Pos (17UL) /*!< Position of S1RETENTION field. */
+#define POWER_RAM_POWERCLR_S1RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S1RETENTION_Pos) /*!< Bit mask of S1RETENTION field. */
+#define POWER_RAM_POWERCLR_S1RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 16 : Keep retention on RAM section S0 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S0RETENTION_Pos (16UL) /*!< Position of S0RETENTION field. */
+#define POWER_RAM_POWERCLR_S0RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S0RETENTION_Pos) /*!< Bit mask of S0RETENTION field. */
+#define POWER_RAM_POWERCLR_S0RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 15 : Keep RAM section S15 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S15POWER_Pos (15UL) /*!< Position of S15POWER field. */
+#define POWER_RAM_POWERCLR_S15POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S15POWER_Pos) /*!< Bit mask of S15POWER field. */
+#define POWER_RAM_POWERCLR_S15POWER_Off (1UL) /*!< Off */
+
+/* Bit 14 : Keep RAM section S14 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S14POWER_Pos (14UL) /*!< Position of S14POWER field. */
+#define POWER_RAM_POWERCLR_S14POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S14POWER_Pos) /*!< Bit mask of S14POWER field. */
+#define POWER_RAM_POWERCLR_S14POWER_Off (1UL) /*!< Off */
+
+/* Bit 13 : Keep RAM section S13 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S13POWER_Pos (13UL) /*!< Position of S13POWER field. */
+#define POWER_RAM_POWERCLR_S13POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S13POWER_Pos) /*!< Bit mask of S13POWER field. */
+#define POWER_RAM_POWERCLR_S13POWER_Off (1UL) /*!< Off */
+
+/* Bit 12 : Keep RAM section S12 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S12POWER_Pos (12UL) /*!< Position of S12POWER field. */
+#define POWER_RAM_POWERCLR_S12POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S12POWER_Pos) /*!< Bit mask of S12POWER field. */
+#define POWER_RAM_POWERCLR_S12POWER_Off (1UL) /*!< Off */
+
+/* Bit 11 : Keep RAM section S11 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S11POWER_Pos (11UL) /*!< Position of S11POWER field. */
+#define POWER_RAM_POWERCLR_S11POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S11POWER_Pos) /*!< Bit mask of S11POWER field. */
+#define POWER_RAM_POWERCLR_S11POWER_Off (1UL) /*!< Off */
+
+/* Bit 10 : Keep RAM section S10 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S10POWER_Pos (10UL) /*!< Position of S10POWER field. */
+#define POWER_RAM_POWERCLR_S10POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S10POWER_Pos) /*!< Bit mask of S10POWER field. */
+#define POWER_RAM_POWERCLR_S10POWER_Off (1UL) /*!< Off */
+
+/* Bit 9 : Keep RAM section S9 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S9POWER_Pos (9UL) /*!< Position of S9POWER field. */
+#define POWER_RAM_POWERCLR_S9POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S9POWER_Pos) /*!< Bit mask of S9POWER field. */
+#define POWER_RAM_POWERCLR_S9POWER_Off (1UL) /*!< Off */
+
+/* Bit 8 : Keep RAM section S8 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S8POWER_Pos (8UL) /*!< Position of S8POWER field. */
+#define POWER_RAM_POWERCLR_S8POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S8POWER_Pos) /*!< Bit mask of S8POWER field. */
+#define POWER_RAM_POWERCLR_S8POWER_Off (1UL) /*!< Off */
+
+/* Bit 7 : Keep RAM section S7 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S7POWER_Pos (7UL) /*!< Position of S7POWER field. */
+#define POWER_RAM_POWERCLR_S7POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S7POWER_Pos) /*!< Bit mask of S7POWER field. */
+#define POWER_RAM_POWERCLR_S7POWER_Off (1UL) /*!< Off */
+
+/* Bit 6 : Keep RAM section S6 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S6POWER_Pos (6UL) /*!< Position of S6POWER field. */
+#define POWER_RAM_POWERCLR_S6POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S6POWER_Pos) /*!< Bit mask of S6POWER field. */
+#define POWER_RAM_POWERCLR_S6POWER_Off (1UL) /*!< Off */
+
+/* Bit 5 : Keep RAM section S5 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S5POWER_Pos (5UL) /*!< Position of S5POWER field. */
+#define POWER_RAM_POWERCLR_S5POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S5POWER_Pos) /*!< Bit mask of S5POWER field. */
+#define POWER_RAM_POWERCLR_S5POWER_Off (1UL) /*!< Off */
+
+/* Bit 4 : Keep RAM section S4 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S4POWER_Pos (4UL) /*!< Position of S4POWER field. */
+#define POWER_RAM_POWERCLR_S4POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S4POWER_Pos) /*!< Bit mask of S4POWER field. */
+#define POWER_RAM_POWERCLR_S4POWER_Off (1UL) /*!< Off */
+
+/* Bit 3 : Keep RAM section S3 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S3POWER_Pos (3UL) /*!< Position of S3POWER field. */
+#define POWER_RAM_POWERCLR_S3POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S3POWER_Pos) /*!< Bit mask of S3POWER field. */
+#define POWER_RAM_POWERCLR_S3POWER_Off (1UL) /*!< Off */
+
+/* Bit 2 : Keep RAM section S2 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S2POWER_Pos (2UL) /*!< Position of S2POWER field. */
+#define POWER_RAM_POWERCLR_S2POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S2POWER_Pos) /*!< Bit mask of S2POWER field. */
+#define POWER_RAM_POWERCLR_S2POWER_Off (1UL) /*!< Off */
+
+/* Bit 1 : Keep RAM section S1 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S1POWER_Pos (1UL) /*!< Position of S1POWER field. */
+#define POWER_RAM_POWERCLR_S1POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S1POWER_Pos) /*!< Bit mask of S1POWER field. */
+#define POWER_RAM_POWERCLR_S1POWER_Off (1UL) /*!< Off */
+
+/* Bit 0 : Keep RAM section S0 of RAMn on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S0POWER_Pos (0UL) /*!< Position of S0POWER field. */
+#define POWER_RAM_POWERCLR_S0POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S0POWER_Pos) /*!< Bit mask of S0POWER field. */
+#define POWER_RAM_POWERCLR_S0POWER_Off (1UL) /*!< Off */
+
+
+/* Peripheral: PPI */
+/* Description: Programmable Peripheral Interconnect */
+
+/* Register: PPI_TASKS_CHG_EN */
+/* Description: Description cluster[n]: Enable channel group n */
+
+/* Bit 0 : */
+#define PPI_TASKS_CHG_EN_EN_Pos (0UL) /*!< Position of EN field. */
+#define PPI_TASKS_CHG_EN_EN_Msk (0x1UL << PPI_TASKS_CHG_EN_EN_Pos) /*!< Bit mask of EN field. */
+
+/* Register: PPI_TASKS_CHG_DIS */
+/* Description: Description cluster[n]: Disable channel group n */
+
+/* Bit 0 : */
+#define PPI_TASKS_CHG_DIS_DIS_Pos (0UL) /*!< Position of DIS field. */
+#define PPI_TASKS_CHG_DIS_DIS_Msk (0x1UL << PPI_TASKS_CHG_DIS_DIS_Pos) /*!< Bit mask of DIS field. */
+
+/* Register: PPI_CHEN */
+/* Description: Channel enable register */
+
+/* Bit 31 : Enable or disable channel 31 */
+#define PPI_CHEN_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHEN_CH31_Msk (0x1UL << PPI_CHEN_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHEN_CH31_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH31_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 30 : Enable or disable channel 30 */
+#define PPI_CHEN_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHEN_CH30_Msk (0x1UL << PPI_CHEN_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHEN_CH30_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH30_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 29 : Enable or disable channel 29 */
+#define PPI_CHEN_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHEN_CH29_Msk (0x1UL << PPI_CHEN_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHEN_CH29_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH29_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 28 : Enable or disable channel 28 */
+#define PPI_CHEN_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHEN_CH28_Msk (0x1UL << PPI_CHEN_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHEN_CH28_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH28_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 27 : Enable or disable channel 27 */
+#define PPI_CHEN_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHEN_CH27_Msk (0x1UL << PPI_CHEN_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHEN_CH27_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH27_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 26 : Enable or disable channel 26 */
+#define PPI_CHEN_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHEN_CH26_Msk (0x1UL << PPI_CHEN_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHEN_CH26_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH26_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 25 : Enable or disable channel 25 */
+#define PPI_CHEN_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHEN_CH25_Msk (0x1UL << PPI_CHEN_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHEN_CH25_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH25_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 24 : Enable or disable channel 24 */
+#define PPI_CHEN_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHEN_CH24_Msk (0x1UL << PPI_CHEN_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHEN_CH24_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH24_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 23 : Enable or disable channel 23 */
+#define PPI_CHEN_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHEN_CH23_Msk (0x1UL << PPI_CHEN_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHEN_CH23_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH23_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 22 : Enable or disable channel 22 */
+#define PPI_CHEN_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHEN_CH22_Msk (0x1UL << PPI_CHEN_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHEN_CH22_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH22_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 21 : Enable or disable channel 21 */
+#define PPI_CHEN_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHEN_CH21_Msk (0x1UL << PPI_CHEN_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHEN_CH21_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH21_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 20 : Enable or disable channel 20 */
+#define PPI_CHEN_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHEN_CH20_Msk (0x1UL << PPI_CHEN_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHEN_CH20_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH20_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 19 : Enable or disable channel 19 */
+#define PPI_CHEN_CH19_Pos (19UL) /*!< Position of CH19 field. */
+#define PPI_CHEN_CH19_Msk (0x1UL << PPI_CHEN_CH19_Pos) /*!< Bit mask of CH19 field. */
+#define PPI_CHEN_CH19_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH19_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 18 : Enable or disable channel 18 */
+#define PPI_CHEN_CH18_Pos (18UL) /*!< Position of CH18 field. */
+#define PPI_CHEN_CH18_Msk (0x1UL << PPI_CHEN_CH18_Pos) /*!< Bit mask of CH18 field. */
+#define PPI_CHEN_CH18_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH18_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 17 : Enable or disable channel 17 */
+#define PPI_CHEN_CH17_Pos (17UL) /*!< Position of CH17 field. */
+#define PPI_CHEN_CH17_Msk (0x1UL << PPI_CHEN_CH17_Pos) /*!< Bit mask of CH17 field. */
+#define PPI_CHEN_CH17_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH17_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 16 : Enable or disable channel 16 */
+#define PPI_CHEN_CH16_Pos (16UL) /*!< Position of CH16 field. */
+#define PPI_CHEN_CH16_Msk (0x1UL << PPI_CHEN_CH16_Pos) /*!< Bit mask of CH16 field. */
+#define PPI_CHEN_CH16_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH16_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 15 : Enable or disable channel 15 */
+#define PPI_CHEN_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHEN_CH15_Msk (0x1UL << PPI_CHEN_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHEN_CH15_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH15_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 14 : Enable or disable channel 14 */
+#define PPI_CHEN_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHEN_CH14_Msk (0x1UL << PPI_CHEN_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHEN_CH14_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH14_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 13 : Enable or disable channel 13 */
+#define PPI_CHEN_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHEN_CH13_Msk (0x1UL << PPI_CHEN_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHEN_CH13_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH13_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 12 : Enable or disable channel 12 */
+#define PPI_CHEN_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHEN_CH12_Msk (0x1UL << PPI_CHEN_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHEN_CH12_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH12_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 11 : Enable or disable channel 11 */
+#define PPI_CHEN_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHEN_CH11_Msk (0x1UL << PPI_CHEN_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHEN_CH11_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH11_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 10 : Enable or disable channel 10 */
+#define PPI_CHEN_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHEN_CH10_Msk (0x1UL << PPI_CHEN_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHEN_CH10_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH10_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 9 : Enable or disable channel 9 */
+#define PPI_CHEN_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHEN_CH9_Msk (0x1UL << PPI_CHEN_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHEN_CH9_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH9_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 8 : Enable or disable channel 8 */
+#define PPI_CHEN_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHEN_CH8_Msk (0x1UL << PPI_CHEN_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHEN_CH8_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH8_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 7 : Enable or disable channel 7 */
+#define PPI_CHEN_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHEN_CH7_Msk (0x1UL << PPI_CHEN_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHEN_CH7_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH7_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 6 : Enable or disable channel 6 */
+#define PPI_CHEN_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHEN_CH6_Msk (0x1UL << PPI_CHEN_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHEN_CH6_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH6_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 5 : Enable or disable channel 5 */
+#define PPI_CHEN_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHEN_CH5_Msk (0x1UL << PPI_CHEN_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHEN_CH5_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH5_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 4 : Enable or disable channel 4 */
+#define PPI_CHEN_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHEN_CH4_Msk (0x1UL << PPI_CHEN_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHEN_CH4_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH4_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 3 : Enable or disable channel 3 */
+#define PPI_CHEN_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHEN_CH3_Msk (0x1UL << PPI_CHEN_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHEN_CH3_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH3_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 2 : Enable or disable channel 2 */
+#define PPI_CHEN_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHEN_CH2_Msk (0x1UL << PPI_CHEN_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHEN_CH2_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH2_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 1 : Enable or disable channel 1 */
+#define PPI_CHEN_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHEN_CH1_Msk (0x1UL << PPI_CHEN_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHEN_CH1_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH1_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 0 : Enable or disable channel 0 */
+#define PPI_CHEN_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHEN_CH0_Msk (0x1UL << PPI_CHEN_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHEN_CH0_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH0_Enabled (1UL) /*!< Enable channel */
+
+/* Register: PPI_CHENSET */
+/* Description: Channel enable set register */
+
+/* Bit 31 : Channel 31 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHENSET_CH31_Msk (0x1UL << PPI_CHENSET_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHENSET_CH31_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH31_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH31_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 30 : Channel 30 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHENSET_CH30_Msk (0x1UL << PPI_CHENSET_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHENSET_CH30_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH30_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH30_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 29 : Channel 29 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHENSET_CH29_Msk (0x1UL << PPI_CHENSET_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHENSET_CH29_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH29_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH29_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 28 : Channel 28 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHENSET_CH28_Msk (0x1UL << PPI_CHENSET_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHENSET_CH28_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH28_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH28_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 27 : Channel 27 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHENSET_CH27_Msk (0x1UL << PPI_CHENSET_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHENSET_CH27_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH27_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH27_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 26 : Channel 26 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHENSET_CH26_Msk (0x1UL << PPI_CHENSET_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHENSET_CH26_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH26_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH26_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 25 : Channel 25 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHENSET_CH25_Msk (0x1UL << PPI_CHENSET_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHENSET_CH25_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH25_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH25_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 24 : Channel 24 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHENSET_CH24_Msk (0x1UL << PPI_CHENSET_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHENSET_CH24_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH24_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH24_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 23 : Channel 23 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHENSET_CH23_Msk (0x1UL << PPI_CHENSET_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHENSET_CH23_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH23_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH23_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 22 : Channel 22 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHENSET_CH22_Msk (0x1UL << PPI_CHENSET_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHENSET_CH22_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH22_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH22_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 21 : Channel 21 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHENSET_CH21_Msk (0x1UL << PPI_CHENSET_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHENSET_CH21_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH21_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH21_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 20 : Channel 20 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHENSET_CH20_Msk (0x1UL << PPI_CHENSET_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHENSET_CH20_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH20_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH20_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 19 : Channel 19 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH19_Pos (19UL) /*!< Position of CH19 field. */
+#define PPI_CHENSET_CH19_Msk (0x1UL << PPI_CHENSET_CH19_Pos) /*!< Bit mask of CH19 field. */
+#define PPI_CHENSET_CH19_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH19_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH19_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 18 : Channel 18 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH18_Pos (18UL) /*!< Position of CH18 field. */
+#define PPI_CHENSET_CH18_Msk (0x1UL << PPI_CHENSET_CH18_Pos) /*!< Bit mask of CH18 field. */
+#define PPI_CHENSET_CH18_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH18_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH18_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 17 : Channel 17 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH17_Pos (17UL) /*!< Position of CH17 field. */
+#define PPI_CHENSET_CH17_Msk (0x1UL << PPI_CHENSET_CH17_Pos) /*!< Bit mask of CH17 field. */
+#define PPI_CHENSET_CH17_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH17_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH17_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 16 : Channel 16 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH16_Pos (16UL) /*!< Position of CH16 field. */
+#define PPI_CHENSET_CH16_Msk (0x1UL << PPI_CHENSET_CH16_Pos) /*!< Bit mask of CH16 field. */
+#define PPI_CHENSET_CH16_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH16_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH16_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 15 : Channel 15 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHENSET_CH15_Msk (0x1UL << PPI_CHENSET_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHENSET_CH15_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH15_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH15_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 14 : Channel 14 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHENSET_CH14_Msk (0x1UL << PPI_CHENSET_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHENSET_CH14_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH14_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH14_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 13 : Channel 13 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHENSET_CH13_Msk (0x1UL << PPI_CHENSET_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHENSET_CH13_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH13_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH13_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 12 : Channel 12 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHENSET_CH12_Msk (0x1UL << PPI_CHENSET_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHENSET_CH12_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH12_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH12_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 11 : Channel 11 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHENSET_CH11_Msk (0x1UL << PPI_CHENSET_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHENSET_CH11_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH11_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH11_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 10 : Channel 10 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHENSET_CH10_Msk (0x1UL << PPI_CHENSET_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHENSET_CH10_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH10_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH10_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 9 : Channel 9 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHENSET_CH9_Msk (0x1UL << PPI_CHENSET_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHENSET_CH9_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH9_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH9_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 8 : Channel 8 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHENSET_CH8_Msk (0x1UL << PPI_CHENSET_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHENSET_CH8_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH8_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH8_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 7 : Channel 7 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHENSET_CH7_Msk (0x1UL << PPI_CHENSET_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHENSET_CH7_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH7_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH7_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 6 : Channel 6 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHENSET_CH6_Msk (0x1UL << PPI_CHENSET_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHENSET_CH6_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH6_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH6_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 5 : Channel 5 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHENSET_CH5_Msk (0x1UL << PPI_CHENSET_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHENSET_CH5_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH5_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH5_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 4 : Channel 4 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHENSET_CH4_Msk (0x1UL << PPI_CHENSET_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHENSET_CH4_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH4_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH4_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 3 : Channel 3 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHENSET_CH3_Msk (0x1UL << PPI_CHENSET_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHENSET_CH3_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH3_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH3_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 2 : Channel 2 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHENSET_CH2_Msk (0x1UL << PPI_CHENSET_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHENSET_CH2_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH2_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH2_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 1 : Channel 1 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHENSET_CH1_Msk (0x1UL << PPI_CHENSET_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHENSET_CH1_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH1_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH1_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 0 : Channel 0 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHENSET_CH0_Msk (0x1UL << PPI_CHENSET_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHENSET_CH0_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH0_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH0_Set (1UL) /*!< Write: Enable channel */
+
+/* Register: PPI_CHENCLR */
+/* Description: Channel enable clear register */
+
+/* Bit 31 : Channel 31 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHENCLR_CH31_Msk (0x1UL << PPI_CHENCLR_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHENCLR_CH31_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH31_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH31_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 30 : Channel 30 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHENCLR_CH30_Msk (0x1UL << PPI_CHENCLR_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHENCLR_CH30_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH30_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH30_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 29 : Channel 29 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHENCLR_CH29_Msk (0x1UL << PPI_CHENCLR_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHENCLR_CH29_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH29_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH29_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 28 : Channel 28 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHENCLR_CH28_Msk (0x1UL << PPI_CHENCLR_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHENCLR_CH28_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH28_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH28_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 27 : Channel 27 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHENCLR_CH27_Msk (0x1UL << PPI_CHENCLR_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHENCLR_CH27_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH27_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH27_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 26 : Channel 26 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHENCLR_CH26_Msk (0x1UL << PPI_CHENCLR_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHENCLR_CH26_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH26_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH26_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 25 : Channel 25 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHENCLR_CH25_Msk (0x1UL << PPI_CHENCLR_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHENCLR_CH25_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH25_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH25_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 24 : Channel 24 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHENCLR_CH24_Msk (0x1UL << PPI_CHENCLR_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHENCLR_CH24_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH24_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH24_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 23 : Channel 23 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHENCLR_CH23_Msk (0x1UL << PPI_CHENCLR_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHENCLR_CH23_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH23_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH23_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 22 : Channel 22 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHENCLR_CH22_Msk (0x1UL << PPI_CHENCLR_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHENCLR_CH22_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH22_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH22_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 21 : Channel 21 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHENCLR_CH21_Msk (0x1UL << PPI_CHENCLR_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHENCLR_CH21_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH21_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH21_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 20 : Channel 20 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHENCLR_CH20_Msk (0x1UL << PPI_CHENCLR_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHENCLR_CH20_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH20_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH20_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 19 : Channel 19 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH19_Pos (19UL) /*!< Position of CH19 field. */
+#define PPI_CHENCLR_CH19_Msk (0x1UL << PPI_CHENCLR_CH19_Pos) /*!< Bit mask of CH19 field. */
+#define PPI_CHENCLR_CH19_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH19_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH19_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 18 : Channel 18 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH18_Pos (18UL) /*!< Position of CH18 field. */
+#define PPI_CHENCLR_CH18_Msk (0x1UL << PPI_CHENCLR_CH18_Pos) /*!< Bit mask of CH18 field. */
+#define PPI_CHENCLR_CH18_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH18_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH18_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 17 : Channel 17 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH17_Pos (17UL) /*!< Position of CH17 field. */
+#define PPI_CHENCLR_CH17_Msk (0x1UL << PPI_CHENCLR_CH17_Pos) /*!< Bit mask of CH17 field. */
+#define PPI_CHENCLR_CH17_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH17_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH17_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 16 : Channel 16 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH16_Pos (16UL) /*!< Position of CH16 field. */
+#define PPI_CHENCLR_CH16_Msk (0x1UL << PPI_CHENCLR_CH16_Pos) /*!< Bit mask of CH16 field. */
+#define PPI_CHENCLR_CH16_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH16_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH16_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 15 : Channel 15 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHENCLR_CH15_Msk (0x1UL << PPI_CHENCLR_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHENCLR_CH15_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH15_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH15_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 14 : Channel 14 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHENCLR_CH14_Msk (0x1UL << PPI_CHENCLR_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHENCLR_CH14_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH14_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH14_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 13 : Channel 13 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHENCLR_CH13_Msk (0x1UL << PPI_CHENCLR_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHENCLR_CH13_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH13_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH13_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 12 : Channel 12 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHENCLR_CH12_Msk (0x1UL << PPI_CHENCLR_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHENCLR_CH12_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH12_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH12_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 11 : Channel 11 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHENCLR_CH11_Msk (0x1UL << PPI_CHENCLR_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHENCLR_CH11_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH11_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH11_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 10 : Channel 10 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHENCLR_CH10_Msk (0x1UL << PPI_CHENCLR_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHENCLR_CH10_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH10_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH10_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 9 : Channel 9 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHENCLR_CH9_Msk (0x1UL << PPI_CHENCLR_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHENCLR_CH9_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH9_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH9_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 8 : Channel 8 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHENCLR_CH8_Msk (0x1UL << PPI_CHENCLR_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHENCLR_CH8_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH8_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH8_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 7 : Channel 7 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHENCLR_CH7_Msk (0x1UL << PPI_CHENCLR_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHENCLR_CH7_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH7_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH7_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 6 : Channel 6 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHENCLR_CH6_Msk (0x1UL << PPI_CHENCLR_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHENCLR_CH6_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH6_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH6_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 5 : Channel 5 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHENCLR_CH5_Msk (0x1UL << PPI_CHENCLR_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHENCLR_CH5_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH5_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH5_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 4 : Channel 4 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHENCLR_CH4_Msk (0x1UL << PPI_CHENCLR_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHENCLR_CH4_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH4_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH4_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 3 : Channel 3 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHENCLR_CH3_Msk (0x1UL << PPI_CHENCLR_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHENCLR_CH3_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH3_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH3_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 2 : Channel 2 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHENCLR_CH2_Msk (0x1UL << PPI_CHENCLR_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHENCLR_CH2_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH2_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH2_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 1 : Channel 1 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHENCLR_CH1_Msk (0x1UL << PPI_CHENCLR_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHENCLR_CH1_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH1_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH1_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 0 : Channel 0 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHENCLR_CH0_Msk (0x1UL << PPI_CHENCLR_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHENCLR_CH0_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH0_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH0_Clear (1UL) /*!< Write: disable channel */
+
+/* Register: PPI_CH_EEP */
+/* Description: Description cluster[n]: Channel n event end-point */
+
+/* Bits 31..0 : Pointer to event register. Accepts only addresses to registers from the Event group. */
+#define PPI_CH_EEP_EEP_Pos (0UL) /*!< Position of EEP field. */
+#define PPI_CH_EEP_EEP_Msk (0xFFFFFFFFUL << PPI_CH_EEP_EEP_Pos) /*!< Bit mask of EEP field. */
+
+/* Register: PPI_CH_TEP */
+/* Description: Description cluster[n]: Channel n task end-point */
+
+/* Bits 31..0 : Pointer to task register. Accepts only addresses to registers from the Task group. */
+#define PPI_CH_TEP_TEP_Pos (0UL) /*!< Position of TEP field. */
+#define PPI_CH_TEP_TEP_Msk (0xFFFFFFFFUL << PPI_CH_TEP_TEP_Pos) /*!< Bit mask of TEP field. */
+
+/* Register: PPI_CHG */
+/* Description: Description collection[n]: Channel group n */
+
+/* Bit 31 : Include or exclude channel 31 */
+#define PPI_CHG_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHG_CH31_Msk (0x1UL << PPI_CHG_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHG_CH31_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH31_Included (1UL) /*!< Include */
+
+/* Bit 30 : Include or exclude channel 30 */
+#define PPI_CHG_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHG_CH30_Msk (0x1UL << PPI_CHG_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHG_CH30_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH30_Included (1UL) /*!< Include */
+
+/* Bit 29 : Include or exclude channel 29 */
+#define PPI_CHG_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHG_CH29_Msk (0x1UL << PPI_CHG_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHG_CH29_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH29_Included (1UL) /*!< Include */
+
+/* Bit 28 : Include or exclude channel 28 */
+#define PPI_CHG_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHG_CH28_Msk (0x1UL << PPI_CHG_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHG_CH28_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH28_Included (1UL) /*!< Include */
+
+/* Bit 27 : Include or exclude channel 27 */
+#define PPI_CHG_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHG_CH27_Msk (0x1UL << PPI_CHG_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHG_CH27_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH27_Included (1UL) /*!< Include */
+
+/* Bit 26 : Include or exclude channel 26 */
+#define PPI_CHG_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHG_CH26_Msk (0x1UL << PPI_CHG_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHG_CH26_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH26_Included (1UL) /*!< Include */
+
+/* Bit 25 : Include or exclude channel 25 */
+#define PPI_CHG_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHG_CH25_Msk (0x1UL << PPI_CHG_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHG_CH25_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH25_Included (1UL) /*!< Include */
+
+/* Bit 24 : Include or exclude channel 24 */
+#define PPI_CHG_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHG_CH24_Msk (0x1UL << PPI_CHG_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHG_CH24_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH24_Included (1UL) /*!< Include */
+
+/* Bit 23 : Include or exclude channel 23 */
+#define PPI_CHG_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHG_CH23_Msk (0x1UL << PPI_CHG_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHG_CH23_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH23_Included (1UL) /*!< Include */
+
+/* Bit 22 : Include or exclude channel 22 */
+#define PPI_CHG_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHG_CH22_Msk (0x1UL << PPI_CHG_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHG_CH22_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH22_Included (1UL) /*!< Include */
+
+/* Bit 21 : Include or exclude channel 21 */
+#define PPI_CHG_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHG_CH21_Msk (0x1UL << PPI_CHG_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHG_CH21_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH21_Included (1UL) /*!< Include */
+
+/* Bit 20 : Include or exclude channel 20 */
+#define PPI_CHG_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHG_CH20_Msk (0x1UL << PPI_CHG_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHG_CH20_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH20_Included (1UL) /*!< Include */
+
+/* Bit 19 : Include or exclude channel 19 */
+#define PPI_CHG_CH19_Pos (19UL) /*!< Position of CH19 field. */
+#define PPI_CHG_CH19_Msk (0x1UL << PPI_CHG_CH19_Pos) /*!< Bit mask of CH19 field. */
+#define PPI_CHG_CH19_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH19_Included (1UL) /*!< Include */
+
+/* Bit 18 : Include or exclude channel 18 */
+#define PPI_CHG_CH18_Pos (18UL) /*!< Position of CH18 field. */
+#define PPI_CHG_CH18_Msk (0x1UL << PPI_CHG_CH18_Pos) /*!< Bit mask of CH18 field. */
+#define PPI_CHG_CH18_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH18_Included (1UL) /*!< Include */
+
+/* Bit 17 : Include or exclude channel 17 */
+#define PPI_CHG_CH17_Pos (17UL) /*!< Position of CH17 field. */
+#define PPI_CHG_CH17_Msk (0x1UL << PPI_CHG_CH17_Pos) /*!< Bit mask of CH17 field. */
+#define PPI_CHG_CH17_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH17_Included (1UL) /*!< Include */
+
+/* Bit 16 : Include or exclude channel 16 */
+#define PPI_CHG_CH16_Pos (16UL) /*!< Position of CH16 field. */
+#define PPI_CHG_CH16_Msk (0x1UL << PPI_CHG_CH16_Pos) /*!< Bit mask of CH16 field. */
+#define PPI_CHG_CH16_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH16_Included (1UL) /*!< Include */
+
+/* Bit 15 : Include or exclude channel 15 */
+#define PPI_CHG_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHG_CH15_Msk (0x1UL << PPI_CHG_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHG_CH15_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH15_Included (1UL) /*!< Include */
+
+/* Bit 14 : Include or exclude channel 14 */
+#define PPI_CHG_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHG_CH14_Msk (0x1UL << PPI_CHG_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHG_CH14_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH14_Included (1UL) /*!< Include */
+
+/* Bit 13 : Include or exclude channel 13 */
+#define PPI_CHG_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHG_CH13_Msk (0x1UL << PPI_CHG_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHG_CH13_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH13_Included (1UL) /*!< Include */
+
+/* Bit 12 : Include or exclude channel 12 */
+#define PPI_CHG_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHG_CH12_Msk (0x1UL << PPI_CHG_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHG_CH12_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH12_Included (1UL) /*!< Include */
+
+/* Bit 11 : Include or exclude channel 11 */
+#define PPI_CHG_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHG_CH11_Msk (0x1UL << PPI_CHG_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHG_CH11_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH11_Included (1UL) /*!< Include */
+
+/* Bit 10 : Include or exclude channel 10 */
+#define PPI_CHG_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHG_CH10_Msk (0x1UL << PPI_CHG_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHG_CH10_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH10_Included (1UL) /*!< Include */
+
+/* Bit 9 : Include or exclude channel 9 */
+#define PPI_CHG_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHG_CH9_Msk (0x1UL << PPI_CHG_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHG_CH9_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH9_Included (1UL) /*!< Include */
+
+/* Bit 8 : Include or exclude channel 8 */
+#define PPI_CHG_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHG_CH8_Msk (0x1UL << PPI_CHG_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHG_CH8_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH8_Included (1UL) /*!< Include */
+
+/* Bit 7 : Include or exclude channel 7 */
+#define PPI_CHG_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHG_CH7_Msk (0x1UL << PPI_CHG_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHG_CH7_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH7_Included (1UL) /*!< Include */
+
+/* Bit 6 : Include or exclude channel 6 */
+#define PPI_CHG_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHG_CH6_Msk (0x1UL << PPI_CHG_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHG_CH6_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH6_Included (1UL) /*!< Include */
+
+/* Bit 5 : Include or exclude channel 5 */
+#define PPI_CHG_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHG_CH5_Msk (0x1UL << PPI_CHG_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHG_CH5_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH5_Included (1UL) /*!< Include */
+
+/* Bit 4 : Include or exclude channel 4 */
+#define PPI_CHG_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHG_CH4_Msk (0x1UL << PPI_CHG_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHG_CH4_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH4_Included (1UL) /*!< Include */
+
+/* Bit 3 : Include or exclude channel 3 */
+#define PPI_CHG_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHG_CH3_Msk (0x1UL << PPI_CHG_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHG_CH3_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH3_Included (1UL) /*!< Include */
+
+/* Bit 2 : Include or exclude channel 2 */
+#define PPI_CHG_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHG_CH2_Msk (0x1UL << PPI_CHG_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHG_CH2_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH2_Included (1UL) /*!< Include */
+
+/* Bit 1 : Include or exclude channel 1 */
+#define PPI_CHG_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHG_CH1_Msk (0x1UL << PPI_CHG_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHG_CH1_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH1_Included (1UL) /*!< Include */
+
+/* Bit 0 : Include or exclude channel 0 */
+#define PPI_CHG_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHG_CH0_Msk (0x1UL << PPI_CHG_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHG_CH0_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH0_Included (1UL) /*!< Include */
+
+/* Register: PPI_FORK_TEP */
+/* Description: Description cluster[n]: Channel n task end-point */
+
+/* Bits 31..0 : Pointer to task register */
+#define PPI_FORK_TEP_TEP_Pos (0UL) /*!< Position of TEP field. */
+#define PPI_FORK_TEP_TEP_Msk (0xFFFFFFFFUL << PPI_FORK_TEP_TEP_Pos) /*!< Bit mask of TEP field. */
+
+
+/* Peripheral: PWM */
+/* Description: Pulse width modulation unit 0 */
+
+/* Register: PWM_TASKS_STOP */
+/* Description: Stops PWM pulse generation on all channels at the end of current PWM period, and stops sequence playback */
+
+/* Bit 0 : */
+#define PWM_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define PWM_TASKS_STOP_TASKS_STOP_Msk (0x1UL << PWM_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: PWM_TASKS_SEQSTART */
+/* Description: Description collection[n]: Loads the first PWM value on all enabled channels from sequence n, and starts playing that sequence at the rate defined in SEQ[n]REFRESH and/or DECODER.MODE. Causes PWM generation to start if not running. */
+
+/* Bit 0 : */
+#define PWM_TASKS_SEQSTART_TASKS_SEQSTART_Pos (0UL) /*!< Position of TASKS_SEQSTART field. */
+#define PWM_TASKS_SEQSTART_TASKS_SEQSTART_Msk (0x1UL << PWM_TASKS_SEQSTART_TASKS_SEQSTART_Pos) /*!< Bit mask of TASKS_SEQSTART field. */
+
+/* Register: PWM_TASKS_NEXTSTEP */
+/* Description: Steps by one value in the current sequence on all enabled channels if DECODER.MODE=NextStep. Does not cause PWM generation to start if not running. */
+
+/* Bit 0 : */
+#define PWM_TASKS_NEXTSTEP_TASKS_NEXTSTEP_Pos (0UL) /*!< Position of TASKS_NEXTSTEP field. */
+#define PWM_TASKS_NEXTSTEP_TASKS_NEXTSTEP_Msk (0x1UL << PWM_TASKS_NEXTSTEP_TASKS_NEXTSTEP_Pos) /*!< Bit mask of TASKS_NEXTSTEP field. */
+
+/* Register: PWM_EVENTS_STOPPED */
+/* Description: Response to STOP task, emitted when PWM pulses are no longer generated */
+
+/* Bit 0 : */
+#define PWM_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define PWM_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << PWM_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: PWM_EVENTS_SEQSTARTED */
+/* Description: Description collection[n]: First PWM period started on sequence n */
+
+/* Bit 0 : */
+#define PWM_EVENTS_SEQSTARTED_EVENTS_SEQSTARTED_Pos (0UL) /*!< Position of EVENTS_SEQSTARTED field. */
+#define PWM_EVENTS_SEQSTARTED_EVENTS_SEQSTARTED_Msk (0x1UL << PWM_EVENTS_SEQSTARTED_EVENTS_SEQSTARTED_Pos) /*!< Bit mask of EVENTS_SEQSTARTED field. */
+
+/* Register: PWM_EVENTS_SEQEND */
+/* Description: Description collection[n]: Emitted at end of every sequence n, when last value from RAM has been applied to wave counter */
+
+/* Bit 0 : */
+#define PWM_EVENTS_SEQEND_EVENTS_SEQEND_Pos (0UL) /*!< Position of EVENTS_SEQEND field. */
+#define PWM_EVENTS_SEQEND_EVENTS_SEQEND_Msk (0x1UL << PWM_EVENTS_SEQEND_EVENTS_SEQEND_Pos) /*!< Bit mask of EVENTS_SEQEND field. */
+
+/* Register: PWM_EVENTS_PWMPERIODEND */
+/* Description: Emitted at the end of each PWM period */
+
+/* Bit 0 : */
+#define PWM_EVENTS_PWMPERIODEND_EVENTS_PWMPERIODEND_Pos (0UL) /*!< Position of EVENTS_PWMPERIODEND field. */
+#define PWM_EVENTS_PWMPERIODEND_EVENTS_PWMPERIODEND_Msk (0x1UL << PWM_EVENTS_PWMPERIODEND_EVENTS_PWMPERIODEND_Pos) /*!< Bit mask of EVENTS_PWMPERIODEND field. */
+
+/* Register: PWM_EVENTS_LOOPSDONE */
+/* Description: Concatenated sequences have been played the amount of times defined in LOOP.CNT */
+
+/* Bit 0 : */
+#define PWM_EVENTS_LOOPSDONE_EVENTS_LOOPSDONE_Pos (0UL) /*!< Position of EVENTS_LOOPSDONE field. */
+#define PWM_EVENTS_LOOPSDONE_EVENTS_LOOPSDONE_Msk (0x1UL << PWM_EVENTS_LOOPSDONE_EVENTS_LOOPSDONE_Pos) /*!< Bit mask of EVENTS_LOOPSDONE field. */
+
+/* Register: PWM_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 4 : Shortcut between LOOPSDONE event and STOP task */
+#define PWM_SHORTS_LOOPSDONE_STOP_Pos (4UL) /*!< Position of LOOPSDONE_STOP field. */
+#define PWM_SHORTS_LOOPSDONE_STOP_Msk (0x1UL << PWM_SHORTS_LOOPSDONE_STOP_Pos) /*!< Bit mask of LOOPSDONE_STOP field. */
+#define PWM_SHORTS_LOOPSDONE_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_LOOPSDONE_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between LOOPSDONE event and SEQSTART[1] task */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART1_Pos (3UL) /*!< Position of LOOPSDONE_SEQSTART1 field. */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART1_Msk (0x1UL << PWM_SHORTS_LOOPSDONE_SEQSTART1_Pos) /*!< Bit mask of LOOPSDONE_SEQSTART1 field. */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART1_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART1_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between LOOPSDONE event and SEQSTART[0] task */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART0_Pos (2UL) /*!< Position of LOOPSDONE_SEQSTART0 field. */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART0_Msk (0x1UL << PWM_SHORTS_LOOPSDONE_SEQSTART0_Pos) /*!< Bit mask of LOOPSDONE_SEQSTART0 field. */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART0_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART0_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between SEQEND[1] event and STOP task */
+#define PWM_SHORTS_SEQEND1_STOP_Pos (1UL) /*!< Position of SEQEND1_STOP field. */
+#define PWM_SHORTS_SEQEND1_STOP_Msk (0x1UL << PWM_SHORTS_SEQEND1_STOP_Pos) /*!< Bit mask of SEQEND1_STOP field. */
+#define PWM_SHORTS_SEQEND1_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_SEQEND1_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between SEQEND[0] event and STOP task */
+#define PWM_SHORTS_SEQEND0_STOP_Pos (0UL) /*!< Position of SEQEND0_STOP field. */
+#define PWM_SHORTS_SEQEND0_STOP_Msk (0x1UL << PWM_SHORTS_SEQEND0_STOP_Pos) /*!< Bit mask of SEQEND0_STOP field. */
+#define PWM_SHORTS_SEQEND0_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_SEQEND0_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: PWM_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 7 : Enable or disable interrupt for LOOPSDONE event */
+#define PWM_INTEN_LOOPSDONE_Pos (7UL) /*!< Position of LOOPSDONE field. */
+#define PWM_INTEN_LOOPSDONE_Msk (0x1UL << PWM_INTEN_LOOPSDONE_Pos) /*!< Bit mask of LOOPSDONE field. */
+#define PWM_INTEN_LOOPSDONE_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_LOOPSDONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for PWMPERIODEND event */
+#define PWM_INTEN_PWMPERIODEND_Pos (6UL) /*!< Position of PWMPERIODEND field. */
+#define PWM_INTEN_PWMPERIODEND_Msk (0x1UL << PWM_INTEN_PWMPERIODEND_Pos) /*!< Bit mask of PWMPERIODEND field. */
+#define PWM_INTEN_PWMPERIODEND_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_PWMPERIODEND_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for SEQEND[1] event */
+#define PWM_INTEN_SEQEND1_Pos (5UL) /*!< Position of SEQEND1 field. */
+#define PWM_INTEN_SEQEND1_Msk (0x1UL << PWM_INTEN_SEQEND1_Pos) /*!< Bit mask of SEQEND1 field. */
+#define PWM_INTEN_SEQEND1_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_SEQEND1_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for SEQEND[0] event */
+#define PWM_INTEN_SEQEND0_Pos (4UL) /*!< Position of SEQEND0 field. */
+#define PWM_INTEN_SEQEND0_Msk (0x1UL << PWM_INTEN_SEQEND0_Pos) /*!< Bit mask of SEQEND0 field. */
+#define PWM_INTEN_SEQEND0_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_SEQEND0_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for SEQSTARTED[1] event */
+#define PWM_INTEN_SEQSTARTED1_Pos (3UL) /*!< Position of SEQSTARTED1 field. */
+#define PWM_INTEN_SEQSTARTED1_Msk (0x1UL << PWM_INTEN_SEQSTARTED1_Pos) /*!< Bit mask of SEQSTARTED1 field. */
+#define PWM_INTEN_SEQSTARTED1_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_SEQSTARTED1_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for SEQSTARTED[0] event */
+#define PWM_INTEN_SEQSTARTED0_Pos (2UL) /*!< Position of SEQSTARTED0 field. */
+#define PWM_INTEN_SEQSTARTED0_Msk (0x1UL << PWM_INTEN_SEQSTARTED0_Pos) /*!< Bit mask of SEQSTARTED0 field. */
+#define PWM_INTEN_SEQSTARTED0_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_SEQSTARTED0_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STOPPED event */
+#define PWM_INTEN_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PWM_INTEN_STOPPED_Msk (0x1UL << PWM_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PWM_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Register: PWM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 7 : Write '1' to enable interrupt for LOOPSDONE event */
+#define PWM_INTENSET_LOOPSDONE_Pos (7UL) /*!< Position of LOOPSDONE field. */
+#define PWM_INTENSET_LOOPSDONE_Msk (0x1UL << PWM_INTENSET_LOOPSDONE_Pos) /*!< Bit mask of LOOPSDONE field. */
+#define PWM_INTENSET_LOOPSDONE_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_LOOPSDONE_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_LOOPSDONE_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to enable interrupt for PWMPERIODEND event */
+#define PWM_INTENSET_PWMPERIODEND_Pos (6UL) /*!< Position of PWMPERIODEND field. */
+#define PWM_INTENSET_PWMPERIODEND_Msk (0x1UL << PWM_INTENSET_PWMPERIODEND_Pos) /*!< Bit mask of PWMPERIODEND field. */
+#define PWM_INTENSET_PWMPERIODEND_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_PWMPERIODEND_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_PWMPERIODEND_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to enable interrupt for SEQEND[1] event */
+#define PWM_INTENSET_SEQEND1_Pos (5UL) /*!< Position of SEQEND1 field. */
+#define PWM_INTENSET_SEQEND1_Msk (0x1UL << PWM_INTENSET_SEQEND1_Pos) /*!< Bit mask of SEQEND1 field. */
+#define PWM_INTENSET_SEQEND1_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_SEQEND1_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_SEQEND1_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable interrupt for SEQEND[0] event */
+#define PWM_INTENSET_SEQEND0_Pos (4UL) /*!< Position of SEQEND0 field. */
+#define PWM_INTENSET_SEQEND0_Msk (0x1UL << PWM_INTENSET_SEQEND0_Pos) /*!< Bit mask of SEQEND0 field. */
+#define PWM_INTENSET_SEQEND0_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_SEQEND0_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_SEQEND0_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to enable interrupt for SEQSTARTED[1] event */
+#define PWM_INTENSET_SEQSTARTED1_Pos (3UL) /*!< Position of SEQSTARTED1 field. */
+#define PWM_INTENSET_SEQSTARTED1_Msk (0x1UL << PWM_INTENSET_SEQSTARTED1_Pos) /*!< Bit mask of SEQSTARTED1 field. */
+#define PWM_INTENSET_SEQSTARTED1_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_SEQSTARTED1_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_SEQSTARTED1_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for SEQSTARTED[0] event */
+#define PWM_INTENSET_SEQSTARTED0_Pos (2UL) /*!< Position of SEQSTARTED0 field. */
+#define PWM_INTENSET_SEQSTARTED0_Msk (0x1UL << PWM_INTENSET_SEQSTARTED0_Pos) /*!< Bit mask of SEQSTARTED0 field. */
+#define PWM_INTENSET_SEQSTARTED0_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_SEQSTARTED0_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_SEQSTARTED0_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for STOPPED event */
+#define PWM_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PWM_INTENSET_STOPPED_Msk (0x1UL << PWM_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PWM_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: PWM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 7 : Write '1' to disable interrupt for LOOPSDONE event */
+#define PWM_INTENCLR_LOOPSDONE_Pos (7UL) /*!< Position of LOOPSDONE field. */
+#define PWM_INTENCLR_LOOPSDONE_Msk (0x1UL << PWM_INTENCLR_LOOPSDONE_Pos) /*!< Bit mask of LOOPSDONE field. */
+#define PWM_INTENCLR_LOOPSDONE_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_LOOPSDONE_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_LOOPSDONE_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to disable interrupt for PWMPERIODEND event */
+#define PWM_INTENCLR_PWMPERIODEND_Pos (6UL) /*!< Position of PWMPERIODEND field. */
+#define PWM_INTENCLR_PWMPERIODEND_Msk (0x1UL << PWM_INTENCLR_PWMPERIODEND_Pos) /*!< Bit mask of PWMPERIODEND field. */
+#define PWM_INTENCLR_PWMPERIODEND_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_PWMPERIODEND_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_PWMPERIODEND_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to disable interrupt for SEQEND[1] event */
+#define PWM_INTENCLR_SEQEND1_Pos (5UL) /*!< Position of SEQEND1 field. */
+#define PWM_INTENCLR_SEQEND1_Msk (0x1UL << PWM_INTENCLR_SEQEND1_Pos) /*!< Bit mask of SEQEND1 field. */
+#define PWM_INTENCLR_SEQEND1_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_SEQEND1_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_SEQEND1_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable interrupt for SEQEND[0] event */
+#define PWM_INTENCLR_SEQEND0_Pos (4UL) /*!< Position of SEQEND0 field. */
+#define PWM_INTENCLR_SEQEND0_Msk (0x1UL << PWM_INTENCLR_SEQEND0_Pos) /*!< Bit mask of SEQEND0 field. */
+#define PWM_INTENCLR_SEQEND0_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_SEQEND0_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_SEQEND0_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to disable interrupt for SEQSTARTED[1] event */
+#define PWM_INTENCLR_SEQSTARTED1_Pos (3UL) /*!< Position of SEQSTARTED1 field. */
+#define PWM_INTENCLR_SEQSTARTED1_Msk (0x1UL << PWM_INTENCLR_SEQSTARTED1_Pos) /*!< Bit mask of SEQSTARTED1 field. */
+#define PWM_INTENCLR_SEQSTARTED1_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_SEQSTARTED1_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_SEQSTARTED1_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for SEQSTARTED[0] event */
+#define PWM_INTENCLR_SEQSTARTED0_Pos (2UL) /*!< Position of SEQSTARTED0 field. */
+#define PWM_INTENCLR_SEQSTARTED0_Msk (0x1UL << PWM_INTENCLR_SEQSTARTED0_Pos) /*!< Bit mask of SEQSTARTED0 field. */
+#define PWM_INTENCLR_SEQSTARTED0_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_SEQSTARTED0_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_SEQSTARTED0_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for STOPPED event */
+#define PWM_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PWM_INTENCLR_STOPPED_Msk (0x1UL << PWM_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PWM_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: PWM_ENABLE */
+/* Description: PWM module enable register */
+
+/* Bit 0 : Enable or disable PWM module */
+#define PWM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define PWM_ENABLE_ENABLE_Msk (0x1UL << PWM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define PWM_ENABLE_ENABLE_Disabled (0UL) /*!< Disabled */
+#define PWM_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: PWM_MODE */
+/* Description: Selects operating mode of the wave counter */
+
+/* Bit 0 : Selects up mode or up-and-down mode for the counter */
+#define PWM_MODE_UPDOWN_Pos (0UL) /*!< Position of UPDOWN field. */
+#define PWM_MODE_UPDOWN_Msk (0x1UL << PWM_MODE_UPDOWN_Pos) /*!< Bit mask of UPDOWN field. */
+#define PWM_MODE_UPDOWN_Up (0UL) /*!< Up counter, edge-aligned PWM duty cycle */
+#define PWM_MODE_UPDOWN_UpAndDown (1UL) /*!< Up and down counter, center-aligned PWM duty cycle */
+
+/* Register: PWM_COUNTERTOP */
+/* Description: Value up to which the pulse generator counter counts */
+
+/* Bits 14..0 : Value up to which the pulse generator counter counts. This register is ignored when DECODER.MODE=WaveForm and only values from RAM are used. */
+#define PWM_COUNTERTOP_COUNTERTOP_Pos (0UL) /*!< Position of COUNTERTOP field. */
+#define PWM_COUNTERTOP_COUNTERTOP_Msk (0x7FFFUL << PWM_COUNTERTOP_COUNTERTOP_Pos) /*!< Bit mask of COUNTERTOP field. */
+
+/* Register: PWM_PRESCALER */
+/* Description: Configuration for PWM_CLK */
+
+/* Bits 2..0 : Prescaler of PWM_CLK */
+#define PWM_PRESCALER_PRESCALER_Pos (0UL) /*!< Position of PRESCALER field. */
+#define PWM_PRESCALER_PRESCALER_Msk (0x7UL << PWM_PRESCALER_PRESCALER_Pos) /*!< Bit mask of PRESCALER field. */
+#define PWM_PRESCALER_PRESCALER_DIV_1 (0UL) /*!< Divide by 1 (16 MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_2 (1UL) /*!< Divide by 2 (8 MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_4 (2UL) /*!< Divide by 4 (4 MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_8 (3UL) /*!< Divide by 8 (2 MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_16 (4UL) /*!< Divide by 16 (1 MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_32 (5UL) /*!< Divide by 32 (500 kHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_64 (6UL) /*!< Divide by 64 (250 kHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_128 (7UL) /*!< Divide by 128 (125 kHz) */
+
+/* Register: PWM_DECODER */
+/* Description: Configuration of the decoder */
+
+/* Bit 8 : Selects source for advancing the active sequence */
+#define PWM_DECODER_MODE_Pos (8UL) /*!< Position of MODE field. */
+#define PWM_DECODER_MODE_Msk (0x1UL << PWM_DECODER_MODE_Pos) /*!< Bit mask of MODE field. */
+#define PWM_DECODER_MODE_RefreshCount (0UL) /*!< SEQ[n].REFRESH is used to determine loading internal compare registers */
+#define PWM_DECODER_MODE_NextStep (1UL) /*!< NEXTSTEP task causes a new value to be loaded to internal compare registers */
+
+/* Bits 1..0 : How a sequence is read from RAM and spread to the compare register */
+#define PWM_DECODER_LOAD_Pos (0UL) /*!< Position of LOAD field. */
+#define PWM_DECODER_LOAD_Msk (0x3UL << PWM_DECODER_LOAD_Pos) /*!< Bit mask of LOAD field. */
+#define PWM_DECODER_LOAD_Common (0UL) /*!< 1st half word (16-bit) used in all PWM channels 0..3 */
+#define PWM_DECODER_LOAD_Grouped (1UL) /*!< 1st half word (16-bit) used in channel 0..1; 2nd word in channel 2..3 */
+#define PWM_DECODER_LOAD_Individual (2UL) /*!< 1st half word (16-bit) in ch.0; 2nd in ch.1; ...; 4th in ch.3 */
+#define PWM_DECODER_LOAD_WaveForm (3UL) /*!< 1st half word (16-bit) in ch.0; 2nd in ch.1; ...; 4th in COUNTERTOP */
+
+/* Register: PWM_LOOP */
+/* Description: Number of playbacks of a loop */
+
+/* Bits 15..0 : Number of playbacks of pattern cycles */
+#define PWM_LOOP_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define PWM_LOOP_CNT_Msk (0xFFFFUL << PWM_LOOP_CNT_Pos) /*!< Bit mask of CNT field. */
+#define PWM_LOOP_CNT_Disabled (0UL) /*!< Looping disabled (stop at the end of the sequence) */
+
+/* Register: PWM_SEQ_PTR */
+/* Description: Description cluster[n]: Beginning address in RAM of this sequence */
+
+/* Bits 31..0 : Beginning address in RAM of this sequence */
+#define PWM_SEQ_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define PWM_SEQ_PTR_PTR_Msk (0xFFFFFFFFUL << PWM_SEQ_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: PWM_SEQ_CNT */
+/* Description: Description cluster[n]: Number of values (duty cycles) in this sequence */
+
+/* Bits 14..0 : Number of values (duty cycles) in this sequence */
+#define PWM_SEQ_CNT_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define PWM_SEQ_CNT_CNT_Msk (0x7FFFUL << PWM_SEQ_CNT_CNT_Pos) /*!< Bit mask of CNT field. */
+#define PWM_SEQ_CNT_CNT_Disabled (0UL) /*!< Sequence is disabled, and shall not be started as it is empty */
+
+/* Register: PWM_SEQ_REFRESH */
+/* Description: Description cluster[n]: Number of additional PWM periods between samples loaded into compare register */
+
+/* Bits 23..0 : Number of additional PWM periods between samples loaded into compare register (load every REFRESH.CNT+1 PWM periods) */
+#define PWM_SEQ_REFRESH_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define PWM_SEQ_REFRESH_CNT_Msk (0xFFFFFFUL << PWM_SEQ_REFRESH_CNT_Pos) /*!< Bit mask of CNT field. */
+#define PWM_SEQ_REFRESH_CNT_Continuous (0UL) /*!< Update every PWM period */
+
+/* Register: PWM_SEQ_ENDDELAY */
+/* Description: Description cluster[n]: Time added after the sequence */
+
+/* Bits 23..0 : Time added after the sequence in PWM periods */
+#define PWM_SEQ_ENDDELAY_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define PWM_SEQ_ENDDELAY_CNT_Msk (0xFFFFFFUL << PWM_SEQ_ENDDELAY_CNT_Pos) /*!< Bit mask of CNT field. */
+
+/* Register: PWM_PSEL_OUT */
+/* Description: Description collection[n]: Output pin select for PWM channel n */
+
+/* Bit 31 : Connection */
+#define PWM_PSEL_OUT_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define PWM_PSEL_OUT_CONNECT_Msk (0x1UL << PWM_PSEL_OUT_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define PWM_PSEL_OUT_CONNECT_Connected (0UL) /*!< Connect */
+#define PWM_PSEL_OUT_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define PWM_PSEL_OUT_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define PWM_PSEL_OUT_PORT_Msk (0x1UL << PWM_PSEL_OUT_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define PWM_PSEL_OUT_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define PWM_PSEL_OUT_PIN_Msk (0x1FUL << PWM_PSEL_OUT_PIN_Pos) /*!< Bit mask of PIN field. */
+
+
+/* Peripheral: QDEC */
+/* Description: Quadrature Decoder */
+
+/* Register: QDEC_TASKS_START */
+/* Description: Task starting the quadrature decoder */
+
+/* Bit 0 : */
+#define QDEC_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define QDEC_TASKS_START_TASKS_START_Msk (0x1UL << QDEC_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: QDEC_TASKS_STOP */
+/* Description: Task stopping the quadrature decoder */
+
+/* Bit 0 : */
+#define QDEC_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define QDEC_TASKS_STOP_TASKS_STOP_Msk (0x1UL << QDEC_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: QDEC_TASKS_READCLRACC */
+/* Description: Read and clear ACC and ACCDBL */
+
+/* Bit 0 : */
+#define QDEC_TASKS_READCLRACC_TASKS_READCLRACC_Pos (0UL) /*!< Position of TASKS_READCLRACC field. */
+#define QDEC_TASKS_READCLRACC_TASKS_READCLRACC_Msk (0x1UL << QDEC_TASKS_READCLRACC_TASKS_READCLRACC_Pos) /*!< Bit mask of TASKS_READCLRACC field. */
+
+/* Register: QDEC_TASKS_RDCLRACC */
+/* Description: Read and clear ACC */
+
+/* Bit 0 : */
+#define QDEC_TASKS_RDCLRACC_TASKS_RDCLRACC_Pos (0UL) /*!< Position of TASKS_RDCLRACC field. */
+#define QDEC_TASKS_RDCLRACC_TASKS_RDCLRACC_Msk (0x1UL << QDEC_TASKS_RDCLRACC_TASKS_RDCLRACC_Pos) /*!< Bit mask of TASKS_RDCLRACC field. */
+
+/* Register: QDEC_TASKS_RDCLRDBL */
+/* Description: Read and clear ACCDBL */
+
+/* Bit 0 : */
+#define QDEC_TASKS_RDCLRDBL_TASKS_RDCLRDBL_Pos (0UL) /*!< Position of TASKS_RDCLRDBL field. */
+#define QDEC_TASKS_RDCLRDBL_TASKS_RDCLRDBL_Msk (0x1UL << QDEC_TASKS_RDCLRDBL_TASKS_RDCLRDBL_Pos) /*!< Bit mask of TASKS_RDCLRDBL field. */
+
+/* Register: QDEC_EVENTS_SAMPLERDY */
+/* Description: Event being generated for every new sample value written to the SAMPLE register */
+
+/* Bit 0 : */
+#define QDEC_EVENTS_SAMPLERDY_EVENTS_SAMPLERDY_Pos (0UL) /*!< Position of EVENTS_SAMPLERDY field. */
+#define QDEC_EVENTS_SAMPLERDY_EVENTS_SAMPLERDY_Msk (0x1UL << QDEC_EVENTS_SAMPLERDY_EVENTS_SAMPLERDY_Pos) /*!< Bit mask of EVENTS_SAMPLERDY field. */
+
+/* Register: QDEC_EVENTS_REPORTRDY */
+/* Description: Non-null report ready */
+
+/* Bit 0 : */
+#define QDEC_EVENTS_REPORTRDY_EVENTS_REPORTRDY_Pos (0UL) /*!< Position of EVENTS_REPORTRDY field. */
+#define QDEC_EVENTS_REPORTRDY_EVENTS_REPORTRDY_Msk (0x1UL << QDEC_EVENTS_REPORTRDY_EVENTS_REPORTRDY_Pos) /*!< Bit mask of EVENTS_REPORTRDY field. */
+
+/* Register: QDEC_EVENTS_ACCOF */
+/* Description: ACC or ACCDBL register overflow */
+
+/* Bit 0 : */
+#define QDEC_EVENTS_ACCOF_EVENTS_ACCOF_Pos (0UL) /*!< Position of EVENTS_ACCOF field. */
+#define QDEC_EVENTS_ACCOF_EVENTS_ACCOF_Msk (0x1UL << QDEC_EVENTS_ACCOF_EVENTS_ACCOF_Pos) /*!< Bit mask of EVENTS_ACCOF field. */
+
+/* Register: QDEC_EVENTS_DBLRDY */
+/* Description: Double displacement(s) detected */
+
+/* Bit 0 : */
+#define QDEC_EVENTS_DBLRDY_EVENTS_DBLRDY_Pos (0UL) /*!< Position of EVENTS_DBLRDY field. */
+#define QDEC_EVENTS_DBLRDY_EVENTS_DBLRDY_Msk (0x1UL << QDEC_EVENTS_DBLRDY_EVENTS_DBLRDY_Pos) /*!< Bit mask of EVENTS_DBLRDY field. */
+
+/* Register: QDEC_EVENTS_STOPPED */
+/* Description: QDEC has been stopped */
+
+/* Bit 0 : */
+#define QDEC_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define QDEC_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << QDEC_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: QDEC_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 6 : Shortcut between SAMPLERDY event and READCLRACC task */
+#define QDEC_SHORTS_SAMPLERDY_READCLRACC_Pos (6UL) /*!< Position of SAMPLERDY_READCLRACC field. */
+#define QDEC_SHORTS_SAMPLERDY_READCLRACC_Msk (0x1UL << QDEC_SHORTS_SAMPLERDY_READCLRACC_Pos) /*!< Bit mask of SAMPLERDY_READCLRACC field. */
+#define QDEC_SHORTS_SAMPLERDY_READCLRACC_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_SAMPLERDY_READCLRACC_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 5 : Shortcut between DBLRDY event and STOP task */
+#define QDEC_SHORTS_DBLRDY_STOP_Pos (5UL) /*!< Position of DBLRDY_STOP field. */
+#define QDEC_SHORTS_DBLRDY_STOP_Msk (0x1UL << QDEC_SHORTS_DBLRDY_STOP_Pos) /*!< Bit mask of DBLRDY_STOP field. */
+#define QDEC_SHORTS_DBLRDY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_DBLRDY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 4 : Shortcut between DBLRDY event and RDCLRDBL task */
+#define QDEC_SHORTS_DBLRDY_RDCLRDBL_Pos (4UL) /*!< Position of DBLRDY_RDCLRDBL field. */
+#define QDEC_SHORTS_DBLRDY_RDCLRDBL_Msk (0x1UL << QDEC_SHORTS_DBLRDY_RDCLRDBL_Pos) /*!< Bit mask of DBLRDY_RDCLRDBL field. */
+#define QDEC_SHORTS_DBLRDY_RDCLRDBL_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_DBLRDY_RDCLRDBL_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between REPORTRDY event and STOP task */
+#define QDEC_SHORTS_REPORTRDY_STOP_Pos (3UL) /*!< Position of REPORTRDY_STOP field. */
+#define QDEC_SHORTS_REPORTRDY_STOP_Msk (0x1UL << QDEC_SHORTS_REPORTRDY_STOP_Pos) /*!< Bit mask of REPORTRDY_STOP field. */
+#define QDEC_SHORTS_REPORTRDY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_REPORTRDY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between REPORTRDY event and RDCLRACC task */
+#define QDEC_SHORTS_REPORTRDY_RDCLRACC_Pos (2UL) /*!< Position of REPORTRDY_RDCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_RDCLRACC_Msk (0x1UL << QDEC_SHORTS_REPORTRDY_RDCLRACC_Pos) /*!< Bit mask of REPORTRDY_RDCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_RDCLRACC_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_REPORTRDY_RDCLRACC_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between SAMPLERDY event and STOP task */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Pos (1UL) /*!< Position of SAMPLERDY_STOP field. */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Msk (0x1UL << QDEC_SHORTS_SAMPLERDY_STOP_Pos) /*!< Bit mask of SAMPLERDY_STOP field. */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between REPORTRDY event and READCLRACC task */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Pos (0UL) /*!< Position of REPORTRDY_READCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Msk (0x1UL << QDEC_SHORTS_REPORTRDY_READCLRACC_Pos) /*!< Bit mask of REPORTRDY_READCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: QDEC_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 4 : Write '1' to enable interrupt for STOPPED event */
+#define QDEC_INTENSET_STOPPED_Pos (4UL) /*!< Position of STOPPED field. */
+#define QDEC_INTENSET_STOPPED_Msk (0x1UL << QDEC_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define QDEC_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to enable interrupt for DBLRDY event */
+#define QDEC_INTENSET_DBLRDY_Pos (3UL) /*!< Position of DBLRDY field. */
+#define QDEC_INTENSET_DBLRDY_Msk (0x1UL << QDEC_INTENSET_DBLRDY_Pos) /*!< Bit mask of DBLRDY field. */
+#define QDEC_INTENSET_DBLRDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_DBLRDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_DBLRDY_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for ACCOF event */
+#define QDEC_INTENSET_ACCOF_Pos (2UL) /*!< Position of ACCOF field. */
+#define QDEC_INTENSET_ACCOF_Msk (0x1UL << QDEC_INTENSET_ACCOF_Pos) /*!< Bit mask of ACCOF field. */
+#define QDEC_INTENSET_ACCOF_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_ACCOF_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_ACCOF_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for REPORTRDY event */
+#define QDEC_INTENSET_REPORTRDY_Pos (1UL) /*!< Position of REPORTRDY field. */
+#define QDEC_INTENSET_REPORTRDY_Msk (0x1UL << QDEC_INTENSET_REPORTRDY_Pos) /*!< Bit mask of REPORTRDY field. */
+#define QDEC_INTENSET_REPORTRDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_REPORTRDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_REPORTRDY_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for SAMPLERDY event */
+#define QDEC_INTENSET_SAMPLERDY_Pos (0UL) /*!< Position of SAMPLERDY field. */
+#define QDEC_INTENSET_SAMPLERDY_Msk (0x1UL << QDEC_INTENSET_SAMPLERDY_Pos) /*!< Bit mask of SAMPLERDY field. */
+#define QDEC_INTENSET_SAMPLERDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_SAMPLERDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_SAMPLERDY_Set (1UL) /*!< Enable */
+
+/* Register: QDEC_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 4 : Write '1' to disable interrupt for STOPPED event */
+#define QDEC_INTENCLR_STOPPED_Pos (4UL) /*!< Position of STOPPED field. */
+#define QDEC_INTENCLR_STOPPED_Msk (0x1UL << QDEC_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define QDEC_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to disable interrupt for DBLRDY event */
+#define QDEC_INTENCLR_DBLRDY_Pos (3UL) /*!< Position of DBLRDY field. */
+#define QDEC_INTENCLR_DBLRDY_Msk (0x1UL << QDEC_INTENCLR_DBLRDY_Pos) /*!< Bit mask of DBLRDY field. */
+#define QDEC_INTENCLR_DBLRDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_DBLRDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_DBLRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for ACCOF event */
+#define QDEC_INTENCLR_ACCOF_Pos (2UL) /*!< Position of ACCOF field. */
+#define QDEC_INTENCLR_ACCOF_Msk (0x1UL << QDEC_INTENCLR_ACCOF_Pos) /*!< Bit mask of ACCOF field. */
+#define QDEC_INTENCLR_ACCOF_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_ACCOF_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_ACCOF_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for REPORTRDY event */
+#define QDEC_INTENCLR_REPORTRDY_Pos (1UL) /*!< Position of REPORTRDY field. */
+#define QDEC_INTENCLR_REPORTRDY_Msk (0x1UL << QDEC_INTENCLR_REPORTRDY_Pos) /*!< Bit mask of REPORTRDY field. */
+#define QDEC_INTENCLR_REPORTRDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_REPORTRDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_REPORTRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for SAMPLERDY event */
+#define QDEC_INTENCLR_SAMPLERDY_Pos (0UL) /*!< Position of SAMPLERDY field. */
+#define QDEC_INTENCLR_SAMPLERDY_Msk (0x1UL << QDEC_INTENCLR_SAMPLERDY_Pos) /*!< Bit mask of SAMPLERDY field. */
+#define QDEC_INTENCLR_SAMPLERDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_SAMPLERDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_SAMPLERDY_Clear (1UL) /*!< Disable */
+
+/* Register: QDEC_ENABLE */
+/* Description: Enable the quadrature decoder */
+
+/* Bit 0 : Enable or disable the quadrature decoder */
+#define QDEC_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define QDEC_ENABLE_ENABLE_Msk (0x1UL << QDEC_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define QDEC_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define QDEC_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: QDEC_LEDPOL */
+/* Description: LED output pin polarity */
+
+/* Bit 0 : LED output pin polarity */
+#define QDEC_LEDPOL_LEDPOL_Pos (0UL) /*!< Position of LEDPOL field. */
+#define QDEC_LEDPOL_LEDPOL_Msk (0x1UL << QDEC_LEDPOL_LEDPOL_Pos) /*!< Bit mask of LEDPOL field. */
+#define QDEC_LEDPOL_LEDPOL_ActiveLow (0UL) /*!< Led active on output pin low */
+#define QDEC_LEDPOL_LEDPOL_ActiveHigh (1UL) /*!< Led active on output pin high */
+
+/* Register: QDEC_SAMPLEPER */
+/* Description: Sample period */
+
+/* Bits 3..0 : Sample period. The SAMPLE register will be updated for every new sample */
+#define QDEC_SAMPLEPER_SAMPLEPER_Pos (0UL) /*!< Position of SAMPLEPER field. */
+#define QDEC_SAMPLEPER_SAMPLEPER_Msk (0xFUL << QDEC_SAMPLEPER_SAMPLEPER_Pos) /*!< Bit mask of SAMPLEPER field. */
+#define QDEC_SAMPLEPER_SAMPLEPER_128us (0UL) /*!< 128 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_256us (1UL) /*!< 256 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_512us (2UL) /*!< 512 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_1024us (3UL) /*!< 1024 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_2048us (4UL) /*!< 2048 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_4096us (5UL) /*!< 4096 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_8192us (6UL) /*!< 8192 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_16384us (7UL) /*!< 16384 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_32ms (8UL) /*!< 32768 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_65ms (9UL) /*!< 65536 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_131ms (10UL) /*!< 131072 us */
+
+/* Register: QDEC_SAMPLE */
+/* Description: Motion sample value */
+
+/* Bits 31..0 : Last motion sample */
+#define QDEC_SAMPLE_SAMPLE_Pos (0UL) /*!< Position of SAMPLE field. */
+#define QDEC_SAMPLE_SAMPLE_Msk (0xFFFFFFFFUL << QDEC_SAMPLE_SAMPLE_Pos) /*!< Bit mask of SAMPLE field. */
+
+/* Register: QDEC_REPORTPER */
+/* Description: Number of samples to be taken before REPORTRDY and DBLRDY events can be generated */
+
+/* Bits 3..0 : Specifies the number of samples to be accumulated in the ACC register before the REPORTRDY and DBLRDY events can be generated */
+#define QDEC_REPORTPER_REPORTPER_Pos (0UL) /*!< Position of REPORTPER field. */
+#define QDEC_REPORTPER_REPORTPER_Msk (0xFUL << QDEC_REPORTPER_REPORTPER_Pos) /*!< Bit mask of REPORTPER field. */
+#define QDEC_REPORTPER_REPORTPER_10Smpl (0UL) /*!< 10 samples / report */
+#define QDEC_REPORTPER_REPORTPER_40Smpl (1UL) /*!< 40 samples / report */
+#define QDEC_REPORTPER_REPORTPER_80Smpl (2UL) /*!< 80 samples / report */
+#define QDEC_REPORTPER_REPORTPER_120Smpl (3UL) /*!< 120 samples / report */
+#define QDEC_REPORTPER_REPORTPER_160Smpl (4UL) /*!< 160 samples / report */
+#define QDEC_REPORTPER_REPORTPER_200Smpl (5UL) /*!< 200 samples / report */
+#define QDEC_REPORTPER_REPORTPER_240Smpl (6UL) /*!< 240 samples / report */
+#define QDEC_REPORTPER_REPORTPER_280Smpl (7UL) /*!< 280 samples / report */
+#define QDEC_REPORTPER_REPORTPER_1Smpl (8UL) /*!< 1 sample / report */
+
+/* Register: QDEC_ACC */
+/* Description: Register accumulating the valid transitions */
+
+/* Bits 31..0 : Register accumulating all valid samples (not double transition) read from the SAMPLE register */
+#define QDEC_ACC_ACC_Pos (0UL) /*!< Position of ACC field. */
+#define QDEC_ACC_ACC_Msk (0xFFFFFFFFUL << QDEC_ACC_ACC_Pos) /*!< Bit mask of ACC field. */
+
+/* Register: QDEC_ACCREAD */
+/* Description: Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC task */
+
+/* Bits 31..0 : Snapshot of the ACC register. */
+#define QDEC_ACCREAD_ACCREAD_Pos (0UL) /*!< Position of ACCREAD field. */
+#define QDEC_ACCREAD_ACCREAD_Msk (0xFFFFFFFFUL << QDEC_ACCREAD_ACCREAD_Pos) /*!< Bit mask of ACCREAD field. */
+
+/* Register: QDEC_PSEL_LED */
+/* Description: Pin select for LED signal */
+
+/* Bit 31 : Connection */
+#define QDEC_PSEL_LED_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QDEC_PSEL_LED_CONNECT_Msk (0x1UL << QDEC_PSEL_LED_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QDEC_PSEL_LED_CONNECT_Connected (0UL) /*!< Connect */
+#define QDEC_PSEL_LED_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define QDEC_PSEL_LED_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define QDEC_PSEL_LED_PORT_Msk (0x1UL << QDEC_PSEL_LED_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define QDEC_PSEL_LED_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QDEC_PSEL_LED_PIN_Msk (0x1FUL << QDEC_PSEL_LED_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QDEC_PSEL_A */
+/* Description: Pin select for A signal */
+
+/* Bit 31 : Connection */
+#define QDEC_PSEL_A_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QDEC_PSEL_A_CONNECT_Msk (0x1UL << QDEC_PSEL_A_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QDEC_PSEL_A_CONNECT_Connected (0UL) /*!< Connect */
+#define QDEC_PSEL_A_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define QDEC_PSEL_A_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define QDEC_PSEL_A_PORT_Msk (0x1UL << QDEC_PSEL_A_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define QDEC_PSEL_A_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QDEC_PSEL_A_PIN_Msk (0x1FUL << QDEC_PSEL_A_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QDEC_PSEL_B */
+/* Description: Pin select for B signal */
+
+/* Bit 31 : Connection */
+#define QDEC_PSEL_B_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QDEC_PSEL_B_CONNECT_Msk (0x1UL << QDEC_PSEL_B_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QDEC_PSEL_B_CONNECT_Connected (0UL) /*!< Connect */
+#define QDEC_PSEL_B_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define QDEC_PSEL_B_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define QDEC_PSEL_B_PORT_Msk (0x1UL << QDEC_PSEL_B_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define QDEC_PSEL_B_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QDEC_PSEL_B_PIN_Msk (0x1FUL << QDEC_PSEL_B_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QDEC_DBFEN */
+/* Description: Enable input debounce filters */
+
+/* Bit 0 : Enable input debounce filters */
+#define QDEC_DBFEN_DBFEN_Pos (0UL) /*!< Position of DBFEN field. */
+#define QDEC_DBFEN_DBFEN_Msk (0x1UL << QDEC_DBFEN_DBFEN_Pos) /*!< Bit mask of DBFEN field. */
+#define QDEC_DBFEN_DBFEN_Disabled (0UL) /*!< Debounce input filters disabled */
+#define QDEC_DBFEN_DBFEN_Enabled (1UL) /*!< Debounce input filters enabled */
+
+/* Register: QDEC_LEDPRE */
+/* Description: Time period the LED is switched ON prior to sampling */
+
+/* Bits 8..0 : Period in us the LED is switched on prior to sampling */
+#define QDEC_LEDPRE_LEDPRE_Pos (0UL) /*!< Position of LEDPRE field. */
+#define QDEC_LEDPRE_LEDPRE_Msk (0x1FFUL << QDEC_LEDPRE_LEDPRE_Pos) /*!< Bit mask of LEDPRE field. */
+
+/* Register: QDEC_ACCDBL */
+/* Description: Register accumulating the number of detected double transitions */
+
+/* Bits 3..0 : Register accumulating the number of detected double or illegal transitions. ( SAMPLE = 2 ). */
+#define QDEC_ACCDBL_ACCDBL_Pos (0UL) /*!< Position of ACCDBL field. */
+#define QDEC_ACCDBL_ACCDBL_Msk (0xFUL << QDEC_ACCDBL_ACCDBL_Pos) /*!< Bit mask of ACCDBL field. */
+
+/* Register: QDEC_ACCDBLREAD */
+/* Description: Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL task */
+
+/* Bits 3..0 : Snapshot of the ACCDBL register. This field is updated when the READCLRACC or RDCLRDBL task is triggered. */
+#define QDEC_ACCDBLREAD_ACCDBLREAD_Pos (0UL) /*!< Position of ACCDBLREAD field. */
+#define QDEC_ACCDBLREAD_ACCDBLREAD_Msk (0xFUL << QDEC_ACCDBLREAD_ACCDBLREAD_Pos) /*!< Bit mask of ACCDBLREAD field. */
+
+
+/* Peripheral: QSPI */
+/* Description: External flash interface */
+
+/* Register: QSPI_TASKS_ACTIVATE */
+/* Description: Activate QSPI interface */
+
+/* Bit 0 : */
+#define QSPI_TASKS_ACTIVATE_TASKS_ACTIVATE_Pos (0UL) /*!< Position of TASKS_ACTIVATE field. */
+#define QSPI_TASKS_ACTIVATE_TASKS_ACTIVATE_Msk (0x1UL << QSPI_TASKS_ACTIVATE_TASKS_ACTIVATE_Pos) /*!< Bit mask of TASKS_ACTIVATE field. */
+
+/* Register: QSPI_TASKS_READSTART */
+/* Description: Start transfer from external flash memory to internal RAM */
+
+/* Bit 0 : */
+#define QSPI_TASKS_READSTART_TASKS_READSTART_Pos (0UL) /*!< Position of TASKS_READSTART field. */
+#define QSPI_TASKS_READSTART_TASKS_READSTART_Msk (0x1UL << QSPI_TASKS_READSTART_TASKS_READSTART_Pos) /*!< Bit mask of TASKS_READSTART field. */
+
+/* Register: QSPI_TASKS_WRITESTART */
+/* Description: Start transfer from internal RAM to external flash memory */
+
+/* Bit 0 : */
+#define QSPI_TASKS_WRITESTART_TASKS_WRITESTART_Pos (0UL) /*!< Position of TASKS_WRITESTART field. */
+#define QSPI_TASKS_WRITESTART_TASKS_WRITESTART_Msk (0x1UL << QSPI_TASKS_WRITESTART_TASKS_WRITESTART_Pos) /*!< Bit mask of TASKS_WRITESTART field. */
+
+/* Register: QSPI_TASKS_ERASESTART */
+/* Description: Start external flash memory erase operation */
+
+/* Bit 0 : */
+#define QSPI_TASKS_ERASESTART_TASKS_ERASESTART_Pos (0UL) /*!< Position of TASKS_ERASESTART field. */
+#define QSPI_TASKS_ERASESTART_TASKS_ERASESTART_Msk (0x1UL << QSPI_TASKS_ERASESTART_TASKS_ERASESTART_Pos) /*!< Bit mask of TASKS_ERASESTART field. */
+
+/* Register: QSPI_TASKS_DEACTIVATE */
+/* Description: Deactivate QSPI interface */
+
+/* Bit 0 : */
+#define QSPI_TASKS_DEACTIVATE_TASKS_DEACTIVATE_Pos (0UL) /*!< Position of TASKS_DEACTIVATE field. */
+#define QSPI_TASKS_DEACTIVATE_TASKS_DEACTIVATE_Msk (0x1UL << QSPI_TASKS_DEACTIVATE_TASKS_DEACTIVATE_Pos) /*!< Bit mask of TASKS_DEACTIVATE field. */
+
+/* Register: QSPI_EVENTS_READY */
+/* Description: QSPI peripheral is ready. This event will be generated as a response to any QSPI task. */
+
+/* Bit 0 : */
+#define QSPI_EVENTS_READY_EVENTS_READY_Pos (0UL) /*!< Position of EVENTS_READY field. */
+#define QSPI_EVENTS_READY_EVENTS_READY_Msk (0x1UL << QSPI_EVENTS_READY_EVENTS_READY_Pos) /*!< Bit mask of EVENTS_READY field. */
+
+/* Register: QSPI_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 0 : Enable or disable interrupt for READY event */
+#define QSPI_INTEN_READY_Pos (0UL) /*!< Position of READY field. */
+#define QSPI_INTEN_READY_Msk (0x1UL << QSPI_INTEN_READY_Pos) /*!< Bit mask of READY field. */
+#define QSPI_INTEN_READY_Disabled (0UL) /*!< Disable */
+#define QSPI_INTEN_READY_Enabled (1UL) /*!< Enable */
+
+/* Register: QSPI_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 0 : Write '1' to enable interrupt for READY event */
+#define QSPI_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define QSPI_INTENSET_READY_Msk (0x1UL << QSPI_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define QSPI_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define QSPI_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define QSPI_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: QSPI_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 0 : Write '1' to disable interrupt for READY event */
+#define QSPI_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define QSPI_INTENCLR_READY_Msk (0x1UL << QSPI_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define QSPI_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define QSPI_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define QSPI_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: QSPI_ENABLE */
+/* Description: Enable QSPI peripheral and acquire the pins selected in PSELn registers */
+
+/* Bit 0 : Enable or disable QSPI */
+#define QSPI_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define QSPI_ENABLE_ENABLE_Msk (0x1UL << QSPI_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define QSPI_ENABLE_ENABLE_Disabled (0UL) /*!< Disable QSPI */
+#define QSPI_ENABLE_ENABLE_Enabled (1UL) /*!< Enable QSPI */
+
+/* Register: QSPI_READ_SRC */
+/* Description: Flash memory source address */
+
+/* Bits 31..0 : Word-aligned flash memory source address. */
+#define QSPI_READ_SRC_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define QSPI_READ_SRC_SRC_Msk (0xFFFFFFFFUL << QSPI_READ_SRC_SRC_Pos) /*!< Bit mask of SRC field. */
+
+/* Register: QSPI_READ_DST */
+/* Description: RAM destination address */
+
+/* Bits 31..0 : Word-aligned RAM destination address. */
+#define QSPI_READ_DST_DST_Pos (0UL) /*!< Position of DST field. */
+#define QSPI_READ_DST_DST_Msk (0xFFFFFFFFUL << QSPI_READ_DST_DST_Pos) /*!< Bit mask of DST field. */
+
+/* Register: QSPI_READ_CNT */
+/* Description: Read transfer length */
+
+/* Bits 20..0 : Read transfer length in number of bytes. The length must be a multiple of 4 bytes. */
+#define QSPI_READ_CNT_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define QSPI_READ_CNT_CNT_Msk (0x1FFFFFUL << QSPI_READ_CNT_CNT_Pos) /*!< Bit mask of CNT field. */
+
+/* Register: QSPI_WRITE_DST */
+/* Description: Flash destination address */
+
+/* Bits 31..0 : Word-aligned flash destination address. */
+#define QSPI_WRITE_DST_DST_Pos (0UL) /*!< Position of DST field. */
+#define QSPI_WRITE_DST_DST_Msk (0xFFFFFFFFUL << QSPI_WRITE_DST_DST_Pos) /*!< Bit mask of DST field. */
+
+/* Register: QSPI_WRITE_SRC */
+/* Description: RAM source address */
+
+/* Bits 31..0 : Word-aligned RAM source address. */
+#define QSPI_WRITE_SRC_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define QSPI_WRITE_SRC_SRC_Msk (0xFFFFFFFFUL << QSPI_WRITE_SRC_SRC_Pos) /*!< Bit mask of SRC field. */
+
+/* Register: QSPI_WRITE_CNT */
+/* Description: Write transfer length */
+
+/* Bits 20..0 : Write transfer length in number of bytes. The length must be a multiple of 4 bytes. */
+#define QSPI_WRITE_CNT_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define QSPI_WRITE_CNT_CNT_Msk (0x1FFFFFUL << QSPI_WRITE_CNT_CNT_Pos) /*!< Bit mask of CNT field. */
+
+/* Register: QSPI_ERASE_PTR */
+/* Description: Start address of flash block to be erased */
+
+/* Bits 31..0 : Word-aligned start address of block to be erased. */
+#define QSPI_ERASE_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define QSPI_ERASE_PTR_PTR_Msk (0xFFFFFFFFUL << QSPI_ERASE_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: QSPI_ERASE_LEN */
+/* Description: Size of block to be erased. */
+
+/* Bits 1..0 : LEN */
+#define QSPI_ERASE_LEN_LEN_Pos (0UL) /*!< Position of LEN field. */
+#define QSPI_ERASE_LEN_LEN_Msk (0x3UL << QSPI_ERASE_LEN_LEN_Pos) /*!< Bit mask of LEN field. */
+#define QSPI_ERASE_LEN_LEN_4KB (0UL) /*!< Erase 4 kB block (flash command 0x20) */
+#define QSPI_ERASE_LEN_LEN_64KB (1UL) /*!< Erase 64 kB block (flash command 0xD8) */
+#define QSPI_ERASE_LEN_LEN_All (2UL) /*!< Erase all (flash command 0xC7) */
+
+/* Register: QSPI_PSEL_SCK */
+/* Description: Pin select for serial clock SCK */
+
+/* Bit 31 : Connection */
+#define QSPI_PSEL_SCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QSPI_PSEL_SCK_CONNECT_Msk (0x1UL << QSPI_PSEL_SCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QSPI_PSEL_SCK_CONNECT_Connected (0UL) /*!< Connect */
+#define QSPI_PSEL_SCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define QSPI_PSEL_SCK_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define QSPI_PSEL_SCK_PORT_Msk (0x1UL << QSPI_PSEL_SCK_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define QSPI_PSEL_SCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QSPI_PSEL_SCK_PIN_Msk (0x1FUL << QSPI_PSEL_SCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QSPI_PSEL_CSN */
+/* Description: Pin select for chip select signal CSN. */
+
+/* Bit 31 : Connection */
+#define QSPI_PSEL_CSN_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QSPI_PSEL_CSN_CONNECT_Msk (0x1UL << QSPI_PSEL_CSN_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QSPI_PSEL_CSN_CONNECT_Connected (0UL) /*!< Connect */
+#define QSPI_PSEL_CSN_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define QSPI_PSEL_CSN_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define QSPI_PSEL_CSN_PORT_Msk (0x1UL << QSPI_PSEL_CSN_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define QSPI_PSEL_CSN_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QSPI_PSEL_CSN_PIN_Msk (0x1FUL << QSPI_PSEL_CSN_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QSPI_PSEL_IO0 */
+/* Description: Pin select for serial data MOSI/IO0. */
+
+/* Bit 31 : Connection */
+#define QSPI_PSEL_IO0_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QSPI_PSEL_IO0_CONNECT_Msk (0x1UL << QSPI_PSEL_IO0_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QSPI_PSEL_IO0_CONNECT_Connected (0UL) /*!< Connect */
+#define QSPI_PSEL_IO0_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define QSPI_PSEL_IO0_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define QSPI_PSEL_IO0_PORT_Msk (0x1UL << QSPI_PSEL_IO0_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define QSPI_PSEL_IO0_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QSPI_PSEL_IO0_PIN_Msk (0x1FUL << QSPI_PSEL_IO0_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QSPI_PSEL_IO1 */
+/* Description: Pin select for serial data MISO/IO1. */
+
+/* Bit 31 : Connection */
+#define QSPI_PSEL_IO1_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QSPI_PSEL_IO1_CONNECT_Msk (0x1UL << QSPI_PSEL_IO1_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QSPI_PSEL_IO1_CONNECT_Connected (0UL) /*!< Connect */
+#define QSPI_PSEL_IO1_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define QSPI_PSEL_IO1_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define QSPI_PSEL_IO1_PORT_Msk (0x1UL << QSPI_PSEL_IO1_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define QSPI_PSEL_IO1_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QSPI_PSEL_IO1_PIN_Msk (0x1FUL << QSPI_PSEL_IO1_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QSPI_PSEL_IO2 */
+/* Description: Pin select for serial data IO2. */
+
+/* Bit 31 : Connection */
+#define QSPI_PSEL_IO2_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QSPI_PSEL_IO2_CONNECT_Msk (0x1UL << QSPI_PSEL_IO2_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QSPI_PSEL_IO2_CONNECT_Connected (0UL) /*!< Connect */
+#define QSPI_PSEL_IO2_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define QSPI_PSEL_IO2_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define QSPI_PSEL_IO2_PORT_Msk (0x1UL << QSPI_PSEL_IO2_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define QSPI_PSEL_IO2_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QSPI_PSEL_IO2_PIN_Msk (0x1FUL << QSPI_PSEL_IO2_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QSPI_PSEL_IO3 */
+/* Description: Pin select for serial data IO3. */
+
+/* Bit 31 : Connection */
+#define QSPI_PSEL_IO3_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QSPI_PSEL_IO3_CONNECT_Msk (0x1UL << QSPI_PSEL_IO3_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QSPI_PSEL_IO3_CONNECT_Connected (0UL) /*!< Connect */
+#define QSPI_PSEL_IO3_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define QSPI_PSEL_IO3_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define QSPI_PSEL_IO3_PORT_Msk (0x1UL << QSPI_PSEL_IO3_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define QSPI_PSEL_IO3_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QSPI_PSEL_IO3_PIN_Msk (0x1FUL << QSPI_PSEL_IO3_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QSPI_XIPOFFSET */
+/* Description: Address offset into the external memory for Execute in Place operation. */
+
+/* Bits 31..0 : Address offset into the external memory for Execute in Place operation. Value must be a multiple of 4. */
+#define QSPI_XIPOFFSET_XIPOFFSET_Pos (0UL) /*!< Position of XIPOFFSET field. */
+#define QSPI_XIPOFFSET_XIPOFFSET_Msk (0xFFFFFFFFUL << QSPI_XIPOFFSET_XIPOFFSET_Pos) /*!< Bit mask of XIPOFFSET field. */
+
+/* Register: QSPI_IFCONFIG0 */
+/* Description: Interface configuration. */
+
+/* Bit 12 : Page size for commands PP, PP2O, PP4O and PP4IO. */
+#define QSPI_IFCONFIG0_PPSIZE_Pos (12UL) /*!< Position of PPSIZE field. */
+#define QSPI_IFCONFIG0_PPSIZE_Msk (0x1UL << QSPI_IFCONFIG0_PPSIZE_Pos) /*!< Bit mask of PPSIZE field. */
+#define QSPI_IFCONFIG0_PPSIZE_256Bytes (0UL) /*!< 256 bytes. */
+#define QSPI_IFCONFIG0_PPSIZE_512Bytes (1UL) /*!< 512 bytes. */
+
+/* Bit 7 : Enable deep power-down mode (DPM) feature. */
+#define QSPI_IFCONFIG0_DPMENABLE_Pos (7UL) /*!< Position of DPMENABLE field. */
+#define QSPI_IFCONFIG0_DPMENABLE_Msk (0x1UL << QSPI_IFCONFIG0_DPMENABLE_Pos) /*!< Bit mask of DPMENABLE field. */
+#define QSPI_IFCONFIG0_DPMENABLE_Disable (0UL) /*!< Disable DPM feature. */
+#define QSPI_IFCONFIG0_DPMENABLE_Enable (1UL) /*!< Enable DPM feature. */
+
+/* Bit 6 : Addressing mode. */
+#define QSPI_IFCONFIG0_ADDRMODE_Pos (6UL) /*!< Position of ADDRMODE field. */
+#define QSPI_IFCONFIG0_ADDRMODE_Msk (0x1UL << QSPI_IFCONFIG0_ADDRMODE_Pos) /*!< Bit mask of ADDRMODE field. */
+#define QSPI_IFCONFIG0_ADDRMODE_24BIT (0UL) /*!< 24-bit addressing. */
+#define QSPI_IFCONFIG0_ADDRMODE_32BIT (1UL) /*!< 32-bit addressing. */
+
+/* Bits 5..3 : Configure number of data lines and opcode used for writing. */
+#define QSPI_IFCONFIG0_WRITEOC_Pos (3UL) /*!< Position of WRITEOC field. */
+#define QSPI_IFCONFIG0_WRITEOC_Msk (0x7UL << QSPI_IFCONFIG0_WRITEOC_Pos) /*!< Bit mask of WRITEOC field. */
+#define QSPI_IFCONFIG0_WRITEOC_PP (0UL) /*!< Single data line SPI. PP (opcode 0x02). */
+#define QSPI_IFCONFIG0_WRITEOC_PP2O (1UL) /*!< Dual data line SPI. PP2O (opcode 0xA2). */
+#define QSPI_IFCONFIG0_WRITEOC_PP4O (2UL) /*!< Quad data line SPI. PP4O (opcode 0x32). */
+#define QSPI_IFCONFIG0_WRITEOC_PP4IO (3UL) /*!< Quad data line SPI. PP4IO (opcode 0x38). */
+
+/* Bits 2..0 : Configure number of data lines and opcode used for reading. */
+#define QSPI_IFCONFIG0_READOC_Pos (0UL) /*!< Position of READOC field. */
+#define QSPI_IFCONFIG0_READOC_Msk (0x7UL << QSPI_IFCONFIG0_READOC_Pos) /*!< Bit mask of READOC field. */
+#define QSPI_IFCONFIG0_READOC_FASTREAD (0UL) /*!< Single data line SPI. FAST_READ (opcode 0x0B). */
+#define QSPI_IFCONFIG0_READOC_READ2O (1UL) /*!< Dual data line SPI. READ2O (opcode 0x3B). */
+#define QSPI_IFCONFIG0_READOC_READ2IO (2UL) /*!< Dual data line SPI. READ2IO (opcode 0xBB). */
+#define QSPI_IFCONFIG0_READOC_READ4O (3UL) /*!< Quad data line SPI. READ4O (opcode 0x6B). */
+#define QSPI_IFCONFIG0_READOC_READ4IO (4UL) /*!< Quad data line SPI. READ4IO (opcode 0xEB). */
+
+/* Register: QSPI_IFCONFIG1 */
+/* Description: Interface configuration. */
+
+/* Bits 31..28 : SCK frequency is given as 32 MHz / (SCKFREQ + 1). */
+#define QSPI_IFCONFIG1_SCKFREQ_Pos (28UL) /*!< Position of SCKFREQ field. */
+#define QSPI_IFCONFIG1_SCKFREQ_Msk (0xFUL << QSPI_IFCONFIG1_SCKFREQ_Pos) /*!< Bit mask of SCKFREQ field. */
+
+/* Bit 25 : Select SPI mode. */
+#define QSPI_IFCONFIG1_SPIMODE_Pos (25UL) /*!< Position of SPIMODE field. */
+#define QSPI_IFCONFIG1_SPIMODE_Msk (0x1UL << QSPI_IFCONFIG1_SPIMODE_Pos) /*!< Bit mask of SPIMODE field. */
+#define QSPI_IFCONFIG1_SPIMODE_MODE0 (0UL) /*!< Mode 0: Data are captured on the clock rising edge and data is output on a falling edge. Base level of clock is 0 (CPOL=0, CPHA=0). */
+#define QSPI_IFCONFIG1_SPIMODE_MODE3 (1UL) /*!< Mode 3: Data are captured on the clock falling edge and data is output on a rising edge. Base level of clock is 1 (CPOL=1, CPHA=1). */
+
+/* Bit 24 : Enter/exit deep power-down mode (DPM) for external flash memory. */
+#define QSPI_IFCONFIG1_DPMEN_Pos (24UL) /*!< Position of DPMEN field. */
+#define QSPI_IFCONFIG1_DPMEN_Msk (0x1UL << QSPI_IFCONFIG1_DPMEN_Pos) /*!< Bit mask of DPMEN field. */
+#define QSPI_IFCONFIG1_DPMEN_Exit (0UL) /*!< Exit DPM. */
+#define QSPI_IFCONFIG1_DPMEN_Enter (1UL) /*!< Enter DPM. */
+
+/* Bits 7..0 : Minimum amount of time that the CSN pin must stay high before it can go low again. Value is specified in number of 16 MHz periods (62.5 ns). */
+#define QSPI_IFCONFIG1_SCKDELAY_Pos (0UL) /*!< Position of SCKDELAY field. */
+#define QSPI_IFCONFIG1_SCKDELAY_Msk (0xFFUL << QSPI_IFCONFIG1_SCKDELAY_Pos) /*!< Bit mask of SCKDELAY field. */
+
+/* Register: QSPI_STATUS */
+/* Description: Status register. */
+
+/* Bits 31..24 : Value of external flash device Status Register. When the external flash has two bytes status register this field includes the value of the low byte. */
+#define QSPI_STATUS_SREG_Pos (24UL) /*!< Position of SREG field. */
+#define QSPI_STATUS_SREG_Msk (0xFFUL << QSPI_STATUS_SREG_Pos) /*!< Bit mask of SREG field. */
+
+/* Bit 3 : Ready status. */
+#define QSPI_STATUS_READY_Pos (3UL) /*!< Position of READY field. */
+#define QSPI_STATUS_READY_Msk (0x1UL << QSPI_STATUS_READY_Pos) /*!< Bit mask of READY field. */
+#define QSPI_STATUS_READY_BUSY (0UL) /*!< QSPI peripheral is busy. It is not allowed to trigger any new tasks, writing custom instructions or enter/exit DPM. */
+#define QSPI_STATUS_READY_READY (1UL) /*!< QSPI peripheral is ready. It is allowed to trigger new tasks, writing custom instructions or enter/exit DPM. */
+
+/* Bit 2 : Deep power-down mode (DPM) status of external flash. */
+#define QSPI_STATUS_DPM_Pos (2UL) /*!< Position of DPM field. */
+#define QSPI_STATUS_DPM_Msk (0x1UL << QSPI_STATUS_DPM_Pos) /*!< Bit mask of DPM field. */
+#define QSPI_STATUS_DPM_Disabled (0UL) /*!< External flash is not in DPM. */
+#define QSPI_STATUS_DPM_Enabled (1UL) /*!< External flash is in DPM. */
+
+/* Register: QSPI_DPMDUR */
+/* Description: Set the duration required to enter/exit deep power-down mode (DPM). */
+
+/* Bits 31..16 : Duration needed by external flash to exit DPM. Duration is given as EXIT * 256 * 62.5 ns. */
+#define QSPI_DPMDUR_EXIT_Pos (16UL) /*!< Position of EXIT field. */
+#define QSPI_DPMDUR_EXIT_Msk (0xFFFFUL << QSPI_DPMDUR_EXIT_Pos) /*!< Bit mask of EXIT field. */
+
+/* Bits 15..0 : Duration needed by external flash to enter DPM. Duration is given as ENTER * 256 * 62.5 ns. */
+#define QSPI_DPMDUR_ENTER_Pos (0UL) /*!< Position of ENTER field. */
+#define QSPI_DPMDUR_ENTER_Msk (0xFFFFUL << QSPI_DPMDUR_ENTER_Pos) /*!< Bit mask of ENTER field. */
+
+/* Register: QSPI_ADDRCONF */
+/* Description: Extended address configuration. */
+
+/* Bit 27 : Send WREN (write enable opcode 0x06) before instruction. */
+#define QSPI_ADDRCONF_WREN_Pos (27UL) /*!< Position of WREN field. */
+#define QSPI_ADDRCONF_WREN_Msk (0x1UL << QSPI_ADDRCONF_WREN_Pos) /*!< Bit mask of WREN field. */
+#define QSPI_ADDRCONF_WREN_Disable (0UL) /*!< Do not send WREN. */
+#define QSPI_ADDRCONF_WREN_Enable (1UL) /*!< Send WREN. */
+
+/* Bit 26 : Wait for write complete before sending command. */
+#define QSPI_ADDRCONF_WIPWAIT_Pos (26UL) /*!< Position of WIPWAIT field. */
+#define QSPI_ADDRCONF_WIPWAIT_Msk (0x1UL << QSPI_ADDRCONF_WIPWAIT_Pos) /*!< Bit mask of WIPWAIT field. */
+#define QSPI_ADDRCONF_WIPWAIT_Disable (0UL) /*!< No wait. */
+#define QSPI_ADDRCONF_WIPWAIT_Enable (1UL) /*!< Wait. */
+
+/* Bits 25..24 : Extended addressing mode. */
+#define QSPI_ADDRCONF_MODE_Pos (24UL) /*!< Position of MODE field. */
+#define QSPI_ADDRCONF_MODE_Msk (0x3UL << QSPI_ADDRCONF_MODE_Pos) /*!< Bit mask of MODE field. */
+#define QSPI_ADDRCONF_MODE_NoInstr (0UL) /*!< Do not send any instruction. */
+#define QSPI_ADDRCONF_MODE_Opcode (1UL) /*!< Send opcode. */
+#define QSPI_ADDRCONF_MODE_OpByte0 (2UL) /*!< Send opcode, byte0. */
+#define QSPI_ADDRCONF_MODE_All (3UL) /*!< Send opcode, byte0, byte1. */
+
+/* Bits 23..16 : Byte 1 following byte 0. */
+#define QSPI_ADDRCONF_BYTE1_Pos (16UL) /*!< Position of BYTE1 field. */
+#define QSPI_ADDRCONF_BYTE1_Msk (0xFFUL << QSPI_ADDRCONF_BYTE1_Pos) /*!< Bit mask of BYTE1 field. */
+
+/* Bits 15..8 : Byte 0 following opcode. */
+#define QSPI_ADDRCONF_BYTE0_Pos (8UL) /*!< Position of BYTE0 field. */
+#define QSPI_ADDRCONF_BYTE0_Msk (0xFFUL << QSPI_ADDRCONF_BYTE0_Pos) /*!< Bit mask of BYTE0 field. */
+
+/* Bits 7..0 : Opcode that enters the 32-bit addressing mode. */
+#define QSPI_ADDRCONF_OPCODE_Pos (0UL) /*!< Position of OPCODE field. */
+#define QSPI_ADDRCONF_OPCODE_Msk (0xFFUL << QSPI_ADDRCONF_OPCODE_Pos) /*!< Bit mask of OPCODE field. */
+
+/* Register: QSPI_CINSTRCONF */
+/* Description: Custom instruction configuration register. */
+
+/* Bit 17 : Stop (finalize) long frame transaction */
+#define QSPI_CINSTRCONF_LFSTOP_Pos (17UL) /*!< Position of LFSTOP field. */
+#define QSPI_CINSTRCONF_LFSTOP_Msk (0x1UL << QSPI_CINSTRCONF_LFSTOP_Pos) /*!< Bit mask of LFSTOP field. */
+#define QSPI_CINSTRCONF_LFSTOP_Stop (1UL) /*!< Stop */
+
+/* Bit 16 : Enable long frame mode. When enabled, a custom instruction transaction has to be ended by writing the LFSTOP field. */
+#define QSPI_CINSTRCONF_LFEN_Pos (16UL) /*!< Position of LFEN field. */
+#define QSPI_CINSTRCONF_LFEN_Msk (0x1UL << QSPI_CINSTRCONF_LFEN_Pos) /*!< Bit mask of LFEN field. */
+#define QSPI_CINSTRCONF_LFEN_Disable (0UL) /*!< Long frame mode disabled */
+#define QSPI_CINSTRCONF_LFEN_Enable (1UL) /*!< Long frame mode enabled */
+
+/* Bit 15 : Send WREN (write enable opcode 0x06) before instruction. */
+#define QSPI_CINSTRCONF_WREN_Pos (15UL) /*!< Position of WREN field. */
+#define QSPI_CINSTRCONF_WREN_Msk (0x1UL << QSPI_CINSTRCONF_WREN_Pos) /*!< Bit mask of WREN field. */
+#define QSPI_CINSTRCONF_WREN_Disable (0UL) /*!< Do not send WREN. */
+#define QSPI_CINSTRCONF_WREN_Enable (1UL) /*!< Send WREN. */
+
+/* Bit 14 : Wait for write complete before sending command. */
+#define QSPI_CINSTRCONF_WIPWAIT_Pos (14UL) /*!< Position of WIPWAIT field. */
+#define QSPI_CINSTRCONF_WIPWAIT_Msk (0x1UL << QSPI_CINSTRCONF_WIPWAIT_Pos) /*!< Bit mask of WIPWAIT field. */
+#define QSPI_CINSTRCONF_WIPWAIT_Disable (0UL) /*!< No wait. */
+#define QSPI_CINSTRCONF_WIPWAIT_Enable (1UL) /*!< Wait. */
+
+/* Bit 13 : Level of the IO3 pin (if connected) during transmission of custom instruction. */
+#define QSPI_CINSTRCONF_LIO3_Pos (13UL) /*!< Position of LIO3 field. */
+#define QSPI_CINSTRCONF_LIO3_Msk (0x1UL << QSPI_CINSTRCONF_LIO3_Pos) /*!< Bit mask of LIO3 field. */
+
+/* Bit 12 : Level of the IO2 pin (if connected) during transmission of custom instruction. */
+#define QSPI_CINSTRCONF_LIO2_Pos (12UL) /*!< Position of LIO2 field. */
+#define QSPI_CINSTRCONF_LIO2_Msk (0x1UL << QSPI_CINSTRCONF_LIO2_Pos) /*!< Bit mask of LIO2 field. */
+
+/* Bits 11..8 : Length of custom instruction in number of bytes. */
+#define QSPI_CINSTRCONF_LENGTH_Pos (8UL) /*!< Position of LENGTH field. */
+#define QSPI_CINSTRCONF_LENGTH_Msk (0xFUL << QSPI_CINSTRCONF_LENGTH_Pos) /*!< Bit mask of LENGTH field. */
+#define QSPI_CINSTRCONF_LENGTH_1B (1UL) /*!< Send opcode only. */
+#define QSPI_CINSTRCONF_LENGTH_2B (2UL) /*!< Send opcode, CINSTRDAT0.BYTE0. */
+#define QSPI_CINSTRCONF_LENGTH_3B (3UL) /*!< Send opcode, CINSTRDAT0.BYTE0 -&gt; CINSTRDAT0.BYTE1. */
+#define QSPI_CINSTRCONF_LENGTH_4B (4UL) /*!< Send opcode, CINSTRDAT0.BYTE0 -&gt; CINSTRDAT0.BYTE2. */
+#define QSPI_CINSTRCONF_LENGTH_5B (5UL) /*!< Send opcode, CINSTRDAT0.BYTE0 -&gt; CINSTRDAT0.BYTE3. */
+#define QSPI_CINSTRCONF_LENGTH_6B (6UL) /*!< Send opcode, CINSTRDAT0.BYTE0 -&gt; CINSTRDAT1.BYTE4. */
+#define QSPI_CINSTRCONF_LENGTH_7B (7UL) /*!< Send opcode, CINSTRDAT0.BYTE0 -&gt; CINSTRDAT1.BYTE5. */
+#define QSPI_CINSTRCONF_LENGTH_8B (8UL) /*!< Send opcode, CINSTRDAT0.BYTE0 -&gt; CINSTRDAT1.BYTE6. */
+#define QSPI_CINSTRCONF_LENGTH_9B (9UL) /*!< Send opcode, CINSTRDAT0.BYTE0 -&gt; CINSTRDAT1.BYTE7. */
+
+/* Bits 7..0 : Opcode of Custom instruction. */
+#define QSPI_CINSTRCONF_OPCODE_Pos (0UL) /*!< Position of OPCODE field. */
+#define QSPI_CINSTRCONF_OPCODE_Msk (0xFFUL << QSPI_CINSTRCONF_OPCODE_Pos) /*!< Bit mask of OPCODE field. */
+
+/* Register: QSPI_CINSTRDAT0 */
+/* Description: Custom instruction data register 0. */
+
+/* Bits 31..24 : Data byte 3 */
+#define QSPI_CINSTRDAT0_BYTE3_Pos (24UL) /*!< Position of BYTE3 field. */
+#define QSPI_CINSTRDAT0_BYTE3_Msk (0xFFUL << QSPI_CINSTRDAT0_BYTE3_Pos) /*!< Bit mask of BYTE3 field. */
+
+/* Bits 23..16 : Data byte 2 */
+#define QSPI_CINSTRDAT0_BYTE2_Pos (16UL) /*!< Position of BYTE2 field. */
+#define QSPI_CINSTRDAT0_BYTE2_Msk (0xFFUL << QSPI_CINSTRDAT0_BYTE2_Pos) /*!< Bit mask of BYTE2 field. */
+
+/* Bits 15..8 : Data byte 1 */
+#define QSPI_CINSTRDAT0_BYTE1_Pos (8UL) /*!< Position of BYTE1 field. */
+#define QSPI_CINSTRDAT0_BYTE1_Msk (0xFFUL << QSPI_CINSTRDAT0_BYTE1_Pos) /*!< Bit mask of BYTE1 field. */
+
+/* Bits 7..0 : Data byte 0 */
+#define QSPI_CINSTRDAT0_BYTE0_Pos (0UL) /*!< Position of BYTE0 field. */
+#define QSPI_CINSTRDAT0_BYTE0_Msk (0xFFUL << QSPI_CINSTRDAT0_BYTE0_Pos) /*!< Bit mask of BYTE0 field. */
+
+/* Register: QSPI_CINSTRDAT1 */
+/* Description: Custom instruction data register 1. */
+
+/* Bits 31..24 : Data byte 7 */
+#define QSPI_CINSTRDAT1_BYTE7_Pos (24UL) /*!< Position of BYTE7 field. */
+#define QSPI_CINSTRDAT1_BYTE7_Msk (0xFFUL << QSPI_CINSTRDAT1_BYTE7_Pos) /*!< Bit mask of BYTE7 field. */
+
+/* Bits 23..16 : Data byte 6 */
+#define QSPI_CINSTRDAT1_BYTE6_Pos (16UL) /*!< Position of BYTE6 field. */
+#define QSPI_CINSTRDAT1_BYTE6_Msk (0xFFUL << QSPI_CINSTRDAT1_BYTE6_Pos) /*!< Bit mask of BYTE6 field. */
+
+/* Bits 15..8 : Data byte 5 */
+#define QSPI_CINSTRDAT1_BYTE5_Pos (8UL) /*!< Position of BYTE5 field. */
+#define QSPI_CINSTRDAT1_BYTE5_Msk (0xFFUL << QSPI_CINSTRDAT1_BYTE5_Pos) /*!< Bit mask of BYTE5 field. */
+
+/* Bits 7..0 : Data byte 4 */
+#define QSPI_CINSTRDAT1_BYTE4_Pos (0UL) /*!< Position of BYTE4 field. */
+#define QSPI_CINSTRDAT1_BYTE4_Msk (0xFFUL << QSPI_CINSTRDAT1_BYTE4_Pos) /*!< Bit mask of BYTE4 field. */
+
+/* Register: QSPI_IFTIMING */
+/* Description: SPI interface timing. */
+
+/* Bits 10..8 : Timing related to sampling of the input serial data. The value of RXDELAY specifies the number of 64 MHz cycles (15.625 ns) delay from the the rising edge of the SPI Clock (SCK) until the input serial data is sampled. As en example, if set to 0 the input serial data is sampled on the rising edge of SCK. */
+#define QSPI_IFTIMING_RXDELAY_Pos (8UL) /*!< Position of RXDELAY field. */
+#define QSPI_IFTIMING_RXDELAY_Msk (0x7UL << QSPI_IFTIMING_RXDELAY_Pos) /*!< Bit mask of RXDELAY field. */
+
+
+/* Peripheral: RADIO */
+/* Description: 2.4 GHz radio */
+
+/* Register: RADIO_TASKS_TXEN */
+/* Description: Enable RADIO in TX mode */
+
+/* Bit 0 : */
+#define RADIO_TASKS_TXEN_TASKS_TXEN_Pos (0UL) /*!< Position of TASKS_TXEN field. */
+#define RADIO_TASKS_TXEN_TASKS_TXEN_Msk (0x1UL << RADIO_TASKS_TXEN_TASKS_TXEN_Pos) /*!< Bit mask of TASKS_TXEN field. */
+
+/* Register: RADIO_TASKS_RXEN */
+/* Description: Enable RADIO in RX mode */
+
+/* Bit 0 : */
+#define RADIO_TASKS_RXEN_TASKS_RXEN_Pos (0UL) /*!< Position of TASKS_RXEN field. */
+#define RADIO_TASKS_RXEN_TASKS_RXEN_Msk (0x1UL << RADIO_TASKS_RXEN_TASKS_RXEN_Pos) /*!< Bit mask of TASKS_RXEN field. */
+
+/* Register: RADIO_TASKS_START */
+/* Description: Start RADIO */
+
+/* Bit 0 : */
+#define RADIO_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define RADIO_TASKS_START_TASKS_START_Msk (0x1UL << RADIO_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: RADIO_TASKS_STOP */
+/* Description: Stop RADIO */
+
+/* Bit 0 : */
+#define RADIO_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define RADIO_TASKS_STOP_TASKS_STOP_Msk (0x1UL << RADIO_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: RADIO_TASKS_DISABLE */
+/* Description: Disable RADIO */
+
+/* Bit 0 : */
+#define RADIO_TASKS_DISABLE_TASKS_DISABLE_Pos (0UL) /*!< Position of TASKS_DISABLE field. */
+#define RADIO_TASKS_DISABLE_TASKS_DISABLE_Msk (0x1UL << RADIO_TASKS_DISABLE_TASKS_DISABLE_Pos) /*!< Bit mask of TASKS_DISABLE field. */
+
+/* Register: RADIO_TASKS_RSSISTART */
+/* Description: Start the RSSI and take one single sample of the receive signal strength */
+
+/* Bit 0 : */
+#define RADIO_TASKS_RSSISTART_TASKS_RSSISTART_Pos (0UL) /*!< Position of TASKS_RSSISTART field. */
+#define RADIO_TASKS_RSSISTART_TASKS_RSSISTART_Msk (0x1UL << RADIO_TASKS_RSSISTART_TASKS_RSSISTART_Pos) /*!< Bit mask of TASKS_RSSISTART field. */
+
+/* Register: RADIO_TASKS_RSSISTOP */
+/* Description: Stop the RSSI measurement */
+
+/* Bit 0 : */
+#define RADIO_TASKS_RSSISTOP_TASKS_RSSISTOP_Pos (0UL) /*!< Position of TASKS_RSSISTOP field. */
+#define RADIO_TASKS_RSSISTOP_TASKS_RSSISTOP_Msk (0x1UL << RADIO_TASKS_RSSISTOP_TASKS_RSSISTOP_Pos) /*!< Bit mask of TASKS_RSSISTOP field. */
+
+/* Register: RADIO_TASKS_BCSTART */
+/* Description: Start the bit counter */
+
+/* Bit 0 : */
+#define RADIO_TASKS_BCSTART_TASKS_BCSTART_Pos (0UL) /*!< Position of TASKS_BCSTART field. */
+#define RADIO_TASKS_BCSTART_TASKS_BCSTART_Msk (0x1UL << RADIO_TASKS_BCSTART_TASKS_BCSTART_Pos) /*!< Bit mask of TASKS_BCSTART field. */
+
+/* Register: RADIO_TASKS_BCSTOP */
+/* Description: Stop the bit counter */
+
+/* Bit 0 : */
+#define RADIO_TASKS_BCSTOP_TASKS_BCSTOP_Pos (0UL) /*!< Position of TASKS_BCSTOP field. */
+#define RADIO_TASKS_BCSTOP_TASKS_BCSTOP_Msk (0x1UL << RADIO_TASKS_BCSTOP_TASKS_BCSTOP_Pos) /*!< Bit mask of TASKS_BCSTOP field. */
+
+/* Register: RADIO_TASKS_EDSTART */
+/* Description: Start the energy detect measurement used in IEEE 802.15.4 mode */
+
+/* Bit 0 : */
+#define RADIO_TASKS_EDSTART_TASKS_EDSTART_Pos (0UL) /*!< Position of TASKS_EDSTART field. */
+#define RADIO_TASKS_EDSTART_TASKS_EDSTART_Msk (0x1UL << RADIO_TASKS_EDSTART_TASKS_EDSTART_Pos) /*!< Bit mask of TASKS_EDSTART field. */
+
+/* Register: RADIO_TASKS_EDSTOP */
+/* Description: Stop the energy detect measurement */
+
+/* Bit 0 : */
+#define RADIO_TASKS_EDSTOP_TASKS_EDSTOP_Pos (0UL) /*!< Position of TASKS_EDSTOP field. */
+#define RADIO_TASKS_EDSTOP_TASKS_EDSTOP_Msk (0x1UL << RADIO_TASKS_EDSTOP_TASKS_EDSTOP_Pos) /*!< Bit mask of TASKS_EDSTOP field. */
+
+/* Register: RADIO_TASKS_CCASTART */
+/* Description: Start the clear channel assessment used in IEEE 802.15.4 mode */
+
+/* Bit 0 : */
+#define RADIO_TASKS_CCASTART_TASKS_CCASTART_Pos (0UL) /*!< Position of TASKS_CCASTART field. */
+#define RADIO_TASKS_CCASTART_TASKS_CCASTART_Msk (0x1UL << RADIO_TASKS_CCASTART_TASKS_CCASTART_Pos) /*!< Bit mask of TASKS_CCASTART field. */
+
+/* Register: RADIO_TASKS_CCASTOP */
+/* Description: Stop the clear channel assessment */
+
+/* Bit 0 : */
+#define RADIO_TASKS_CCASTOP_TASKS_CCASTOP_Pos (0UL) /*!< Position of TASKS_CCASTOP field. */
+#define RADIO_TASKS_CCASTOP_TASKS_CCASTOP_Msk (0x1UL << RADIO_TASKS_CCASTOP_TASKS_CCASTOP_Pos) /*!< Bit mask of TASKS_CCASTOP field. */
+
+/* Register: RADIO_EVENTS_READY */
+/* Description: RADIO has ramped up and is ready to be started */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_READY_EVENTS_READY_Pos (0UL) /*!< Position of EVENTS_READY field. */
+#define RADIO_EVENTS_READY_EVENTS_READY_Msk (0x1UL << RADIO_EVENTS_READY_EVENTS_READY_Pos) /*!< Bit mask of EVENTS_READY field. */
+
+/* Register: RADIO_EVENTS_ADDRESS */
+/* Description: Address sent or received */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_ADDRESS_EVENTS_ADDRESS_Pos (0UL) /*!< Position of EVENTS_ADDRESS field. */
+#define RADIO_EVENTS_ADDRESS_EVENTS_ADDRESS_Msk (0x1UL << RADIO_EVENTS_ADDRESS_EVENTS_ADDRESS_Pos) /*!< Bit mask of EVENTS_ADDRESS field. */
+
+/* Register: RADIO_EVENTS_PAYLOAD */
+/* Description: Packet payload sent or received */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_PAYLOAD_EVENTS_PAYLOAD_Pos (0UL) /*!< Position of EVENTS_PAYLOAD field. */
+#define RADIO_EVENTS_PAYLOAD_EVENTS_PAYLOAD_Msk (0x1UL << RADIO_EVENTS_PAYLOAD_EVENTS_PAYLOAD_Pos) /*!< Bit mask of EVENTS_PAYLOAD field. */
+
+/* Register: RADIO_EVENTS_END */
+/* Description: Packet sent or received */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_END_EVENTS_END_Pos (0UL) /*!< Position of EVENTS_END field. */
+#define RADIO_EVENTS_END_EVENTS_END_Msk (0x1UL << RADIO_EVENTS_END_EVENTS_END_Pos) /*!< Bit mask of EVENTS_END field. */
+
+/* Register: RADIO_EVENTS_DISABLED */
+/* Description: RADIO has been disabled */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_DISABLED_EVENTS_DISABLED_Pos (0UL) /*!< Position of EVENTS_DISABLED field. */
+#define RADIO_EVENTS_DISABLED_EVENTS_DISABLED_Msk (0x1UL << RADIO_EVENTS_DISABLED_EVENTS_DISABLED_Pos) /*!< Bit mask of EVENTS_DISABLED field. */
+
+/* Register: RADIO_EVENTS_DEVMATCH */
+/* Description: A device address match occurred on the last received packet */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_DEVMATCH_EVENTS_DEVMATCH_Pos (0UL) /*!< Position of EVENTS_DEVMATCH field. */
+#define RADIO_EVENTS_DEVMATCH_EVENTS_DEVMATCH_Msk (0x1UL << RADIO_EVENTS_DEVMATCH_EVENTS_DEVMATCH_Pos) /*!< Bit mask of EVENTS_DEVMATCH field. */
+
+/* Register: RADIO_EVENTS_DEVMISS */
+/* Description: No device address match occurred on the last received packet */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_DEVMISS_EVENTS_DEVMISS_Pos (0UL) /*!< Position of EVENTS_DEVMISS field. */
+#define RADIO_EVENTS_DEVMISS_EVENTS_DEVMISS_Msk (0x1UL << RADIO_EVENTS_DEVMISS_EVENTS_DEVMISS_Pos) /*!< Bit mask of EVENTS_DEVMISS field. */
+
+/* Register: RADIO_EVENTS_RSSIEND */
+/* Description: Sampling of receive signal strength complete */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_RSSIEND_EVENTS_RSSIEND_Pos (0UL) /*!< Position of EVENTS_RSSIEND field. */
+#define RADIO_EVENTS_RSSIEND_EVENTS_RSSIEND_Msk (0x1UL << RADIO_EVENTS_RSSIEND_EVENTS_RSSIEND_Pos) /*!< Bit mask of EVENTS_RSSIEND field. */
+
+/* Register: RADIO_EVENTS_BCMATCH */
+/* Description: Bit counter reached bit count value */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_BCMATCH_EVENTS_BCMATCH_Pos (0UL) /*!< Position of EVENTS_BCMATCH field. */
+#define RADIO_EVENTS_BCMATCH_EVENTS_BCMATCH_Msk (0x1UL << RADIO_EVENTS_BCMATCH_EVENTS_BCMATCH_Pos) /*!< Bit mask of EVENTS_BCMATCH field. */
+
+/* Register: RADIO_EVENTS_CRCOK */
+/* Description: Packet received with CRC ok */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_CRCOK_EVENTS_CRCOK_Pos (0UL) /*!< Position of EVENTS_CRCOK field. */
+#define RADIO_EVENTS_CRCOK_EVENTS_CRCOK_Msk (0x1UL << RADIO_EVENTS_CRCOK_EVENTS_CRCOK_Pos) /*!< Bit mask of EVENTS_CRCOK field. */
+
+/* Register: RADIO_EVENTS_CRCERROR */
+/* Description: Packet received with CRC error */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_CRCERROR_EVENTS_CRCERROR_Pos (0UL) /*!< Position of EVENTS_CRCERROR field. */
+#define RADIO_EVENTS_CRCERROR_EVENTS_CRCERROR_Msk (0x1UL << RADIO_EVENTS_CRCERROR_EVENTS_CRCERROR_Pos) /*!< Bit mask of EVENTS_CRCERROR field. */
+
+/* Register: RADIO_EVENTS_FRAMESTART */
+/* Description: IEEE 802.15.4 length field received */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_FRAMESTART_EVENTS_FRAMESTART_Pos (0UL) /*!< Position of EVENTS_FRAMESTART field. */
+#define RADIO_EVENTS_FRAMESTART_EVENTS_FRAMESTART_Msk (0x1UL << RADIO_EVENTS_FRAMESTART_EVENTS_FRAMESTART_Pos) /*!< Bit mask of EVENTS_FRAMESTART field. */
+
+/* Register: RADIO_EVENTS_EDEND */
+/* Description: Sampling of energy detection complete. A new ED sample is ready for readout from the RADIO.EDSAMPLE register. */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_EDEND_EVENTS_EDEND_Pos (0UL) /*!< Position of EVENTS_EDEND field. */
+#define RADIO_EVENTS_EDEND_EVENTS_EDEND_Msk (0x1UL << RADIO_EVENTS_EDEND_EVENTS_EDEND_Pos) /*!< Bit mask of EVENTS_EDEND field. */
+
+/* Register: RADIO_EVENTS_EDSTOPPED */
+/* Description: The sampling of energy detection has stopped */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_EDSTOPPED_EVENTS_EDSTOPPED_Pos (0UL) /*!< Position of EVENTS_EDSTOPPED field. */
+#define RADIO_EVENTS_EDSTOPPED_EVENTS_EDSTOPPED_Msk (0x1UL << RADIO_EVENTS_EDSTOPPED_EVENTS_EDSTOPPED_Pos) /*!< Bit mask of EVENTS_EDSTOPPED field. */
+
+/* Register: RADIO_EVENTS_CCAIDLE */
+/* Description: Wireless medium in idle - clear to send */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_CCAIDLE_EVENTS_CCAIDLE_Pos (0UL) /*!< Position of EVENTS_CCAIDLE field. */
+#define RADIO_EVENTS_CCAIDLE_EVENTS_CCAIDLE_Msk (0x1UL << RADIO_EVENTS_CCAIDLE_EVENTS_CCAIDLE_Pos) /*!< Bit mask of EVENTS_CCAIDLE field. */
+
+/* Register: RADIO_EVENTS_CCABUSY */
+/* Description: Wireless medium busy - do not send */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_CCABUSY_EVENTS_CCABUSY_Pos (0UL) /*!< Position of EVENTS_CCABUSY field. */
+#define RADIO_EVENTS_CCABUSY_EVENTS_CCABUSY_Msk (0x1UL << RADIO_EVENTS_CCABUSY_EVENTS_CCABUSY_Pos) /*!< Bit mask of EVENTS_CCABUSY field. */
+
+/* Register: RADIO_EVENTS_CCASTOPPED */
+/* Description: The CCA has stopped */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_CCASTOPPED_EVENTS_CCASTOPPED_Pos (0UL) /*!< Position of EVENTS_CCASTOPPED field. */
+#define RADIO_EVENTS_CCASTOPPED_EVENTS_CCASTOPPED_Msk (0x1UL << RADIO_EVENTS_CCASTOPPED_EVENTS_CCASTOPPED_Pos) /*!< Bit mask of EVENTS_CCASTOPPED field. */
+
+/* Register: RADIO_EVENTS_RATEBOOST */
+/* Description: Ble_LR CI field received, receive mode is changed from Ble_LR125Kbit to Ble_LR500Kbit. */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_RATEBOOST_EVENTS_RATEBOOST_Pos (0UL) /*!< Position of EVENTS_RATEBOOST field. */
+#define RADIO_EVENTS_RATEBOOST_EVENTS_RATEBOOST_Msk (0x1UL << RADIO_EVENTS_RATEBOOST_EVENTS_RATEBOOST_Pos) /*!< Bit mask of EVENTS_RATEBOOST field. */
+
+/* Register: RADIO_EVENTS_TXREADY */
+/* Description: RADIO has ramped up and is ready to be started TX path */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_TXREADY_EVENTS_TXREADY_Pos (0UL) /*!< Position of EVENTS_TXREADY field. */
+#define RADIO_EVENTS_TXREADY_EVENTS_TXREADY_Msk (0x1UL << RADIO_EVENTS_TXREADY_EVENTS_TXREADY_Pos) /*!< Bit mask of EVENTS_TXREADY field. */
+
+/* Register: RADIO_EVENTS_RXREADY */
+/* Description: RADIO has ramped up and is ready to be started RX path */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_RXREADY_EVENTS_RXREADY_Pos (0UL) /*!< Position of EVENTS_RXREADY field. */
+#define RADIO_EVENTS_RXREADY_EVENTS_RXREADY_Msk (0x1UL << RADIO_EVENTS_RXREADY_EVENTS_RXREADY_Pos) /*!< Bit mask of EVENTS_RXREADY field. */
+
+/* Register: RADIO_EVENTS_MHRMATCH */
+/* Description: MAC header match found */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_MHRMATCH_EVENTS_MHRMATCH_Pos (0UL) /*!< Position of EVENTS_MHRMATCH field. */
+#define RADIO_EVENTS_MHRMATCH_EVENTS_MHRMATCH_Msk (0x1UL << RADIO_EVENTS_MHRMATCH_EVENTS_MHRMATCH_Pos) /*!< Bit mask of EVENTS_MHRMATCH field. */
+
+/* Register: RADIO_EVENTS_PHYEND */
+/* Description: Generated in Ble_LR125Kbit, Ble_LR500Kbit and BleIeee802154_250Kbit modes when last bit is sent on air. */
+
+/* Bit 0 : */
+#define RADIO_EVENTS_PHYEND_EVENTS_PHYEND_Pos (0UL) /*!< Position of EVENTS_PHYEND field. */
+#define RADIO_EVENTS_PHYEND_EVENTS_PHYEND_Msk (0x1UL << RADIO_EVENTS_PHYEND_EVENTS_PHYEND_Pos) /*!< Bit mask of EVENTS_PHYEND field. */
+
+/* Register: RADIO_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 21 : Shortcut between PHYEND event and START task */
+#define RADIO_SHORTS_PHYEND_START_Pos (21UL) /*!< Position of PHYEND_START field. */
+#define RADIO_SHORTS_PHYEND_START_Msk (0x1UL << RADIO_SHORTS_PHYEND_START_Pos) /*!< Bit mask of PHYEND_START field. */
+#define RADIO_SHORTS_PHYEND_START_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_PHYEND_START_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 20 : Shortcut between PHYEND event and DISABLE task */
+#define RADIO_SHORTS_PHYEND_DISABLE_Pos (20UL) /*!< Position of PHYEND_DISABLE field. */
+#define RADIO_SHORTS_PHYEND_DISABLE_Msk (0x1UL << RADIO_SHORTS_PHYEND_DISABLE_Pos) /*!< Bit mask of PHYEND_DISABLE field. */
+#define RADIO_SHORTS_PHYEND_DISABLE_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_PHYEND_DISABLE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 19 : Shortcut between RXREADY event and START task */
+#define RADIO_SHORTS_RXREADY_START_Pos (19UL) /*!< Position of RXREADY_START field. */
+#define RADIO_SHORTS_RXREADY_START_Msk (0x1UL << RADIO_SHORTS_RXREADY_START_Pos) /*!< Bit mask of RXREADY_START field. */
+#define RADIO_SHORTS_RXREADY_START_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_RXREADY_START_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 18 : Shortcut between TXREADY event and START task */
+#define RADIO_SHORTS_TXREADY_START_Pos (18UL) /*!< Position of TXREADY_START field. */
+#define RADIO_SHORTS_TXREADY_START_Msk (0x1UL << RADIO_SHORTS_TXREADY_START_Pos) /*!< Bit mask of TXREADY_START field. */
+#define RADIO_SHORTS_TXREADY_START_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_TXREADY_START_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 17 : Shortcut between CCAIDLE event and STOP task */
+#define RADIO_SHORTS_CCAIDLE_STOP_Pos (17UL) /*!< Position of CCAIDLE_STOP field. */
+#define RADIO_SHORTS_CCAIDLE_STOP_Msk (0x1UL << RADIO_SHORTS_CCAIDLE_STOP_Pos) /*!< Bit mask of CCAIDLE_STOP field. */
+#define RADIO_SHORTS_CCAIDLE_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_CCAIDLE_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 16 : Shortcut between EDEND event and DISABLE task */
+#define RADIO_SHORTS_EDEND_DISABLE_Pos (16UL) /*!< Position of EDEND_DISABLE field. */
+#define RADIO_SHORTS_EDEND_DISABLE_Msk (0x1UL << RADIO_SHORTS_EDEND_DISABLE_Pos) /*!< Bit mask of EDEND_DISABLE field. */
+#define RADIO_SHORTS_EDEND_DISABLE_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_EDEND_DISABLE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 15 : Shortcut between READY event and EDSTART task */
+#define RADIO_SHORTS_READY_EDSTART_Pos (15UL) /*!< Position of READY_EDSTART field. */
+#define RADIO_SHORTS_READY_EDSTART_Msk (0x1UL << RADIO_SHORTS_READY_EDSTART_Pos) /*!< Bit mask of READY_EDSTART field. */
+#define RADIO_SHORTS_READY_EDSTART_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_READY_EDSTART_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 14 : Shortcut between FRAMESTART event and BCSTART task */
+#define RADIO_SHORTS_FRAMESTART_BCSTART_Pos (14UL) /*!< Position of FRAMESTART_BCSTART field. */
+#define RADIO_SHORTS_FRAMESTART_BCSTART_Msk (0x1UL << RADIO_SHORTS_FRAMESTART_BCSTART_Pos) /*!< Bit mask of FRAMESTART_BCSTART field. */
+#define RADIO_SHORTS_FRAMESTART_BCSTART_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_FRAMESTART_BCSTART_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 13 : Shortcut between CCABUSY event and DISABLE task */
+#define RADIO_SHORTS_CCABUSY_DISABLE_Pos (13UL) /*!< Position of CCABUSY_DISABLE field. */
+#define RADIO_SHORTS_CCABUSY_DISABLE_Msk (0x1UL << RADIO_SHORTS_CCABUSY_DISABLE_Pos) /*!< Bit mask of CCABUSY_DISABLE field. */
+#define RADIO_SHORTS_CCABUSY_DISABLE_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_CCABUSY_DISABLE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 12 : Shortcut between CCAIDLE event and TXEN task */
+#define RADIO_SHORTS_CCAIDLE_TXEN_Pos (12UL) /*!< Position of CCAIDLE_TXEN field. */
+#define RADIO_SHORTS_CCAIDLE_TXEN_Msk (0x1UL << RADIO_SHORTS_CCAIDLE_TXEN_Pos) /*!< Bit mask of CCAIDLE_TXEN field. */
+#define RADIO_SHORTS_CCAIDLE_TXEN_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_CCAIDLE_TXEN_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 11 : Shortcut between RXREADY event and CCASTART task */
+#define RADIO_SHORTS_RXREADY_CCASTART_Pos (11UL) /*!< Position of RXREADY_CCASTART field. */
+#define RADIO_SHORTS_RXREADY_CCASTART_Msk (0x1UL << RADIO_SHORTS_RXREADY_CCASTART_Pos) /*!< Bit mask of RXREADY_CCASTART field. */
+#define RADIO_SHORTS_RXREADY_CCASTART_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_RXREADY_CCASTART_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 8 : Shortcut between DISABLED event and RSSISTOP task */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Pos (8UL) /*!< Position of DISABLED_RSSISTOP field. */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Msk (0x1UL << RADIO_SHORTS_DISABLED_RSSISTOP_Pos) /*!< Bit mask of DISABLED_RSSISTOP field. */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 6 : Shortcut between ADDRESS event and BCSTART task */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Pos (6UL) /*!< Position of ADDRESS_BCSTART field. */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Msk (0x1UL << RADIO_SHORTS_ADDRESS_BCSTART_Pos) /*!< Bit mask of ADDRESS_BCSTART field. */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 5 : Shortcut between END event and START task */
+#define RADIO_SHORTS_END_START_Pos (5UL) /*!< Position of END_START field. */
+#define RADIO_SHORTS_END_START_Msk (0x1UL << RADIO_SHORTS_END_START_Pos) /*!< Bit mask of END_START field. */
+#define RADIO_SHORTS_END_START_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_END_START_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 4 : Shortcut between ADDRESS event and RSSISTART task */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Pos (4UL) /*!< Position of ADDRESS_RSSISTART field. */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Msk (0x1UL << RADIO_SHORTS_ADDRESS_RSSISTART_Pos) /*!< Bit mask of ADDRESS_RSSISTART field. */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between DISABLED event and RXEN task */
+#define RADIO_SHORTS_DISABLED_RXEN_Pos (3UL) /*!< Position of DISABLED_RXEN field. */
+#define RADIO_SHORTS_DISABLED_RXEN_Msk (0x1UL << RADIO_SHORTS_DISABLED_RXEN_Pos) /*!< Bit mask of DISABLED_RXEN field. */
+#define RADIO_SHORTS_DISABLED_RXEN_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_DISABLED_RXEN_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between DISABLED event and TXEN task */
+#define RADIO_SHORTS_DISABLED_TXEN_Pos (2UL) /*!< Position of DISABLED_TXEN field. */
+#define RADIO_SHORTS_DISABLED_TXEN_Msk (0x1UL << RADIO_SHORTS_DISABLED_TXEN_Pos) /*!< Bit mask of DISABLED_TXEN field. */
+#define RADIO_SHORTS_DISABLED_TXEN_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_DISABLED_TXEN_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between END event and DISABLE task */
+#define RADIO_SHORTS_END_DISABLE_Pos (1UL) /*!< Position of END_DISABLE field. */
+#define RADIO_SHORTS_END_DISABLE_Msk (0x1UL << RADIO_SHORTS_END_DISABLE_Pos) /*!< Bit mask of END_DISABLE field. */
+#define RADIO_SHORTS_END_DISABLE_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_END_DISABLE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between READY event and START task */
+#define RADIO_SHORTS_READY_START_Pos (0UL) /*!< Position of READY_START field. */
+#define RADIO_SHORTS_READY_START_Msk (0x1UL << RADIO_SHORTS_READY_START_Pos) /*!< Bit mask of READY_START field. */
+#define RADIO_SHORTS_READY_START_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_READY_START_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: RADIO_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 27 : Write '1' to enable interrupt for PHYEND event */
+#define RADIO_INTENSET_PHYEND_Pos (27UL) /*!< Position of PHYEND field. */
+#define RADIO_INTENSET_PHYEND_Msk (0x1UL << RADIO_INTENSET_PHYEND_Pos) /*!< Bit mask of PHYEND field. */
+#define RADIO_INTENSET_PHYEND_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_PHYEND_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_PHYEND_Set (1UL) /*!< Enable */
+
+/* Bit 23 : Write '1' to enable interrupt for MHRMATCH event */
+#define RADIO_INTENSET_MHRMATCH_Pos (23UL) /*!< Position of MHRMATCH field. */
+#define RADIO_INTENSET_MHRMATCH_Msk (0x1UL << RADIO_INTENSET_MHRMATCH_Pos) /*!< Bit mask of MHRMATCH field. */
+#define RADIO_INTENSET_MHRMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_MHRMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_MHRMATCH_Set (1UL) /*!< Enable */
+
+/* Bit 22 : Write '1' to enable interrupt for RXREADY event */
+#define RADIO_INTENSET_RXREADY_Pos (22UL) /*!< Position of RXREADY field. */
+#define RADIO_INTENSET_RXREADY_Msk (0x1UL << RADIO_INTENSET_RXREADY_Pos) /*!< Bit mask of RXREADY field. */
+#define RADIO_INTENSET_RXREADY_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_RXREADY_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_RXREADY_Set (1UL) /*!< Enable */
+
+/* Bit 21 : Write '1' to enable interrupt for TXREADY event */
+#define RADIO_INTENSET_TXREADY_Pos (21UL) /*!< Position of TXREADY field. */
+#define RADIO_INTENSET_TXREADY_Msk (0x1UL << RADIO_INTENSET_TXREADY_Pos) /*!< Bit mask of TXREADY field. */
+#define RADIO_INTENSET_TXREADY_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_TXREADY_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_TXREADY_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to enable interrupt for RATEBOOST event */
+#define RADIO_INTENSET_RATEBOOST_Pos (20UL) /*!< Position of RATEBOOST field. */
+#define RADIO_INTENSET_RATEBOOST_Msk (0x1UL << RADIO_INTENSET_RATEBOOST_Pos) /*!< Bit mask of RATEBOOST field. */
+#define RADIO_INTENSET_RATEBOOST_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_RATEBOOST_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_RATEBOOST_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to enable interrupt for CCASTOPPED event */
+#define RADIO_INTENSET_CCASTOPPED_Pos (19UL) /*!< Position of CCASTOPPED field. */
+#define RADIO_INTENSET_CCASTOPPED_Msk (0x1UL << RADIO_INTENSET_CCASTOPPED_Pos) /*!< Bit mask of CCASTOPPED field. */
+#define RADIO_INTENSET_CCASTOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_CCASTOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_CCASTOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to enable interrupt for CCABUSY event */
+#define RADIO_INTENSET_CCABUSY_Pos (18UL) /*!< Position of CCABUSY field. */
+#define RADIO_INTENSET_CCABUSY_Msk (0x1UL << RADIO_INTENSET_CCABUSY_Pos) /*!< Bit mask of CCABUSY field. */
+#define RADIO_INTENSET_CCABUSY_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_CCABUSY_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_CCABUSY_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to enable interrupt for CCAIDLE event */
+#define RADIO_INTENSET_CCAIDLE_Pos (17UL) /*!< Position of CCAIDLE field. */
+#define RADIO_INTENSET_CCAIDLE_Msk (0x1UL << RADIO_INTENSET_CCAIDLE_Pos) /*!< Bit mask of CCAIDLE field. */
+#define RADIO_INTENSET_CCAIDLE_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_CCAIDLE_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_CCAIDLE_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to enable interrupt for EDSTOPPED event */
+#define RADIO_INTENSET_EDSTOPPED_Pos (16UL) /*!< Position of EDSTOPPED field. */
+#define RADIO_INTENSET_EDSTOPPED_Msk (0x1UL << RADIO_INTENSET_EDSTOPPED_Pos) /*!< Bit mask of EDSTOPPED field. */
+#define RADIO_INTENSET_EDSTOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_EDSTOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_EDSTOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 15 : Write '1' to enable interrupt for EDEND event */
+#define RADIO_INTENSET_EDEND_Pos (15UL) /*!< Position of EDEND field. */
+#define RADIO_INTENSET_EDEND_Msk (0x1UL << RADIO_INTENSET_EDEND_Pos) /*!< Bit mask of EDEND field. */
+#define RADIO_INTENSET_EDEND_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_EDEND_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_EDEND_Set (1UL) /*!< Enable */
+
+/* Bit 14 : Write '1' to enable interrupt for FRAMESTART event */
+#define RADIO_INTENSET_FRAMESTART_Pos (14UL) /*!< Position of FRAMESTART field. */
+#define RADIO_INTENSET_FRAMESTART_Msk (0x1UL << RADIO_INTENSET_FRAMESTART_Pos) /*!< Bit mask of FRAMESTART field. */
+#define RADIO_INTENSET_FRAMESTART_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_FRAMESTART_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_FRAMESTART_Set (1UL) /*!< Enable */
+
+/* Bit 13 : Write '1' to enable interrupt for CRCERROR event */
+#define RADIO_INTENSET_CRCERROR_Pos (13UL) /*!< Position of CRCERROR field. */
+#define RADIO_INTENSET_CRCERROR_Msk (0x1UL << RADIO_INTENSET_CRCERROR_Pos) /*!< Bit mask of CRCERROR field. */
+#define RADIO_INTENSET_CRCERROR_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_CRCERROR_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_CRCERROR_Set (1UL) /*!< Enable */
+
+/* Bit 12 : Write '1' to enable interrupt for CRCOK event */
+#define RADIO_INTENSET_CRCOK_Pos (12UL) /*!< Position of CRCOK field. */
+#define RADIO_INTENSET_CRCOK_Msk (0x1UL << RADIO_INTENSET_CRCOK_Pos) /*!< Bit mask of CRCOK field. */
+#define RADIO_INTENSET_CRCOK_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_CRCOK_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_CRCOK_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to enable interrupt for BCMATCH event */
+#define RADIO_INTENSET_BCMATCH_Pos (10UL) /*!< Position of BCMATCH field. */
+#define RADIO_INTENSET_BCMATCH_Msk (0x1UL << RADIO_INTENSET_BCMATCH_Pos) /*!< Bit mask of BCMATCH field. */
+#define RADIO_INTENSET_BCMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_BCMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_BCMATCH_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to enable interrupt for RSSIEND event */
+#define RADIO_INTENSET_RSSIEND_Pos (7UL) /*!< Position of RSSIEND field. */
+#define RADIO_INTENSET_RSSIEND_Msk (0x1UL << RADIO_INTENSET_RSSIEND_Pos) /*!< Bit mask of RSSIEND field. */
+#define RADIO_INTENSET_RSSIEND_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_RSSIEND_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_RSSIEND_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to enable interrupt for DEVMISS event */
+#define RADIO_INTENSET_DEVMISS_Pos (6UL) /*!< Position of DEVMISS field. */
+#define RADIO_INTENSET_DEVMISS_Msk (0x1UL << RADIO_INTENSET_DEVMISS_Pos) /*!< Bit mask of DEVMISS field. */
+#define RADIO_INTENSET_DEVMISS_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_DEVMISS_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_DEVMISS_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to enable interrupt for DEVMATCH event */
+#define RADIO_INTENSET_DEVMATCH_Pos (5UL) /*!< Position of DEVMATCH field. */
+#define RADIO_INTENSET_DEVMATCH_Msk (0x1UL << RADIO_INTENSET_DEVMATCH_Pos) /*!< Bit mask of DEVMATCH field. */
+#define RADIO_INTENSET_DEVMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_DEVMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_DEVMATCH_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable interrupt for DISABLED event */
+#define RADIO_INTENSET_DISABLED_Pos (4UL) /*!< Position of DISABLED field. */
+#define RADIO_INTENSET_DISABLED_Msk (0x1UL << RADIO_INTENSET_DISABLED_Pos) /*!< Bit mask of DISABLED field. */
+#define RADIO_INTENSET_DISABLED_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_DISABLED_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_DISABLED_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to enable interrupt for END event */
+#define RADIO_INTENSET_END_Pos (3UL) /*!< Position of END field. */
+#define RADIO_INTENSET_END_Msk (0x1UL << RADIO_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define RADIO_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for PAYLOAD event */
+#define RADIO_INTENSET_PAYLOAD_Pos (2UL) /*!< Position of PAYLOAD field. */
+#define RADIO_INTENSET_PAYLOAD_Msk (0x1UL << RADIO_INTENSET_PAYLOAD_Pos) /*!< Bit mask of PAYLOAD field. */
+#define RADIO_INTENSET_PAYLOAD_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_PAYLOAD_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_PAYLOAD_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for ADDRESS event */
+#define RADIO_INTENSET_ADDRESS_Pos (1UL) /*!< Position of ADDRESS field. */
+#define RADIO_INTENSET_ADDRESS_Msk (0x1UL << RADIO_INTENSET_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+#define RADIO_INTENSET_ADDRESS_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_ADDRESS_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_ADDRESS_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for READY event */
+#define RADIO_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define RADIO_INTENSET_READY_Msk (0x1UL << RADIO_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define RADIO_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: RADIO_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 27 : Write '1' to disable interrupt for PHYEND event */
+#define RADIO_INTENCLR_PHYEND_Pos (27UL) /*!< Position of PHYEND field. */
+#define RADIO_INTENCLR_PHYEND_Msk (0x1UL << RADIO_INTENCLR_PHYEND_Pos) /*!< Bit mask of PHYEND field. */
+#define RADIO_INTENCLR_PHYEND_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_PHYEND_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_PHYEND_Clear (1UL) /*!< Disable */
+
+/* Bit 23 : Write '1' to disable interrupt for MHRMATCH event */
+#define RADIO_INTENCLR_MHRMATCH_Pos (23UL) /*!< Position of MHRMATCH field. */
+#define RADIO_INTENCLR_MHRMATCH_Msk (0x1UL << RADIO_INTENCLR_MHRMATCH_Pos) /*!< Bit mask of MHRMATCH field. */
+#define RADIO_INTENCLR_MHRMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_MHRMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_MHRMATCH_Clear (1UL) /*!< Disable */
+
+/* Bit 22 : Write '1' to disable interrupt for RXREADY event */
+#define RADIO_INTENCLR_RXREADY_Pos (22UL) /*!< Position of RXREADY field. */
+#define RADIO_INTENCLR_RXREADY_Msk (0x1UL << RADIO_INTENCLR_RXREADY_Pos) /*!< Bit mask of RXREADY field. */
+#define RADIO_INTENCLR_RXREADY_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_RXREADY_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_RXREADY_Clear (1UL) /*!< Disable */
+
+/* Bit 21 : Write '1' to disable interrupt for TXREADY event */
+#define RADIO_INTENCLR_TXREADY_Pos (21UL) /*!< Position of TXREADY field. */
+#define RADIO_INTENCLR_TXREADY_Msk (0x1UL << RADIO_INTENCLR_TXREADY_Pos) /*!< Bit mask of TXREADY field. */
+#define RADIO_INTENCLR_TXREADY_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_TXREADY_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_TXREADY_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to disable interrupt for RATEBOOST event */
+#define RADIO_INTENCLR_RATEBOOST_Pos (20UL) /*!< Position of RATEBOOST field. */
+#define RADIO_INTENCLR_RATEBOOST_Msk (0x1UL << RADIO_INTENCLR_RATEBOOST_Pos) /*!< Bit mask of RATEBOOST field. */
+#define RADIO_INTENCLR_RATEBOOST_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_RATEBOOST_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_RATEBOOST_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to disable interrupt for CCASTOPPED event */
+#define RADIO_INTENCLR_CCASTOPPED_Pos (19UL) /*!< Position of CCASTOPPED field. */
+#define RADIO_INTENCLR_CCASTOPPED_Msk (0x1UL << RADIO_INTENCLR_CCASTOPPED_Pos) /*!< Bit mask of CCASTOPPED field. */
+#define RADIO_INTENCLR_CCASTOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_CCASTOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_CCASTOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to disable interrupt for CCABUSY event */
+#define RADIO_INTENCLR_CCABUSY_Pos (18UL) /*!< Position of CCABUSY field. */
+#define RADIO_INTENCLR_CCABUSY_Msk (0x1UL << RADIO_INTENCLR_CCABUSY_Pos) /*!< Bit mask of CCABUSY field. */
+#define RADIO_INTENCLR_CCABUSY_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_CCABUSY_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_CCABUSY_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to disable interrupt for CCAIDLE event */
+#define RADIO_INTENCLR_CCAIDLE_Pos (17UL) /*!< Position of CCAIDLE field. */
+#define RADIO_INTENCLR_CCAIDLE_Msk (0x1UL << RADIO_INTENCLR_CCAIDLE_Pos) /*!< Bit mask of CCAIDLE field. */
+#define RADIO_INTENCLR_CCAIDLE_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_CCAIDLE_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_CCAIDLE_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to disable interrupt for EDSTOPPED event */
+#define RADIO_INTENCLR_EDSTOPPED_Pos (16UL) /*!< Position of EDSTOPPED field. */
+#define RADIO_INTENCLR_EDSTOPPED_Msk (0x1UL << RADIO_INTENCLR_EDSTOPPED_Pos) /*!< Bit mask of EDSTOPPED field. */
+#define RADIO_INTENCLR_EDSTOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_EDSTOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_EDSTOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 15 : Write '1' to disable interrupt for EDEND event */
+#define RADIO_INTENCLR_EDEND_Pos (15UL) /*!< Position of EDEND field. */
+#define RADIO_INTENCLR_EDEND_Msk (0x1UL << RADIO_INTENCLR_EDEND_Pos) /*!< Bit mask of EDEND field. */
+#define RADIO_INTENCLR_EDEND_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_EDEND_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_EDEND_Clear (1UL) /*!< Disable */
+
+/* Bit 14 : Write '1' to disable interrupt for FRAMESTART event */
+#define RADIO_INTENCLR_FRAMESTART_Pos (14UL) /*!< Position of FRAMESTART field. */
+#define RADIO_INTENCLR_FRAMESTART_Msk (0x1UL << RADIO_INTENCLR_FRAMESTART_Pos) /*!< Bit mask of FRAMESTART field. */
+#define RADIO_INTENCLR_FRAMESTART_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_FRAMESTART_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_FRAMESTART_Clear (1UL) /*!< Disable */
+
+/* Bit 13 : Write '1' to disable interrupt for CRCERROR event */
+#define RADIO_INTENCLR_CRCERROR_Pos (13UL) /*!< Position of CRCERROR field. */
+#define RADIO_INTENCLR_CRCERROR_Msk (0x1UL << RADIO_INTENCLR_CRCERROR_Pos) /*!< Bit mask of CRCERROR field. */
+#define RADIO_INTENCLR_CRCERROR_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_CRCERROR_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_CRCERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 12 : Write '1' to disable interrupt for CRCOK event */
+#define RADIO_INTENCLR_CRCOK_Pos (12UL) /*!< Position of CRCOK field. */
+#define RADIO_INTENCLR_CRCOK_Msk (0x1UL << RADIO_INTENCLR_CRCOK_Pos) /*!< Bit mask of CRCOK field. */
+#define RADIO_INTENCLR_CRCOK_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_CRCOK_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_CRCOK_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to disable interrupt for BCMATCH event */
+#define RADIO_INTENCLR_BCMATCH_Pos (10UL) /*!< Position of BCMATCH field. */
+#define RADIO_INTENCLR_BCMATCH_Msk (0x1UL << RADIO_INTENCLR_BCMATCH_Pos) /*!< Bit mask of BCMATCH field. */
+#define RADIO_INTENCLR_BCMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_BCMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_BCMATCH_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to disable interrupt for RSSIEND event */
+#define RADIO_INTENCLR_RSSIEND_Pos (7UL) /*!< Position of RSSIEND field. */
+#define RADIO_INTENCLR_RSSIEND_Msk (0x1UL << RADIO_INTENCLR_RSSIEND_Pos) /*!< Bit mask of RSSIEND field. */
+#define RADIO_INTENCLR_RSSIEND_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_RSSIEND_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_RSSIEND_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to disable interrupt for DEVMISS event */
+#define RADIO_INTENCLR_DEVMISS_Pos (6UL) /*!< Position of DEVMISS field. */
+#define RADIO_INTENCLR_DEVMISS_Msk (0x1UL << RADIO_INTENCLR_DEVMISS_Pos) /*!< Bit mask of DEVMISS field. */
+#define RADIO_INTENCLR_DEVMISS_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_DEVMISS_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_DEVMISS_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to disable interrupt for DEVMATCH event */
+#define RADIO_INTENCLR_DEVMATCH_Pos (5UL) /*!< Position of DEVMATCH field. */
+#define RADIO_INTENCLR_DEVMATCH_Msk (0x1UL << RADIO_INTENCLR_DEVMATCH_Pos) /*!< Bit mask of DEVMATCH field. */
+#define RADIO_INTENCLR_DEVMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_DEVMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_DEVMATCH_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable interrupt for DISABLED event */
+#define RADIO_INTENCLR_DISABLED_Pos (4UL) /*!< Position of DISABLED field. */
+#define RADIO_INTENCLR_DISABLED_Msk (0x1UL << RADIO_INTENCLR_DISABLED_Pos) /*!< Bit mask of DISABLED field. */
+#define RADIO_INTENCLR_DISABLED_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_DISABLED_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_DISABLED_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to disable interrupt for END event */
+#define RADIO_INTENCLR_END_Pos (3UL) /*!< Position of END field. */
+#define RADIO_INTENCLR_END_Msk (0x1UL << RADIO_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define RADIO_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for PAYLOAD event */
+#define RADIO_INTENCLR_PAYLOAD_Pos (2UL) /*!< Position of PAYLOAD field. */
+#define RADIO_INTENCLR_PAYLOAD_Msk (0x1UL << RADIO_INTENCLR_PAYLOAD_Pos) /*!< Bit mask of PAYLOAD field. */
+#define RADIO_INTENCLR_PAYLOAD_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_PAYLOAD_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_PAYLOAD_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for ADDRESS event */
+#define RADIO_INTENCLR_ADDRESS_Pos (1UL) /*!< Position of ADDRESS field. */
+#define RADIO_INTENCLR_ADDRESS_Msk (0x1UL << RADIO_INTENCLR_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+#define RADIO_INTENCLR_ADDRESS_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_ADDRESS_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_ADDRESS_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for READY event */
+#define RADIO_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define RADIO_INTENCLR_READY_Msk (0x1UL << RADIO_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define RADIO_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: RADIO_CRCSTATUS */
+/* Description: CRC status */
+
+/* Bit 0 : CRC status of packet received */
+#define RADIO_CRCSTATUS_CRCSTATUS_Pos (0UL) /*!< Position of CRCSTATUS field. */
+#define RADIO_CRCSTATUS_CRCSTATUS_Msk (0x1UL << RADIO_CRCSTATUS_CRCSTATUS_Pos) /*!< Bit mask of CRCSTATUS field. */
+#define RADIO_CRCSTATUS_CRCSTATUS_CRCError (0UL) /*!< Packet received with CRC error */
+#define RADIO_CRCSTATUS_CRCSTATUS_CRCOk (1UL) /*!< Packet received with CRC ok */
+
+/* Register: RADIO_RXMATCH */
+/* Description: Received address */
+
+/* Bits 2..0 : Received address */
+#define RADIO_RXMATCH_RXMATCH_Pos (0UL) /*!< Position of RXMATCH field. */
+#define RADIO_RXMATCH_RXMATCH_Msk (0x7UL << RADIO_RXMATCH_RXMATCH_Pos) /*!< Bit mask of RXMATCH field. */
+
+/* Register: RADIO_RXCRC */
+/* Description: CRC field of previously received packet */
+
+/* Bits 23..0 : CRC field of previously received packet */
+#define RADIO_RXCRC_RXCRC_Pos (0UL) /*!< Position of RXCRC field. */
+#define RADIO_RXCRC_RXCRC_Msk (0xFFFFFFUL << RADIO_RXCRC_RXCRC_Pos) /*!< Bit mask of RXCRC field. */
+
+/* Register: RADIO_DAI */
+/* Description: Device address match index */
+
+/* Bits 2..0 : Device address match index */
+#define RADIO_DAI_DAI_Pos (0UL) /*!< Position of DAI field. */
+#define RADIO_DAI_DAI_Msk (0x7UL << RADIO_DAI_DAI_Pos) /*!< Bit mask of DAI field. */
+
+/* Register: RADIO_PDUSTAT */
+/* Description: Payload status */
+
+/* Bits 2..1 : Status on what rate packet is received with in Long Range */
+#define RADIO_PDUSTAT_CISTAT_Pos (1UL) /*!< Position of CISTAT field. */
+#define RADIO_PDUSTAT_CISTAT_Msk (0x3UL << RADIO_PDUSTAT_CISTAT_Pos) /*!< Bit mask of CISTAT field. */
+#define RADIO_PDUSTAT_CISTAT_LR125kbit (0UL) /*!< Frame is received at 125kbps */
+#define RADIO_PDUSTAT_CISTAT_LR500kbit (1UL) /*!< Frame is received at 500kbps */
+
+/* Bit 0 : Status on payload length vs. PCNF1.MAXLEN */
+#define RADIO_PDUSTAT_PDUSTAT_Pos (0UL) /*!< Position of PDUSTAT field. */
+#define RADIO_PDUSTAT_PDUSTAT_Msk (0x1UL << RADIO_PDUSTAT_PDUSTAT_Pos) /*!< Bit mask of PDUSTAT field. */
+#define RADIO_PDUSTAT_PDUSTAT_LessThan (0UL) /*!< Payload less than PCNF1.MAXLEN */
+#define RADIO_PDUSTAT_PDUSTAT_GreaterThan (1UL) /*!< Payload greater than PCNF1.MAXLEN */
+
+/* Register: RADIO_PACKETPTR */
+/* Description: Packet pointer */
+
+/* Bits 31..0 : Packet pointer */
+#define RADIO_PACKETPTR_PACKETPTR_Pos (0UL) /*!< Position of PACKETPTR field. */
+#define RADIO_PACKETPTR_PACKETPTR_Msk (0xFFFFFFFFUL << RADIO_PACKETPTR_PACKETPTR_Pos) /*!< Bit mask of PACKETPTR field. */
+
+/* Register: RADIO_FREQUENCY */
+/* Description: Frequency */
+
+/* Bit 8 : Channel map selection. */
+#define RADIO_FREQUENCY_MAP_Pos (8UL) /*!< Position of MAP field. */
+#define RADIO_FREQUENCY_MAP_Msk (0x1UL << RADIO_FREQUENCY_MAP_Pos) /*!< Bit mask of MAP field. */
+#define RADIO_FREQUENCY_MAP_Default (0UL) /*!< Channel map between 2400 MHZ .. 2500 MHz */
+#define RADIO_FREQUENCY_MAP_Low (1UL) /*!< Channel map between 2360 MHZ .. 2460 MHz */
+
+/* Bits 6..0 : Radio channel frequency */
+#define RADIO_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define RADIO_FREQUENCY_FREQUENCY_Msk (0x7FUL << RADIO_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+
+/* Register: RADIO_TXPOWER */
+/* Description: Output power */
+
+/* Bits 7..0 : RADIO output power */
+#define RADIO_TXPOWER_TXPOWER_Pos (0UL) /*!< Position of TXPOWER field. */
+#define RADIO_TXPOWER_TXPOWER_Msk (0xFFUL << RADIO_TXPOWER_TXPOWER_Pos) /*!< Bit mask of TXPOWER field. */
+#define RADIO_TXPOWER_TXPOWER_0dBm (0x0UL) /*!< 0 dBm */
+#define RADIO_TXPOWER_TXPOWER_Pos2dBm (0x2UL) /*!< +2 dBm */
+#define RADIO_TXPOWER_TXPOWER_Pos3dBm (0x3UL) /*!< +3 dBm */
+#define RADIO_TXPOWER_TXPOWER_Pos4dBm (0x4UL) /*!< +4 dBm */
+#define RADIO_TXPOWER_TXPOWER_Pos5dBm (0x5UL) /*!< +5 dBm */
+#define RADIO_TXPOWER_TXPOWER_Pos6dBm (0x6UL) /*!< +6 dBm */
+#define RADIO_TXPOWER_TXPOWER_Pos7dBm (0x7UL) /*!< +7 dBm */
+#define RADIO_TXPOWER_TXPOWER_Pos8dBm (0x8UL) /*!< +8 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg40dBm (0xD8UL) /*!< -40 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg20dBm (0xECUL) /*!< -20 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg16dBm (0xF0UL) /*!< -16 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg12dBm (0xF4UL) /*!< -12 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg8dBm (0xF8UL) /*!< -8 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg4dBm (0xFCUL) /*!< -4 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg30dBm (0xFFUL) /*!< Deprecated enumerator - -40 dBm */
+
+/* Register: RADIO_MODE */
+/* Description: Data rate and modulation */
+
+/* Bits 3..0 : Radio data rate and modulation setting. The radio supports frequency-shift keying (FSK) modulation. */
+#define RADIO_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define RADIO_MODE_MODE_Msk (0xFUL << RADIO_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define RADIO_MODE_MODE_Nrf_1Mbit (0UL) /*!< 1 Mbit/s Nordic proprietary radio mode */
+#define RADIO_MODE_MODE_Nrf_2Mbit (1UL) /*!< 2 Mbit/s Nordic proprietary radio mode */
+#define RADIO_MODE_MODE_Ble_1Mbit (3UL) /*!< 1 Mbit/s BLE */
+#define RADIO_MODE_MODE_Ble_2Mbit (4UL) /*!< 2 Mbit/s BLE */
+#define RADIO_MODE_MODE_Ble_LR125Kbit (5UL) /*!< Long range 125 kbit/s TX, 125 kbit/s and 500 kbit/s RX */
+#define RADIO_MODE_MODE_Ble_LR500Kbit (6UL) /*!< Long range 500 kbit/s TX, 125 kbit/s and 500 kbit/s RX */
+#define RADIO_MODE_MODE_Ieee802154_250Kbit (15UL) /*!< IEEE 802.15.4-2006 250 kbit/s */
+
+/* Register: RADIO_PCNF0 */
+/* Description: Packet configuration register 0 */
+
+/* Bits 30..29 : Length of TERM field in Long Range operation */
+#define RADIO_PCNF0_TERMLEN_Pos (29UL) /*!< Position of TERMLEN field. */
+#define RADIO_PCNF0_TERMLEN_Msk (0x3UL << RADIO_PCNF0_TERMLEN_Pos) /*!< Bit mask of TERMLEN field. */
+
+/* Bit 26 : Indicates if LENGTH field contains CRC or not */
+#define RADIO_PCNF0_CRCINC_Pos (26UL) /*!< Position of CRCINC field. */
+#define RADIO_PCNF0_CRCINC_Msk (0x1UL << RADIO_PCNF0_CRCINC_Pos) /*!< Bit mask of CRCINC field. */
+#define RADIO_PCNF0_CRCINC_Exclude (0UL) /*!< LENGTH does not contain CRC */
+#define RADIO_PCNF0_CRCINC_Include (1UL) /*!< LENGTH includes CRC */
+
+/* Bits 25..24 : Length of preamble on air. Decision point: TASKS_START task */
+#define RADIO_PCNF0_PLEN_Pos (24UL) /*!< Position of PLEN field. */
+#define RADIO_PCNF0_PLEN_Msk (0x3UL << RADIO_PCNF0_PLEN_Pos) /*!< Bit mask of PLEN field. */
+#define RADIO_PCNF0_PLEN_8bit (0UL) /*!< 8-bit preamble */
+#define RADIO_PCNF0_PLEN_16bit (1UL) /*!< 16-bit preamble */
+#define RADIO_PCNF0_PLEN_32bitZero (2UL) /*!< 32-bit zero preamble - used for IEEE 802.15.4 */
+#define RADIO_PCNF0_PLEN_LongRange (3UL) /*!< Preamble - used for BLE long range */
+
+/* Bits 23..22 : Length of code indicator - long range */
+#define RADIO_PCNF0_CILEN_Pos (22UL) /*!< Position of CILEN field. */
+#define RADIO_PCNF0_CILEN_Msk (0x3UL << RADIO_PCNF0_CILEN_Pos) /*!< Bit mask of CILEN field. */
+
+/* Bit 20 : Include or exclude S1 field in RAM */
+#define RADIO_PCNF0_S1INCL_Pos (20UL) /*!< Position of S1INCL field. */
+#define RADIO_PCNF0_S1INCL_Msk (0x1UL << RADIO_PCNF0_S1INCL_Pos) /*!< Bit mask of S1INCL field. */
+#define RADIO_PCNF0_S1INCL_Automatic (0UL) /*!< Include S1 field in RAM only if S1LEN &gt; 0 */
+#define RADIO_PCNF0_S1INCL_Include (1UL) /*!< Always include S1 field in RAM independent of S1LEN */
+
+/* Bits 19..16 : Length on air of S1 field in number of bits. */
+#define RADIO_PCNF0_S1LEN_Pos (16UL) /*!< Position of S1LEN field. */
+#define RADIO_PCNF0_S1LEN_Msk (0xFUL << RADIO_PCNF0_S1LEN_Pos) /*!< Bit mask of S1LEN field. */
+
+/* Bit 8 : Length on air of S0 field in number of bytes. */
+#define RADIO_PCNF0_S0LEN_Pos (8UL) /*!< Position of S0LEN field. */
+#define RADIO_PCNF0_S0LEN_Msk (0x1UL << RADIO_PCNF0_S0LEN_Pos) /*!< Bit mask of S0LEN field. */
+
+/* Bits 3..0 : Length on air of LENGTH field in number of bits. */
+#define RADIO_PCNF0_LFLEN_Pos (0UL) /*!< Position of LFLEN field. */
+#define RADIO_PCNF0_LFLEN_Msk (0xFUL << RADIO_PCNF0_LFLEN_Pos) /*!< Bit mask of LFLEN field. */
+
+/* Register: RADIO_PCNF1 */
+/* Description: Packet configuration register 1 */
+
+/* Bit 25 : Enable or disable packet whitening */
+#define RADIO_PCNF1_WHITEEN_Pos (25UL) /*!< Position of WHITEEN field. */
+#define RADIO_PCNF1_WHITEEN_Msk (0x1UL << RADIO_PCNF1_WHITEEN_Pos) /*!< Bit mask of WHITEEN field. */
+#define RADIO_PCNF1_WHITEEN_Disabled (0UL) /*!< Disable */
+#define RADIO_PCNF1_WHITEEN_Enabled (1UL) /*!< Enable */
+
+/* Bit 24 : On air endianness of packet, this applies to the S0, LENGTH, S1 and the PAYLOAD fields. */
+#define RADIO_PCNF1_ENDIAN_Pos (24UL) /*!< Position of ENDIAN field. */
+#define RADIO_PCNF1_ENDIAN_Msk (0x1UL << RADIO_PCNF1_ENDIAN_Pos) /*!< Bit mask of ENDIAN field. */
+#define RADIO_PCNF1_ENDIAN_Little (0UL) /*!< Least significant bit on air first */
+#define RADIO_PCNF1_ENDIAN_Big (1UL) /*!< Most significant bit on air first */
+
+/* Bits 18..16 : Base address length in number of bytes */
+#define RADIO_PCNF1_BALEN_Pos (16UL) /*!< Position of BALEN field. */
+#define RADIO_PCNF1_BALEN_Msk (0x7UL << RADIO_PCNF1_BALEN_Pos) /*!< Bit mask of BALEN field. */
+
+/* Bits 15..8 : Static length in number of bytes */
+#define RADIO_PCNF1_STATLEN_Pos (8UL) /*!< Position of STATLEN field. */
+#define RADIO_PCNF1_STATLEN_Msk (0xFFUL << RADIO_PCNF1_STATLEN_Pos) /*!< Bit mask of STATLEN field. */
+
+/* Bits 7..0 : Maximum length of packet payload. If the packet payload is larger than MAXLEN, the radio will truncate the payload to MAXLEN. */
+#define RADIO_PCNF1_MAXLEN_Pos (0UL) /*!< Position of MAXLEN field. */
+#define RADIO_PCNF1_MAXLEN_Msk (0xFFUL << RADIO_PCNF1_MAXLEN_Pos) /*!< Bit mask of MAXLEN field. */
+
+/* Register: RADIO_BASE0 */
+/* Description: Base address 0 */
+
+/* Bits 31..0 : Base address 0 */
+#define RADIO_BASE0_BASE0_Pos (0UL) /*!< Position of BASE0 field. */
+#define RADIO_BASE0_BASE0_Msk (0xFFFFFFFFUL << RADIO_BASE0_BASE0_Pos) /*!< Bit mask of BASE0 field. */
+
+/* Register: RADIO_BASE1 */
+/* Description: Base address 1 */
+
+/* Bits 31..0 : Base address 1 */
+#define RADIO_BASE1_BASE1_Pos (0UL) /*!< Position of BASE1 field. */
+#define RADIO_BASE1_BASE1_Msk (0xFFFFFFFFUL << RADIO_BASE1_BASE1_Pos) /*!< Bit mask of BASE1 field. */
+
+/* Register: RADIO_PREFIX0 */
+/* Description: Prefixes bytes for logical addresses 0-3 */
+
+/* Bits 31..24 : Address prefix 3. */
+#define RADIO_PREFIX0_AP3_Pos (24UL) /*!< Position of AP3 field. */
+#define RADIO_PREFIX0_AP3_Msk (0xFFUL << RADIO_PREFIX0_AP3_Pos) /*!< Bit mask of AP3 field. */
+
+/* Bits 23..16 : Address prefix 2. */
+#define RADIO_PREFIX0_AP2_Pos (16UL) /*!< Position of AP2 field. */
+#define RADIO_PREFIX0_AP2_Msk (0xFFUL << RADIO_PREFIX0_AP2_Pos) /*!< Bit mask of AP2 field. */
+
+/* Bits 15..8 : Address prefix 1. */
+#define RADIO_PREFIX0_AP1_Pos (8UL) /*!< Position of AP1 field. */
+#define RADIO_PREFIX0_AP1_Msk (0xFFUL << RADIO_PREFIX0_AP1_Pos) /*!< Bit mask of AP1 field. */
+
+/* Bits 7..0 : Address prefix 0. */
+#define RADIO_PREFIX0_AP0_Pos (0UL) /*!< Position of AP0 field. */
+#define RADIO_PREFIX0_AP0_Msk (0xFFUL << RADIO_PREFIX0_AP0_Pos) /*!< Bit mask of AP0 field. */
+
+/* Register: RADIO_PREFIX1 */
+/* Description: Prefixes bytes for logical addresses 4-7 */
+
+/* Bits 31..24 : Address prefix 7. */
+#define RADIO_PREFIX1_AP7_Pos (24UL) /*!< Position of AP7 field. */
+#define RADIO_PREFIX1_AP7_Msk (0xFFUL << RADIO_PREFIX1_AP7_Pos) /*!< Bit mask of AP7 field. */
+
+/* Bits 23..16 : Address prefix 6. */
+#define RADIO_PREFIX1_AP6_Pos (16UL) /*!< Position of AP6 field. */
+#define RADIO_PREFIX1_AP6_Msk (0xFFUL << RADIO_PREFIX1_AP6_Pos) /*!< Bit mask of AP6 field. */
+
+/* Bits 15..8 : Address prefix 5. */
+#define RADIO_PREFIX1_AP5_Pos (8UL) /*!< Position of AP5 field. */
+#define RADIO_PREFIX1_AP5_Msk (0xFFUL << RADIO_PREFIX1_AP5_Pos) /*!< Bit mask of AP5 field. */
+
+/* Bits 7..0 : Address prefix 4. */
+#define RADIO_PREFIX1_AP4_Pos (0UL) /*!< Position of AP4 field. */
+#define RADIO_PREFIX1_AP4_Msk (0xFFUL << RADIO_PREFIX1_AP4_Pos) /*!< Bit mask of AP4 field. */
+
+/* Register: RADIO_TXADDRESS */
+/* Description: Transmit address select */
+
+/* Bits 2..0 : Transmit address select */
+#define RADIO_TXADDRESS_TXADDRESS_Pos (0UL) /*!< Position of TXADDRESS field. */
+#define RADIO_TXADDRESS_TXADDRESS_Msk (0x7UL << RADIO_TXADDRESS_TXADDRESS_Pos) /*!< Bit mask of TXADDRESS field. */
+
+/* Register: RADIO_RXADDRESSES */
+/* Description: Receive address select */
+
+/* Bit 7 : Enable or disable reception on logical address 7. */
+#define RADIO_RXADDRESSES_ADDR7_Pos (7UL) /*!< Position of ADDR7 field. */
+#define RADIO_RXADDRESSES_ADDR7_Msk (0x1UL << RADIO_RXADDRESSES_ADDR7_Pos) /*!< Bit mask of ADDR7 field. */
+#define RADIO_RXADDRESSES_ADDR7_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR7_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable reception on logical address 6. */
+#define RADIO_RXADDRESSES_ADDR6_Pos (6UL) /*!< Position of ADDR6 field. */
+#define RADIO_RXADDRESSES_ADDR6_Msk (0x1UL << RADIO_RXADDRESSES_ADDR6_Pos) /*!< Bit mask of ADDR6 field. */
+#define RADIO_RXADDRESSES_ADDR6_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR6_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable reception on logical address 5. */
+#define RADIO_RXADDRESSES_ADDR5_Pos (5UL) /*!< Position of ADDR5 field. */
+#define RADIO_RXADDRESSES_ADDR5_Msk (0x1UL << RADIO_RXADDRESSES_ADDR5_Pos) /*!< Bit mask of ADDR5 field. */
+#define RADIO_RXADDRESSES_ADDR5_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR5_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable reception on logical address 4. */
+#define RADIO_RXADDRESSES_ADDR4_Pos (4UL) /*!< Position of ADDR4 field. */
+#define RADIO_RXADDRESSES_ADDR4_Msk (0x1UL << RADIO_RXADDRESSES_ADDR4_Pos) /*!< Bit mask of ADDR4 field. */
+#define RADIO_RXADDRESSES_ADDR4_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR4_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable reception on logical address 3. */
+#define RADIO_RXADDRESSES_ADDR3_Pos (3UL) /*!< Position of ADDR3 field. */
+#define RADIO_RXADDRESSES_ADDR3_Msk (0x1UL << RADIO_RXADDRESSES_ADDR3_Pos) /*!< Bit mask of ADDR3 field. */
+#define RADIO_RXADDRESSES_ADDR3_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR3_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable reception on logical address 2. */
+#define RADIO_RXADDRESSES_ADDR2_Pos (2UL) /*!< Position of ADDR2 field. */
+#define RADIO_RXADDRESSES_ADDR2_Msk (0x1UL << RADIO_RXADDRESSES_ADDR2_Pos) /*!< Bit mask of ADDR2 field. */
+#define RADIO_RXADDRESSES_ADDR2_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR2_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable reception on logical address 1. */
+#define RADIO_RXADDRESSES_ADDR1_Pos (1UL) /*!< Position of ADDR1 field. */
+#define RADIO_RXADDRESSES_ADDR1_Msk (0x1UL << RADIO_RXADDRESSES_ADDR1_Pos) /*!< Bit mask of ADDR1 field. */
+#define RADIO_RXADDRESSES_ADDR1_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR1_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable reception on logical address 0. */
+#define RADIO_RXADDRESSES_ADDR0_Pos (0UL) /*!< Position of ADDR0 field. */
+#define RADIO_RXADDRESSES_ADDR0_Msk (0x1UL << RADIO_RXADDRESSES_ADDR0_Pos) /*!< Bit mask of ADDR0 field. */
+#define RADIO_RXADDRESSES_ADDR0_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR0_Enabled (1UL) /*!< Enable */
+
+/* Register: RADIO_CRCCNF */
+/* Description: CRC configuration */
+
+/* Bits 9..8 : Include or exclude packet address field out of CRC calculation. */
+#define RADIO_CRCCNF_SKIPADDR_Pos (8UL) /*!< Position of SKIPADDR field. */
+#define RADIO_CRCCNF_SKIPADDR_Msk (0x3UL << RADIO_CRCCNF_SKIPADDR_Pos) /*!< Bit mask of SKIPADDR field. */
+#define RADIO_CRCCNF_SKIPADDR_Include (0UL) /*!< CRC calculation includes address field */
+#define RADIO_CRCCNF_SKIPADDR_Skip (1UL) /*!< CRC calculation does not include address field. The CRC calculation will start at the first byte after the address. */
+#define RADIO_CRCCNF_SKIPADDR_Ieee802154 (2UL) /*!< CRC calculation as per 802.15.4 standard. Starting at first byte after length field. */
+
+/* Bits 1..0 : CRC length in number of bytes. */
+#define RADIO_CRCCNF_LEN_Pos (0UL) /*!< Position of LEN field. */
+#define RADIO_CRCCNF_LEN_Msk (0x3UL << RADIO_CRCCNF_LEN_Pos) /*!< Bit mask of LEN field. */
+#define RADIO_CRCCNF_LEN_Disabled (0UL) /*!< CRC length is zero and CRC calculation is disabled */
+#define RADIO_CRCCNF_LEN_One (1UL) /*!< CRC length is one byte and CRC calculation is enabled */
+#define RADIO_CRCCNF_LEN_Two (2UL) /*!< CRC length is two bytes and CRC calculation is enabled */
+#define RADIO_CRCCNF_LEN_Three (3UL) /*!< CRC length is three bytes and CRC calculation is enabled */
+
+/* Register: RADIO_CRCPOLY */
+/* Description: CRC polynomial */
+
+/* Bits 23..0 : CRC polynomial */
+#define RADIO_CRCPOLY_CRCPOLY_Pos (0UL) /*!< Position of CRCPOLY field. */
+#define RADIO_CRCPOLY_CRCPOLY_Msk (0xFFFFFFUL << RADIO_CRCPOLY_CRCPOLY_Pos) /*!< Bit mask of CRCPOLY field. */
+
+/* Register: RADIO_CRCINIT */
+/* Description: CRC initial value */
+
+/* Bits 23..0 : CRC initial value */
+#define RADIO_CRCINIT_CRCINIT_Pos (0UL) /*!< Position of CRCINIT field. */
+#define RADIO_CRCINIT_CRCINIT_Msk (0xFFFFFFUL << RADIO_CRCINIT_CRCINIT_Pos) /*!< Bit mask of CRCINIT field. */
+
+/* Register: RADIO_TIFS */
+/* Description: Interframe spacing in us */
+
+/* Bits 9..0 : Interframe spacing in us */
+#define RADIO_TIFS_TIFS_Pos (0UL) /*!< Position of TIFS field. */
+#define RADIO_TIFS_TIFS_Msk (0x3FFUL << RADIO_TIFS_TIFS_Pos) /*!< Bit mask of TIFS field. */
+
+/* Register: RADIO_RSSISAMPLE */
+/* Description: RSSI sample */
+
+/* Bits 6..0 : RSSI sample */
+#define RADIO_RSSISAMPLE_RSSISAMPLE_Pos (0UL) /*!< Position of RSSISAMPLE field. */
+#define RADIO_RSSISAMPLE_RSSISAMPLE_Msk (0x7FUL << RADIO_RSSISAMPLE_RSSISAMPLE_Pos) /*!< Bit mask of RSSISAMPLE field. */
+
+/* Register: RADIO_STATE */
+/* Description: Current radio state */
+
+/* Bits 3..0 : Current radio state */
+#define RADIO_STATE_STATE_Pos (0UL) /*!< Position of STATE field. */
+#define RADIO_STATE_STATE_Msk (0xFUL << RADIO_STATE_STATE_Pos) /*!< Bit mask of STATE field. */
+#define RADIO_STATE_STATE_Disabled (0UL) /*!< RADIO is in the Disabled state */
+#define RADIO_STATE_STATE_RxRu (1UL) /*!< RADIO is in the RXRU state */
+#define RADIO_STATE_STATE_RxIdle (2UL) /*!< RADIO is in the RXIDLE state */
+#define RADIO_STATE_STATE_Rx (3UL) /*!< RADIO is in the RX state */
+#define RADIO_STATE_STATE_RxDisable (4UL) /*!< RADIO is in the RXDISABLED state */
+#define RADIO_STATE_STATE_TxRu (9UL) /*!< RADIO is in the TXRU state */
+#define RADIO_STATE_STATE_TxIdle (10UL) /*!< RADIO is in the TXIDLE state */
+#define RADIO_STATE_STATE_Tx (11UL) /*!< RADIO is in the TX state */
+#define RADIO_STATE_STATE_TxDisable (12UL) /*!< RADIO is in the TXDISABLED state */
+
+/* Register: RADIO_DATAWHITEIV */
+/* Description: Data whitening initial value */
+
+/* Bits 6..0 : Data whitening initial value. Bit 6 is hard-wired to '1', writing '0' to it has no effect, and it will always be read back and used by the device as '1'. */
+#define RADIO_DATAWHITEIV_DATAWHITEIV_Pos (0UL) /*!< Position of DATAWHITEIV field. */
+#define RADIO_DATAWHITEIV_DATAWHITEIV_Msk (0x7FUL << RADIO_DATAWHITEIV_DATAWHITEIV_Pos) /*!< Bit mask of DATAWHITEIV field. */
+
+/* Register: RADIO_BCC */
+/* Description: Bit counter compare */
+
+/* Bits 31..0 : Bit counter compare */
+#define RADIO_BCC_BCC_Pos (0UL) /*!< Position of BCC field. */
+#define RADIO_BCC_BCC_Msk (0xFFFFFFFFUL << RADIO_BCC_BCC_Pos) /*!< Bit mask of BCC field. */
+
+/* Register: RADIO_DAB */
+/* Description: Description collection[n]: Device address base segment n */
+
+/* Bits 31..0 : Device address base segment n */
+#define RADIO_DAB_DAB_Pos (0UL) /*!< Position of DAB field. */
+#define RADIO_DAB_DAB_Msk (0xFFFFFFFFUL << RADIO_DAB_DAB_Pos) /*!< Bit mask of DAB field. */
+
+/* Register: RADIO_DAP */
+/* Description: Description collection[n]: Device address prefix n */
+
+/* Bits 15..0 : Device address prefix n */
+#define RADIO_DAP_DAP_Pos (0UL) /*!< Position of DAP field. */
+#define RADIO_DAP_DAP_Msk (0xFFFFUL << RADIO_DAP_DAP_Pos) /*!< Bit mask of DAP field. */
+
+/* Register: RADIO_DACNF */
+/* Description: Device address match configuration */
+
+/* Bit 15 : TxAdd for device address 7 */
+#define RADIO_DACNF_TXADD7_Pos (15UL) /*!< Position of TXADD7 field. */
+#define RADIO_DACNF_TXADD7_Msk (0x1UL << RADIO_DACNF_TXADD7_Pos) /*!< Bit mask of TXADD7 field. */
+
+/* Bit 14 : TxAdd for device address 6 */
+#define RADIO_DACNF_TXADD6_Pos (14UL) /*!< Position of TXADD6 field. */
+#define RADIO_DACNF_TXADD6_Msk (0x1UL << RADIO_DACNF_TXADD6_Pos) /*!< Bit mask of TXADD6 field. */
+
+/* Bit 13 : TxAdd for device address 5 */
+#define RADIO_DACNF_TXADD5_Pos (13UL) /*!< Position of TXADD5 field. */
+#define RADIO_DACNF_TXADD5_Msk (0x1UL << RADIO_DACNF_TXADD5_Pos) /*!< Bit mask of TXADD5 field. */
+
+/* Bit 12 : TxAdd for device address 4 */
+#define RADIO_DACNF_TXADD4_Pos (12UL) /*!< Position of TXADD4 field. */
+#define RADIO_DACNF_TXADD4_Msk (0x1UL << RADIO_DACNF_TXADD4_Pos) /*!< Bit mask of TXADD4 field. */
+
+/* Bit 11 : TxAdd for device address 3 */
+#define RADIO_DACNF_TXADD3_Pos (11UL) /*!< Position of TXADD3 field. */
+#define RADIO_DACNF_TXADD3_Msk (0x1UL << RADIO_DACNF_TXADD3_Pos) /*!< Bit mask of TXADD3 field. */
+
+/* Bit 10 : TxAdd for device address 2 */
+#define RADIO_DACNF_TXADD2_Pos (10UL) /*!< Position of TXADD2 field. */
+#define RADIO_DACNF_TXADD2_Msk (0x1UL << RADIO_DACNF_TXADD2_Pos) /*!< Bit mask of TXADD2 field. */
+
+/* Bit 9 : TxAdd for device address 1 */
+#define RADIO_DACNF_TXADD1_Pos (9UL) /*!< Position of TXADD1 field. */
+#define RADIO_DACNF_TXADD1_Msk (0x1UL << RADIO_DACNF_TXADD1_Pos) /*!< Bit mask of TXADD1 field. */
+
+/* Bit 8 : TxAdd for device address 0 */
+#define RADIO_DACNF_TXADD0_Pos (8UL) /*!< Position of TXADD0 field. */
+#define RADIO_DACNF_TXADD0_Msk (0x1UL << RADIO_DACNF_TXADD0_Pos) /*!< Bit mask of TXADD0 field. */
+
+/* Bit 7 : Enable or disable device address matching using device address 7 */
+#define RADIO_DACNF_ENA7_Pos (7UL) /*!< Position of ENA7 field. */
+#define RADIO_DACNF_ENA7_Msk (0x1UL << RADIO_DACNF_ENA7_Pos) /*!< Bit mask of ENA7 field. */
+#define RADIO_DACNF_ENA7_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA7_Enabled (1UL) /*!< Enabled */
+
+/* Bit 6 : Enable or disable device address matching using device address 6 */
+#define RADIO_DACNF_ENA6_Pos (6UL) /*!< Position of ENA6 field. */
+#define RADIO_DACNF_ENA6_Msk (0x1UL << RADIO_DACNF_ENA6_Pos) /*!< Bit mask of ENA6 field. */
+#define RADIO_DACNF_ENA6_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA6_Enabled (1UL) /*!< Enabled */
+
+/* Bit 5 : Enable or disable device address matching using device address 5 */
+#define RADIO_DACNF_ENA5_Pos (5UL) /*!< Position of ENA5 field. */
+#define RADIO_DACNF_ENA5_Msk (0x1UL << RADIO_DACNF_ENA5_Pos) /*!< Bit mask of ENA5 field. */
+#define RADIO_DACNF_ENA5_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA5_Enabled (1UL) /*!< Enabled */
+
+/* Bit 4 : Enable or disable device address matching using device address 4 */
+#define RADIO_DACNF_ENA4_Pos (4UL) /*!< Position of ENA4 field. */
+#define RADIO_DACNF_ENA4_Msk (0x1UL << RADIO_DACNF_ENA4_Pos) /*!< Bit mask of ENA4 field. */
+#define RADIO_DACNF_ENA4_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA4_Enabled (1UL) /*!< Enabled */
+
+/* Bit 3 : Enable or disable device address matching using device address 3 */
+#define RADIO_DACNF_ENA3_Pos (3UL) /*!< Position of ENA3 field. */
+#define RADIO_DACNF_ENA3_Msk (0x1UL << RADIO_DACNF_ENA3_Pos) /*!< Bit mask of ENA3 field. */
+#define RADIO_DACNF_ENA3_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA3_Enabled (1UL) /*!< Enabled */
+
+/* Bit 2 : Enable or disable device address matching using device address 2 */
+#define RADIO_DACNF_ENA2_Pos (2UL) /*!< Position of ENA2 field. */
+#define RADIO_DACNF_ENA2_Msk (0x1UL << RADIO_DACNF_ENA2_Pos) /*!< Bit mask of ENA2 field. */
+#define RADIO_DACNF_ENA2_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA2_Enabled (1UL) /*!< Enabled */
+
+/* Bit 1 : Enable or disable device address matching using device address 1 */
+#define RADIO_DACNF_ENA1_Pos (1UL) /*!< Position of ENA1 field. */
+#define RADIO_DACNF_ENA1_Msk (0x1UL << RADIO_DACNF_ENA1_Pos) /*!< Bit mask of ENA1 field. */
+#define RADIO_DACNF_ENA1_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA1_Enabled (1UL) /*!< Enabled */
+
+/* Bit 0 : Enable or disable device address matching using device address 0 */
+#define RADIO_DACNF_ENA0_Pos (0UL) /*!< Position of ENA0 field. */
+#define RADIO_DACNF_ENA0_Msk (0x1UL << RADIO_DACNF_ENA0_Pos) /*!< Bit mask of ENA0 field. */
+#define RADIO_DACNF_ENA0_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA0_Enabled (1UL) /*!< Enabled */
+
+/* Register: RADIO_MODECNF0 */
+/* Description: Radio mode configuration register 0 */
+
+/* Bits 9..8 : Default TX value */
+#define RADIO_MODECNF0_DTX_Pos (8UL) /*!< Position of DTX field. */
+#define RADIO_MODECNF0_DTX_Msk (0x3UL << RADIO_MODECNF0_DTX_Pos) /*!< Bit mask of DTX field. */
+#define RADIO_MODECNF0_DTX_B1 (0UL) /*!< Transmit '1' */
+#define RADIO_MODECNF0_DTX_B0 (1UL) /*!< Transmit '0' */
+#define RADIO_MODECNF0_DTX_Center (2UL) /*!< Transmit center frequency */
+
+/* Bit 0 : Radio ramp-up time */
+#define RADIO_MODECNF0_RU_Pos (0UL) /*!< Position of RU field. */
+#define RADIO_MODECNF0_RU_Msk (0x1UL << RADIO_MODECNF0_RU_Pos) /*!< Bit mask of RU field. */
+#define RADIO_MODECNF0_RU_Default (0UL) /*!< Default ramp-up time (tRXEN), compatible with firmware written for nRF51 */
+#define RADIO_MODECNF0_RU_Fast (1UL) /*!< Fast ramp-up (tRXEN,FAST), see electrical specification for more information */
+
+/* Register: RADIO_SFD */
+/* Description: IEEE 802.15.4 start of frame delimiter */
+
+/* Bits 7..0 : IEEE 802.15.4 start of frame delimiter */
+#define RADIO_SFD_SFD_Pos (0UL) /*!< Position of SFD field. */
+#define RADIO_SFD_SFD_Msk (0xFFUL << RADIO_SFD_SFD_Pos) /*!< Bit mask of SFD field. */
+
+/* Register: RADIO_EDCNT */
+/* Description: IEEE 802.15.4 energy detect loop count */
+
+/* Bits 20..0 : IEEE 802.15.4 energy detect loop count */
+#define RADIO_EDCNT_EDCNT_Pos (0UL) /*!< Position of EDCNT field. */
+#define RADIO_EDCNT_EDCNT_Msk (0x1FFFFFUL << RADIO_EDCNT_EDCNT_Pos) /*!< Bit mask of EDCNT field. */
+
+/* Register: RADIO_EDSAMPLE */
+/* Description: IEEE 802.15.4 energy detect level */
+
+/* Bits 7..0 : IEEE 802.15.4 energy detect level */
+#define RADIO_EDSAMPLE_EDLVL_Pos (0UL) /*!< Position of EDLVL field. */
+#define RADIO_EDSAMPLE_EDLVL_Msk (0xFFUL << RADIO_EDSAMPLE_EDLVL_Pos) /*!< Bit mask of EDLVL field. */
+
+/* Register: RADIO_CCACTRL */
+/* Description: IEEE 802.15.4 clear channel assessment control */
+
+/* Bits 31..24 : Limit for occurances above CCACORRTHRES. When not equal to zero the corrolator based signal detect is enabled. */
+#define RADIO_CCACTRL_CCACORRCNT_Pos (24UL) /*!< Position of CCACORRCNT field. */
+#define RADIO_CCACTRL_CCACORRCNT_Msk (0xFFUL << RADIO_CCACTRL_CCACORRCNT_Pos) /*!< Bit mask of CCACORRCNT field. */
+
+/* Bits 23..16 : CCA correlator busy threshold. Only relevant to CarrierMode, CarrierAndEdMode and CarrierOrEdMode. */
+#define RADIO_CCACTRL_CCACORRTHRES_Pos (16UL) /*!< Position of CCACORRTHRES field. */
+#define RADIO_CCACTRL_CCACORRTHRES_Msk (0xFFUL << RADIO_CCACTRL_CCACORRTHRES_Pos) /*!< Bit mask of CCACORRTHRES field. */
+
+/* Bits 15..8 : CCA energy busy threshold. Used in all the CCA modes except CarrierMode. */
+#define RADIO_CCACTRL_CCAEDTHRES_Pos (8UL) /*!< Position of CCAEDTHRES field. */
+#define RADIO_CCACTRL_CCAEDTHRES_Msk (0xFFUL << RADIO_CCACTRL_CCAEDTHRES_Pos) /*!< Bit mask of CCAEDTHRES field. */
+
+/* Bits 2..0 : CCA mode of operation */
+#define RADIO_CCACTRL_CCAMODE_Pos (0UL) /*!< Position of CCAMODE field. */
+#define RADIO_CCACTRL_CCAMODE_Msk (0x7UL << RADIO_CCACTRL_CCAMODE_Pos) /*!< Bit mask of CCAMODE field. */
+#define RADIO_CCACTRL_CCAMODE_EdMode (0UL) /*!< Energy above threshold */
+#define RADIO_CCACTRL_CCAMODE_CarrierMode (1UL) /*!< Carrier seen */
+#define RADIO_CCACTRL_CCAMODE_CarrierAndEdMode (2UL) /*!< Energy above threshold AND carrier seen */
+#define RADIO_CCACTRL_CCAMODE_CarrierOrEdMode (3UL) /*!< Energy above threshold OR carrier seen */
+#define RADIO_CCACTRL_CCAMODE_EdModeTest1 (4UL) /*!< Energy above threshold test mode that will abort when first ED measurement over threshold is seen. No averaging. */
+
+/* Register: RADIO_POWER */
+/* Description: Peripheral power control */
+
+/* Bit 0 : Peripheral power control. The peripheral and its registers will be reset to its initial state by switching the peripheral off and then back on again. */
+#define RADIO_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define RADIO_POWER_POWER_Msk (0x1UL << RADIO_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define RADIO_POWER_POWER_Disabled (0UL) /*!< Peripheral is powered off */
+#define RADIO_POWER_POWER_Enabled (1UL) /*!< Peripheral is powered on */
+
+
+/* Peripheral: RNG */
+/* Description: Random Number Generator */
+
+/* Register: RNG_TASKS_START */
+/* Description: Task starting the random number generator */
+
+/* Bit 0 : */
+#define RNG_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define RNG_TASKS_START_TASKS_START_Msk (0x1UL << RNG_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: RNG_TASKS_STOP */
+/* Description: Task stopping the random number generator */
+
+/* Bit 0 : */
+#define RNG_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define RNG_TASKS_STOP_TASKS_STOP_Msk (0x1UL << RNG_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: RNG_EVENTS_VALRDY */
+/* Description: Event being generated for every new random number written to the VALUE register */
+
+/* Bit 0 : */
+#define RNG_EVENTS_VALRDY_EVENTS_VALRDY_Pos (0UL) /*!< Position of EVENTS_VALRDY field. */
+#define RNG_EVENTS_VALRDY_EVENTS_VALRDY_Msk (0x1UL << RNG_EVENTS_VALRDY_EVENTS_VALRDY_Pos) /*!< Bit mask of EVENTS_VALRDY field. */
+
+/* Register: RNG_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 0 : Shortcut between VALRDY event and STOP task */
+#define RNG_SHORTS_VALRDY_STOP_Pos (0UL) /*!< Position of VALRDY_STOP field. */
+#define RNG_SHORTS_VALRDY_STOP_Msk (0x1UL << RNG_SHORTS_VALRDY_STOP_Pos) /*!< Bit mask of VALRDY_STOP field. */
+#define RNG_SHORTS_VALRDY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define RNG_SHORTS_VALRDY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: RNG_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 0 : Write '1' to enable interrupt for VALRDY event */
+#define RNG_INTENSET_VALRDY_Pos (0UL) /*!< Position of VALRDY field. */
+#define RNG_INTENSET_VALRDY_Msk (0x1UL << RNG_INTENSET_VALRDY_Pos) /*!< Bit mask of VALRDY field. */
+#define RNG_INTENSET_VALRDY_Disabled (0UL) /*!< Read: Disabled */
+#define RNG_INTENSET_VALRDY_Enabled (1UL) /*!< Read: Enabled */
+#define RNG_INTENSET_VALRDY_Set (1UL) /*!< Enable */
+
+/* Register: RNG_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 0 : Write '1' to disable interrupt for VALRDY event */
+#define RNG_INTENCLR_VALRDY_Pos (0UL) /*!< Position of VALRDY field. */
+#define RNG_INTENCLR_VALRDY_Msk (0x1UL << RNG_INTENCLR_VALRDY_Pos) /*!< Bit mask of VALRDY field. */
+#define RNG_INTENCLR_VALRDY_Disabled (0UL) /*!< Read: Disabled */
+#define RNG_INTENCLR_VALRDY_Enabled (1UL) /*!< Read: Enabled */
+#define RNG_INTENCLR_VALRDY_Clear (1UL) /*!< Disable */
+
+/* Register: RNG_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 0 : Bias correction */
+#define RNG_CONFIG_DERCEN_Pos (0UL) /*!< Position of DERCEN field. */
+#define RNG_CONFIG_DERCEN_Msk (0x1UL << RNG_CONFIG_DERCEN_Pos) /*!< Bit mask of DERCEN field. */
+#define RNG_CONFIG_DERCEN_Disabled (0UL) /*!< Disabled */
+#define RNG_CONFIG_DERCEN_Enabled (1UL) /*!< Enabled */
+
+/* Register: RNG_VALUE */
+/* Description: Output random number */
+
+/* Bits 7..0 : Generated random number */
+#define RNG_VALUE_VALUE_Pos (0UL) /*!< Position of VALUE field. */
+#define RNG_VALUE_VALUE_Msk (0xFFUL << RNG_VALUE_VALUE_Pos) /*!< Bit mask of VALUE field. */
+
+
+/* Peripheral: RTC */
+/* Description: Real time counter 0 */
+
+/* Register: RTC_TASKS_START */
+/* Description: Start RTC COUNTER */
+
+/* Bit 0 : */
+#define RTC_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define RTC_TASKS_START_TASKS_START_Msk (0x1UL << RTC_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: RTC_TASKS_STOP */
+/* Description: Stop RTC COUNTER */
+
+/* Bit 0 : */
+#define RTC_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define RTC_TASKS_STOP_TASKS_STOP_Msk (0x1UL << RTC_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: RTC_TASKS_CLEAR */
+/* Description: Clear RTC COUNTER */
+
+/* Bit 0 : */
+#define RTC_TASKS_CLEAR_TASKS_CLEAR_Pos (0UL) /*!< Position of TASKS_CLEAR field. */
+#define RTC_TASKS_CLEAR_TASKS_CLEAR_Msk (0x1UL << RTC_TASKS_CLEAR_TASKS_CLEAR_Pos) /*!< Bit mask of TASKS_CLEAR field. */
+
+/* Register: RTC_TASKS_TRIGOVRFLW */
+/* Description: Set COUNTER to 0xFFFFF0 */
+
+/* Bit 0 : */
+#define RTC_TASKS_TRIGOVRFLW_TASKS_TRIGOVRFLW_Pos (0UL) /*!< Position of TASKS_TRIGOVRFLW field. */
+#define RTC_TASKS_TRIGOVRFLW_TASKS_TRIGOVRFLW_Msk (0x1UL << RTC_TASKS_TRIGOVRFLW_TASKS_TRIGOVRFLW_Pos) /*!< Bit mask of TASKS_TRIGOVRFLW field. */
+
+/* Register: RTC_EVENTS_TICK */
+/* Description: Event on COUNTER increment */
+
+/* Bit 0 : */
+#define RTC_EVENTS_TICK_EVENTS_TICK_Pos (0UL) /*!< Position of EVENTS_TICK field. */
+#define RTC_EVENTS_TICK_EVENTS_TICK_Msk (0x1UL << RTC_EVENTS_TICK_EVENTS_TICK_Pos) /*!< Bit mask of EVENTS_TICK field. */
+
+/* Register: RTC_EVENTS_OVRFLW */
+/* Description: Event on COUNTER overflow */
+
+/* Bit 0 : */
+#define RTC_EVENTS_OVRFLW_EVENTS_OVRFLW_Pos (0UL) /*!< Position of EVENTS_OVRFLW field. */
+#define RTC_EVENTS_OVRFLW_EVENTS_OVRFLW_Msk (0x1UL << RTC_EVENTS_OVRFLW_EVENTS_OVRFLW_Pos) /*!< Bit mask of EVENTS_OVRFLW field. */
+
+/* Register: RTC_EVENTS_COMPARE */
+/* Description: Description collection[n]: Compare event on CC[n] match */
+
+/* Bit 0 : */
+#define RTC_EVENTS_COMPARE_EVENTS_COMPARE_Pos (0UL) /*!< Position of EVENTS_COMPARE field. */
+#define RTC_EVENTS_COMPARE_EVENTS_COMPARE_Msk (0x1UL << RTC_EVENTS_COMPARE_EVENTS_COMPARE_Pos) /*!< Bit mask of EVENTS_COMPARE field. */
+
+/* Register: RTC_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 19 : Write '1' to enable interrupt for COMPARE[3] event */
+#define RTC_INTENSET_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_INTENSET_COMPARE3_Msk (0x1UL << RTC_INTENSET_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_INTENSET_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_COMPARE3_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to enable interrupt for COMPARE[2] event */
+#define RTC_INTENSET_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_INTENSET_COMPARE2_Msk (0x1UL << RTC_INTENSET_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_INTENSET_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_COMPARE2_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to enable interrupt for COMPARE[1] event */
+#define RTC_INTENSET_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_INTENSET_COMPARE1_Msk (0x1UL << RTC_INTENSET_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_INTENSET_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_COMPARE1_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to enable interrupt for COMPARE[0] event */
+#define RTC_INTENSET_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_INTENSET_COMPARE0_Msk (0x1UL << RTC_INTENSET_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_INTENSET_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_COMPARE0_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for OVRFLW event */
+#define RTC_INTENSET_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_INTENSET_OVRFLW_Msk (0x1UL << RTC_INTENSET_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_INTENSET_OVRFLW_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_OVRFLW_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_OVRFLW_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for TICK event */
+#define RTC_INTENSET_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_INTENSET_TICK_Msk (0x1UL << RTC_INTENSET_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_INTENSET_TICK_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_TICK_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_TICK_Set (1UL) /*!< Enable */
+
+/* Register: RTC_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 19 : Write '1' to disable interrupt for COMPARE[3] event */
+#define RTC_INTENCLR_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_INTENCLR_COMPARE3_Msk (0x1UL << RTC_INTENCLR_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_INTENCLR_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_COMPARE3_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to disable interrupt for COMPARE[2] event */
+#define RTC_INTENCLR_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_INTENCLR_COMPARE2_Msk (0x1UL << RTC_INTENCLR_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_INTENCLR_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_COMPARE2_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to disable interrupt for COMPARE[1] event */
+#define RTC_INTENCLR_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_INTENCLR_COMPARE1_Msk (0x1UL << RTC_INTENCLR_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_INTENCLR_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_COMPARE1_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to disable interrupt for COMPARE[0] event */
+#define RTC_INTENCLR_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_INTENCLR_COMPARE0_Msk (0x1UL << RTC_INTENCLR_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_INTENCLR_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_COMPARE0_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for OVRFLW event */
+#define RTC_INTENCLR_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_INTENCLR_OVRFLW_Msk (0x1UL << RTC_INTENCLR_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_INTENCLR_OVRFLW_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_OVRFLW_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_OVRFLW_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for TICK event */
+#define RTC_INTENCLR_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_INTENCLR_TICK_Msk (0x1UL << RTC_INTENCLR_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_INTENCLR_TICK_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_TICK_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_TICK_Clear (1UL) /*!< Disable */
+
+/* Register: RTC_EVTEN */
+/* Description: Enable or disable event routing */
+
+/* Bit 19 : Enable or disable event routing for COMPARE[3] event */
+#define RTC_EVTEN_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_EVTEN_COMPARE3_Msk (0x1UL << RTC_EVTEN_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_EVTEN_COMPARE3_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_COMPARE3_Enabled (1UL) /*!< Enable */
+
+/* Bit 18 : Enable or disable event routing for COMPARE[2] event */
+#define RTC_EVTEN_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_EVTEN_COMPARE2_Msk (0x1UL << RTC_EVTEN_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_EVTEN_COMPARE2_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_COMPARE2_Enabled (1UL) /*!< Enable */
+
+/* Bit 17 : Enable or disable event routing for COMPARE[1] event */
+#define RTC_EVTEN_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_EVTEN_COMPARE1_Msk (0x1UL << RTC_EVTEN_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_EVTEN_COMPARE1_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_COMPARE1_Enabled (1UL) /*!< Enable */
+
+/* Bit 16 : Enable or disable event routing for COMPARE[0] event */
+#define RTC_EVTEN_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_EVTEN_COMPARE0_Msk (0x1UL << RTC_EVTEN_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_EVTEN_COMPARE0_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_COMPARE0_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable event routing for OVRFLW event */
+#define RTC_EVTEN_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_EVTEN_OVRFLW_Msk (0x1UL << RTC_EVTEN_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_EVTEN_OVRFLW_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_OVRFLW_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable event routing for TICK event */
+#define RTC_EVTEN_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_EVTEN_TICK_Msk (0x1UL << RTC_EVTEN_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_EVTEN_TICK_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_TICK_Enabled (1UL) /*!< Enable */
+
+/* Register: RTC_EVTENSET */
+/* Description: Enable event routing */
+
+/* Bit 19 : Write '1' to enable event routing for COMPARE[3] event */
+#define RTC_EVTENSET_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_EVTENSET_COMPARE3_Msk (0x1UL << RTC_EVTENSET_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_EVTENSET_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_COMPARE3_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to enable event routing for COMPARE[2] event */
+#define RTC_EVTENSET_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_EVTENSET_COMPARE2_Msk (0x1UL << RTC_EVTENSET_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_EVTENSET_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_COMPARE2_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to enable event routing for COMPARE[1] event */
+#define RTC_EVTENSET_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_EVTENSET_COMPARE1_Msk (0x1UL << RTC_EVTENSET_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_EVTENSET_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_COMPARE1_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to enable event routing for COMPARE[0] event */
+#define RTC_EVTENSET_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_EVTENSET_COMPARE0_Msk (0x1UL << RTC_EVTENSET_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_EVTENSET_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_COMPARE0_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable event routing for OVRFLW event */
+#define RTC_EVTENSET_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_EVTENSET_OVRFLW_Msk (0x1UL << RTC_EVTENSET_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_EVTENSET_OVRFLW_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_OVRFLW_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_OVRFLW_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable event routing for TICK event */
+#define RTC_EVTENSET_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_EVTENSET_TICK_Msk (0x1UL << RTC_EVTENSET_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_EVTENSET_TICK_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_TICK_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_TICK_Set (1UL) /*!< Enable */
+
+/* Register: RTC_EVTENCLR */
+/* Description: Disable event routing */
+
+/* Bit 19 : Write '1' to disable event routing for COMPARE[3] event */
+#define RTC_EVTENCLR_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_EVTENCLR_COMPARE3_Msk (0x1UL << RTC_EVTENCLR_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_EVTENCLR_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_COMPARE3_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to disable event routing for COMPARE[2] event */
+#define RTC_EVTENCLR_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_EVTENCLR_COMPARE2_Msk (0x1UL << RTC_EVTENCLR_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_EVTENCLR_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_COMPARE2_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to disable event routing for COMPARE[1] event */
+#define RTC_EVTENCLR_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_EVTENCLR_COMPARE1_Msk (0x1UL << RTC_EVTENCLR_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_EVTENCLR_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_COMPARE1_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to disable event routing for COMPARE[0] event */
+#define RTC_EVTENCLR_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_EVTENCLR_COMPARE0_Msk (0x1UL << RTC_EVTENCLR_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_EVTENCLR_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_COMPARE0_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable event routing for OVRFLW event */
+#define RTC_EVTENCLR_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_EVTENCLR_OVRFLW_Msk (0x1UL << RTC_EVTENCLR_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_EVTENCLR_OVRFLW_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_OVRFLW_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_OVRFLW_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable event routing for TICK event */
+#define RTC_EVTENCLR_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_EVTENCLR_TICK_Msk (0x1UL << RTC_EVTENCLR_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_EVTENCLR_TICK_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_TICK_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_TICK_Clear (1UL) /*!< Disable */
+
+/* Register: RTC_COUNTER */
+/* Description: Current COUNTER value */
+
+/* Bits 23..0 : Counter value */
+#define RTC_COUNTER_COUNTER_Pos (0UL) /*!< Position of COUNTER field. */
+#define RTC_COUNTER_COUNTER_Msk (0xFFFFFFUL << RTC_COUNTER_COUNTER_Pos) /*!< Bit mask of COUNTER field. */
+
+/* Register: RTC_PRESCALER */
+/* Description: 12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must be written when RTC is stopped */
+
+/* Bits 11..0 : Prescaler value */
+#define RTC_PRESCALER_PRESCALER_Pos (0UL) /*!< Position of PRESCALER field. */
+#define RTC_PRESCALER_PRESCALER_Msk (0xFFFUL << RTC_PRESCALER_PRESCALER_Pos) /*!< Bit mask of PRESCALER field. */
+
+/* Register: RTC_CC */
+/* Description: Description collection[n]: Compare register n */
+
+/* Bits 23..0 : Compare value */
+#define RTC_CC_COMPARE_Pos (0UL) /*!< Position of COMPARE field. */
+#define RTC_CC_COMPARE_Msk (0xFFFFFFUL << RTC_CC_COMPARE_Pos) /*!< Bit mask of COMPARE field. */
+
+
+/* Peripheral: SAADC */
+/* Description: Successive approximation register (SAR) analog-to-digital converter */
+
+/* Register: SAADC_TASKS_START */
+/* Description: Starts the SAADC and prepares the result buffer in RAM */
+
+/* Bit 0 : */
+#define SAADC_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define SAADC_TASKS_START_TASKS_START_Msk (0x1UL << SAADC_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: SAADC_TASKS_SAMPLE */
+/* Description: Takes one SAADC sample */
+
+/* Bit 0 : */
+#define SAADC_TASKS_SAMPLE_TASKS_SAMPLE_Pos (0UL) /*!< Position of TASKS_SAMPLE field. */
+#define SAADC_TASKS_SAMPLE_TASKS_SAMPLE_Msk (0x1UL << SAADC_TASKS_SAMPLE_TASKS_SAMPLE_Pos) /*!< Bit mask of TASKS_SAMPLE field. */
+
+/* Register: SAADC_TASKS_STOP */
+/* Description: Stops the SAADC and terminates all on-going conversions */
+
+/* Bit 0 : */
+#define SAADC_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define SAADC_TASKS_STOP_TASKS_STOP_Msk (0x1UL << SAADC_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: SAADC_TASKS_CALIBRATEOFFSET */
+/* Description: Starts offset auto-calibration */
+
+/* Bit 0 : */
+#define SAADC_TASKS_CALIBRATEOFFSET_TASKS_CALIBRATEOFFSET_Pos (0UL) /*!< Position of TASKS_CALIBRATEOFFSET field. */
+#define SAADC_TASKS_CALIBRATEOFFSET_TASKS_CALIBRATEOFFSET_Msk (0x1UL << SAADC_TASKS_CALIBRATEOFFSET_TASKS_CALIBRATEOFFSET_Pos) /*!< Bit mask of TASKS_CALIBRATEOFFSET field. */
+
+/* Register: SAADC_EVENTS_STARTED */
+/* Description: The SAADC has started */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_STARTED_EVENTS_STARTED_Pos (0UL) /*!< Position of EVENTS_STARTED field. */
+#define SAADC_EVENTS_STARTED_EVENTS_STARTED_Msk (0x1UL << SAADC_EVENTS_STARTED_EVENTS_STARTED_Pos) /*!< Bit mask of EVENTS_STARTED field. */
+
+/* Register: SAADC_EVENTS_END */
+/* Description: The SAADC has filled up the result buffer */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_END_EVENTS_END_Pos (0UL) /*!< Position of EVENTS_END field. */
+#define SAADC_EVENTS_END_EVENTS_END_Msk (0x1UL << SAADC_EVENTS_END_EVENTS_END_Pos) /*!< Bit mask of EVENTS_END field. */
+
+/* Register: SAADC_EVENTS_DONE */
+/* Description: A conversion task has been completed. Depending on the configuration, multiple conversions might be needed for a result to be transferred to RAM. */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_DONE_EVENTS_DONE_Pos (0UL) /*!< Position of EVENTS_DONE field. */
+#define SAADC_EVENTS_DONE_EVENTS_DONE_Msk (0x1UL << SAADC_EVENTS_DONE_EVENTS_DONE_Pos) /*!< Bit mask of EVENTS_DONE field. */
+
+/* Register: SAADC_EVENTS_RESULTDONE */
+/* Description: Result ready for transfer to RAM */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_RESULTDONE_EVENTS_RESULTDONE_Pos (0UL) /*!< Position of EVENTS_RESULTDONE field. */
+#define SAADC_EVENTS_RESULTDONE_EVENTS_RESULTDONE_Msk (0x1UL << SAADC_EVENTS_RESULTDONE_EVENTS_RESULTDONE_Pos) /*!< Bit mask of EVENTS_RESULTDONE field. */
+
+/* Register: SAADC_EVENTS_CALIBRATEDONE */
+/* Description: Calibration is complete */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_CALIBRATEDONE_EVENTS_CALIBRATEDONE_Pos (0UL) /*!< Position of EVENTS_CALIBRATEDONE field. */
+#define SAADC_EVENTS_CALIBRATEDONE_EVENTS_CALIBRATEDONE_Msk (0x1UL << SAADC_EVENTS_CALIBRATEDONE_EVENTS_CALIBRATEDONE_Pos) /*!< Bit mask of EVENTS_CALIBRATEDONE field. */
+
+/* Register: SAADC_EVENTS_STOPPED */
+/* Description: The SAADC has stopped */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define SAADC_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << SAADC_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: SAADC_EVENTS_CH_LIMITH */
+/* Description: Description cluster[n]: Last result is equal or above CH[n].LIMIT.HIGH */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_CH_LIMITH_LIMITH_Pos (0UL) /*!< Position of LIMITH field. */
+#define SAADC_EVENTS_CH_LIMITH_LIMITH_Msk (0x1UL << SAADC_EVENTS_CH_LIMITH_LIMITH_Pos) /*!< Bit mask of LIMITH field. */
+
+/* Register: SAADC_EVENTS_CH_LIMITL */
+/* Description: Description cluster[n]: Last result is equal or below CH[n].LIMIT.LOW */
+
+/* Bit 0 : */
+#define SAADC_EVENTS_CH_LIMITL_LIMITL_Pos (0UL) /*!< Position of LIMITL field. */
+#define SAADC_EVENTS_CH_LIMITL_LIMITL_Msk (0x1UL << SAADC_EVENTS_CH_LIMITL_LIMITL_Pos) /*!< Bit mask of LIMITL field. */
+
+/* Register: SAADC_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 21 : Enable or disable interrupt for CH[7].LIMITL event */
+#define SAADC_INTEN_CH7LIMITL_Pos (21UL) /*!< Position of CH7LIMITL field. */
+#define SAADC_INTEN_CH7LIMITL_Msk (0x1UL << SAADC_INTEN_CH7LIMITL_Pos) /*!< Bit mask of CH7LIMITL field. */
+#define SAADC_INTEN_CH7LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH7LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for CH[7].LIMITH event */
+#define SAADC_INTEN_CH7LIMITH_Pos (20UL) /*!< Position of CH7LIMITH field. */
+#define SAADC_INTEN_CH7LIMITH_Msk (0x1UL << SAADC_INTEN_CH7LIMITH_Pos) /*!< Bit mask of CH7LIMITH field. */
+#define SAADC_INTEN_CH7LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH7LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for CH[6].LIMITL event */
+#define SAADC_INTEN_CH6LIMITL_Pos (19UL) /*!< Position of CH6LIMITL field. */
+#define SAADC_INTEN_CH6LIMITL_Msk (0x1UL << SAADC_INTEN_CH6LIMITL_Pos) /*!< Bit mask of CH6LIMITL field. */
+#define SAADC_INTEN_CH6LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH6LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 18 : Enable or disable interrupt for CH[6].LIMITH event */
+#define SAADC_INTEN_CH6LIMITH_Pos (18UL) /*!< Position of CH6LIMITH field. */
+#define SAADC_INTEN_CH6LIMITH_Msk (0x1UL << SAADC_INTEN_CH6LIMITH_Pos) /*!< Bit mask of CH6LIMITH field. */
+#define SAADC_INTEN_CH6LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH6LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 17 : Enable or disable interrupt for CH[5].LIMITL event */
+#define SAADC_INTEN_CH5LIMITL_Pos (17UL) /*!< Position of CH5LIMITL field. */
+#define SAADC_INTEN_CH5LIMITL_Msk (0x1UL << SAADC_INTEN_CH5LIMITL_Pos) /*!< Bit mask of CH5LIMITL field. */
+#define SAADC_INTEN_CH5LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH5LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 16 : Enable or disable interrupt for CH[5].LIMITH event */
+#define SAADC_INTEN_CH5LIMITH_Pos (16UL) /*!< Position of CH5LIMITH field. */
+#define SAADC_INTEN_CH5LIMITH_Msk (0x1UL << SAADC_INTEN_CH5LIMITH_Pos) /*!< Bit mask of CH5LIMITH field. */
+#define SAADC_INTEN_CH5LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH5LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 15 : Enable or disable interrupt for CH[4].LIMITL event */
+#define SAADC_INTEN_CH4LIMITL_Pos (15UL) /*!< Position of CH4LIMITL field. */
+#define SAADC_INTEN_CH4LIMITL_Msk (0x1UL << SAADC_INTEN_CH4LIMITL_Pos) /*!< Bit mask of CH4LIMITL field. */
+#define SAADC_INTEN_CH4LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH4LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 14 : Enable or disable interrupt for CH[4].LIMITH event */
+#define SAADC_INTEN_CH4LIMITH_Pos (14UL) /*!< Position of CH4LIMITH field. */
+#define SAADC_INTEN_CH4LIMITH_Msk (0x1UL << SAADC_INTEN_CH4LIMITH_Pos) /*!< Bit mask of CH4LIMITH field. */
+#define SAADC_INTEN_CH4LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH4LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 13 : Enable or disable interrupt for CH[3].LIMITL event */
+#define SAADC_INTEN_CH3LIMITL_Pos (13UL) /*!< Position of CH3LIMITL field. */
+#define SAADC_INTEN_CH3LIMITL_Msk (0x1UL << SAADC_INTEN_CH3LIMITL_Pos) /*!< Bit mask of CH3LIMITL field. */
+#define SAADC_INTEN_CH3LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH3LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 12 : Enable or disable interrupt for CH[3].LIMITH event */
+#define SAADC_INTEN_CH3LIMITH_Pos (12UL) /*!< Position of CH3LIMITH field. */
+#define SAADC_INTEN_CH3LIMITH_Msk (0x1UL << SAADC_INTEN_CH3LIMITH_Pos) /*!< Bit mask of CH3LIMITH field. */
+#define SAADC_INTEN_CH3LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH3LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 11 : Enable or disable interrupt for CH[2].LIMITL event */
+#define SAADC_INTEN_CH2LIMITL_Pos (11UL) /*!< Position of CH2LIMITL field. */
+#define SAADC_INTEN_CH2LIMITL_Msk (0x1UL << SAADC_INTEN_CH2LIMITL_Pos) /*!< Bit mask of CH2LIMITL field. */
+#define SAADC_INTEN_CH2LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH2LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 10 : Enable or disable interrupt for CH[2].LIMITH event */
+#define SAADC_INTEN_CH2LIMITH_Pos (10UL) /*!< Position of CH2LIMITH field. */
+#define SAADC_INTEN_CH2LIMITH_Msk (0x1UL << SAADC_INTEN_CH2LIMITH_Pos) /*!< Bit mask of CH2LIMITH field. */
+#define SAADC_INTEN_CH2LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH2LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for CH[1].LIMITL event */
+#define SAADC_INTEN_CH1LIMITL_Pos (9UL) /*!< Position of CH1LIMITL field. */
+#define SAADC_INTEN_CH1LIMITL_Msk (0x1UL << SAADC_INTEN_CH1LIMITL_Pos) /*!< Bit mask of CH1LIMITL field. */
+#define SAADC_INTEN_CH1LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH1LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 8 : Enable or disable interrupt for CH[1].LIMITH event */
+#define SAADC_INTEN_CH1LIMITH_Pos (8UL) /*!< Position of CH1LIMITH field. */
+#define SAADC_INTEN_CH1LIMITH_Msk (0x1UL << SAADC_INTEN_CH1LIMITH_Pos) /*!< Bit mask of CH1LIMITH field. */
+#define SAADC_INTEN_CH1LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH1LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for CH[0].LIMITL event */
+#define SAADC_INTEN_CH0LIMITL_Pos (7UL) /*!< Position of CH0LIMITL field. */
+#define SAADC_INTEN_CH0LIMITL_Msk (0x1UL << SAADC_INTEN_CH0LIMITL_Pos) /*!< Bit mask of CH0LIMITL field. */
+#define SAADC_INTEN_CH0LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH0LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for CH[0].LIMITH event */
+#define SAADC_INTEN_CH0LIMITH_Pos (6UL) /*!< Position of CH0LIMITH field. */
+#define SAADC_INTEN_CH0LIMITH_Msk (0x1UL << SAADC_INTEN_CH0LIMITH_Pos) /*!< Bit mask of CH0LIMITH field. */
+#define SAADC_INTEN_CH0LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH0LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for STOPPED event */
+#define SAADC_INTEN_STOPPED_Pos (5UL) /*!< Position of STOPPED field. */
+#define SAADC_INTEN_STOPPED_Msk (0x1UL << SAADC_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SAADC_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for CALIBRATEDONE event */
+#define SAADC_INTEN_CALIBRATEDONE_Pos (4UL) /*!< Position of CALIBRATEDONE field. */
+#define SAADC_INTEN_CALIBRATEDONE_Msk (0x1UL << SAADC_INTEN_CALIBRATEDONE_Pos) /*!< Bit mask of CALIBRATEDONE field. */
+#define SAADC_INTEN_CALIBRATEDONE_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CALIBRATEDONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for RESULTDONE event */
+#define SAADC_INTEN_RESULTDONE_Pos (3UL) /*!< Position of RESULTDONE field. */
+#define SAADC_INTEN_RESULTDONE_Msk (0x1UL << SAADC_INTEN_RESULTDONE_Pos) /*!< Bit mask of RESULTDONE field. */
+#define SAADC_INTEN_RESULTDONE_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_RESULTDONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for DONE event */
+#define SAADC_INTEN_DONE_Pos (2UL) /*!< Position of DONE field. */
+#define SAADC_INTEN_DONE_Msk (0x1UL << SAADC_INTEN_DONE_Pos) /*!< Bit mask of DONE field. */
+#define SAADC_INTEN_DONE_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_DONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for END event */
+#define SAADC_INTEN_END_Pos (1UL) /*!< Position of END field. */
+#define SAADC_INTEN_END_Msk (0x1UL << SAADC_INTEN_END_Pos) /*!< Bit mask of END field. */
+#define SAADC_INTEN_END_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_END_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for STARTED event */
+#define SAADC_INTEN_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define SAADC_INTEN_STARTED_Msk (0x1UL << SAADC_INTEN_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SAADC_INTEN_STARTED_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_STARTED_Enabled (1UL) /*!< Enable */
+
+/* Register: SAADC_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 21 : Write '1' to enable interrupt for CH[7].LIMITL event */
+#define SAADC_INTENSET_CH7LIMITL_Pos (21UL) /*!< Position of CH7LIMITL field. */
+#define SAADC_INTENSET_CH7LIMITL_Msk (0x1UL << SAADC_INTENSET_CH7LIMITL_Pos) /*!< Bit mask of CH7LIMITL field. */
+#define SAADC_INTENSET_CH7LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH7LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH7LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to enable interrupt for CH[7].LIMITH event */
+#define SAADC_INTENSET_CH7LIMITH_Pos (20UL) /*!< Position of CH7LIMITH field. */
+#define SAADC_INTENSET_CH7LIMITH_Msk (0x1UL << SAADC_INTENSET_CH7LIMITH_Pos) /*!< Bit mask of CH7LIMITH field. */
+#define SAADC_INTENSET_CH7LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH7LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH7LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to enable interrupt for CH[6].LIMITL event */
+#define SAADC_INTENSET_CH6LIMITL_Pos (19UL) /*!< Position of CH6LIMITL field. */
+#define SAADC_INTENSET_CH6LIMITL_Msk (0x1UL << SAADC_INTENSET_CH6LIMITL_Pos) /*!< Bit mask of CH6LIMITL field. */
+#define SAADC_INTENSET_CH6LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH6LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH6LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to enable interrupt for CH[6].LIMITH event */
+#define SAADC_INTENSET_CH6LIMITH_Pos (18UL) /*!< Position of CH6LIMITH field. */
+#define SAADC_INTENSET_CH6LIMITH_Msk (0x1UL << SAADC_INTENSET_CH6LIMITH_Pos) /*!< Bit mask of CH6LIMITH field. */
+#define SAADC_INTENSET_CH6LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH6LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH6LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to enable interrupt for CH[5].LIMITL event */
+#define SAADC_INTENSET_CH5LIMITL_Pos (17UL) /*!< Position of CH5LIMITL field. */
+#define SAADC_INTENSET_CH5LIMITL_Msk (0x1UL << SAADC_INTENSET_CH5LIMITL_Pos) /*!< Bit mask of CH5LIMITL field. */
+#define SAADC_INTENSET_CH5LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH5LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH5LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to enable interrupt for CH[5].LIMITH event */
+#define SAADC_INTENSET_CH5LIMITH_Pos (16UL) /*!< Position of CH5LIMITH field. */
+#define SAADC_INTENSET_CH5LIMITH_Msk (0x1UL << SAADC_INTENSET_CH5LIMITH_Pos) /*!< Bit mask of CH5LIMITH field. */
+#define SAADC_INTENSET_CH5LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH5LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH5LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 15 : Write '1' to enable interrupt for CH[4].LIMITL event */
+#define SAADC_INTENSET_CH4LIMITL_Pos (15UL) /*!< Position of CH4LIMITL field. */
+#define SAADC_INTENSET_CH4LIMITL_Msk (0x1UL << SAADC_INTENSET_CH4LIMITL_Pos) /*!< Bit mask of CH4LIMITL field. */
+#define SAADC_INTENSET_CH4LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH4LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH4LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 14 : Write '1' to enable interrupt for CH[4].LIMITH event */
+#define SAADC_INTENSET_CH4LIMITH_Pos (14UL) /*!< Position of CH4LIMITH field. */
+#define SAADC_INTENSET_CH4LIMITH_Msk (0x1UL << SAADC_INTENSET_CH4LIMITH_Pos) /*!< Bit mask of CH4LIMITH field. */
+#define SAADC_INTENSET_CH4LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH4LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH4LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 13 : Write '1' to enable interrupt for CH[3].LIMITL event */
+#define SAADC_INTENSET_CH3LIMITL_Pos (13UL) /*!< Position of CH3LIMITL field. */
+#define SAADC_INTENSET_CH3LIMITL_Msk (0x1UL << SAADC_INTENSET_CH3LIMITL_Pos) /*!< Bit mask of CH3LIMITL field. */
+#define SAADC_INTENSET_CH3LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH3LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH3LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 12 : Write '1' to enable interrupt for CH[3].LIMITH event */
+#define SAADC_INTENSET_CH3LIMITH_Pos (12UL) /*!< Position of CH3LIMITH field. */
+#define SAADC_INTENSET_CH3LIMITH_Msk (0x1UL << SAADC_INTENSET_CH3LIMITH_Pos) /*!< Bit mask of CH3LIMITH field. */
+#define SAADC_INTENSET_CH3LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH3LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH3LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 11 : Write '1' to enable interrupt for CH[2].LIMITL event */
+#define SAADC_INTENSET_CH2LIMITL_Pos (11UL) /*!< Position of CH2LIMITL field. */
+#define SAADC_INTENSET_CH2LIMITL_Msk (0x1UL << SAADC_INTENSET_CH2LIMITL_Pos) /*!< Bit mask of CH2LIMITL field. */
+#define SAADC_INTENSET_CH2LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH2LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH2LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to enable interrupt for CH[2].LIMITH event */
+#define SAADC_INTENSET_CH2LIMITH_Pos (10UL) /*!< Position of CH2LIMITH field. */
+#define SAADC_INTENSET_CH2LIMITH_Msk (0x1UL << SAADC_INTENSET_CH2LIMITH_Pos) /*!< Bit mask of CH2LIMITH field. */
+#define SAADC_INTENSET_CH2LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH2LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH2LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to enable interrupt for CH[1].LIMITL event */
+#define SAADC_INTENSET_CH1LIMITL_Pos (9UL) /*!< Position of CH1LIMITL field. */
+#define SAADC_INTENSET_CH1LIMITL_Msk (0x1UL << SAADC_INTENSET_CH1LIMITL_Pos) /*!< Bit mask of CH1LIMITL field. */
+#define SAADC_INTENSET_CH1LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH1LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH1LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to enable interrupt for CH[1].LIMITH event */
+#define SAADC_INTENSET_CH1LIMITH_Pos (8UL) /*!< Position of CH1LIMITH field. */
+#define SAADC_INTENSET_CH1LIMITH_Msk (0x1UL << SAADC_INTENSET_CH1LIMITH_Pos) /*!< Bit mask of CH1LIMITH field. */
+#define SAADC_INTENSET_CH1LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH1LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH1LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to enable interrupt for CH[0].LIMITL event */
+#define SAADC_INTENSET_CH0LIMITL_Pos (7UL) /*!< Position of CH0LIMITL field. */
+#define SAADC_INTENSET_CH0LIMITL_Msk (0x1UL << SAADC_INTENSET_CH0LIMITL_Pos) /*!< Bit mask of CH0LIMITL field. */
+#define SAADC_INTENSET_CH0LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH0LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH0LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to enable interrupt for CH[0].LIMITH event */
+#define SAADC_INTENSET_CH0LIMITH_Pos (6UL) /*!< Position of CH0LIMITH field. */
+#define SAADC_INTENSET_CH0LIMITH_Msk (0x1UL << SAADC_INTENSET_CH0LIMITH_Pos) /*!< Bit mask of CH0LIMITH field. */
+#define SAADC_INTENSET_CH0LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH0LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH0LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to enable interrupt for STOPPED event */
+#define SAADC_INTENSET_STOPPED_Pos (5UL) /*!< Position of STOPPED field. */
+#define SAADC_INTENSET_STOPPED_Msk (0x1UL << SAADC_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SAADC_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable interrupt for CALIBRATEDONE event */
+#define SAADC_INTENSET_CALIBRATEDONE_Pos (4UL) /*!< Position of CALIBRATEDONE field. */
+#define SAADC_INTENSET_CALIBRATEDONE_Msk (0x1UL << SAADC_INTENSET_CALIBRATEDONE_Pos) /*!< Bit mask of CALIBRATEDONE field. */
+#define SAADC_INTENSET_CALIBRATEDONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CALIBRATEDONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CALIBRATEDONE_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to enable interrupt for RESULTDONE event */
+#define SAADC_INTENSET_RESULTDONE_Pos (3UL) /*!< Position of RESULTDONE field. */
+#define SAADC_INTENSET_RESULTDONE_Msk (0x1UL << SAADC_INTENSET_RESULTDONE_Pos) /*!< Bit mask of RESULTDONE field. */
+#define SAADC_INTENSET_RESULTDONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_RESULTDONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_RESULTDONE_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for DONE event */
+#define SAADC_INTENSET_DONE_Pos (2UL) /*!< Position of DONE field. */
+#define SAADC_INTENSET_DONE_Msk (0x1UL << SAADC_INTENSET_DONE_Pos) /*!< Bit mask of DONE field. */
+#define SAADC_INTENSET_DONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_DONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_DONE_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for END event */
+#define SAADC_INTENSET_END_Pos (1UL) /*!< Position of END field. */
+#define SAADC_INTENSET_END_Msk (0x1UL << SAADC_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define SAADC_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for STARTED event */
+#define SAADC_INTENSET_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define SAADC_INTENSET_STARTED_Msk (0x1UL << SAADC_INTENSET_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SAADC_INTENSET_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_STARTED_Set (1UL) /*!< Enable */
+
+/* Register: SAADC_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 21 : Write '1' to disable interrupt for CH[7].LIMITL event */
+#define SAADC_INTENCLR_CH7LIMITL_Pos (21UL) /*!< Position of CH7LIMITL field. */
+#define SAADC_INTENCLR_CH7LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH7LIMITL_Pos) /*!< Bit mask of CH7LIMITL field. */
+#define SAADC_INTENCLR_CH7LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH7LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH7LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to disable interrupt for CH[7].LIMITH event */
+#define SAADC_INTENCLR_CH7LIMITH_Pos (20UL) /*!< Position of CH7LIMITH field. */
+#define SAADC_INTENCLR_CH7LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH7LIMITH_Pos) /*!< Bit mask of CH7LIMITH field. */
+#define SAADC_INTENCLR_CH7LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH7LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH7LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to disable interrupt for CH[6].LIMITL event */
+#define SAADC_INTENCLR_CH6LIMITL_Pos (19UL) /*!< Position of CH6LIMITL field. */
+#define SAADC_INTENCLR_CH6LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH6LIMITL_Pos) /*!< Bit mask of CH6LIMITL field. */
+#define SAADC_INTENCLR_CH6LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH6LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH6LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to disable interrupt for CH[6].LIMITH event */
+#define SAADC_INTENCLR_CH6LIMITH_Pos (18UL) /*!< Position of CH6LIMITH field. */
+#define SAADC_INTENCLR_CH6LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH6LIMITH_Pos) /*!< Bit mask of CH6LIMITH field. */
+#define SAADC_INTENCLR_CH6LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH6LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH6LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to disable interrupt for CH[5].LIMITL event */
+#define SAADC_INTENCLR_CH5LIMITL_Pos (17UL) /*!< Position of CH5LIMITL field. */
+#define SAADC_INTENCLR_CH5LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH5LIMITL_Pos) /*!< Bit mask of CH5LIMITL field. */
+#define SAADC_INTENCLR_CH5LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH5LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH5LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to disable interrupt for CH[5].LIMITH event */
+#define SAADC_INTENCLR_CH5LIMITH_Pos (16UL) /*!< Position of CH5LIMITH field. */
+#define SAADC_INTENCLR_CH5LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH5LIMITH_Pos) /*!< Bit mask of CH5LIMITH field. */
+#define SAADC_INTENCLR_CH5LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH5LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH5LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 15 : Write '1' to disable interrupt for CH[4].LIMITL event */
+#define SAADC_INTENCLR_CH4LIMITL_Pos (15UL) /*!< Position of CH4LIMITL field. */
+#define SAADC_INTENCLR_CH4LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH4LIMITL_Pos) /*!< Bit mask of CH4LIMITL field. */
+#define SAADC_INTENCLR_CH4LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH4LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH4LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 14 : Write '1' to disable interrupt for CH[4].LIMITH event */
+#define SAADC_INTENCLR_CH4LIMITH_Pos (14UL) /*!< Position of CH4LIMITH field. */
+#define SAADC_INTENCLR_CH4LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH4LIMITH_Pos) /*!< Bit mask of CH4LIMITH field. */
+#define SAADC_INTENCLR_CH4LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH4LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH4LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 13 : Write '1' to disable interrupt for CH[3].LIMITL event */
+#define SAADC_INTENCLR_CH3LIMITL_Pos (13UL) /*!< Position of CH3LIMITL field. */
+#define SAADC_INTENCLR_CH3LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH3LIMITL_Pos) /*!< Bit mask of CH3LIMITL field. */
+#define SAADC_INTENCLR_CH3LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH3LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH3LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 12 : Write '1' to disable interrupt for CH[3].LIMITH event */
+#define SAADC_INTENCLR_CH3LIMITH_Pos (12UL) /*!< Position of CH3LIMITH field. */
+#define SAADC_INTENCLR_CH3LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH3LIMITH_Pos) /*!< Bit mask of CH3LIMITH field. */
+#define SAADC_INTENCLR_CH3LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH3LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH3LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 11 : Write '1' to disable interrupt for CH[2].LIMITL event */
+#define SAADC_INTENCLR_CH2LIMITL_Pos (11UL) /*!< Position of CH2LIMITL field. */
+#define SAADC_INTENCLR_CH2LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH2LIMITL_Pos) /*!< Bit mask of CH2LIMITL field. */
+#define SAADC_INTENCLR_CH2LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH2LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH2LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to disable interrupt for CH[2].LIMITH event */
+#define SAADC_INTENCLR_CH2LIMITH_Pos (10UL) /*!< Position of CH2LIMITH field. */
+#define SAADC_INTENCLR_CH2LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH2LIMITH_Pos) /*!< Bit mask of CH2LIMITH field. */
+#define SAADC_INTENCLR_CH2LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH2LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH2LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to disable interrupt for CH[1].LIMITL event */
+#define SAADC_INTENCLR_CH1LIMITL_Pos (9UL) /*!< Position of CH1LIMITL field. */
+#define SAADC_INTENCLR_CH1LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH1LIMITL_Pos) /*!< Bit mask of CH1LIMITL field. */
+#define SAADC_INTENCLR_CH1LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH1LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH1LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to disable interrupt for CH[1].LIMITH event */
+#define SAADC_INTENCLR_CH1LIMITH_Pos (8UL) /*!< Position of CH1LIMITH field. */
+#define SAADC_INTENCLR_CH1LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH1LIMITH_Pos) /*!< Bit mask of CH1LIMITH field. */
+#define SAADC_INTENCLR_CH1LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH1LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH1LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to disable interrupt for CH[0].LIMITL event */
+#define SAADC_INTENCLR_CH0LIMITL_Pos (7UL) /*!< Position of CH0LIMITL field. */
+#define SAADC_INTENCLR_CH0LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH0LIMITL_Pos) /*!< Bit mask of CH0LIMITL field. */
+#define SAADC_INTENCLR_CH0LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH0LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH0LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to disable interrupt for CH[0].LIMITH event */
+#define SAADC_INTENCLR_CH0LIMITH_Pos (6UL) /*!< Position of CH0LIMITH field. */
+#define SAADC_INTENCLR_CH0LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH0LIMITH_Pos) /*!< Bit mask of CH0LIMITH field. */
+#define SAADC_INTENCLR_CH0LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH0LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH0LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to disable interrupt for STOPPED event */
+#define SAADC_INTENCLR_STOPPED_Pos (5UL) /*!< Position of STOPPED field. */
+#define SAADC_INTENCLR_STOPPED_Msk (0x1UL << SAADC_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SAADC_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable interrupt for CALIBRATEDONE event */
+#define SAADC_INTENCLR_CALIBRATEDONE_Pos (4UL) /*!< Position of CALIBRATEDONE field. */
+#define SAADC_INTENCLR_CALIBRATEDONE_Msk (0x1UL << SAADC_INTENCLR_CALIBRATEDONE_Pos) /*!< Bit mask of CALIBRATEDONE field. */
+#define SAADC_INTENCLR_CALIBRATEDONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CALIBRATEDONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CALIBRATEDONE_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to disable interrupt for RESULTDONE event */
+#define SAADC_INTENCLR_RESULTDONE_Pos (3UL) /*!< Position of RESULTDONE field. */
+#define SAADC_INTENCLR_RESULTDONE_Msk (0x1UL << SAADC_INTENCLR_RESULTDONE_Pos) /*!< Bit mask of RESULTDONE field. */
+#define SAADC_INTENCLR_RESULTDONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_RESULTDONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_RESULTDONE_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for DONE event */
+#define SAADC_INTENCLR_DONE_Pos (2UL) /*!< Position of DONE field. */
+#define SAADC_INTENCLR_DONE_Msk (0x1UL << SAADC_INTENCLR_DONE_Pos) /*!< Bit mask of DONE field. */
+#define SAADC_INTENCLR_DONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_DONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_DONE_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for END event */
+#define SAADC_INTENCLR_END_Pos (1UL) /*!< Position of END field. */
+#define SAADC_INTENCLR_END_Msk (0x1UL << SAADC_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define SAADC_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for STARTED event */
+#define SAADC_INTENCLR_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define SAADC_INTENCLR_STARTED_Msk (0x1UL << SAADC_INTENCLR_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SAADC_INTENCLR_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_STARTED_Clear (1UL) /*!< Disable */
+
+/* Register: SAADC_STATUS */
+/* Description: Status */
+
+/* Bit 0 : Status */
+#define SAADC_STATUS_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define SAADC_STATUS_STATUS_Msk (0x1UL << SAADC_STATUS_STATUS_Pos) /*!< Bit mask of STATUS field. */
+#define SAADC_STATUS_STATUS_Ready (0UL) /*!< SAADC is ready. No on-going conversions. */
+#define SAADC_STATUS_STATUS_Busy (1UL) /*!< SAADC is busy. Conversion in progress. */
+
+/* Register: SAADC_ENABLE */
+/* Description: Enable or disable SAADC */
+
+/* Bit 0 : Enable or disable SAADC */
+#define SAADC_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SAADC_ENABLE_ENABLE_Msk (0x1UL << SAADC_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SAADC_ENABLE_ENABLE_Disabled (0UL) /*!< Disable SAADC */
+#define SAADC_ENABLE_ENABLE_Enabled (1UL) /*!< Enable SAADC */
+
+/* Register: SAADC_CH_PSELP */
+/* Description: Description cluster[n]: Input positive pin selection for CH[n] */
+
+/* Bits 4..0 : Analog positive input channel */
+#define SAADC_CH_PSELP_PSELP_Pos (0UL) /*!< Position of PSELP field. */
+#define SAADC_CH_PSELP_PSELP_Msk (0x1FUL << SAADC_CH_PSELP_PSELP_Pos) /*!< Bit mask of PSELP field. */
+#define SAADC_CH_PSELP_PSELP_NC (0UL) /*!< Not connected */
+#define SAADC_CH_PSELP_PSELP_AnalogInput0 (1UL) /*!< AIN0 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput1 (2UL) /*!< AIN1 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput2 (3UL) /*!< AIN2 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput3 (4UL) /*!< AIN3 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput4 (5UL) /*!< AIN4 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput5 (6UL) /*!< AIN5 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput6 (7UL) /*!< AIN6 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput7 (8UL) /*!< AIN7 */
+#define SAADC_CH_PSELP_PSELP_VDD (9UL) /*!< VDD */
+#define SAADC_CH_PSELP_PSELP_VDDHDIV5 (0x0DUL) /*!< VDDH/5 */
+
+/* Register: SAADC_CH_PSELN */
+/* Description: Description cluster[n]: Input negative pin selection for CH[n] */
+
+/* Bits 4..0 : Analog negative input, enables differential channel */
+#define SAADC_CH_PSELN_PSELN_Pos (0UL) /*!< Position of PSELN field. */
+#define SAADC_CH_PSELN_PSELN_Msk (0x1FUL << SAADC_CH_PSELN_PSELN_Pos) /*!< Bit mask of PSELN field. */
+#define SAADC_CH_PSELN_PSELN_NC (0UL) /*!< Not connected */
+#define SAADC_CH_PSELN_PSELN_AnalogInput0 (1UL) /*!< AIN0 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput1 (2UL) /*!< AIN1 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput2 (3UL) /*!< AIN2 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput3 (4UL) /*!< AIN3 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput4 (5UL) /*!< AIN4 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput5 (6UL) /*!< AIN5 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput6 (7UL) /*!< AIN6 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput7 (8UL) /*!< AIN7 */
+#define SAADC_CH_PSELN_PSELN_VDD (9UL) /*!< VDD */
+#define SAADC_CH_PSELN_PSELN_VDDHDIV5 (0x0DUL) /*!< VDDH/5 */
+
+/* Register: SAADC_CH_CONFIG */
+/* Description: Description cluster[n]: Input configuration for CH[n] */
+
+/* Bit 24 : Enable burst mode */
+#define SAADC_CH_CONFIG_BURST_Pos (24UL) /*!< Position of BURST field. */
+#define SAADC_CH_CONFIG_BURST_Msk (0x1UL << SAADC_CH_CONFIG_BURST_Pos) /*!< Bit mask of BURST field. */
+#define SAADC_CH_CONFIG_BURST_Disabled (0UL) /*!< Burst mode is disabled (normal operation) */
+#define SAADC_CH_CONFIG_BURST_Enabled (1UL) /*!< Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM. */
+
+/* Bit 20 : Enable differential mode */
+#define SAADC_CH_CONFIG_MODE_Pos (20UL) /*!< Position of MODE field. */
+#define SAADC_CH_CONFIG_MODE_Msk (0x1UL << SAADC_CH_CONFIG_MODE_Pos) /*!< Bit mask of MODE field. */
+#define SAADC_CH_CONFIG_MODE_SE (0UL) /*!< Single-ended, PSELN will be ignored, negative input to SAADC shorted to GND */
+#define SAADC_CH_CONFIG_MODE_Diff (1UL) /*!< Differential */
+
+/* Bits 18..16 : Acquisition time, the time the SAADC uses to sample the input voltage */
+#define SAADC_CH_CONFIG_TACQ_Pos (16UL) /*!< Position of TACQ field. */
+#define SAADC_CH_CONFIG_TACQ_Msk (0x7UL << SAADC_CH_CONFIG_TACQ_Pos) /*!< Bit mask of TACQ field. */
+#define SAADC_CH_CONFIG_TACQ_3us (0UL) /*!< 3 us */
+#define SAADC_CH_CONFIG_TACQ_5us (1UL) /*!< 5 us */
+#define SAADC_CH_CONFIG_TACQ_10us (2UL) /*!< 10 us */
+#define SAADC_CH_CONFIG_TACQ_15us (3UL) /*!< 15 us */
+#define SAADC_CH_CONFIG_TACQ_20us (4UL) /*!< 20 us */
+#define SAADC_CH_CONFIG_TACQ_40us (5UL) /*!< 40 us */
+
+/* Bit 12 : Reference control */
+#define SAADC_CH_CONFIG_REFSEL_Pos (12UL) /*!< Position of REFSEL field. */
+#define SAADC_CH_CONFIG_REFSEL_Msk (0x1UL << SAADC_CH_CONFIG_REFSEL_Pos) /*!< Bit mask of REFSEL field. */
+#define SAADC_CH_CONFIG_REFSEL_Internal (0UL) /*!< Internal reference (0.6 V) */
+#define SAADC_CH_CONFIG_REFSEL_VDD1_4 (1UL) /*!< VDD/4 as reference */
+
+/* Bits 10..8 : Gain control */
+#define SAADC_CH_CONFIG_GAIN_Pos (8UL) /*!< Position of GAIN field. */
+#define SAADC_CH_CONFIG_GAIN_Msk (0x7UL << SAADC_CH_CONFIG_GAIN_Pos) /*!< Bit mask of GAIN field. */
+#define SAADC_CH_CONFIG_GAIN_Gain1_6 (0UL) /*!< 1/6 */
+#define SAADC_CH_CONFIG_GAIN_Gain1_5 (1UL) /*!< 1/5 */
+#define SAADC_CH_CONFIG_GAIN_Gain1_4 (2UL) /*!< 1/4 */
+#define SAADC_CH_CONFIG_GAIN_Gain1_3 (3UL) /*!< 1/3 */
+#define SAADC_CH_CONFIG_GAIN_Gain1_2 (4UL) /*!< 1/2 */
+#define SAADC_CH_CONFIG_GAIN_Gain1 (5UL) /*!< 1 */
+#define SAADC_CH_CONFIG_GAIN_Gain2 (6UL) /*!< 2 */
+#define SAADC_CH_CONFIG_GAIN_Gain4 (7UL) /*!< 4 */
+
+/* Bits 5..4 : Negative channel resistor control */
+#define SAADC_CH_CONFIG_RESN_Pos (4UL) /*!< Position of RESN field. */
+#define SAADC_CH_CONFIG_RESN_Msk (0x3UL << SAADC_CH_CONFIG_RESN_Pos) /*!< Bit mask of RESN field. */
+#define SAADC_CH_CONFIG_RESN_Bypass (0UL) /*!< Bypass resistor ladder */
+#define SAADC_CH_CONFIG_RESN_Pulldown (1UL) /*!< Pull-down to GND */
+#define SAADC_CH_CONFIG_RESN_Pullup (2UL) /*!< Pull-up to VDD */
+#define SAADC_CH_CONFIG_RESN_VDD1_2 (3UL) /*!< Set input at VDD/2 */
+
+/* Bits 1..0 : Positive channel resistor control */
+#define SAADC_CH_CONFIG_RESP_Pos (0UL) /*!< Position of RESP field. */
+#define SAADC_CH_CONFIG_RESP_Msk (0x3UL << SAADC_CH_CONFIG_RESP_Pos) /*!< Bit mask of RESP field. */
+#define SAADC_CH_CONFIG_RESP_Bypass (0UL) /*!< Bypass resistor ladder */
+#define SAADC_CH_CONFIG_RESP_Pulldown (1UL) /*!< Pull-down to GND */
+#define SAADC_CH_CONFIG_RESP_Pullup (2UL) /*!< Pull-up to VDD */
+#define SAADC_CH_CONFIG_RESP_VDD1_2 (3UL) /*!< Set input at VDD/2 */
+
+/* Register: SAADC_CH_LIMIT */
+/* Description: Description cluster[n]: High/low limits for event monitoring of a channel */
+
+/* Bits 31..16 : High level limit */
+#define SAADC_CH_LIMIT_HIGH_Pos (16UL) /*!< Position of HIGH field. */
+#define SAADC_CH_LIMIT_HIGH_Msk (0xFFFFUL << SAADC_CH_LIMIT_HIGH_Pos) /*!< Bit mask of HIGH field. */
+
+/* Bits 15..0 : Low level limit */
+#define SAADC_CH_LIMIT_LOW_Pos (0UL) /*!< Position of LOW field. */
+#define SAADC_CH_LIMIT_LOW_Msk (0xFFFFUL << SAADC_CH_LIMIT_LOW_Pos) /*!< Bit mask of LOW field. */
+
+/* Register: SAADC_RESOLUTION */
+/* Description: Resolution configuration */
+
+/* Bits 2..0 : Set the resolution */
+#define SAADC_RESOLUTION_VAL_Pos (0UL) /*!< Position of VAL field. */
+#define SAADC_RESOLUTION_VAL_Msk (0x7UL << SAADC_RESOLUTION_VAL_Pos) /*!< Bit mask of VAL field. */
+#define SAADC_RESOLUTION_VAL_8bit (0UL) /*!< 8 bits */
+#define SAADC_RESOLUTION_VAL_10bit (1UL) /*!< 10 bits */
+#define SAADC_RESOLUTION_VAL_12bit (2UL) /*!< 12 bits */
+#define SAADC_RESOLUTION_VAL_14bit (3UL) /*!< 14 bits */
+
+/* Register: SAADC_OVERSAMPLE */
+/* Description: Oversampling configuration. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used. */
+
+/* Bits 3..0 : Oversample control */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Pos (0UL) /*!< Position of OVERSAMPLE field. */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Msk (0xFUL << SAADC_OVERSAMPLE_OVERSAMPLE_Pos) /*!< Bit mask of OVERSAMPLE field. */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Bypass (0UL) /*!< Bypass oversampling */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over2x (1UL) /*!< Oversample 2x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over4x (2UL) /*!< Oversample 4x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over8x (3UL) /*!< Oversample 8x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over16x (4UL) /*!< Oversample 16x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over32x (5UL) /*!< Oversample 32x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over64x (6UL) /*!< Oversample 64x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over128x (7UL) /*!< Oversample 128x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over256x (8UL) /*!< Oversample 256x */
+
+/* Register: SAADC_SAMPLERATE */
+/* Description: Controls normal or continuous sample rate */
+
+/* Bit 12 : Select mode for sample rate control */
+#define SAADC_SAMPLERATE_MODE_Pos (12UL) /*!< Position of MODE field. */
+#define SAADC_SAMPLERATE_MODE_Msk (0x1UL << SAADC_SAMPLERATE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define SAADC_SAMPLERATE_MODE_Task (0UL) /*!< Rate is controlled from SAMPLE task */
+#define SAADC_SAMPLERATE_MODE_Timers (1UL) /*!< Rate is controlled from local timer (use CC to control the rate) */
+
+/* Bits 10..0 : Capture and compare value. Sample rate is 16 MHz/CC */
+#define SAADC_SAMPLERATE_CC_Pos (0UL) /*!< Position of CC field. */
+#define SAADC_SAMPLERATE_CC_Msk (0x7FFUL << SAADC_SAMPLERATE_CC_Pos) /*!< Bit mask of CC field. */
+
+/* Register: SAADC_RESULT_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define SAADC_RESULT_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SAADC_RESULT_PTR_PTR_Msk (0xFFFFFFFFUL << SAADC_RESULT_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SAADC_RESULT_MAXCNT */
+/* Description: Maximum number of 16-bit samples to be written to output RAM buffer */
+
+/* Bits 14..0 : Maximum number of 16-bit samples to be written to output RAM buffer */
+#define SAADC_RESULT_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SAADC_RESULT_MAXCNT_MAXCNT_Msk (0x7FFFUL << SAADC_RESULT_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SAADC_RESULT_AMOUNT */
+/* Description: Number of 16-bit samples written to output RAM buffer since the previous START task */
+
+/* Bits 14..0 : Number of 16-bit samples written to output RAM buffer since the previous START task. This register can be read after an END or STOPPED event. */
+#define SAADC_RESULT_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SAADC_RESULT_AMOUNT_AMOUNT_Msk (0x7FFFUL << SAADC_RESULT_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+
+/* Peripheral: SPI */
+/* Description: Serial Peripheral Interface 0 */
+
+/* Register: SPI_EVENTS_READY */
+/* Description: TXD byte sent and RXD byte received */
+
+/* Bit 0 : */
+#define SPI_EVENTS_READY_EVENTS_READY_Pos (0UL) /*!< Position of EVENTS_READY field. */
+#define SPI_EVENTS_READY_EVENTS_READY_Msk (0x1UL << SPI_EVENTS_READY_EVENTS_READY_Pos) /*!< Bit mask of EVENTS_READY field. */
+
+/* Register: SPI_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 2 : Write '1' to enable interrupt for READY event */
+#define SPI_INTENSET_READY_Pos (2UL) /*!< Position of READY field. */
+#define SPI_INTENSET_READY_Msk (0x1UL << SPI_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define SPI_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define SPI_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define SPI_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: SPI_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 2 : Write '1' to disable interrupt for READY event */
+#define SPI_INTENCLR_READY_Pos (2UL) /*!< Position of READY field. */
+#define SPI_INTENCLR_READY_Msk (0x1UL << SPI_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define SPI_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define SPI_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define SPI_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: SPI_ENABLE */
+/* Description: Enable SPI */
+
+/* Bits 3..0 : Enable or disable SPI */
+#define SPI_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SPI_ENABLE_ENABLE_Msk (0xFUL << SPI_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SPI_ENABLE_ENABLE_Disabled (0UL) /*!< Disable SPI */
+#define SPI_ENABLE_ENABLE_Enabled (1UL) /*!< Enable SPI */
+
+/* Register: SPI_PSEL_SCK */
+/* Description: Pin select for SCK */
+
+/* Bit 31 : Connection */
+#define SPI_PSEL_SCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPI_PSEL_SCK_CONNECT_Msk (0x1UL << SPI_PSEL_SCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPI_PSEL_SCK_CONNECT_Connected (0UL) /*!< Connect */
+#define SPI_PSEL_SCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define SPI_PSEL_SCK_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define SPI_PSEL_SCK_PORT_Msk (0x1UL << SPI_PSEL_SCK_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define SPI_PSEL_SCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPI_PSEL_SCK_PIN_Msk (0x1FUL << SPI_PSEL_SCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPI_PSEL_MOSI */
+/* Description: Pin select for MOSI signal */
+
+/* Bit 31 : Connection */
+#define SPI_PSEL_MOSI_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPI_PSEL_MOSI_CONNECT_Msk (0x1UL << SPI_PSEL_MOSI_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPI_PSEL_MOSI_CONNECT_Connected (0UL) /*!< Connect */
+#define SPI_PSEL_MOSI_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define SPI_PSEL_MOSI_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define SPI_PSEL_MOSI_PORT_Msk (0x1UL << SPI_PSEL_MOSI_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define SPI_PSEL_MOSI_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPI_PSEL_MOSI_PIN_Msk (0x1FUL << SPI_PSEL_MOSI_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPI_PSEL_MISO */
+/* Description: Pin select for MISO signal */
+
+/* Bit 31 : Connection */
+#define SPI_PSEL_MISO_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPI_PSEL_MISO_CONNECT_Msk (0x1UL << SPI_PSEL_MISO_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPI_PSEL_MISO_CONNECT_Connected (0UL) /*!< Connect */
+#define SPI_PSEL_MISO_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define SPI_PSEL_MISO_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define SPI_PSEL_MISO_PORT_Msk (0x1UL << SPI_PSEL_MISO_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define SPI_PSEL_MISO_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPI_PSEL_MISO_PIN_Msk (0x1FUL << SPI_PSEL_MISO_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPI_RXD */
+/* Description: RXD register */
+
+/* Bits 7..0 : RX data received. Double buffered */
+#define SPI_RXD_RXD_Pos (0UL) /*!< Position of RXD field. */
+#define SPI_RXD_RXD_Msk (0xFFUL << SPI_RXD_RXD_Pos) /*!< Bit mask of RXD field. */
+
+/* Register: SPI_TXD */
+/* Description: TXD register */
+
+/* Bits 7..0 : TX data to send. Double buffered */
+#define SPI_TXD_TXD_Pos (0UL) /*!< Position of TXD field. */
+#define SPI_TXD_TXD_Msk (0xFFUL << SPI_TXD_TXD_Pos) /*!< Bit mask of TXD field. */
+
+/* Register: SPI_FREQUENCY */
+/* Description: SPI frequency. Accuracy depends on the HFCLK source selected. */
+
+/* Bits 31..0 : SPI master data rate */
+#define SPI_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define SPI_FREQUENCY_FREQUENCY_Msk (0xFFFFFFFFUL << SPI_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+#define SPI_FREQUENCY_FREQUENCY_K125 (0x02000000UL) /*!< 125 kbps */
+#define SPI_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250 kbps */
+#define SPI_FREQUENCY_FREQUENCY_K500 (0x08000000UL) /*!< 500 kbps */
+#define SPI_FREQUENCY_FREQUENCY_M1 (0x10000000UL) /*!< 1 Mbps */
+#define SPI_FREQUENCY_FREQUENCY_M2 (0x20000000UL) /*!< 2 Mbps */
+#define SPI_FREQUENCY_FREQUENCY_M4 (0x40000000UL) /*!< 4 Mbps */
+#define SPI_FREQUENCY_FREQUENCY_M8 (0x80000000UL) /*!< 8 Mbps */
+
+/* Register: SPI_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 2 : Serial clock (SCK) polarity */
+#define SPI_CONFIG_CPOL_Pos (2UL) /*!< Position of CPOL field. */
+#define SPI_CONFIG_CPOL_Msk (0x1UL << SPI_CONFIG_CPOL_Pos) /*!< Bit mask of CPOL field. */
+#define SPI_CONFIG_CPOL_ActiveHigh (0UL) /*!< Active high */
+#define SPI_CONFIG_CPOL_ActiveLow (1UL) /*!< Active low */
+
+/* Bit 1 : Serial clock (SCK) phase */
+#define SPI_CONFIG_CPHA_Pos (1UL) /*!< Position of CPHA field. */
+#define SPI_CONFIG_CPHA_Msk (0x1UL << SPI_CONFIG_CPHA_Pos) /*!< Bit mask of CPHA field. */
+#define SPI_CONFIG_CPHA_Leading (0UL) /*!< Sample on leading edge of clock, shift serial data on trailing edge */
+#define SPI_CONFIG_CPHA_Trailing (1UL) /*!< Sample on trailing edge of clock, shift serial data on leading edge */
+
+/* Bit 0 : Bit order */
+#define SPI_CONFIG_ORDER_Pos (0UL) /*!< Position of ORDER field. */
+#define SPI_CONFIG_ORDER_Msk (0x1UL << SPI_CONFIG_ORDER_Pos) /*!< Bit mask of ORDER field. */
+#define SPI_CONFIG_ORDER_MsbFirst (0UL) /*!< Most significant bit shifted out first */
+#define SPI_CONFIG_ORDER_LsbFirst (1UL) /*!< Least significant bit shifted out first */
+
+
+/* Peripheral: SPIM */
+/* Description: Serial Peripheral Interface Master with EasyDMA 0 */
+
+/* Register: SPIM_TASKS_START */
+/* Description: Start SPI transaction */
+
+/* Bit 0 : */
+#define SPIM_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define SPIM_TASKS_START_TASKS_START_Msk (0x1UL << SPIM_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: SPIM_TASKS_STOP */
+/* Description: Stop SPI transaction */
+
+/* Bit 0 : */
+#define SPIM_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define SPIM_TASKS_STOP_TASKS_STOP_Msk (0x1UL << SPIM_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: SPIM_TASKS_SUSPEND */
+/* Description: Suspend SPI transaction */
+
+/* Bit 0 : */
+#define SPIM_TASKS_SUSPEND_TASKS_SUSPEND_Pos (0UL) /*!< Position of TASKS_SUSPEND field. */
+#define SPIM_TASKS_SUSPEND_TASKS_SUSPEND_Msk (0x1UL << SPIM_TASKS_SUSPEND_TASKS_SUSPEND_Pos) /*!< Bit mask of TASKS_SUSPEND field. */
+
+/* Register: SPIM_TASKS_RESUME */
+/* Description: Resume SPI transaction */
+
+/* Bit 0 : */
+#define SPIM_TASKS_RESUME_TASKS_RESUME_Pos (0UL) /*!< Position of TASKS_RESUME field. */
+#define SPIM_TASKS_RESUME_TASKS_RESUME_Msk (0x1UL << SPIM_TASKS_RESUME_TASKS_RESUME_Pos) /*!< Bit mask of TASKS_RESUME field. */
+
+/* Register: SPIM_EVENTS_STOPPED */
+/* Description: SPI transaction has stopped */
+
+/* Bit 0 : */
+#define SPIM_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define SPIM_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << SPIM_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: SPIM_EVENTS_ENDRX */
+/* Description: End of RXD buffer reached */
+
+/* Bit 0 : */
+#define SPIM_EVENTS_ENDRX_EVENTS_ENDRX_Pos (0UL) /*!< Position of EVENTS_ENDRX field. */
+#define SPIM_EVENTS_ENDRX_EVENTS_ENDRX_Msk (0x1UL << SPIM_EVENTS_ENDRX_EVENTS_ENDRX_Pos) /*!< Bit mask of EVENTS_ENDRX field. */
+
+/* Register: SPIM_EVENTS_END */
+/* Description: End of RXD buffer and TXD buffer reached */
+
+/* Bit 0 : */
+#define SPIM_EVENTS_END_EVENTS_END_Pos (0UL) /*!< Position of EVENTS_END field. */
+#define SPIM_EVENTS_END_EVENTS_END_Msk (0x1UL << SPIM_EVENTS_END_EVENTS_END_Pos) /*!< Bit mask of EVENTS_END field. */
+
+/* Register: SPIM_EVENTS_ENDTX */
+/* Description: End of TXD buffer reached */
+
+/* Bit 0 : */
+#define SPIM_EVENTS_ENDTX_EVENTS_ENDTX_Pos (0UL) /*!< Position of EVENTS_ENDTX field. */
+#define SPIM_EVENTS_ENDTX_EVENTS_ENDTX_Msk (0x1UL << SPIM_EVENTS_ENDTX_EVENTS_ENDTX_Pos) /*!< Bit mask of EVENTS_ENDTX field. */
+
+/* Register: SPIM_EVENTS_STARTED */
+/* Description: Transaction started */
+
+/* Bit 0 : */
+#define SPIM_EVENTS_STARTED_EVENTS_STARTED_Pos (0UL) /*!< Position of EVENTS_STARTED field. */
+#define SPIM_EVENTS_STARTED_EVENTS_STARTED_Msk (0x1UL << SPIM_EVENTS_STARTED_EVENTS_STARTED_Pos) /*!< Bit mask of EVENTS_STARTED field. */
+
+/* Register: SPIM_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 17 : Shortcut between END event and START task */
+#define SPIM_SHORTS_END_START_Pos (17UL) /*!< Position of END_START field. */
+#define SPIM_SHORTS_END_START_Msk (0x1UL << SPIM_SHORTS_END_START_Pos) /*!< Bit mask of END_START field. */
+#define SPIM_SHORTS_END_START_Disabled (0UL) /*!< Disable shortcut */
+#define SPIM_SHORTS_END_START_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: SPIM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 19 : Write '1' to enable interrupt for STARTED event */
+#define SPIM_INTENSET_STARTED_Pos (19UL) /*!< Position of STARTED field. */
+#define SPIM_INTENSET_STARTED_Msk (0x1UL << SPIM_INTENSET_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SPIM_INTENSET_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_STARTED_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to enable interrupt for ENDTX event */
+#define SPIM_INTENSET_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define SPIM_INTENSET_ENDTX_Msk (0x1UL << SPIM_INTENSET_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define SPIM_INTENSET_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_ENDTX_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to enable interrupt for END event */
+#define SPIM_INTENSET_END_Pos (6UL) /*!< Position of END field. */
+#define SPIM_INTENSET_END_Msk (0x1UL << SPIM_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define SPIM_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable interrupt for ENDRX event */
+#define SPIM_INTENSET_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIM_INTENSET_ENDRX_Msk (0x1UL << SPIM_INTENSET_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIM_INTENSET_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_ENDRX_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for STOPPED event */
+#define SPIM_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define SPIM_INTENSET_STOPPED_Msk (0x1UL << SPIM_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SPIM_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: SPIM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 19 : Write '1' to disable interrupt for STARTED event */
+#define SPIM_INTENCLR_STARTED_Pos (19UL) /*!< Position of STARTED field. */
+#define SPIM_INTENCLR_STARTED_Msk (0x1UL << SPIM_INTENCLR_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SPIM_INTENCLR_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_STARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to disable interrupt for ENDTX event */
+#define SPIM_INTENCLR_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define SPIM_INTENCLR_ENDTX_Msk (0x1UL << SPIM_INTENCLR_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define SPIM_INTENCLR_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_ENDTX_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to disable interrupt for END event */
+#define SPIM_INTENCLR_END_Pos (6UL) /*!< Position of END field. */
+#define SPIM_INTENCLR_END_Msk (0x1UL << SPIM_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define SPIM_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable interrupt for ENDRX event */
+#define SPIM_INTENCLR_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIM_INTENCLR_ENDRX_Msk (0x1UL << SPIM_INTENCLR_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIM_INTENCLR_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_ENDRX_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for STOPPED event */
+#define SPIM_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define SPIM_INTENCLR_STOPPED_Msk (0x1UL << SPIM_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SPIM_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: SPIM_STALLSTAT */
+/* Description: Stall status for EasyDMA RAM accesses. The fields in this register is set to STALL by hardware whenever a stall occurres and can be cleared (set to NOSTALL) by the CPU. */
+
+/* Bit 1 : Stall status for EasyDMA RAM writes */
+#define SPIM_STALLSTAT_RX_Pos (1UL) /*!< Position of RX field. */
+#define SPIM_STALLSTAT_RX_Msk (0x1UL << SPIM_STALLSTAT_RX_Pos) /*!< Bit mask of RX field. */
+#define SPIM_STALLSTAT_RX_NOSTALL (0UL) /*!< No stall */
+#define SPIM_STALLSTAT_RX_STALL (1UL) /*!< A stall has occurred */
+
+/* Bit 0 : Stall status for EasyDMA RAM reads */
+#define SPIM_STALLSTAT_TX_Pos (0UL) /*!< Position of TX field. */
+#define SPIM_STALLSTAT_TX_Msk (0x1UL << SPIM_STALLSTAT_TX_Pos) /*!< Bit mask of TX field. */
+#define SPIM_STALLSTAT_TX_NOSTALL (0UL) /*!< No stall */
+#define SPIM_STALLSTAT_TX_STALL (1UL) /*!< A stall has occurred */
+
+/* Register: SPIM_ENABLE */
+/* Description: Enable SPIM */
+
+/* Bits 3..0 : Enable or disable SPIM */
+#define SPIM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SPIM_ENABLE_ENABLE_Msk (0xFUL << SPIM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SPIM_ENABLE_ENABLE_Disabled (0UL) /*!< Disable SPIM */
+#define SPIM_ENABLE_ENABLE_Enabled (7UL) /*!< Enable SPIM */
+
+/* Register: SPIM_PSEL_SCK */
+/* Description: Pin select for SCK */
+
+/* Bit 31 : Connection */
+#define SPIM_PSEL_SCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIM_PSEL_SCK_CONNECT_Msk (0x1UL << SPIM_PSEL_SCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIM_PSEL_SCK_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIM_PSEL_SCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define SPIM_PSEL_SCK_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define SPIM_PSEL_SCK_PORT_Msk (0x1UL << SPIM_PSEL_SCK_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define SPIM_PSEL_SCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIM_PSEL_SCK_PIN_Msk (0x1FUL << SPIM_PSEL_SCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIM_PSEL_MOSI */
+/* Description: Pin select for MOSI signal */
+
+/* Bit 31 : Connection */
+#define SPIM_PSEL_MOSI_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIM_PSEL_MOSI_CONNECT_Msk (0x1UL << SPIM_PSEL_MOSI_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIM_PSEL_MOSI_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIM_PSEL_MOSI_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define SPIM_PSEL_MOSI_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define SPIM_PSEL_MOSI_PORT_Msk (0x1UL << SPIM_PSEL_MOSI_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define SPIM_PSEL_MOSI_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIM_PSEL_MOSI_PIN_Msk (0x1FUL << SPIM_PSEL_MOSI_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIM_PSEL_MISO */
+/* Description: Pin select for MISO signal */
+
+/* Bit 31 : Connection */
+#define SPIM_PSEL_MISO_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIM_PSEL_MISO_CONNECT_Msk (0x1UL << SPIM_PSEL_MISO_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIM_PSEL_MISO_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIM_PSEL_MISO_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define SPIM_PSEL_MISO_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define SPIM_PSEL_MISO_PORT_Msk (0x1UL << SPIM_PSEL_MISO_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define SPIM_PSEL_MISO_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIM_PSEL_MISO_PIN_Msk (0x1FUL << SPIM_PSEL_MISO_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIM_PSEL_CSN */
+/* Description: Pin select for CSN */
+
+/* Bit 31 : Connection */
+#define SPIM_PSEL_CSN_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIM_PSEL_CSN_CONNECT_Msk (0x1UL << SPIM_PSEL_CSN_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIM_PSEL_CSN_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIM_PSEL_CSN_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define SPIM_PSEL_CSN_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define SPIM_PSEL_CSN_PORT_Msk (0x1UL << SPIM_PSEL_CSN_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define SPIM_PSEL_CSN_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIM_PSEL_CSN_PIN_Msk (0x1FUL << SPIM_PSEL_CSN_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIM_FREQUENCY */
+/* Description: SPI frequency. Accuracy depends on the HFCLK source selected. */
+
+/* Bits 31..0 : SPI master data rate */
+#define SPIM_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define SPIM_FREQUENCY_FREQUENCY_Msk (0xFFFFFFFFUL << SPIM_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+#define SPIM_FREQUENCY_FREQUENCY_K125 (0x02000000UL) /*!< 125 kbps */
+#define SPIM_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250 kbps */
+#define SPIM_FREQUENCY_FREQUENCY_K500 (0x08000000UL) /*!< 500 kbps */
+#define SPIM_FREQUENCY_FREQUENCY_M16 (0x0A000000UL) /*!< 16 Mbps */
+#define SPIM_FREQUENCY_FREQUENCY_M1 (0x10000000UL) /*!< 1 Mbps */
+#define SPIM_FREQUENCY_FREQUENCY_M32 (0x14000000UL) /*!< 32 Mbps */
+#define SPIM_FREQUENCY_FREQUENCY_M2 (0x20000000UL) /*!< 2 Mbps */
+#define SPIM_FREQUENCY_FREQUENCY_M4 (0x40000000UL) /*!< 4 Mbps */
+#define SPIM_FREQUENCY_FREQUENCY_M8 (0x80000000UL) /*!< 8 Mbps */
+
+/* Register: SPIM_RXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define SPIM_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SPIM_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << SPIM_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SPIM_RXD_MAXCNT */
+/* Description: Maximum number of bytes in receive buffer */
+
+/* Bits 15..0 : Maximum number of bytes in receive buffer */
+#define SPIM_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SPIM_RXD_MAXCNT_MAXCNT_Msk (0xFFFFUL << SPIM_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SPIM_RXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 15..0 : Number of bytes transferred in the last transaction */
+#define SPIM_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SPIM_RXD_AMOUNT_AMOUNT_Msk (0xFFFFUL << SPIM_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: SPIM_RXD_LIST */
+/* Description: EasyDMA list type */
+
+/* Bits 1..0 : List type */
+#define SPIM_RXD_LIST_LIST_Pos (0UL) /*!< Position of LIST field. */
+#define SPIM_RXD_LIST_LIST_Msk (0x3UL << SPIM_RXD_LIST_LIST_Pos) /*!< Bit mask of LIST field. */
+#define SPIM_RXD_LIST_LIST_Disabled (0UL) /*!< Disable EasyDMA list */
+#define SPIM_RXD_LIST_LIST_ArrayList (1UL) /*!< Use array list */
+
+/* Register: SPIM_TXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define SPIM_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SPIM_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << SPIM_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SPIM_TXD_MAXCNT */
+/* Description: Number of bytes in transmit buffer */
+
+/* Bits 15..0 : Maximum number of bytes in transmit buffer */
+#define SPIM_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SPIM_TXD_MAXCNT_MAXCNT_Msk (0xFFFFUL << SPIM_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SPIM_TXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 15..0 : Number of bytes transferred in the last transaction */
+#define SPIM_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SPIM_TXD_AMOUNT_AMOUNT_Msk (0xFFFFUL << SPIM_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: SPIM_TXD_LIST */
+/* Description: EasyDMA list type */
+
+/* Bits 1..0 : List type */
+#define SPIM_TXD_LIST_LIST_Pos (0UL) /*!< Position of LIST field. */
+#define SPIM_TXD_LIST_LIST_Msk (0x3UL << SPIM_TXD_LIST_LIST_Pos) /*!< Bit mask of LIST field. */
+#define SPIM_TXD_LIST_LIST_Disabled (0UL) /*!< Disable EasyDMA list */
+#define SPIM_TXD_LIST_LIST_ArrayList (1UL) /*!< Use array list */
+
+/* Register: SPIM_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 2 : Serial clock (SCK) polarity */
+#define SPIM_CONFIG_CPOL_Pos (2UL) /*!< Position of CPOL field. */
+#define SPIM_CONFIG_CPOL_Msk (0x1UL << SPIM_CONFIG_CPOL_Pos) /*!< Bit mask of CPOL field. */
+#define SPIM_CONFIG_CPOL_ActiveHigh (0UL) /*!< Active high */
+#define SPIM_CONFIG_CPOL_ActiveLow (1UL) /*!< Active low */
+
+/* Bit 1 : Serial clock (SCK) phase */
+#define SPIM_CONFIG_CPHA_Pos (1UL) /*!< Position of CPHA field. */
+#define SPIM_CONFIG_CPHA_Msk (0x1UL << SPIM_CONFIG_CPHA_Pos) /*!< Bit mask of CPHA field. */
+#define SPIM_CONFIG_CPHA_Leading (0UL) /*!< Sample on leading edge of clock, shift serial data on trailing edge */
+#define SPIM_CONFIG_CPHA_Trailing (1UL) /*!< Sample on trailing edge of clock, shift serial data on leading edge */
+
+/* Bit 0 : Bit order */
+#define SPIM_CONFIG_ORDER_Pos (0UL) /*!< Position of ORDER field. */
+#define SPIM_CONFIG_ORDER_Msk (0x1UL << SPIM_CONFIG_ORDER_Pos) /*!< Bit mask of ORDER field. */
+#define SPIM_CONFIG_ORDER_MsbFirst (0UL) /*!< Most significant bit shifted out first */
+#define SPIM_CONFIG_ORDER_LsbFirst (1UL) /*!< Least significant bit shifted out first */
+
+/* Register: SPIM_IFTIMING_RXDELAY */
+/* Description: Sample delay for input serial data on MISO */
+
+/* Bits 2..0 : Sample delay for input serial data on MISO. The value specifies the number of 64 MHz clock cycles (15.625 ns) delay from the the sampling edge of SCK (leading edge for CONFIG.CPHA = 0, trailing edge for CONFIG.CPHA = 1) until the input serial data is sampled. As en example, if RXDELAY = 0 and CONFIG.CPHA = 0, the input serial data is sampled on the rising edge of SCK. */
+#define SPIM_IFTIMING_RXDELAY_RXDELAY_Pos (0UL) /*!< Position of RXDELAY field. */
+#define SPIM_IFTIMING_RXDELAY_RXDELAY_Msk (0x7UL << SPIM_IFTIMING_RXDELAY_RXDELAY_Pos) /*!< Bit mask of RXDELAY field. */
+
+/* Register: SPIM_IFTIMING_CSNDUR */
+/* Description: Minimum duration between edge of CSN and edge of SCK and minimum duration CSN must stay high between transactions */
+
+/* Bits 7..0 : Minimum duration between edge of CSN and edge of SCK and minimum duration CSN must stay high between transactions. The value is specified in number of 64 MHz clock cycles (15.625 ns). */
+#define SPIM_IFTIMING_CSNDUR_CSNDUR_Pos (0UL) /*!< Position of CSNDUR field. */
+#define SPIM_IFTIMING_CSNDUR_CSNDUR_Msk (0xFFUL << SPIM_IFTIMING_CSNDUR_CSNDUR_Pos) /*!< Bit mask of CSNDUR field. */
+
+/* Register: SPIM_CSNPOL */
+/* Description: Polarity of CSN output */
+
+/* Bit 0 : Polarity of CSN output */
+#define SPIM_CSNPOL_CSNPOL_Pos (0UL) /*!< Position of CSNPOL field. */
+#define SPIM_CSNPOL_CSNPOL_Msk (0x1UL << SPIM_CSNPOL_CSNPOL_Pos) /*!< Bit mask of CSNPOL field. */
+#define SPIM_CSNPOL_CSNPOL_LOW (0UL) /*!< Active low (idle state high) */
+#define SPIM_CSNPOL_CSNPOL_HIGH (1UL) /*!< Active high (idle state low) */
+
+/* Register: SPIM_PSELDCX */
+/* Description: Pin select for DCX signal */
+
+/* Bit 31 : Connection */
+#define SPIM_PSELDCX_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIM_PSELDCX_CONNECT_Msk (0x1UL << SPIM_PSELDCX_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIM_PSELDCX_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIM_PSELDCX_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define SPIM_PSELDCX_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define SPIM_PSELDCX_PORT_Msk (0x1UL << SPIM_PSELDCX_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define SPIM_PSELDCX_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIM_PSELDCX_PIN_Msk (0x1FUL << SPIM_PSELDCX_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIM_DCXCNT */
+/* Description: DCX configuration */
+
+/* Bits 3..0 : This register specifies the number of command bytes preceding the data bytes. The PSEL.DCX line will be low during transmission of command bytes and high during transmission of data bytes. Value 0xF indicates that all bytes are command bytes. */
+#define SPIM_DCXCNT_DCXCNT_Pos (0UL) /*!< Position of DCXCNT field. */
+#define SPIM_DCXCNT_DCXCNT_Msk (0xFUL << SPIM_DCXCNT_DCXCNT_Pos) /*!< Bit mask of DCXCNT field. */
+
+/* Register: SPIM_ORC */
+/* Description: Byte transmitted after TXD.MAXCNT bytes have been transmitted in the case when RXD.MAXCNT is greater than TXD.MAXCNT */
+
+/* Bits 7..0 : Byte transmitted after TXD.MAXCNT bytes have been transmitted in the case when RXD.MAXCNT is greater than TXD.MAXCNT. */
+#define SPIM_ORC_ORC_Pos (0UL) /*!< Position of ORC field. */
+#define SPIM_ORC_ORC_Msk (0xFFUL << SPIM_ORC_ORC_Pos) /*!< Bit mask of ORC field. */
+
+
+/* Peripheral: SPIS */
+/* Description: SPI Slave 0 */
+
+/* Register: SPIS_TASKS_ACQUIRE */
+/* Description: Acquire SPI semaphore */
+
+/* Bit 0 : */
+#define SPIS_TASKS_ACQUIRE_TASKS_ACQUIRE_Pos (0UL) /*!< Position of TASKS_ACQUIRE field. */
+#define SPIS_TASKS_ACQUIRE_TASKS_ACQUIRE_Msk (0x1UL << SPIS_TASKS_ACQUIRE_TASKS_ACQUIRE_Pos) /*!< Bit mask of TASKS_ACQUIRE field. */
+
+/* Register: SPIS_TASKS_RELEASE */
+/* Description: Release SPI semaphore, enabling the SPI slave to acquire it */
+
+/* Bit 0 : */
+#define SPIS_TASKS_RELEASE_TASKS_RELEASE_Pos (0UL) /*!< Position of TASKS_RELEASE field. */
+#define SPIS_TASKS_RELEASE_TASKS_RELEASE_Msk (0x1UL << SPIS_TASKS_RELEASE_TASKS_RELEASE_Pos) /*!< Bit mask of TASKS_RELEASE field. */
+
+/* Register: SPIS_EVENTS_END */
+/* Description: Granted transaction completed */
+
+/* Bit 0 : */
+#define SPIS_EVENTS_END_EVENTS_END_Pos (0UL) /*!< Position of EVENTS_END field. */
+#define SPIS_EVENTS_END_EVENTS_END_Msk (0x1UL << SPIS_EVENTS_END_EVENTS_END_Pos) /*!< Bit mask of EVENTS_END field. */
+
+/* Register: SPIS_EVENTS_ENDRX */
+/* Description: End of RXD buffer reached */
+
+/* Bit 0 : */
+#define SPIS_EVENTS_ENDRX_EVENTS_ENDRX_Pos (0UL) /*!< Position of EVENTS_ENDRX field. */
+#define SPIS_EVENTS_ENDRX_EVENTS_ENDRX_Msk (0x1UL << SPIS_EVENTS_ENDRX_EVENTS_ENDRX_Pos) /*!< Bit mask of EVENTS_ENDRX field. */
+
+/* Register: SPIS_EVENTS_ACQUIRED */
+/* Description: Semaphore acquired */
+
+/* Bit 0 : */
+#define SPIS_EVENTS_ACQUIRED_EVENTS_ACQUIRED_Pos (0UL) /*!< Position of EVENTS_ACQUIRED field. */
+#define SPIS_EVENTS_ACQUIRED_EVENTS_ACQUIRED_Msk (0x1UL << SPIS_EVENTS_ACQUIRED_EVENTS_ACQUIRED_Pos) /*!< Bit mask of EVENTS_ACQUIRED field. */
+
+/* Register: SPIS_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 2 : Shortcut between END event and ACQUIRE task */
+#define SPIS_SHORTS_END_ACQUIRE_Pos (2UL) /*!< Position of END_ACQUIRE field. */
+#define SPIS_SHORTS_END_ACQUIRE_Msk (0x1UL << SPIS_SHORTS_END_ACQUIRE_Pos) /*!< Bit mask of END_ACQUIRE field. */
+#define SPIS_SHORTS_END_ACQUIRE_Disabled (0UL) /*!< Disable shortcut */
+#define SPIS_SHORTS_END_ACQUIRE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: SPIS_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 10 : Write '1' to enable interrupt for ACQUIRED event */
+#define SPIS_INTENSET_ACQUIRED_Pos (10UL) /*!< Position of ACQUIRED field. */
+#define SPIS_INTENSET_ACQUIRED_Msk (0x1UL << SPIS_INTENSET_ACQUIRED_Pos) /*!< Bit mask of ACQUIRED field. */
+#define SPIS_INTENSET_ACQUIRED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENSET_ACQUIRED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENSET_ACQUIRED_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable interrupt for ENDRX event */
+#define SPIS_INTENSET_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIS_INTENSET_ENDRX_Msk (0x1UL << SPIS_INTENSET_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIS_INTENSET_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENSET_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENSET_ENDRX_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for END event */
+#define SPIS_INTENSET_END_Pos (1UL) /*!< Position of END field. */
+#define SPIS_INTENSET_END_Msk (0x1UL << SPIS_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define SPIS_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Register: SPIS_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 10 : Write '1' to disable interrupt for ACQUIRED event */
+#define SPIS_INTENCLR_ACQUIRED_Pos (10UL) /*!< Position of ACQUIRED field. */
+#define SPIS_INTENCLR_ACQUIRED_Msk (0x1UL << SPIS_INTENCLR_ACQUIRED_Pos) /*!< Bit mask of ACQUIRED field. */
+#define SPIS_INTENCLR_ACQUIRED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENCLR_ACQUIRED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENCLR_ACQUIRED_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable interrupt for ENDRX event */
+#define SPIS_INTENCLR_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIS_INTENCLR_ENDRX_Msk (0x1UL << SPIS_INTENCLR_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIS_INTENCLR_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENCLR_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENCLR_ENDRX_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for END event */
+#define SPIS_INTENCLR_END_Pos (1UL) /*!< Position of END field. */
+#define SPIS_INTENCLR_END_Msk (0x1UL << SPIS_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define SPIS_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Register: SPIS_SEMSTAT */
+/* Description: Semaphore status register */
+
+/* Bits 1..0 : Semaphore status */
+#define SPIS_SEMSTAT_SEMSTAT_Pos (0UL) /*!< Position of SEMSTAT field. */
+#define SPIS_SEMSTAT_SEMSTAT_Msk (0x3UL << SPIS_SEMSTAT_SEMSTAT_Pos) /*!< Bit mask of SEMSTAT field. */
+#define SPIS_SEMSTAT_SEMSTAT_Free (0UL) /*!< Semaphore is free */
+#define SPIS_SEMSTAT_SEMSTAT_CPU (1UL) /*!< Semaphore is assigned to CPU */
+#define SPIS_SEMSTAT_SEMSTAT_SPIS (2UL) /*!< Semaphore is assigned to SPI slave */
+#define SPIS_SEMSTAT_SEMSTAT_CPUPending (3UL) /*!< Semaphore is assigned to SPI but a handover to the CPU is pending */
+
+/* Register: SPIS_STATUS */
+/* Description: Status from last transaction */
+
+/* Bit 1 : RX buffer overflow detected, and prevented */
+#define SPIS_STATUS_OVERFLOW_Pos (1UL) /*!< Position of OVERFLOW field. */
+#define SPIS_STATUS_OVERFLOW_Msk (0x1UL << SPIS_STATUS_OVERFLOW_Pos) /*!< Bit mask of OVERFLOW field. */
+#define SPIS_STATUS_OVERFLOW_NotPresent (0UL) /*!< Read: error not present */
+#define SPIS_STATUS_OVERFLOW_Present (1UL) /*!< Read: error present */
+#define SPIS_STATUS_OVERFLOW_Clear (1UL) /*!< Write: clear error on writing '1' */
+
+/* Bit 0 : TX buffer over-read detected, and prevented */
+#define SPIS_STATUS_OVERREAD_Pos (0UL) /*!< Position of OVERREAD field. */
+#define SPIS_STATUS_OVERREAD_Msk (0x1UL << SPIS_STATUS_OVERREAD_Pos) /*!< Bit mask of OVERREAD field. */
+#define SPIS_STATUS_OVERREAD_NotPresent (0UL) /*!< Read: error not present */
+#define SPIS_STATUS_OVERREAD_Present (1UL) /*!< Read: error present */
+#define SPIS_STATUS_OVERREAD_Clear (1UL) /*!< Write: clear error on writing '1' */
+
+/* Register: SPIS_ENABLE */
+/* Description: Enable SPI slave */
+
+/* Bits 3..0 : Enable or disable SPI slave */
+#define SPIS_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SPIS_ENABLE_ENABLE_Msk (0xFUL << SPIS_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SPIS_ENABLE_ENABLE_Disabled (0UL) /*!< Disable SPI slave */
+#define SPIS_ENABLE_ENABLE_Enabled (2UL) /*!< Enable SPI slave */
+
+/* Register: SPIS_PSEL_SCK */
+/* Description: Pin select for SCK */
+
+/* Bit 31 : Connection */
+#define SPIS_PSEL_SCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIS_PSEL_SCK_CONNECT_Msk (0x1UL << SPIS_PSEL_SCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIS_PSEL_SCK_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIS_PSEL_SCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define SPIS_PSEL_SCK_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define SPIS_PSEL_SCK_PORT_Msk (0x1UL << SPIS_PSEL_SCK_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define SPIS_PSEL_SCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIS_PSEL_SCK_PIN_Msk (0x1FUL << SPIS_PSEL_SCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIS_PSEL_MISO */
+/* Description: Pin select for MISO signal */
+
+/* Bit 31 : Connection */
+#define SPIS_PSEL_MISO_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIS_PSEL_MISO_CONNECT_Msk (0x1UL << SPIS_PSEL_MISO_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIS_PSEL_MISO_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIS_PSEL_MISO_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define SPIS_PSEL_MISO_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define SPIS_PSEL_MISO_PORT_Msk (0x1UL << SPIS_PSEL_MISO_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define SPIS_PSEL_MISO_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIS_PSEL_MISO_PIN_Msk (0x1FUL << SPIS_PSEL_MISO_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIS_PSEL_MOSI */
+/* Description: Pin select for MOSI signal */
+
+/* Bit 31 : Connection */
+#define SPIS_PSEL_MOSI_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIS_PSEL_MOSI_CONNECT_Msk (0x1UL << SPIS_PSEL_MOSI_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIS_PSEL_MOSI_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIS_PSEL_MOSI_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define SPIS_PSEL_MOSI_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define SPIS_PSEL_MOSI_PORT_Msk (0x1UL << SPIS_PSEL_MOSI_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define SPIS_PSEL_MOSI_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIS_PSEL_MOSI_PIN_Msk (0x1FUL << SPIS_PSEL_MOSI_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIS_PSEL_CSN */
+/* Description: Pin select for CSN signal */
+
+/* Bit 31 : Connection */
+#define SPIS_PSEL_CSN_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIS_PSEL_CSN_CONNECT_Msk (0x1UL << SPIS_PSEL_CSN_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIS_PSEL_CSN_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIS_PSEL_CSN_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define SPIS_PSEL_CSN_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define SPIS_PSEL_CSN_PORT_Msk (0x1UL << SPIS_PSEL_CSN_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define SPIS_PSEL_CSN_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIS_PSEL_CSN_PIN_Msk (0x1FUL << SPIS_PSEL_CSN_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIS_RXD_PTR */
+/* Description: RXD data pointer */
+
+/* Bits 31..0 : RXD data pointer */
+#define SPIS_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SPIS_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << SPIS_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SPIS_RXD_MAXCNT */
+/* Description: Maximum number of bytes in receive buffer */
+
+/* Bits 15..0 : Maximum number of bytes in receive buffer */
+#define SPIS_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SPIS_RXD_MAXCNT_MAXCNT_Msk (0xFFFFUL << SPIS_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SPIS_RXD_AMOUNT */
+/* Description: Number of bytes received in last granted transaction */
+
+/* Bits 15..0 : Number of bytes received in the last granted transaction */
+#define SPIS_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SPIS_RXD_AMOUNT_AMOUNT_Msk (0xFFFFUL << SPIS_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: SPIS_TXD_PTR */
+/* Description: TXD data pointer */
+
+/* Bits 31..0 : TXD data pointer */
+#define SPIS_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SPIS_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << SPIS_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SPIS_TXD_MAXCNT */
+/* Description: Maximum number of bytes in transmit buffer */
+
+/* Bits 15..0 : Maximum number of bytes in transmit buffer */
+#define SPIS_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SPIS_TXD_MAXCNT_MAXCNT_Msk (0xFFFFUL << SPIS_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SPIS_TXD_AMOUNT */
+/* Description: Number of bytes transmitted in last granted transaction */
+
+/* Bits 15..0 : Number of bytes transmitted in last granted transaction */
+#define SPIS_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SPIS_TXD_AMOUNT_AMOUNT_Msk (0xFFFFUL << SPIS_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: SPIS_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 2 : Serial clock (SCK) polarity */
+#define SPIS_CONFIG_CPOL_Pos (2UL) /*!< Position of CPOL field. */
+#define SPIS_CONFIG_CPOL_Msk (0x1UL << SPIS_CONFIG_CPOL_Pos) /*!< Bit mask of CPOL field. */
+#define SPIS_CONFIG_CPOL_ActiveHigh (0UL) /*!< Active high */
+#define SPIS_CONFIG_CPOL_ActiveLow (1UL) /*!< Active low */
+
+/* Bit 1 : Serial clock (SCK) phase */
+#define SPIS_CONFIG_CPHA_Pos (1UL) /*!< Position of CPHA field. */
+#define SPIS_CONFIG_CPHA_Msk (0x1UL << SPIS_CONFIG_CPHA_Pos) /*!< Bit mask of CPHA field. */
+#define SPIS_CONFIG_CPHA_Leading (0UL) /*!< Sample on leading edge of clock, shift serial data on trailing edge */
+#define SPIS_CONFIG_CPHA_Trailing (1UL) /*!< Sample on trailing edge of clock, shift serial data on leading edge */
+
+/* Bit 0 : Bit order */
+#define SPIS_CONFIG_ORDER_Pos (0UL) /*!< Position of ORDER field. */
+#define SPIS_CONFIG_ORDER_Msk (0x1UL << SPIS_CONFIG_ORDER_Pos) /*!< Bit mask of ORDER field. */
+#define SPIS_CONFIG_ORDER_MsbFirst (0UL) /*!< Most significant bit shifted out first */
+#define SPIS_CONFIG_ORDER_LsbFirst (1UL) /*!< Least significant bit shifted out first */
+
+/* Register: SPIS_DEF */
+/* Description: Default character. Character clocked out in case of an ignored transaction. */
+
+/* Bits 7..0 : Default character. Character clocked out in case of an ignored transaction. */
+#define SPIS_DEF_DEF_Pos (0UL) /*!< Position of DEF field. */
+#define SPIS_DEF_DEF_Msk (0xFFUL << SPIS_DEF_DEF_Pos) /*!< Bit mask of DEF field. */
+
+/* Register: SPIS_ORC */
+/* Description: Over-read character */
+
+/* Bits 7..0 : Over-read character. Character clocked out after an over-read of the transmit buffer. */
+#define SPIS_ORC_ORC_Pos (0UL) /*!< Position of ORC field. */
+#define SPIS_ORC_ORC_Msk (0xFFUL << SPIS_ORC_ORC_Pos) /*!< Bit mask of ORC field. */
+
+
+/* Peripheral: TEMP */
+/* Description: Temperature Sensor */
+
+/* Register: TEMP_TASKS_START */
+/* Description: Start temperature measurement */
+
+/* Bit 0 : */
+#define TEMP_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define TEMP_TASKS_START_TASKS_START_Msk (0x1UL << TEMP_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: TEMP_TASKS_STOP */
+/* Description: Stop temperature measurement */
+
+/* Bit 0 : */
+#define TEMP_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define TEMP_TASKS_STOP_TASKS_STOP_Msk (0x1UL << TEMP_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: TEMP_EVENTS_DATARDY */
+/* Description: Temperature measurement complete, data ready */
+
+/* Bit 0 : */
+#define TEMP_EVENTS_DATARDY_EVENTS_DATARDY_Pos (0UL) /*!< Position of EVENTS_DATARDY field. */
+#define TEMP_EVENTS_DATARDY_EVENTS_DATARDY_Msk (0x1UL << TEMP_EVENTS_DATARDY_EVENTS_DATARDY_Pos) /*!< Bit mask of EVENTS_DATARDY field. */
+
+/* Register: TEMP_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 0 : Write '1' to enable interrupt for DATARDY event */
+#define TEMP_INTENSET_DATARDY_Pos (0UL) /*!< Position of DATARDY field. */
+#define TEMP_INTENSET_DATARDY_Msk (0x1UL << TEMP_INTENSET_DATARDY_Pos) /*!< Bit mask of DATARDY field. */
+#define TEMP_INTENSET_DATARDY_Disabled (0UL) /*!< Read: Disabled */
+#define TEMP_INTENSET_DATARDY_Enabled (1UL) /*!< Read: Enabled */
+#define TEMP_INTENSET_DATARDY_Set (1UL) /*!< Enable */
+
+/* Register: TEMP_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 0 : Write '1' to disable interrupt for DATARDY event */
+#define TEMP_INTENCLR_DATARDY_Pos (0UL) /*!< Position of DATARDY field. */
+#define TEMP_INTENCLR_DATARDY_Msk (0x1UL << TEMP_INTENCLR_DATARDY_Pos) /*!< Bit mask of DATARDY field. */
+#define TEMP_INTENCLR_DATARDY_Disabled (0UL) /*!< Read: Disabled */
+#define TEMP_INTENCLR_DATARDY_Enabled (1UL) /*!< Read: Enabled */
+#define TEMP_INTENCLR_DATARDY_Clear (1UL) /*!< Disable */
+
+/* Register: TEMP_TEMP */
+/* Description: Temperature in degC (0.25deg steps) */
+
+/* Bits 31..0 : Temperature in degC (0.25deg steps) */
+#define TEMP_TEMP_TEMP_Pos (0UL) /*!< Position of TEMP field. */
+#define TEMP_TEMP_TEMP_Msk (0xFFFFFFFFUL << TEMP_TEMP_TEMP_Pos) /*!< Bit mask of TEMP field. */
+
+/* Register: TEMP_A0 */
+/* Description: Slope of 1st piece wise linear function */
+
+/* Bits 11..0 : Slope of 1st piece wise linear function */
+#define TEMP_A0_A0_Pos (0UL) /*!< Position of A0 field. */
+#define TEMP_A0_A0_Msk (0xFFFUL << TEMP_A0_A0_Pos) /*!< Bit mask of A0 field. */
+
+/* Register: TEMP_A1 */
+/* Description: Slope of 2nd piece wise linear function */
+
+/* Bits 11..0 : Slope of 2nd piece wise linear function */
+#define TEMP_A1_A1_Pos (0UL) /*!< Position of A1 field. */
+#define TEMP_A1_A1_Msk (0xFFFUL << TEMP_A1_A1_Pos) /*!< Bit mask of A1 field. */
+
+/* Register: TEMP_A2 */
+/* Description: Slope of 3rd piece wise linear function */
+
+/* Bits 11..0 : Slope of 3rd piece wise linear function */
+#define TEMP_A2_A2_Pos (0UL) /*!< Position of A2 field. */
+#define TEMP_A2_A2_Msk (0xFFFUL << TEMP_A2_A2_Pos) /*!< Bit mask of A2 field. */
+
+/* Register: TEMP_A3 */
+/* Description: Slope of 4th piece wise linear function */
+
+/* Bits 11..0 : Slope of 4th piece wise linear function */
+#define TEMP_A3_A3_Pos (0UL) /*!< Position of A3 field. */
+#define TEMP_A3_A3_Msk (0xFFFUL << TEMP_A3_A3_Pos) /*!< Bit mask of A3 field. */
+
+/* Register: TEMP_A4 */
+/* Description: Slope of 5th piece wise linear function */
+
+/* Bits 11..0 : Slope of 5th piece wise linear function */
+#define TEMP_A4_A4_Pos (0UL) /*!< Position of A4 field. */
+#define TEMP_A4_A4_Msk (0xFFFUL << TEMP_A4_A4_Pos) /*!< Bit mask of A4 field. */
+
+/* Register: TEMP_A5 */
+/* Description: Slope of 6th piece wise linear function */
+
+/* Bits 11..0 : Slope of 6th piece wise linear function */
+#define TEMP_A5_A5_Pos (0UL) /*!< Position of A5 field. */
+#define TEMP_A5_A5_Msk (0xFFFUL << TEMP_A5_A5_Pos) /*!< Bit mask of A5 field. */
+
+/* Register: TEMP_B0 */
+/* Description: y-intercept of 1st piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 1st piece wise linear function */
+#define TEMP_B0_B0_Pos (0UL) /*!< Position of B0 field. */
+#define TEMP_B0_B0_Msk (0x3FFFUL << TEMP_B0_B0_Pos) /*!< Bit mask of B0 field. */
+
+/* Register: TEMP_B1 */
+/* Description: y-intercept of 2nd piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 2nd piece wise linear function */
+#define TEMP_B1_B1_Pos (0UL) /*!< Position of B1 field. */
+#define TEMP_B1_B1_Msk (0x3FFFUL << TEMP_B1_B1_Pos) /*!< Bit mask of B1 field. */
+
+/* Register: TEMP_B2 */
+/* Description: y-intercept of 3rd piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 3rd piece wise linear function */
+#define TEMP_B2_B2_Pos (0UL) /*!< Position of B2 field. */
+#define TEMP_B2_B2_Msk (0x3FFFUL << TEMP_B2_B2_Pos) /*!< Bit mask of B2 field. */
+
+/* Register: TEMP_B3 */
+/* Description: y-intercept of 4th piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 4th piece wise linear function */
+#define TEMP_B3_B3_Pos (0UL) /*!< Position of B3 field. */
+#define TEMP_B3_B3_Msk (0x3FFFUL << TEMP_B3_B3_Pos) /*!< Bit mask of B3 field. */
+
+/* Register: TEMP_B4 */
+/* Description: y-intercept of 5th piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 5th piece wise linear function */
+#define TEMP_B4_B4_Pos (0UL) /*!< Position of B4 field. */
+#define TEMP_B4_B4_Msk (0x3FFFUL << TEMP_B4_B4_Pos) /*!< Bit mask of B4 field. */
+
+/* Register: TEMP_B5 */
+/* Description: y-intercept of 6th piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 6th piece wise linear function */
+#define TEMP_B5_B5_Pos (0UL) /*!< Position of B5 field. */
+#define TEMP_B5_B5_Msk (0x3FFFUL << TEMP_B5_B5_Pos) /*!< Bit mask of B5 field. */
+
+/* Register: TEMP_T0 */
+/* Description: End point of 1st piece wise linear function */
+
+/* Bits 7..0 : End point of 1st piece wise linear function */
+#define TEMP_T0_T0_Pos (0UL) /*!< Position of T0 field. */
+#define TEMP_T0_T0_Msk (0xFFUL << TEMP_T0_T0_Pos) /*!< Bit mask of T0 field. */
+
+/* Register: TEMP_T1 */
+/* Description: End point of 2nd piece wise linear function */
+
+/* Bits 7..0 : End point of 2nd piece wise linear function */
+#define TEMP_T1_T1_Pos (0UL) /*!< Position of T1 field. */
+#define TEMP_T1_T1_Msk (0xFFUL << TEMP_T1_T1_Pos) /*!< Bit mask of T1 field. */
+
+/* Register: TEMP_T2 */
+/* Description: End point of 3rd piece wise linear function */
+
+/* Bits 7..0 : End point of 3rd piece wise linear function */
+#define TEMP_T2_T2_Pos (0UL) /*!< Position of T2 field. */
+#define TEMP_T2_T2_Msk (0xFFUL << TEMP_T2_T2_Pos) /*!< Bit mask of T2 field. */
+
+/* Register: TEMP_T3 */
+/* Description: End point of 4th piece wise linear function */
+
+/* Bits 7..0 : End point of 4th piece wise linear function */
+#define TEMP_T3_T3_Pos (0UL) /*!< Position of T3 field. */
+#define TEMP_T3_T3_Msk (0xFFUL << TEMP_T3_T3_Pos) /*!< Bit mask of T3 field. */
+
+/* Register: TEMP_T4 */
+/* Description: End point of 5th piece wise linear function */
+
+/* Bits 7..0 : End point of 5th piece wise linear function */
+#define TEMP_T4_T4_Pos (0UL) /*!< Position of T4 field. */
+#define TEMP_T4_T4_Msk (0xFFUL << TEMP_T4_T4_Pos) /*!< Bit mask of T4 field. */
+
+
+/* Peripheral: TIMER */
+/* Description: Timer/Counter 0 */
+
+/* Register: TIMER_TASKS_START */
+/* Description: Start Timer */
+
+/* Bit 0 : */
+#define TIMER_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define TIMER_TASKS_START_TASKS_START_Msk (0x1UL << TIMER_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: TIMER_TASKS_STOP */
+/* Description: Stop Timer */
+
+/* Bit 0 : */
+#define TIMER_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define TIMER_TASKS_STOP_TASKS_STOP_Msk (0x1UL << TIMER_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: TIMER_TASKS_COUNT */
+/* Description: Increment Timer (Counter mode only) */
+
+/* Bit 0 : */
+#define TIMER_TASKS_COUNT_TASKS_COUNT_Pos (0UL) /*!< Position of TASKS_COUNT field. */
+#define TIMER_TASKS_COUNT_TASKS_COUNT_Msk (0x1UL << TIMER_TASKS_COUNT_TASKS_COUNT_Pos) /*!< Bit mask of TASKS_COUNT field. */
+
+/* Register: TIMER_TASKS_CLEAR */
+/* Description: Clear time */
+
+/* Bit 0 : */
+#define TIMER_TASKS_CLEAR_TASKS_CLEAR_Pos (0UL) /*!< Position of TASKS_CLEAR field. */
+#define TIMER_TASKS_CLEAR_TASKS_CLEAR_Msk (0x1UL << TIMER_TASKS_CLEAR_TASKS_CLEAR_Pos) /*!< Bit mask of TASKS_CLEAR field. */
+
+/* Register: TIMER_TASKS_SHUTDOWN */
+/* Description: Deprecated register - Shut down timer */
+
+/* Bit 0 : */
+#define TIMER_TASKS_SHUTDOWN_TASKS_SHUTDOWN_Pos (0UL) /*!< Position of TASKS_SHUTDOWN field. */
+#define TIMER_TASKS_SHUTDOWN_TASKS_SHUTDOWN_Msk (0x1UL << TIMER_TASKS_SHUTDOWN_TASKS_SHUTDOWN_Pos) /*!< Bit mask of TASKS_SHUTDOWN field. */
+
+/* Register: TIMER_TASKS_CAPTURE */
+/* Description: Description collection[n]: Capture Timer value to CC[n] register */
+
+/* Bit 0 : */
+#define TIMER_TASKS_CAPTURE_TASKS_CAPTURE_Pos (0UL) /*!< Position of TASKS_CAPTURE field. */
+#define TIMER_TASKS_CAPTURE_TASKS_CAPTURE_Msk (0x1UL << TIMER_TASKS_CAPTURE_TASKS_CAPTURE_Pos) /*!< Bit mask of TASKS_CAPTURE field. */
+
+/* Register: TIMER_EVENTS_COMPARE */
+/* Description: Description collection[n]: Compare event on CC[n] match */
+
+/* Bit 0 : */
+#define TIMER_EVENTS_COMPARE_EVENTS_COMPARE_Pos (0UL) /*!< Position of EVENTS_COMPARE field. */
+#define TIMER_EVENTS_COMPARE_EVENTS_COMPARE_Msk (0x1UL << TIMER_EVENTS_COMPARE_EVENTS_COMPARE_Pos) /*!< Bit mask of EVENTS_COMPARE field. */
+
+/* Register: TIMER_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 13 : Shortcut between COMPARE[5] event and STOP task */
+#define TIMER_SHORTS_COMPARE5_STOP_Pos (13UL) /*!< Position of COMPARE5_STOP field. */
+#define TIMER_SHORTS_COMPARE5_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE5_STOP_Pos) /*!< Bit mask of COMPARE5_STOP field. */
+#define TIMER_SHORTS_COMPARE5_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE5_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 12 : Shortcut between COMPARE[4] event and STOP task */
+#define TIMER_SHORTS_COMPARE4_STOP_Pos (12UL) /*!< Position of COMPARE4_STOP field. */
+#define TIMER_SHORTS_COMPARE4_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE4_STOP_Pos) /*!< Bit mask of COMPARE4_STOP field. */
+#define TIMER_SHORTS_COMPARE4_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE4_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 11 : Shortcut between COMPARE[3] event and STOP task */
+#define TIMER_SHORTS_COMPARE3_STOP_Pos (11UL) /*!< Position of COMPARE3_STOP field. */
+#define TIMER_SHORTS_COMPARE3_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE3_STOP_Pos) /*!< Bit mask of COMPARE3_STOP field. */
+#define TIMER_SHORTS_COMPARE3_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE3_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 10 : Shortcut between COMPARE[2] event and STOP task */
+#define TIMER_SHORTS_COMPARE2_STOP_Pos (10UL) /*!< Position of COMPARE2_STOP field. */
+#define TIMER_SHORTS_COMPARE2_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE2_STOP_Pos) /*!< Bit mask of COMPARE2_STOP field. */
+#define TIMER_SHORTS_COMPARE2_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE2_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 9 : Shortcut between COMPARE[1] event and STOP task */
+#define TIMER_SHORTS_COMPARE1_STOP_Pos (9UL) /*!< Position of COMPARE1_STOP field. */
+#define TIMER_SHORTS_COMPARE1_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE1_STOP_Pos) /*!< Bit mask of COMPARE1_STOP field. */
+#define TIMER_SHORTS_COMPARE1_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE1_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 8 : Shortcut between COMPARE[0] event and STOP task */
+#define TIMER_SHORTS_COMPARE0_STOP_Pos (8UL) /*!< Position of COMPARE0_STOP field. */
+#define TIMER_SHORTS_COMPARE0_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE0_STOP_Pos) /*!< Bit mask of COMPARE0_STOP field. */
+#define TIMER_SHORTS_COMPARE0_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE0_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 5 : Shortcut between COMPARE[5] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE5_CLEAR_Pos (5UL) /*!< Position of COMPARE5_CLEAR field. */
+#define TIMER_SHORTS_COMPARE5_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE5_CLEAR_Pos) /*!< Bit mask of COMPARE5_CLEAR field. */
+#define TIMER_SHORTS_COMPARE5_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE5_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 4 : Shortcut between COMPARE[4] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE4_CLEAR_Pos (4UL) /*!< Position of COMPARE4_CLEAR field. */
+#define TIMER_SHORTS_COMPARE4_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE4_CLEAR_Pos) /*!< Bit mask of COMPARE4_CLEAR field. */
+#define TIMER_SHORTS_COMPARE4_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE4_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between COMPARE[3] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Pos (3UL) /*!< Position of COMPARE3_CLEAR field. */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE3_CLEAR_Pos) /*!< Bit mask of COMPARE3_CLEAR field. */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between COMPARE[2] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Pos (2UL) /*!< Position of COMPARE2_CLEAR field. */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE2_CLEAR_Pos) /*!< Bit mask of COMPARE2_CLEAR field. */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between COMPARE[1] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Pos (1UL) /*!< Position of COMPARE1_CLEAR field. */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE1_CLEAR_Pos) /*!< Bit mask of COMPARE1_CLEAR field. */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between COMPARE[0] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Pos (0UL) /*!< Position of COMPARE0_CLEAR field. */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE0_CLEAR_Pos) /*!< Bit mask of COMPARE0_CLEAR field. */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: TIMER_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 21 : Write '1' to enable interrupt for COMPARE[5] event */
+#define TIMER_INTENSET_COMPARE5_Pos (21UL) /*!< Position of COMPARE5 field. */
+#define TIMER_INTENSET_COMPARE5_Msk (0x1UL << TIMER_INTENSET_COMPARE5_Pos) /*!< Bit mask of COMPARE5 field. */
+#define TIMER_INTENSET_COMPARE5_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE5_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE5_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to enable interrupt for COMPARE[4] event */
+#define TIMER_INTENSET_COMPARE4_Pos (20UL) /*!< Position of COMPARE4 field. */
+#define TIMER_INTENSET_COMPARE4_Msk (0x1UL << TIMER_INTENSET_COMPARE4_Pos) /*!< Bit mask of COMPARE4 field. */
+#define TIMER_INTENSET_COMPARE4_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE4_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE4_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to enable interrupt for COMPARE[3] event */
+#define TIMER_INTENSET_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define TIMER_INTENSET_COMPARE3_Msk (0x1UL << TIMER_INTENSET_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define TIMER_INTENSET_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE3_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to enable interrupt for COMPARE[2] event */
+#define TIMER_INTENSET_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define TIMER_INTENSET_COMPARE2_Msk (0x1UL << TIMER_INTENSET_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define TIMER_INTENSET_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE2_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to enable interrupt for COMPARE[1] event */
+#define TIMER_INTENSET_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define TIMER_INTENSET_COMPARE1_Msk (0x1UL << TIMER_INTENSET_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define TIMER_INTENSET_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE1_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to enable interrupt for COMPARE[0] event */
+#define TIMER_INTENSET_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define TIMER_INTENSET_COMPARE0_Msk (0x1UL << TIMER_INTENSET_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define TIMER_INTENSET_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE0_Set (1UL) /*!< Enable */
+
+/* Register: TIMER_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 21 : Write '1' to disable interrupt for COMPARE[5] event */
+#define TIMER_INTENCLR_COMPARE5_Pos (21UL) /*!< Position of COMPARE5 field. */
+#define TIMER_INTENCLR_COMPARE5_Msk (0x1UL << TIMER_INTENCLR_COMPARE5_Pos) /*!< Bit mask of COMPARE5 field. */
+#define TIMER_INTENCLR_COMPARE5_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE5_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE5_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to disable interrupt for COMPARE[4] event */
+#define TIMER_INTENCLR_COMPARE4_Pos (20UL) /*!< Position of COMPARE4 field. */
+#define TIMER_INTENCLR_COMPARE4_Msk (0x1UL << TIMER_INTENCLR_COMPARE4_Pos) /*!< Bit mask of COMPARE4 field. */
+#define TIMER_INTENCLR_COMPARE4_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE4_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE4_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to disable interrupt for COMPARE[3] event */
+#define TIMER_INTENCLR_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define TIMER_INTENCLR_COMPARE3_Msk (0x1UL << TIMER_INTENCLR_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define TIMER_INTENCLR_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE3_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to disable interrupt for COMPARE[2] event */
+#define TIMER_INTENCLR_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define TIMER_INTENCLR_COMPARE2_Msk (0x1UL << TIMER_INTENCLR_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define TIMER_INTENCLR_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE2_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to disable interrupt for COMPARE[1] event */
+#define TIMER_INTENCLR_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define TIMER_INTENCLR_COMPARE1_Msk (0x1UL << TIMER_INTENCLR_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define TIMER_INTENCLR_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE1_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to disable interrupt for COMPARE[0] event */
+#define TIMER_INTENCLR_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define TIMER_INTENCLR_COMPARE0_Msk (0x1UL << TIMER_INTENCLR_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define TIMER_INTENCLR_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE0_Clear (1UL) /*!< Disable */
+
+/* Register: TIMER_MODE */
+/* Description: Timer mode selection */
+
+/* Bits 1..0 : Timer mode */
+#define TIMER_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define TIMER_MODE_MODE_Msk (0x3UL << TIMER_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define TIMER_MODE_MODE_Timer (0UL) /*!< Select Timer mode */
+#define TIMER_MODE_MODE_Counter (1UL) /*!< Deprecated enumerator - Select Counter mode */
+#define TIMER_MODE_MODE_LowPowerCounter (2UL) /*!< Select Low Power Counter mode */
+
+/* Register: TIMER_BITMODE */
+/* Description: Configure the number of bits used by the TIMER */
+
+/* Bits 1..0 : Timer bit width */
+#define TIMER_BITMODE_BITMODE_Pos (0UL) /*!< Position of BITMODE field. */
+#define TIMER_BITMODE_BITMODE_Msk (0x3UL << TIMER_BITMODE_BITMODE_Pos) /*!< Bit mask of BITMODE field. */
+#define TIMER_BITMODE_BITMODE_16Bit (0UL) /*!< 16 bit timer bit width */
+#define TIMER_BITMODE_BITMODE_08Bit (1UL) /*!< 8 bit timer bit width */
+#define TIMER_BITMODE_BITMODE_24Bit (2UL) /*!< 24 bit timer bit width */
+#define TIMER_BITMODE_BITMODE_32Bit (3UL) /*!< 32 bit timer bit width */
+
+/* Register: TIMER_PRESCALER */
+/* Description: Timer prescaler register */
+
+/* Bits 3..0 : Prescaler value */
+#define TIMER_PRESCALER_PRESCALER_Pos (0UL) /*!< Position of PRESCALER field. */
+#define TIMER_PRESCALER_PRESCALER_Msk (0xFUL << TIMER_PRESCALER_PRESCALER_Pos) /*!< Bit mask of PRESCALER field. */
+
+/* Register: TIMER_CC */
+/* Description: Description collection[n]: Capture/Compare register n */
+
+/* Bits 31..0 : Capture/Compare value */
+#define TIMER_CC_CC_Pos (0UL) /*!< Position of CC field. */
+#define TIMER_CC_CC_Msk (0xFFFFFFFFUL << TIMER_CC_CC_Pos) /*!< Bit mask of CC field. */
+
+
+/* Peripheral: TWI */
+/* Description: I2C compatible Two-Wire Interface 0 */
+
+/* Register: TWI_TASKS_STARTRX */
+/* Description: Start TWI receive sequence */
+
+/* Bit 0 : */
+#define TWI_TASKS_STARTRX_TASKS_STARTRX_Pos (0UL) /*!< Position of TASKS_STARTRX field. */
+#define TWI_TASKS_STARTRX_TASKS_STARTRX_Msk (0x1UL << TWI_TASKS_STARTRX_TASKS_STARTRX_Pos) /*!< Bit mask of TASKS_STARTRX field. */
+
+/* Register: TWI_TASKS_STARTTX */
+/* Description: Start TWI transmit sequence */
+
+/* Bit 0 : */
+#define TWI_TASKS_STARTTX_TASKS_STARTTX_Pos (0UL) /*!< Position of TASKS_STARTTX field. */
+#define TWI_TASKS_STARTTX_TASKS_STARTTX_Msk (0x1UL << TWI_TASKS_STARTTX_TASKS_STARTTX_Pos) /*!< Bit mask of TASKS_STARTTX field. */
+
+/* Register: TWI_TASKS_STOP */
+/* Description: Stop TWI transaction */
+
+/* Bit 0 : */
+#define TWI_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define TWI_TASKS_STOP_TASKS_STOP_Msk (0x1UL << TWI_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: TWI_TASKS_SUSPEND */
+/* Description: Suspend TWI transaction */
+
+/* Bit 0 : */
+#define TWI_TASKS_SUSPEND_TASKS_SUSPEND_Pos (0UL) /*!< Position of TASKS_SUSPEND field. */
+#define TWI_TASKS_SUSPEND_TASKS_SUSPEND_Msk (0x1UL << TWI_TASKS_SUSPEND_TASKS_SUSPEND_Pos) /*!< Bit mask of TASKS_SUSPEND field. */
+
+/* Register: TWI_TASKS_RESUME */
+/* Description: Resume TWI transaction */
+
+/* Bit 0 : */
+#define TWI_TASKS_RESUME_TASKS_RESUME_Pos (0UL) /*!< Position of TASKS_RESUME field. */
+#define TWI_TASKS_RESUME_TASKS_RESUME_Msk (0x1UL << TWI_TASKS_RESUME_TASKS_RESUME_Pos) /*!< Bit mask of TASKS_RESUME field. */
+
+/* Register: TWI_EVENTS_STOPPED */
+/* Description: TWI stopped */
+
+/* Bit 0 : */
+#define TWI_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define TWI_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << TWI_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: TWI_EVENTS_RXDREADY */
+/* Description: TWI RXD byte received */
+
+/* Bit 0 : */
+#define TWI_EVENTS_RXDREADY_EVENTS_RXDREADY_Pos (0UL) /*!< Position of EVENTS_RXDREADY field. */
+#define TWI_EVENTS_RXDREADY_EVENTS_RXDREADY_Msk (0x1UL << TWI_EVENTS_RXDREADY_EVENTS_RXDREADY_Pos) /*!< Bit mask of EVENTS_RXDREADY field. */
+
+/* Register: TWI_EVENTS_TXDSENT */
+/* Description: TWI TXD byte sent */
+
+/* Bit 0 : */
+#define TWI_EVENTS_TXDSENT_EVENTS_TXDSENT_Pos (0UL) /*!< Position of EVENTS_TXDSENT field. */
+#define TWI_EVENTS_TXDSENT_EVENTS_TXDSENT_Msk (0x1UL << TWI_EVENTS_TXDSENT_EVENTS_TXDSENT_Pos) /*!< Bit mask of EVENTS_TXDSENT field. */
+
+/* Register: TWI_EVENTS_ERROR */
+/* Description: TWI error */
+
+/* Bit 0 : */
+#define TWI_EVENTS_ERROR_EVENTS_ERROR_Pos (0UL) /*!< Position of EVENTS_ERROR field. */
+#define TWI_EVENTS_ERROR_EVENTS_ERROR_Msk (0x1UL << TWI_EVENTS_ERROR_EVENTS_ERROR_Pos) /*!< Bit mask of EVENTS_ERROR field. */
+
+/* Register: TWI_EVENTS_BB */
+/* Description: TWI byte boundary, generated before each byte that is sent or received */
+
+/* Bit 0 : */
+#define TWI_EVENTS_BB_EVENTS_BB_Pos (0UL) /*!< Position of EVENTS_BB field. */
+#define TWI_EVENTS_BB_EVENTS_BB_Msk (0x1UL << TWI_EVENTS_BB_EVENTS_BB_Pos) /*!< Bit mask of EVENTS_BB field. */
+
+/* Register: TWI_EVENTS_SUSPENDED */
+/* Description: TWI entered the suspended state */
+
+/* Bit 0 : */
+#define TWI_EVENTS_SUSPENDED_EVENTS_SUSPENDED_Pos (0UL) /*!< Position of EVENTS_SUSPENDED field. */
+#define TWI_EVENTS_SUSPENDED_EVENTS_SUSPENDED_Msk (0x1UL << TWI_EVENTS_SUSPENDED_EVENTS_SUSPENDED_Pos) /*!< Bit mask of EVENTS_SUSPENDED field. */
+
+/* Register: TWI_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 1 : Shortcut between BB event and STOP task */
+#define TWI_SHORTS_BB_STOP_Pos (1UL) /*!< Position of BB_STOP field. */
+#define TWI_SHORTS_BB_STOP_Msk (0x1UL << TWI_SHORTS_BB_STOP_Pos) /*!< Bit mask of BB_STOP field. */
+#define TWI_SHORTS_BB_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TWI_SHORTS_BB_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between BB event and SUSPEND task */
+#define TWI_SHORTS_BB_SUSPEND_Pos (0UL) /*!< Position of BB_SUSPEND field. */
+#define TWI_SHORTS_BB_SUSPEND_Msk (0x1UL << TWI_SHORTS_BB_SUSPEND_Pos) /*!< Bit mask of BB_SUSPEND field. */
+#define TWI_SHORTS_BB_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWI_SHORTS_BB_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: TWI_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 18 : Write '1' to enable interrupt for SUSPENDED event */
+#define TWI_INTENSET_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWI_INTENSET_SUSPENDED_Msk (0x1UL << TWI_INTENSET_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWI_INTENSET_SUSPENDED_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENSET_SUSPENDED_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENSET_SUSPENDED_Set (1UL) /*!< Enable */
+
+/* Bit 14 : Write '1' to enable interrupt for BB event */
+#define TWI_INTENSET_BB_Pos (14UL) /*!< Position of BB field. */
+#define TWI_INTENSET_BB_Msk (0x1UL << TWI_INTENSET_BB_Pos) /*!< Bit mask of BB field. */
+#define TWI_INTENSET_BB_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENSET_BB_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENSET_BB_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to enable interrupt for ERROR event */
+#define TWI_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWI_INTENSET_ERROR_Msk (0x1UL << TWI_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWI_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to enable interrupt for TXDSENT event */
+#define TWI_INTENSET_TXDSENT_Pos (7UL) /*!< Position of TXDSENT field. */
+#define TWI_INTENSET_TXDSENT_Msk (0x1UL << TWI_INTENSET_TXDSENT_Pos) /*!< Bit mask of TXDSENT field. */
+#define TWI_INTENSET_TXDSENT_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENSET_TXDSENT_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENSET_TXDSENT_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for RXDREADY event */
+#define TWI_INTENSET_RXDREADY_Pos (2UL) /*!< Position of RXDREADY field. */
+#define TWI_INTENSET_RXDREADY_Msk (0x1UL << TWI_INTENSET_RXDREADY_Pos) /*!< Bit mask of RXDREADY field. */
+#define TWI_INTENSET_RXDREADY_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENSET_RXDREADY_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENSET_RXDREADY_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for STOPPED event */
+#define TWI_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWI_INTENSET_STOPPED_Msk (0x1UL << TWI_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWI_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: TWI_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 18 : Write '1' to disable interrupt for SUSPENDED event */
+#define TWI_INTENCLR_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWI_INTENCLR_SUSPENDED_Msk (0x1UL << TWI_INTENCLR_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWI_INTENCLR_SUSPENDED_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENCLR_SUSPENDED_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENCLR_SUSPENDED_Clear (1UL) /*!< Disable */
+
+/* Bit 14 : Write '1' to disable interrupt for BB event */
+#define TWI_INTENCLR_BB_Pos (14UL) /*!< Position of BB field. */
+#define TWI_INTENCLR_BB_Msk (0x1UL << TWI_INTENCLR_BB_Pos) /*!< Bit mask of BB field. */
+#define TWI_INTENCLR_BB_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENCLR_BB_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENCLR_BB_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to disable interrupt for ERROR event */
+#define TWI_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWI_INTENCLR_ERROR_Msk (0x1UL << TWI_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWI_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to disable interrupt for TXDSENT event */
+#define TWI_INTENCLR_TXDSENT_Pos (7UL) /*!< Position of TXDSENT field. */
+#define TWI_INTENCLR_TXDSENT_Msk (0x1UL << TWI_INTENCLR_TXDSENT_Pos) /*!< Bit mask of TXDSENT field. */
+#define TWI_INTENCLR_TXDSENT_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENCLR_TXDSENT_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENCLR_TXDSENT_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for RXDREADY event */
+#define TWI_INTENCLR_RXDREADY_Pos (2UL) /*!< Position of RXDREADY field. */
+#define TWI_INTENCLR_RXDREADY_Msk (0x1UL << TWI_INTENCLR_RXDREADY_Pos) /*!< Bit mask of RXDREADY field. */
+#define TWI_INTENCLR_RXDREADY_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENCLR_RXDREADY_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENCLR_RXDREADY_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for STOPPED event */
+#define TWI_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWI_INTENCLR_STOPPED_Msk (0x1UL << TWI_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWI_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: TWI_ERRORSRC */
+/* Description: Error source */
+
+/* Bit 2 : NACK received after sending a data byte (write '1' to clear) */
+#define TWI_ERRORSRC_DNACK_Pos (2UL) /*!< Position of DNACK field. */
+#define TWI_ERRORSRC_DNACK_Msk (0x1UL << TWI_ERRORSRC_DNACK_Pos) /*!< Bit mask of DNACK field. */
+#define TWI_ERRORSRC_DNACK_NotPresent (0UL) /*!< Read: error not present */
+#define TWI_ERRORSRC_DNACK_Present (1UL) /*!< Read: error present */
+
+/* Bit 1 : NACK received after sending the address (write '1' to clear) */
+#define TWI_ERRORSRC_ANACK_Pos (1UL) /*!< Position of ANACK field. */
+#define TWI_ERRORSRC_ANACK_Msk (0x1UL << TWI_ERRORSRC_ANACK_Pos) /*!< Bit mask of ANACK field. */
+#define TWI_ERRORSRC_ANACK_NotPresent (0UL) /*!< Read: error not present */
+#define TWI_ERRORSRC_ANACK_Present (1UL) /*!< Read: error present */
+
+/* Bit 0 : Overrun error */
+#define TWI_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
+#define TWI_ERRORSRC_OVERRUN_Msk (0x1UL << TWI_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define TWI_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: no overrun occured */
+#define TWI_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: overrun occured */
+
+/* Register: TWI_ENABLE */
+/* Description: Enable TWI */
+
+/* Bits 3..0 : Enable or disable TWI */
+#define TWI_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define TWI_ENABLE_ENABLE_Msk (0xFUL << TWI_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define TWI_ENABLE_ENABLE_Disabled (0UL) /*!< Disable TWI */
+#define TWI_ENABLE_ENABLE_Enabled (5UL) /*!< Enable TWI */
+
+/* Register: TWI_PSEL_SCL */
+/* Description: Pin select for SCL */
+
+/* Bit 31 : Connection */
+#define TWI_PSEL_SCL_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWI_PSEL_SCL_CONNECT_Msk (0x1UL << TWI_PSEL_SCL_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWI_PSEL_SCL_CONNECT_Connected (0UL) /*!< Connect */
+#define TWI_PSEL_SCL_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define TWI_PSEL_SCL_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define TWI_PSEL_SCL_PORT_Msk (0x1UL << TWI_PSEL_SCL_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define TWI_PSEL_SCL_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWI_PSEL_SCL_PIN_Msk (0x1FUL << TWI_PSEL_SCL_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWI_PSEL_SDA */
+/* Description: Pin select for SDA */
+
+/* Bit 31 : Connection */
+#define TWI_PSEL_SDA_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWI_PSEL_SDA_CONNECT_Msk (0x1UL << TWI_PSEL_SDA_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWI_PSEL_SDA_CONNECT_Connected (0UL) /*!< Connect */
+#define TWI_PSEL_SDA_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define TWI_PSEL_SDA_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define TWI_PSEL_SDA_PORT_Msk (0x1UL << TWI_PSEL_SDA_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define TWI_PSEL_SDA_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWI_PSEL_SDA_PIN_Msk (0x1FUL << TWI_PSEL_SDA_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWI_RXD */
+/* Description: RXD register */
+
+/* Bits 7..0 : RXD register */
+#define TWI_RXD_RXD_Pos (0UL) /*!< Position of RXD field. */
+#define TWI_RXD_RXD_Msk (0xFFUL << TWI_RXD_RXD_Pos) /*!< Bit mask of RXD field. */
+
+/* Register: TWI_TXD */
+/* Description: TXD register */
+
+/* Bits 7..0 : TXD register */
+#define TWI_TXD_TXD_Pos (0UL) /*!< Position of TXD field. */
+#define TWI_TXD_TXD_Msk (0xFFUL << TWI_TXD_TXD_Pos) /*!< Bit mask of TXD field. */
+
+/* Register: TWI_FREQUENCY */
+/* Description: TWI frequency. Accuracy depends on the HFCLK source selected. */
+
+/* Bits 31..0 : TWI master clock frequency */
+#define TWI_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define TWI_FREQUENCY_FREQUENCY_Msk (0xFFFFFFFFUL << TWI_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+#define TWI_FREQUENCY_FREQUENCY_K100 (0x01980000UL) /*!< 100 kbps */
+#define TWI_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250 kbps */
+#define TWI_FREQUENCY_FREQUENCY_K400 (0x06680000UL) /*!< 400 kbps (actual rate 410.256 kbps) */
+
+/* Register: TWI_ADDRESS */
+/* Description: Address used in the TWI transfer */
+
+/* Bits 6..0 : Address used in the TWI transfer */
+#define TWI_ADDRESS_ADDRESS_Pos (0UL) /*!< Position of ADDRESS field. */
+#define TWI_ADDRESS_ADDRESS_Msk (0x7FUL << TWI_ADDRESS_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+
+
+/* Peripheral: TWIM */
+/* Description: I2C compatible Two-Wire Master Interface with EasyDMA 0 */
+
+/* Register: TWIM_TASKS_STARTRX */
+/* Description: Start TWI receive sequence */
+
+/* Bit 0 : */
+#define TWIM_TASKS_STARTRX_TASKS_STARTRX_Pos (0UL) /*!< Position of TASKS_STARTRX field. */
+#define TWIM_TASKS_STARTRX_TASKS_STARTRX_Msk (0x1UL << TWIM_TASKS_STARTRX_TASKS_STARTRX_Pos) /*!< Bit mask of TASKS_STARTRX field. */
+
+/* Register: TWIM_TASKS_STARTTX */
+/* Description: Start TWI transmit sequence */
+
+/* Bit 0 : */
+#define TWIM_TASKS_STARTTX_TASKS_STARTTX_Pos (0UL) /*!< Position of TASKS_STARTTX field. */
+#define TWIM_TASKS_STARTTX_TASKS_STARTTX_Msk (0x1UL << TWIM_TASKS_STARTTX_TASKS_STARTTX_Pos) /*!< Bit mask of TASKS_STARTTX field. */
+
+/* Register: TWIM_TASKS_STOP */
+/* Description: Stop TWI transaction. Must be issued while the TWI master is not suspended. */
+
+/* Bit 0 : */
+#define TWIM_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define TWIM_TASKS_STOP_TASKS_STOP_Msk (0x1UL << TWIM_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: TWIM_TASKS_SUSPEND */
+/* Description: Suspend TWI transaction */
+
+/* Bit 0 : */
+#define TWIM_TASKS_SUSPEND_TASKS_SUSPEND_Pos (0UL) /*!< Position of TASKS_SUSPEND field. */
+#define TWIM_TASKS_SUSPEND_TASKS_SUSPEND_Msk (0x1UL << TWIM_TASKS_SUSPEND_TASKS_SUSPEND_Pos) /*!< Bit mask of TASKS_SUSPEND field. */
+
+/* Register: TWIM_TASKS_RESUME */
+/* Description: Resume TWI transaction */
+
+/* Bit 0 : */
+#define TWIM_TASKS_RESUME_TASKS_RESUME_Pos (0UL) /*!< Position of TASKS_RESUME field. */
+#define TWIM_TASKS_RESUME_TASKS_RESUME_Msk (0x1UL << TWIM_TASKS_RESUME_TASKS_RESUME_Pos) /*!< Bit mask of TASKS_RESUME field. */
+
+/* Register: TWIM_EVENTS_STOPPED */
+/* Description: TWI stopped */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define TWIM_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << TWIM_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: TWIM_EVENTS_ERROR */
+/* Description: TWI error */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_ERROR_EVENTS_ERROR_Pos (0UL) /*!< Position of EVENTS_ERROR field. */
+#define TWIM_EVENTS_ERROR_EVENTS_ERROR_Msk (0x1UL << TWIM_EVENTS_ERROR_EVENTS_ERROR_Pos) /*!< Bit mask of EVENTS_ERROR field. */
+
+/* Register: TWIM_EVENTS_SUSPENDED */
+/* Description: Last byte has been sent out after the SUSPEND task has been issued, TWI traffic is now suspended. */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_SUSPENDED_EVENTS_SUSPENDED_Pos (0UL) /*!< Position of EVENTS_SUSPENDED field. */
+#define TWIM_EVENTS_SUSPENDED_EVENTS_SUSPENDED_Msk (0x1UL << TWIM_EVENTS_SUSPENDED_EVENTS_SUSPENDED_Pos) /*!< Bit mask of EVENTS_SUSPENDED field. */
+
+/* Register: TWIM_EVENTS_RXSTARTED */
+/* Description: Receive sequence started */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Pos (0UL) /*!< Position of EVENTS_RXSTARTED field. */
+#define TWIM_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Msk (0x1UL << TWIM_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Pos) /*!< Bit mask of EVENTS_RXSTARTED field. */
+
+/* Register: TWIM_EVENTS_TXSTARTED */
+/* Description: Transmit sequence started */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Pos (0UL) /*!< Position of EVENTS_TXSTARTED field. */
+#define TWIM_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Msk (0x1UL << TWIM_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Pos) /*!< Bit mask of EVENTS_TXSTARTED field. */
+
+/* Register: TWIM_EVENTS_LASTRX */
+/* Description: Byte boundary, starting to receive the last byte */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_LASTRX_EVENTS_LASTRX_Pos (0UL) /*!< Position of EVENTS_LASTRX field. */
+#define TWIM_EVENTS_LASTRX_EVENTS_LASTRX_Msk (0x1UL << TWIM_EVENTS_LASTRX_EVENTS_LASTRX_Pos) /*!< Bit mask of EVENTS_LASTRX field. */
+
+/* Register: TWIM_EVENTS_LASTTX */
+/* Description: Byte boundary, starting to transmit the last byte */
+
+/* Bit 0 : */
+#define TWIM_EVENTS_LASTTX_EVENTS_LASTTX_Pos (0UL) /*!< Position of EVENTS_LASTTX field. */
+#define TWIM_EVENTS_LASTTX_EVENTS_LASTTX_Msk (0x1UL << TWIM_EVENTS_LASTTX_EVENTS_LASTTX_Pos) /*!< Bit mask of EVENTS_LASTTX field. */
+
+/* Register: TWIM_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 12 : Shortcut between LASTRX event and STOP task */
+#define TWIM_SHORTS_LASTRX_STOP_Pos (12UL) /*!< Position of LASTRX_STOP field. */
+#define TWIM_SHORTS_LASTRX_STOP_Msk (0x1UL << TWIM_SHORTS_LASTRX_STOP_Pos) /*!< Bit mask of LASTRX_STOP field. */
+#define TWIM_SHORTS_LASTRX_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTRX_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 11 : Shortcut between LASTRX event and SUSPEND task */
+#define TWIM_SHORTS_LASTRX_SUSPEND_Pos (11UL) /*!< Position of LASTRX_SUSPEND field. */
+#define TWIM_SHORTS_LASTRX_SUSPEND_Msk (0x1UL << TWIM_SHORTS_LASTRX_SUSPEND_Pos) /*!< Bit mask of LASTRX_SUSPEND field. */
+#define TWIM_SHORTS_LASTRX_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTRX_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 10 : Shortcut between LASTRX event and STARTTX task */
+#define TWIM_SHORTS_LASTRX_STARTTX_Pos (10UL) /*!< Position of LASTRX_STARTTX field. */
+#define TWIM_SHORTS_LASTRX_STARTTX_Msk (0x1UL << TWIM_SHORTS_LASTRX_STARTTX_Pos) /*!< Bit mask of LASTRX_STARTTX field. */
+#define TWIM_SHORTS_LASTRX_STARTTX_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTRX_STARTTX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 9 : Shortcut between LASTTX event and STOP task */
+#define TWIM_SHORTS_LASTTX_STOP_Pos (9UL) /*!< Position of LASTTX_STOP field. */
+#define TWIM_SHORTS_LASTTX_STOP_Msk (0x1UL << TWIM_SHORTS_LASTTX_STOP_Pos) /*!< Bit mask of LASTTX_STOP field. */
+#define TWIM_SHORTS_LASTTX_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTTX_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 8 : Shortcut between LASTTX event and SUSPEND task */
+#define TWIM_SHORTS_LASTTX_SUSPEND_Pos (8UL) /*!< Position of LASTTX_SUSPEND field. */
+#define TWIM_SHORTS_LASTTX_SUSPEND_Msk (0x1UL << TWIM_SHORTS_LASTTX_SUSPEND_Pos) /*!< Bit mask of LASTTX_SUSPEND field. */
+#define TWIM_SHORTS_LASTTX_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTTX_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 7 : Shortcut between LASTTX event and STARTRX task */
+#define TWIM_SHORTS_LASTTX_STARTRX_Pos (7UL) /*!< Position of LASTTX_STARTRX field. */
+#define TWIM_SHORTS_LASTTX_STARTRX_Msk (0x1UL << TWIM_SHORTS_LASTTX_STARTRX_Pos) /*!< Bit mask of LASTTX_STARTRX field. */
+#define TWIM_SHORTS_LASTTX_STARTRX_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTTX_STARTRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: TWIM_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 24 : Enable or disable interrupt for LASTTX event */
+#define TWIM_INTEN_LASTTX_Pos (24UL) /*!< Position of LASTTX field. */
+#define TWIM_INTEN_LASTTX_Msk (0x1UL << TWIM_INTEN_LASTTX_Pos) /*!< Bit mask of LASTTX field. */
+#define TWIM_INTEN_LASTTX_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_LASTTX_Enabled (1UL) /*!< Enable */
+
+/* Bit 23 : Enable or disable interrupt for LASTRX event */
+#define TWIM_INTEN_LASTRX_Pos (23UL) /*!< Position of LASTRX field. */
+#define TWIM_INTEN_LASTRX_Msk (0x1UL << TWIM_INTEN_LASTRX_Pos) /*!< Bit mask of LASTRX field. */
+#define TWIM_INTEN_LASTRX_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_LASTRX_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for TXSTARTED event */
+#define TWIM_INTEN_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIM_INTEN_TXSTARTED_Msk (0x1UL << TWIM_INTEN_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIM_INTEN_TXSTARTED_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_TXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for RXSTARTED event */
+#define TWIM_INTEN_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIM_INTEN_RXSTARTED_Msk (0x1UL << TWIM_INTEN_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIM_INTEN_RXSTARTED_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_RXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 18 : Enable or disable interrupt for SUSPENDED event */
+#define TWIM_INTEN_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWIM_INTEN_SUSPENDED_Msk (0x1UL << TWIM_INTEN_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWIM_INTEN_SUSPENDED_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_SUSPENDED_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for ERROR event */
+#define TWIM_INTEN_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIM_INTEN_ERROR_Msk (0x1UL << TWIM_INTEN_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIM_INTEN_ERROR_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_ERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STOPPED event */
+#define TWIM_INTEN_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIM_INTEN_STOPPED_Msk (0x1UL << TWIM_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIM_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Register: TWIM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 24 : Write '1' to enable interrupt for LASTTX event */
+#define TWIM_INTENSET_LASTTX_Pos (24UL) /*!< Position of LASTTX field. */
+#define TWIM_INTENSET_LASTTX_Msk (0x1UL << TWIM_INTENSET_LASTTX_Pos) /*!< Bit mask of LASTTX field. */
+#define TWIM_INTENSET_LASTTX_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_LASTTX_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_LASTTX_Set (1UL) /*!< Enable */
+
+/* Bit 23 : Write '1' to enable interrupt for LASTRX event */
+#define TWIM_INTENSET_LASTRX_Pos (23UL) /*!< Position of LASTRX field. */
+#define TWIM_INTENSET_LASTRX_Msk (0x1UL << TWIM_INTENSET_LASTRX_Pos) /*!< Bit mask of LASTRX field. */
+#define TWIM_INTENSET_LASTRX_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_LASTRX_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_LASTRX_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to enable interrupt for TXSTARTED event */
+#define TWIM_INTENSET_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIM_INTENSET_TXSTARTED_Msk (0x1UL << TWIM_INTENSET_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIM_INTENSET_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_TXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to enable interrupt for RXSTARTED event */
+#define TWIM_INTENSET_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIM_INTENSET_RXSTARTED_Msk (0x1UL << TWIM_INTENSET_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIM_INTENSET_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_RXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to enable interrupt for SUSPENDED event */
+#define TWIM_INTENSET_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWIM_INTENSET_SUSPENDED_Msk (0x1UL << TWIM_INTENSET_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWIM_INTENSET_SUSPENDED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_SUSPENDED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_SUSPENDED_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to enable interrupt for ERROR event */
+#define TWIM_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIM_INTENSET_ERROR_Msk (0x1UL << TWIM_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIM_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for STOPPED event */
+#define TWIM_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIM_INTENSET_STOPPED_Msk (0x1UL << TWIM_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIM_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: TWIM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 24 : Write '1' to disable interrupt for LASTTX event */
+#define TWIM_INTENCLR_LASTTX_Pos (24UL) /*!< Position of LASTTX field. */
+#define TWIM_INTENCLR_LASTTX_Msk (0x1UL << TWIM_INTENCLR_LASTTX_Pos) /*!< Bit mask of LASTTX field. */
+#define TWIM_INTENCLR_LASTTX_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_LASTTX_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_LASTTX_Clear (1UL) /*!< Disable */
+
+/* Bit 23 : Write '1' to disable interrupt for LASTRX event */
+#define TWIM_INTENCLR_LASTRX_Pos (23UL) /*!< Position of LASTRX field. */
+#define TWIM_INTENCLR_LASTRX_Msk (0x1UL << TWIM_INTENCLR_LASTRX_Pos) /*!< Bit mask of LASTRX field. */
+#define TWIM_INTENCLR_LASTRX_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_LASTRX_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_LASTRX_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to disable interrupt for TXSTARTED event */
+#define TWIM_INTENCLR_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIM_INTENCLR_TXSTARTED_Msk (0x1UL << TWIM_INTENCLR_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIM_INTENCLR_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_TXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to disable interrupt for RXSTARTED event */
+#define TWIM_INTENCLR_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIM_INTENCLR_RXSTARTED_Msk (0x1UL << TWIM_INTENCLR_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIM_INTENCLR_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_RXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to disable interrupt for SUSPENDED event */
+#define TWIM_INTENCLR_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWIM_INTENCLR_SUSPENDED_Msk (0x1UL << TWIM_INTENCLR_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWIM_INTENCLR_SUSPENDED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_SUSPENDED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_SUSPENDED_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to disable interrupt for ERROR event */
+#define TWIM_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIM_INTENCLR_ERROR_Msk (0x1UL << TWIM_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIM_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for STOPPED event */
+#define TWIM_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIM_INTENCLR_STOPPED_Msk (0x1UL << TWIM_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIM_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: TWIM_ERRORSRC */
+/* Description: Error source */
+
+/* Bit 2 : NACK received after sending a data byte (write '1' to clear) */
+#define TWIM_ERRORSRC_DNACK_Pos (2UL) /*!< Position of DNACK field. */
+#define TWIM_ERRORSRC_DNACK_Msk (0x1UL << TWIM_ERRORSRC_DNACK_Pos) /*!< Bit mask of DNACK field. */
+#define TWIM_ERRORSRC_DNACK_NotReceived (0UL) /*!< Error did not occur */
+#define TWIM_ERRORSRC_DNACK_Received (1UL) /*!< Error occurred */
+
+/* Bit 1 : NACK received after sending the address (write '1' to clear) */
+#define TWIM_ERRORSRC_ANACK_Pos (1UL) /*!< Position of ANACK field. */
+#define TWIM_ERRORSRC_ANACK_Msk (0x1UL << TWIM_ERRORSRC_ANACK_Pos) /*!< Bit mask of ANACK field. */
+#define TWIM_ERRORSRC_ANACK_NotReceived (0UL) /*!< Error did not occur */
+#define TWIM_ERRORSRC_ANACK_Received (1UL) /*!< Error occurred */
+
+/* Bit 0 : Overrun error */
+#define TWIM_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
+#define TWIM_ERRORSRC_OVERRUN_Msk (0x1UL << TWIM_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define TWIM_ERRORSRC_OVERRUN_NotReceived (0UL) /*!< Error did not occur */
+#define TWIM_ERRORSRC_OVERRUN_Received (1UL) /*!< Error occurred */
+
+/* Register: TWIM_ENABLE */
+/* Description: Enable TWIM */
+
+/* Bits 3..0 : Enable or disable TWIM */
+#define TWIM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define TWIM_ENABLE_ENABLE_Msk (0xFUL << TWIM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define TWIM_ENABLE_ENABLE_Disabled (0UL) /*!< Disable TWIM */
+#define TWIM_ENABLE_ENABLE_Enabled (6UL) /*!< Enable TWIM */
+
+/* Register: TWIM_PSEL_SCL */
+/* Description: Pin select for SCL signal */
+
+/* Bit 31 : Connection */
+#define TWIM_PSEL_SCL_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWIM_PSEL_SCL_CONNECT_Msk (0x1UL << TWIM_PSEL_SCL_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWIM_PSEL_SCL_CONNECT_Connected (0UL) /*!< Connect */
+#define TWIM_PSEL_SCL_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define TWIM_PSEL_SCL_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define TWIM_PSEL_SCL_PORT_Msk (0x1UL << TWIM_PSEL_SCL_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define TWIM_PSEL_SCL_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWIM_PSEL_SCL_PIN_Msk (0x1FUL << TWIM_PSEL_SCL_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWIM_PSEL_SDA */
+/* Description: Pin select for SDA signal */
+
+/* Bit 31 : Connection */
+#define TWIM_PSEL_SDA_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWIM_PSEL_SDA_CONNECT_Msk (0x1UL << TWIM_PSEL_SDA_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWIM_PSEL_SDA_CONNECT_Connected (0UL) /*!< Connect */
+#define TWIM_PSEL_SDA_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define TWIM_PSEL_SDA_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define TWIM_PSEL_SDA_PORT_Msk (0x1UL << TWIM_PSEL_SDA_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define TWIM_PSEL_SDA_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWIM_PSEL_SDA_PIN_Msk (0x1FUL << TWIM_PSEL_SDA_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWIM_FREQUENCY */
+/* Description: TWI frequency. Accuracy depends on the HFCLK source selected. */
+
+/* Bits 31..0 : TWI master clock frequency */
+#define TWIM_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define TWIM_FREQUENCY_FREQUENCY_Msk (0xFFFFFFFFUL << TWIM_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+#define TWIM_FREQUENCY_FREQUENCY_K100 (0x01980000UL) /*!< 100 kbps */
+#define TWIM_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250 kbps */
+#define TWIM_FREQUENCY_FREQUENCY_K400 (0x06400000UL) /*!< 400 kbps */
+
+/* Register: TWIM_RXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define TWIM_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define TWIM_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << TWIM_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: TWIM_RXD_MAXCNT */
+/* Description: Maximum number of bytes in receive buffer */
+
+/* Bits 15..0 : Maximum number of bytes in receive buffer */
+#define TWIM_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define TWIM_RXD_MAXCNT_MAXCNT_Msk (0xFFFFUL << TWIM_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: TWIM_RXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 15..0 : Number of bytes transferred in the last transaction. In case of NACK error, includes the NACK'ed byte. */
+#define TWIM_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define TWIM_RXD_AMOUNT_AMOUNT_Msk (0xFFFFUL << TWIM_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: TWIM_RXD_LIST */
+/* Description: EasyDMA list type */
+
+/* Bits 2..0 : List type */
+#define TWIM_RXD_LIST_LIST_Pos (0UL) /*!< Position of LIST field. */
+#define TWIM_RXD_LIST_LIST_Msk (0x7UL << TWIM_RXD_LIST_LIST_Pos) /*!< Bit mask of LIST field. */
+#define TWIM_RXD_LIST_LIST_Disabled (0UL) /*!< Disable EasyDMA list */
+#define TWIM_RXD_LIST_LIST_ArrayList (1UL) /*!< Use array list */
+
+/* Register: TWIM_TXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define TWIM_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define TWIM_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << TWIM_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: TWIM_TXD_MAXCNT */
+/* Description: Maximum number of bytes in transmit buffer */
+
+/* Bits 15..0 : Maximum number of bytes in transmit buffer */
+#define TWIM_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define TWIM_TXD_MAXCNT_MAXCNT_Msk (0xFFFFUL << TWIM_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: TWIM_TXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 15..0 : Number of bytes transferred in the last transaction. In case of NACK error, includes the NACK'ed byte. */
+#define TWIM_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define TWIM_TXD_AMOUNT_AMOUNT_Msk (0xFFFFUL << TWIM_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: TWIM_TXD_LIST */
+/* Description: EasyDMA list type */
+
+/* Bits 2..0 : List type */
+#define TWIM_TXD_LIST_LIST_Pos (0UL) /*!< Position of LIST field. */
+#define TWIM_TXD_LIST_LIST_Msk (0x7UL << TWIM_TXD_LIST_LIST_Pos) /*!< Bit mask of LIST field. */
+#define TWIM_TXD_LIST_LIST_Disabled (0UL) /*!< Disable EasyDMA list */
+#define TWIM_TXD_LIST_LIST_ArrayList (1UL) /*!< Use array list */
+
+/* Register: TWIM_ADDRESS */
+/* Description: Address used in the TWI transfer */
+
+/* Bits 6..0 : Address used in the TWI transfer */
+#define TWIM_ADDRESS_ADDRESS_Pos (0UL) /*!< Position of ADDRESS field. */
+#define TWIM_ADDRESS_ADDRESS_Msk (0x7FUL << TWIM_ADDRESS_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+
+
+/* Peripheral: TWIS */
+/* Description: I2C compatible Two-Wire Slave Interface with EasyDMA 0 */
+
+/* Register: TWIS_TASKS_STOP */
+/* Description: Stop TWI transaction */
+
+/* Bit 0 : */
+#define TWIS_TASKS_STOP_TASKS_STOP_Pos (0UL) /*!< Position of TASKS_STOP field. */
+#define TWIS_TASKS_STOP_TASKS_STOP_Msk (0x1UL << TWIS_TASKS_STOP_TASKS_STOP_Pos) /*!< Bit mask of TASKS_STOP field. */
+
+/* Register: TWIS_TASKS_SUSPEND */
+/* Description: Suspend TWI transaction */
+
+/* Bit 0 : */
+#define TWIS_TASKS_SUSPEND_TASKS_SUSPEND_Pos (0UL) /*!< Position of TASKS_SUSPEND field. */
+#define TWIS_TASKS_SUSPEND_TASKS_SUSPEND_Msk (0x1UL << TWIS_TASKS_SUSPEND_TASKS_SUSPEND_Pos) /*!< Bit mask of TASKS_SUSPEND field. */
+
+/* Register: TWIS_TASKS_RESUME */
+/* Description: Resume TWI transaction */
+
+/* Bit 0 : */
+#define TWIS_TASKS_RESUME_TASKS_RESUME_Pos (0UL) /*!< Position of TASKS_RESUME field. */
+#define TWIS_TASKS_RESUME_TASKS_RESUME_Msk (0x1UL << TWIS_TASKS_RESUME_TASKS_RESUME_Pos) /*!< Bit mask of TASKS_RESUME field. */
+
+/* Register: TWIS_TASKS_PREPARERX */
+/* Description: Prepare the TWI slave to respond to a write command */
+
+/* Bit 0 : */
+#define TWIS_TASKS_PREPARERX_TASKS_PREPARERX_Pos (0UL) /*!< Position of TASKS_PREPARERX field. */
+#define TWIS_TASKS_PREPARERX_TASKS_PREPARERX_Msk (0x1UL << TWIS_TASKS_PREPARERX_TASKS_PREPARERX_Pos) /*!< Bit mask of TASKS_PREPARERX field. */
+
+/* Register: TWIS_TASKS_PREPARETX */
+/* Description: Prepare the TWI slave to respond to a read command */
+
+/* Bit 0 : */
+#define TWIS_TASKS_PREPARETX_TASKS_PREPARETX_Pos (0UL) /*!< Position of TASKS_PREPARETX field. */
+#define TWIS_TASKS_PREPARETX_TASKS_PREPARETX_Msk (0x1UL << TWIS_TASKS_PREPARETX_TASKS_PREPARETX_Pos) /*!< Bit mask of TASKS_PREPARETX field. */
+
+/* Register: TWIS_EVENTS_STOPPED */
+/* Description: TWI stopped */
+
+/* Bit 0 : */
+#define TWIS_EVENTS_STOPPED_EVENTS_STOPPED_Pos (0UL) /*!< Position of EVENTS_STOPPED field. */
+#define TWIS_EVENTS_STOPPED_EVENTS_STOPPED_Msk (0x1UL << TWIS_EVENTS_STOPPED_EVENTS_STOPPED_Pos) /*!< Bit mask of EVENTS_STOPPED field. */
+
+/* Register: TWIS_EVENTS_ERROR */
+/* Description: TWI error */
+
+/* Bit 0 : */
+#define TWIS_EVENTS_ERROR_EVENTS_ERROR_Pos (0UL) /*!< Position of EVENTS_ERROR field. */
+#define TWIS_EVENTS_ERROR_EVENTS_ERROR_Msk (0x1UL << TWIS_EVENTS_ERROR_EVENTS_ERROR_Pos) /*!< Bit mask of EVENTS_ERROR field. */
+
+/* Register: TWIS_EVENTS_RXSTARTED */
+/* Description: Receive sequence started */
+
+/* Bit 0 : */
+#define TWIS_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Pos (0UL) /*!< Position of EVENTS_RXSTARTED field. */
+#define TWIS_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Msk (0x1UL << TWIS_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Pos) /*!< Bit mask of EVENTS_RXSTARTED field. */
+
+/* Register: TWIS_EVENTS_TXSTARTED */
+/* Description: Transmit sequence started */
+
+/* Bit 0 : */
+#define TWIS_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Pos (0UL) /*!< Position of EVENTS_TXSTARTED field. */
+#define TWIS_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Msk (0x1UL << TWIS_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Pos) /*!< Bit mask of EVENTS_TXSTARTED field. */
+
+/* Register: TWIS_EVENTS_WRITE */
+/* Description: Write command received */
+
+/* Bit 0 : */
+#define TWIS_EVENTS_WRITE_EVENTS_WRITE_Pos (0UL) /*!< Position of EVENTS_WRITE field. */
+#define TWIS_EVENTS_WRITE_EVENTS_WRITE_Msk (0x1UL << TWIS_EVENTS_WRITE_EVENTS_WRITE_Pos) /*!< Bit mask of EVENTS_WRITE field. */
+
+/* Register: TWIS_EVENTS_READ */
+/* Description: Read command received */
+
+/* Bit 0 : */
+#define TWIS_EVENTS_READ_EVENTS_READ_Pos (0UL) /*!< Position of EVENTS_READ field. */
+#define TWIS_EVENTS_READ_EVENTS_READ_Msk (0x1UL << TWIS_EVENTS_READ_EVENTS_READ_Pos) /*!< Bit mask of EVENTS_READ field. */
+
+/* Register: TWIS_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 14 : Shortcut between READ event and SUSPEND task */
+#define TWIS_SHORTS_READ_SUSPEND_Pos (14UL) /*!< Position of READ_SUSPEND field. */
+#define TWIS_SHORTS_READ_SUSPEND_Msk (0x1UL << TWIS_SHORTS_READ_SUSPEND_Pos) /*!< Bit mask of READ_SUSPEND field. */
+#define TWIS_SHORTS_READ_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWIS_SHORTS_READ_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 13 : Shortcut between WRITE event and SUSPEND task */
+#define TWIS_SHORTS_WRITE_SUSPEND_Pos (13UL) /*!< Position of WRITE_SUSPEND field. */
+#define TWIS_SHORTS_WRITE_SUSPEND_Msk (0x1UL << TWIS_SHORTS_WRITE_SUSPEND_Pos) /*!< Bit mask of WRITE_SUSPEND field. */
+#define TWIS_SHORTS_WRITE_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWIS_SHORTS_WRITE_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: TWIS_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 26 : Enable or disable interrupt for READ event */
+#define TWIS_INTEN_READ_Pos (26UL) /*!< Position of READ field. */
+#define TWIS_INTEN_READ_Msk (0x1UL << TWIS_INTEN_READ_Pos) /*!< Bit mask of READ field. */
+#define TWIS_INTEN_READ_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_READ_Enabled (1UL) /*!< Enable */
+
+/* Bit 25 : Enable or disable interrupt for WRITE event */
+#define TWIS_INTEN_WRITE_Pos (25UL) /*!< Position of WRITE field. */
+#define TWIS_INTEN_WRITE_Msk (0x1UL << TWIS_INTEN_WRITE_Pos) /*!< Bit mask of WRITE field. */
+#define TWIS_INTEN_WRITE_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_WRITE_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for TXSTARTED event */
+#define TWIS_INTEN_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIS_INTEN_TXSTARTED_Msk (0x1UL << TWIS_INTEN_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIS_INTEN_TXSTARTED_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_TXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for RXSTARTED event */
+#define TWIS_INTEN_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIS_INTEN_RXSTARTED_Msk (0x1UL << TWIS_INTEN_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIS_INTEN_RXSTARTED_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_RXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for ERROR event */
+#define TWIS_INTEN_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIS_INTEN_ERROR_Msk (0x1UL << TWIS_INTEN_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIS_INTEN_ERROR_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_ERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STOPPED event */
+#define TWIS_INTEN_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIS_INTEN_STOPPED_Msk (0x1UL << TWIS_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIS_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Register: TWIS_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 26 : Write '1' to enable interrupt for READ event */
+#define TWIS_INTENSET_READ_Pos (26UL) /*!< Position of READ field. */
+#define TWIS_INTENSET_READ_Msk (0x1UL << TWIS_INTENSET_READ_Pos) /*!< Bit mask of READ field. */
+#define TWIS_INTENSET_READ_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_READ_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_READ_Set (1UL) /*!< Enable */
+
+/* Bit 25 : Write '1' to enable interrupt for WRITE event */
+#define TWIS_INTENSET_WRITE_Pos (25UL) /*!< Position of WRITE field. */
+#define TWIS_INTENSET_WRITE_Msk (0x1UL << TWIS_INTENSET_WRITE_Pos) /*!< Bit mask of WRITE field. */
+#define TWIS_INTENSET_WRITE_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_WRITE_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_WRITE_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to enable interrupt for TXSTARTED event */
+#define TWIS_INTENSET_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIS_INTENSET_TXSTARTED_Msk (0x1UL << TWIS_INTENSET_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIS_INTENSET_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_TXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to enable interrupt for RXSTARTED event */
+#define TWIS_INTENSET_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIS_INTENSET_RXSTARTED_Msk (0x1UL << TWIS_INTENSET_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIS_INTENSET_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_RXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to enable interrupt for ERROR event */
+#define TWIS_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIS_INTENSET_ERROR_Msk (0x1UL << TWIS_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIS_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for STOPPED event */
+#define TWIS_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIS_INTENSET_STOPPED_Msk (0x1UL << TWIS_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIS_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: TWIS_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 26 : Write '1' to disable interrupt for READ event */
+#define TWIS_INTENCLR_READ_Pos (26UL) /*!< Position of READ field. */
+#define TWIS_INTENCLR_READ_Msk (0x1UL << TWIS_INTENCLR_READ_Pos) /*!< Bit mask of READ field. */
+#define TWIS_INTENCLR_READ_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_READ_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_READ_Clear (1UL) /*!< Disable */
+
+/* Bit 25 : Write '1' to disable interrupt for WRITE event */
+#define TWIS_INTENCLR_WRITE_Pos (25UL) /*!< Position of WRITE field. */
+#define TWIS_INTENCLR_WRITE_Msk (0x1UL << TWIS_INTENCLR_WRITE_Pos) /*!< Bit mask of WRITE field. */
+#define TWIS_INTENCLR_WRITE_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_WRITE_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_WRITE_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to disable interrupt for TXSTARTED event */
+#define TWIS_INTENCLR_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIS_INTENCLR_TXSTARTED_Msk (0x1UL << TWIS_INTENCLR_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIS_INTENCLR_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_TXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to disable interrupt for RXSTARTED event */
+#define TWIS_INTENCLR_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIS_INTENCLR_RXSTARTED_Msk (0x1UL << TWIS_INTENCLR_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIS_INTENCLR_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_RXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to disable interrupt for ERROR event */
+#define TWIS_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIS_INTENCLR_ERROR_Msk (0x1UL << TWIS_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIS_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for STOPPED event */
+#define TWIS_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIS_INTENCLR_STOPPED_Msk (0x1UL << TWIS_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIS_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: TWIS_ERRORSRC */
+/* Description: Error source */
+
+/* Bit 3 : TX buffer over-read detected, and prevented */
+#define TWIS_ERRORSRC_OVERREAD_Pos (3UL) /*!< Position of OVERREAD field. */
+#define TWIS_ERRORSRC_OVERREAD_Msk (0x1UL << TWIS_ERRORSRC_OVERREAD_Pos) /*!< Bit mask of OVERREAD field. */
+#define TWIS_ERRORSRC_OVERREAD_NotDetected (0UL) /*!< Error did not occur */
+#define TWIS_ERRORSRC_OVERREAD_Detected (1UL) /*!< Error occurred */
+
+/* Bit 2 : NACK sent after receiving a data byte */
+#define TWIS_ERRORSRC_DNACK_Pos (2UL) /*!< Position of DNACK field. */
+#define TWIS_ERRORSRC_DNACK_Msk (0x1UL << TWIS_ERRORSRC_DNACK_Pos) /*!< Bit mask of DNACK field. */
+#define TWIS_ERRORSRC_DNACK_NotReceived (0UL) /*!< Error did not occur */
+#define TWIS_ERRORSRC_DNACK_Received (1UL) /*!< Error occurred */
+
+/* Bit 0 : RX buffer overflow detected, and prevented */
+#define TWIS_ERRORSRC_OVERFLOW_Pos (0UL) /*!< Position of OVERFLOW field. */
+#define TWIS_ERRORSRC_OVERFLOW_Msk (0x1UL << TWIS_ERRORSRC_OVERFLOW_Pos) /*!< Bit mask of OVERFLOW field. */
+#define TWIS_ERRORSRC_OVERFLOW_NotDetected (0UL) /*!< Error did not occur */
+#define TWIS_ERRORSRC_OVERFLOW_Detected (1UL) /*!< Error occurred */
+
+/* Register: TWIS_MATCH */
+/* Description: Status register indicating which address had a match */
+
+/* Bit 0 : Which of the addresses in {ADDRESS} matched the incoming address */
+#define TWIS_MATCH_MATCH_Pos (0UL) /*!< Position of MATCH field. */
+#define TWIS_MATCH_MATCH_Msk (0x1UL << TWIS_MATCH_MATCH_Pos) /*!< Bit mask of MATCH field. */
+
+/* Register: TWIS_ENABLE */
+/* Description: Enable TWIS */
+
+/* Bits 3..0 : Enable or disable TWIS */
+#define TWIS_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define TWIS_ENABLE_ENABLE_Msk (0xFUL << TWIS_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define TWIS_ENABLE_ENABLE_Disabled (0UL) /*!< Disable TWIS */
+#define TWIS_ENABLE_ENABLE_Enabled (9UL) /*!< Enable TWIS */
+
+/* Register: TWIS_PSEL_SCL */
+/* Description: Pin select for SCL signal */
+
+/* Bit 31 : Connection */
+#define TWIS_PSEL_SCL_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWIS_PSEL_SCL_CONNECT_Msk (0x1UL << TWIS_PSEL_SCL_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWIS_PSEL_SCL_CONNECT_Connected (0UL) /*!< Connect */
+#define TWIS_PSEL_SCL_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define TWIS_PSEL_SCL_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define TWIS_PSEL_SCL_PORT_Msk (0x1UL << TWIS_PSEL_SCL_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define TWIS_PSEL_SCL_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWIS_PSEL_SCL_PIN_Msk (0x1FUL << TWIS_PSEL_SCL_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWIS_PSEL_SDA */
+/* Description: Pin select for SDA signal */
+
+/* Bit 31 : Connection */
+#define TWIS_PSEL_SDA_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWIS_PSEL_SDA_CONNECT_Msk (0x1UL << TWIS_PSEL_SDA_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWIS_PSEL_SDA_CONNECT_Connected (0UL) /*!< Connect */
+#define TWIS_PSEL_SDA_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define TWIS_PSEL_SDA_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define TWIS_PSEL_SDA_PORT_Msk (0x1UL << TWIS_PSEL_SDA_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define TWIS_PSEL_SDA_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWIS_PSEL_SDA_PIN_Msk (0x1FUL << TWIS_PSEL_SDA_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWIS_RXD_PTR */
+/* Description: RXD Data pointer */
+
+/* Bits 31..0 : RXD Data pointer */
+#define TWIS_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define TWIS_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << TWIS_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: TWIS_RXD_MAXCNT */
+/* Description: Maximum number of bytes in RXD buffer */
+
+/* Bits 15..0 : Maximum number of bytes in RXD buffer */
+#define TWIS_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define TWIS_RXD_MAXCNT_MAXCNT_Msk (0xFFFFUL << TWIS_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: TWIS_RXD_AMOUNT */
+/* Description: Number of bytes transferred in the last RXD transaction */
+
+/* Bits 15..0 : Number of bytes transferred in the last RXD transaction */
+#define TWIS_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define TWIS_RXD_AMOUNT_AMOUNT_Msk (0xFFFFUL << TWIS_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: TWIS_TXD_PTR */
+/* Description: TXD Data pointer */
+
+/* Bits 31..0 : TXD Data pointer */
+#define TWIS_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define TWIS_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << TWIS_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: TWIS_TXD_MAXCNT */
+/* Description: Maximum number of bytes in TXD buffer */
+
+/* Bits 15..0 : Maximum number of bytes in TXD buffer */
+#define TWIS_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define TWIS_TXD_MAXCNT_MAXCNT_Msk (0xFFFFUL << TWIS_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: TWIS_TXD_AMOUNT */
+/* Description: Number of bytes transferred in the last TXD transaction */
+
+/* Bits 15..0 : Number of bytes transferred in the last TXD transaction */
+#define TWIS_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define TWIS_TXD_AMOUNT_AMOUNT_Msk (0xFFFFUL << TWIS_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: TWIS_ADDRESS */
+/* Description: Description collection[n]: TWI slave address n */
+
+/* Bits 6..0 : TWI slave address */
+#define TWIS_ADDRESS_ADDRESS_Pos (0UL) /*!< Position of ADDRESS field. */
+#define TWIS_ADDRESS_ADDRESS_Msk (0x7FUL << TWIS_ADDRESS_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+
+/* Register: TWIS_CONFIG */
+/* Description: Configuration register for the address match mechanism */
+
+/* Bit 1 : Enable or disable address matching on ADDRESS[1] */
+#define TWIS_CONFIG_ADDRESS1_Pos (1UL) /*!< Position of ADDRESS1 field. */
+#define TWIS_CONFIG_ADDRESS1_Msk (0x1UL << TWIS_CONFIG_ADDRESS1_Pos) /*!< Bit mask of ADDRESS1 field. */
+#define TWIS_CONFIG_ADDRESS1_Disabled (0UL) /*!< Disabled */
+#define TWIS_CONFIG_ADDRESS1_Enabled (1UL) /*!< Enabled */
+
+/* Bit 0 : Enable or disable address matching on ADDRESS[0] */
+#define TWIS_CONFIG_ADDRESS0_Pos (0UL) /*!< Position of ADDRESS0 field. */
+#define TWIS_CONFIG_ADDRESS0_Msk (0x1UL << TWIS_CONFIG_ADDRESS0_Pos) /*!< Bit mask of ADDRESS0 field. */
+#define TWIS_CONFIG_ADDRESS0_Disabled (0UL) /*!< Disabled */
+#define TWIS_CONFIG_ADDRESS0_Enabled (1UL) /*!< Enabled */
+
+/* Register: TWIS_ORC */
+/* Description: Over-read character. Character sent out in case of an over-read of the transmit buffer. */
+
+/* Bits 7..0 : Over-read character. Character sent out in case of an over-read of the transmit buffer. */
+#define TWIS_ORC_ORC_Pos (0UL) /*!< Position of ORC field. */
+#define TWIS_ORC_ORC_Msk (0xFFUL << TWIS_ORC_ORC_Pos) /*!< Bit mask of ORC field. */
+
+
+/* Peripheral: UART */
+/* Description: Universal Asynchronous Receiver/Transmitter */
+
+/* Register: UART_TASKS_STARTRX */
+/* Description: Start UART receiver */
+
+/* Bit 0 : */
+#define UART_TASKS_STARTRX_TASKS_STARTRX_Pos (0UL) /*!< Position of TASKS_STARTRX field. */
+#define UART_TASKS_STARTRX_TASKS_STARTRX_Msk (0x1UL << UART_TASKS_STARTRX_TASKS_STARTRX_Pos) /*!< Bit mask of TASKS_STARTRX field. */
+
+/* Register: UART_TASKS_STOPRX */
+/* Description: Stop UART receiver */
+
+/* Bit 0 : */
+#define UART_TASKS_STOPRX_TASKS_STOPRX_Pos (0UL) /*!< Position of TASKS_STOPRX field. */
+#define UART_TASKS_STOPRX_TASKS_STOPRX_Msk (0x1UL << UART_TASKS_STOPRX_TASKS_STOPRX_Pos) /*!< Bit mask of TASKS_STOPRX field. */
+
+/* Register: UART_TASKS_STARTTX */
+/* Description: Start UART transmitter */
+
+/* Bit 0 : */
+#define UART_TASKS_STARTTX_TASKS_STARTTX_Pos (0UL) /*!< Position of TASKS_STARTTX field. */
+#define UART_TASKS_STARTTX_TASKS_STARTTX_Msk (0x1UL << UART_TASKS_STARTTX_TASKS_STARTTX_Pos) /*!< Bit mask of TASKS_STARTTX field. */
+
+/* Register: UART_TASKS_STOPTX */
+/* Description: Stop UART transmitter */
+
+/* Bit 0 : */
+#define UART_TASKS_STOPTX_TASKS_STOPTX_Pos (0UL) /*!< Position of TASKS_STOPTX field. */
+#define UART_TASKS_STOPTX_TASKS_STOPTX_Msk (0x1UL << UART_TASKS_STOPTX_TASKS_STOPTX_Pos) /*!< Bit mask of TASKS_STOPTX field. */
+
+/* Register: UART_TASKS_SUSPEND */
+/* Description: Suspend UART */
+
+/* Bit 0 : */
+#define UART_TASKS_SUSPEND_TASKS_SUSPEND_Pos (0UL) /*!< Position of TASKS_SUSPEND field. */
+#define UART_TASKS_SUSPEND_TASKS_SUSPEND_Msk (0x1UL << UART_TASKS_SUSPEND_TASKS_SUSPEND_Pos) /*!< Bit mask of TASKS_SUSPEND field. */
+
+/* Register: UART_EVENTS_CTS */
+/* Description: CTS is activated (set low). Clear To Send. */
+
+/* Bit 0 : */
+#define UART_EVENTS_CTS_EVENTS_CTS_Pos (0UL) /*!< Position of EVENTS_CTS field. */
+#define UART_EVENTS_CTS_EVENTS_CTS_Msk (0x1UL << UART_EVENTS_CTS_EVENTS_CTS_Pos) /*!< Bit mask of EVENTS_CTS field. */
+
+/* Register: UART_EVENTS_NCTS */
+/* Description: CTS is deactivated (set high). Not Clear To Send. */
+
+/* Bit 0 : */
+#define UART_EVENTS_NCTS_EVENTS_NCTS_Pos (0UL) /*!< Position of EVENTS_NCTS field. */
+#define UART_EVENTS_NCTS_EVENTS_NCTS_Msk (0x1UL << UART_EVENTS_NCTS_EVENTS_NCTS_Pos) /*!< Bit mask of EVENTS_NCTS field. */
+
+/* Register: UART_EVENTS_RXDRDY */
+/* Description: Data received in RXD */
+
+/* Bit 0 : */
+#define UART_EVENTS_RXDRDY_EVENTS_RXDRDY_Pos (0UL) /*!< Position of EVENTS_RXDRDY field. */
+#define UART_EVENTS_RXDRDY_EVENTS_RXDRDY_Msk (0x1UL << UART_EVENTS_RXDRDY_EVENTS_RXDRDY_Pos) /*!< Bit mask of EVENTS_RXDRDY field. */
+
+/* Register: UART_EVENTS_TXDRDY */
+/* Description: Data sent from TXD */
+
+/* Bit 0 : */
+#define UART_EVENTS_TXDRDY_EVENTS_TXDRDY_Pos (0UL) /*!< Position of EVENTS_TXDRDY field. */
+#define UART_EVENTS_TXDRDY_EVENTS_TXDRDY_Msk (0x1UL << UART_EVENTS_TXDRDY_EVENTS_TXDRDY_Pos) /*!< Bit mask of EVENTS_TXDRDY field. */
+
+/* Register: UART_EVENTS_ERROR */
+/* Description: Error detected */
+
+/* Bit 0 : */
+#define UART_EVENTS_ERROR_EVENTS_ERROR_Pos (0UL) /*!< Position of EVENTS_ERROR field. */
+#define UART_EVENTS_ERROR_EVENTS_ERROR_Msk (0x1UL << UART_EVENTS_ERROR_EVENTS_ERROR_Pos) /*!< Bit mask of EVENTS_ERROR field. */
+
+/* Register: UART_EVENTS_RXTO */
+/* Description: Receiver timeout */
+
+/* Bit 0 : */
+#define UART_EVENTS_RXTO_EVENTS_RXTO_Pos (0UL) /*!< Position of EVENTS_RXTO field. */
+#define UART_EVENTS_RXTO_EVENTS_RXTO_Msk (0x1UL << UART_EVENTS_RXTO_EVENTS_RXTO_Pos) /*!< Bit mask of EVENTS_RXTO field. */
+
+/* Register: UART_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 4 : Shortcut between NCTS event and STOPRX task */
+#define UART_SHORTS_NCTS_STOPRX_Pos (4UL) /*!< Position of NCTS_STOPRX field. */
+#define UART_SHORTS_NCTS_STOPRX_Msk (0x1UL << UART_SHORTS_NCTS_STOPRX_Pos) /*!< Bit mask of NCTS_STOPRX field. */
+#define UART_SHORTS_NCTS_STOPRX_Disabled (0UL) /*!< Disable shortcut */
+#define UART_SHORTS_NCTS_STOPRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between CTS event and STARTRX task */
+#define UART_SHORTS_CTS_STARTRX_Pos (3UL) /*!< Position of CTS_STARTRX field. */
+#define UART_SHORTS_CTS_STARTRX_Msk (0x1UL << UART_SHORTS_CTS_STARTRX_Pos) /*!< Bit mask of CTS_STARTRX field. */
+#define UART_SHORTS_CTS_STARTRX_Disabled (0UL) /*!< Disable shortcut */
+#define UART_SHORTS_CTS_STARTRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: UART_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 17 : Write '1' to enable interrupt for RXTO event */
+#define UART_INTENSET_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UART_INTENSET_RXTO_Msk (0x1UL << UART_INTENSET_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UART_INTENSET_RXTO_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENSET_RXTO_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENSET_RXTO_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to enable interrupt for ERROR event */
+#define UART_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UART_INTENSET_ERROR_Msk (0x1UL << UART_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UART_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to enable interrupt for TXDRDY event */
+#define UART_INTENSET_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UART_INTENSET_TXDRDY_Msk (0x1UL << UART_INTENSET_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UART_INTENSET_TXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENSET_TXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENSET_TXDRDY_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for RXDRDY event */
+#define UART_INTENSET_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UART_INTENSET_RXDRDY_Msk (0x1UL << UART_INTENSET_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UART_INTENSET_RXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENSET_RXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENSET_RXDRDY_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for NCTS event */
+#define UART_INTENSET_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UART_INTENSET_NCTS_Msk (0x1UL << UART_INTENSET_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UART_INTENSET_NCTS_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENSET_NCTS_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENSET_NCTS_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for CTS event */
+#define UART_INTENSET_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UART_INTENSET_CTS_Msk (0x1UL << UART_INTENSET_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UART_INTENSET_CTS_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENSET_CTS_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENSET_CTS_Set (1UL) /*!< Enable */
+
+/* Register: UART_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 17 : Write '1' to disable interrupt for RXTO event */
+#define UART_INTENCLR_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UART_INTENCLR_RXTO_Msk (0x1UL << UART_INTENCLR_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UART_INTENCLR_RXTO_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENCLR_RXTO_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENCLR_RXTO_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to disable interrupt for ERROR event */
+#define UART_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UART_INTENCLR_ERROR_Msk (0x1UL << UART_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UART_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to disable interrupt for TXDRDY event */
+#define UART_INTENCLR_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UART_INTENCLR_TXDRDY_Msk (0x1UL << UART_INTENCLR_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UART_INTENCLR_TXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENCLR_TXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENCLR_TXDRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for RXDRDY event */
+#define UART_INTENCLR_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UART_INTENCLR_RXDRDY_Msk (0x1UL << UART_INTENCLR_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UART_INTENCLR_RXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENCLR_RXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENCLR_RXDRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for NCTS event */
+#define UART_INTENCLR_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UART_INTENCLR_NCTS_Msk (0x1UL << UART_INTENCLR_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UART_INTENCLR_NCTS_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENCLR_NCTS_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENCLR_NCTS_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for CTS event */
+#define UART_INTENCLR_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UART_INTENCLR_CTS_Msk (0x1UL << UART_INTENCLR_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UART_INTENCLR_CTS_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENCLR_CTS_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENCLR_CTS_Clear (1UL) /*!< Disable */
+
+/* Register: UART_ERRORSRC */
+/* Description: Error source */
+
+/* Bit 3 : Break condition */
+#define UART_ERRORSRC_BREAK_Pos (3UL) /*!< Position of BREAK field. */
+#define UART_ERRORSRC_BREAK_Msk (0x1UL << UART_ERRORSRC_BREAK_Pos) /*!< Bit mask of BREAK field. */
+#define UART_ERRORSRC_BREAK_NotPresent (0UL) /*!< Read: error not present */
+#define UART_ERRORSRC_BREAK_Present (1UL) /*!< Read: error present */
+
+/* Bit 2 : Framing error occurred */
+#define UART_ERRORSRC_FRAMING_Pos (2UL) /*!< Position of FRAMING field. */
+#define UART_ERRORSRC_FRAMING_Msk (0x1UL << UART_ERRORSRC_FRAMING_Pos) /*!< Bit mask of FRAMING field. */
+#define UART_ERRORSRC_FRAMING_NotPresent (0UL) /*!< Read: error not present */
+#define UART_ERRORSRC_FRAMING_Present (1UL) /*!< Read: error present */
+
+/* Bit 1 : Parity error */
+#define UART_ERRORSRC_PARITY_Pos (1UL) /*!< Position of PARITY field. */
+#define UART_ERRORSRC_PARITY_Msk (0x1UL << UART_ERRORSRC_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define UART_ERRORSRC_PARITY_NotPresent (0UL) /*!< Read: error not present */
+#define UART_ERRORSRC_PARITY_Present (1UL) /*!< Read: error present */
+
+/* Bit 0 : Overrun error */
+#define UART_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
+#define UART_ERRORSRC_OVERRUN_Msk (0x1UL << UART_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define UART_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: error not present */
+#define UART_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: error present */
+
+/* Register: UART_ENABLE */
+/* Description: Enable UART */
+
+/* Bits 3..0 : Enable or disable UART */
+#define UART_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define UART_ENABLE_ENABLE_Msk (0xFUL << UART_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define UART_ENABLE_ENABLE_Disabled (0UL) /*!< Disable UART */
+#define UART_ENABLE_ENABLE_Enabled (4UL) /*!< Enable UART */
+
+/* Register: UART_PSEL_RTS */
+/* Description: Pin select for RTS */
+
+/* Bit 31 : Connection */
+#define UART_PSEL_RTS_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UART_PSEL_RTS_CONNECT_Msk (0x1UL << UART_PSEL_RTS_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UART_PSEL_RTS_CONNECT_Connected (0UL) /*!< Connect */
+#define UART_PSEL_RTS_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define UART_PSEL_RTS_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define UART_PSEL_RTS_PORT_Msk (0x1UL << UART_PSEL_RTS_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define UART_PSEL_RTS_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UART_PSEL_RTS_PIN_Msk (0x1FUL << UART_PSEL_RTS_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UART_PSEL_TXD */
+/* Description: Pin select for TXD */
+
+/* Bit 31 : Connection */
+#define UART_PSEL_TXD_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UART_PSEL_TXD_CONNECT_Msk (0x1UL << UART_PSEL_TXD_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UART_PSEL_TXD_CONNECT_Connected (0UL) /*!< Connect */
+#define UART_PSEL_TXD_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define UART_PSEL_TXD_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define UART_PSEL_TXD_PORT_Msk (0x1UL << UART_PSEL_TXD_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define UART_PSEL_TXD_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UART_PSEL_TXD_PIN_Msk (0x1FUL << UART_PSEL_TXD_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UART_PSEL_CTS */
+/* Description: Pin select for CTS */
+
+/* Bit 31 : Connection */
+#define UART_PSEL_CTS_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UART_PSEL_CTS_CONNECT_Msk (0x1UL << UART_PSEL_CTS_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UART_PSEL_CTS_CONNECT_Connected (0UL) /*!< Connect */
+#define UART_PSEL_CTS_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define UART_PSEL_CTS_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define UART_PSEL_CTS_PORT_Msk (0x1UL << UART_PSEL_CTS_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define UART_PSEL_CTS_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UART_PSEL_CTS_PIN_Msk (0x1FUL << UART_PSEL_CTS_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UART_PSEL_RXD */
+/* Description: Pin select for RXD */
+
+/* Bit 31 : Connection */
+#define UART_PSEL_RXD_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UART_PSEL_RXD_CONNECT_Msk (0x1UL << UART_PSEL_RXD_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UART_PSEL_RXD_CONNECT_Connected (0UL) /*!< Connect */
+#define UART_PSEL_RXD_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define UART_PSEL_RXD_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define UART_PSEL_RXD_PORT_Msk (0x1UL << UART_PSEL_RXD_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define UART_PSEL_RXD_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UART_PSEL_RXD_PIN_Msk (0x1FUL << UART_PSEL_RXD_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UART_RXD */
+/* Description: RXD register */
+
+/* Bits 7..0 : RX data received in previous transfers, double buffered */
+#define UART_RXD_RXD_Pos (0UL) /*!< Position of RXD field. */
+#define UART_RXD_RXD_Msk (0xFFUL << UART_RXD_RXD_Pos) /*!< Bit mask of RXD field. */
+
+/* Register: UART_TXD */
+/* Description: TXD register */
+
+/* Bits 7..0 : TX data to be transferred */
+#define UART_TXD_TXD_Pos (0UL) /*!< Position of TXD field. */
+#define UART_TXD_TXD_Msk (0xFFUL << UART_TXD_TXD_Pos) /*!< Bit mask of TXD field. */
+
+/* Register: UART_BAUDRATE */
+/* Description: Baud rate. Accuracy depends on the HFCLK source selected. */
+
+/* Bits 31..0 : Baud rate */
+#define UART_BAUDRATE_BAUDRATE_Pos (0UL) /*!< Position of BAUDRATE field. */
+#define UART_BAUDRATE_BAUDRATE_Msk (0xFFFFFFFFUL << UART_BAUDRATE_BAUDRATE_Pos) /*!< Bit mask of BAUDRATE field. */
+#define UART_BAUDRATE_BAUDRATE_Baud1200 (0x0004F000UL) /*!< 1200 baud (actual rate: 1205) */
+#define UART_BAUDRATE_BAUDRATE_Baud2400 (0x0009D000UL) /*!< 2400 baud (actual rate: 2396) */
+#define UART_BAUDRATE_BAUDRATE_Baud4800 (0x0013B000UL) /*!< 4800 baud (actual rate: 4808) */
+#define UART_BAUDRATE_BAUDRATE_Baud9600 (0x00275000UL) /*!< 9600 baud (actual rate: 9598) */
+#define UART_BAUDRATE_BAUDRATE_Baud14400 (0x003B0000UL) /*!< 14400 baud (actual rate: 14414) */
+#define UART_BAUDRATE_BAUDRATE_Baud19200 (0x004EA000UL) /*!< 19200 baud (actual rate: 19208) */
+#define UART_BAUDRATE_BAUDRATE_Baud28800 (0x0075F000UL) /*!< 28800 baud (actual rate: 28829) */
+#define UART_BAUDRATE_BAUDRATE_Baud31250 (0x00800000UL) /*!< 31250 baud */
+#define UART_BAUDRATE_BAUDRATE_Baud38400 (0x009D5000UL) /*!< 38400 baud (actual rate: 38462) */
+#define UART_BAUDRATE_BAUDRATE_Baud56000 (0x00E50000UL) /*!< 56000 baud (actual rate: 55944) */
+#define UART_BAUDRATE_BAUDRATE_Baud57600 (0x00EBF000UL) /*!< 57600 baud (actual rate: 57762) */
+#define UART_BAUDRATE_BAUDRATE_Baud76800 (0x013A9000UL) /*!< 76800 baud (actual rate: 76923) */
+#define UART_BAUDRATE_BAUDRATE_Baud115200 (0x01D7E000UL) /*!< 115200 baud (actual rate: 115942) */
+#define UART_BAUDRATE_BAUDRATE_Baud230400 (0x03AFB000UL) /*!< 230400 baud (actual rate: 231884) */
+#define UART_BAUDRATE_BAUDRATE_Baud250000 (0x04000000UL) /*!< 250000 baud */
+#define UART_BAUDRATE_BAUDRATE_Baud460800 (0x075F7000UL) /*!< 460800 baud (actual rate: 470588) */
+#define UART_BAUDRATE_BAUDRATE_Baud921600 (0x0EBED000UL) /*!< 921600 baud (actual rate: 941176) */
+#define UART_BAUDRATE_BAUDRATE_Baud1M (0x10000000UL) /*!< 1Mega baud */
+
+/* Register: UART_CONFIG */
+/* Description: Configuration of parity and hardware flow control */
+
+/* Bits 3..1 : Parity */
+#define UART_CONFIG_PARITY_Pos (1UL) /*!< Position of PARITY field. */
+#define UART_CONFIG_PARITY_Msk (0x7UL << UART_CONFIG_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define UART_CONFIG_PARITY_Excluded (0x0UL) /*!< Exclude parity bit */
+#define UART_CONFIG_PARITY_Included (0x7UL) /*!< Include parity bit */
+
+/* Bit 0 : Hardware flow control */
+#define UART_CONFIG_HWFC_Pos (0UL) /*!< Position of HWFC field. */
+#define UART_CONFIG_HWFC_Msk (0x1UL << UART_CONFIG_HWFC_Pos) /*!< Bit mask of HWFC field. */
+#define UART_CONFIG_HWFC_Disabled (0UL) /*!< Disabled */
+#define UART_CONFIG_HWFC_Enabled (1UL) /*!< Enabled */
+
+
+/* Peripheral: UARTE */
+/* Description: UART with EasyDMA 0 */
+
+/* Register: UARTE_TASKS_STARTRX */
+/* Description: Start UART receiver */
+
+/* Bit 0 : */
+#define UARTE_TASKS_STARTRX_TASKS_STARTRX_Pos (0UL) /*!< Position of TASKS_STARTRX field. */
+#define UARTE_TASKS_STARTRX_TASKS_STARTRX_Msk (0x1UL << UARTE_TASKS_STARTRX_TASKS_STARTRX_Pos) /*!< Bit mask of TASKS_STARTRX field. */
+
+/* Register: UARTE_TASKS_STOPRX */
+/* Description: Stop UART receiver */
+
+/* Bit 0 : */
+#define UARTE_TASKS_STOPRX_TASKS_STOPRX_Pos (0UL) /*!< Position of TASKS_STOPRX field. */
+#define UARTE_TASKS_STOPRX_TASKS_STOPRX_Msk (0x1UL << UARTE_TASKS_STOPRX_TASKS_STOPRX_Pos) /*!< Bit mask of TASKS_STOPRX field. */
+
+/* Register: UARTE_TASKS_STARTTX */
+/* Description: Start UART transmitter */
+
+/* Bit 0 : */
+#define UARTE_TASKS_STARTTX_TASKS_STARTTX_Pos (0UL) /*!< Position of TASKS_STARTTX field. */
+#define UARTE_TASKS_STARTTX_TASKS_STARTTX_Msk (0x1UL << UARTE_TASKS_STARTTX_TASKS_STARTTX_Pos) /*!< Bit mask of TASKS_STARTTX field. */
+
+/* Register: UARTE_TASKS_STOPTX */
+/* Description: Stop UART transmitter */
+
+/* Bit 0 : */
+#define UARTE_TASKS_STOPTX_TASKS_STOPTX_Pos (0UL) /*!< Position of TASKS_STOPTX field. */
+#define UARTE_TASKS_STOPTX_TASKS_STOPTX_Msk (0x1UL << UARTE_TASKS_STOPTX_TASKS_STOPTX_Pos) /*!< Bit mask of TASKS_STOPTX field. */
+
+/* Register: UARTE_TASKS_FLUSHRX */
+/* Description: Flush RX FIFO into RX buffer */
+
+/* Bit 0 : */
+#define UARTE_TASKS_FLUSHRX_TASKS_FLUSHRX_Pos (0UL) /*!< Position of TASKS_FLUSHRX field. */
+#define UARTE_TASKS_FLUSHRX_TASKS_FLUSHRX_Msk (0x1UL << UARTE_TASKS_FLUSHRX_TASKS_FLUSHRX_Pos) /*!< Bit mask of TASKS_FLUSHRX field. */
+
+/* Register: UARTE_EVENTS_CTS */
+/* Description: CTS is activated (set low). Clear To Send. */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_CTS_EVENTS_CTS_Pos (0UL) /*!< Position of EVENTS_CTS field. */
+#define UARTE_EVENTS_CTS_EVENTS_CTS_Msk (0x1UL << UARTE_EVENTS_CTS_EVENTS_CTS_Pos) /*!< Bit mask of EVENTS_CTS field. */
+
+/* Register: UARTE_EVENTS_NCTS */
+/* Description: CTS is deactivated (set high). Not Clear To Send. */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_NCTS_EVENTS_NCTS_Pos (0UL) /*!< Position of EVENTS_NCTS field. */
+#define UARTE_EVENTS_NCTS_EVENTS_NCTS_Msk (0x1UL << UARTE_EVENTS_NCTS_EVENTS_NCTS_Pos) /*!< Bit mask of EVENTS_NCTS field. */
+
+/* Register: UARTE_EVENTS_RXDRDY */
+/* Description: Data received in RXD (but potentially not yet transferred to Data RAM) */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_RXDRDY_EVENTS_RXDRDY_Pos (0UL) /*!< Position of EVENTS_RXDRDY field. */
+#define UARTE_EVENTS_RXDRDY_EVENTS_RXDRDY_Msk (0x1UL << UARTE_EVENTS_RXDRDY_EVENTS_RXDRDY_Pos) /*!< Bit mask of EVENTS_RXDRDY field. */
+
+/* Register: UARTE_EVENTS_ENDRX */
+/* Description: Receive buffer is filled up */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_ENDRX_EVENTS_ENDRX_Pos (0UL) /*!< Position of EVENTS_ENDRX field. */
+#define UARTE_EVENTS_ENDRX_EVENTS_ENDRX_Msk (0x1UL << UARTE_EVENTS_ENDRX_EVENTS_ENDRX_Pos) /*!< Bit mask of EVENTS_ENDRX field. */
+
+/* Register: UARTE_EVENTS_TXDRDY */
+/* Description: Data sent from TXD */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_TXDRDY_EVENTS_TXDRDY_Pos (0UL) /*!< Position of EVENTS_TXDRDY field. */
+#define UARTE_EVENTS_TXDRDY_EVENTS_TXDRDY_Msk (0x1UL << UARTE_EVENTS_TXDRDY_EVENTS_TXDRDY_Pos) /*!< Bit mask of EVENTS_TXDRDY field. */
+
+/* Register: UARTE_EVENTS_ENDTX */
+/* Description: Last TX byte transmitted */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_ENDTX_EVENTS_ENDTX_Pos (0UL) /*!< Position of EVENTS_ENDTX field. */
+#define UARTE_EVENTS_ENDTX_EVENTS_ENDTX_Msk (0x1UL << UARTE_EVENTS_ENDTX_EVENTS_ENDTX_Pos) /*!< Bit mask of EVENTS_ENDTX field. */
+
+/* Register: UARTE_EVENTS_ERROR */
+/* Description: Error detected */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_ERROR_EVENTS_ERROR_Pos (0UL) /*!< Position of EVENTS_ERROR field. */
+#define UARTE_EVENTS_ERROR_EVENTS_ERROR_Msk (0x1UL << UARTE_EVENTS_ERROR_EVENTS_ERROR_Pos) /*!< Bit mask of EVENTS_ERROR field. */
+
+/* Register: UARTE_EVENTS_RXTO */
+/* Description: Receiver timeout */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_RXTO_EVENTS_RXTO_Pos (0UL) /*!< Position of EVENTS_RXTO field. */
+#define UARTE_EVENTS_RXTO_EVENTS_RXTO_Msk (0x1UL << UARTE_EVENTS_RXTO_EVENTS_RXTO_Pos) /*!< Bit mask of EVENTS_RXTO field. */
+
+/* Register: UARTE_EVENTS_RXSTARTED */
+/* Description: UART receiver has started */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Pos (0UL) /*!< Position of EVENTS_RXSTARTED field. */
+#define UARTE_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Msk (0x1UL << UARTE_EVENTS_RXSTARTED_EVENTS_RXSTARTED_Pos) /*!< Bit mask of EVENTS_RXSTARTED field. */
+
+/* Register: UARTE_EVENTS_TXSTARTED */
+/* Description: UART transmitter has started */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Pos (0UL) /*!< Position of EVENTS_TXSTARTED field. */
+#define UARTE_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Msk (0x1UL << UARTE_EVENTS_TXSTARTED_EVENTS_TXSTARTED_Pos) /*!< Bit mask of EVENTS_TXSTARTED field. */
+
+/* Register: UARTE_EVENTS_TXSTOPPED */
+/* Description: Transmitter stopped */
+
+/* Bit 0 : */
+#define UARTE_EVENTS_TXSTOPPED_EVENTS_TXSTOPPED_Pos (0UL) /*!< Position of EVENTS_TXSTOPPED field. */
+#define UARTE_EVENTS_TXSTOPPED_EVENTS_TXSTOPPED_Msk (0x1UL << UARTE_EVENTS_TXSTOPPED_EVENTS_TXSTOPPED_Pos) /*!< Bit mask of EVENTS_TXSTOPPED field. */
+
+/* Register: UARTE_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 6 : Shortcut between ENDRX event and STOPRX task */
+#define UARTE_SHORTS_ENDRX_STOPRX_Pos (6UL) /*!< Position of ENDRX_STOPRX field. */
+#define UARTE_SHORTS_ENDRX_STOPRX_Msk (0x1UL << UARTE_SHORTS_ENDRX_STOPRX_Pos) /*!< Bit mask of ENDRX_STOPRX field. */
+#define UARTE_SHORTS_ENDRX_STOPRX_Disabled (0UL) /*!< Disable shortcut */
+#define UARTE_SHORTS_ENDRX_STOPRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 5 : Shortcut between ENDRX event and STARTRX task */
+#define UARTE_SHORTS_ENDRX_STARTRX_Pos (5UL) /*!< Position of ENDRX_STARTRX field. */
+#define UARTE_SHORTS_ENDRX_STARTRX_Msk (0x1UL << UARTE_SHORTS_ENDRX_STARTRX_Pos) /*!< Bit mask of ENDRX_STARTRX field. */
+#define UARTE_SHORTS_ENDRX_STARTRX_Disabled (0UL) /*!< Disable shortcut */
+#define UARTE_SHORTS_ENDRX_STARTRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: UARTE_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 22 : Enable or disable interrupt for TXSTOPPED event */
+#define UARTE_INTEN_TXSTOPPED_Pos (22UL) /*!< Position of TXSTOPPED field. */
+#define UARTE_INTEN_TXSTOPPED_Msk (0x1UL << UARTE_INTEN_TXSTOPPED_Pos) /*!< Bit mask of TXSTOPPED field. */
+#define UARTE_INTEN_TXSTOPPED_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_TXSTOPPED_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for TXSTARTED event */
+#define UARTE_INTEN_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define UARTE_INTEN_TXSTARTED_Msk (0x1UL << UARTE_INTEN_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define UARTE_INTEN_TXSTARTED_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_TXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for RXSTARTED event */
+#define UARTE_INTEN_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define UARTE_INTEN_RXSTARTED_Msk (0x1UL << UARTE_INTEN_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define UARTE_INTEN_RXSTARTED_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_RXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 17 : Enable or disable interrupt for RXTO event */
+#define UARTE_INTEN_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UARTE_INTEN_RXTO_Msk (0x1UL << UARTE_INTEN_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UARTE_INTEN_RXTO_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_RXTO_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for ERROR event */
+#define UARTE_INTEN_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UARTE_INTEN_ERROR_Msk (0x1UL << UARTE_INTEN_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UARTE_INTEN_ERROR_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_ERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 8 : Enable or disable interrupt for ENDTX event */
+#define UARTE_INTEN_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define UARTE_INTEN_ENDTX_Msk (0x1UL << UARTE_INTEN_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define UARTE_INTEN_ENDTX_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_ENDTX_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for TXDRDY event */
+#define UARTE_INTEN_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UARTE_INTEN_TXDRDY_Msk (0x1UL << UARTE_INTEN_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UARTE_INTEN_TXDRDY_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_TXDRDY_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for ENDRX event */
+#define UARTE_INTEN_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define UARTE_INTEN_ENDRX_Msk (0x1UL << UARTE_INTEN_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define UARTE_INTEN_ENDRX_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_ENDRX_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for RXDRDY event */
+#define UARTE_INTEN_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UARTE_INTEN_RXDRDY_Msk (0x1UL << UARTE_INTEN_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UARTE_INTEN_RXDRDY_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_RXDRDY_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for NCTS event */
+#define UARTE_INTEN_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UARTE_INTEN_NCTS_Msk (0x1UL << UARTE_INTEN_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UARTE_INTEN_NCTS_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_NCTS_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for CTS event */
+#define UARTE_INTEN_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UARTE_INTEN_CTS_Msk (0x1UL << UARTE_INTEN_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UARTE_INTEN_CTS_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_CTS_Enabled (1UL) /*!< Enable */
+
+/* Register: UARTE_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 22 : Write '1' to enable interrupt for TXSTOPPED event */
+#define UARTE_INTENSET_TXSTOPPED_Pos (22UL) /*!< Position of TXSTOPPED field. */
+#define UARTE_INTENSET_TXSTOPPED_Msk (0x1UL << UARTE_INTENSET_TXSTOPPED_Pos) /*!< Bit mask of TXSTOPPED field. */
+#define UARTE_INTENSET_TXSTOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_TXSTOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_TXSTOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to enable interrupt for TXSTARTED event */
+#define UARTE_INTENSET_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define UARTE_INTENSET_TXSTARTED_Msk (0x1UL << UARTE_INTENSET_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define UARTE_INTENSET_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_TXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to enable interrupt for RXSTARTED event */
+#define UARTE_INTENSET_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define UARTE_INTENSET_RXSTARTED_Msk (0x1UL << UARTE_INTENSET_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define UARTE_INTENSET_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_RXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to enable interrupt for RXTO event */
+#define UARTE_INTENSET_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UARTE_INTENSET_RXTO_Msk (0x1UL << UARTE_INTENSET_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UARTE_INTENSET_RXTO_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_RXTO_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_RXTO_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to enable interrupt for ERROR event */
+#define UARTE_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UARTE_INTENSET_ERROR_Msk (0x1UL << UARTE_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UARTE_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to enable interrupt for ENDTX event */
+#define UARTE_INTENSET_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define UARTE_INTENSET_ENDTX_Msk (0x1UL << UARTE_INTENSET_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define UARTE_INTENSET_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_ENDTX_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to enable interrupt for TXDRDY event */
+#define UARTE_INTENSET_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UARTE_INTENSET_TXDRDY_Msk (0x1UL << UARTE_INTENSET_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UARTE_INTENSET_TXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_TXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_TXDRDY_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable interrupt for ENDRX event */
+#define UARTE_INTENSET_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define UARTE_INTENSET_ENDRX_Msk (0x1UL << UARTE_INTENSET_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define UARTE_INTENSET_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_ENDRX_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for RXDRDY event */
+#define UARTE_INTENSET_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UARTE_INTENSET_RXDRDY_Msk (0x1UL << UARTE_INTENSET_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UARTE_INTENSET_RXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_RXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_RXDRDY_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for NCTS event */
+#define UARTE_INTENSET_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UARTE_INTENSET_NCTS_Msk (0x1UL << UARTE_INTENSET_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UARTE_INTENSET_NCTS_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_NCTS_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_NCTS_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for CTS event */
+#define UARTE_INTENSET_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UARTE_INTENSET_CTS_Msk (0x1UL << UARTE_INTENSET_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UARTE_INTENSET_CTS_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_CTS_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_CTS_Set (1UL) /*!< Enable */
+
+/* Register: UARTE_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 22 : Write '1' to disable interrupt for TXSTOPPED event */
+#define UARTE_INTENCLR_TXSTOPPED_Pos (22UL) /*!< Position of TXSTOPPED field. */
+#define UARTE_INTENCLR_TXSTOPPED_Msk (0x1UL << UARTE_INTENCLR_TXSTOPPED_Pos) /*!< Bit mask of TXSTOPPED field. */
+#define UARTE_INTENCLR_TXSTOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_TXSTOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_TXSTOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to disable interrupt for TXSTARTED event */
+#define UARTE_INTENCLR_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define UARTE_INTENCLR_TXSTARTED_Msk (0x1UL << UARTE_INTENCLR_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define UARTE_INTENCLR_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_TXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to disable interrupt for RXSTARTED event */
+#define UARTE_INTENCLR_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define UARTE_INTENCLR_RXSTARTED_Msk (0x1UL << UARTE_INTENCLR_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define UARTE_INTENCLR_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_RXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to disable interrupt for RXTO event */
+#define UARTE_INTENCLR_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UARTE_INTENCLR_RXTO_Msk (0x1UL << UARTE_INTENCLR_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UARTE_INTENCLR_RXTO_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_RXTO_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_RXTO_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to disable interrupt for ERROR event */
+#define UARTE_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UARTE_INTENCLR_ERROR_Msk (0x1UL << UARTE_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UARTE_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to disable interrupt for ENDTX event */
+#define UARTE_INTENCLR_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define UARTE_INTENCLR_ENDTX_Msk (0x1UL << UARTE_INTENCLR_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define UARTE_INTENCLR_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_ENDTX_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to disable interrupt for TXDRDY event */
+#define UARTE_INTENCLR_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UARTE_INTENCLR_TXDRDY_Msk (0x1UL << UARTE_INTENCLR_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UARTE_INTENCLR_TXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_TXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_TXDRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable interrupt for ENDRX event */
+#define UARTE_INTENCLR_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define UARTE_INTENCLR_ENDRX_Msk (0x1UL << UARTE_INTENCLR_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define UARTE_INTENCLR_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_ENDRX_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for RXDRDY event */
+#define UARTE_INTENCLR_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UARTE_INTENCLR_RXDRDY_Msk (0x1UL << UARTE_INTENCLR_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UARTE_INTENCLR_RXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_RXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_RXDRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for NCTS event */
+#define UARTE_INTENCLR_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UARTE_INTENCLR_NCTS_Msk (0x1UL << UARTE_INTENCLR_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UARTE_INTENCLR_NCTS_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_NCTS_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_NCTS_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for CTS event */
+#define UARTE_INTENCLR_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UARTE_INTENCLR_CTS_Msk (0x1UL << UARTE_INTENCLR_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UARTE_INTENCLR_CTS_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_CTS_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_CTS_Clear (1UL) /*!< Disable */
+
+/* Register: UARTE_ERRORSRC */
+/* Description: Error source Note : this register is read / write one to clear. */
+
+/* Bit 3 : Break condition */
+#define UARTE_ERRORSRC_BREAK_Pos (3UL) /*!< Position of BREAK field. */
+#define UARTE_ERRORSRC_BREAK_Msk (0x1UL << UARTE_ERRORSRC_BREAK_Pos) /*!< Bit mask of BREAK field. */
+#define UARTE_ERRORSRC_BREAK_NotPresent (0UL) /*!< Read: error not present */
+#define UARTE_ERRORSRC_BREAK_Present (1UL) /*!< Read: error present */
+
+/* Bit 2 : Framing error occurred */
+#define UARTE_ERRORSRC_FRAMING_Pos (2UL) /*!< Position of FRAMING field. */
+#define UARTE_ERRORSRC_FRAMING_Msk (0x1UL << UARTE_ERRORSRC_FRAMING_Pos) /*!< Bit mask of FRAMING field. */
+#define UARTE_ERRORSRC_FRAMING_NotPresent (0UL) /*!< Read: error not present */
+#define UARTE_ERRORSRC_FRAMING_Present (1UL) /*!< Read: error present */
+
+/* Bit 1 : Parity error */
+#define UARTE_ERRORSRC_PARITY_Pos (1UL) /*!< Position of PARITY field. */
+#define UARTE_ERRORSRC_PARITY_Msk (0x1UL << UARTE_ERRORSRC_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define UARTE_ERRORSRC_PARITY_NotPresent (0UL) /*!< Read: error not present */
+#define UARTE_ERRORSRC_PARITY_Present (1UL) /*!< Read: error present */
+
+/* Bit 0 : Overrun error */
+#define UARTE_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
+#define UARTE_ERRORSRC_OVERRUN_Msk (0x1UL << UARTE_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define UARTE_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: error not present */
+#define UARTE_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: error present */
+
+/* Register: UARTE_ENABLE */
+/* Description: Enable UART */
+
+/* Bits 3..0 : Enable or disable UARTE */
+#define UARTE_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define UARTE_ENABLE_ENABLE_Msk (0xFUL << UARTE_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define UARTE_ENABLE_ENABLE_Disabled (0UL) /*!< Disable UARTE */
+#define UARTE_ENABLE_ENABLE_Enabled (8UL) /*!< Enable UARTE */
+
+/* Register: UARTE_PSEL_RTS */
+/* Description: Pin select for RTS signal */
+
+/* Bit 31 : Connection */
+#define UARTE_PSEL_RTS_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UARTE_PSEL_RTS_CONNECT_Msk (0x1UL << UARTE_PSEL_RTS_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UARTE_PSEL_RTS_CONNECT_Connected (0UL) /*!< Connect */
+#define UARTE_PSEL_RTS_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define UARTE_PSEL_RTS_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define UARTE_PSEL_RTS_PORT_Msk (0x1UL << UARTE_PSEL_RTS_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define UARTE_PSEL_RTS_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UARTE_PSEL_RTS_PIN_Msk (0x1FUL << UARTE_PSEL_RTS_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UARTE_PSEL_TXD */
+/* Description: Pin select for TXD signal */
+
+/* Bit 31 : Connection */
+#define UARTE_PSEL_TXD_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UARTE_PSEL_TXD_CONNECT_Msk (0x1UL << UARTE_PSEL_TXD_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UARTE_PSEL_TXD_CONNECT_Connected (0UL) /*!< Connect */
+#define UARTE_PSEL_TXD_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define UARTE_PSEL_TXD_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define UARTE_PSEL_TXD_PORT_Msk (0x1UL << UARTE_PSEL_TXD_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define UARTE_PSEL_TXD_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UARTE_PSEL_TXD_PIN_Msk (0x1FUL << UARTE_PSEL_TXD_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UARTE_PSEL_CTS */
+/* Description: Pin select for CTS signal */
+
+/* Bit 31 : Connection */
+#define UARTE_PSEL_CTS_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UARTE_PSEL_CTS_CONNECT_Msk (0x1UL << UARTE_PSEL_CTS_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UARTE_PSEL_CTS_CONNECT_Connected (0UL) /*!< Connect */
+#define UARTE_PSEL_CTS_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define UARTE_PSEL_CTS_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define UARTE_PSEL_CTS_PORT_Msk (0x1UL << UARTE_PSEL_CTS_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define UARTE_PSEL_CTS_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UARTE_PSEL_CTS_PIN_Msk (0x1FUL << UARTE_PSEL_CTS_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UARTE_PSEL_RXD */
+/* Description: Pin select for RXD signal */
+
+/* Bit 31 : Connection */
+#define UARTE_PSEL_RXD_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UARTE_PSEL_RXD_CONNECT_Msk (0x1UL << UARTE_PSEL_RXD_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UARTE_PSEL_RXD_CONNECT_Connected (0UL) /*!< Connect */
+#define UARTE_PSEL_RXD_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number */
+#define UARTE_PSEL_RXD_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define UARTE_PSEL_RXD_PORT_Msk (0x1UL << UARTE_PSEL_RXD_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number */
+#define UARTE_PSEL_RXD_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UARTE_PSEL_RXD_PIN_Msk (0x1FUL << UARTE_PSEL_RXD_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UARTE_BAUDRATE */
+/* Description: Baud rate. Accuracy depends on the HFCLK source selected. */
+
+/* Bits 31..0 : Baud rate */
+#define UARTE_BAUDRATE_BAUDRATE_Pos (0UL) /*!< Position of BAUDRATE field. */
+#define UARTE_BAUDRATE_BAUDRATE_Msk (0xFFFFFFFFUL << UARTE_BAUDRATE_BAUDRATE_Pos) /*!< Bit mask of BAUDRATE field. */
+#define UARTE_BAUDRATE_BAUDRATE_Baud1200 (0x0004F000UL) /*!< 1200 baud (actual rate: 1205) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud2400 (0x0009D000UL) /*!< 2400 baud (actual rate: 2396) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud4800 (0x0013B000UL) /*!< 4800 baud (actual rate: 4808) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud9600 (0x00275000UL) /*!< 9600 baud (actual rate: 9598) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud14400 (0x003AF000UL) /*!< 14400 baud (actual rate: 14401) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud19200 (0x004EA000UL) /*!< 19200 baud (actual rate: 19208) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud28800 (0x0075C000UL) /*!< 28800 baud (actual rate: 28777) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud31250 (0x00800000UL) /*!< 31250 baud */
+#define UARTE_BAUDRATE_BAUDRATE_Baud38400 (0x009D0000UL) /*!< 38400 baud (actual rate: 38369) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud56000 (0x00E50000UL) /*!< 56000 baud (actual rate: 55944) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud57600 (0x00EB0000UL) /*!< 57600 baud (actual rate: 57554) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud76800 (0x013A9000UL) /*!< 76800 baud (actual rate: 76923) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud115200 (0x01D60000UL) /*!< 115200 baud (actual rate: 115108) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud230400 (0x03B00000UL) /*!< 230400 baud (actual rate: 231884) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud250000 (0x04000000UL) /*!< 250000 baud */
+#define UARTE_BAUDRATE_BAUDRATE_Baud460800 (0x07400000UL) /*!< 460800 baud (actual rate: 457143) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud921600 (0x0F000000UL) /*!< 921600 baud (actual rate: 941176) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud1M (0x10000000UL) /*!< 1Mega baud */
+
+/* Register: UARTE_RXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define UARTE_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define UARTE_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << UARTE_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: UARTE_RXD_MAXCNT */
+/* Description: Maximum number of bytes in receive buffer */
+
+/* Bits 15..0 : Maximum number of bytes in receive buffer */
+#define UARTE_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define UARTE_RXD_MAXCNT_MAXCNT_Msk (0xFFFFUL << UARTE_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: UARTE_RXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 15..0 : Number of bytes transferred in the last transaction */
+#define UARTE_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define UARTE_RXD_AMOUNT_AMOUNT_Msk (0xFFFFUL << UARTE_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: UARTE_TXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define UARTE_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define UARTE_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << UARTE_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: UARTE_TXD_MAXCNT */
+/* Description: Maximum number of bytes in transmit buffer */
+
+/* Bits 15..0 : Maximum number of bytes in transmit buffer */
+#define UARTE_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define UARTE_TXD_MAXCNT_MAXCNT_Msk (0xFFFFUL << UARTE_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: UARTE_TXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 15..0 : Number of bytes transferred in the last transaction */
+#define UARTE_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define UARTE_TXD_AMOUNT_AMOUNT_Msk (0xFFFFUL << UARTE_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: UARTE_CONFIG */
+/* Description: Configuration of parity and hardware flow control */
+
+/* Bit 4 : Stop bits */
+#define UARTE_CONFIG_STOP_Pos (4UL) /*!< Position of STOP field. */
+#define UARTE_CONFIG_STOP_Msk (0x1UL << UARTE_CONFIG_STOP_Pos) /*!< Bit mask of STOP field. */
+#define UARTE_CONFIG_STOP_One (0UL) /*!< One stop bit */
+#define UARTE_CONFIG_STOP_Two (1UL) /*!< Two stop bits */
+
+/* Bits 3..1 : Parity */
+#define UARTE_CONFIG_PARITY_Pos (1UL) /*!< Position of PARITY field. */
+#define UARTE_CONFIG_PARITY_Msk (0x7UL << UARTE_CONFIG_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define UARTE_CONFIG_PARITY_Excluded (0x0UL) /*!< Exclude parity bit */
+#define UARTE_CONFIG_PARITY_Included (0x7UL) /*!< Include even parity bit */
+
+/* Bit 0 : Hardware flow control */
+#define UARTE_CONFIG_HWFC_Pos (0UL) /*!< Position of HWFC field. */
+#define UARTE_CONFIG_HWFC_Msk (0x1UL << UARTE_CONFIG_HWFC_Pos) /*!< Bit mask of HWFC field. */
+#define UARTE_CONFIG_HWFC_Disabled (0UL) /*!< Disabled */
+#define UARTE_CONFIG_HWFC_Enabled (1UL) /*!< Enabled */
+
+
+/* Peripheral: UICR */
+/* Description: User information configuration registers */
+
+/* Register: UICR_NRFFW */
+/* Description: Description collection[n]: Reserved for Nordic firmware design */
+
+/* Bits 31..0 : Reserved for Nordic firmware design */
+#define UICR_NRFFW_NRFFW_Pos (0UL) /*!< Position of NRFFW field. */
+#define UICR_NRFFW_NRFFW_Msk (0xFFFFFFFFUL << UICR_NRFFW_NRFFW_Pos) /*!< Bit mask of NRFFW field. */
+
+/* Register: UICR_NRFHW */
+/* Description: Description collection[n]: Reserved for Nordic hardware design */
+
+/* Bits 31..0 : Reserved for Nordic hardware design */
+#define UICR_NRFHW_NRFHW_Pos (0UL) /*!< Position of NRFHW field. */
+#define UICR_NRFHW_NRFHW_Msk (0xFFFFFFFFUL << UICR_NRFHW_NRFHW_Pos) /*!< Bit mask of NRFHW field. */
+
+/* Register: UICR_CUSTOMER */
+/* Description: Description collection[n]: Reserved for customer */
+
+/* Bits 31..0 : Reserved for customer */
+#define UICR_CUSTOMER_CUSTOMER_Pos (0UL) /*!< Position of CUSTOMER field. */
+#define UICR_CUSTOMER_CUSTOMER_Msk (0xFFFFFFFFUL << UICR_CUSTOMER_CUSTOMER_Pos) /*!< Bit mask of CUSTOMER field. */
+
+/* Register: UICR_PSELRESET */
+/* Description: Description collection[n]: Mapping of the nRESET function */
+
+/* Bit 31 : Connection */
+#define UICR_PSELRESET_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UICR_PSELRESET_CONNECT_Msk (0x1UL << UICR_PSELRESET_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UICR_PSELRESET_CONNECT_Connected (0UL) /*!< Connect */
+#define UICR_PSELRESET_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bit 5 : Port number onto which nRESET is exposed */
+#define UICR_PSELRESET_PORT_Pos (5UL) /*!< Position of PORT field. */
+#define UICR_PSELRESET_PORT_Msk (0x1UL << UICR_PSELRESET_PORT_Pos) /*!< Bit mask of PORT field. */
+
+/* Bits 4..0 : Pin number of PORT onto which nRESET is exposed */
+#define UICR_PSELRESET_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UICR_PSELRESET_PIN_Msk (0x1FUL << UICR_PSELRESET_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UICR_APPROTECT */
+/* Description: Access port protection */
+
+/* Bits 7..0 : Enable or disable access port protection. */
+#define UICR_APPROTECT_PALL_Pos (0UL) /*!< Position of PALL field. */
+#define UICR_APPROTECT_PALL_Msk (0xFFUL << UICR_APPROTECT_PALL_Pos) /*!< Bit mask of PALL field. */
+#define UICR_APPROTECT_PALL_Enabled (0x00UL) /*!< Enable */
+#define UICR_APPROTECT_PALL_Disabled (0xFFUL) /*!< Disable */
+
+/* Register: UICR_NFCPINS */
+/* Description: Setting of pins dedicated to NFC functionality: NFC antenna or GPIO */
+
+/* Bit 0 : Setting of pins dedicated to NFC functionality */
+#define UICR_NFCPINS_PROTECT_Pos (0UL) /*!< Position of PROTECT field. */
+#define UICR_NFCPINS_PROTECT_Msk (0x1UL << UICR_NFCPINS_PROTECT_Pos) /*!< Bit mask of PROTECT field. */
+#define UICR_NFCPINS_PROTECT_Disabled (0UL) /*!< Operation as GPIO pins. Same protection as normal GPIO pins */
+#define UICR_NFCPINS_PROTECT_NFC (1UL) /*!< Operation as NFC antenna pins. Configures the protection for NFC operation */
+
+/* Register: UICR_DEBUGCTRL */
+/* Description: Processor debug control */
+
+/* Bits 15..8 : Configure CPU flash patch and breakpoint (FPB) unit behavior */
+#define UICR_DEBUGCTRL_CPUFPBEN_Pos (8UL) /*!< Position of CPUFPBEN field. */
+#define UICR_DEBUGCTRL_CPUFPBEN_Msk (0xFFUL << UICR_DEBUGCTRL_CPUFPBEN_Pos) /*!< Bit mask of CPUFPBEN field. */
+#define UICR_DEBUGCTRL_CPUFPBEN_Disabled (0x00UL) /*!< Disable CPU FPB unit. Writes into the FPB registers will be ignored. */
+#define UICR_DEBUGCTRL_CPUFPBEN_Enabled (0xFFUL) /*!< Enable CPU FPB unit (default behavior) */
+
+/* Bits 7..0 : Configure CPU non-intrusive debug features */
+#define UICR_DEBUGCTRL_CPUNIDEN_Pos (0UL) /*!< Position of CPUNIDEN field. */
+#define UICR_DEBUGCTRL_CPUNIDEN_Msk (0xFFUL << UICR_DEBUGCTRL_CPUNIDEN_Pos) /*!< Bit mask of CPUNIDEN field. */
+#define UICR_DEBUGCTRL_CPUNIDEN_Disabled (0x00UL) /*!< Disable CPU ITM and ETM functionality */
+#define UICR_DEBUGCTRL_CPUNIDEN_Enabled (0xFFUL) /*!< Enable CPU ITM and ETM functionality (default behavior) */
+
+/* Register: UICR_REGOUT0 */
+/* Description: GPIO reference voltage / external output supply voltage in high voltage mode */
+
+/* Bits 2..0 : Output voltage from of REG0 regulator stage. The maximum output voltage from this stage is given as VDDH - VEXDIF. */
+#define UICR_REGOUT0_VOUT_Pos (0UL) /*!< Position of VOUT field. */
+#define UICR_REGOUT0_VOUT_Msk (0x7UL << UICR_REGOUT0_VOUT_Pos) /*!< Bit mask of VOUT field. */
+#define UICR_REGOUT0_VOUT_1V8 (0UL) /*!< 1.8 V */
+#define UICR_REGOUT0_VOUT_2V1 (1UL) /*!< 2.1 V */
+#define UICR_REGOUT0_VOUT_2V4 (2UL) /*!< 2.4 V */
+#define UICR_REGOUT0_VOUT_2V7 (3UL) /*!< 2.7 V */
+#define UICR_REGOUT0_VOUT_3V0 (4UL) /*!< 3.0 V */
+#define UICR_REGOUT0_VOUT_3V3 (5UL) /*!< 3.3 V */
+#define UICR_REGOUT0_VOUT_DEFAULT (7UL) /*!< Default voltage: 1.8 V */
+
+
+/* Peripheral: USBD */
+/* Description: Universal serial bus device */
+
+/* Register: USBD_TASKS_STARTEPIN */
+/* Description: Description collection[n]: Captures the EPIN[n].PTR and EPIN[n].MAXCNT registers values, and enables endpoint IN n to respond to traffic from host */
+
+/* Bit 0 : */
+#define USBD_TASKS_STARTEPIN_TASKS_STARTEPIN_Pos (0UL) /*!< Position of TASKS_STARTEPIN field. */
+#define USBD_TASKS_STARTEPIN_TASKS_STARTEPIN_Msk (0x1UL << USBD_TASKS_STARTEPIN_TASKS_STARTEPIN_Pos) /*!< Bit mask of TASKS_STARTEPIN field. */
+
+/* Register: USBD_TASKS_STARTISOIN */
+/* Description: Captures the ISOIN.PTR and ISOIN.MAXCNT registers values, and enables sending data on ISO endpoint */
+
+/* Bit 0 : */
+#define USBD_TASKS_STARTISOIN_TASKS_STARTISOIN_Pos (0UL) /*!< Position of TASKS_STARTISOIN field. */
+#define USBD_TASKS_STARTISOIN_TASKS_STARTISOIN_Msk (0x1UL << USBD_TASKS_STARTISOIN_TASKS_STARTISOIN_Pos) /*!< Bit mask of TASKS_STARTISOIN field. */
+
+/* Register: USBD_TASKS_STARTEPOUT */
+/* Description: Description collection[n]: Captures the EPOUT[n].PTR and EPOUT[n].MAXCNT registers values, and enables endpoint n to respond to traffic from host */
+
+/* Bit 0 : */
+#define USBD_TASKS_STARTEPOUT_TASKS_STARTEPOUT_Pos (0UL) /*!< Position of TASKS_STARTEPOUT field. */
+#define USBD_TASKS_STARTEPOUT_TASKS_STARTEPOUT_Msk (0x1UL << USBD_TASKS_STARTEPOUT_TASKS_STARTEPOUT_Pos) /*!< Bit mask of TASKS_STARTEPOUT field. */
+
+/* Register: USBD_TASKS_STARTISOOUT */
+/* Description: Captures the ISOOUT.PTR and ISOOUT.MAXCNT registers values, and enables receiving of data on ISO endpoint */
+
+/* Bit 0 : */
+#define USBD_TASKS_STARTISOOUT_TASKS_STARTISOOUT_Pos (0UL) /*!< Position of TASKS_STARTISOOUT field. */
+#define USBD_TASKS_STARTISOOUT_TASKS_STARTISOOUT_Msk (0x1UL << USBD_TASKS_STARTISOOUT_TASKS_STARTISOOUT_Pos) /*!< Bit mask of TASKS_STARTISOOUT field. */
+
+/* Register: USBD_TASKS_EP0RCVOUT */
+/* Description: Allows OUT data stage on control endpoint 0 */
+
+/* Bit 0 : */
+#define USBD_TASKS_EP0RCVOUT_TASKS_EP0RCVOUT_Pos (0UL) /*!< Position of TASKS_EP0RCVOUT field. */
+#define USBD_TASKS_EP0RCVOUT_TASKS_EP0RCVOUT_Msk (0x1UL << USBD_TASKS_EP0RCVOUT_TASKS_EP0RCVOUT_Pos) /*!< Bit mask of TASKS_EP0RCVOUT field. */
+
+/* Register: USBD_TASKS_EP0STATUS */
+/* Description: Allows status stage on control endpoint 0 */
+
+/* Bit 0 : */
+#define USBD_TASKS_EP0STATUS_TASKS_EP0STATUS_Pos (0UL) /*!< Position of TASKS_EP0STATUS field. */
+#define USBD_TASKS_EP0STATUS_TASKS_EP0STATUS_Msk (0x1UL << USBD_TASKS_EP0STATUS_TASKS_EP0STATUS_Pos) /*!< Bit mask of TASKS_EP0STATUS field. */
+
+/* Register: USBD_TASKS_EP0STALL */
+/* Description: Stalls data and status stage on control endpoint 0 */
+
+/* Bit 0 : */
+#define USBD_TASKS_EP0STALL_TASKS_EP0STALL_Pos (0UL) /*!< Position of TASKS_EP0STALL field. */
+#define USBD_TASKS_EP0STALL_TASKS_EP0STALL_Msk (0x1UL << USBD_TASKS_EP0STALL_TASKS_EP0STALL_Pos) /*!< Bit mask of TASKS_EP0STALL field. */
+
+/* Register: USBD_TASKS_DPDMDRIVE */
+/* Description: Forces D+ and D- lines into the state defined in the DPDMVALUE register */
+
+/* Bit 0 : */
+#define USBD_TASKS_DPDMDRIVE_TASKS_DPDMDRIVE_Pos (0UL) /*!< Position of TASKS_DPDMDRIVE field. */
+#define USBD_TASKS_DPDMDRIVE_TASKS_DPDMDRIVE_Msk (0x1UL << USBD_TASKS_DPDMDRIVE_TASKS_DPDMDRIVE_Pos) /*!< Bit mask of TASKS_DPDMDRIVE field. */
+
+/* Register: USBD_TASKS_DPDMNODRIVE */
+/* Description: Stops forcing D+ and D- lines into any state (USB engine takes control) */
+
+/* Bit 0 : */
+#define USBD_TASKS_DPDMNODRIVE_TASKS_DPDMNODRIVE_Pos (0UL) /*!< Position of TASKS_DPDMNODRIVE field. */
+#define USBD_TASKS_DPDMNODRIVE_TASKS_DPDMNODRIVE_Msk (0x1UL << USBD_TASKS_DPDMNODRIVE_TASKS_DPDMNODRIVE_Pos) /*!< Bit mask of TASKS_DPDMNODRIVE field. */
+
+/* Register: USBD_EVENTS_USBRESET */
+/* Description: Signals that a USB reset condition has been detected on USB lines */
+
+/* Bit 0 : */
+#define USBD_EVENTS_USBRESET_EVENTS_USBRESET_Pos (0UL) /*!< Position of EVENTS_USBRESET field. */
+#define USBD_EVENTS_USBRESET_EVENTS_USBRESET_Msk (0x1UL << USBD_EVENTS_USBRESET_EVENTS_USBRESET_Pos) /*!< Bit mask of EVENTS_USBRESET field. */
+
+/* Register: USBD_EVENTS_STARTED */
+/* Description: Confirms that the EPIN[n].PTR and EPIN[n].MAXCNT, or EPOUT[n].PTR and EPOUT[n].MAXCNT registers have been captured on all endpoints reported in the EPSTATUS register */
+
+/* Bit 0 : */
+#define USBD_EVENTS_STARTED_EVENTS_STARTED_Pos (0UL) /*!< Position of EVENTS_STARTED field. */
+#define USBD_EVENTS_STARTED_EVENTS_STARTED_Msk (0x1UL << USBD_EVENTS_STARTED_EVENTS_STARTED_Pos) /*!< Bit mask of EVENTS_STARTED field. */
+
+/* Register: USBD_EVENTS_ENDEPIN */
+/* Description: Description collection[n]: The whole EPIN[n] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+
+/* Bit 0 : */
+#define USBD_EVENTS_ENDEPIN_EVENTS_ENDEPIN_Pos (0UL) /*!< Position of EVENTS_ENDEPIN field. */
+#define USBD_EVENTS_ENDEPIN_EVENTS_ENDEPIN_Msk (0x1UL << USBD_EVENTS_ENDEPIN_EVENTS_ENDEPIN_Pos) /*!< Bit mask of EVENTS_ENDEPIN field. */
+
+/* Register: USBD_EVENTS_EP0DATADONE */
+/* Description: An acknowledged data transfer has taken place on the control endpoint */
+
+/* Bit 0 : */
+#define USBD_EVENTS_EP0DATADONE_EVENTS_EP0DATADONE_Pos (0UL) /*!< Position of EVENTS_EP0DATADONE field. */
+#define USBD_EVENTS_EP0DATADONE_EVENTS_EP0DATADONE_Msk (0x1UL << USBD_EVENTS_EP0DATADONE_EVENTS_EP0DATADONE_Pos) /*!< Bit mask of EVENTS_EP0DATADONE field. */
+
+/* Register: USBD_EVENTS_ENDISOIN */
+/* Description: The whole ISOIN buffer has been consumed. The RAM buffer can be accessed safely by software. */
+
+/* Bit 0 : */
+#define USBD_EVENTS_ENDISOIN_EVENTS_ENDISOIN_Pos (0UL) /*!< Position of EVENTS_ENDISOIN field. */
+#define USBD_EVENTS_ENDISOIN_EVENTS_ENDISOIN_Msk (0x1UL << USBD_EVENTS_ENDISOIN_EVENTS_ENDISOIN_Pos) /*!< Bit mask of EVENTS_ENDISOIN field. */
+
+/* Register: USBD_EVENTS_ENDEPOUT */
+/* Description: Description collection[n]: The whole EPOUT[n] buffer has been consumed. The RAM buffer can be accessed safely by software. */
+
+/* Bit 0 : */
+#define USBD_EVENTS_ENDEPOUT_EVENTS_ENDEPOUT_Pos (0UL) /*!< Position of EVENTS_ENDEPOUT field. */
+#define USBD_EVENTS_ENDEPOUT_EVENTS_ENDEPOUT_Msk (0x1UL << USBD_EVENTS_ENDEPOUT_EVENTS_ENDEPOUT_Pos) /*!< Bit mask of EVENTS_ENDEPOUT field. */
+
+/* Register: USBD_EVENTS_ENDISOOUT */
+/* Description: The whole ISOOUT buffer has been consumed. The RAM buffer can be accessed safely by software. */
+
+/* Bit 0 : */
+#define USBD_EVENTS_ENDISOOUT_EVENTS_ENDISOOUT_Pos (0UL) /*!< Position of EVENTS_ENDISOOUT field. */
+#define USBD_EVENTS_ENDISOOUT_EVENTS_ENDISOOUT_Msk (0x1UL << USBD_EVENTS_ENDISOOUT_EVENTS_ENDISOOUT_Pos) /*!< Bit mask of EVENTS_ENDISOOUT field. */
+
+/* Register: USBD_EVENTS_SOF */
+/* Description: Signals that a SOF (start of frame) condition has been detected on USB lines */
+
+/* Bit 0 : */
+#define USBD_EVENTS_SOF_EVENTS_SOF_Pos (0UL) /*!< Position of EVENTS_SOF field. */
+#define USBD_EVENTS_SOF_EVENTS_SOF_Msk (0x1UL << USBD_EVENTS_SOF_EVENTS_SOF_Pos) /*!< Bit mask of EVENTS_SOF field. */
+
+/* Register: USBD_EVENTS_USBEVENT */
+/* Description: An event or an error not covered by specific events has occurred. Check EVENTCAUSE register to find the cause. */
+
+/* Bit 0 : */
+#define USBD_EVENTS_USBEVENT_EVENTS_USBEVENT_Pos (0UL) /*!< Position of EVENTS_USBEVENT field. */
+#define USBD_EVENTS_USBEVENT_EVENTS_USBEVENT_Msk (0x1UL << USBD_EVENTS_USBEVENT_EVENTS_USBEVENT_Pos) /*!< Bit mask of EVENTS_USBEVENT field. */
+
+/* Register: USBD_EVENTS_EP0SETUP */
+/* Description: A valid SETUP token has been received (and acknowledged) on the control endpoint */
+
+/* Bit 0 : */
+#define USBD_EVENTS_EP0SETUP_EVENTS_EP0SETUP_Pos (0UL) /*!< Position of EVENTS_EP0SETUP field. */
+#define USBD_EVENTS_EP0SETUP_EVENTS_EP0SETUP_Msk (0x1UL << USBD_EVENTS_EP0SETUP_EVENTS_EP0SETUP_Pos) /*!< Bit mask of EVENTS_EP0SETUP field. */
+
+/* Register: USBD_EVENTS_EPDATA */
+/* Description: A data transfer has occurred on a data endpoint, indicated by the EPDATASTATUS register */
+
+/* Bit 0 : */
+#define USBD_EVENTS_EPDATA_EVENTS_EPDATA_Pos (0UL) /*!< Position of EVENTS_EPDATA field. */
+#define USBD_EVENTS_EPDATA_EVENTS_EPDATA_Msk (0x1UL << USBD_EVENTS_EPDATA_EVENTS_EPDATA_Pos) /*!< Bit mask of EVENTS_EPDATA field. */
+
+/* Register: USBD_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 4 : Shortcut between ENDEPOUT[0] event and EP0RCVOUT task */
+#define USBD_SHORTS_ENDEPOUT0_EP0RCVOUT_Pos (4UL) /*!< Position of ENDEPOUT0_EP0RCVOUT field. */
+#define USBD_SHORTS_ENDEPOUT0_EP0RCVOUT_Msk (0x1UL << USBD_SHORTS_ENDEPOUT0_EP0RCVOUT_Pos) /*!< Bit mask of ENDEPOUT0_EP0RCVOUT field. */
+#define USBD_SHORTS_ENDEPOUT0_EP0RCVOUT_Disabled (0UL) /*!< Disable shortcut */
+#define USBD_SHORTS_ENDEPOUT0_EP0RCVOUT_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between ENDEPOUT[0] event and EP0STATUS task */
+#define USBD_SHORTS_ENDEPOUT0_EP0STATUS_Pos (3UL) /*!< Position of ENDEPOUT0_EP0STATUS field. */
+#define USBD_SHORTS_ENDEPOUT0_EP0STATUS_Msk (0x1UL << USBD_SHORTS_ENDEPOUT0_EP0STATUS_Pos) /*!< Bit mask of ENDEPOUT0_EP0STATUS field. */
+#define USBD_SHORTS_ENDEPOUT0_EP0STATUS_Disabled (0UL) /*!< Disable shortcut */
+#define USBD_SHORTS_ENDEPOUT0_EP0STATUS_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between EP0DATADONE event and EP0STATUS task */
+#define USBD_SHORTS_EP0DATADONE_EP0STATUS_Pos (2UL) /*!< Position of EP0DATADONE_EP0STATUS field. */
+#define USBD_SHORTS_EP0DATADONE_EP0STATUS_Msk (0x1UL << USBD_SHORTS_EP0DATADONE_EP0STATUS_Pos) /*!< Bit mask of EP0DATADONE_EP0STATUS field. */
+#define USBD_SHORTS_EP0DATADONE_EP0STATUS_Disabled (0UL) /*!< Disable shortcut */
+#define USBD_SHORTS_EP0DATADONE_EP0STATUS_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between EP0DATADONE event and STARTEPOUT[0] task */
+#define USBD_SHORTS_EP0DATADONE_STARTEPOUT0_Pos (1UL) /*!< Position of EP0DATADONE_STARTEPOUT0 field. */
+#define USBD_SHORTS_EP0DATADONE_STARTEPOUT0_Msk (0x1UL << USBD_SHORTS_EP0DATADONE_STARTEPOUT0_Pos) /*!< Bit mask of EP0DATADONE_STARTEPOUT0 field. */
+#define USBD_SHORTS_EP0DATADONE_STARTEPOUT0_Disabled (0UL) /*!< Disable shortcut */
+#define USBD_SHORTS_EP0DATADONE_STARTEPOUT0_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between EP0DATADONE event and STARTEPIN[0] task */
+#define USBD_SHORTS_EP0DATADONE_STARTEPIN0_Pos (0UL) /*!< Position of EP0DATADONE_STARTEPIN0 field. */
+#define USBD_SHORTS_EP0DATADONE_STARTEPIN0_Msk (0x1UL << USBD_SHORTS_EP0DATADONE_STARTEPIN0_Pos) /*!< Bit mask of EP0DATADONE_STARTEPIN0 field. */
+#define USBD_SHORTS_EP0DATADONE_STARTEPIN0_Disabled (0UL) /*!< Disable shortcut */
+#define USBD_SHORTS_EP0DATADONE_STARTEPIN0_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: USBD_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 24 : Enable or disable interrupt for EPDATA event */
+#define USBD_INTEN_EPDATA_Pos (24UL) /*!< Position of EPDATA field. */
+#define USBD_INTEN_EPDATA_Msk (0x1UL << USBD_INTEN_EPDATA_Pos) /*!< Bit mask of EPDATA field. */
+#define USBD_INTEN_EPDATA_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_EPDATA_Enabled (1UL) /*!< Enable */
+
+/* Bit 23 : Enable or disable interrupt for EP0SETUP event */
+#define USBD_INTEN_EP0SETUP_Pos (23UL) /*!< Position of EP0SETUP field. */
+#define USBD_INTEN_EP0SETUP_Msk (0x1UL << USBD_INTEN_EP0SETUP_Pos) /*!< Bit mask of EP0SETUP field. */
+#define USBD_INTEN_EP0SETUP_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_EP0SETUP_Enabled (1UL) /*!< Enable */
+
+/* Bit 22 : Enable or disable interrupt for USBEVENT event */
+#define USBD_INTEN_USBEVENT_Pos (22UL) /*!< Position of USBEVENT field. */
+#define USBD_INTEN_USBEVENT_Msk (0x1UL << USBD_INTEN_USBEVENT_Pos) /*!< Bit mask of USBEVENT field. */
+#define USBD_INTEN_USBEVENT_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_USBEVENT_Enabled (1UL) /*!< Enable */
+
+/* Bit 21 : Enable or disable interrupt for SOF event */
+#define USBD_INTEN_SOF_Pos (21UL) /*!< Position of SOF field. */
+#define USBD_INTEN_SOF_Msk (0x1UL << USBD_INTEN_SOF_Pos) /*!< Bit mask of SOF field. */
+#define USBD_INTEN_SOF_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_SOF_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for ENDISOOUT event */
+#define USBD_INTEN_ENDISOOUT_Pos (20UL) /*!< Position of ENDISOOUT field. */
+#define USBD_INTEN_ENDISOOUT_Msk (0x1UL << USBD_INTEN_ENDISOOUT_Pos) /*!< Bit mask of ENDISOOUT field. */
+#define USBD_INTEN_ENDISOOUT_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDISOOUT_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for ENDEPOUT[7] event */
+#define USBD_INTEN_ENDEPOUT7_Pos (19UL) /*!< Position of ENDEPOUT7 field. */
+#define USBD_INTEN_ENDEPOUT7_Msk (0x1UL << USBD_INTEN_ENDEPOUT7_Pos) /*!< Bit mask of ENDEPOUT7 field. */
+#define USBD_INTEN_ENDEPOUT7_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPOUT7_Enabled (1UL) /*!< Enable */
+
+/* Bit 18 : Enable or disable interrupt for ENDEPOUT[6] event */
+#define USBD_INTEN_ENDEPOUT6_Pos (18UL) /*!< Position of ENDEPOUT6 field. */
+#define USBD_INTEN_ENDEPOUT6_Msk (0x1UL << USBD_INTEN_ENDEPOUT6_Pos) /*!< Bit mask of ENDEPOUT6 field. */
+#define USBD_INTEN_ENDEPOUT6_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPOUT6_Enabled (1UL) /*!< Enable */
+
+/* Bit 17 : Enable or disable interrupt for ENDEPOUT[5] event */
+#define USBD_INTEN_ENDEPOUT5_Pos (17UL) /*!< Position of ENDEPOUT5 field. */
+#define USBD_INTEN_ENDEPOUT5_Msk (0x1UL << USBD_INTEN_ENDEPOUT5_Pos) /*!< Bit mask of ENDEPOUT5 field. */
+#define USBD_INTEN_ENDEPOUT5_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPOUT5_Enabled (1UL) /*!< Enable */
+
+/* Bit 16 : Enable or disable interrupt for ENDEPOUT[4] event */
+#define USBD_INTEN_ENDEPOUT4_Pos (16UL) /*!< Position of ENDEPOUT4 field. */
+#define USBD_INTEN_ENDEPOUT4_Msk (0x1UL << USBD_INTEN_ENDEPOUT4_Pos) /*!< Bit mask of ENDEPOUT4 field. */
+#define USBD_INTEN_ENDEPOUT4_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPOUT4_Enabled (1UL) /*!< Enable */
+
+/* Bit 15 : Enable or disable interrupt for ENDEPOUT[3] event */
+#define USBD_INTEN_ENDEPOUT3_Pos (15UL) /*!< Position of ENDEPOUT3 field. */
+#define USBD_INTEN_ENDEPOUT3_Msk (0x1UL << USBD_INTEN_ENDEPOUT3_Pos) /*!< Bit mask of ENDEPOUT3 field. */
+#define USBD_INTEN_ENDEPOUT3_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPOUT3_Enabled (1UL) /*!< Enable */
+
+/* Bit 14 : Enable or disable interrupt for ENDEPOUT[2] event */
+#define USBD_INTEN_ENDEPOUT2_Pos (14UL) /*!< Position of ENDEPOUT2 field. */
+#define USBD_INTEN_ENDEPOUT2_Msk (0x1UL << USBD_INTEN_ENDEPOUT2_Pos) /*!< Bit mask of ENDEPOUT2 field. */
+#define USBD_INTEN_ENDEPOUT2_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPOUT2_Enabled (1UL) /*!< Enable */
+
+/* Bit 13 : Enable or disable interrupt for ENDEPOUT[1] event */
+#define USBD_INTEN_ENDEPOUT1_Pos (13UL) /*!< Position of ENDEPOUT1 field. */
+#define USBD_INTEN_ENDEPOUT1_Msk (0x1UL << USBD_INTEN_ENDEPOUT1_Pos) /*!< Bit mask of ENDEPOUT1 field. */
+#define USBD_INTEN_ENDEPOUT1_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPOUT1_Enabled (1UL) /*!< Enable */
+
+/* Bit 12 : Enable or disable interrupt for ENDEPOUT[0] event */
+#define USBD_INTEN_ENDEPOUT0_Pos (12UL) /*!< Position of ENDEPOUT0 field. */
+#define USBD_INTEN_ENDEPOUT0_Msk (0x1UL << USBD_INTEN_ENDEPOUT0_Pos) /*!< Bit mask of ENDEPOUT0 field. */
+#define USBD_INTEN_ENDEPOUT0_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPOUT0_Enabled (1UL) /*!< Enable */
+
+/* Bit 11 : Enable or disable interrupt for ENDISOIN event */
+#define USBD_INTEN_ENDISOIN_Pos (11UL) /*!< Position of ENDISOIN field. */
+#define USBD_INTEN_ENDISOIN_Msk (0x1UL << USBD_INTEN_ENDISOIN_Pos) /*!< Bit mask of ENDISOIN field. */
+#define USBD_INTEN_ENDISOIN_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDISOIN_Enabled (1UL) /*!< Enable */
+
+/* Bit 10 : Enable or disable interrupt for EP0DATADONE event */
+#define USBD_INTEN_EP0DATADONE_Pos (10UL) /*!< Position of EP0DATADONE field. */
+#define USBD_INTEN_EP0DATADONE_Msk (0x1UL << USBD_INTEN_EP0DATADONE_Pos) /*!< Bit mask of EP0DATADONE field. */
+#define USBD_INTEN_EP0DATADONE_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_EP0DATADONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for ENDEPIN[7] event */
+#define USBD_INTEN_ENDEPIN7_Pos (9UL) /*!< Position of ENDEPIN7 field. */
+#define USBD_INTEN_ENDEPIN7_Msk (0x1UL << USBD_INTEN_ENDEPIN7_Pos) /*!< Bit mask of ENDEPIN7 field. */
+#define USBD_INTEN_ENDEPIN7_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPIN7_Enabled (1UL) /*!< Enable */
+
+/* Bit 8 : Enable or disable interrupt for ENDEPIN[6] event */
+#define USBD_INTEN_ENDEPIN6_Pos (8UL) /*!< Position of ENDEPIN6 field. */
+#define USBD_INTEN_ENDEPIN6_Msk (0x1UL << USBD_INTEN_ENDEPIN6_Pos) /*!< Bit mask of ENDEPIN6 field. */
+#define USBD_INTEN_ENDEPIN6_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPIN6_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for ENDEPIN[5] event */
+#define USBD_INTEN_ENDEPIN5_Pos (7UL) /*!< Position of ENDEPIN5 field. */
+#define USBD_INTEN_ENDEPIN5_Msk (0x1UL << USBD_INTEN_ENDEPIN5_Pos) /*!< Bit mask of ENDEPIN5 field. */
+#define USBD_INTEN_ENDEPIN5_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPIN5_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for ENDEPIN[4] event */
+#define USBD_INTEN_ENDEPIN4_Pos (6UL) /*!< Position of ENDEPIN4 field. */
+#define USBD_INTEN_ENDEPIN4_Msk (0x1UL << USBD_INTEN_ENDEPIN4_Pos) /*!< Bit mask of ENDEPIN4 field. */
+#define USBD_INTEN_ENDEPIN4_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPIN4_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for ENDEPIN[3] event */
+#define USBD_INTEN_ENDEPIN3_Pos (5UL) /*!< Position of ENDEPIN3 field. */
+#define USBD_INTEN_ENDEPIN3_Msk (0x1UL << USBD_INTEN_ENDEPIN3_Pos) /*!< Bit mask of ENDEPIN3 field. */
+#define USBD_INTEN_ENDEPIN3_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPIN3_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for ENDEPIN[2] event */
+#define USBD_INTEN_ENDEPIN2_Pos (4UL) /*!< Position of ENDEPIN2 field. */
+#define USBD_INTEN_ENDEPIN2_Msk (0x1UL << USBD_INTEN_ENDEPIN2_Pos) /*!< Bit mask of ENDEPIN2 field. */
+#define USBD_INTEN_ENDEPIN2_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPIN2_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for ENDEPIN[1] event */
+#define USBD_INTEN_ENDEPIN1_Pos (3UL) /*!< Position of ENDEPIN1 field. */
+#define USBD_INTEN_ENDEPIN1_Msk (0x1UL << USBD_INTEN_ENDEPIN1_Pos) /*!< Bit mask of ENDEPIN1 field. */
+#define USBD_INTEN_ENDEPIN1_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPIN1_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for ENDEPIN[0] event */
+#define USBD_INTEN_ENDEPIN0_Pos (2UL) /*!< Position of ENDEPIN0 field. */
+#define USBD_INTEN_ENDEPIN0_Msk (0x1UL << USBD_INTEN_ENDEPIN0_Pos) /*!< Bit mask of ENDEPIN0 field. */
+#define USBD_INTEN_ENDEPIN0_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_ENDEPIN0_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STARTED event */
+#define USBD_INTEN_STARTED_Pos (1UL) /*!< Position of STARTED field. */
+#define USBD_INTEN_STARTED_Msk (0x1UL << USBD_INTEN_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define USBD_INTEN_STARTED_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_STARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for USBRESET event */
+#define USBD_INTEN_USBRESET_Pos (0UL) /*!< Position of USBRESET field. */
+#define USBD_INTEN_USBRESET_Msk (0x1UL << USBD_INTEN_USBRESET_Pos) /*!< Bit mask of USBRESET field. */
+#define USBD_INTEN_USBRESET_Disabled (0UL) /*!< Disable */
+#define USBD_INTEN_USBRESET_Enabled (1UL) /*!< Enable */
+
+/* Register: USBD_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 24 : Write '1' to enable interrupt for EPDATA event */
+#define USBD_INTENSET_EPDATA_Pos (24UL) /*!< Position of EPDATA field. */
+#define USBD_INTENSET_EPDATA_Msk (0x1UL << USBD_INTENSET_EPDATA_Pos) /*!< Bit mask of EPDATA field. */
+#define USBD_INTENSET_EPDATA_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_EPDATA_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_EPDATA_Set (1UL) /*!< Enable */
+
+/* Bit 23 : Write '1' to enable interrupt for EP0SETUP event */
+#define USBD_INTENSET_EP0SETUP_Pos (23UL) /*!< Position of EP0SETUP field. */
+#define USBD_INTENSET_EP0SETUP_Msk (0x1UL << USBD_INTENSET_EP0SETUP_Pos) /*!< Bit mask of EP0SETUP field. */
+#define USBD_INTENSET_EP0SETUP_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_EP0SETUP_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_EP0SETUP_Set (1UL) /*!< Enable */
+
+/* Bit 22 : Write '1' to enable interrupt for USBEVENT event */
+#define USBD_INTENSET_USBEVENT_Pos (22UL) /*!< Position of USBEVENT field. */
+#define USBD_INTENSET_USBEVENT_Msk (0x1UL << USBD_INTENSET_USBEVENT_Pos) /*!< Bit mask of USBEVENT field. */
+#define USBD_INTENSET_USBEVENT_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_USBEVENT_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_USBEVENT_Set (1UL) /*!< Enable */
+
+/* Bit 21 : Write '1' to enable interrupt for SOF event */
+#define USBD_INTENSET_SOF_Pos (21UL) /*!< Position of SOF field. */
+#define USBD_INTENSET_SOF_Msk (0x1UL << USBD_INTENSET_SOF_Pos) /*!< Bit mask of SOF field. */
+#define USBD_INTENSET_SOF_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_SOF_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_SOF_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to enable interrupt for ENDISOOUT event */
+#define USBD_INTENSET_ENDISOOUT_Pos (20UL) /*!< Position of ENDISOOUT field. */
+#define USBD_INTENSET_ENDISOOUT_Msk (0x1UL << USBD_INTENSET_ENDISOOUT_Pos) /*!< Bit mask of ENDISOOUT field. */
+#define USBD_INTENSET_ENDISOOUT_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDISOOUT_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDISOOUT_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to enable interrupt for ENDEPOUT[7] event */
+#define USBD_INTENSET_ENDEPOUT7_Pos (19UL) /*!< Position of ENDEPOUT7 field. */
+#define USBD_INTENSET_ENDEPOUT7_Msk (0x1UL << USBD_INTENSET_ENDEPOUT7_Pos) /*!< Bit mask of ENDEPOUT7 field. */
+#define USBD_INTENSET_ENDEPOUT7_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPOUT7_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPOUT7_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to enable interrupt for ENDEPOUT[6] event */
+#define USBD_INTENSET_ENDEPOUT6_Pos (18UL) /*!< Position of ENDEPOUT6 field. */
+#define USBD_INTENSET_ENDEPOUT6_Msk (0x1UL << USBD_INTENSET_ENDEPOUT6_Pos) /*!< Bit mask of ENDEPOUT6 field. */
+#define USBD_INTENSET_ENDEPOUT6_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPOUT6_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPOUT6_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to enable interrupt for ENDEPOUT[5] event */
+#define USBD_INTENSET_ENDEPOUT5_Pos (17UL) /*!< Position of ENDEPOUT5 field. */
+#define USBD_INTENSET_ENDEPOUT5_Msk (0x1UL << USBD_INTENSET_ENDEPOUT5_Pos) /*!< Bit mask of ENDEPOUT5 field. */
+#define USBD_INTENSET_ENDEPOUT5_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPOUT5_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPOUT5_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to enable interrupt for ENDEPOUT[4] event */
+#define USBD_INTENSET_ENDEPOUT4_Pos (16UL) /*!< Position of ENDEPOUT4 field. */
+#define USBD_INTENSET_ENDEPOUT4_Msk (0x1UL << USBD_INTENSET_ENDEPOUT4_Pos) /*!< Bit mask of ENDEPOUT4 field. */
+#define USBD_INTENSET_ENDEPOUT4_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPOUT4_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPOUT4_Set (1UL) /*!< Enable */
+
+/* Bit 15 : Write '1' to enable interrupt for ENDEPOUT[3] event */
+#define USBD_INTENSET_ENDEPOUT3_Pos (15UL) /*!< Position of ENDEPOUT3 field. */
+#define USBD_INTENSET_ENDEPOUT3_Msk (0x1UL << USBD_INTENSET_ENDEPOUT3_Pos) /*!< Bit mask of ENDEPOUT3 field. */
+#define USBD_INTENSET_ENDEPOUT3_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPOUT3_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPOUT3_Set (1UL) /*!< Enable */
+
+/* Bit 14 : Write '1' to enable interrupt for ENDEPOUT[2] event */
+#define USBD_INTENSET_ENDEPOUT2_Pos (14UL) /*!< Position of ENDEPOUT2 field. */
+#define USBD_INTENSET_ENDEPOUT2_Msk (0x1UL << USBD_INTENSET_ENDEPOUT2_Pos) /*!< Bit mask of ENDEPOUT2 field. */
+#define USBD_INTENSET_ENDEPOUT2_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPOUT2_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPOUT2_Set (1UL) /*!< Enable */
+
+/* Bit 13 : Write '1' to enable interrupt for ENDEPOUT[1] event */
+#define USBD_INTENSET_ENDEPOUT1_Pos (13UL) /*!< Position of ENDEPOUT1 field. */
+#define USBD_INTENSET_ENDEPOUT1_Msk (0x1UL << USBD_INTENSET_ENDEPOUT1_Pos) /*!< Bit mask of ENDEPOUT1 field. */
+#define USBD_INTENSET_ENDEPOUT1_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPOUT1_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPOUT1_Set (1UL) /*!< Enable */
+
+/* Bit 12 : Write '1' to enable interrupt for ENDEPOUT[0] event */
+#define USBD_INTENSET_ENDEPOUT0_Pos (12UL) /*!< Position of ENDEPOUT0 field. */
+#define USBD_INTENSET_ENDEPOUT0_Msk (0x1UL << USBD_INTENSET_ENDEPOUT0_Pos) /*!< Bit mask of ENDEPOUT0 field. */
+#define USBD_INTENSET_ENDEPOUT0_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPOUT0_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPOUT0_Set (1UL) /*!< Enable */
+
+/* Bit 11 : Write '1' to enable interrupt for ENDISOIN event */
+#define USBD_INTENSET_ENDISOIN_Pos (11UL) /*!< Position of ENDISOIN field. */
+#define USBD_INTENSET_ENDISOIN_Msk (0x1UL << USBD_INTENSET_ENDISOIN_Pos) /*!< Bit mask of ENDISOIN field. */
+#define USBD_INTENSET_ENDISOIN_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDISOIN_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDISOIN_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to enable interrupt for EP0DATADONE event */
+#define USBD_INTENSET_EP0DATADONE_Pos (10UL) /*!< Position of EP0DATADONE field. */
+#define USBD_INTENSET_EP0DATADONE_Msk (0x1UL << USBD_INTENSET_EP0DATADONE_Pos) /*!< Bit mask of EP0DATADONE field. */
+#define USBD_INTENSET_EP0DATADONE_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_EP0DATADONE_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_EP0DATADONE_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to enable interrupt for ENDEPIN[7] event */
+#define USBD_INTENSET_ENDEPIN7_Pos (9UL) /*!< Position of ENDEPIN7 field. */
+#define USBD_INTENSET_ENDEPIN7_Msk (0x1UL << USBD_INTENSET_ENDEPIN7_Pos) /*!< Bit mask of ENDEPIN7 field. */
+#define USBD_INTENSET_ENDEPIN7_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPIN7_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPIN7_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to enable interrupt for ENDEPIN[6] event */
+#define USBD_INTENSET_ENDEPIN6_Pos (8UL) /*!< Position of ENDEPIN6 field. */
+#define USBD_INTENSET_ENDEPIN6_Msk (0x1UL << USBD_INTENSET_ENDEPIN6_Pos) /*!< Bit mask of ENDEPIN6 field. */
+#define USBD_INTENSET_ENDEPIN6_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPIN6_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPIN6_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to enable interrupt for ENDEPIN[5] event */
+#define USBD_INTENSET_ENDEPIN5_Pos (7UL) /*!< Position of ENDEPIN5 field. */
+#define USBD_INTENSET_ENDEPIN5_Msk (0x1UL << USBD_INTENSET_ENDEPIN5_Pos) /*!< Bit mask of ENDEPIN5 field. */
+#define USBD_INTENSET_ENDEPIN5_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPIN5_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPIN5_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to enable interrupt for ENDEPIN[4] event */
+#define USBD_INTENSET_ENDEPIN4_Pos (6UL) /*!< Position of ENDEPIN4 field. */
+#define USBD_INTENSET_ENDEPIN4_Msk (0x1UL << USBD_INTENSET_ENDEPIN4_Pos) /*!< Bit mask of ENDEPIN4 field. */
+#define USBD_INTENSET_ENDEPIN4_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPIN4_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPIN4_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to enable interrupt for ENDEPIN[3] event */
+#define USBD_INTENSET_ENDEPIN3_Pos (5UL) /*!< Position of ENDEPIN3 field. */
+#define USBD_INTENSET_ENDEPIN3_Msk (0x1UL << USBD_INTENSET_ENDEPIN3_Pos) /*!< Bit mask of ENDEPIN3 field. */
+#define USBD_INTENSET_ENDEPIN3_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPIN3_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPIN3_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to enable interrupt for ENDEPIN[2] event */
+#define USBD_INTENSET_ENDEPIN2_Pos (4UL) /*!< Position of ENDEPIN2 field. */
+#define USBD_INTENSET_ENDEPIN2_Msk (0x1UL << USBD_INTENSET_ENDEPIN2_Pos) /*!< Bit mask of ENDEPIN2 field. */
+#define USBD_INTENSET_ENDEPIN2_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPIN2_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPIN2_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to enable interrupt for ENDEPIN[1] event */
+#define USBD_INTENSET_ENDEPIN1_Pos (3UL) /*!< Position of ENDEPIN1 field. */
+#define USBD_INTENSET_ENDEPIN1_Msk (0x1UL << USBD_INTENSET_ENDEPIN1_Pos) /*!< Bit mask of ENDEPIN1 field. */
+#define USBD_INTENSET_ENDEPIN1_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPIN1_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPIN1_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to enable interrupt for ENDEPIN[0] event */
+#define USBD_INTENSET_ENDEPIN0_Pos (2UL) /*!< Position of ENDEPIN0 field. */
+#define USBD_INTENSET_ENDEPIN0_Msk (0x1UL << USBD_INTENSET_ENDEPIN0_Pos) /*!< Bit mask of ENDEPIN0 field. */
+#define USBD_INTENSET_ENDEPIN0_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_ENDEPIN0_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_ENDEPIN0_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to enable interrupt for STARTED event */
+#define USBD_INTENSET_STARTED_Pos (1UL) /*!< Position of STARTED field. */
+#define USBD_INTENSET_STARTED_Msk (0x1UL << USBD_INTENSET_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define USBD_INTENSET_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_STARTED_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to enable interrupt for USBRESET event */
+#define USBD_INTENSET_USBRESET_Pos (0UL) /*!< Position of USBRESET field. */
+#define USBD_INTENSET_USBRESET_Msk (0x1UL << USBD_INTENSET_USBRESET_Pos) /*!< Bit mask of USBRESET field. */
+#define USBD_INTENSET_USBRESET_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENSET_USBRESET_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENSET_USBRESET_Set (1UL) /*!< Enable */
+
+/* Register: USBD_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 24 : Write '1' to disable interrupt for EPDATA event */
+#define USBD_INTENCLR_EPDATA_Pos (24UL) /*!< Position of EPDATA field. */
+#define USBD_INTENCLR_EPDATA_Msk (0x1UL << USBD_INTENCLR_EPDATA_Pos) /*!< Bit mask of EPDATA field. */
+#define USBD_INTENCLR_EPDATA_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_EPDATA_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_EPDATA_Clear (1UL) /*!< Disable */
+
+/* Bit 23 : Write '1' to disable interrupt for EP0SETUP event */
+#define USBD_INTENCLR_EP0SETUP_Pos (23UL) /*!< Position of EP0SETUP field. */
+#define USBD_INTENCLR_EP0SETUP_Msk (0x1UL << USBD_INTENCLR_EP0SETUP_Pos) /*!< Bit mask of EP0SETUP field. */
+#define USBD_INTENCLR_EP0SETUP_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_EP0SETUP_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_EP0SETUP_Clear (1UL) /*!< Disable */
+
+/* Bit 22 : Write '1' to disable interrupt for USBEVENT event */
+#define USBD_INTENCLR_USBEVENT_Pos (22UL) /*!< Position of USBEVENT field. */
+#define USBD_INTENCLR_USBEVENT_Msk (0x1UL << USBD_INTENCLR_USBEVENT_Pos) /*!< Bit mask of USBEVENT field. */
+#define USBD_INTENCLR_USBEVENT_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_USBEVENT_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_USBEVENT_Clear (1UL) /*!< Disable */
+
+/* Bit 21 : Write '1' to disable interrupt for SOF event */
+#define USBD_INTENCLR_SOF_Pos (21UL) /*!< Position of SOF field. */
+#define USBD_INTENCLR_SOF_Msk (0x1UL << USBD_INTENCLR_SOF_Pos) /*!< Bit mask of SOF field. */
+#define USBD_INTENCLR_SOF_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_SOF_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_SOF_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to disable interrupt for ENDISOOUT event */
+#define USBD_INTENCLR_ENDISOOUT_Pos (20UL) /*!< Position of ENDISOOUT field. */
+#define USBD_INTENCLR_ENDISOOUT_Msk (0x1UL << USBD_INTENCLR_ENDISOOUT_Pos) /*!< Bit mask of ENDISOOUT field. */
+#define USBD_INTENCLR_ENDISOOUT_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDISOOUT_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDISOOUT_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to disable interrupt for ENDEPOUT[7] event */
+#define USBD_INTENCLR_ENDEPOUT7_Pos (19UL) /*!< Position of ENDEPOUT7 field. */
+#define USBD_INTENCLR_ENDEPOUT7_Msk (0x1UL << USBD_INTENCLR_ENDEPOUT7_Pos) /*!< Bit mask of ENDEPOUT7 field. */
+#define USBD_INTENCLR_ENDEPOUT7_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPOUT7_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPOUT7_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to disable interrupt for ENDEPOUT[6] event */
+#define USBD_INTENCLR_ENDEPOUT6_Pos (18UL) /*!< Position of ENDEPOUT6 field. */
+#define USBD_INTENCLR_ENDEPOUT6_Msk (0x1UL << USBD_INTENCLR_ENDEPOUT6_Pos) /*!< Bit mask of ENDEPOUT6 field. */
+#define USBD_INTENCLR_ENDEPOUT6_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPOUT6_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPOUT6_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to disable interrupt for ENDEPOUT[5] event */
+#define USBD_INTENCLR_ENDEPOUT5_Pos (17UL) /*!< Position of ENDEPOUT5 field. */
+#define USBD_INTENCLR_ENDEPOUT5_Msk (0x1UL << USBD_INTENCLR_ENDEPOUT5_Pos) /*!< Bit mask of ENDEPOUT5 field. */
+#define USBD_INTENCLR_ENDEPOUT5_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPOUT5_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPOUT5_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to disable interrupt for ENDEPOUT[4] event */
+#define USBD_INTENCLR_ENDEPOUT4_Pos (16UL) /*!< Position of ENDEPOUT4 field. */
+#define USBD_INTENCLR_ENDEPOUT4_Msk (0x1UL << USBD_INTENCLR_ENDEPOUT4_Pos) /*!< Bit mask of ENDEPOUT4 field. */
+#define USBD_INTENCLR_ENDEPOUT4_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPOUT4_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPOUT4_Clear (1UL) /*!< Disable */
+
+/* Bit 15 : Write '1' to disable interrupt for ENDEPOUT[3] event */
+#define USBD_INTENCLR_ENDEPOUT3_Pos (15UL) /*!< Position of ENDEPOUT3 field. */
+#define USBD_INTENCLR_ENDEPOUT3_Msk (0x1UL << USBD_INTENCLR_ENDEPOUT3_Pos) /*!< Bit mask of ENDEPOUT3 field. */
+#define USBD_INTENCLR_ENDEPOUT3_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPOUT3_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPOUT3_Clear (1UL) /*!< Disable */
+
+/* Bit 14 : Write '1' to disable interrupt for ENDEPOUT[2] event */
+#define USBD_INTENCLR_ENDEPOUT2_Pos (14UL) /*!< Position of ENDEPOUT2 field. */
+#define USBD_INTENCLR_ENDEPOUT2_Msk (0x1UL << USBD_INTENCLR_ENDEPOUT2_Pos) /*!< Bit mask of ENDEPOUT2 field. */
+#define USBD_INTENCLR_ENDEPOUT2_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPOUT2_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPOUT2_Clear (1UL) /*!< Disable */
+
+/* Bit 13 : Write '1' to disable interrupt for ENDEPOUT[1] event */
+#define USBD_INTENCLR_ENDEPOUT1_Pos (13UL) /*!< Position of ENDEPOUT1 field. */
+#define USBD_INTENCLR_ENDEPOUT1_Msk (0x1UL << USBD_INTENCLR_ENDEPOUT1_Pos) /*!< Bit mask of ENDEPOUT1 field. */
+#define USBD_INTENCLR_ENDEPOUT1_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPOUT1_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPOUT1_Clear (1UL) /*!< Disable */
+
+/* Bit 12 : Write '1' to disable interrupt for ENDEPOUT[0] event */
+#define USBD_INTENCLR_ENDEPOUT0_Pos (12UL) /*!< Position of ENDEPOUT0 field. */
+#define USBD_INTENCLR_ENDEPOUT0_Msk (0x1UL << USBD_INTENCLR_ENDEPOUT0_Pos) /*!< Bit mask of ENDEPOUT0 field. */
+#define USBD_INTENCLR_ENDEPOUT0_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPOUT0_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPOUT0_Clear (1UL) /*!< Disable */
+
+/* Bit 11 : Write '1' to disable interrupt for ENDISOIN event */
+#define USBD_INTENCLR_ENDISOIN_Pos (11UL) /*!< Position of ENDISOIN field. */
+#define USBD_INTENCLR_ENDISOIN_Msk (0x1UL << USBD_INTENCLR_ENDISOIN_Pos) /*!< Bit mask of ENDISOIN field. */
+#define USBD_INTENCLR_ENDISOIN_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDISOIN_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDISOIN_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to disable interrupt for EP0DATADONE event */
+#define USBD_INTENCLR_EP0DATADONE_Pos (10UL) /*!< Position of EP0DATADONE field. */
+#define USBD_INTENCLR_EP0DATADONE_Msk (0x1UL << USBD_INTENCLR_EP0DATADONE_Pos) /*!< Bit mask of EP0DATADONE field. */
+#define USBD_INTENCLR_EP0DATADONE_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_EP0DATADONE_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_EP0DATADONE_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to disable interrupt for ENDEPIN[7] event */
+#define USBD_INTENCLR_ENDEPIN7_Pos (9UL) /*!< Position of ENDEPIN7 field. */
+#define USBD_INTENCLR_ENDEPIN7_Msk (0x1UL << USBD_INTENCLR_ENDEPIN7_Pos) /*!< Bit mask of ENDEPIN7 field. */
+#define USBD_INTENCLR_ENDEPIN7_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPIN7_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPIN7_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to disable interrupt for ENDEPIN[6] event */
+#define USBD_INTENCLR_ENDEPIN6_Pos (8UL) /*!< Position of ENDEPIN6 field. */
+#define USBD_INTENCLR_ENDEPIN6_Msk (0x1UL << USBD_INTENCLR_ENDEPIN6_Pos) /*!< Bit mask of ENDEPIN6 field. */
+#define USBD_INTENCLR_ENDEPIN6_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPIN6_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPIN6_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to disable interrupt for ENDEPIN[5] event */
+#define USBD_INTENCLR_ENDEPIN5_Pos (7UL) /*!< Position of ENDEPIN5 field. */
+#define USBD_INTENCLR_ENDEPIN5_Msk (0x1UL << USBD_INTENCLR_ENDEPIN5_Pos) /*!< Bit mask of ENDEPIN5 field. */
+#define USBD_INTENCLR_ENDEPIN5_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPIN5_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPIN5_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to disable interrupt for ENDEPIN[4] event */
+#define USBD_INTENCLR_ENDEPIN4_Pos (6UL) /*!< Position of ENDEPIN4 field. */
+#define USBD_INTENCLR_ENDEPIN4_Msk (0x1UL << USBD_INTENCLR_ENDEPIN4_Pos) /*!< Bit mask of ENDEPIN4 field. */
+#define USBD_INTENCLR_ENDEPIN4_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPIN4_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPIN4_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to disable interrupt for ENDEPIN[3] event */
+#define USBD_INTENCLR_ENDEPIN3_Pos (5UL) /*!< Position of ENDEPIN3 field. */
+#define USBD_INTENCLR_ENDEPIN3_Msk (0x1UL << USBD_INTENCLR_ENDEPIN3_Pos) /*!< Bit mask of ENDEPIN3 field. */
+#define USBD_INTENCLR_ENDEPIN3_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPIN3_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPIN3_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to disable interrupt for ENDEPIN[2] event */
+#define USBD_INTENCLR_ENDEPIN2_Pos (4UL) /*!< Position of ENDEPIN2 field. */
+#define USBD_INTENCLR_ENDEPIN2_Msk (0x1UL << USBD_INTENCLR_ENDEPIN2_Pos) /*!< Bit mask of ENDEPIN2 field. */
+#define USBD_INTENCLR_ENDEPIN2_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPIN2_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPIN2_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to disable interrupt for ENDEPIN[1] event */
+#define USBD_INTENCLR_ENDEPIN1_Pos (3UL) /*!< Position of ENDEPIN1 field. */
+#define USBD_INTENCLR_ENDEPIN1_Msk (0x1UL << USBD_INTENCLR_ENDEPIN1_Pos) /*!< Bit mask of ENDEPIN1 field. */
+#define USBD_INTENCLR_ENDEPIN1_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPIN1_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPIN1_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to disable interrupt for ENDEPIN[0] event */
+#define USBD_INTENCLR_ENDEPIN0_Pos (2UL) /*!< Position of ENDEPIN0 field. */
+#define USBD_INTENCLR_ENDEPIN0_Msk (0x1UL << USBD_INTENCLR_ENDEPIN0_Pos) /*!< Bit mask of ENDEPIN0 field. */
+#define USBD_INTENCLR_ENDEPIN0_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_ENDEPIN0_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_ENDEPIN0_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to disable interrupt for STARTED event */
+#define USBD_INTENCLR_STARTED_Pos (1UL) /*!< Position of STARTED field. */
+#define USBD_INTENCLR_STARTED_Msk (0x1UL << USBD_INTENCLR_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define USBD_INTENCLR_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_STARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to disable interrupt for USBRESET event */
+#define USBD_INTENCLR_USBRESET_Pos (0UL) /*!< Position of USBRESET field. */
+#define USBD_INTENCLR_USBRESET_Msk (0x1UL << USBD_INTENCLR_USBRESET_Pos) /*!< Bit mask of USBRESET field. */
+#define USBD_INTENCLR_USBRESET_Disabled (0UL) /*!< Read: Disabled */
+#define USBD_INTENCLR_USBRESET_Enabled (1UL) /*!< Read: Enabled */
+#define USBD_INTENCLR_USBRESET_Clear (1UL) /*!< Disable */
+
+/* Register: USBD_EVENTCAUSE */
+/* Description: Details on what caused the USBEVENT event */
+
+/* Bit 11 : USB device is ready for normal operation. Write '1' to clear. */
+#define USBD_EVENTCAUSE_READY_Pos (11UL) /*!< Position of READY field. */
+#define USBD_EVENTCAUSE_READY_Msk (0x1UL << USBD_EVENTCAUSE_READY_Pos) /*!< Bit mask of READY field. */
+#define USBD_EVENTCAUSE_READY_NotDetected (0UL) /*!< USBEVENT was not issued due to USBD peripheral ready */
+#define USBD_EVENTCAUSE_READY_Ready (1UL) /*!< USBD peripheral is ready */
+
+/* Bit 10 : USB MAC has been woken up and operational. Write '1' to clear. */
+#define USBD_EVENTCAUSE_USBWUALLOWED_Pos (10UL) /*!< Position of USBWUALLOWED field. */
+#define USBD_EVENTCAUSE_USBWUALLOWED_Msk (0x1UL << USBD_EVENTCAUSE_USBWUALLOWED_Pos) /*!< Bit mask of USBWUALLOWED field. */
+#define USBD_EVENTCAUSE_USBWUALLOWED_NotAllowed (0UL) /*!< Wake up not allowed */
+#define USBD_EVENTCAUSE_USBWUALLOWED_Allowed (1UL) /*!< Wake up allowed */
+
+/* Bit 9 : Signals that a RESUME condition (K state or activity restart) has been detected on USB lines. Write '1' to clear. */
+#define USBD_EVENTCAUSE_RESUME_Pos (9UL) /*!< Position of RESUME field. */
+#define USBD_EVENTCAUSE_RESUME_Msk (0x1UL << USBD_EVENTCAUSE_RESUME_Pos) /*!< Bit mask of RESUME field. */
+#define USBD_EVENTCAUSE_RESUME_NotDetected (0UL) /*!< Resume not detected */
+#define USBD_EVENTCAUSE_RESUME_Detected (1UL) /*!< Resume detected */
+
+/* Bit 8 : Signals that USB lines have been idle long enough for the device to enter suspend. Write '1' to clear. */
+#define USBD_EVENTCAUSE_SUSPEND_Pos (8UL) /*!< Position of SUSPEND field. */
+#define USBD_EVENTCAUSE_SUSPEND_Msk (0x1UL << USBD_EVENTCAUSE_SUSPEND_Pos) /*!< Bit mask of SUSPEND field. */
+#define USBD_EVENTCAUSE_SUSPEND_NotDetected (0UL) /*!< Suspend not detected */
+#define USBD_EVENTCAUSE_SUSPEND_Detected (1UL) /*!< Suspend detected */
+
+/* Bit 0 : CRC error was detected on isochronous OUT endpoint 8. Write '1' to clear. */
+#define USBD_EVENTCAUSE_ISOOUTCRC_Pos (0UL) /*!< Position of ISOOUTCRC field. */
+#define USBD_EVENTCAUSE_ISOOUTCRC_Msk (0x1UL << USBD_EVENTCAUSE_ISOOUTCRC_Pos) /*!< Bit mask of ISOOUTCRC field. */
+#define USBD_EVENTCAUSE_ISOOUTCRC_NotDetected (0UL) /*!< No error detected */
+#define USBD_EVENTCAUSE_ISOOUTCRC_Detected (1UL) /*!< Error detected */
+
+/* Register: USBD_HALTED_EPIN */
+/* Description: Description collection[n]: IN endpoint halted status. Can be used as is as response to a GetStatus() request to endpoint. */
+
+/* Bits 15..0 : IN endpoint halted status. Can be used as is as response to a GetStatus() request to endpoint. */
+#define USBD_HALTED_EPIN_GETSTATUS_Pos (0UL) /*!< Position of GETSTATUS field. */
+#define USBD_HALTED_EPIN_GETSTATUS_Msk (0xFFFFUL << USBD_HALTED_EPIN_GETSTATUS_Pos) /*!< Bit mask of GETSTATUS field. */
+#define USBD_HALTED_EPIN_GETSTATUS_NotHalted (0UL) /*!< Endpoint is not halted */
+#define USBD_HALTED_EPIN_GETSTATUS_Halted (1UL) /*!< Endpoint is halted */
+
+/* Register: USBD_HALTED_EPOUT */
+/* Description: Description collection[n]: OUT endpoint halted status. Can be used as is as response to a GetStatus() request to endpoint. */
+
+/* Bits 15..0 : OUT endpoint halted status. Can be used as is as response to a GetStatus() request to endpoint. */
+#define USBD_HALTED_EPOUT_GETSTATUS_Pos (0UL) /*!< Position of GETSTATUS field. */
+#define USBD_HALTED_EPOUT_GETSTATUS_Msk (0xFFFFUL << USBD_HALTED_EPOUT_GETSTATUS_Pos) /*!< Bit mask of GETSTATUS field. */
+#define USBD_HALTED_EPOUT_GETSTATUS_NotHalted (0UL) /*!< Endpoint is not halted */
+#define USBD_HALTED_EPOUT_GETSTATUS_Halted (1UL) /*!< Endpoint is halted */
+
+/* Register: USBD_EPSTATUS */
+/* Description: Provides information on which endpoint's EasyDMA registers have been captured */
+
+/* Bit 24 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPOUT8_Pos (24UL) /*!< Position of EPOUT8 field. */
+#define USBD_EPSTATUS_EPOUT8_Msk (0x1UL << USBD_EPSTATUS_EPOUT8_Pos) /*!< Bit mask of EPOUT8 field. */
+#define USBD_EPSTATUS_EPOUT8_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPOUT8_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 23 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPOUT7_Pos (23UL) /*!< Position of EPOUT7 field. */
+#define USBD_EPSTATUS_EPOUT7_Msk (0x1UL << USBD_EPSTATUS_EPOUT7_Pos) /*!< Bit mask of EPOUT7 field. */
+#define USBD_EPSTATUS_EPOUT7_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPOUT7_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 22 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPOUT6_Pos (22UL) /*!< Position of EPOUT6 field. */
+#define USBD_EPSTATUS_EPOUT6_Msk (0x1UL << USBD_EPSTATUS_EPOUT6_Pos) /*!< Bit mask of EPOUT6 field. */
+#define USBD_EPSTATUS_EPOUT6_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPOUT6_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 21 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPOUT5_Pos (21UL) /*!< Position of EPOUT5 field. */
+#define USBD_EPSTATUS_EPOUT5_Msk (0x1UL << USBD_EPSTATUS_EPOUT5_Pos) /*!< Bit mask of EPOUT5 field. */
+#define USBD_EPSTATUS_EPOUT5_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPOUT5_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 20 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPOUT4_Pos (20UL) /*!< Position of EPOUT4 field. */
+#define USBD_EPSTATUS_EPOUT4_Msk (0x1UL << USBD_EPSTATUS_EPOUT4_Pos) /*!< Bit mask of EPOUT4 field. */
+#define USBD_EPSTATUS_EPOUT4_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPOUT4_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 19 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPOUT3_Pos (19UL) /*!< Position of EPOUT3 field. */
+#define USBD_EPSTATUS_EPOUT3_Msk (0x1UL << USBD_EPSTATUS_EPOUT3_Pos) /*!< Bit mask of EPOUT3 field. */
+#define USBD_EPSTATUS_EPOUT3_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPOUT3_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 18 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPOUT2_Pos (18UL) /*!< Position of EPOUT2 field. */
+#define USBD_EPSTATUS_EPOUT2_Msk (0x1UL << USBD_EPSTATUS_EPOUT2_Pos) /*!< Bit mask of EPOUT2 field. */
+#define USBD_EPSTATUS_EPOUT2_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPOUT2_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 17 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPOUT1_Pos (17UL) /*!< Position of EPOUT1 field. */
+#define USBD_EPSTATUS_EPOUT1_Msk (0x1UL << USBD_EPSTATUS_EPOUT1_Pos) /*!< Bit mask of EPOUT1 field. */
+#define USBD_EPSTATUS_EPOUT1_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPOUT1_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 16 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPOUT0_Pos (16UL) /*!< Position of EPOUT0 field. */
+#define USBD_EPSTATUS_EPOUT0_Msk (0x1UL << USBD_EPSTATUS_EPOUT0_Pos) /*!< Bit mask of EPOUT0 field. */
+#define USBD_EPSTATUS_EPOUT0_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPOUT0_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 8 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPIN8_Pos (8UL) /*!< Position of EPIN8 field. */
+#define USBD_EPSTATUS_EPIN8_Msk (0x1UL << USBD_EPSTATUS_EPIN8_Pos) /*!< Bit mask of EPIN8 field. */
+#define USBD_EPSTATUS_EPIN8_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPIN8_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 7 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPIN7_Pos (7UL) /*!< Position of EPIN7 field. */
+#define USBD_EPSTATUS_EPIN7_Msk (0x1UL << USBD_EPSTATUS_EPIN7_Pos) /*!< Bit mask of EPIN7 field. */
+#define USBD_EPSTATUS_EPIN7_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPIN7_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 6 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPIN6_Pos (6UL) /*!< Position of EPIN6 field. */
+#define USBD_EPSTATUS_EPIN6_Msk (0x1UL << USBD_EPSTATUS_EPIN6_Pos) /*!< Bit mask of EPIN6 field. */
+#define USBD_EPSTATUS_EPIN6_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPIN6_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 5 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPIN5_Pos (5UL) /*!< Position of EPIN5 field. */
+#define USBD_EPSTATUS_EPIN5_Msk (0x1UL << USBD_EPSTATUS_EPIN5_Pos) /*!< Bit mask of EPIN5 field. */
+#define USBD_EPSTATUS_EPIN5_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPIN5_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 4 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPIN4_Pos (4UL) /*!< Position of EPIN4 field. */
+#define USBD_EPSTATUS_EPIN4_Msk (0x1UL << USBD_EPSTATUS_EPIN4_Pos) /*!< Bit mask of EPIN4 field. */
+#define USBD_EPSTATUS_EPIN4_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPIN4_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 3 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPIN3_Pos (3UL) /*!< Position of EPIN3 field. */
+#define USBD_EPSTATUS_EPIN3_Msk (0x1UL << USBD_EPSTATUS_EPIN3_Pos) /*!< Bit mask of EPIN3 field. */
+#define USBD_EPSTATUS_EPIN3_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPIN3_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 2 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPIN2_Pos (2UL) /*!< Position of EPIN2 field. */
+#define USBD_EPSTATUS_EPIN2_Msk (0x1UL << USBD_EPSTATUS_EPIN2_Pos) /*!< Bit mask of EPIN2 field. */
+#define USBD_EPSTATUS_EPIN2_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPIN2_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 1 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPIN1_Pos (1UL) /*!< Position of EPIN1 field. */
+#define USBD_EPSTATUS_EPIN1_Msk (0x1UL << USBD_EPSTATUS_EPIN1_Pos) /*!< Bit mask of EPIN1 field. */
+#define USBD_EPSTATUS_EPIN1_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPIN1_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Bit 0 : Captured state of endpoint's EasyDMA registers. Write '1' to clear. */
+#define USBD_EPSTATUS_EPIN0_Pos (0UL) /*!< Position of EPIN0 field. */
+#define USBD_EPSTATUS_EPIN0_Msk (0x1UL << USBD_EPSTATUS_EPIN0_Pos) /*!< Bit mask of EPIN0 field. */
+#define USBD_EPSTATUS_EPIN0_NoData (0UL) /*!< EasyDMA registers have not been captured for this endpoint */
+#define USBD_EPSTATUS_EPIN0_DataDone (1UL) /*!< EasyDMA registers have been captured for this endpoint */
+
+/* Register: USBD_EPDATASTATUS */
+/* Description: Provides information on which endpoint(s) an acknowledged data transfer has occurred (EPDATA event) */
+
+/* Bit 23 : Acknowledged data transfer on this OUT endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPOUT7_Pos (23UL) /*!< Position of EPOUT7 field. */
+#define USBD_EPDATASTATUS_EPOUT7_Msk (0x1UL << USBD_EPDATASTATUS_EPOUT7_Pos) /*!< Bit mask of EPOUT7 field. */
+#define USBD_EPDATASTATUS_EPOUT7_NotStarted (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPOUT7_Started (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 22 : Acknowledged data transfer on this OUT endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPOUT6_Pos (22UL) /*!< Position of EPOUT6 field. */
+#define USBD_EPDATASTATUS_EPOUT6_Msk (0x1UL << USBD_EPDATASTATUS_EPOUT6_Pos) /*!< Bit mask of EPOUT6 field. */
+#define USBD_EPDATASTATUS_EPOUT6_NotStarted (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPOUT6_Started (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 21 : Acknowledged data transfer on this OUT endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPOUT5_Pos (21UL) /*!< Position of EPOUT5 field. */
+#define USBD_EPDATASTATUS_EPOUT5_Msk (0x1UL << USBD_EPDATASTATUS_EPOUT5_Pos) /*!< Bit mask of EPOUT5 field. */
+#define USBD_EPDATASTATUS_EPOUT5_NotStarted (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPOUT5_Started (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 20 : Acknowledged data transfer on this OUT endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPOUT4_Pos (20UL) /*!< Position of EPOUT4 field. */
+#define USBD_EPDATASTATUS_EPOUT4_Msk (0x1UL << USBD_EPDATASTATUS_EPOUT4_Pos) /*!< Bit mask of EPOUT4 field. */
+#define USBD_EPDATASTATUS_EPOUT4_NotStarted (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPOUT4_Started (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 19 : Acknowledged data transfer on this OUT endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPOUT3_Pos (19UL) /*!< Position of EPOUT3 field. */
+#define USBD_EPDATASTATUS_EPOUT3_Msk (0x1UL << USBD_EPDATASTATUS_EPOUT3_Pos) /*!< Bit mask of EPOUT3 field. */
+#define USBD_EPDATASTATUS_EPOUT3_NotStarted (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPOUT3_Started (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 18 : Acknowledged data transfer on this OUT endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPOUT2_Pos (18UL) /*!< Position of EPOUT2 field. */
+#define USBD_EPDATASTATUS_EPOUT2_Msk (0x1UL << USBD_EPDATASTATUS_EPOUT2_Pos) /*!< Bit mask of EPOUT2 field. */
+#define USBD_EPDATASTATUS_EPOUT2_NotStarted (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPOUT2_Started (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 17 : Acknowledged data transfer on this OUT endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPOUT1_Pos (17UL) /*!< Position of EPOUT1 field. */
+#define USBD_EPDATASTATUS_EPOUT1_Msk (0x1UL << USBD_EPDATASTATUS_EPOUT1_Pos) /*!< Bit mask of EPOUT1 field. */
+#define USBD_EPDATASTATUS_EPOUT1_NotStarted (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPOUT1_Started (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 7 : Acknowledged data transfer on this IN endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPIN7_Pos (7UL) /*!< Position of EPIN7 field. */
+#define USBD_EPDATASTATUS_EPIN7_Msk (0x1UL << USBD_EPDATASTATUS_EPIN7_Pos) /*!< Bit mask of EPIN7 field. */
+#define USBD_EPDATASTATUS_EPIN7_NotDone (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPIN7_DataDone (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 6 : Acknowledged data transfer on this IN endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPIN6_Pos (6UL) /*!< Position of EPIN6 field. */
+#define USBD_EPDATASTATUS_EPIN6_Msk (0x1UL << USBD_EPDATASTATUS_EPIN6_Pos) /*!< Bit mask of EPIN6 field. */
+#define USBD_EPDATASTATUS_EPIN6_NotDone (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPIN6_DataDone (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 5 : Acknowledged data transfer on this IN endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPIN5_Pos (5UL) /*!< Position of EPIN5 field. */
+#define USBD_EPDATASTATUS_EPIN5_Msk (0x1UL << USBD_EPDATASTATUS_EPIN5_Pos) /*!< Bit mask of EPIN5 field. */
+#define USBD_EPDATASTATUS_EPIN5_NotDone (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPIN5_DataDone (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 4 : Acknowledged data transfer on this IN endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPIN4_Pos (4UL) /*!< Position of EPIN4 field. */
+#define USBD_EPDATASTATUS_EPIN4_Msk (0x1UL << USBD_EPDATASTATUS_EPIN4_Pos) /*!< Bit mask of EPIN4 field. */
+#define USBD_EPDATASTATUS_EPIN4_NotDone (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPIN4_DataDone (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 3 : Acknowledged data transfer on this IN endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPIN3_Pos (3UL) /*!< Position of EPIN3 field. */
+#define USBD_EPDATASTATUS_EPIN3_Msk (0x1UL << USBD_EPDATASTATUS_EPIN3_Pos) /*!< Bit mask of EPIN3 field. */
+#define USBD_EPDATASTATUS_EPIN3_NotDone (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPIN3_DataDone (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 2 : Acknowledged data transfer on this IN endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPIN2_Pos (2UL) /*!< Position of EPIN2 field. */
+#define USBD_EPDATASTATUS_EPIN2_Msk (0x1UL << USBD_EPDATASTATUS_EPIN2_Pos) /*!< Bit mask of EPIN2 field. */
+#define USBD_EPDATASTATUS_EPIN2_NotDone (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPIN2_DataDone (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Bit 1 : Acknowledged data transfer on this IN endpoint. Write '1' to clear. */
+#define USBD_EPDATASTATUS_EPIN1_Pos (1UL) /*!< Position of EPIN1 field. */
+#define USBD_EPDATASTATUS_EPIN1_Msk (0x1UL << USBD_EPDATASTATUS_EPIN1_Pos) /*!< Bit mask of EPIN1 field. */
+#define USBD_EPDATASTATUS_EPIN1_NotDone (0UL) /*!< No acknowledged data transfer on this endpoint */
+#define USBD_EPDATASTATUS_EPIN1_DataDone (1UL) /*!< Acknowledged data transfer on this endpoint has occurred */
+
+/* Register: USBD_USBADDR */
+/* Description: Device USB address */
+
+/* Bits 6..0 : Device USB address */
+#define USBD_USBADDR_ADDR_Pos (0UL) /*!< Position of ADDR field. */
+#define USBD_USBADDR_ADDR_Msk (0x7FUL << USBD_USBADDR_ADDR_Pos) /*!< Bit mask of ADDR field. */
+
+/* Register: USBD_BMREQUESTTYPE */
+/* Description: SETUP data, byte 0, bmRequestType */
+
+/* Bit 7 : Data transfer direction */
+#define USBD_BMREQUESTTYPE_DIRECTION_Pos (7UL) /*!< Position of DIRECTION field. */
+#define USBD_BMREQUESTTYPE_DIRECTION_Msk (0x1UL << USBD_BMREQUESTTYPE_DIRECTION_Pos) /*!< Bit mask of DIRECTION field. */
+#define USBD_BMREQUESTTYPE_DIRECTION_HostToDevice (0UL) /*!< Host-to-device */
+#define USBD_BMREQUESTTYPE_DIRECTION_DeviceToHost (1UL) /*!< Device-to-host */
+
+/* Bits 6..5 : Data transfer type */
+#define USBD_BMREQUESTTYPE_TYPE_Pos (5UL) /*!< Position of TYPE field. */
+#define USBD_BMREQUESTTYPE_TYPE_Msk (0x3UL << USBD_BMREQUESTTYPE_TYPE_Pos) /*!< Bit mask of TYPE field. */
+#define USBD_BMREQUESTTYPE_TYPE_Standard (0UL) /*!< Standard */
+#define USBD_BMREQUESTTYPE_TYPE_Class (1UL) /*!< Class */
+#define USBD_BMREQUESTTYPE_TYPE_Vendor (2UL) /*!< Vendor */
+
+/* Bits 4..0 : Data transfer type */
+#define USBD_BMREQUESTTYPE_RECIPIENT_Pos (0UL) /*!< Position of RECIPIENT field. */
+#define USBD_BMREQUESTTYPE_RECIPIENT_Msk (0x1FUL << USBD_BMREQUESTTYPE_RECIPIENT_Pos) /*!< Bit mask of RECIPIENT field. */
+#define USBD_BMREQUESTTYPE_RECIPIENT_Device (0UL) /*!< Device */
+#define USBD_BMREQUESTTYPE_RECIPIENT_Interface (1UL) /*!< Interface */
+#define USBD_BMREQUESTTYPE_RECIPIENT_Endpoint (2UL) /*!< Endpoint */
+#define USBD_BMREQUESTTYPE_RECIPIENT_Other (3UL) /*!< Other */
+
+/* Register: USBD_BREQUEST */
+/* Description: SETUP data, byte 1, bRequest */
+
+/* Bits 7..0 : SETUP data, byte 1, bRequest. Values provided for standard requests only, user must implement class and vendor values. */
+#define USBD_BREQUEST_BREQUEST_Pos (0UL) /*!< Position of BREQUEST field. */
+#define USBD_BREQUEST_BREQUEST_Msk (0xFFUL << USBD_BREQUEST_BREQUEST_Pos) /*!< Bit mask of BREQUEST field. */
+#define USBD_BREQUEST_BREQUEST_STD_GET_STATUS (0UL) /*!< Standard request GET_STATUS */
+#define USBD_BREQUEST_BREQUEST_STD_CLEAR_FEATURE (1UL) /*!< Standard request CLEAR_FEATURE */
+#define USBD_BREQUEST_BREQUEST_STD_SET_FEATURE (3UL) /*!< Standard request SET_FEATURE */
+#define USBD_BREQUEST_BREQUEST_STD_SET_ADDRESS (5UL) /*!< Standard request SET_ADDRESS */
+#define USBD_BREQUEST_BREQUEST_STD_GET_DESCRIPTOR (6UL) /*!< Standard request GET_DESCRIPTOR */
+#define USBD_BREQUEST_BREQUEST_STD_SET_DESCRIPTOR (7UL) /*!< Standard request SET_DESCRIPTOR */
+#define USBD_BREQUEST_BREQUEST_STD_GET_CONFIGURATION (8UL) /*!< Standard request GET_CONFIGURATION */
+#define USBD_BREQUEST_BREQUEST_STD_SET_CONFIGURATION (9UL) /*!< Standard request SET_CONFIGURATION */
+#define USBD_BREQUEST_BREQUEST_STD_GET_INTERFACE (10UL) /*!< Standard request GET_INTERFACE */
+#define USBD_BREQUEST_BREQUEST_STD_SET_INTERFACE (11UL) /*!< Standard request SET_INTERFACE */
+#define USBD_BREQUEST_BREQUEST_STD_SYNCH_FRAME (12UL) /*!< Standard request SYNCH_FRAME */
+
+/* Register: USBD_WVALUEL */
+/* Description: SETUP data, byte 2, LSB of wValue */
+
+/* Bits 7..0 : SETUP data, byte 2, LSB of wValue */
+#define USBD_WVALUEL_WVALUEL_Pos (0UL) /*!< Position of WVALUEL field. */
+#define USBD_WVALUEL_WVALUEL_Msk (0xFFUL << USBD_WVALUEL_WVALUEL_Pos) /*!< Bit mask of WVALUEL field. */
+
+/* Register: USBD_WVALUEH */
+/* Description: SETUP data, byte 3, MSB of wValue */
+
+/* Bits 7..0 : SETUP data, byte 3, MSB of wValue */
+#define USBD_WVALUEH_WVALUEH_Pos (0UL) /*!< Position of WVALUEH field. */
+#define USBD_WVALUEH_WVALUEH_Msk (0xFFUL << USBD_WVALUEH_WVALUEH_Pos) /*!< Bit mask of WVALUEH field. */
+
+/* Register: USBD_WINDEXL */
+/* Description: SETUP data, byte 4, LSB of wIndex */
+
+/* Bits 7..0 : SETUP data, byte 4, LSB of wIndex */
+#define USBD_WINDEXL_WINDEXL_Pos (0UL) /*!< Position of WINDEXL field. */
+#define USBD_WINDEXL_WINDEXL_Msk (0xFFUL << USBD_WINDEXL_WINDEXL_Pos) /*!< Bit mask of WINDEXL field. */
+
+/* Register: USBD_WINDEXH */
+/* Description: SETUP data, byte 5, MSB of wIndex */
+
+/* Bits 7..0 : SETUP data, byte 5, MSB of wIndex */
+#define USBD_WINDEXH_WINDEXH_Pos (0UL) /*!< Position of WINDEXH field. */
+#define USBD_WINDEXH_WINDEXH_Msk (0xFFUL << USBD_WINDEXH_WINDEXH_Pos) /*!< Bit mask of WINDEXH field. */
+
+/* Register: USBD_WLENGTHL */
+/* Description: SETUP data, byte 6, LSB of wLength */
+
+/* Bits 7..0 : SETUP data, byte 6, LSB of wLength */
+#define USBD_WLENGTHL_WLENGTHL_Pos (0UL) /*!< Position of WLENGTHL field. */
+#define USBD_WLENGTHL_WLENGTHL_Msk (0xFFUL << USBD_WLENGTHL_WLENGTHL_Pos) /*!< Bit mask of WLENGTHL field. */
+
+/* Register: USBD_WLENGTHH */
+/* Description: SETUP data, byte 7, MSB of wLength */
+
+/* Bits 7..0 : SETUP data, byte 7, MSB of wLength */
+#define USBD_WLENGTHH_WLENGTHH_Pos (0UL) /*!< Position of WLENGTHH field. */
+#define USBD_WLENGTHH_WLENGTHH_Msk (0xFFUL << USBD_WLENGTHH_WLENGTHH_Pos) /*!< Bit mask of WLENGTHH field. */
+
+/* Register: USBD_SIZE_EPOUT */
+/* Description: Description collection[n]: Number of bytes received last in the data stage of this OUT endpoint */
+
+/* Bits 6..0 : Number of bytes received last in the data stage of this OUT endpoint */
+#define USBD_SIZE_EPOUT_SIZE_Pos (0UL) /*!< Position of SIZE field. */
+#define USBD_SIZE_EPOUT_SIZE_Msk (0x7FUL << USBD_SIZE_EPOUT_SIZE_Pos) /*!< Bit mask of SIZE field. */
+
+/* Register: USBD_SIZE_ISOOUT */
+/* Description: Number of bytes received last on this ISO OUT data endpoint */
+
+/* Bit 16 : Zero-length data packet received */
+#define USBD_SIZE_ISOOUT_ZERO_Pos (16UL) /*!< Position of ZERO field. */
+#define USBD_SIZE_ISOOUT_ZERO_Msk (0x1UL << USBD_SIZE_ISOOUT_ZERO_Pos) /*!< Bit mask of ZERO field. */
+#define USBD_SIZE_ISOOUT_ZERO_Normal (0UL) /*!< No zero-length data received, use value in SIZE */
+#define USBD_SIZE_ISOOUT_ZERO_ZeroData (1UL) /*!< Zero-length data received, ignore value in SIZE */
+
+/* Bits 9..0 : Number of bytes received last on this ISO OUT data endpoint */
+#define USBD_SIZE_ISOOUT_SIZE_Pos (0UL) /*!< Position of SIZE field. */
+#define USBD_SIZE_ISOOUT_SIZE_Msk (0x3FFUL << USBD_SIZE_ISOOUT_SIZE_Pos) /*!< Bit mask of SIZE field. */
+
+/* Register: USBD_ENABLE */
+/* Description: Enable USB */
+
+/* Bit 0 : Enable USB */
+#define USBD_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define USBD_ENABLE_ENABLE_Msk (0x1UL << USBD_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define USBD_ENABLE_ENABLE_Disabled (0UL) /*!< USB peripheral is disabled */
+#define USBD_ENABLE_ENABLE_Enabled (1UL) /*!< USB peripheral is enabled */
+
+/* Register: USBD_USBPULLUP */
+/* Description: Control of the USB pull-up */
+
+/* Bit 0 : Control of the USB pull-up on the D+ line */
+#define USBD_USBPULLUP_CONNECT_Pos (0UL) /*!< Position of CONNECT field. */
+#define USBD_USBPULLUP_CONNECT_Msk (0x1UL << USBD_USBPULLUP_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define USBD_USBPULLUP_CONNECT_Disabled (0UL) /*!< Pull-up is disconnected */
+#define USBD_USBPULLUP_CONNECT_Enabled (1UL) /*!< Pull-up is connected to D+ */
+
+/* Register: USBD_DPDMVALUE */
+/* Description: State D+ and D- lines will be forced into by the DPDMDRIVE task. The DPDMNODRIVE task reverts the control of the lines to MAC IP (no forcing). */
+
+/* Bits 4..0 : State D+ and D- lines will be forced into by the DPDMDRIVE task */
+#define USBD_DPDMVALUE_STATE_Pos (0UL) /*!< Position of STATE field. */
+#define USBD_DPDMVALUE_STATE_Msk (0x1FUL << USBD_DPDMVALUE_STATE_Pos) /*!< Bit mask of STATE field. */
+#define USBD_DPDMVALUE_STATE_Resume (1UL) /*!< D+ forced low, D- forced high (K state) for a timing preset in hardware (50 us or 5 ms, depending on bus state) */
+#define USBD_DPDMVALUE_STATE_J (2UL) /*!< D+ forced high, D- forced low (J state) */
+#define USBD_DPDMVALUE_STATE_K (4UL) /*!< D+ forced low, D- forced high (K state) */
+
+/* Register: USBD_DTOGGLE */
+/* Description: Data toggle control and status */
+
+/* Bits 9..8 : Data toggle value */
+#define USBD_DTOGGLE_VALUE_Pos (8UL) /*!< Position of VALUE field. */
+#define USBD_DTOGGLE_VALUE_Msk (0x3UL << USBD_DTOGGLE_VALUE_Pos) /*!< Bit mask of VALUE field. */
+#define USBD_DTOGGLE_VALUE_Nop (0UL) /*!< No action on data toggle when writing the register with this value */
+#define USBD_DTOGGLE_VALUE_Data0 (1UL) /*!< Data toggle is DATA0 on endpoint set by EP and IO */
+#define USBD_DTOGGLE_VALUE_Data1 (2UL) /*!< Data toggle is DATA1 on endpoint set by EP and IO */
+
+/* Bit 7 : Selects IN or OUT endpoint */
+#define USBD_DTOGGLE_IO_Pos (7UL) /*!< Position of IO field. */
+#define USBD_DTOGGLE_IO_Msk (0x1UL << USBD_DTOGGLE_IO_Pos) /*!< Bit mask of IO field. */
+#define USBD_DTOGGLE_IO_Out (0UL) /*!< Selects OUT endpoint */
+#define USBD_DTOGGLE_IO_In (1UL) /*!< Selects IN endpoint */
+
+/* Bits 2..0 : Select bulk endpoint number */
+#define USBD_DTOGGLE_EP_Pos (0UL) /*!< Position of EP field. */
+#define USBD_DTOGGLE_EP_Msk (0x7UL << USBD_DTOGGLE_EP_Pos) /*!< Bit mask of EP field. */
+
+/* Register: USBD_EPINEN */
+/* Description: Endpoint IN enable */
+
+/* Bit 8 : Enable ISO IN endpoint */
+#define USBD_EPINEN_ISOIN_Pos (8UL) /*!< Position of ISOIN field. */
+#define USBD_EPINEN_ISOIN_Msk (0x1UL << USBD_EPINEN_ISOIN_Pos) /*!< Bit mask of ISOIN field. */
+#define USBD_EPINEN_ISOIN_Disable (0UL) /*!< Disable ISO IN endpoint 8 */
+#define USBD_EPINEN_ISOIN_Enable (1UL) /*!< Enable ISO IN endpoint 8 */
+
+/* Bit 7 : Enable IN endpoint 7 */
+#define USBD_EPINEN_IN7_Pos (7UL) /*!< Position of IN7 field. */
+#define USBD_EPINEN_IN7_Msk (0x1UL << USBD_EPINEN_IN7_Pos) /*!< Bit mask of IN7 field. */
+#define USBD_EPINEN_IN7_Disable (0UL) /*!< Disable endpoint IN 7 (no response to IN tokens) */
+#define USBD_EPINEN_IN7_Enable (1UL) /*!< Enable endpoint IN 7 (response to IN tokens) */
+
+/* Bit 6 : Enable IN endpoint 6 */
+#define USBD_EPINEN_IN6_Pos (6UL) /*!< Position of IN6 field. */
+#define USBD_EPINEN_IN6_Msk (0x1UL << USBD_EPINEN_IN6_Pos) /*!< Bit mask of IN6 field. */
+#define USBD_EPINEN_IN6_Disable (0UL) /*!< Disable endpoint IN 6 (no response to IN tokens) */
+#define USBD_EPINEN_IN6_Enable (1UL) /*!< Enable endpoint IN 6 (response to IN tokens) */
+
+/* Bit 5 : Enable IN endpoint 5 */
+#define USBD_EPINEN_IN5_Pos (5UL) /*!< Position of IN5 field. */
+#define USBD_EPINEN_IN5_Msk (0x1UL << USBD_EPINEN_IN5_Pos) /*!< Bit mask of IN5 field. */
+#define USBD_EPINEN_IN5_Disable (0UL) /*!< Disable endpoint IN 5 (no response to IN tokens) */
+#define USBD_EPINEN_IN5_Enable (1UL) /*!< Enable endpoint IN 5 (response to IN tokens) */
+
+/* Bit 4 : Enable IN endpoint 4 */
+#define USBD_EPINEN_IN4_Pos (4UL) /*!< Position of IN4 field. */
+#define USBD_EPINEN_IN4_Msk (0x1UL << USBD_EPINEN_IN4_Pos) /*!< Bit mask of IN4 field. */
+#define USBD_EPINEN_IN4_Disable (0UL) /*!< Disable endpoint IN 4 (no response to IN tokens) */
+#define USBD_EPINEN_IN4_Enable (1UL) /*!< Enable endpoint IN 4 (response to IN tokens) */
+
+/* Bit 3 : Enable IN endpoint 3 */
+#define USBD_EPINEN_IN3_Pos (3UL) /*!< Position of IN3 field. */
+#define USBD_EPINEN_IN3_Msk (0x1UL << USBD_EPINEN_IN3_Pos) /*!< Bit mask of IN3 field. */
+#define USBD_EPINEN_IN3_Disable (0UL) /*!< Disable endpoint IN 3 (no response to IN tokens) */
+#define USBD_EPINEN_IN3_Enable (1UL) /*!< Enable endpoint IN 3 (response to IN tokens) */
+
+/* Bit 2 : Enable IN endpoint 2 */
+#define USBD_EPINEN_IN2_Pos (2UL) /*!< Position of IN2 field. */
+#define USBD_EPINEN_IN2_Msk (0x1UL << USBD_EPINEN_IN2_Pos) /*!< Bit mask of IN2 field. */
+#define USBD_EPINEN_IN2_Disable (0UL) /*!< Disable endpoint IN 2 (no response to IN tokens) */
+#define USBD_EPINEN_IN2_Enable (1UL) /*!< Enable endpoint IN 2 (response to IN tokens) */
+
+/* Bit 1 : Enable IN endpoint 1 */
+#define USBD_EPINEN_IN1_Pos (1UL) /*!< Position of IN1 field. */
+#define USBD_EPINEN_IN1_Msk (0x1UL << USBD_EPINEN_IN1_Pos) /*!< Bit mask of IN1 field. */
+#define USBD_EPINEN_IN1_Disable (0UL) /*!< Disable endpoint IN 1 (no response to IN tokens) */
+#define USBD_EPINEN_IN1_Enable (1UL) /*!< Enable endpoint IN 1 (response to IN tokens) */
+
+/* Bit 0 : Enable IN endpoint 0 */
+#define USBD_EPINEN_IN0_Pos (0UL) /*!< Position of IN0 field. */
+#define USBD_EPINEN_IN0_Msk (0x1UL << USBD_EPINEN_IN0_Pos) /*!< Bit mask of IN0 field. */
+#define USBD_EPINEN_IN0_Disable (0UL) /*!< Disable endpoint IN 0 (no response to IN tokens) */
+#define USBD_EPINEN_IN0_Enable (1UL) /*!< Enable endpoint IN 0 (response to IN tokens) */
+
+/* Register: USBD_EPOUTEN */
+/* Description: Endpoint OUT enable */
+
+/* Bit 8 : Enable ISO OUT endpoint 8 */
+#define USBD_EPOUTEN_ISOOUT_Pos (8UL) /*!< Position of ISOOUT field. */
+#define USBD_EPOUTEN_ISOOUT_Msk (0x1UL << USBD_EPOUTEN_ISOOUT_Pos) /*!< Bit mask of ISOOUT field. */
+#define USBD_EPOUTEN_ISOOUT_Disable (0UL) /*!< Disable ISO OUT endpoint 8 */
+#define USBD_EPOUTEN_ISOOUT_Enable (1UL) /*!< Enable ISO OUT endpoint 8 */
+
+/* Bit 7 : Enable OUT endpoint 7 */
+#define USBD_EPOUTEN_OUT7_Pos (7UL) /*!< Position of OUT7 field. */
+#define USBD_EPOUTEN_OUT7_Msk (0x1UL << USBD_EPOUTEN_OUT7_Pos) /*!< Bit mask of OUT7 field. */
+#define USBD_EPOUTEN_OUT7_Disable (0UL) /*!< Disable endpoint OUT 7 (no response to OUT tokens) */
+#define USBD_EPOUTEN_OUT7_Enable (1UL) /*!< Enable endpoint OUT 7 (response to OUT tokens) */
+
+/* Bit 6 : Enable OUT endpoint 6 */
+#define USBD_EPOUTEN_OUT6_Pos (6UL) /*!< Position of OUT6 field. */
+#define USBD_EPOUTEN_OUT6_Msk (0x1UL << USBD_EPOUTEN_OUT6_Pos) /*!< Bit mask of OUT6 field. */
+#define USBD_EPOUTEN_OUT6_Disable (0UL) /*!< Disable endpoint OUT 6 (no response to OUT tokens) */
+#define USBD_EPOUTEN_OUT6_Enable (1UL) /*!< Enable endpoint OUT 6 (response to OUT tokens) */
+
+/* Bit 5 : Enable OUT endpoint 5 */
+#define USBD_EPOUTEN_OUT5_Pos (5UL) /*!< Position of OUT5 field. */
+#define USBD_EPOUTEN_OUT5_Msk (0x1UL << USBD_EPOUTEN_OUT5_Pos) /*!< Bit mask of OUT5 field. */
+#define USBD_EPOUTEN_OUT5_Disable (0UL) /*!< Disable endpoint OUT 5 (no response to OUT tokens) */
+#define USBD_EPOUTEN_OUT5_Enable (1UL) /*!< Enable endpoint OUT 5 (response to OUT tokens) */
+
+/* Bit 4 : Enable OUT endpoint 4 */
+#define USBD_EPOUTEN_OUT4_Pos (4UL) /*!< Position of OUT4 field. */
+#define USBD_EPOUTEN_OUT4_Msk (0x1UL << USBD_EPOUTEN_OUT4_Pos) /*!< Bit mask of OUT4 field. */
+#define USBD_EPOUTEN_OUT4_Disable (0UL) /*!< Disable endpoint OUT 4 (no response to OUT tokens) */
+#define USBD_EPOUTEN_OUT4_Enable (1UL) /*!< Enable endpoint OUT 4 (response to OUT tokens) */
+
+/* Bit 3 : Enable OUT endpoint 3 */
+#define USBD_EPOUTEN_OUT3_Pos (3UL) /*!< Position of OUT3 field. */
+#define USBD_EPOUTEN_OUT3_Msk (0x1UL << USBD_EPOUTEN_OUT3_Pos) /*!< Bit mask of OUT3 field. */
+#define USBD_EPOUTEN_OUT3_Disable (0UL) /*!< Disable endpoint OUT 3 (no response to OUT tokens) */
+#define USBD_EPOUTEN_OUT3_Enable (1UL) /*!< Enable endpoint OUT 3 (response to OUT tokens) */
+
+/* Bit 2 : Enable OUT endpoint 2 */
+#define USBD_EPOUTEN_OUT2_Pos (2UL) /*!< Position of OUT2 field. */
+#define USBD_EPOUTEN_OUT2_Msk (0x1UL << USBD_EPOUTEN_OUT2_Pos) /*!< Bit mask of OUT2 field. */
+#define USBD_EPOUTEN_OUT2_Disable (0UL) /*!< Disable endpoint OUT 2 (no response to OUT tokens) */
+#define USBD_EPOUTEN_OUT2_Enable (1UL) /*!< Enable endpoint OUT 2 (response to OUT tokens) */
+
+/* Bit 1 : Enable OUT endpoint 1 */
+#define USBD_EPOUTEN_OUT1_Pos (1UL) /*!< Position of OUT1 field. */
+#define USBD_EPOUTEN_OUT1_Msk (0x1UL << USBD_EPOUTEN_OUT1_Pos) /*!< Bit mask of OUT1 field. */
+#define USBD_EPOUTEN_OUT1_Disable (0UL) /*!< Disable endpoint OUT 1 (no response to OUT tokens) */
+#define USBD_EPOUTEN_OUT1_Enable (1UL) /*!< Enable endpoint OUT 1 (response to OUT tokens) */
+
+/* Bit 0 : Enable OUT endpoint 0 */
+#define USBD_EPOUTEN_OUT0_Pos (0UL) /*!< Position of OUT0 field. */
+#define USBD_EPOUTEN_OUT0_Msk (0x1UL << USBD_EPOUTEN_OUT0_Pos) /*!< Bit mask of OUT0 field. */
+#define USBD_EPOUTEN_OUT0_Disable (0UL) /*!< Disable endpoint OUT 0 (no response to OUT tokens) */
+#define USBD_EPOUTEN_OUT0_Enable (1UL) /*!< Enable endpoint OUT 0 (response to OUT tokens) */
+
+/* Register: USBD_EPSTALL */
+/* Description: STALL endpoints */
+
+/* Bit 8 : Stall selected endpoint */
+#define USBD_EPSTALL_STALL_Pos (8UL) /*!< Position of STALL field. */
+#define USBD_EPSTALL_STALL_Msk (0x1UL << USBD_EPSTALL_STALL_Pos) /*!< Bit mask of STALL field. */
+#define USBD_EPSTALL_STALL_UnStall (0UL) /*!< Don't stall selected endpoint */
+#define USBD_EPSTALL_STALL_Stall (1UL) /*!< Stall selected endpoint */
+
+/* Bit 7 : Selects IN or OUT endpoint */
+#define USBD_EPSTALL_IO_Pos (7UL) /*!< Position of IO field. */
+#define USBD_EPSTALL_IO_Msk (0x1UL << USBD_EPSTALL_IO_Pos) /*!< Bit mask of IO field. */
+#define USBD_EPSTALL_IO_Out (0UL) /*!< Selects OUT endpoint */
+#define USBD_EPSTALL_IO_In (1UL) /*!< Selects IN endpoint */
+
+/* Bits 2..0 : Select endpoint number */
+#define USBD_EPSTALL_EP_Pos (0UL) /*!< Position of EP field. */
+#define USBD_EPSTALL_EP_Msk (0x7UL << USBD_EPSTALL_EP_Pos) /*!< Bit mask of EP field. */
+
+/* Register: USBD_ISOSPLIT */
+/* Description: Controls the split of ISO buffers */
+
+/* Bits 15..0 : Controls the split of ISO buffers */
+#define USBD_ISOSPLIT_SPLIT_Pos (0UL) /*!< Position of SPLIT field. */
+#define USBD_ISOSPLIT_SPLIT_Msk (0xFFFFUL << USBD_ISOSPLIT_SPLIT_Pos) /*!< Bit mask of SPLIT field. */
+#define USBD_ISOSPLIT_SPLIT_OneDir (0x0000UL) /*!< Full buffer dedicated to either iso IN or OUT */
+#define USBD_ISOSPLIT_SPLIT_HalfIN (0x0080UL) /*!< Lower half for IN, upper half for OUT */
+
+/* Register: USBD_FRAMECNTR */
+/* Description: Returns the current value of the start of frame counter */
+
+/* Bits 10..0 : Returns the current value of the start of frame counter */
+#define USBD_FRAMECNTR_FRAMECNTR_Pos (0UL) /*!< Position of FRAMECNTR field. */
+#define USBD_FRAMECNTR_FRAMECNTR_Msk (0x7FFUL << USBD_FRAMECNTR_FRAMECNTR_Pos) /*!< Bit mask of FRAMECNTR field. */
+
+/* Register: USBD_LOWPOWER */
+/* Description: Controls USBD peripheral low power mode during USB suspend */
+
+/* Bit 0 : Controls USBD peripheral low-power mode during USB suspend */
+#define USBD_LOWPOWER_LOWPOWER_Pos (0UL) /*!< Position of LOWPOWER field. */
+#define USBD_LOWPOWER_LOWPOWER_Msk (0x1UL << USBD_LOWPOWER_LOWPOWER_Pos) /*!< Bit mask of LOWPOWER field. */
+#define USBD_LOWPOWER_LOWPOWER_ForceNormal (0UL) /*!< Software must write this value to exit low power mode and before performing a remote wake-up */
+#define USBD_LOWPOWER_LOWPOWER_LowPower (1UL) /*!< Software must write this value to enter low power mode after DMA and software have finished interacting with the USB peripheral */
+
+/* Register: USBD_ISOINCONFIG */
+/* Description: Controls the response of the ISO IN endpoint to an IN token when no data is ready to be sent */
+
+/* Bit 0 : Controls the response of the ISO IN endpoint to an IN token when no data is ready to be sent */
+#define USBD_ISOINCONFIG_RESPONSE_Pos (0UL) /*!< Position of RESPONSE field. */
+#define USBD_ISOINCONFIG_RESPONSE_Msk (0x1UL << USBD_ISOINCONFIG_RESPONSE_Pos) /*!< Bit mask of RESPONSE field. */
+#define USBD_ISOINCONFIG_RESPONSE_NoResp (0UL) /*!< Endpoint does not respond in that case */
+#define USBD_ISOINCONFIG_RESPONSE_ZeroData (1UL) /*!< Endpoint responds with a zero-length data packet in that case */
+
+/* Register: USBD_EPIN_PTR */
+/* Description: Description cluster[n]: Data pointer */
+
+/* Bits 31..0 : Data pointer. Accepts any address in Data RAM. */
+#define USBD_EPIN_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define USBD_EPIN_PTR_PTR_Msk (0xFFFFFFFFUL << USBD_EPIN_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: USBD_EPIN_MAXCNT */
+/* Description: Description cluster[n]: Maximum number of bytes to transfer */
+
+/* Bits 6..0 : Maximum number of bytes to transfer */
+#define USBD_EPIN_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define USBD_EPIN_MAXCNT_MAXCNT_Msk (0x7FUL << USBD_EPIN_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: USBD_EPIN_AMOUNT */
+/* Description: Description cluster[n]: Number of bytes transferred in the last transaction */
+
+/* Bits 6..0 : Number of bytes transferred in the last transaction */
+#define USBD_EPIN_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define USBD_EPIN_AMOUNT_AMOUNT_Msk (0x7FUL << USBD_EPIN_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: USBD_ISOIN_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer. Accepts any address in Data RAM. */
+#define USBD_ISOIN_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define USBD_ISOIN_PTR_PTR_Msk (0xFFFFFFFFUL << USBD_ISOIN_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: USBD_ISOIN_MAXCNT */
+/* Description: Maximum number of bytes to transfer */
+
+/* Bits 9..0 : Maximum number of bytes to transfer */
+#define USBD_ISOIN_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define USBD_ISOIN_MAXCNT_MAXCNT_Msk (0x3FFUL << USBD_ISOIN_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: USBD_ISOIN_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 9..0 : Number of bytes transferred in the last transaction */
+#define USBD_ISOIN_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define USBD_ISOIN_AMOUNT_AMOUNT_Msk (0x3FFUL << USBD_ISOIN_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: USBD_EPOUT_PTR */
+/* Description: Description cluster[n]: Data pointer */
+
+/* Bits 31..0 : Data pointer. Accepts any address in Data RAM. */
+#define USBD_EPOUT_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define USBD_EPOUT_PTR_PTR_Msk (0xFFFFFFFFUL << USBD_EPOUT_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: USBD_EPOUT_MAXCNT */
+/* Description: Description cluster[n]: Maximum number of bytes to transfer */
+
+/* Bits 6..0 : Maximum number of bytes to transfer */
+#define USBD_EPOUT_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define USBD_EPOUT_MAXCNT_MAXCNT_Msk (0x7FUL << USBD_EPOUT_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: USBD_EPOUT_AMOUNT */
+/* Description: Description cluster[n]: Number of bytes transferred in the last transaction */
+
+/* Bits 6..0 : Number of bytes transferred in the last transaction */
+#define USBD_EPOUT_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define USBD_EPOUT_AMOUNT_AMOUNT_Msk (0x7FUL << USBD_EPOUT_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: USBD_ISOOUT_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer. Accepts any address in Data RAM. */
+#define USBD_ISOOUT_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define USBD_ISOOUT_PTR_PTR_Msk (0xFFFFFFFFUL << USBD_ISOOUT_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: USBD_ISOOUT_MAXCNT */
+/* Description: Maximum number of bytes to transfer */
+
+/* Bits 9..0 : Maximum number of bytes to transfer */
+#define USBD_ISOOUT_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define USBD_ISOOUT_MAXCNT_MAXCNT_Msk (0x3FFUL << USBD_ISOOUT_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: USBD_ISOOUT_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 9..0 : Number of bytes transferred in the last transaction */
+#define USBD_ISOOUT_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define USBD_ISOOUT_AMOUNT_AMOUNT_Msk (0x3FFUL << USBD_ISOOUT_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+
+/* Peripheral: WDT */
+/* Description: Watchdog Timer */
+
+/* Register: WDT_TASKS_START */
+/* Description: Start the watchdog */
+
+/* Bit 0 : */
+#define WDT_TASKS_START_TASKS_START_Pos (0UL) /*!< Position of TASKS_START field. */
+#define WDT_TASKS_START_TASKS_START_Msk (0x1UL << WDT_TASKS_START_TASKS_START_Pos) /*!< Bit mask of TASKS_START field. */
+
+/* Register: WDT_EVENTS_TIMEOUT */
+/* Description: Watchdog timeout */
+
+/* Bit 0 : */
+#define WDT_EVENTS_TIMEOUT_EVENTS_TIMEOUT_Pos (0UL) /*!< Position of EVENTS_TIMEOUT field. */
+#define WDT_EVENTS_TIMEOUT_EVENTS_TIMEOUT_Msk (0x1UL << WDT_EVENTS_TIMEOUT_EVENTS_TIMEOUT_Pos) /*!< Bit mask of EVENTS_TIMEOUT field. */
+
+/* Register: WDT_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 0 : Write '1' to enable interrupt for TIMEOUT event */
+#define WDT_INTENSET_TIMEOUT_Pos (0UL) /*!< Position of TIMEOUT field. */
+#define WDT_INTENSET_TIMEOUT_Msk (0x1UL << WDT_INTENSET_TIMEOUT_Pos) /*!< Bit mask of TIMEOUT field. */
+#define WDT_INTENSET_TIMEOUT_Disabled (0UL) /*!< Read: Disabled */
+#define WDT_INTENSET_TIMEOUT_Enabled (1UL) /*!< Read: Enabled */
+#define WDT_INTENSET_TIMEOUT_Set (1UL) /*!< Enable */
+
+/* Register: WDT_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 0 : Write '1' to disable interrupt for TIMEOUT event */
+#define WDT_INTENCLR_TIMEOUT_Pos (0UL) /*!< Position of TIMEOUT field. */
+#define WDT_INTENCLR_TIMEOUT_Msk (0x1UL << WDT_INTENCLR_TIMEOUT_Pos) /*!< Bit mask of TIMEOUT field. */
+#define WDT_INTENCLR_TIMEOUT_Disabled (0UL) /*!< Read: Disabled */
+#define WDT_INTENCLR_TIMEOUT_Enabled (1UL) /*!< Read: Enabled */
+#define WDT_INTENCLR_TIMEOUT_Clear (1UL) /*!< Disable */
+
+/* Register: WDT_RUNSTATUS */
+/* Description: Run status */
+
+/* Bit 0 : Indicates whether or not the watchdog is running */
+#define WDT_RUNSTATUS_RUNSTATUS_Pos (0UL) /*!< Position of RUNSTATUS field. */
+#define WDT_RUNSTATUS_RUNSTATUS_Msk (0x1UL << WDT_RUNSTATUS_RUNSTATUS_Pos) /*!< Bit mask of RUNSTATUS field. */
+#define WDT_RUNSTATUS_RUNSTATUS_NotRunning (0UL) /*!< Watchdog not running */
+#define WDT_RUNSTATUS_RUNSTATUS_Running (1UL) /*!< Watchdog is running */
+
+/* Register: WDT_REQSTATUS */
+/* Description: Request status */
+
+/* Bit 7 : Request status for RR[7] register */
+#define WDT_REQSTATUS_RR7_Pos (7UL) /*!< Position of RR7 field. */
+#define WDT_REQSTATUS_RR7_Msk (0x1UL << WDT_REQSTATUS_RR7_Pos) /*!< Bit mask of RR7 field. */
+#define WDT_REQSTATUS_RR7_DisabledOrRequested (0UL) /*!< RR[7] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR7_EnabledAndUnrequested (1UL) /*!< RR[7] register is enabled, and are not yet requesting reload */
+
+/* Bit 6 : Request status for RR[6] register */
+#define WDT_REQSTATUS_RR6_Pos (6UL) /*!< Position of RR6 field. */
+#define WDT_REQSTATUS_RR6_Msk (0x1UL << WDT_REQSTATUS_RR6_Pos) /*!< Bit mask of RR6 field. */
+#define WDT_REQSTATUS_RR6_DisabledOrRequested (0UL) /*!< RR[6] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR6_EnabledAndUnrequested (1UL) /*!< RR[6] register is enabled, and are not yet requesting reload */
+
+/* Bit 5 : Request status for RR[5] register */
+#define WDT_REQSTATUS_RR5_Pos (5UL) /*!< Position of RR5 field. */
+#define WDT_REQSTATUS_RR5_Msk (0x1UL << WDT_REQSTATUS_RR5_Pos) /*!< Bit mask of RR5 field. */
+#define WDT_REQSTATUS_RR5_DisabledOrRequested (0UL) /*!< RR[5] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR5_EnabledAndUnrequested (1UL) /*!< RR[5] register is enabled, and are not yet requesting reload */
+
+/* Bit 4 : Request status for RR[4] register */
+#define WDT_REQSTATUS_RR4_Pos (4UL) /*!< Position of RR4 field. */
+#define WDT_REQSTATUS_RR4_Msk (0x1UL << WDT_REQSTATUS_RR4_Pos) /*!< Bit mask of RR4 field. */
+#define WDT_REQSTATUS_RR4_DisabledOrRequested (0UL) /*!< RR[4] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR4_EnabledAndUnrequested (1UL) /*!< RR[4] register is enabled, and are not yet requesting reload */
+
+/* Bit 3 : Request status for RR[3] register */
+#define WDT_REQSTATUS_RR3_Pos (3UL) /*!< Position of RR3 field. */
+#define WDT_REQSTATUS_RR3_Msk (0x1UL << WDT_REQSTATUS_RR3_Pos) /*!< Bit mask of RR3 field. */
+#define WDT_REQSTATUS_RR3_DisabledOrRequested (0UL) /*!< RR[3] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR3_EnabledAndUnrequested (1UL) /*!< RR[3] register is enabled, and are not yet requesting reload */
+
+/* Bit 2 : Request status for RR[2] register */
+#define WDT_REQSTATUS_RR2_Pos (2UL) /*!< Position of RR2 field. */
+#define WDT_REQSTATUS_RR2_Msk (0x1UL << WDT_REQSTATUS_RR2_Pos) /*!< Bit mask of RR2 field. */
+#define WDT_REQSTATUS_RR2_DisabledOrRequested (0UL) /*!< RR[2] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR2_EnabledAndUnrequested (1UL) /*!< RR[2] register is enabled, and are not yet requesting reload */
+
+/* Bit 1 : Request status for RR[1] register */
+#define WDT_REQSTATUS_RR1_Pos (1UL) /*!< Position of RR1 field. */
+#define WDT_REQSTATUS_RR1_Msk (0x1UL << WDT_REQSTATUS_RR1_Pos) /*!< Bit mask of RR1 field. */
+#define WDT_REQSTATUS_RR1_DisabledOrRequested (0UL) /*!< RR[1] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR1_EnabledAndUnrequested (1UL) /*!< RR[1] register is enabled, and are not yet requesting reload */
+
+/* Bit 0 : Request status for RR[0] register */
+#define WDT_REQSTATUS_RR0_Pos (0UL) /*!< Position of RR0 field. */
+#define WDT_REQSTATUS_RR0_Msk (0x1UL << WDT_REQSTATUS_RR0_Pos) /*!< Bit mask of RR0 field. */
+#define WDT_REQSTATUS_RR0_DisabledOrRequested (0UL) /*!< RR[0] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR0_EnabledAndUnrequested (1UL) /*!< RR[0] register is enabled, and are not yet requesting reload */
+
+/* Register: WDT_CRV */
+/* Description: Counter reload value */
+
+/* Bits 31..0 : Counter reload value in number of cycles of the 32.768 kHz clock */
+#define WDT_CRV_CRV_Pos (0UL) /*!< Position of CRV field. */
+#define WDT_CRV_CRV_Msk (0xFFFFFFFFUL << WDT_CRV_CRV_Pos) /*!< Bit mask of CRV field. */
+
+/* Register: WDT_RREN */
+/* Description: Enable register for reload request registers */
+
+/* Bit 7 : Enable or disable RR[7] register */
+#define WDT_RREN_RR7_Pos (7UL) /*!< Position of RR7 field. */
+#define WDT_RREN_RR7_Msk (0x1UL << WDT_RREN_RR7_Pos) /*!< Bit mask of RR7 field. */
+#define WDT_RREN_RR7_Disabled (0UL) /*!< Disable RR[7] register */
+#define WDT_RREN_RR7_Enabled (1UL) /*!< Enable RR[7] register */
+
+/* Bit 6 : Enable or disable RR[6] register */
+#define WDT_RREN_RR6_Pos (6UL) /*!< Position of RR6 field. */
+#define WDT_RREN_RR6_Msk (0x1UL << WDT_RREN_RR6_Pos) /*!< Bit mask of RR6 field. */
+#define WDT_RREN_RR6_Disabled (0UL) /*!< Disable RR[6] register */
+#define WDT_RREN_RR6_Enabled (1UL) /*!< Enable RR[6] register */
+
+/* Bit 5 : Enable or disable RR[5] register */
+#define WDT_RREN_RR5_Pos (5UL) /*!< Position of RR5 field. */
+#define WDT_RREN_RR5_Msk (0x1UL << WDT_RREN_RR5_Pos) /*!< Bit mask of RR5 field. */
+#define WDT_RREN_RR5_Disabled (0UL) /*!< Disable RR[5] register */
+#define WDT_RREN_RR5_Enabled (1UL) /*!< Enable RR[5] register */
+
+/* Bit 4 : Enable or disable RR[4] register */
+#define WDT_RREN_RR4_Pos (4UL) /*!< Position of RR4 field. */
+#define WDT_RREN_RR4_Msk (0x1UL << WDT_RREN_RR4_Pos) /*!< Bit mask of RR4 field. */
+#define WDT_RREN_RR4_Disabled (0UL) /*!< Disable RR[4] register */
+#define WDT_RREN_RR4_Enabled (1UL) /*!< Enable RR[4] register */
+
+/* Bit 3 : Enable or disable RR[3] register */
+#define WDT_RREN_RR3_Pos (3UL) /*!< Position of RR3 field. */
+#define WDT_RREN_RR3_Msk (0x1UL << WDT_RREN_RR3_Pos) /*!< Bit mask of RR3 field. */
+#define WDT_RREN_RR3_Disabled (0UL) /*!< Disable RR[3] register */
+#define WDT_RREN_RR3_Enabled (1UL) /*!< Enable RR[3] register */
+
+/* Bit 2 : Enable or disable RR[2] register */
+#define WDT_RREN_RR2_Pos (2UL) /*!< Position of RR2 field. */
+#define WDT_RREN_RR2_Msk (0x1UL << WDT_RREN_RR2_Pos) /*!< Bit mask of RR2 field. */
+#define WDT_RREN_RR2_Disabled (0UL) /*!< Disable RR[2] register */
+#define WDT_RREN_RR2_Enabled (1UL) /*!< Enable RR[2] register */
+
+/* Bit 1 : Enable or disable RR[1] register */
+#define WDT_RREN_RR1_Pos (1UL) /*!< Position of RR1 field. */
+#define WDT_RREN_RR1_Msk (0x1UL << WDT_RREN_RR1_Pos) /*!< Bit mask of RR1 field. */
+#define WDT_RREN_RR1_Disabled (0UL) /*!< Disable RR[1] register */
+#define WDT_RREN_RR1_Enabled (1UL) /*!< Enable RR[1] register */
+
+/* Bit 0 : Enable or disable RR[0] register */
+#define WDT_RREN_RR0_Pos (0UL) /*!< Position of RR0 field. */
+#define WDT_RREN_RR0_Msk (0x1UL << WDT_RREN_RR0_Pos) /*!< Bit mask of RR0 field. */
+#define WDT_RREN_RR0_Disabled (0UL) /*!< Disable RR[0] register */
+#define WDT_RREN_RR0_Enabled (1UL) /*!< Enable RR[0] register */
+
+/* Register: WDT_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 3 : Configure the watchdog to either be paused, or kept running, while the CPU is halted by the debugger */
+#define WDT_CONFIG_HALT_Pos (3UL) /*!< Position of HALT field. */
+#define WDT_CONFIG_HALT_Msk (0x1UL << WDT_CONFIG_HALT_Pos) /*!< Bit mask of HALT field. */
+#define WDT_CONFIG_HALT_Pause (0UL) /*!< Pause watchdog while the CPU is halted by the debugger */
+#define WDT_CONFIG_HALT_Run (1UL) /*!< Keep the watchdog running while the CPU is halted by the debugger */
+
+/* Bit 0 : Configure the watchdog to either be paused, or kept running, while the CPU is sleeping */
+#define WDT_CONFIG_SLEEP_Pos (0UL) /*!< Position of SLEEP field. */
+#define WDT_CONFIG_SLEEP_Msk (0x1UL << WDT_CONFIG_SLEEP_Pos) /*!< Bit mask of SLEEP field. */
+#define WDT_CONFIG_SLEEP_Pause (0UL) /*!< Pause watchdog while the CPU is sleeping */
+#define WDT_CONFIG_SLEEP_Run (1UL) /*!< Keep the watchdog running while the CPU is sleeping */
+
+/* Register: WDT_RR */
+/* Description: Description collection[n]: Reload request n */
+
+/* Bits 31..0 : Reload request register */
+#define WDT_RR_RR_Pos (0UL) /*!< Position of RR field. */
+#define WDT_RR_RR_Msk (0xFFFFFFFFUL << WDT_RR_RR_Pos) /*!< Bit mask of RR field. */
+#define WDT_RR_RR_Reload (0x6E524635UL) /*!< Value to request a reload of the watchdog timer */
+
+
+/*lint --flb "Leave library region" */
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840_peripherals.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840_peripherals.h
new file mode 100644
index 0000000..5f18f58
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840_peripherals.h
@@ -0,0 +1,310 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef _NRF52840_PERIPHERALS_H
+#define _NRF52840_PERIPHERALS_H
+
+
+/* Power Peripheral */
+#define POWER_PRESENT
+#define POWER_COUNT 1
+
+#define POWER_FEATURE_RAM_REGISTERS_PRESENT
+#define POWER_FEATURE_RAM_REGISTERS_COUNT 9
+
+#define POWER_FEATURE_VDDH_PRESENT
+
+/* Floating Point Unit */
+#define FPU_PRESENT
+#define FPU_COUNT 1
+
+/* Systick timer */
+#define SYSTICK_PRESENT
+#define SYSTICK_COUNT 1
+
+/* Software Interrupts */
+#define SWI_PRESENT
+#define SWI_COUNT 6
+
+/* Memory Watch Unit */
+#define MWU_PRESENT
+#define MWU_COUNT 1
+
+/* GPIO */
+#define GPIO_PRESENT
+#define GPIO_COUNT 2
+
+#define P0_PIN_NUM 32
+#define P1_PIN_NUM 16
+
+/* ACL */
+#define ACL_PRESENT
+
+#define ACL_REGIONS_COUNT 8
+
+/* Radio */
+#define RADIO_PRESENT
+#define RADIO_COUNT 1
+
+#define RADIO_EASYDMA_MAXCNT_SIZE 8
+
+/* Accelerated Address Resolver */
+#define AAR_PRESENT
+#define AAR_COUNT 1
+
+#define AAR_MAX_IRK_NUM 16
+
+/* AES Electronic CodeBook mode encryption */
+#define ECB_PRESENT
+#define ECB_COUNT 1
+
+/* AES CCM mode encryption */
+#define CCM_PRESENT
+#define CCM_COUNT 1
+
+/* NFC Tag */
+#define NFCT_PRESENT
+#define NFCT_COUNT 1
+
+#define NFCT_EASYDMA_MAXCNT_SIZE 9
+
+/* Peripheral to Peripheral Interconnect */
+#define PPI_PRESENT
+#define PPI_COUNT 1
+
+#define PPI_CH_NUM 20
+#define PPI_FIXED_CH_NUM 12
+#define PPI_GROUP_NUM 6
+#define PPI_FEATURE_FORKS_PRESENT
+
+/* Event Generator Unit */
+#define EGU_PRESENT
+#define EGU_COUNT 6
+
+#define EGU0_CH_NUM 16
+#define EGU1_CH_NUM 16
+#define EGU2_CH_NUM 16
+#define EGU3_CH_NUM 16
+#define EGU4_CH_NUM 16
+#define EGU5_CH_NUM 16
+
+/* Timer/Counter */
+#define TIMER_PRESENT
+#define TIMER_COUNT 5
+
+#define TIMER0_MAX_SIZE 32
+#define TIMER1_MAX_SIZE 32
+#define TIMER2_MAX_SIZE 32
+#define TIMER3_MAX_SIZE 32
+#define TIMER4_MAX_SIZE 32
+
+#define TIMER0_CC_NUM 4
+#define TIMER1_CC_NUM 4
+#define TIMER2_CC_NUM 4
+#define TIMER3_CC_NUM 6
+#define TIMER4_CC_NUM 6
+
+/* Real Time Counter */
+#define RTC_PRESENT
+#define RTC_COUNT 3
+
+#define RTC0_CC_NUM 3
+#define RTC1_CC_NUM 4
+#define RTC2_CC_NUM 4
+
+/* RNG */
+#define RNG_PRESENT
+#define RNG_COUNT 1
+
+/* Watchdog Timer */
+#define WDT_PRESENT
+#define WDT_COUNT 1
+
+/* Temperature Sensor */
+#define TEMP_PRESENT
+#define TEMP_COUNT 1
+
+/* Serial Peripheral Interface Master */
+#define SPI_PRESENT
+#define SPI_COUNT 3
+
+/* Serial Peripheral Interface Master with DMA */
+#define SPIM_PRESENT
+#define SPIM_COUNT 4
+
+#define SPIM0_MAX_DATARATE 8
+#define SPIM1_MAX_DATARATE 8
+#define SPIM2_MAX_DATARATE 8
+#define SPIM3_MAX_DATARATE 32
+
+#define SPIM0_FEATURE_HARDWARE_CSN_PRESENT 0
+#define SPIM1_FEATURE_HARDWARE_CSN_PRESENT 0
+#define SPIM2_FEATURE_HARDWARE_CSN_PRESENT 0
+#define SPIM3_FEATURE_HARDWARE_CSN_PRESENT 1
+
+#define SPIM0_FEATURE_DCX_PRESENT 0
+#define SPIM1_FEATURE_DCX_PRESENT 0
+#define SPIM2_FEATURE_DCX_PRESENT 0
+#define SPIM3_FEATURE_DCX_PRESENT 1
+
+#define SPIM0_FEATURE_RXDELAY_PRESENT 0
+#define SPIM1_FEATURE_RXDELAY_PRESENT 0
+#define SPIM2_FEATURE_RXDELAY_PRESENT 0
+#define SPIM3_FEATURE_RXDELAY_PRESENT 1
+
+#define SPIM0_EASYDMA_MAXCNT_SIZE 16
+#define SPIM1_EASYDMA_MAXCNT_SIZE 16
+#define SPIM2_EASYDMA_MAXCNT_SIZE 16
+#define SPIM3_EASYDMA_MAXCNT_SIZE 16
+
+/* Serial Peripheral Interface Slave with DMA*/
+#define SPIS_PRESENT
+#define SPIS_COUNT 3
+
+#define SPIS0_EASYDMA_MAXCNT_SIZE 16
+#define SPIS1_EASYDMA_MAXCNT_SIZE 16
+#define SPIS2_EASYDMA_MAXCNT_SIZE 16
+
+/* Two Wire Interface Master */
+#define TWI_PRESENT
+#define TWI_COUNT 2
+
+/* Two Wire Interface Master with DMA */
+#define TWIM_PRESENT
+#define TWIM_COUNT 2
+
+#define TWIM0_EASYDMA_MAXCNT_SIZE 16
+#define TWIM1_EASYDMA_MAXCNT_SIZE 16
+
+/* Two Wire Interface Slave with DMA */
+#define TWIS_PRESENT
+#define TWIS_COUNT 2
+
+#define TWIS0_EASYDMA_MAXCNT_SIZE 16
+#define TWIS1_EASYDMA_MAXCNT_SIZE 16
+
+/* Universal Asynchronous Receiver-Transmitter */
+#define UART_PRESENT
+#define UART_COUNT 1
+
+/* Universal Asynchronous Receiver-Transmitter with DMA */
+#define UARTE_PRESENT
+#define UARTE_COUNT 2
+
+#define UARTE0_EASYDMA_MAXCNT_SIZE 16
+#define UARTE1_EASYDMA_MAXCNT_SIZE 16
+
+/* Quadrature Decoder */
+#define QDEC_PRESENT
+#define QDEC_COUNT 1
+
+/* Successive Approximation Analog to Digital Converter */
+#define SAADC_PRESENT
+#define SAADC_COUNT 1
+
+#define SAADC_EASYDMA_MAXCNT_SIZE 15
+
+#define SAADC_CH_NUM 8
+
+/* GPIO Tasks and Events */
+#define GPIOTE_PRESENT
+#define GPIOTE_COUNT 1
+
+#define GPIOTE_CH_NUM 8
+
+#define GPIOTE_FEATURE_SET_PRESENT
+#define GPIOTE_FEATURE_CLR_PRESENT
+
+/* Low Power Comparator */
+#define LPCOMP_PRESENT
+#define LPCOMP_COUNT 1
+
+#define LPCOMP_REFSEL_RESOLUTION 16
+
+#define LPCOMP_FEATURE_HYST_PRESENT
+
+/* Comparator */
+#define COMP_PRESENT
+#define COMP_COUNT 1
+
+/* Pulse Width Modulator */
+#define PWM_PRESENT
+#define PWM_COUNT 4
+
+#define PWM0_CH_NUM 4
+#define PWM1_CH_NUM 4
+#define PWM2_CH_NUM 4
+#define PWM3_CH_NUM 4
+
+#define PWM0_EASYDMA_MAXCNT_SIZE 15
+#define PWM1_EASYDMA_MAXCNT_SIZE 15
+#define PWM2_EASYDMA_MAXCNT_SIZE 15
+#define PWM3_EASYDMA_MAXCNT_SIZE 15
+
+/* Pulse Density Modulator */
+#define PDM_PRESENT
+#define PDM_COUNT 1
+
+#define PDM_EASYDMA_MAXCNT_SIZE 15
+
+/* Inter-IC Sound Interface */
+#define I2S_PRESENT
+#define I2S_COUNT 1
+
+#define I2S_EASYDMA_MAXCNT_SIZE 14
+
+/* Universal Serial Bus Device */
+#define USBD_PRESENT
+#define USBD_COUNT 1
+
+#define USBD_EASYDMA_MAXCNT_SIZE 7
+
+/* ARM TrustZone Cryptocell 310 */
+#define CRYPTOCELL_PRESENT
+#define CRYPTOCELL_COUNT 1
+
+/* Quad SPI */
+#define QSPI_PRESENT
+#define QSPI_COUNT 1
+
+#define QSPI_EASYDMA_MAXCNT_SIZE 20
+
+#endif // _NRF52840_PERIPHERALS_H
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840_xxaa.ld b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840_xxaa.ld
new file mode 100644
index 0000000..1133710
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52840_xxaa.ld
@@ -0,0 +1,13 @@
+/* Linker script to configure memory regions. */
+
+SEARCH_DIR(.)
+GROUP(-lgcc -lc -lnosys)
+
+MEMORY
+{
+ FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x100000
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x40000
+}
+
+
+INCLUDE "nrf_common.ld"
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_bitfields.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_bitfields.h
new file mode 100644
index 0000000..21753cc
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_bitfields.h
@@ -0,0 +1,12663 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef __NRF52_BITS_H
+#define __NRF52_BITS_H
+
+/*lint ++flb "Enter library region" */
+
+/* Peripheral: AAR */
+/* Description: Accelerated Address Resolver */
+
+/* Register: AAR_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 2 : Write '1' to Enable interrupt for NOTRESOLVED event */
+#define AAR_INTENSET_NOTRESOLVED_Pos (2UL) /*!< Position of NOTRESOLVED field. */
+#define AAR_INTENSET_NOTRESOLVED_Msk (0x1UL << AAR_INTENSET_NOTRESOLVED_Pos) /*!< Bit mask of NOTRESOLVED field. */
+#define AAR_INTENSET_NOTRESOLVED_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENSET_NOTRESOLVED_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENSET_NOTRESOLVED_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for RESOLVED event */
+#define AAR_INTENSET_RESOLVED_Pos (1UL) /*!< Position of RESOLVED field. */
+#define AAR_INTENSET_RESOLVED_Msk (0x1UL << AAR_INTENSET_RESOLVED_Pos) /*!< Bit mask of RESOLVED field. */
+#define AAR_INTENSET_RESOLVED_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENSET_RESOLVED_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENSET_RESOLVED_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for END event */
+#define AAR_INTENSET_END_Pos (0UL) /*!< Position of END field. */
+#define AAR_INTENSET_END_Msk (0x1UL << AAR_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define AAR_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Register: AAR_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 2 : Write '1' to Disable interrupt for NOTRESOLVED event */
+#define AAR_INTENCLR_NOTRESOLVED_Pos (2UL) /*!< Position of NOTRESOLVED field. */
+#define AAR_INTENCLR_NOTRESOLVED_Msk (0x1UL << AAR_INTENCLR_NOTRESOLVED_Pos) /*!< Bit mask of NOTRESOLVED field. */
+#define AAR_INTENCLR_NOTRESOLVED_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENCLR_NOTRESOLVED_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENCLR_NOTRESOLVED_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for RESOLVED event */
+#define AAR_INTENCLR_RESOLVED_Pos (1UL) /*!< Position of RESOLVED field. */
+#define AAR_INTENCLR_RESOLVED_Msk (0x1UL << AAR_INTENCLR_RESOLVED_Pos) /*!< Bit mask of RESOLVED field. */
+#define AAR_INTENCLR_RESOLVED_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENCLR_RESOLVED_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENCLR_RESOLVED_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for END event */
+#define AAR_INTENCLR_END_Pos (0UL) /*!< Position of END field. */
+#define AAR_INTENCLR_END_Msk (0x1UL << AAR_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define AAR_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define AAR_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define AAR_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Register: AAR_STATUS */
+/* Description: Resolution status */
+
+/* Bits 3..0 : The IRK that was used last time an address was resolved */
+#define AAR_STATUS_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define AAR_STATUS_STATUS_Msk (0xFUL << AAR_STATUS_STATUS_Pos) /*!< Bit mask of STATUS field. */
+
+/* Register: AAR_ENABLE */
+/* Description: Enable AAR */
+
+/* Bits 1..0 : Enable or disable AAR */
+#define AAR_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define AAR_ENABLE_ENABLE_Msk (0x3UL << AAR_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define AAR_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define AAR_ENABLE_ENABLE_Enabled (3UL) /*!< Enable */
+
+/* Register: AAR_NIRK */
+/* Description: Number of IRKs */
+
+/* Bits 4..0 : Number of Identity root keys available in the IRK data structure */
+#define AAR_NIRK_NIRK_Pos (0UL) /*!< Position of NIRK field. */
+#define AAR_NIRK_NIRK_Msk (0x1FUL << AAR_NIRK_NIRK_Pos) /*!< Bit mask of NIRK field. */
+
+/* Register: AAR_IRKPTR */
+/* Description: Pointer to IRK data structure */
+
+/* Bits 31..0 : Pointer to the IRK data structure */
+#define AAR_IRKPTR_IRKPTR_Pos (0UL) /*!< Position of IRKPTR field. */
+#define AAR_IRKPTR_IRKPTR_Msk (0xFFFFFFFFUL << AAR_IRKPTR_IRKPTR_Pos) /*!< Bit mask of IRKPTR field. */
+
+/* Register: AAR_ADDRPTR */
+/* Description: Pointer to the resolvable address */
+
+/* Bits 31..0 : Pointer to the resolvable address (6-bytes) */
+#define AAR_ADDRPTR_ADDRPTR_Pos (0UL) /*!< Position of ADDRPTR field. */
+#define AAR_ADDRPTR_ADDRPTR_Msk (0xFFFFFFFFUL << AAR_ADDRPTR_ADDRPTR_Pos) /*!< Bit mask of ADDRPTR field. */
+
+/* Register: AAR_SCRATCHPTR */
+/* Description: Pointer to data area used for temporary storage */
+
+/* Bits 31..0 : Pointer to a scratch data area used for temporary storage during resolution.A space of minimum 3 bytes must be reserved. */
+#define AAR_SCRATCHPTR_SCRATCHPTR_Pos (0UL) /*!< Position of SCRATCHPTR field. */
+#define AAR_SCRATCHPTR_SCRATCHPTR_Msk (0xFFFFFFFFUL << AAR_SCRATCHPTR_SCRATCHPTR_Pos) /*!< Bit mask of SCRATCHPTR field. */
+
+
+/* Peripheral: BPROT */
+/* Description: Block Protect */
+
+/* Register: BPROT_CONFIG0 */
+/* Description: Block protect configuration register 0 */
+
+/* Bit 31 : Enable protection for region 31. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION31_Pos (31UL) /*!< Position of REGION31 field. */
+#define BPROT_CONFIG0_REGION31_Msk (0x1UL << BPROT_CONFIG0_REGION31_Pos) /*!< Bit mask of REGION31 field. */
+#define BPROT_CONFIG0_REGION31_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION31_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 30 : Enable protection for region 30. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION30_Pos (30UL) /*!< Position of REGION30 field. */
+#define BPROT_CONFIG0_REGION30_Msk (0x1UL << BPROT_CONFIG0_REGION30_Pos) /*!< Bit mask of REGION30 field. */
+#define BPROT_CONFIG0_REGION30_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION30_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 29 : Enable protection for region 29. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION29_Pos (29UL) /*!< Position of REGION29 field. */
+#define BPROT_CONFIG0_REGION29_Msk (0x1UL << BPROT_CONFIG0_REGION29_Pos) /*!< Bit mask of REGION29 field. */
+#define BPROT_CONFIG0_REGION29_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION29_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 28 : Enable protection for region 28. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION28_Pos (28UL) /*!< Position of REGION28 field. */
+#define BPROT_CONFIG0_REGION28_Msk (0x1UL << BPROT_CONFIG0_REGION28_Pos) /*!< Bit mask of REGION28 field. */
+#define BPROT_CONFIG0_REGION28_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION28_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 27 : Enable protection for region 27. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION27_Pos (27UL) /*!< Position of REGION27 field. */
+#define BPROT_CONFIG0_REGION27_Msk (0x1UL << BPROT_CONFIG0_REGION27_Pos) /*!< Bit mask of REGION27 field. */
+#define BPROT_CONFIG0_REGION27_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION27_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 26 : Enable protection for region 26. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION26_Pos (26UL) /*!< Position of REGION26 field. */
+#define BPROT_CONFIG0_REGION26_Msk (0x1UL << BPROT_CONFIG0_REGION26_Pos) /*!< Bit mask of REGION26 field. */
+#define BPROT_CONFIG0_REGION26_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION26_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 25 : Enable protection for region 25. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION25_Pos (25UL) /*!< Position of REGION25 field. */
+#define BPROT_CONFIG0_REGION25_Msk (0x1UL << BPROT_CONFIG0_REGION25_Pos) /*!< Bit mask of REGION25 field. */
+#define BPROT_CONFIG0_REGION25_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION25_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 24 : Enable protection for region 24. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION24_Pos (24UL) /*!< Position of REGION24 field. */
+#define BPROT_CONFIG0_REGION24_Msk (0x1UL << BPROT_CONFIG0_REGION24_Pos) /*!< Bit mask of REGION24 field. */
+#define BPROT_CONFIG0_REGION24_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION24_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 23 : Enable protection for region 23. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION23_Pos (23UL) /*!< Position of REGION23 field. */
+#define BPROT_CONFIG0_REGION23_Msk (0x1UL << BPROT_CONFIG0_REGION23_Pos) /*!< Bit mask of REGION23 field. */
+#define BPROT_CONFIG0_REGION23_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION23_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 22 : Enable protection for region 22. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION22_Pos (22UL) /*!< Position of REGION22 field. */
+#define BPROT_CONFIG0_REGION22_Msk (0x1UL << BPROT_CONFIG0_REGION22_Pos) /*!< Bit mask of REGION22 field. */
+#define BPROT_CONFIG0_REGION22_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION22_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 21 : Enable protection for region 21. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION21_Pos (21UL) /*!< Position of REGION21 field. */
+#define BPROT_CONFIG0_REGION21_Msk (0x1UL << BPROT_CONFIG0_REGION21_Pos) /*!< Bit mask of REGION21 field. */
+#define BPROT_CONFIG0_REGION21_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION21_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 20 : Enable protection for region 20. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION20_Pos (20UL) /*!< Position of REGION20 field. */
+#define BPROT_CONFIG0_REGION20_Msk (0x1UL << BPROT_CONFIG0_REGION20_Pos) /*!< Bit mask of REGION20 field. */
+#define BPROT_CONFIG0_REGION20_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION20_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 19 : Enable protection for region 19. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION19_Pos (19UL) /*!< Position of REGION19 field. */
+#define BPROT_CONFIG0_REGION19_Msk (0x1UL << BPROT_CONFIG0_REGION19_Pos) /*!< Bit mask of REGION19 field. */
+#define BPROT_CONFIG0_REGION19_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION19_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 18 : Enable protection for region 18. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION18_Pos (18UL) /*!< Position of REGION18 field. */
+#define BPROT_CONFIG0_REGION18_Msk (0x1UL << BPROT_CONFIG0_REGION18_Pos) /*!< Bit mask of REGION18 field. */
+#define BPROT_CONFIG0_REGION18_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION18_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 17 : Enable protection for region 17. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION17_Pos (17UL) /*!< Position of REGION17 field. */
+#define BPROT_CONFIG0_REGION17_Msk (0x1UL << BPROT_CONFIG0_REGION17_Pos) /*!< Bit mask of REGION17 field. */
+#define BPROT_CONFIG0_REGION17_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION17_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 16 : Enable protection for region 16. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION16_Pos (16UL) /*!< Position of REGION16 field. */
+#define BPROT_CONFIG0_REGION16_Msk (0x1UL << BPROT_CONFIG0_REGION16_Pos) /*!< Bit mask of REGION16 field. */
+#define BPROT_CONFIG0_REGION16_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION16_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 15 : Enable protection for region 15. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION15_Pos (15UL) /*!< Position of REGION15 field. */
+#define BPROT_CONFIG0_REGION15_Msk (0x1UL << BPROT_CONFIG0_REGION15_Pos) /*!< Bit mask of REGION15 field. */
+#define BPROT_CONFIG0_REGION15_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION15_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 14 : Enable protection for region 14. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION14_Pos (14UL) /*!< Position of REGION14 field. */
+#define BPROT_CONFIG0_REGION14_Msk (0x1UL << BPROT_CONFIG0_REGION14_Pos) /*!< Bit mask of REGION14 field. */
+#define BPROT_CONFIG0_REGION14_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION14_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 13 : Enable protection for region 13. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION13_Pos (13UL) /*!< Position of REGION13 field. */
+#define BPROT_CONFIG0_REGION13_Msk (0x1UL << BPROT_CONFIG0_REGION13_Pos) /*!< Bit mask of REGION13 field. */
+#define BPROT_CONFIG0_REGION13_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION13_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 12 : Enable protection for region 12. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION12_Pos (12UL) /*!< Position of REGION12 field. */
+#define BPROT_CONFIG0_REGION12_Msk (0x1UL << BPROT_CONFIG0_REGION12_Pos) /*!< Bit mask of REGION12 field. */
+#define BPROT_CONFIG0_REGION12_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION12_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 11 : Enable protection for region 11. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION11_Pos (11UL) /*!< Position of REGION11 field. */
+#define BPROT_CONFIG0_REGION11_Msk (0x1UL << BPROT_CONFIG0_REGION11_Pos) /*!< Bit mask of REGION11 field. */
+#define BPROT_CONFIG0_REGION11_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION11_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 10 : Enable protection for region 10. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION10_Pos (10UL) /*!< Position of REGION10 field. */
+#define BPROT_CONFIG0_REGION10_Msk (0x1UL << BPROT_CONFIG0_REGION10_Pos) /*!< Bit mask of REGION10 field. */
+#define BPROT_CONFIG0_REGION10_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION10_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 9 : Enable protection for region 9. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION9_Pos (9UL) /*!< Position of REGION9 field. */
+#define BPROT_CONFIG0_REGION9_Msk (0x1UL << BPROT_CONFIG0_REGION9_Pos) /*!< Bit mask of REGION9 field. */
+#define BPROT_CONFIG0_REGION9_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION9_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 8 : Enable protection for region 8. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION8_Pos (8UL) /*!< Position of REGION8 field. */
+#define BPROT_CONFIG0_REGION8_Msk (0x1UL << BPROT_CONFIG0_REGION8_Pos) /*!< Bit mask of REGION8 field. */
+#define BPROT_CONFIG0_REGION8_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION8_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 7 : Enable protection for region 7. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION7_Pos (7UL) /*!< Position of REGION7 field. */
+#define BPROT_CONFIG0_REGION7_Msk (0x1UL << BPROT_CONFIG0_REGION7_Pos) /*!< Bit mask of REGION7 field. */
+#define BPROT_CONFIG0_REGION7_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION7_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 6 : Enable protection for region 6. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION6_Pos (6UL) /*!< Position of REGION6 field. */
+#define BPROT_CONFIG0_REGION6_Msk (0x1UL << BPROT_CONFIG0_REGION6_Pos) /*!< Bit mask of REGION6 field. */
+#define BPROT_CONFIG0_REGION6_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION6_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 5 : Enable protection for region 5. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION5_Pos (5UL) /*!< Position of REGION5 field. */
+#define BPROT_CONFIG0_REGION5_Msk (0x1UL << BPROT_CONFIG0_REGION5_Pos) /*!< Bit mask of REGION5 field. */
+#define BPROT_CONFIG0_REGION5_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION5_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 4 : Enable protection for region 4. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION4_Pos (4UL) /*!< Position of REGION4 field. */
+#define BPROT_CONFIG0_REGION4_Msk (0x1UL << BPROT_CONFIG0_REGION4_Pos) /*!< Bit mask of REGION4 field. */
+#define BPROT_CONFIG0_REGION4_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION4_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 3 : Enable protection for region 3. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION3_Pos (3UL) /*!< Position of REGION3 field. */
+#define BPROT_CONFIG0_REGION3_Msk (0x1UL << BPROT_CONFIG0_REGION3_Pos) /*!< Bit mask of REGION3 field. */
+#define BPROT_CONFIG0_REGION3_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION3_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 2 : Enable protection for region 2. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION2_Pos (2UL) /*!< Position of REGION2 field. */
+#define BPROT_CONFIG0_REGION2_Msk (0x1UL << BPROT_CONFIG0_REGION2_Pos) /*!< Bit mask of REGION2 field. */
+#define BPROT_CONFIG0_REGION2_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION2_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 1 : Enable protection for region 1. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION1_Pos (1UL) /*!< Position of REGION1 field. */
+#define BPROT_CONFIG0_REGION1_Msk (0x1UL << BPROT_CONFIG0_REGION1_Pos) /*!< Bit mask of REGION1 field. */
+#define BPROT_CONFIG0_REGION1_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION1_Enabled (1UL) /*!< Protection enable */
+
+/* Bit 0 : Enable protection for region 0. Write '0' has no effect. */
+#define BPROT_CONFIG0_REGION0_Pos (0UL) /*!< Position of REGION0 field. */
+#define BPROT_CONFIG0_REGION0_Msk (0x1UL << BPROT_CONFIG0_REGION0_Pos) /*!< Bit mask of REGION0 field. */
+#define BPROT_CONFIG0_REGION0_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG0_REGION0_Enabled (1UL) /*!< Protection enable */
+
+/* Register: BPROT_CONFIG1 */
+/* Description: Block protect configuration register 1 */
+
+/* Bit 31 : Enable protection for region 63. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION63_Pos (31UL) /*!< Position of REGION63 field. */
+#define BPROT_CONFIG1_REGION63_Msk (0x1UL << BPROT_CONFIG1_REGION63_Pos) /*!< Bit mask of REGION63 field. */
+#define BPROT_CONFIG1_REGION63_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION63_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 30 : Enable protection for region 62. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION62_Pos (30UL) /*!< Position of REGION62 field. */
+#define BPROT_CONFIG1_REGION62_Msk (0x1UL << BPROT_CONFIG1_REGION62_Pos) /*!< Bit mask of REGION62 field. */
+#define BPROT_CONFIG1_REGION62_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION62_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 29 : Enable protection for region 61. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION61_Pos (29UL) /*!< Position of REGION61 field. */
+#define BPROT_CONFIG1_REGION61_Msk (0x1UL << BPROT_CONFIG1_REGION61_Pos) /*!< Bit mask of REGION61 field. */
+#define BPROT_CONFIG1_REGION61_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION61_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 28 : Enable protection for region 60. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION60_Pos (28UL) /*!< Position of REGION60 field. */
+#define BPROT_CONFIG1_REGION60_Msk (0x1UL << BPROT_CONFIG1_REGION60_Pos) /*!< Bit mask of REGION60 field. */
+#define BPROT_CONFIG1_REGION60_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION60_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 27 : Enable protection for region 59. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION59_Pos (27UL) /*!< Position of REGION59 field. */
+#define BPROT_CONFIG1_REGION59_Msk (0x1UL << BPROT_CONFIG1_REGION59_Pos) /*!< Bit mask of REGION59 field. */
+#define BPROT_CONFIG1_REGION59_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION59_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 26 : Enable protection for region 58. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION58_Pos (26UL) /*!< Position of REGION58 field. */
+#define BPROT_CONFIG1_REGION58_Msk (0x1UL << BPROT_CONFIG1_REGION58_Pos) /*!< Bit mask of REGION58 field. */
+#define BPROT_CONFIG1_REGION58_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION58_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 25 : Enable protection for region 57. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION57_Pos (25UL) /*!< Position of REGION57 field. */
+#define BPROT_CONFIG1_REGION57_Msk (0x1UL << BPROT_CONFIG1_REGION57_Pos) /*!< Bit mask of REGION57 field. */
+#define BPROT_CONFIG1_REGION57_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION57_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 24 : Enable protection for region 56. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION56_Pos (24UL) /*!< Position of REGION56 field. */
+#define BPROT_CONFIG1_REGION56_Msk (0x1UL << BPROT_CONFIG1_REGION56_Pos) /*!< Bit mask of REGION56 field. */
+#define BPROT_CONFIG1_REGION56_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION56_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 23 : Enable protection for region 55. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION55_Pos (23UL) /*!< Position of REGION55 field. */
+#define BPROT_CONFIG1_REGION55_Msk (0x1UL << BPROT_CONFIG1_REGION55_Pos) /*!< Bit mask of REGION55 field. */
+#define BPROT_CONFIG1_REGION55_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION55_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 22 : Enable protection for region 54. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION54_Pos (22UL) /*!< Position of REGION54 field. */
+#define BPROT_CONFIG1_REGION54_Msk (0x1UL << BPROT_CONFIG1_REGION54_Pos) /*!< Bit mask of REGION54 field. */
+#define BPROT_CONFIG1_REGION54_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION54_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 21 : Enable protection for region 53. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION53_Pos (21UL) /*!< Position of REGION53 field. */
+#define BPROT_CONFIG1_REGION53_Msk (0x1UL << BPROT_CONFIG1_REGION53_Pos) /*!< Bit mask of REGION53 field. */
+#define BPROT_CONFIG1_REGION53_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION53_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 20 : Enable protection for region 52. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION52_Pos (20UL) /*!< Position of REGION52 field. */
+#define BPROT_CONFIG1_REGION52_Msk (0x1UL << BPROT_CONFIG1_REGION52_Pos) /*!< Bit mask of REGION52 field. */
+#define BPROT_CONFIG1_REGION52_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION52_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 19 : Enable protection for region 51. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION51_Pos (19UL) /*!< Position of REGION51 field. */
+#define BPROT_CONFIG1_REGION51_Msk (0x1UL << BPROT_CONFIG1_REGION51_Pos) /*!< Bit mask of REGION51 field. */
+#define BPROT_CONFIG1_REGION51_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION51_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 18 : Enable protection for region 50. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION50_Pos (18UL) /*!< Position of REGION50 field. */
+#define BPROT_CONFIG1_REGION50_Msk (0x1UL << BPROT_CONFIG1_REGION50_Pos) /*!< Bit mask of REGION50 field. */
+#define BPROT_CONFIG1_REGION50_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION50_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 17 : Enable protection for region 49. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION49_Pos (17UL) /*!< Position of REGION49 field. */
+#define BPROT_CONFIG1_REGION49_Msk (0x1UL << BPROT_CONFIG1_REGION49_Pos) /*!< Bit mask of REGION49 field. */
+#define BPROT_CONFIG1_REGION49_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION49_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 16 : Enable protection for region 48. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION48_Pos (16UL) /*!< Position of REGION48 field. */
+#define BPROT_CONFIG1_REGION48_Msk (0x1UL << BPROT_CONFIG1_REGION48_Pos) /*!< Bit mask of REGION48 field. */
+#define BPROT_CONFIG1_REGION48_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION48_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 15 : Enable protection for region 47. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION47_Pos (15UL) /*!< Position of REGION47 field. */
+#define BPROT_CONFIG1_REGION47_Msk (0x1UL << BPROT_CONFIG1_REGION47_Pos) /*!< Bit mask of REGION47 field. */
+#define BPROT_CONFIG1_REGION47_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION47_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 14 : Enable protection for region 46. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION46_Pos (14UL) /*!< Position of REGION46 field. */
+#define BPROT_CONFIG1_REGION46_Msk (0x1UL << BPROT_CONFIG1_REGION46_Pos) /*!< Bit mask of REGION46 field. */
+#define BPROT_CONFIG1_REGION46_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION46_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 13 : Enable protection for region 45. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION45_Pos (13UL) /*!< Position of REGION45 field. */
+#define BPROT_CONFIG1_REGION45_Msk (0x1UL << BPROT_CONFIG1_REGION45_Pos) /*!< Bit mask of REGION45 field. */
+#define BPROT_CONFIG1_REGION45_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION45_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 12 : Enable protection for region 44. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION44_Pos (12UL) /*!< Position of REGION44 field. */
+#define BPROT_CONFIG1_REGION44_Msk (0x1UL << BPROT_CONFIG1_REGION44_Pos) /*!< Bit mask of REGION44 field. */
+#define BPROT_CONFIG1_REGION44_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION44_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 11 : Enable protection for region 43. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION43_Pos (11UL) /*!< Position of REGION43 field. */
+#define BPROT_CONFIG1_REGION43_Msk (0x1UL << BPROT_CONFIG1_REGION43_Pos) /*!< Bit mask of REGION43 field. */
+#define BPROT_CONFIG1_REGION43_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION43_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 10 : Enable protection for region 42. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION42_Pos (10UL) /*!< Position of REGION42 field. */
+#define BPROT_CONFIG1_REGION42_Msk (0x1UL << BPROT_CONFIG1_REGION42_Pos) /*!< Bit mask of REGION42 field. */
+#define BPROT_CONFIG1_REGION42_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION42_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 9 : Enable protection for region 41. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION41_Pos (9UL) /*!< Position of REGION41 field. */
+#define BPROT_CONFIG1_REGION41_Msk (0x1UL << BPROT_CONFIG1_REGION41_Pos) /*!< Bit mask of REGION41 field. */
+#define BPROT_CONFIG1_REGION41_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION41_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 8 : Enable protection for region 40. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION40_Pos (8UL) /*!< Position of REGION40 field. */
+#define BPROT_CONFIG1_REGION40_Msk (0x1UL << BPROT_CONFIG1_REGION40_Pos) /*!< Bit mask of REGION40 field. */
+#define BPROT_CONFIG1_REGION40_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION40_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 7 : Enable protection for region 39. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION39_Pos (7UL) /*!< Position of REGION39 field. */
+#define BPROT_CONFIG1_REGION39_Msk (0x1UL << BPROT_CONFIG1_REGION39_Pos) /*!< Bit mask of REGION39 field. */
+#define BPROT_CONFIG1_REGION39_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION39_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 6 : Enable protection for region 38. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION38_Pos (6UL) /*!< Position of REGION38 field. */
+#define BPROT_CONFIG1_REGION38_Msk (0x1UL << BPROT_CONFIG1_REGION38_Pos) /*!< Bit mask of REGION38 field. */
+#define BPROT_CONFIG1_REGION38_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION38_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 5 : Enable protection for region 37. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION37_Pos (5UL) /*!< Position of REGION37 field. */
+#define BPROT_CONFIG1_REGION37_Msk (0x1UL << BPROT_CONFIG1_REGION37_Pos) /*!< Bit mask of REGION37 field. */
+#define BPROT_CONFIG1_REGION37_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION37_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 4 : Enable protection for region 36. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION36_Pos (4UL) /*!< Position of REGION36 field. */
+#define BPROT_CONFIG1_REGION36_Msk (0x1UL << BPROT_CONFIG1_REGION36_Pos) /*!< Bit mask of REGION36 field. */
+#define BPROT_CONFIG1_REGION36_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION36_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 3 : Enable protection for region 35. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION35_Pos (3UL) /*!< Position of REGION35 field. */
+#define BPROT_CONFIG1_REGION35_Msk (0x1UL << BPROT_CONFIG1_REGION35_Pos) /*!< Bit mask of REGION35 field. */
+#define BPROT_CONFIG1_REGION35_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION35_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 2 : Enable protection for region 34. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION34_Pos (2UL) /*!< Position of REGION34 field. */
+#define BPROT_CONFIG1_REGION34_Msk (0x1UL << BPROT_CONFIG1_REGION34_Pos) /*!< Bit mask of REGION34 field. */
+#define BPROT_CONFIG1_REGION34_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION34_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 1 : Enable protection for region 33. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION33_Pos (1UL) /*!< Position of REGION33 field. */
+#define BPROT_CONFIG1_REGION33_Msk (0x1UL << BPROT_CONFIG1_REGION33_Pos) /*!< Bit mask of REGION33 field. */
+#define BPROT_CONFIG1_REGION33_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION33_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 0 : Enable protection for region 32. Write '0' has no effect. */
+#define BPROT_CONFIG1_REGION32_Pos (0UL) /*!< Position of REGION32 field. */
+#define BPROT_CONFIG1_REGION32_Msk (0x1UL << BPROT_CONFIG1_REGION32_Pos) /*!< Bit mask of REGION32 field. */
+#define BPROT_CONFIG1_REGION32_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG1_REGION32_Enabled (1UL) /*!< Protection enabled */
+
+/* Register: BPROT_DISABLEINDEBUG */
+/* Description: Disable protection mechanism in debug interface mode */
+
+/* Bit 0 : Disable the protection mechanism for NVM regions while in debug interface mode. This register will only disable the protection mechanism if the device is in debug interface mode. */
+#define BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Pos (0UL) /*!< Position of DISABLEINDEBUG field. */
+#define BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Msk (0x1UL << BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Pos) /*!< Bit mask of DISABLEINDEBUG field. */
+#define BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Enabled (0UL) /*!< Enable in debug */
+#define BPROT_DISABLEINDEBUG_DISABLEINDEBUG_Disabled (1UL) /*!< Disable in debug */
+
+/* Register: BPROT_CONFIG2 */
+/* Description: Block protect configuration register 2 */
+
+/* Bit 31 : Enable protection for region 95. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION95_Pos (31UL) /*!< Position of REGION95 field. */
+#define BPROT_CONFIG2_REGION95_Msk (0x1UL << BPROT_CONFIG2_REGION95_Pos) /*!< Bit mask of REGION95 field. */
+#define BPROT_CONFIG2_REGION95_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION95_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 30 : Enable protection for region 94. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION94_Pos (30UL) /*!< Position of REGION94 field. */
+#define BPROT_CONFIG2_REGION94_Msk (0x1UL << BPROT_CONFIG2_REGION94_Pos) /*!< Bit mask of REGION94 field. */
+#define BPROT_CONFIG2_REGION94_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION94_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 29 : Enable protection for region 93. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION93_Pos (29UL) /*!< Position of REGION93 field. */
+#define BPROT_CONFIG2_REGION93_Msk (0x1UL << BPROT_CONFIG2_REGION93_Pos) /*!< Bit mask of REGION93 field. */
+#define BPROT_CONFIG2_REGION93_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION93_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 28 : Enable protection for region 92. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION92_Pos (28UL) /*!< Position of REGION92 field. */
+#define BPROT_CONFIG2_REGION92_Msk (0x1UL << BPROT_CONFIG2_REGION92_Pos) /*!< Bit mask of REGION92 field. */
+#define BPROT_CONFIG2_REGION92_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION92_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 27 : Enable protection for region 91. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION91_Pos (27UL) /*!< Position of REGION91 field. */
+#define BPROT_CONFIG2_REGION91_Msk (0x1UL << BPROT_CONFIG2_REGION91_Pos) /*!< Bit mask of REGION91 field. */
+#define BPROT_CONFIG2_REGION91_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION91_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 26 : Enable protection for region 90. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION90_Pos (26UL) /*!< Position of REGION90 field. */
+#define BPROT_CONFIG2_REGION90_Msk (0x1UL << BPROT_CONFIG2_REGION90_Pos) /*!< Bit mask of REGION90 field. */
+#define BPROT_CONFIG2_REGION90_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION90_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 25 : Enable protection for region 89. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION89_Pos (25UL) /*!< Position of REGION89 field. */
+#define BPROT_CONFIG2_REGION89_Msk (0x1UL << BPROT_CONFIG2_REGION89_Pos) /*!< Bit mask of REGION89 field. */
+#define BPROT_CONFIG2_REGION89_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION89_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 24 : Enable protection for region 88. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION88_Pos (24UL) /*!< Position of REGION88 field. */
+#define BPROT_CONFIG2_REGION88_Msk (0x1UL << BPROT_CONFIG2_REGION88_Pos) /*!< Bit mask of REGION88 field. */
+#define BPROT_CONFIG2_REGION88_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION88_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 23 : Enable protection for region 87. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION87_Pos (23UL) /*!< Position of REGION87 field. */
+#define BPROT_CONFIG2_REGION87_Msk (0x1UL << BPROT_CONFIG2_REGION87_Pos) /*!< Bit mask of REGION87 field. */
+#define BPROT_CONFIG2_REGION87_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION87_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 22 : Enable protection for region 86. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION86_Pos (22UL) /*!< Position of REGION86 field. */
+#define BPROT_CONFIG2_REGION86_Msk (0x1UL << BPROT_CONFIG2_REGION86_Pos) /*!< Bit mask of REGION86 field. */
+#define BPROT_CONFIG2_REGION86_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION86_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 21 : Enable protection for region 85. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION85_Pos (21UL) /*!< Position of REGION85 field. */
+#define BPROT_CONFIG2_REGION85_Msk (0x1UL << BPROT_CONFIG2_REGION85_Pos) /*!< Bit mask of REGION85 field. */
+#define BPROT_CONFIG2_REGION85_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION85_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 20 : Enable protection for region 84. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION84_Pos (20UL) /*!< Position of REGION84 field. */
+#define BPROT_CONFIG2_REGION84_Msk (0x1UL << BPROT_CONFIG2_REGION84_Pos) /*!< Bit mask of REGION84 field. */
+#define BPROT_CONFIG2_REGION84_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION84_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 19 : Enable protection for region 83. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION83_Pos (19UL) /*!< Position of REGION83 field. */
+#define BPROT_CONFIG2_REGION83_Msk (0x1UL << BPROT_CONFIG2_REGION83_Pos) /*!< Bit mask of REGION83 field. */
+#define BPROT_CONFIG2_REGION83_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION83_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 18 : Enable protection for region 82. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION82_Pos (18UL) /*!< Position of REGION82 field. */
+#define BPROT_CONFIG2_REGION82_Msk (0x1UL << BPROT_CONFIG2_REGION82_Pos) /*!< Bit mask of REGION82 field. */
+#define BPROT_CONFIG2_REGION82_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION82_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 17 : Enable protection for region 81. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION81_Pos (17UL) /*!< Position of REGION81 field. */
+#define BPROT_CONFIG2_REGION81_Msk (0x1UL << BPROT_CONFIG2_REGION81_Pos) /*!< Bit mask of REGION81 field. */
+#define BPROT_CONFIG2_REGION81_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION81_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 16 : Enable protection for region 80. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION80_Pos (16UL) /*!< Position of REGION80 field. */
+#define BPROT_CONFIG2_REGION80_Msk (0x1UL << BPROT_CONFIG2_REGION80_Pos) /*!< Bit mask of REGION80 field. */
+#define BPROT_CONFIG2_REGION80_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION80_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 15 : Enable protection for region 79. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION79_Pos (15UL) /*!< Position of REGION79 field. */
+#define BPROT_CONFIG2_REGION79_Msk (0x1UL << BPROT_CONFIG2_REGION79_Pos) /*!< Bit mask of REGION79 field. */
+#define BPROT_CONFIG2_REGION79_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION79_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 14 : Enable protection for region 78. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION78_Pos (14UL) /*!< Position of REGION78 field. */
+#define BPROT_CONFIG2_REGION78_Msk (0x1UL << BPROT_CONFIG2_REGION78_Pos) /*!< Bit mask of REGION78 field. */
+#define BPROT_CONFIG2_REGION78_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION78_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 13 : Enable protection for region 77. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION77_Pos (13UL) /*!< Position of REGION77 field. */
+#define BPROT_CONFIG2_REGION77_Msk (0x1UL << BPROT_CONFIG2_REGION77_Pos) /*!< Bit mask of REGION77 field. */
+#define BPROT_CONFIG2_REGION77_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION77_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 12 : Enable protection for region 76. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION76_Pos (12UL) /*!< Position of REGION76 field. */
+#define BPROT_CONFIG2_REGION76_Msk (0x1UL << BPROT_CONFIG2_REGION76_Pos) /*!< Bit mask of REGION76 field. */
+#define BPROT_CONFIG2_REGION76_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION76_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 11 : Enable protection for region 75. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION75_Pos (11UL) /*!< Position of REGION75 field. */
+#define BPROT_CONFIG2_REGION75_Msk (0x1UL << BPROT_CONFIG2_REGION75_Pos) /*!< Bit mask of REGION75 field. */
+#define BPROT_CONFIG2_REGION75_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION75_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 10 : Enable protection for region 74. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION74_Pos (10UL) /*!< Position of REGION74 field. */
+#define BPROT_CONFIG2_REGION74_Msk (0x1UL << BPROT_CONFIG2_REGION74_Pos) /*!< Bit mask of REGION74 field. */
+#define BPROT_CONFIG2_REGION74_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION74_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 9 : Enable protection for region 73. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION73_Pos (9UL) /*!< Position of REGION73 field. */
+#define BPROT_CONFIG2_REGION73_Msk (0x1UL << BPROT_CONFIG2_REGION73_Pos) /*!< Bit mask of REGION73 field. */
+#define BPROT_CONFIG2_REGION73_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION73_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 8 : Enable protection for region 72. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION72_Pos (8UL) /*!< Position of REGION72 field. */
+#define BPROT_CONFIG2_REGION72_Msk (0x1UL << BPROT_CONFIG2_REGION72_Pos) /*!< Bit mask of REGION72 field. */
+#define BPROT_CONFIG2_REGION72_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION72_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 7 : Enable protection for region 71. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION71_Pos (7UL) /*!< Position of REGION71 field. */
+#define BPROT_CONFIG2_REGION71_Msk (0x1UL << BPROT_CONFIG2_REGION71_Pos) /*!< Bit mask of REGION71 field. */
+#define BPROT_CONFIG2_REGION71_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION71_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 6 : Enable protection for region 70. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION70_Pos (6UL) /*!< Position of REGION70 field. */
+#define BPROT_CONFIG2_REGION70_Msk (0x1UL << BPROT_CONFIG2_REGION70_Pos) /*!< Bit mask of REGION70 field. */
+#define BPROT_CONFIG2_REGION70_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION70_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 5 : Enable protection for region 69. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION69_Pos (5UL) /*!< Position of REGION69 field. */
+#define BPROT_CONFIG2_REGION69_Msk (0x1UL << BPROT_CONFIG2_REGION69_Pos) /*!< Bit mask of REGION69 field. */
+#define BPROT_CONFIG2_REGION69_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION69_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 4 : Enable protection for region 68. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION68_Pos (4UL) /*!< Position of REGION68 field. */
+#define BPROT_CONFIG2_REGION68_Msk (0x1UL << BPROT_CONFIG2_REGION68_Pos) /*!< Bit mask of REGION68 field. */
+#define BPROT_CONFIG2_REGION68_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION68_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 3 : Enable protection for region 67. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION67_Pos (3UL) /*!< Position of REGION67 field. */
+#define BPROT_CONFIG2_REGION67_Msk (0x1UL << BPROT_CONFIG2_REGION67_Pos) /*!< Bit mask of REGION67 field. */
+#define BPROT_CONFIG2_REGION67_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION67_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 2 : Enable protection for region 66. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION66_Pos (2UL) /*!< Position of REGION66 field. */
+#define BPROT_CONFIG2_REGION66_Msk (0x1UL << BPROT_CONFIG2_REGION66_Pos) /*!< Bit mask of REGION66 field. */
+#define BPROT_CONFIG2_REGION66_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION66_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 1 : Enable protection for region 65. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION65_Pos (1UL) /*!< Position of REGION65 field. */
+#define BPROT_CONFIG2_REGION65_Msk (0x1UL << BPROT_CONFIG2_REGION65_Pos) /*!< Bit mask of REGION65 field. */
+#define BPROT_CONFIG2_REGION65_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION65_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 0 : Enable protection for region 64. Write '0' has no effect. */
+#define BPROT_CONFIG2_REGION64_Pos (0UL) /*!< Position of REGION64 field. */
+#define BPROT_CONFIG2_REGION64_Msk (0x1UL << BPROT_CONFIG2_REGION64_Pos) /*!< Bit mask of REGION64 field. */
+#define BPROT_CONFIG2_REGION64_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG2_REGION64_Enabled (1UL) /*!< Protection enabled */
+
+/* Register: BPROT_CONFIG3 */
+/* Description: Block protect configuration register 3 */
+
+/* Bit 31 : Enable protection for region 127. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION127_Pos (31UL) /*!< Position of REGION127 field. */
+#define BPROT_CONFIG3_REGION127_Msk (0x1UL << BPROT_CONFIG3_REGION127_Pos) /*!< Bit mask of REGION127 field. */
+#define BPROT_CONFIG3_REGION127_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION127_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 30 : Enable protection for region 126. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION126_Pos (30UL) /*!< Position of REGION126 field. */
+#define BPROT_CONFIG3_REGION126_Msk (0x1UL << BPROT_CONFIG3_REGION126_Pos) /*!< Bit mask of REGION126 field. */
+#define BPROT_CONFIG3_REGION126_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION126_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 29 : Enable protection for region 125. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION125_Pos (29UL) /*!< Position of REGION125 field. */
+#define BPROT_CONFIG3_REGION125_Msk (0x1UL << BPROT_CONFIG3_REGION125_Pos) /*!< Bit mask of REGION125 field. */
+#define BPROT_CONFIG3_REGION125_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION125_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 28 : Enable protection for region 124. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION124_Pos (28UL) /*!< Position of REGION124 field. */
+#define BPROT_CONFIG3_REGION124_Msk (0x1UL << BPROT_CONFIG3_REGION124_Pos) /*!< Bit mask of REGION124 field. */
+#define BPROT_CONFIG3_REGION124_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION124_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 27 : Enable protection for region 123. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION123_Pos (27UL) /*!< Position of REGION123 field. */
+#define BPROT_CONFIG3_REGION123_Msk (0x1UL << BPROT_CONFIG3_REGION123_Pos) /*!< Bit mask of REGION123 field. */
+#define BPROT_CONFIG3_REGION123_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION123_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 26 : Enable protection for region 122. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION122_Pos (26UL) /*!< Position of REGION122 field. */
+#define BPROT_CONFIG3_REGION122_Msk (0x1UL << BPROT_CONFIG3_REGION122_Pos) /*!< Bit mask of REGION122 field. */
+#define BPROT_CONFIG3_REGION122_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION122_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 25 : Enable protection for region 121. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION121_Pos (25UL) /*!< Position of REGION121 field. */
+#define BPROT_CONFIG3_REGION121_Msk (0x1UL << BPROT_CONFIG3_REGION121_Pos) /*!< Bit mask of REGION121 field. */
+#define BPROT_CONFIG3_REGION121_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION121_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 24 : Enable protection for region 120. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION120_Pos (24UL) /*!< Position of REGION120 field. */
+#define BPROT_CONFIG3_REGION120_Msk (0x1UL << BPROT_CONFIG3_REGION120_Pos) /*!< Bit mask of REGION120 field. */
+#define BPROT_CONFIG3_REGION120_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION120_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 23 : Enable protection for region 119. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION119_Pos (23UL) /*!< Position of REGION119 field. */
+#define BPROT_CONFIG3_REGION119_Msk (0x1UL << BPROT_CONFIG3_REGION119_Pos) /*!< Bit mask of REGION119 field. */
+#define BPROT_CONFIG3_REGION119_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION119_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 22 : Enable protection for region 118. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION118_Pos (22UL) /*!< Position of REGION118 field. */
+#define BPROT_CONFIG3_REGION118_Msk (0x1UL << BPROT_CONFIG3_REGION118_Pos) /*!< Bit mask of REGION118 field. */
+#define BPROT_CONFIG3_REGION118_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION118_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 21 : Enable protection for region 117. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION117_Pos (21UL) /*!< Position of REGION117 field. */
+#define BPROT_CONFIG3_REGION117_Msk (0x1UL << BPROT_CONFIG3_REGION117_Pos) /*!< Bit mask of REGION117 field. */
+#define BPROT_CONFIG3_REGION117_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION117_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 20 : Enable protection for region 116. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION116_Pos (20UL) /*!< Position of REGION116 field. */
+#define BPROT_CONFIG3_REGION116_Msk (0x1UL << BPROT_CONFIG3_REGION116_Pos) /*!< Bit mask of REGION116 field. */
+#define BPROT_CONFIG3_REGION116_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION116_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 19 : Enable protection for region 115. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION115_Pos (19UL) /*!< Position of REGION115 field. */
+#define BPROT_CONFIG3_REGION115_Msk (0x1UL << BPROT_CONFIG3_REGION115_Pos) /*!< Bit mask of REGION115 field. */
+#define BPROT_CONFIG3_REGION115_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION115_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 18 : Enable protection for region 114. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION114_Pos (18UL) /*!< Position of REGION114 field. */
+#define BPROT_CONFIG3_REGION114_Msk (0x1UL << BPROT_CONFIG3_REGION114_Pos) /*!< Bit mask of REGION114 field. */
+#define BPROT_CONFIG3_REGION114_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION114_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 17 : Enable protection for region 113. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION113_Pos (17UL) /*!< Position of REGION113 field. */
+#define BPROT_CONFIG3_REGION113_Msk (0x1UL << BPROT_CONFIG3_REGION113_Pos) /*!< Bit mask of REGION113 field. */
+#define BPROT_CONFIG3_REGION113_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION113_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 16 : Enable protection for region 112. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION112_Pos (16UL) /*!< Position of REGION112 field. */
+#define BPROT_CONFIG3_REGION112_Msk (0x1UL << BPROT_CONFIG3_REGION112_Pos) /*!< Bit mask of REGION112 field. */
+#define BPROT_CONFIG3_REGION112_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION112_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 15 : Enable protection for region 111. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION111_Pos (15UL) /*!< Position of REGION111 field. */
+#define BPROT_CONFIG3_REGION111_Msk (0x1UL << BPROT_CONFIG3_REGION111_Pos) /*!< Bit mask of REGION111 field. */
+#define BPROT_CONFIG3_REGION111_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION111_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 14 : Enable protection for region 110. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION110_Pos (14UL) /*!< Position of REGION110 field. */
+#define BPROT_CONFIG3_REGION110_Msk (0x1UL << BPROT_CONFIG3_REGION110_Pos) /*!< Bit mask of REGION110 field. */
+#define BPROT_CONFIG3_REGION110_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION110_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 13 : Enable protection for region 109. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION109_Pos (13UL) /*!< Position of REGION109 field. */
+#define BPROT_CONFIG3_REGION109_Msk (0x1UL << BPROT_CONFIG3_REGION109_Pos) /*!< Bit mask of REGION109 field. */
+#define BPROT_CONFIG3_REGION109_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION109_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 12 : Enable protection for region 108. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION108_Pos (12UL) /*!< Position of REGION108 field. */
+#define BPROT_CONFIG3_REGION108_Msk (0x1UL << BPROT_CONFIG3_REGION108_Pos) /*!< Bit mask of REGION108 field. */
+#define BPROT_CONFIG3_REGION108_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION108_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 11 : Enable protection for region 107. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION107_Pos (11UL) /*!< Position of REGION107 field. */
+#define BPROT_CONFIG3_REGION107_Msk (0x1UL << BPROT_CONFIG3_REGION107_Pos) /*!< Bit mask of REGION107 field. */
+#define BPROT_CONFIG3_REGION107_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION107_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 10 : Enable protection for region 106. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION106_Pos (10UL) /*!< Position of REGION106 field. */
+#define BPROT_CONFIG3_REGION106_Msk (0x1UL << BPROT_CONFIG3_REGION106_Pos) /*!< Bit mask of REGION106 field. */
+#define BPROT_CONFIG3_REGION106_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION106_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 9 : Enable protection for region 105. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION105_Pos (9UL) /*!< Position of REGION105 field. */
+#define BPROT_CONFIG3_REGION105_Msk (0x1UL << BPROT_CONFIG3_REGION105_Pos) /*!< Bit mask of REGION105 field. */
+#define BPROT_CONFIG3_REGION105_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION105_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 8 : Enable protection for region 104. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION104_Pos (8UL) /*!< Position of REGION104 field. */
+#define BPROT_CONFIG3_REGION104_Msk (0x1UL << BPROT_CONFIG3_REGION104_Pos) /*!< Bit mask of REGION104 field. */
+#define BPROT_CONFIG3_REGION104_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION104_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 7 : Enable protection for region 103. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION103_Pos (7UL) /*!< Position of REGION103 field. */
+#define BPROT_CONFIG3_REGION103_Msk (0x1UL << BPROT_CONFIG3_REGION103_Pos) /*!< Bit mask of REGION103 field. */
+#define BPROT_CONFIG3_REGION103_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION103_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 6 : Enable protection for region 102. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION102_Pos (6UL) /*!< Position of REGION102 field. */
+#define BPROT_CONFIG3_REGION102_Msk (0x1UL << BPROT_CONFIG3_REGION102_Pos) /*!< Bit mask of REGION102 field. */
+#define BPROT_CONFIG3_REGION102_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION102_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 5 : Enable protection for region 101. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION101_Pos (5UL) /*!< Position of REGION101 field. */
+#define BPROT_CONFIG3_REGION101_Msk (0x1UL << BPROT_CONFIG3_REGION101_Pos) /*!< Bit mask of REGION101 field. */
+#define BPROT_CONFIG3_REGION101_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION101_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 4 : Enable protection for region 100. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION100_Pos (4UL) /*!< Position of REGION100 field. */
+#define BPROT_CONFIG3_REGION100_Msk (0x1UL << BPROT_CONFIG3_REGION100_Pos) /*!< Bit mask of REGION100 field. */
+#define BPROT_CONFIG3_REGION100_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION100_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 3 : Enable protection for region 99. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION99_Pos (3UL) /*!< Position of REGION99 field. */
+#define BPROT_CONFIG3_REGION99_Msk (0x1UL << BPROT_CONFIG3_REGION99_Pos) /*!< Bit mask of REGION99 field. */
+#define BPROT_CONFIG3_REGION99_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION99_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 2 : Enable protection for region 98. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION98_Pos (2UL) /*!< Position of REGION98 field. */
+#define BPROT_CONFIG3_REGION98_Msk (0x1UL << BPROT_CONFIG3_REGION98_Pos) /*!< Bit mask of REGION98 field. */
+#define BPROT_CONFIG3_REGION98_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION98_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 1 : Enable protection for region 97. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION97_Pos (1UL) /*!< Position of REGION97 field. */
+#define BPROT_CONFIG3_REGION97_Msk (0x1UL << BPROT_CONFIG3_REGION97_Pos) /*!< Bit mask of REGION97 field. */
+#define BPROT_CONFIG3_REGION97_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION97_Enabled (1UL) /*!< Protection enabled */
+
+/* Bit 0 : Enable protection for region 96. Write '0' has no effect. */
+#define BPROT_CONFIG3_REGION96_Pos (0UL) /*!< Position of REGION96 field. */
+#define BPROT_CONFIG3_REGION96_Msk (0x1UL << BPROT_CONFIG3_REGION96_Pos) /*!< Bit mask of REGION96 field. */
+#define BPROT_CONFIG3_REGION96_Disabled (0UL) /*!< Protection disabled */
+#define BPROT_CONFIG3_REGION96_Enabled (1UL) /*!< Protection enabled */
+
+
+/* Peripheral: CCM */
+/* Description: AES CCM Mode Encryption */
+
+/* Register: CCM_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 0 : Shortcut between ENDKSGEN event and CRYPT task */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Pos (0UL) /*!< Position of ENDKSGEN_CRYPT field. */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Msk (0x1UL << CCM_SHORTS_ENDKSGEN_CRYPT_Pos) /*!< Bit mask of ENDKSGEN_CRYPT field. */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Disabled (0UL) /*!< Disable shortcut */
+#define CCM_SHORTS_ENDKSGEN_CRYPT_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: CCM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 2 : Write '1' to Enable interrupt for ERROR event */
+#define CCM_INTENSET_ERROR_Pos (2UL) /*!< Position of ERROR field. */
+#define CCM_INTENSET_ERROR_Msk (0x1UL << CCM_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define CCM_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for ENDCRYPT event */
+#define CCM_INTENSET_ENDCRYPT_Pos (1UL) /*!< Position of ENDCRYPT field. */
+#define CCM_INTENSET_ENDCRYPT_Msk (0x1UL << CCM_INTENSET_ENDCRYPT_Pos) /*!< Bit mask of ENDCRYPT field. */
+#define CCM_INTENSET_ENDCRYPT_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENSET_ENDCRYPT_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENSET_ENDCRYPT_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for ENDKSGEN event */
+#define CCM_INTENSET_ENDKSGEN_Pos (0UL) /*!< Position of ENDKSGEN field. */
+#define CCM_INTENSET_ENDKSGEN_Msk (0x1UL << CCM_INTENSET_ENDKSGEN_Pos) /*!< Bit mask of ENDKSGEN field. */
+#define CCM_INTENSET_ENDKSGEN_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENSET_ENDKSGEN_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENSET_ENDKSGEN_Set (1UL) /*!< Enable */
+
+/* Register: CCM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 2 : Write '1' to Disable interrupt for ERROR event */
+#define CCM_INTENCLR_ERROR_Pos (2UL) /*!< Position of ERROR field. */
+#define CCM_INTENCLR_ERROR_Msk (0x1UL << CCM_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define CCM_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for ENDCRYPT event */
+#define CCM_INTENCLR_ENDCRYPT_Pos (1UL) /*!< Position of ENDCRYPT field. */
+#define CCM_INTENCLR_ENDCRYPT_Msk (0x1UL << CCM_INTENCLR_ENDCRYPT_Pos) /*!< Bit mask of ENDCRYPT field. */
+#define CCM_INTENCLR_ENDCRYPT_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENCLR_ENDCRYPT_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENCLR_ENDCRYPT_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for ENDKSGEN event */
+#define CCM_INTENCLR_ENDKSGEN_Pos (0UL) /*!< Position of ENDKSGEN field. */
+#define CCM_INTENCLR_ENDKSGEN_Msk (0x1UL << CCM_INTENCLR_ENDKSGEN_Pos) /*!< Bit mask of ENDKSGEN field. */
+#define CCM_INTENCLR_ENDKSGEN_Disabled (0UL) /*!< Read: Disabled */
+#define CCM_INTENCLR_ENDKSGEN_Enabled (1UL) /*!< Read: Enabled */
+#define CCM_INTENCLR_ENDKSGEN_Clear (1UL) /*!< Disable */
+
+/* Register: CCM_MICSTATUS */
+/* Description: MIC check result */
+
+/* Bit 0 : The result of the MIC check performed during the previous decryption operation */
+#define CCM_MICSTATUS_MICSTATUS_Pos (0UL) /*!< Position of MICSTATUS field. */
+#define CCM_MICSTATUS_MICSTATUS_Msk (0x1UL << CCM_MICSTATUS_MICSTATUS_Pos) /*!< Bit mask of MICSTATUS field. */
+#define CCM_MICSTATUS_MICSTATUS_CheckFailed (0UL) /*!< MIC check failed */
+#define CCM_MICSTATUS_MICSTATUS_CheckPassed (1UL) /*!< MIC check passed */
+
+/* Register: CCM_ENABLE */
+/* Description: Enable */
+
+/* Bits 1..0 : Enable or disable CCM */
+#define CCM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define CCM_ENABLE_ENABLE_Msk (0x3UL << CCM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define CCM_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define CCM_ENABLE_ENABLE_Enabled (2UL) /*!< Enable */
+
+/* Register: CCM_MODE */
+/* Description: Operation mode */
+
+/* Bit 24 : Packet length configuration */
+#define CCM_MODE_LENGTH_Pos (24UL) /*!< Position of LENGTH field. */
+#define CCM_MODE_LENGTH_Msk (0x1UL << CCM_MODE_LENGTH_Pos) /*!< Bit mask of LENGTH field. */
+#define CCM_MODE_LENGTH_Default (0UL) /*!< Default length. Effective length of LENGTH field is 5-bit */
+#define CCM_MODE_LENGTH_Extended (1UL) /*!< Extended length. Effective length of LENGTH field is 8-bit */
+
+/* Bit 16 : Data rate that the CCM shall run in synch with */
+#define CCM_MODE_DATARATE_Pos (16UL) /*!< Position of DATARATE field. */
+#define CCM_MODE_DATARATE_Msk (0x1UL << CCM_MODE_DATARATE_Pos) /*!< Bit mask of DATARATE field. */
+#define CCM_MODE_DATARATE_1Mbit (0UL) /*!< In synch with 1 Mbit data rate */
+#define CCM_MODE_DATARATE_2Mbit (1UL) /*!< In synch with 2 Mbit data rate */
+
+/* Bit 0 : The mode of operation to be used */
+#define CCM_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define CCM_MODE_MODE_Msk (0x1UL << CCM_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define CCM_MODE_MODE_Encryption (0UL) /*!< AES CCM packet encryption mode */
+#define CCM_MODE_MODE_Decryption (1UL) /*!< AES CCM packet decryption mode */
+
+/* Register: CCM_CNFPTR */
+/* Description: Pointer to data structure holding AES key and NONCE vector */
+
+/* Bits 31..0 : Pointer to the data structure holding the AES key and the CCM NONCE vector (see Table 1 CCM data structure overview) */
+#define CCM_CNFPTR_CNFPTR_Pos (0UL) /*!< Position of CNFPTR field. */
+#define CCM_CNFPTR_CNFPTR_Msk (0xFFFFFFFFUL << CCM_CNFPTR_CNFPTR_Pos) /*!< Bit mask of CNFPTR field. */
+
+/* Register: CCM_INPTR */
+/* Description: Input pointer */
+
+/* Bits 31..0 : Input pointer */
+#define CCM_INPTR_INPTR_Pos (0UL) /*!< Position of INPTR field. */
+#define CCM_INPTR_INPTR_Msk (0xFFFFFFFFUL << CCM_INPTR_INPTR_Pos) /*!< Bit mask of INPTR field. */
+
+/* Register: CCM_OUTPTR */
+/* Description: Output pointer */
+
+/* Bits 31..0 : Output pointer */
+#define CCM_OUTPTR_OUTPTR_Pos (0UL) /*!< Position of OUTPTR field. */
+#define CCM_OUTPTR_OUTPTR_Msk (0xFFFFFFFFUL << CCM_OUTPTR_OUTPTR_Pos) /*!< Bit mask of OUTPTR field. */
+
+/* Register: CCM_SCRATCHPTR */
+/* Description: Pointer to data area used for temporary storage */
+
+/* Bits 31..0 : Pointer to a scratch data area used for temporary storage during key-stream generation, MIC generation and encryption/decryption. */
+#define CCM_SCRATCHPTR_SCRATCHPTR_Pos (0UL) /*!< Position of SCRATCHPTR field. */
+#define CCM_SCRATCHPTR_SCRATCHPTR_Msk (0xFFFFFFFFUL << CCM_SCRATCHPTR_SCRATCHPTR_Pos) /*!< Bit mask of SCRATCHPTR field. */
+
+
+/* Peripheral: CLOCK */
+/* Description: Clock control */
+
+/* Register: CLOCK_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 4 : Write '1' to Enable interrupt for CTTO event */
+#define CLOCK_INTENSET_CTTO_Pos (4UL) /*!< Position of CTTO field. */
+#define CLOCK_INTENSET_CTTO_Msk (0x1UL << CLOCK_INTENSET_CTTO_Pos) /*!< Bit mask of CTTO field. */
+#define CLOCK_INTENSET_CTTO_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_CTTO_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_CTTO_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for DONE event */
+#define CLOCK_INTENSET_DONE_Pos (3UL) /*!< Position of DONE field. */
+#define CLOCK_INTENSET_DONE_Msk (0x1UL << CLOCK_INTENSET_DONE_Pos) /*!< Bit mask of DONE field. */
+#define CLOCK_INTENSET_DONE_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_DONE_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_DONE_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for LFCLKSTARTED event */
+#define CLOCK_INTENSET_LFCLKSTARTED_Pos (1UL) /*!< Position of LFCLKSTARTED field. */
+#define CLOCK_INTENSET_LFCLKSTARTED_Msk (0x1UL << CLOCK_INTENSET_LFCLKSTARTED_Pos) /*!< Bit mask of LFCLKSTARTED field. */
+#define CLOCK_INTENSET_LFCLKSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_LFCLKSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_LFCLKSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for HFCLKSTARTED event */
+#define CLOCK_INTENSET_HFCLKSTARTED_Pos (0UL) /*!< Position of HFCLKSTARTED field. */
+#define CLOCK_INTENSET_HFCLKSTARTED_Msk (0x1UL << CLOCK_INTENSET_HFCLKSTARTED_Pos) /*!< Bit mask of HFCLKSTARTED field. */
+#define CLOCK_INTENSET_HFCLKSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENSET_HFCLKSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENSET_HFCLKSTARTED_Set (1UL) /*!< Enable */
+
+/* Register: CLOCK_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 4 : Write '1' to Disable interrupt for CTTO event */
+#define CLOCK_INTENCLR_CTTO_Pos (4UL) /*!< Position of CTTO field. */
+#define CLOCK_INTENCLR_CTTO_Msk (0x1UL << CLOCK_INTENCLR_CTTO_Pos) /*!< Bit mask of CTTO field. */
+#define CLOCK_INTENCLR_CTTO_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_CTTO_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_CTTO_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for DONE event */
+#define CLOCK_INTENCLR_DONE_Pos (3UL) /*!< Position of DONE field. */
+#define CLOCK_INTENCLR_DONE_Msk (0x1UL << CLOCK_INTENCLR_DONE_Pos) /*!< Bit mask of DONE field. */
+#define CLOCK_INTENCLR_DONE_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_DONE_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_DONE_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for LFCLKSTARTED event */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Pos (1UL) /*!< Position of LFCLKSTARTED field. */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Msk (0x1UL << CLOCK_INTENCLR_LFCLKSTARTED_Pos) /*!< Bit mask of LFCLKSTARTED field. */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_LFCLKSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for HFCLKSTARTED event */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Pos (0UL) /*!< Position of HFCLKSTARTED field. */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Msk (0x1UL << CLOCK_INTENCLR_HFCLKSTARTED_Pos) /*!< Bit mask of HFCLKSTARTED field. */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define CLOCK_INTENCLR_HFCLKSTARTED_Clear (1UL) /*!< Disable */
+
+/* Register: CLOCK_HFCLKRUN */
+/* Description: Status indicating that HFCLKSTART task has been triggered */
+
+/* Bit 0 : HFCLKSTART task triggered or not */
+#define CLOCK_HFCLKRUN_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define CLOCK_HFCLKRUN_STATUS_Msk (0x1UL << CLOCK_HFCLKRUN_STATUS_Pos) /*!< Bit mask of STATUS field. */
+#define CLOCK_HFCLKRUN_STATUS_NotTriggered (0UL) /*!< Task not triggered */
+#define CLOCK_HFCLKRUN_STATUS_Triggered (1UL) /*!< Task triggered */
+
+/* Register: CLOCK_HFCLKSTAT */
+/* Description: HFCLK status */
+
+/* Bit 16 : HFCLK state */
+#define CLOCK_HFCLKSTAT_STATE_Pos (16UL) /*!< Position of STATE field. */
+#define CLOCK_HFCLKSTAT_STATE_Msk (0x1UL << CLOCK_HFCLKSTAT_STATE_Pos) /*!< Bit mask of STATE field. */
+#define CLOCK_HFCLKSTAT_STATE_NotRunning (0UL) /*!< HFCLK not running */
+#define CLOCK_HFCLKSTAT_STATE_Running (1UL) /*!< HFCLK running */
+
+/* Bit 0 : Source of HFCLK */
+#define CLOCK_HFCLKSTAT_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_HFCLKSTAT_SRC_Msk (0x1UL << CLOCK_HFCLKSTAT_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_HFCLKSTAT_SRC_RC (0UL) /*!< 64 MHz internal oscillator (HFINT) */
+#define CLOCK_HFCLKSTAT_SRC_Xtal (1UL) /*!< 64 MHz crystal oscillator (HFXO) */
+
+/* Register: CLOCK_LFCLKRUN */
+/* Description: Status indicating that LFCLKSTART task has been triggered */
+
+/* Bit 0 : LFCLKSTART task triggered or not */
+#define CLOCK_LFCLKRUN_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define CLOCK_LFCLKRUN_STATUS_Msk (0x1UL << CLOCK_LFCLKRUN_STATUS_Pos) /*!< Bit mask of STATUS field. */
+#define CLOCK_LFCLKRUN_STATUS_NotTriggered (0UL) /*!< Task not triggered */
+#define CLOCK_LFCLKRUN_STATUS_Triggered (1UL) /*!< Task triggered */
+
+/* Register: CLOCK_LFCLKSTAT */
+/* Description: LFCLK status */
+
+/* Bit 16 : LFCLK state */
+#define CLOCK_LFCLKSTAT_STATE_Pos (16UL) /*!< Position of STATE field. */
+#define CLOCK_LFCLKSTAT_STATE_Msk (0x1UL << CLOCK_LFCLKSTAT_STATE_Pos) /*!< Bit mask of STATE field. */
+#define CLOCK_LFCLKSTAT_STATE_NotRunning (0UL) /*!< LFCLK not running */
+#define CLOCK_LFCLKSTAT_STATE_Running (1UL) /*!< LFCLK running */
+
+/* Bits 1..0 : Source of LFCLK */
+#define CLOCK_LFCLKSTAT_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_LFCLKSTAT_SRC_Msk (0x3UL << CLOCK_LFCLKSTAT_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_LFCLKSTAT_SRC_RC (0UL) /*!< 32.768 kHz RC oscillator */
+#define CLOCK_LFCLKSTAT_SRC_Xtal (1UL) /*!< 32.768 kHz crystal oscillator */
+#define CLOCK_LFCLKSTAT_SRC_Synth (2UL) /*!< 32.768 kHz synthesized from HFCLK */
+
+/* Register: CLOCK_LFCLKSRCCOPY */
+/* Description: Copy of LFCLKSRC register, set when LFCLKSTART task was triggered */
+
+/* Bits 1..0 : Clock source */
+#define CLOCK_LFCLKSRCCOPY_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_LFCLKSRCCOPY_SRC_Msk (0x3UL << CLOCK_LFCLKSRCCOPY_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_LFCLKSRCCOPY_SRC_RC (0UL) /*!< 32.768 kHz RC oscillator */
+#define CLOCK_LFCLKSRCCOPY_SRC_Xtal (1UL) /*!< 32.768 kHz crystal oscillator */
+#define CLOCK_LFCLKSRCCOPY_SRC_Synth (2UL) /*!< 32.768 kHz synthesized from HFCLK */
+
+/* Register: CLOCK_LFCLKSRC */
+/* Description: Clock source for the LFCLK */
+
+/* Bit 17 : Enable or disable external source for LFCLK */
+#define CLOCK_LFCLKSRC_EXTERNAL_Pos (17UL) /*!< Position of EXTERNAL field. */
+#define CLOCK_LFCLKSRC_EXTERNAL_Msk (0x1UL << CLOCK_LFCLKSRC_EXTERNAL_Pos) /*!< Bit mask of EXTERNAL field. */
+#define CLOCK_LFCLKSRC_EXTERNAL_Disabled (0UL) /*!< Disable external source (use with Xtal) */
+#define CLOCK_LFCLKSRC_EXTERNAL_Enabled (1UL) /*!< Enable use of external source instead of Xtal (SRC needs to be set to Xtal) */
+
+/* Bit 16 : Enable or disable bypass of LFCLK crystal oscillator with external clock source */
+#define CLOCK_LFCLKSRC_BYPASS_Pos (16UL) /*!< Position of BYPASS field. */
+#define CLOCK_LFCLKSRC_BYPASS_Msk (0x1UL << CLOCK_LFCLKSRC_BYPASS_Pos) /*!< Bit mask of BYPASS field. */
+#define CLOCK_LFCLKSRC_BYPASS_Disabled (0UL) /*!< Disable (use with Xtal or low-swing external source) */
+#define CLOCK_LFCLKSRC_BYPASS_Enabled (1UL) /*!< Enable (use with rail-to-rail external source) */
+
+/* Bits 1..0 : Clock source */
+#define CLOCK_LFCLKSRC_SRC_Pos (0UL) /*!< Position of SRC field. */
+#define CLOCK_LFCLKSRC_SRC_Msk (0x3UL << CLOCK_LFCLKSRC_SRC_Pos) /*!< Bit mask of SRC field. */
+#define CLOCK_LFCLKSRC_SRC_RC (0UL) /*!< 32.768 kHz RC oscillator */
+#define CLOCK_LFCLKSRC_SRC_Xtal (1UL) /*!< 32.768 kHz crystal oscillator */
+#define CLOCK_LFCLKSRC_SRC_Synth (2UL) /*!< 32.768 kHz synthesized from HFCLK */
+
+/* Register: CLOCK_CTIV */
+/* Description: Calibration timer interval */
+
+/* Bits 6..0 : Calibration timer interval in multiple of 0.25 seconds. Range: 0.25 seconds to 31.75 seconds. */
+#define CLOCK_CTIV_CTIV_Pos (0UL) /*!< Position of CTIV field. */
+#define CLOCK_CTIV_CTIV_Msk (0x7FUL << CLOCK_CTIV_CTIV_Pos) /*!< Bit mask of CTIV field. */
+
+/* Register: CLOCK_TRACECONFIG */
+/* Description: Clocking options for the Trace Port debug interface */
+
+/* Bits 17..16 : Pin multiplexing of trace signals. */
+#define CLOCK_TRACECONFIG_TRACEMUX_Pos (16UL) /*!< Position of TRACEMUX field. */
+#define CLOCK_TRACECONFIG_TRACEMUX_Msk (0x3UL << CLOCK_TRACECONFIG_TRACEMUX_Pos) /*!< Bit mask of TRACEMUX field. */
+#define CLOCK_TRACECONFIG_TRACEMUX_GPIO (0UL) /*!< GPIOs multiplexed onto all trace-pins */
+#define CLOCK_TRACECONFIG_TRACEMUX_Serial (1UL) /*!< SWO multiplexed onto P0.18, GPIO multiplexed onto other trace pins */
+#define CLOCK_TRACECONFIG_TRACEMUX_Parallel (2UL) /*!< TRACECLK and TRACEDATA multiplexed onto P0.20, P0.18, P0.16, P0.15 and P0.14. */
+
+/* Bits 1..0 : Speed of Trace Port clock. Note that the TRACECLK pin will output this clock divided by two. */
+#define CLOCK_TRACECONFIG_TRACEPORTSPEED_Pos (0UL) /*!< Position of TRACEPORTSPEED field. */
+#define CLOCK_TRACECONFIG_TRACEPORTSPEED_Msk (0x3UL << CLOCK_TRACECONFIG_TRACEPORTSPEED_Pos) /*!< Bit mask of TRACEPORTSPEED field. */
+#define CLOCK_TRACECONFIG_TRACEPORTSPEED_32MHz (0UL) /*!< 32 MHz Trace Port clock (TRACECLK = 16 MHz) */
+#define CLOCK_TRACECONFIG_TRACEPORTSPEED_16MHz (1UL) /*!< 16 MHz Trace Port clock (TRACECLK = 8 MHz) */
+#define CLOCK_TRACECONFIG_TRACEPORTSPEED_8MHz (2UL) /*!< 8 MHz Trace Port clock (TRACECLK = 4 MHz) */
+#define CLOCK_TRACECONFIG_TRACEPORTSPEED_4MHz (3UL) /*!< 4 MHz Trace Port clock (TRACECLK = 2 MHz) */
+
+
+/* Peripheral: COMP */
+/* Description: Comparator */
+
+/* Register: COMP_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 4 : Shortcut between CROSS event and STOP task */
+#define COMP_SHORTS_CROSS_STOP_Pos (4UL) /*!< Position of CROSS_STOP field. */
+#define COMP_SHORTS_CROSS_STOP_Msk (0x1UL << COMP_SHORTS_CROSS_STOP_Pos) /*!< Bit mask of CROSS_STOP field. */
+#define COMP_SHORTS_CROSS_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_CROSS_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between UP event and STOP task */
+#define COMP_SHORTS_UP_STOP_Pos (3UL) /*!< Position of UP_STOP field. */
+#define COMP_SHORTS_UP_STOP_Msk (0x1UL << COMP_SHORTS_UP_STOP_Pos) /*!< Bit mask of UP_STOP field. */
+#define COMP_SHORTS_UP_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_UP_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between DOWN event and STOP task */
+#define COMP_SHORTS_DOWN_STOP_Pos (2UL) /*!< Position of DOWN_STOP field. */
+#define COMP_SHORTS_DOWN_STOP_Msk (0x1UL << COMP_SHORTS_DOWN_STOP_Pos) /*!< Bit mask of DOWN_STOP field. */
+#define COMP_SHORTS_DOWN_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_DOWN_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between READY event and STOP task */
+#define COMP_SHORTS_READY_STOP_Pos (1UL) /*!< Position of READY_STOP field. */
+#define COMP_SHORTS_READY_STOP_Msk (0x1UL << COMP_SHORTS_READY_STOP_Pos) /*!< Bit mask of READY_STOP field. */
+#define COMP_SHORTS_READY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_READY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between READY event and SAMPLE task */
+#define COMP_SHORTS_READY_SAMPLE_Pos (0UL) /*!< Position of READY_SAMPLE field. */
+#define COMP_SHORTS_READY_SAMPLE_Msk (0x1UL << COMP_SHORTS_READY_SAMPLE_Pos) /*!< Bit mask of READY_SAMPLE field. */
+#define COMP_SHORTS_READY_SAMPLE_Disabled (0UL) /*!< Disable shortcut */
+#define COMP_SHORTS_READY_SAMPLE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: COMP_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 3 : Enable or disable interrupt for CROSS event */
+#define COMP_INTEN_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define COMP_INTEN_CROSS_Msk (0x1UL << COMP_INTEN_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define COMP_INTEN_CROSS_Disabled (0UL) /*!< Disable */
+#define COMP_INTEN_CROSS_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for UP event */
+#define COMP_INTEN_UP_Pos (2UL) /*!< Position of UP field. */
+#define COMP_INTEN_UP_Msk (0x1UL << COMP_INTEN_UP_Pos) /*!< Bit mask of UP field. */
+#define COMP_INTEN_UP_Disabled (0UL) /*!< Disable */
+#define COMP_INTEN_UP_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for DOWN event */
+#define COMP_INTEN_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define COMP_INTEN_DOWN_Msk (0x1UL << COMP_INTEN_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define COMP_INTEN_DOWN_Disabled (0UL) /*!< Disable */
+#define COMP_INTEN_DOWN_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for READY event */
+#define COMP_INTEN_READY_Pos (0UL) /*!< Position of READY field. */
+#define COMP_INTEN_READY_Msk (0x1UL << COMP_INTEN_READY_Pos) /*!< Bit mask of READY field. */
+#define COMP_INTEN_READY_Disabled (0UL) /*!< Disable */
+#define COMP_INTEN_READY_Enabled (1UL) /*!< Enable */
+
+/* Register: COMP_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 3 : Write '1' to Enable interrupt for CROSS event */
+#define COMP_INTENSET_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define COMP_INTENSET_CROSS_Msk (0x1UL << COMP_INTENSET_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define COMP_INTENSET_CROSS_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENSET_CROSS_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENSET_CROSS_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for UP event */
+#define COMP_INTENSET_UP_Pos (2UL) /*!< Position of UP field. */
+#define COMP_INTENSET_UP_Msk (0x1UL << COMP_INTENSET_UP_Pos) /*!< Bit mask of UP field. */
+#define COMP_INTENSET_UP_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENSET_UP_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENSET_UP_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for DOWN event */
+#define COMP_INTENSET_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define COMP_INTENSET_DOWN_Msk (0x1UL << COMP_INTENSET_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define COMP_INTENSET_DOWN_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENSET_DOWN_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENSET_DOWN_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for READY event */
+#define COMP_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define COMP_INTENSET_READY_Msk (0x1UL << COMP_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define COMP_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: COMP_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 3 : Write '1' to Disable interrupt for CROSS event */
+#define COMP_INTENCLR_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define COMP_INTENCLR_CROSS_Msk (0x1UL << COMP_INTENCLR_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define COMP_INTENCLR_CROSS_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENCLR_CROSS_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENCLR_CROSS_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for UP event */
+#define COMP_INTENCLR_UP_Pos (2UL) /*!< Position of UP field. */
+#define COMP_INTENCLR_UP_Msk (0x1UL << COMP_INTENCLR_UP_Pos) /*!< Bit mask of UP field. */
+#define COMP_INTENCLR_UP_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENCLR_UP_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENCLR_UP_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for DOWN event */
+#define COMP_INTENCLR_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define COMP_INTENCLR_DOWN_Msk (0x1UL << COMP_INTENCLR_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define COMP_INTENCLR_DOWN_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENCLR_DOWN_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENCLR_DOWN_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for READY event */
+#define COMP_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define COMP_INTENCLR_READY_Msk (0x1UL << COMP_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define COMP_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define COMP_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define COMP_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: COMP_RESULT */
+/* Description: Compare result */
+
+/* Bit 0 : Result of last compare. Decision point SAMPLE task. */
+#define COMP_RESULT_RESULT_Pos (0UL) /*!< Position of RESULT field. */
+#define COMP_RESULT_RESULT_Msk (0x1UL << COMP_RESULT_RESULT_Pos) /*!< Bit mask of RESULT field. */
+#define COMP_RESULT_RESULT_Below (0UL) /*!< Input voltage is below the threshold (VIN+ &lt; VIN-) */
+#define COMP_RESULT_RESULT_Above (1UL) /*!< Input voltage is above the threshold (VIN+ &gt; VIN-) */
+
+/* Register: COMP_ENABLE */
+/* Description: COMP enable */
+
+/* Bits 1..0 : Enable or disable COMP */
+#define COMP_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define COMP_ENABLE_ENABLE_Msk (0x3UL << COMP_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define COMP_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define COMP_ENABLE_ENABLE_Enabled (2UL) /*!< Enable */
+
+/* Register: COMP_PSEL */
+/* Description: Pin select */
+
+/* Bits 2..0 : Analog pin select */
+#define COMP_PSEL_PSEL_Pos (0UL) /*!< Position of PSEL field. */
+#define COMP_PSEL_PSEL_Msk (0x7UL << COMP_PSEL_PSEL_Pos) /*!< Bit mask of PSEL field. */
+#define COMP_PSEL_PSEL_AnalogInput0 (0UL) /*!< AIN0 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput1 (1UL) /*!< AIN1 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput2 (2UL) /*!< AIN2 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput3 (3UL) /*!< AIN3 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput4 (4UL) /*!< AIN4 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput5 (5UL) /*!< AIN5 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput6 (6UL) /*!< AIN6 selected as analog input */
+#define COMP_PSEL_PSEL_AnalogInput7 (7UL) /*!< AIN7 selected as analog input */
+
+/* Register: COMP_REFSEL */
+/* Description: Reference source select for single-ended mode */
+
+/* Bits 2..0 : Reference select */
+#define COMP_REFSEL_REFSEL_Pos (0UL) /*!< Position of REFSEL field. */
+#define COMP_REFSEL_REFSEL_Msk (0x7UL << COMP_REFSEL_REFSEL_Pos) /*!< Bit mask of REFSEL field. */
+#define COMP_REFSEL_REFSEL_Int1V2 (0UL) /*!< VREF = internal 1.2 V reference (VDD &gt;= 1.7 V) */
+#define COMP_REFSEL_REFSEL_Int1V8 (1UL) /*!< VREF = internal 1.8 V reference (VDD &gt;= VREF + 0.2 V) */
+#define COMP_REFSEL_REFSEL_Int2V4 (2UL) /*!< VREF = internal 2.4 V reference (VDD &gt;= VREF + 0.2 V) */
+#define COMP_REFSEL_REFSEL_VDD (4UL) /*!< VREF = VDD */
+#define COMP_REFSEL_REFSEL_ARef (7UL) /*!< VREF = AREF (VDD &gt;= VREF &gt;= AREFMIN) */
+
+/* Register: COMP_EXTREFSEL */
+/* Description: External reference select */
+
+/* Bits 2..0 : External analog reference select */
+#define COMP_EXTREFSEL_EXTREFSEL_Pos (0UL) /*!< Position of EXTREFSEL field. */
+#define COMP_EXTREFSEL_EXTREFSEL_Msk (0x7UL << COMP_EXTREFSEL_EXTREFSEL_Pos) /*!< Bit mask of EXTREFSEL field. */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference0 (0UL) /*!< Use AIN0 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference1 (1UL) /*!< Use AIN1 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference2 (2UL) /*!< Use AIN2 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference3 (3UL) /*!< Use AIN3 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference4 (4UL) /*!< Use AIN4 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference5 (5UL) /*!< Use AIN5 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference6 (6UL) /*!< Use AIN6 as external analog reference */
+#define COMP_EXTREFSEL_EXTREFSEL_AnalogReference7 (7UL) /*!< Use AIN7 as external analog reference */
+
+/* Register: COMP_TH */
+/* Description: Threshold configuration for hysteresis unit */
+
+/* Bits 13..8 : VUP = (THUP+1)/64*VREF */
+#define COMP_TH_THUP_Pos (8UL) /*!< Position of THUP field. */
+#define COMP_TH_THUP_Msk (0x3FUL << COMP_TH_THUP_Pos) /*!< Bit mask of THUP field. */
+
+/* Bits 5..0 : VDOWN = (THDOWN+1)/64*VREF */
+#define COMP_TH_THDOWN_Pos (0UL) /*!< Position of THDOWN field. */
+#define COMP_TH_THDOWN_Msk (0x3FUL << COMP_TH_THDOWN_Pos) /*!< Bit mask of THDOWN field. */
+
+/* Register: COMP_MODE */
+/* Description: Mode configuration */
+
+/* Bit 8 : Main operation modes */
+#define COMP_MODE_MAIN_Pos (8UL) /*!< Position of MAIN field. */
+#define COMP_MODE_MAIN_Msk (0x1UL << COMP_MODE_MAIN_Pos) /*!< Bit mask of MAIN field. */
+#define COMP_MODE_MAIN_SE (0UL) /*!< Single-ended mode */
+#define COMP_MODE_MAIN_Diff (1UL) /*!< Differential mode */
+
+/* Bits 1..0 : Speed and power modes */
+#define COMP_MODE_SP_Pos (0UL) /*!< Position of SP field. */
+#define COMP_MODE_SP_Msk (0x3UL << COMP_MODE_SP_Pos) /*!< Bit mask of SP field. */
+#define COMP_MODE_SP_Low (0UL) /*!< Low-power mode */
+#define COMP_MODE_SP_Normal (1UL) /*!< Normal mode */
+#define COMP_MODE_SP_High (2UL) /*!< High-speed mode */
+
+/* Register: COMP_HYST */
+/* Description: Comparator hysteresis enable */
+
+/* Bit 0 : Comparator hysteresis */
+#define COMP_HYST_HYST_Pos (0UL) /*!< Position of HYST field. */
+#define COMP_HYST_HYST_Msk (0x1UL << COMP_HYST_HYST_Pos) /*!< Bit mask of HYST field. */
+#define COMP_HYST_HYST_NoHyst (0UL) /*!< Comparator hysteresis disabled */
+#define COMP_HYST_HYST_Hyst50mV (1UL) /*!< Comparator hysteresis enabled */
+
+/* Register: COMP_ISOURCE */
+/* Description: Current source select on analog input */
+
+/* Bits 1..0 : Comparator hysteresis */
+#define COMP_ISOURCE_ISOURCE_Pos (0UL) /*!< Position of ISOURCE field. */
+#define COMP_ISOURCE_ISOURCE_Msk (0x3UL << COMP_ISOURCE_ISOURCE_Pos) /*!< Bit mask of ISOURCE field. */
+#define COMP_ISOURCE_ISOURCE_Off (0UL) /*!< Current source disabled */
+#define COMP_ISOURCE_ISOURCE_Ien2mA5 (1UL) /*!< Current source enabled (+/- 2.5 uA) */
+#define COMP_ISOURCE_ISOURCE_Ien5mA (2UL) /*!< Current source enabled (+/- 5 uA) */
+#define COMP_ISOURCE_ISOURCE_Ien10mA (3UL) /*!< Current source enabled (+/- 10 uA) */
+
+
+/* Peripheral: ECB */
+/* Description: AES ECB Mode Encryption */
+
+/* Register: ECB_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 1 : Write '1' to Enable interrupt for ERRORECB event */
+#define ECB_INTENSET_ERRORECB_Pos (1UL) /*!< Position of ERRORECB field. */
+#define ECB_INTENSET_ERRORECB_Msk (0x1UL << ECB_INTENSET_ERRORECB_Pos) /*!< Bit mask of ERRORECB field. */
+#define ECB_INTENSET_ERRORECB_Disabled (0UL) /*!< Read: Disabled */
+#define ECB_INTENSET_ERRORECB_Enabled (1UL) /*!< Read: Enabled */
+#define ECB_INTENSET_ERRORECB_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for ENDECB event */
+#define ECB_INTENSET_ENDECB_Pos (0UL) /*!< Position of ENDECB field. */
+#define ECB_INTENSET_ENDECB_Msk (0x1UL << ECB_INTENSET_ENDECB_Pos) /*!< Bit mask of ENDECB field. */
+#define ECB_INTENSET_ENDECB_Disabled (0UL) /*!< Read: Disabled */
+#define ECB_INTENSET_ENDECB_Enabled (1UL) /*!< Read: Enabled */
+#define ECB_INTENSET_ENDECB_Set (1UL) /*!< Enable */
+
+/* Register: ECB_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 1 : Write '1' to Disable interrupt for ERRORECB event */
+#define ECB_INTENCLR_ERRORECB_Pos (1UL) /*!< Position of ERRORECB field. */
+#define ECB_INTENCLR_ERRORECB_Msk (0x1UL << ECB_INTENCLR_ERRORECB_Pos) /*!< Bit mask of ERRORECB field. */
+#define ECB_INTENCLR_ERRORECB_Disabled (0UL) /*!< Read: Disabled */
+#define ECB_INTENCLR_ERRORECB_Enabled (1UL) /*!< Read: Enabled */
+#define ECB_INTENCLR_ERRORECB_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for ENDECB event */
+#define ECB_INTENCLR_ENDECB_Pos (0UL) /*!< Position of ENDECB field. */
+#define ECB_INTENCLR_ENDECB_Msk (0x1UL << ECB_INTENCLR_ENDECB_Pos) /*!< Bit mask of ENDECB field. */
+#define ECB_INTENCLR_ENDECB_Disabled (0UL) /*!< Read: Disabled */
+#define ECB_INTENCLR_ENDECB_Enabled (1UL) /*!< Read: Enabled */
+#define ECB_INTENCLR_ENDECB_Clear (1UL) /*!< Disable */
+
+/* Register: ECB_ECBDATAPTR */
+/* Description: ECB block encrypt memory pointers */
+
+/* Bits 31..0 : Pointer to the ECB data structure (see Table 1 ECB data structure overview) */
+#define ECB_ECBDATAPTR_ECBDATAPTR_Pos (0UL) /*!< Position of ECBDATAPTR field. */
+#define ECB_ECBDATAPTR_ECBDATAPTR_Msk (0xFFFFFFFFUL << ECB_ECBDATAPTR_ECBDATAPTR_Pos) /*!< Bit mask of ECBDATAPTR field. */
+
+
+/* Peripheral: EGU */
+/* Description: Event Generator Unit 0 */
+
+/* Register: EGU_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 15 : Enable or disable interrupt for TRIGGERED[15] event */
+#define EGU_INTEN_TRIGGERED15_Pos (15UL) /*!< Position of TRIGGERED15 field. */
+#define EGU_INTEN_TRIGGERED15_Msk (0x1UL << EGU_INTEN_TRIGGERED15_Pos) /*!< Bit mask of TRIGGERED15 field. */
+#define EGU_INTEN_TRIGGERED15_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED15_Enabled (1UL) /*!< Enable */
+
+/* Bit 14 : Enable or disable interrupt for TRIGGERED[14] event */
+#define EGU_INTEN_TRIGGERED14_Pos (14UL) /*!< Position of TRIGGERED14 field. */
+#define EGU_INTEN_TRIGGERED14_Msk (0x1UL << EGU_INTEN_TRIGGERED14_Pos) /*!< Bit mask of TRIGGERED14 field. */
+#define EGU_INTEN_TRIGGERED14_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED14_Enabled (1UL) /*!< Enable */
+
+/* Bit 13 : Enable or disable interrupt for TRIGGERED[13] event */
+#define EGU_INTEN_TRIGGERED13_Pos (13UL) /*!< Position of TRIGGERED13 field. */
+#define EGU_INTEN_TRIGGERED13_Msk (0x1UL << EGU_INTEN_TRIGGERED13_Pos) /*!< Bit mask of TRIGGERED13 field. */
+#define EGU_INTEN_TRIGGERED13_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED13_Enabled (1UL) /*!< Enable */
+
+/* Bit 12 : Enable or disable interrupt for TRIGGERED[12] event */
+#define EGU_INTEN_TRIGGERED12_Pos (12UL) /*!< Position of TRIGGERED12 field. */
+#define EGU_INTEN_TRIGGERED12_Msk (0x1UL << EGU_INTEN_TRIGGERED12_Pos) /*!< Bit mask of TRIGGERED12 field. */
+#define EGU_INTEN_TRIGGERED12_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED12_Enabled (1UL) /*!< Enable */
+
+/* Bit 11 : Enable or disable interrupt for TRIGGERED[11] event */
+#define EGU_INTEN_TRIGGERED11_Pos (11UL) /*!< Position of TRIGGERED11 field. */
+#define EGU_INTEN_TRIGGERED11_Msk (0x1UL << EGU_INTEN_TRIGGERED11_Pos) /*!< Bit mask of TRIGGERED11 field. */
+#define EGU_INTEN_TRIGGERED11_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED11_Enabled (1UL) /*!< Enable */
+
+/* Bit 10 : Enable or disable interrupt for TRIGGERED[10] event */
+#define EGU_INTEN_TRIGGERED10_Pos (10UL) /*!< Position of TRIGGERED10 field. */
+#define EGU_INTEN_TRIGGERED10_Msk (0x1UL << EGU_INTEN_TRIGGERED10_Pos) /*!< Bit mask of TRIGGERED10 field. */
+#define EGU_INTEN_TRIGGERED10_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED10_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for TRIGGERED[9] event */
+#define EGU_INTEN_TRIGGERED9_Pos (9UL) /*!< Position of TRIGGERED9 field. */
+#define EGU_INTEN_TRIGGERED9_Msk (0x1UL << EGU_INTEN_TRIGGERED9_Pos) /*!< Bit mask of TRIGGERED9 field. */
+#define EGU_INTEN_TRIGGERED9_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED9_Enabled (1UL) /*!< Enable */
+
+/* Bit 8 : Enable or disable interrupt for TRIGGERED[8] event */
+#define EGU_INTEN_TRIGGERED8_Pos (8UL) /*!< Position of TRIGGERED8 field. */
+#define EGU_INTEN_TRIGGERED8_Msk (0x1UL << EGU_INTEN_TRIGGERED8_Pos) /*!< Bit mask of TRIGGERED8 field. */
+#define EGU_INTEN_TRIGGERED8_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED8_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for TRIGGERED[7] event */
+#define EGU_INTEN_TRIGGERED7_Pos (7UL) /*!< Position of TRIGGERED7 field. */
+#define EGU_INTEN_TRIGGERED7_Msk (0x1UL << EGU_INTEN_TRIGGERED7_Pos) /*!< Bit mask of TRIGGERED7 field. */
+#define EGU_INTEN_TRIGGERED7_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED7_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for TRIGGERED[6] event */
+#define EGU_INTEN_TRIGGERED6_Pos (6UL) /*!< Position of TRIGGERED6 field. */
+#define EGU_INTEN_TRIGGERED6_Msk (0x1UL << EGU_INTEN_TRIGGERED6_Pos) /*!< Bit mask of TRIGGERED6 field. */
+#define EGU_INTEN_TRIGGERED6_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED6_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for TRIGGERED[5] event */
+#define EGU_INTEN_TRIGGERED5_Pos (5UL) /*!< Position of TRIGGERED5 field. */
+#define EGU_INTEN_TRIGGERED5_Msk (0x1UL << EGU_INTEN_TRIGGERED5_Pos) /*!< Bit mask of TRIGGERED5 field. */
+#define EGU_INTEN_TRIGGERED5_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED5_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for TRIGGERED[4] event */
+#define EGU_INTEN_TRIGGERED4_Pos (4UL) /*!< Position of TRIGGERED4 field. */
+#define EGU_INTEN_TRIGGERED4_Msk (0x1UL << EGU_INTEN_TRIGGERED4_Pos) /*!< Bit mask of TRIGGERED4 field. */
+#define EGU_INTEN_TRIGGERED4_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED4_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for TRIGGERED[3] event */
+#define EGU_INTEN_TRIGGERED3_Pos (3UL) /*!< Position of TRIGGERED3 field. */
+#define EGU_INTEN_TRIGGERED3_Msk (0x1UL << EGU_INTEN_TRIGGERED3_Pos) /*!< Bit mask of TRIGGERED3 field. */
+#define EGU_INTEN_TRIGGERED3_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED3_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for TRIGGERED[2] event */
+#define EGU_INTEN_TRIGGERED2_Pos (2UL) /*!< Position of TRIGGERED2 field. */
+#define EGU_INTEN_TRIGGERED2_Msk (0x1UL << EGU_INTEN_TRIGGERED2_Pos) /*!< Bit mask of TRIGGERED2 field. */
+#define EGU_INTEN_TRIGGERED2_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED2_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for TRIGGERED[1] event */
+#define EGU_INTEN_TRIGGERED1_Pos (1UL) /*!< Position of TRIGGERED1 field. */
+#define EGU_INTEN_TRIGGERED1_Msk (0x1UL << EGU_INTEN_TRIGGERED1_Pos) /*!< Bit mask of TRIGGERED1 field. */
+#define EGU_INTEN_TRIGGERED1_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED1_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for TRIGGERED[0] event */
+#define EGU_INTEN_TRIGGERED0_Pos (0UL) /*!< Position of TRIGGERED0 field. */
+#define EGU_INTEN_TRIGGERED0_Msk (0x1UL << EGU_INTEN_TRIGGERED0_Pos) /*!< Bit mask of TRIGGERED0 field. */
+#define EGU_INTEN_TRIGGERED0_Disabled (0UL) /*!< Disable */
+#define EGU_INTEN_TRIGGERED0_Enabled (1UL) /*!< Enable */
+
+/* Register: EGU_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 15 : Write '1' to Enable interrupt for TRIGGERED[15] event */
+#define EGU_INTENSET_TRIGGERED15_Pos (15UL) /*!< Position of TRIGGERED15 field. */
+#define EGU_INTENSET_TRIGGERED15_Msk (0x1UL << EGU_INTENSET_TRIGGERED15_Pos) /*!< Bit mask of TRIGGERED15 field. */
+#define EGU_INTENSET_TRIGGERED15_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED15_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED15_Set (1UL) /*!< Enable */
+
+/* Bit 14 : Write '1' to Enable interrupt for TRIGGERED[14] event */
+#define EGU_INTENSET_TRIGGERED14_Pos (14UL) /*!< Position of TRIGGERED14 field. */
+#define EGU_INTENSET_TRIGGERED14_Msk (0x1UL << EGU_INTENSET_TRIGGERED14_Pos) /*!< Bit mask of TRIGGERED14 field. */
+#define EGU_INTENSET_TRIGGERED14_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED14_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED14_Set (1UL) /*!< Enable */
+
+/* Bit 13 : Write '1' to Enable interrupt for TRIGGERED[13] event */
+#define EGU_INTENSET_TRIGGERED13_Pos (13UL) /*!< Position of TRIGGERED13 field. */
+#define EGU_INTENSET_TRIGGERED13_Msk (0x1UL << EGU_INTENSET_TRIGGERED13_Pos) /*!< Bit mask of TRIGGERED13 field. */
+#define EGU_INTENSET_TRIGGERED13_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED13_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED13_Set (1UL) /*!< Enable */
+
+/* Bit 12 : Write '1' to Enable interrupt for TRIGGERED[12] event */
+#define EGU_INTENSET_TRIGGERED12_Pos (12UL) /*!< Position of TRIGGERED12 field. */
+#define EGU_INTENSET_TRIGGERED12_Msk (0x1UL << EGU_INTENSET_TRIGGERED12_Pos) /*!< Bit mask of TRIGGERED12 field. */
+#define EGU_INTENSET_TRIGGERED12_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED12_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED12_Set (1UL) /*!< Enable */
+
+/* Bit 11 : Write '1' to Enable interrupt for TRIGGERED[11] event */
+#define EGU_INTENSET_TRIGGERED11_Pos (11UL) /*!< Position of TRIGGERED11 field. */
+#define EGU_INTENSET_TRIGGERED11_Msk (0x1UL << EGU_INTENSET_TRIGGERED11_Pos) /*!< Bit mask of TRIGGERED11 field. */
+#define EGU_INTENSET_TRIGGERED11_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED11_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED11_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to Enable interrupt for TRIGGERED[10] event */
+#define EGU_INTENSET_TRIGGERED10_Pos (10UL) /*!< Position of TRIGGERED10 field. */
+#define EGU_INTENSET_TRIGGERED10_Msk (0x1UL << EGU_INTENSET_TRIGGERED10_Pos) /*!< Bit mask of TRIGGERED10 field. */
+#define EGU_INTENSET_TRIGGERED10_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED10_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED10_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to Enable interrupt for TRIGGERED[9] event */
+#define EGU_INTENSET_TRIGGERED9_Pos (9UL) /*!< Position of TRIGGERED9 field. */
+#define EGU_INTENSET_TRIGGERED9_Msk (0x1UL << EGU_INTENSET_TRIGGERED9_Pos) /*!< Bit mask of TRIGGERED9 field. */
+#define EGU_INTENSET_TRIGGERED9_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED9_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED9_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to Enable interrupt for TRIGGERED[8] event */
+#define EGU_INTENSET_TRIGGERED8_Pos (8UL) /*!< Position of TRIGGERED8 field. */
+#define EGU_INTENSET_TRIGGERED8_Msk (0x1UL << EGU_INTENSET_TRIGGERED8_Pos) /*!< Bit mask of TRIGGERED8 field. */
+#define EGU_INTENSET_TRIGGERED8_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED8_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED8_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for TRIGGERED[7] event */
+#define EGU_INTENSET_TRIGGERED7_Pos (7UL) /*!< Position of TRIGGERED7 field. */
+#define EGU_INTENSET_TRIGGERED7_Msk (0x1UL << EGU_INTENSET_TRIGGERED7_Pos) /*!< Bit mask of TRIGGERED7 field. */
+#define EGU_INTENSET_TRIGGERED7_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED7_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED7_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for TRIGGERED[6] event */
+#define EGU_INTENSET_TRIGGERED6_Pos (6UL) /*!< Position of TRIGGERED6 field. */
+#define EGU_INTENSET_TRIGGERED6_Msk (0x1UL << EGU_INTENSET_TRIGGERED6_Pos) /*!< Bit mask of TRIGGERED6 field. */
+#define EGU_INTENSET_TRIGGERED6_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED6_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED6_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for TRIGGERED[5] event */
+#define EGU_INTENSET_TRIGGERED5_Pos (5UL) /*!< Position of TRIGGERED5 field. */
+#define EGU_INTENSET_TRIGGERED5_Msk (0x1UL << EGU_INTENSET_TRIGGERED5_Pos) /*!< Bit mask of TRIGGERED5 field. */
+#define EGU_INTENSET_TRIGGERED5_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED5_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED5_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for TRIGGERED[4] event */
+#define EGU_INTENSET_TRIGGERED4_Pos (4UL) /*!< Position of TRIGGERED4 field. */
+#define EGU_INTENSET_TRIGGERED4_Msk (0x1UL << EGU_INTENSET_TRIGGERED4_Pos) /*!< Bit mask of TRIGGERED4 field. */
+#define EGU_INTENSET_TRIGGERED4_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED4_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED4_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for TRIGGERED[3] event */
+#define EGU_INTENSET_TRIGGERED3_Pos (3UL) /*!< Position of TRIGGERED3 field. */
+#define EGU_INTENSET_TRIGGERED3_Msk (0x1UL << EGU_INTENSET_TRIGGERED3_Pos) /*!< Bit mask of TRIGGERED3 field. */
+#define EGU_INTENSET_TRIGGERED3_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED3_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED3_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for TRIGGERED[2] event */
+#define EGU_INTENSET_TRIGGERED2_Pos (2UL) /*!< Position of TRIGGERED2 field. */
+#define EGU_INTENSET_TRIGGERED2_Msk (0x1UL << EGU_INTENSET_TRIGGERED2_Pos) /*!< Bit mask of TRIGGERED2 field. */
+#define EGU_INTENSET_TRIGGERED2_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED2_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED2_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for TRIGGERED[1] event */
+#define EGU_INTENSET_TRIGGERED1_Pos (1UL) /*!< Position of TRIGGERED1 field. */
+#define EGU_INTENSET_TRIGGERED1_Msk (0x1UL << EGU_INTENSET_TRIGGERED1_Pos) /*!< Bit mask of TRIGGERED1 field. */
+#define EGU_INTENSET_TRIGGERED1_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED1_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED1_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for TRIGGERED[0] event */
+#define EGU_INTENSET_TRIGGERED0_Pos (0UL) /*!< Position of TRIGGERED0 field. */
+#define EGU_INTENSET_TRIGGERED0_Msk (0x1UL << EGU_INTENSET_TRIGGERED0_Pos) /*!< Bit mask of TRIGGERED0 field. */
+#define EGU_INTENSET_TRIGGERED0_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENSET_TRIGGERED0_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENSET_TRIGGERED0_Set (1UL) /*!< Enable */
+
+/* Register: EGU_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 15 : Write '1' to Disable interrupt for TRIGGERED[15] event */
+#define EGU_INTENCLR_TRIGGERED15_Pos (15UL) /*!< Position of TRIGGERED15 field. */
+#define EGU_INTENCLR_TRIGGERED15_Msk (0x1UL << EGU_INTENCLR_TRIGGERED15_Pos) /*!< Bit mask of TRIGGERED15 field. */
+#define EGU_INTENCLR_TRIGGERED15_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED15_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED15_Clear (1UL) /*!< Disable */
+
+/* Bit 14 : Write '1' to Disable interrupt for TRIGGERED[14] event */
+#define EGU_INTENCLR_TRIGGERED14_Pos (14UL) /*!< Position of TRIGGERED14 field. */
+#define EGU_INTENCLR_TRIGGERED14_Msk (0x1UL << EGU_INTENCLR_TRIGGERED14_Pos) /*!< Bit mask of TRIGGERED14 field. */
+#define EGU_INTENCLR_TRIGGERED14_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED14_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED14_Clear (1UL) /*!< Disable */
+
+/* Bit 13 : Write '1' to Disable interrupt for TRIGGERED[13] event */
+#define EGU_INTENCLR_TRIGGERED13_Pos (13UL) /*!< Position of TRIGGERED13 field. */
+#define EGU_INTENCLR_TRIGGERED13_Msk (0x1UL << EGU_INTENCLR_TRIGGERED13_Pos) /*!< Bit mask of TRIGGERED13 field. */
+#define EGU_INTENCLR_TRIGGERED13_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED13_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED13_Clear (1UL) /*!< Disable */
+
+/* Bit 12 : Write '1' to Disable interrupt for TRIGGERED[12] event */
+#define EGU_INTENCLR_TRIGGERED12_Pos (12UL) /*!< Position of TRIGGERED12 field. */
+#define EGU_INTENCLR_TRIGGERED12_Msk (0x1UL << EGU_INTENCLR_TRIGGERED12_Pos) /*!< Bit mask of TRIGGERED12 field. */
+#define EGU_INTENCLR_TRIGGERED12_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED12_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED12_Clear (1UL) /*!< Disable */
+
+/* Bit 11 : Write '1' to Disable interrupt for TRIGGERED[11] event */
+#define EGU_INTENCLR_TRIGGERED11_Pos (11UL) /*!< Position of TRIGGERED11 field. */
+#define EGU_INTENCLR_TRIGGERED11_Msk (0x1UL << EGU_INTENCLR_TRIGGERED11_Pos) /*!< Bit mask of TRIGGERED11 field. */
+#define EGU_INTENCLR_TRIGGERED11_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED11_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED11_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to Disable interrupt for TRIGGERED[10] event */
+#define EGU_INTENCLR_TRIGGERED10_Pos (10UL) /*!< Position of TRIGGERED10 field. */
+#define EGU_INTENCLR_TRIGGERED10_Msk (0x1UL << EGU_INTENCLR_TRIGGERED10_Pos) /*!< Bit mask of TRIGGERED10 field. */
+#define EGU_INTENCLR_TRIGGERED10_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED10_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED10_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to Disable interrupt for TRIGGERED[9] event */
+#define EGU_INTENCLR_TRIGGERED9_Pos (9UL) /*!< Position of TRIGGERED9 field. */
+#define EGU_INTENCLR_TRIGGERED9_Msk (0x1UL << EGU_INTENCLR_TRIGGERED9_Pos) /*!< Bit mask of TRIGGERED9 field. */
+#define EGU_INTENCLR_TRIGGERED9_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED9_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED9_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to Disable interrupt for TRIGGERED[8] event */
+#define EGU_INTENCLR_TRIGGERED8_Pos (8UL) /*!< Position of TRIGGERED8 field. */
+#define EGU_INTENCLR_TRIGGERED8_Msk (0x1UL << EGU_INTENCLR_TRIGGERED8_Pos) /*!< Bit mask of TRIGGERED8 field. */
+#define EGU_INTENCLR_TRIGGERED8_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED8_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED8_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for TRIGGERED[7] event */
+#define EGU_INTENCLR_TRIGGERED7_Pos (7UL) /*!< Position of TRIGGERED7 field. */
+#define EGU_INTENCLR_TRIGGERED7_Msk (0x1UL << EGU_INTENCLR_TRIGGERED7_Pos) /*!< Bit mask of TRIGGERED7 field. */
+#define EGU_INTENCLR_TRIGGERED7_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED7_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED7_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for TRIGGERED[6] event */
+#define EGU_INTENCLR_TRIGGERED6_Pos (6UL) /*!< Position of TRIGGERED6 field. */
+#define EGU_INTENCLR_TRIGGERED6_Msk (0x1UL << EGU_INTENCLR_TRIGGERED6_Pos) /*!< Bit mask of TRIGGERED6 field. */
+#define EGU_INTENCLR_TRIGGERED6_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED6_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED6_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for TRIGGERED[5] event */
+#define EGU_INTENCLR_TRIGGERED5_Pos (5UL) /*!< Position of TRIGGERED5 field. */
+#define EGU_INTENCLR_TRIGGERED5_Msk (0x1UL << EGU_INTENCLR_TRIGGERED5_Pos) /*!< Bit mask of TRIGGERED5 field. */
+#define EGU_INTENCLR_TRIGGERED5_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED5_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED5_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for TRIGGERED[4] event */
+#define EGU_INTENCLR_TRIGGERED4_Pos (4UL) /*!< Position of TRIGGERED4 field. */
+#define EGU_INTENCLR_TRIGGERED4_Msk (0x1UL << EGU_INTENCLR_TRIGGERED4_Pos) /*!< Bit mask of TRIGGERED4 field. */
+#define EGU_INTENCLR_TRIGGERED4_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED4_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED4_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for TRIGGERED[3] event */
+#define EGU_INTENCLR_TRIGGERED3_Pos (3UL) /*!< Position of TRIGGERED3 field. */
+#define EGU_INTENCLR_TRIGGERED3_Msk (0x1UL << EGU_INTENCLR_TRIGGERED3_Pos) /*!< Bit mask of TRIGGERED3 field. */
+#define EGU_INTENCLR_TRIGGERED3_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED3_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED3_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for TRIGGERED[2] event */
+#define EGU_INTENCLR_TRIGGERED2_Pos (2UL) /*!< Position of TRIGGERED2 field. */
+#define EGU_INTENCLR_TRIGGERED2_Msk (0x1UL << EGU_INTENCLR_TRIGGERED2_Pos) /*!< Bit mask of TRIGGERED2 field. */
+#define EGU_INTENCLR_TRIGGERED2_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED2_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED2_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for TRIGGERED[1] event */
+#define EGU_INTENCLR_TRIGGERED1_Pos (1UL) /*!< Position of TRIGGERED1 field. */
+#define EGU_INTENCLR_TRIGGERED1_Msk (0x1UL << EGU_INTENCLR_TRIGGERED1_Pos) /*!< Bit mask of TRIGGERED1 field. */
+#define EGU_INTENCLR_TRIGGERED1_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED1_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED1_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for TRIGGERED[0] event */
+#define EGU_INTENCLR_TRIGGERED0_Pos (0UL) /*!< Position of TRIGGERED0 field. */
+#define EGU_INTENCLR_TRIGGERED0_Msk (0x1UL << EGU_INTENCLR_TRIGGERED0_Pos) /*!< Bit mask of TRIGGERED0 field. */
+#define EGU_INTENCLR_TRIGGERED0_Disabled (0UL) /*!< Read: Disabled */
+#define EGU_INTENCLR_TRIGGERED0_Enabled (1UL) /*!< Read: Enabled */
+#define EGU_INTENCLR_TRIGGERED0_Clear (1UL) /*!< Disable */
+
+
+/* Peripheral: FICR */
+/* Description: Factory Information Configuration Registers */
+
+/* Register: FICR_CODEPAGESIZE */
+/* Description: Code memory page size */
+
+/* Bits 31..0 : Code memory page size */
+#define FICR_CODEPAGESIZE_CODEPAGESIZE_Pos (0UL) /*!< Position of CODEPAGESIZE field. */
+#define FICR_CODEPAGESIZE_CODEPAGESIZE_Msk (0xFFFFFFFFUL << FICR_CODEPAGESIZE_CODEPAGESIZE_Pos) /*!< Bit mask of CODEPAGESIZE field. */
+
+/* Register: FICR_CODESIZE */
+/* Description: Code memory size */
+
+/* Bits 31..0 : Code memory size in number of pages */
+#define FICR_CODESIZE_CODESIZE_Pos (0UL) /*!< Position of CODESIZE field. */
+#define FICR_CODESIZE_CODESIZE_Msk (0xFFFFFFFFUL << FICR_CODESIZE_CODESIZE_Pos) /*!< Bit mask of CODESIZE field. */
+
+/* Register: FICR_DEVICEID */
+/* Description: Description collection[0]: Device identifier */
+
+/* Bits 31..0 : 64 bit unique device identifier */
+#define FICR_DEVICEID_DEVICEID_Pos (0UL) /*!< Position of DEVICEID field. */
+#define FICR_DEVICEID_DEVICEID_Msk (0xFFFFFFFFUL << FICR_DEVICEID_DEVICEID_Pos) /*!< Bit mask of DEVICEID field. */
+
+/* Register: FICR_ER */
+/* Description: Description collection[0]: Encryption Root, word 0 */
+
+/* Bits 31..0 : Encryption Root, word n */
+#define FICR_ER_ER_Pos (0UL) /*!< Position of ER field. */
+#define FICR_ER_ER_Msk (0xFFFFFFFFUL << FICR_ER_ER_Pos) /*!< Bit mask of ER field. */
+
+/* Register: FICR_IR */
+/* Description: Description collection[0]: Identity Root, word 0 */
+
+/* Bits 31..0 : Identity Root, word n */
+#define FICR_IR_IR_Pos (0UL) /*!< Position of IR field. */
+#define FICR_IR_IR_Msk (0xFFFFFFFFUL << FICR_IR_IR_Pos) /*!< Bit mask of IR field. */
+
+/* Register: FICR_DEVICEADDRTYPE */
+/* Description: Device address type */
+
+/* Bit 0 : Device address type */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Pos (0UL) /*!< Position of DEVICEADDRTYPE field. */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Msk (0x1UL << FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Pos) /*!< Bit mask of DEVICEADDRTYPE field. */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Public (0UL) /*!< Public address */
+#define FICR_DEVICEADDRTYPE_DEVICEADDRTYPE_Random (1UL) /*!< Random address */
+
+/* Register: FICR_DEVICEADDR */
+/* Description: Description collection[0]: Device address 0 */
+
+/* Bits 31..0 : 48 bit device address */
+#define FICR_DEVICEADDR_DEVICEADDR_Pos (0UL) /*!< Position of DEVICEADDR field. */
+#define FICR_DEVICEADDR_DEVICEADDR_Msk (0xFFFFFFFFUL << FICR_DEVICEADDR_DEVICEADDR_Pos) /*!< Bit mask of DEVICEADDR field. */
+
+/* Register: FICR_INFO_PART */
+/* Description: Part code */
+
+/* Bits 31..0 : Part code */
+#define FICR_INFO_PART_PART_Pos (0UL) /*!< Position of PART field. */
+#define FICR_INFO_PART_PART_Msk (0xFFFFFFFFUL << FICR_INFO_PART_PART_Pos) /*!< Bit mask of PART field. */
+#define FICR_INFO_PART_PART_N52832 (0x52832UL) /*!< nRF52832 */
+#define FICR_INFO_PART_PART_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_INFO_VARIANT */
+/* Description: Part Variant, Hardware version and Production configuration */
+
+/* Bits 31..0 : Part Variant, Hardware version and Production configuration, encoded as ASCII */
+#define FICR_INFO_VARIANT_VARIANT_Pos (0UL) /*!< Position of VARIANT field. */
+#define FICR_INFO_VARIANT_VARIANT_Msk (0xFFFFFFFFUL << FICR_INFO_VARIANT_VARIANT_Pos) /*!< Bit mask of VARIANT field. */
+#define FICR_INFO_VARIANT_VARIANT_AAAA (0x41414141UL) /*!< AAAA */
+#define FICR_INFO_VARIANT_VARIANT_AAAB (0x41414142UL) /*!< AAAB */
+#define FICR_INFO_VARIANT_VARIANT_AAB0 (0x41414230UL) /*!< AAB0 */
+#define FICR_INFO_VARIANT_VARIANT_AABA (0x41414241UL) /*!< AABA */
+#define FICR_INFO_VARIANT_VARIANT_AABB (0x41414242UL) /*!< AABB */
+#define FICR_INFO_VARIANT_VARIANT_AAE0 (0x41414530UL) /*!< AAE0 */
+#define FICR_INFO_VARIANT_VARIANT_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_INFO_PACKAGE */
+/* Description: Package option */
+
+/* Bits 31..0 : Package option */
+#define FICR_INFO_PACKAGE_PACKAGE_Pos (0UL) /*!< Position of PACKAGE field. */
+#define FICR_INFO_PACKAGE_PACKAGE_Msk (0xFFFFFFFFUL << FICR_INFO_PACKAGE_PACKAGE_Pos) /*!< Bit mask of PACKAGE field. */
+#define FICR_INFO_PACKAGE_PACKAGE_QF (0x2000UL) /*!< QFxx - 48-pin QFN */
+#define FICR_INFO_PACKAGE_PACKAGE_CH (0x2001UL) /*!< CHxx - 7x8 WLCSP 56 balls */
+#define FICR_INFO_PACKAGE_PACKAGE_CI (0x2002UL) /*!< CIxx - 7x8 WLCSP 56 balls */
+#define FICR_INFO_PACKAGE_PACKAGE_CK (0x2005UL) /*!< CKxx - 7x8 WLCSP 56 balls with backside coating for light protection */
+#define FICR_INFO_PACKAGE_PACKAGE_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_INFO_RAM */
+/* Description: RAM variant */
+
+/* Bits 31..0 : RAM variant */
+#define FICR_INFO_RAM_RAM_Pos (0UL) /*!< Position of RAM field. */
+#define FICR_INFO_RAM_RAM_Msk (0xFFFFFFFFUL << FICR_INFO_RAM_RAM_Pos) /*!< Bit mask of RAM field. */
+#define FICR_INFO_RAM_RAM_K16 (0x10UL) /*!< 16 kByte RAM */
+#define FICR_INFO_RAM_RAM_K32 (0x20UL) /*!< 32 kByte RAM */
+#define FICR_INFO_RAM_RAM_K64 (0x40UL) /*!< 64 kByte RAM */
+#define FICR_INFO_RAM_RAM_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_INFO_FLASH */
+/* Description: Flash variant */
+
+/* Bits 31..0 : Flash variant */
+#define FICR_INFO_FLASH_FLASH_Pos (0UL) /*!< Position of FLASH field. */
+#define FICR_INFO_FLASH_FLASH_Msk (0xFFFFFFFFUL << FICR_INFO_FLASH_FLASH_Pos) /*!< Bit mask of FLASH field. */
+#define FICR_INFO_FLASH_FLASH_K128 (0x80UL) /*!< 128 kByte FLASH */
+#define FICR_INFO_FLASH_FLASH_K256 (0x100UL) /*!< 256 kByte FLASH */
+#define FICR_INFO_FLASH_FLASH_K512 (0x200UL) /*!< 512 kByte FLASH */
+#define FICR_INFO_FLASH_FLASH_Unspecified (0xFFFFFFFFUL) /*!< Unspecified */
+
+/* Register: FICR_TEMP_A0 */
+/* Description: Slope definition A0. */
+
+/* Bits 11..0 : A (slope definition) register. */
+#define FICR_TEMP_A0_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A0_A_Msk (0xFFFUL << FICR_TEMP_A0_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A1 */
+/* Description: Slope definition A1. */
+
+/* Bits 11..0 : A (slope definition) register. */
+#define FICR_TEMP_A1_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A1_A_Msk (0xFFFUL << FICR_TEMP_A1_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A2 */
+/* Description: Slope definition A2. */
+
+/* Bits 11..0 : A (slope definition) register. */
+#define FICR_TEMP_A2_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A2_A_Msk (0xFFFUL << FICR_TEMP_A2_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A3 */
+/* Description: Slope definition A3. */
+
+/* Bits 11..0 : A (slope definition) register. */
+#define FICR_TEMP_A3_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A3_A_Msk (0xFFFUL << FICR_TEMP_A3_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A4 */
+/* Description: Slope definition A4. */
+
+/* Bits 11..0 : A (slope definition) register. */
+#define FICR_TEMP_A4_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A4_A_Msk (0xFFFUL << FICR_TEMP_A4_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_A5 */
+/* Description: Slope definition A5. */
+
+/* Bits 11..0 : A (slope definition) register. */
+#define FICR_TEMP_A5_A_Pos (0UL) /*!< Position of A field. */
+#define FICR_TEMP_A5_A_Msk (0xFFFUL << FICR_TEMP_A5_A_Pos) /*!< Bit mask of A field. */
+
+/* Register: FICR_TEMP_B0 */
+/* Description: y-intercept B0. */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B0_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B0_B_Msk (0x3FFFUL << FICR_TEMP_B0_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B1 */
+/* Description: y-intercept B1. */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B1_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B1_B_Msk (0x3FFFUL << FICR_TEMP_B1_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B2 */
+/* Description: y-intercept B2. */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B2_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B2_B_Msk (0x3FFFUL << FICR_TEMP_B2_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B3 */
+/* Description: y-intercept B3. */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B3_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B3_B_Msk (0x3FFFUL << FICR_TEMP_B3_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B4 */
+/* Description: y-intercept B4. */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B4_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B4_B_Msk (0x3FFFUL << FICR_TEMP_B4_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_B5 */
+/* Description: y-intercept B5. */
+
+/* Bits 13..0 : B (y-intercept) */
+#define FICR_TEMP_B5_B_Pos (0UL) /*!< Position of B field. */
+#define FICR_TEMP_B5_B_Msk (0x3FFFUL << FICR_TEMP_B5_B_Pos) /*!< Bit mask of B field. */
+
+/* Register: FICR_TEMP_T0 */
+/* Description: Segment end T0. */
+
+/* Bits 7..0 : T (segment end)register. */
+#define FICR_TEMP_T0_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T0_T_Msk (0xFFUL << FICR_TEMP_T0_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_TEMP_T1 */
+/* Description: Segment end T1. */
+
+/* Bits 7..0 : T (segment end)register. */
+#define FICR_TEMP_T1_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T1_T_Msk (0xFFUL << FICR_TEMP_T1_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_TEMP_T2 */
+/* Description: Segment end T2. */
+
+/* Bits 7..0 : T (segment end)register. */
+#define FICR_TEMP_T2_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T2_T_Msk (0xFFUL << FICR_TEMP_T2_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_TEMP_T3 */
+/* Description: Segment end T3. */
+
+/* Bits 7..0 : T (segment end)register. */
+#define FICR_TEMP_T3_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T3_T_Msk (0xFFUL << FICR_TEMP_T3_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_TEMP_T4 */
+/* Description: Segment end T4. */
+
+/* Bits 7..0 : T (segment end)register. */
+#define FICR_TEMP_T4_T_Pos (0UL) /*!< Position of T field. */
+#define FICR_TEMP_T4_T_Msk (0xFFUL << FICR_TEMP_T4_T_Pos) /*!< Bit mask of T field. */
+
+/* Register: FICR_NFC_TAGHEADER0 */
+/* Description: Default header for NFC Tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+
+/* Bits 31..24 : Unique identifier byte 3 */
+#define FICR_NFC_TAGHEADER0_UD3_Pos (24UL) /*!< Position of UD3 field. */
+#define FICR_NFC_TAGHEADER0_UD3_Msk (0xFFUL << FICR_NFC_TAGHEADER0_UD3_Pos) /*!< Bit mask of UD3 field. */
+
+/* Bits 23..16 : Unique identifier byte 2 */
+#define FICR_NFC_TAGHEADER0_UD2_Pos (16UL) /*!< Position of UD2 field. */
+#define FICR_NFC_TAGHEADER0_UD2_Msk (0xFFUL << FICR_NFC_TAGHEADER0_UD2_Pos) /*!< Bit mask of UD2 field. */
+
+/* Bits 15..8 : Unique identifier byte 1 */
+#define FICR_NFC_TAGHEADER0_UD1_Pos (8UL) /*!< Position of UD1 field. */
+#define FICR_NFC_TAGHEADER0_UD1_Msk (0xFFUL << FICR_NFC_TAGHEADER0_UD1_Pos) /*!< Bit mask of UD1 field. */
+
+/* Bits 7..0 : Default Manufacturer ID: Nordic Semiconductor ASA has ICM 0x5F */
+#define FICR_NFC_TAGHEADER0_MFGID_Pos (0UL) /*!< Position of MFGID field. */
+#define FICR_NFC_TAGHEADER0_MFGID_Msk (0xFFUL << FICR_NFC_TAGHEADER0_MFGID_Pos) /*!< Bit mask of MFGID field. */
+
+/* Register: FICR_NFC_TAGHEADER1 */
+/* Description: Default header for NFC Tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+
+/* Bits 31..24 : Unique identifier byte 7 */
+#define FICR_NFC_TAGHEADER1_UD7_Pos (24UL) /*!< Position of UD7 field. */
+#define FICR_NFC_TAGHEADER1_UD7_Msk (0xFFUL << FICR_NFC_TAGHEADER1_UD7_Pos) /*!< Bit mask of UD7 field. */
+
+/* Bits 23..16 : Unique identifier byte 6 */
+#define FICR_NFC_TAGHEADER1_UD6_Pos (16UL) /*!< Position of UD6 field. */
+#define FICR_NFC_TAGHEADER1_UD6_Msk (0xFFUL << FICR_NFC_TAGHEADER1_UD6_Pos) /*!< Bit mask of UD6 field. */
+
+/* Bits 15..8 : Unique identifier byte 5 */
+#define FICR_NFC_TAGHEADER1_UD5_Pos (8UL) /*!< Position of UD5 field. */
+#define FICR_NFC_TAGHEADER1_UD5_Msk (0xFFUL << FICR_NFC_TAGHEADER1_UD5_Pos) /*!< Bit mask of UD5 field. */
+
+/* Bits 7..0 : Unique identifier byte 4 */
+#define FICR_NFC_TAGHEADER1_UD4_Pos (0UL) /*!< Position of UD4 field. */
+#define FICR_NFC_TAGHEADER1_UD4_Msk (0xFFUL << FICR_NFC_TAGHEADER1_UD4_Pos) /*!< Bit mask of UD4 field. */
+
+/* Register: FICR_NFC_TAGHEADER2 */
+/* Description: Default header for NFC Tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+
+/* Bits 31..24 : Unique identifier byte 11 */
+#define FICR_NFC_TAGHEADER2_UD11_Pos (24UL) /*!< Position of UD11 field. */
+#define FICR_NFC_TAGHEADER2_UD11_Msk (0xFFUL << FICR_NFC_TAGHEADER2_UD11_Pos) /*!< Bit mask of UD11 field. */
+
+/* Bits 23..16 : Unique identifier byte 10 */
+#define FICR_NFC_TAGHEADER2_UD10_Pos (16UL) /*!< Position of UD10 field. */
+#define FICR_NFC_TAGHEADER2_UD10_Msk (0xFFUL << FICR_NFC_TAGHEADER2_UD10_Pos) /*!< Bit mask of UD10 field. */
+
+/* Bits 15..8 : Unique identifier byte 9 */
+#define FICR_NFC_TAGHEADER2_UD9_Pos (8UL) /*!< Position of UD9 field. */
+#define FICR_NFC_TAGHEADER2_UD9_Msk (0xFFUL << FICR_NFC_TAGHEADER2_UD9_Pos) /*!< Bit mask of UD9 field. */
+
+/* Bits 7..0 : Unique identifier byte 8 */
+#define FICR_NFC_TAGHEADER2_UD8_Pos (0UL) /*!< Position of UD8 field. */
+#define FICR_NFC_TAGHEADER2_UD8_Msk (0xFFUL << FICR_NFC_TAGHEADER2_UD8_Pos) /*!< Bit mask of UD8 field. */
+
+/* Register: FICR_NFC_TAGHEADER3 */
+/* Description: Default header for NFC Tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST. */
+
+/* Bits 31..24 : Unique identifier byte 15 */
+#define FICR_NFC_TAGHEADER3_UD15_Pos (24UL) /*!< Position of UD15 field. */
+#define FICR_NFC_TAGHEADER3_UD15_Msk (0xFFUL << FICR_NFC_TAGHEADER3_UD15_Pos) /*!< Bit mask of UD15 field. */
+
+/* Bits 23..16 : Unique identifier byte 14 */
+#define FICR_NFC_TAGHEADER3_UD14_Pos (16UL) /*!< Position of UD14 field. */
+#define FICR_NFC_TAGHEADER3_UD14_Msk (0xFFUL << FICR_NFC_TAGHEADER3_UD14_Pos) /*!< Bit mask of UD14 field. */
+
+/* Bits 15..8 : Unique identifier byte 13 */
+#define FICR_NFC_TAGHEADER3_UD13_Pos (8UL) /*!< Position of UD13 field. */
+#define FICR_NFC_TAGHEADER3_UD13_Msk (0xFFUL << FICR_NFC_TAGHEADER3_UD13_Pos) /*!< Bit mask of UD13 field. */
+
+/* Bits 7..0 : Unique identifier byte 12 */
+#define FICR_NFC_TAGHEADER3_UD12_Pos (0UL) /*!< Position of UD12 field. */
+#define FICR_NFC_TAGHEADER3_UD12_Msk (0xFFUL << FICR_NFC_TAGHEADER3_UD12_Pos) /*!< Bit mask of UD12 field. */
+
+
+/* Peripheral: GPIOTE */
+/* Description: GPIO Tasks and Events */
+
+/* Register: GPIOTE_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 31 : Write '1' to Enable interrupt for PORT event */
+#define GPIOTE_INTENSET_PORT_Pos (31UL) /*!< Position of PORT field. */
+#define GPIOTE_INTENSET_PORT_Msk (0x1UL << GPIOTE_INTENSET_PORT_Pos) /*!< Bit mask of PORT field. */
+#define GPIOTE_INTENSET_PORT_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_PORT_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_PORT_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for IN[7] event */
+#define GPIOTE_INTENSET_IN7_Pos (7UL) /*!< Position of IN7 field. */
+#define GPIOTE_INTENSET_IN7_Msk (0x1UL << GPIOTE_INTENSET_IN7_Pos) /*!< Bit mask of IN7 field. */
+#define GPIOTE_INTENSET_IN7_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN7_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN7_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for IN[6] event */
+#define GPIOTE_INTENSET_IN6_Pos (6UL) /*!< Position of IN6 field. */
+#define GPIOTE_INTENSET_IN6_Msk (0x1UL << GPIOTE_INTENSET_IN6_Pos) /*!< Bit mask of IN6 field. */
+#define GPIOTE_INTENSET_IN6_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN6_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN6_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for IN[5] event */
+#define GPIOTE_INTENSET_IN5_Pos (5UL) /*!< Position of IN5 field. */
+#define GPIOTE_INTENSET_IN5_Msk (0x1UL << GPIOTE_INTENSET_IN5_Pos) /*!< Bit mask of IN5 field. */
+#define GPIOTE_INTENSET_IN5_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN5_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN5_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for IN[4] event */
+#define GPIOTE_INTENSET_IN4_Pos (4UL) /*!< Position of IN4 field. */
+#define GPIOTE_INTENSET_IN4_Msk (0x1UL << GPIOTE_INTENSET_IN4_Pos) /*!< Bit mask of IN4 field. */
+#define GPIOTE_INTENSET_IN4_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN4_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN4_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for IN[3] event */
+#define GPIOTE_INTENSET_IN3_Pos (3UL) /*!< Position of IN3 field. */
+#define GPIOTE_INTENSET_IN3_Msk (0x1UL << GPIOTE_INTENSET_IN3_Pos) /*!< Bit mask of IN3 field. */
+#define GPIOTE_INTENSET_IN3_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN3_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN3_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for IN[2] event */
+#define GPIOTE_INTENSET_IN2_Pos (2UL) /*!< Position of IN2 field. */
+#define GPIOTE_INTENSET_IN2_Msk (0x1UL << GPIOTE_INTENSET_IN2_Pos) /*!< Bit mask of IN2 field. */
+#define GPIOTE_INTENSET_IN2_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN2_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN2_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for IN[1] event */
+#define GPIOTE_INTENSET_IN1_Pos (1UL) /*!< Position of IN1 field. */
+#define GPIOTE_INTENSET_IN1_Msk (0x1UL << GPIOTE_INTENSET_IN1_Pos) /*!< Bit mask of IN1 field. */
+#define GPIOTE_INTENSET_IN1_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN1_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN1_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for IN[0] event */
+#define GPIOTE_INTENSET_IN0_Pos (0UL) /*!< Position of IN0 field. */
+#define GPIOTE_INTENSET_IN0_Msk (0x1UL << GPIOTE_INTENSET_IN0_Pos) /*!< Bit mask of IN0 field. */
+#define GPIOTE_INTENSET_IN0_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENSET_IN0_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENSET_IN0_Set (1UL) /*!< Enable */
+
+/* Register: GPIOTE_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 31 : Write '1' to Disable interrupt for PORT event */
+#define GPIOTE_INTENCLR_PORT_Pos (31UL) /*!< Position of PORT field. */
+#define GPIOTE_INTENCLR_PORT_Msk (0x1UL << GPIOTE_INTENCLR_PORT_Pos) /*!< Bit mask of PORT field. */
+#define GPIOTE_INTENCLR_PORT_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_PORT_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_PORT_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for IN[7] event */
+#define GPIOTE_INTENCLR_IN7_Pos (7UL) /*!< Position of IN7 field. */
+#define GPIOTE_INTENCLR_IN7_Msk (0x1UL << GPIOTE_INTENCLR_IN7_Pos) /*!< Bit mask of IN7 field. */
+#define GPIOTE_INTENCLR_IN7_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN7_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN7_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for IN[6] event */
+#define GPIOTE_INTENCLR_IN6_Pos (6UL) /*!< Position of IN6 field. */
+#define GPIOTE_INTENCLR_IN6_Msk (0x1UL << GPIOTE_INTENCLR_IN6_Pos) /*!< Bit mask of IN6 field. */
+#define GPIOTE_INTENCLR_IN6_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN6_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN6_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for IN[5] event */
+#define GPIOTE_INTENCLR_IN5_Pos (5UL) /*!< Position of IN5 field. */
+#define GPIOTE_INTENCLR_IN5_Msk (0x1UL << GPIOTE_INTENCLR_IN5_Pos) /*!< Bit mask of IN5 field. */
+#define GPIOTE_INTENCLR_IN5_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN5_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN5_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for IN[4] event */
+#define GPIOTE_INTENCLR_IN4_Pos (4UL) /*!< Position of IN4 field. */
+#define GPIOTE_INTENCLR_IN4_Msk (0x1UL << GPIOTE_INTENCLR_IN4_Pos) /*!< Bit mask of IN4 field. */
+#define GPIOTE_INTENCLR_IN4_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN4_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN4_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for IN[3] event */
+#define GPIOTE_INTENCLR_IN3_Pos (3UL) /*!< Position of IN3 field. */
+#define GPIOTE_INTENCLR_IN3_Msk (0x1UL << GPIOTE_INTENCLR_IN3_Pos) /*!< Bit mask of IN3 field. */
+#define GPIOTE_INTENCLR_IN3_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN3_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN3_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for IN[2] event */
+#define GPIOTE_INTENCLR_IN2_Pos (2UL) /*!< Position of IN2 field. */
+#define GPIOTE_INTENCLR_IN2_Msk (0x1UL << GPIOTE_INTENCLR_IN2_Pos) /*!< Bit mask of IN2 field. */
+#define GPIOTE_INTENCLR_IN2_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN2_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN2_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for IN[1] event */
+#define GPIOTE_INTENCLR_IN1_Pos (1UL) /*!< Position of IN1 field. */
+#define GPIOTE_INTENCLR_IN1_Msk (0x1UL << GPIOTE_INTENCLR_IN1_Pos) /*!< Bit mask of IN1 field. */
+#define GPIOTE_INTENCLR_IN1_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN1_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN1_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for IN[0] event */
+#define GPIOTE_INTENCLR_IN0_Pos (0UL) /*!< Position of IN0 field. */
+#define GPIOTE_INTENCLR_IN0_Msk (0x1UL << GPIOTE_INTENCLR_IN0_Pos) /*!< Bit mask of IN0 field. */
+#define GPIOTE_INTENCLR_IN0_Disabled (0UL) /*!< Read: Disabled */
+#define GPIOTE_INTENCLR_IN0_Enabled (1UL) /*!< Read: Enabled */
+#define GPIOTE_INTENCLR_IN0_Clear (1UL) /*!< Disable */
+
+/* Register: GPIOTE_CONFIG */
+/* Description: Description collection[0]: Configuration for OUT[n], SET[n] and CLR[n] tasks and IN[n] event */
+
+/* Bit 20 : When in task mode: Initial value of the output when the GPIOTE channel is configured. When in event mode: No effect. */
+#define GPIOTE_CONFIG_OUTINIT_Pos (20UL) /*!< Position of OUTINIT field. */
+#define GPIOTE_CONFIG_OUTINIT_Msk (0x1UL << GPIOTE_CONFIG_OUTINIT_Pos) /*!< Bit mask of OUTINIT field. */
+#define GPIOTE_CONFIG_OUTINIT_Low (0UL) /*!< Task mode: Initial value of pin before task triggering is low */
+#define GPIOTE_CONFIG_OUTINIT_High (1UL) /*!< Task mode: Initial value of pin before task triggering is high */
+
+/* Bits 17..16 : When In task mode: Operation to be performed on output when OUT[n] task is triggered. When In event mode: Operation on input that shall trigger IN[n] event. */
+#define GPIOTE_CONFIG_POLARITY_Pos (16UL) /*!< Position of POLARITY field. */
+#define GPIOTE_CONFIG_POLARITY_Msk (0x3UL << GPIOTE_CONFIG_POLARITY_Pos) /*!< Bit mask of POLARITY field. */
+#define GPIOTE_CONFIG_POLARITY_None (0UL) /*!< Task mode: No effect on pin from OUT[n] task. Event mode: no IN[n] event generated on pin activity. */
+#define GPIOTE_CONFIG_POLARITY_LoToHi (1UL) /*!< Task mode: Set pin from OUT[n] task. Event mode: Generate IN[n] event when rising edge on pin. */
+#define GPIOTE_CONFIG_POLARITY_HiToLo (2UL) /*!< Task mode: Clear pin from OUT[n] task. Event mode: Generate IN[n] event when falling edge on pin. */
+#define GPIOTE_CONFIG_POLARITY_Toggle (3UL) /*!< Task mode: Toggle pin from OUT[n]. Event mode: Generate IN[n] when any change on pin. */
+
+/* Bits 12..8 : GPIO number associated with SET[n], CLR[n] and OUT[n] tasks and IN[n] event */
+#define GPIOTE_CONFIG_PSEL_Pos (8UL) /*!< Position of PSEL field. */
+#define GPIOTE_CONFIG_PSEL_Msk (0x1FUL << GPIOTE_CONFIG_PSEL_Pos) /*!< Bit mask of PSEL field. */
+
+/* Bits 1..0 : Mode */
+#define GPIOTE_CONFIG_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define GPIOTE_CONFIG_MODE_Msk (0x3UL << GPIOTE_CONFIG_MODE_Pos) /*!< Bit mask of MODE field. */
+#define GPIOTE_CONFIG_MODE_Disabled (0UL) /*!< Disabled. Pin specified by PSEL will not be acquired by the GPIOTE module. */
+#define GPIOTE_CONFIG_MODE_Event (1UL) /*!< Event mode */
+#define GPIOTE_CONFIG_MODE_Task (3UL) /*!< Task mode */
+
+
+/* Peripheral: I2S */
+/* Description: Inter-IC Sound */
+
+/* Register: I2S_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 5 : Enable or disable interrupt for TXPTRUPD event */
+#define I2S_INTEN_TXPTRUPD_Pos (5UL) /*!< Position of TXPTRUPD field. */
+#define I2S_INTEN_TXPTRUPD_Msk (0x1UL << I2S_INTEN_TXPTRUPD_Pos) /*!< Bit mask of TXPTRUPD field. */
+#define I2S_INTEN_TXPTRUPD_Disabled (0UL) /*!< Disable */
+#define I2S_INTEN_TXPTRUPD_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for STOPPED event */
+#define I2S_INTEN_STOPPED_Pos (2UL) /*!< Position of STOPPED field. */
+#define I2S_INTEN_STOPPED_Msk (0x1UL << I2S_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define I2S_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define I2S_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for RXPTRUPD event */
+#define I2S_INTEN_RXPTRUPD_Pos (1UL) /*!< Position of RXPTRUPD field. */
+#define I2S_INTEN_RXPTRUPD_Msk (0x1UL << I2S_INTEN_RXPTRUPD_Pos) /*!< Bit mask of RXPTRUPD field. */
+#define I2S_INTEN_RXPTRUPD_Disabled (0UL) /*!< Disable */
+#define I2S_INTEN_RXPTRUPD_Enabled (1UL) /*!< Enable */
+
+/* Register: I2S_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 5 : Write '1' to Enable interrupt for TXPTRUPD event */
+#define I2S_INTENSET_TXPTRUPD_Pos (5UL) /*!< Position of TXPTRUPD field. */
+#define I2S_INTENSET_TXPTRUPD_Msk (0x1UL << I2S_INTENSET_TXPTRUPD_Pos) /*!< Bit mask of TXPTRUPD field. */
+#define I2S_INTENSET_TXPTRUPD_Disabled (0UL) /*!< Read: Disabled */
+#define I2S_INTENSET_TXPTRUPD_Enabled (1UL) /*!< Read: Enabled */
+#define I2S_INTENSET_TXPTRUPD_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for STOPPED event */
+#define I2S_INTENSET_STOPPED_Pos (2UL) /*!< Position of STOPPED field. */
+#define I2S_INTENSET_STOPPED_Msk (0x1UL << I2S_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define I2S_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define I2S_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define I2S_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for RXPTRUPD event */
+#define I2S_INTENSET_RXPTRUPD_Pos (1UL) /*!< Position of RXPTRUPD field. */
+#define I2S_INTENSET_RXPTRUPD_Msk (0x1UL << I2S_INTENSET_RXPTRUPD_Pos) /*!< Bit mask of RXPTRUPD field. */
+#define I2S_INTENSET_RXPTRUPD_Disabled (0UL) /*!< Read: Disabled */
+#define I2S_INTENSET_RXPTRUPD_Enabled (1UL) /*!< Read: Enabled */
+#define I2S_INTENSET_RXPTRUPD_Set (1UL) /*!< Enable */
+
+/* Register: I2S_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 5 : Write '1' to Disable interrupt for TXPTRUPD event */
+#define I2S_INTENCLR_TXPTRUPD_Pos (5UL) /*!< Position of TXPTRUPD field. */
+#define I2S_INTENCLR_TXPTRUPD_Msk (0x1UL << I2S_INTENCLR_TXPTRUPD_Pos) /*!< Bit mask of TXPTRUPD field. */
+#define I2S_INTENCLR_TXPTRUPD_Disabled (0UL) /*!< Read: Disabled */
+#define I2S_INTENCLR_TXPTRUPD_Enabled (1UL) /*!< Read: Enabled */
+#define I2S_INTENCLR_TXPTRUPD_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for STOPPED event */
+#define I2S_INTENCLR_STOPPED_Pos (2UL) /*!< Position of STOPPED field. */
+#define I2S_INTENCLR_STOPPED_Msk (0x1UL << I2S_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define I2S_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define I2S_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define I2S_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for RXPTRUPD event */
+#define I2S_INTENCLR_RXPTRUPD_Pos (1UL) /*!< Position of RXPTRUPD field. */
+#define I2S_INTENCLR_RXPTRUPD_Msk (0x1UL << I2S_INTENCLR_RXPTRUPD_Pos) /*!< Bit mask of RXPTRUPD field. */
+#define I2S_INTENCLR_RXPTRUPD_Disabled (0UL) /*!< Read: Disabled */
+#define I2S_INTENCLR_RXPTRUPD_Enabled (1UL) /*!< Read: Enabled */
+#define I2S_INTENCLR_RXPTRUPD_Clear (1UL) /*!< Disable */
+
+/* Register: I2S_ENABLE */
+/* Description: Enable I2S module. */
+
+/* Bit 0 : Enable I2S module. */
+#define I2S_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define I2S_ENABLE_ENABLE_Msk (0x1UL << I2S_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define I2S_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define I2S_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: I2S_CONFIG_MODE */
+/* Description: I2S mode. */
+
+/* Bit 0 : I2S mode. */
+#define I2S_CONFIG_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define I2S_CONFIG_MODE_MODE_Msk (0x1UL << I2S_CONFIG_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define I2S_CONFIG_MODE_MODE_Master (0UL) /*!< Master mode. SCK and LRCK generated from internal master clcok (MCK) and output on pins defined by PSEL.xxx. */
+#define I2S_CONFIG_MODE_MODE_Slave (1UL) /*!< Slave mode. SCK and LRCK generated by external master and received on pins defined by PSEL.xxx */
+
+/* Register: I2S_CONFIG_RXEN */
+/* Description: Reception (RX) enable. */
+
+/* Bit 0 : Reception (RX) enable. */
+#define I2S_CONFIG_RXEN_RXEN_Pos (0UL) /*!< Position of RXEN field. */
+#define I2S_CONFIG_RXEN_RXEN_Msk (0x1UL << I2S_CONFIG_RXEN_RXEN_Pos) /*!< Bit mask of RXEN field. */
+#define I2S_CONFIG_RXEN_RXEN_Disabled (0UL) /*!< Reception disabled and now data will be written to the RXD.PTR address. */
+#define I2S_CONFIG_RXEN_RXEN_Enabled (1UL) /*!< Reception enabled. */
+
+/* Register: I2S_CONFIG_TXEN */
+/* Description: Transmission (TX) enable. */
+
+/* Bit 0 : Transmission (TX) enable. */
+#define I2S_CONFIG_TXEN_TXEN_Pos (0UL) /*!< Position of TXEN field. */
+#define I2S_CONFIG_TXEN_TXEN_Msk (0x1UL << I2S_CONFIG_TXEN_TXEN_Pos) /*!< Bit mask of TXEN field. */
+#define I2S_CONFIG_TXEN_TXEN_Disabled (0UL) /*!< Transmission disabled and now data will be read from the RXD.TXD address. */
+#define I2S_CONFIG_TXEN_TXEN_Enabled (1UL) /*!< Transmission enabled. */
+
+/* Register: I2S_CONFIG_MCKEN */
+/* Description: Master clock generator enable. */
+
+/* Bit 0 : Master clock generator enable. */
+#define I2S_CONFIG_MCKEN_MCKEN_Pos (0UL) /*!< Position of MCKEN field. */
+#define I2S_CONFIG_MCKEN_MCKEN_Msk (0x1UL << I2S_CONFIG_MCKEN_MCKEN_Pos) /*!< Bit mask of MCKEN field. */
+#define I2S_CONFIG_MCKEN_MCKEN_Disabled (0UL) /*!< Master clock generator disabled and PSEL.MCK not connected(available as GPIO). */
+#define I2S_CONFIG_MCKEN_MCKEN_Enabled (1UL) /*!< Master clock generator running and MCK output on PSEL.MCK. */
+
+/* Register: I2S_CONFIG_MCKFREQ */
+/* Description: Master clock generator frequency. */
+
+/* Bits 31..0 : Master clock generator frequency. */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_Pos (0UL) /*!< Position of MCKFREQ field. */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_Msk (0xFFFFFFFFUL << I2S_CONFIG_MCKFREQ_MCKFREQ_Pos) /*!< Bit mask of MCKFREQ field. */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV125 (0x020C0000UL) /*!< 32 MHz / 125 = 0.256 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV63 (0x04100000UL) /*!< 32 MHz / 63 = 0.5079365 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV42 (0x06000000UL) /*!< 32 MHz / 42 = 0.7619048 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV32 (0x08000000UL) /*!< 32 MHz / 32 = 1.0 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV31 (0x08400000UL) /*!< 32 MHz / 31 = 1.0322581 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV30 (0x08800000UL) /*!< 32 MHz / 30 = 1.0666667 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV23 (0x0B000000UL) /*!< 32 MHz / 23 = 1.3913043 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV21 (0x0C000000UL) /*!< 32 MHz / 21 = 1.5238095 */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV16 (0x10000000UL) /*!< 32 MHz / 16 = 2.0 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV15 (0x11000000UL) /*!< 32 MHz / 15 = 2.1333333 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV11 (0x16000000UL) /*!< 32 MHz / 11 = 2.9090909 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV10 (0x18000000UL) /*!< 32 MHz / 10 = 3.2 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV8 (0x20000000UL) /*!< 32 MHz / 8 = 4.0 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV6 (0x28000000UL) /*!< 32 MHz / 6 = 5.3333333 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV5 (0x30000000UL) /*!< 32 MHz / 5 = 6.4 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV4 (0x40000000UL) /*!< 32 MHz / 4 = 8.0 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV3 (0x50000000UL) /*!< 32 MHz / 3 = 10.6666667 MHz */
+#define I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV2 (0x80000000UL) /*!< 32 MHz / 2 = 16.0 MHz */
+
+/* Register: I2S_CONFIG_RATIO */
+/* Description: MCK / LRCK ratio. */
+
+/* Bits 3..0 : MCK / LRCK ratio. */
+#define I2S_CONFIG_RATIO_RATIO_Pos (0UL) /*!< Position of RATIO field. */
+#define I2S_CONFIG_RATIO_RATIO_Msk (0xFUL << I2S_CONFIG_RATIO_RATIO_Pos) /*!< Bit mask of RATIO field. */
+#define I2S_CONFIG_RATIO_RATIO_32X (0UL) /*!< LRCK = MCK / 32 */
+#define I2S_CONFIG_RATIO_RATIO_48X (1UL) /*!< LRCK = MCK / 48 */
+#define I2S_CONFIG_RATIO_RATIO_64X (2UL) /*!< LRCK = MCK / 64 */
+#define I2S_CONFIG_RATIO_RATIO_96X (3UL) /*!< LRCK = MCK / 96 */
+#define I2S_CONFIG_RATIO_RATIO_128X (4UL) /*!< LRCK = MCK / 128 */
+#define I2S_CONFIG_RATIO_RATIO_192X (5UL) /*!< LRCK = MCK / 192 */
+#define I2S_CONFIG_RATIO_RATIO_256X (6UL) /*!< LRCK = MCK / 256 */
+#define I2S_CONFIG_RATIO_RATIO_384X (7UL) /*!< LRCK = MCK / 384 */
+#define I2S_CONFIG_RATIO_RATIO_512X (8UL) /*!< LRCK = MCK / 512 */
+
+/* Register: I2S_CONFIG_SWIDTH */
+/* Description: Sample width. */
+
+/* Bits 1..0 : Sample width. */
+#define I2S_CONFIG_SWIDTH_SWIDTH_Pos (0UL) /*!< Position of SWIDTH field. */
+#define I2S_CONFIG_SWIDTH_SWIDTH_Msk (0x3UL << I2S_CONFIG_SWIDTH_SWIDTH_Pos) /*!< Bit mask of SWIDTH field. */
+#define I2S_CONFIG_SWIDTH_SWIDTH_8Bit (0UL) /*!< 8 bit. */
+#define I2S_CONFIG_SWIDTH_SWIDTH_16Bit (1UL) /*!< 16 bit. */
+#define I2S_CONFIG_SWIDTH_SWIDTH_24Bit (2UL) /*!< 24 bit. */
+
+/* Register: I2S_CONFIG_ALIGN */
+/* Description: Alignment of sample within a frame. */
+
+/* Bit 0 : Alignment of sample within a frame. */
+#define I2S_CONFIG_ALIGN_ALIGN_Pos (0UL) /*!< Position of ALIGN field. */
+#define I2S_CONFIG_ALIGN_ALIGN_Msk (0x1UL << I2S_CONFIG_ALIGN_ALIGN_Pos) /*!< Bit mask of ALIGN field. */
+#define I2S_CONFIG_ALIGN_ALIGN_Left (0UL) /*!< Left-aligned. */
+#define I2S_CONFIG_ALIGN_ALIGN_Right (1UL) /*!< Right-aligned. */
+
+/* Register: I2S_CONFIG_FORMAT */
+/* Description: Frame format. */
+
+/* Bit 0 : Frame format. */
+#define I2S_CONFIG_FORMAT_FORMAT_Pos (0UL) /*!< Position of FORMAT field. */
+#define I2S_CONFIG_FORMAT_FORMAT_Msk (0x1UL << I2S_CONFIG_FORMAT_FORMAT_Pos) /*!< Bit mask of FORMAT field. */
+#define I2S_CONFIG_FORMAT_FORMAT_I2S (0UL) /*!< Original I2S format. */
+#define I2S_CONFIG_FORMAT_FORMAT_Aligned (1UL) /*!< Alternate (left- or right-aligned) format. */
+
+/* Register: I2S_CONFIG_CHANNELS */
+/* Description: Enable channels. */
+
+/* Bits 1..0 : Enable channels. */
+#define I2S_CONFIG_CHANNELS_CHANNELS_Pos (0UL) /*!< Position of CHANNELS field. */
+#define I2S_CONFIG_CHANNELS_CHANNELS_Msk (0x3UL << I2S_CONFIG_CHANNELS_CHANNELS_Pos) /*!< Bit mask of CHANNELS field. */
+#define I2S_CONFIG_CHANNELS_CHANNELS_Stereo (0UL) /*!< Stereo. */
+#define I2S_CONFIG_CHANNELS_CHANNELS_Left (1UL) /*!< Left only. */
+#define I2S_CONFIG_CHANNELS_CHANNELS_Right (2UL) /*!< Right only. */
+
+/* Register: I2S_RXD_PTR */
+/* Description: Receive buffer RAM start address. */
+
+/* Bits 31..0 : Receive buffer Data RAM start address. When receiving, words containing samples will be written to this address. This address is a word aligned Data RAM address. */
+#define I2S_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define I2S_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << I2S_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: I2S_TXD_PTR */
+/* Description: Transmit buffer RAM start address. */
+
+/* Bits 31..0 : Transmit buffer Data RAM start address. When transmitting, words containing samples will be fetched from this address. This address is a word aligned Data RAM address. */
+#define I2S_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define I2S_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << I2S_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: I2S_RXTXD_MAXCNT */
+/* Description: Size of RXD and TXD buffers. */
+
+/* Bits 13..0 : Size of RXD and TXD buffers in number of 32 bit words. */
+#define I2S_RXTXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define I2S_RXTXD_MAXCNT_MAXCNT_Msk (0x3FFFUL << I2S_RXTXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: I2S_PSEL_MCK */
+/* Description: Pin select for MCK signal. */
+
+/* Bit 31 : Connection */
+#define I2S_PSEL_MCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define I2S_PSEL_MCK_CONNECT_Msk (0x1UL << I2S_PSEL_MCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define I2S_PSEL_MCK_CONNECT_Connected (0UL) /*!< Connect */
+#define I2S_PSEL_MCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define I2S_PSEL_MCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define I2S_PSEL_MCK_PIN_Msk (0x1FUL << I2S_PSEL_MCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: I2S_PSEL_SCK */
+/* Description: Pin select for SCK signal. */
+
+/* Bit 31 : Connection */
+#define I2S_PSEL_SCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define I2S_PSEL_SCK_CONNECT_Msk (0x1UL << I2S_PSEL_SCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define I2S_PSEL_SCK_CONNECT_Connected (0UL) /*!< Connect */
+#define I2S_PSEL_SCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define I2S_PSEL_SCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define I2S_PSEL_SCK_PIN_Msk (0x1FUL << I2S_PSEL_SCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: I2S_PSEL_LRCK */
+/* Description: Pin select for LRCK signal. */
+
+/* Bit 31 : Connection */
+#define I2S_PSEL_LRCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define I2S_PSEL_LRCK_CONNECT_Msk (0x1UL << I2S_PSEL_LRCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define I2S_PSEL_LRCK_CONNECT_Connected (0UL) /*!< Connect */
+#define I2S_PSEL_LRCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define I2S_PSEL_LRCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define I2S_PSEL_LRCK_PIN_Msk (0x1FUL << I2S_PSEL_LRCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: I2S_PSEL_SDIN */
+/* Description: Pin select for SDIN signal. */
+
+/* Bit 31 : Connection */
+#define I2S_PSEL_SDIN_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define I2S_PSEL_SDIN_CONNECT_Msk (0x1UL << I2S_PSEL_SDIN_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define I2S_PSEL_SDIN_CONNECT_Connected (0UL) /*!< Connect */
+#define I2S_PSEL_SDIN_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define I2S_PSEL_SDIN_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define I2S_PSEL_SDIN_PIN_Msk (0x1FUL << I2S_PSEL_SDIN_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: I2S_PSEL_SDOUT */
+/* Description: Pin select for SDOUT signal. */
+
+/* Bit 31 : Connection */
+#define I2S_PSEL_SDOUT_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define I2S_PSEL_SDOUT_CONNECT_Msk (0x1UL << I2S_PSEL_SDOUT_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define I2S_PSEL_SDOUT_CONNECT_Connected (0UL) /*!< Connect */
+#define I2S_PSEL_SDOUT_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define I2S_PSEL_SDOUT_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define I2S_PSEL_SDOUT_PIN_Msk (0x1FUL << I2S_PSEL_SDOUT_PIN_Pos) /*!< Bit mask of PIN field. */
+
+
+/* Peripheral: LPCOMP */
+/* Description: Low Power Comparator */
+
+/* Register: LPCOMP_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 4 : Shortcut between CROSS event and STOP task */
+#define LPCOMP_SHORTS_CROSS_STOP_Pos (4UL) /*!< Position of CROSS_STOP field. */
+#define LPCOMP_SHORTS_CROSS_STOP_Msk (0x1UL << LPCOMP_SHORTS_CROSS_STOP_Pos) /*!< Bit mask of CROSS_STOP field. */
+#define LPCOMP_SHORTS_CROSS_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define LPCOMP_SHORTS_CROSS_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between UP event and STOP task */
+#define LPCOMP_SHORTS_UP_STOP_Pos (3UL) /*!< Position of UP_STOP field. */
+#define LPCOMP_SHORTS_UP_STOP_Msk (0x1UL << LPCOMP_SHORTS_UP_STOP_Pos) /*!< Bit mask of UP_STOP field. */
+#define LPCOMP_SHORTS_UP_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define LPCOMP_SHORTS_UP_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between DOWN event and STOP task */
+#define LPCOMP_SHORTS_DOWN_STOP_Pos (2UL) /*!< Position of DOWN_STOP field. */
+#define LPCOMP_SHORTS_DOWN_STOP_Msk (0x1UL << LPCOMP_SHORTS_DOWN_STOP_Pos) /*!< Bit mask of DOWN_STOP field. */
+#define LPCOMP_SHORTS_DOWN_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define LPCOMP_SHORTS_DOWN_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between READY event and STOP task */
+#define LPCOMP_SHORTS_READY_STOP_Pos (1UL) /*!< Position of READY_STOP field. */
+#define LPCOMP_SHORTS_READY_STOP_Msk (0x1UL << LPCOMP_SHORTS_READY_STOP_Pos) /*!< Bit mask of READY_STOP field. */
+#define LPCOMP_SHORTS_READY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define LPCOMP_SHORTS_READY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between READY event and SAMPLE task */
+#define LPCOMP_SHORTS_READY_SAMPLE_Pos (0UL) /*!< Position of READY_SAMPLE field. */
+#define LPCOMP_SHORTS_READY_SAMPLE_Msk (0x1UL << LPCOMP_SHORTS_READY_SAMPLE_Pos) /*!< Bit mask of READY_SAMPLE field. */
+#define LPCOMP_SHORTS_READY_SAMPLE_Disabled (0UL) /*!< Disable shortcut */
+#define LPCOMP_SHORTS_READY_SAMPLE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: LPCOMP_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 3 : Write '1' to Enable interrupt for CROSS event */
+#define LPCOMP_INTENSET_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define LPCOMP_INTENSET_CROSS_Msk (0x1UL << LPCOMP_INTENSET_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define LPCOMP_INTENSET_CROSS_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENSET_CROSS_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENSET_CROSS_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for UP event */
+#define LPCOMP_INTENSET_UP_Pos (2UL) /*!< Position of UP field. */
+#define LPCOMP_INTENSET_UP_Msk (0x1UL << LPCOMP_INTENSET_UP_Pos) /*!< Bit mask of UP field. */
+#define LPCOMP_INTENSET_UP_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENSET_UP_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENSET_UP_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for DOWN event */
+#define LPCOMP_INTENSET_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define LPCOMP_INTENSET_DOWN_Msk (0x1UL << LPCOMP_INTENSET_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define LPCOMP_INTENSET_DOWN_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENSET_DOWN_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENSET_DOWN_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for READY event */
+#define LPCOMP_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define LPCOMP_INTENSET_READY_Msk (0x1UL << LPCOMP_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define LPCOMP_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: LPCOMP_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 3 : Write '1' to Disable interrupt for CROSS event */
+#define LPCOMP_INTENCLR_CROSS_Pos (3UL) /*!< Position of CROSS field. */
+#define LPCOMP_INTENCLR_CROSS_Msk (0x1UL << LPCOMP_INTENCLR_CROSS_Pos) /*!< Bit mask of CROSS field. */
+#define LPCOMP_INTENCLR_CROSS_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENCLR_CROSS_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENCLR_CROSS_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for UP event */
+#define LPCOMP_INTENCLR_UP_Pos (2UL) /*!< Position of UP field. */
+#define LPCOMP_INTENCLR_UP_Msk (0x1UL << LPCOMP_INTENCLR_UP_Pos) /*!< Bit mask of UP field. */
+#define LPCOMP_INTENCLR_UP_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENCLR_UP_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENCLR_UP_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for DOWN event */
+#define LPCOMP_INTENCLR_DOWN_Pos (1UL) /*!< Position of DOWN field. */
+#define LPCOMP_INTENCLR_DOWN_Msk (0x1UL << LPCOMP_INTENCLR_DOWN_Pos) /*!< Bit mask of DOWN field. */
+#define LPCOMP_INTENCLR_DOWN_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENCLR_DOWN_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENCLR_DOWN_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for READY event */
+#define LPCOMP_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define LPCOMP_INTENCLR_READY_Msk (0x1UL << LPCOMP_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define LPCOMP_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define LPCOMP_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define LPCOMP_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: LPCOMP_RESULT */
+/* Description: Compare result */
+
+/* Bit 0 : Result of last compare. Decision point SAMPLE task. */
+#define LPCOMP_RESULT_RESULT_Pos (0UL) /*!< Position of RESULT field. */
+#define LPCOMP_RESULT_RESULT_Msk (0x1UL << LPCOMP_RESULT_RESULT_Pos) /*!< Bit mask of RESULT field. */
+#define LPCOMP_RESULT_RESULT_Below (0UL) /*!< Input voltage is below the reference threshold (VIN+ &lt; VIN-). */
+#define LPCOMP_RESULT_RESULT_Above (1UL) /*!< Input voltage is above the reference threshold (VIN+ &gt; VIN-). */
+
+/* Register: LPCOMP_ENABLE */
+/* Description: Enable LPCOMP */
+
+/* Bits 1..0 : Enable or disable LPCOMP */
+#define LPCOMP_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define LPCOMP_ENABLE_ENABLE_Msk (0x3UL << LPCOMP_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define LPCOMP_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define LPCOMP_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: LPCOMP_PSEL */
+/* Description: Input pin select */
+
+/* Bits 2..0 : Analog pin select */
+#define LPCOMP_PSEL_PSEL_Pos (0UL) /*!< Position of PSEL field. */
+#define LPCOMP_PSEL_PSEL_Msk (0x7UL << LPCOMP_PSEL_PSEL_Pos) /*!< Bit mask of PSEL field. */
+#define LPCOMP_PSEL_PSEL_AnalogInput0 (0UL) /*!< AIN0 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput1 (1UL) /*!< AIN1 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput2 (2UL) /*!< AIN2 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput3 (3UL) /*!< AIN3 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput4 (4UL) /*!< AIN4 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput5 (5UL) /*!< AIN5 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput6 (6UL) /*!< AIN6 selected as analog input */
+#define LPCOMP_PSEL_PSEL_AnalogInput7 (7UL) /*!< AIN7 selected as analog input */
+
+/* Register: LPCOMP_REFSEL */
+/* Description: Reference select */
+
+/* Bits 3..0 : Reference select */
+#define LPCOMP_REFSEL_REFSEL_Pos (0UL) /*!< Position of REFSEL field. */
+#define LPCOMP_REFSEL_REFSEL_Msk (0xFUL << LPCOMP_REFSEL_REFSEL_Pos) /*!< Bit mask of REFSEL field. */
+#define LPCOMP_REFSEL_REFSEL_Ref1_8Vdd (0UL) /*!< VDD * 1/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref2_8Vdd (1UL) /*!< VDD * 2/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref3_8Vdd (2UL) /*!< VDD * 3/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref4_8Vdd (3UL) /*!< VDD * 4/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref5_8Vdd (4UL) /*!< VDD * 5/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref6_8Vdd (5UL) /*!< VDD * 6/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref7_8Vdd (6UL) /*!< VDD * 7/8 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_ARef (7UL) /*!< External analog reference selected */
+#define LPCOMP_REFSEL_REFSEL_Ref1_16Vdd (8UL) /*!< VDD * 1/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref3_16Vdd (9UL) /*!< VDD * 3/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref5_16Vdd (10UL) /*!< VDD * 5/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref7_16Vdd (11UL) /*!< VDD * 7/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref9_16Vdd (12UL) /*!< VDD * 9/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref11_16Vdd (13UL) /*!< VDD * 11/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref13_16Vdd (14UL) /*!< VDD * 13/16 selected as reference */
+#define LPCOMP_REFSEL_REFSEL_Ref15_16Vdd (15UL) /*!< VDD * 15/16 selected as reference */
+
+/* Register: LPCOMP_EXTREFSEL */
+/* Description: External reference select */
+
+/* Bit 0 : External analog reference select */
+#define LPCOMP_EXTREFSEL_EXTREFSEL_Pos (0UL) /*!< Position of EXTREFSEL field. */
+#define LPCOMP_EXTREFSEL_EXTREFSEL_Msk (0x1UL << LPCOMP_EXTREFSEL_EXTREFSEL_Pos) /*!< Bit mask of EXTREFSEL field. */
+#define LPCOMP_EXTREFSEL_EXTREFSEL_AnalogReference0 (0UL) /*!< Use AIN0 as external analog reference */
+#define LPCOMP_EXTREFSEL_EXTREFSEL_AnalogReference1 (1UL) /*!< Use AIN1 as external analog reference */
+
+/* Register: LPCOMP_ANADETECT */
+/* Description: Analog detect configuration */
+
+/* Bits 1..0 : Analog detect configuration */
+#define LPCOMP_ANADETECT_ANADETECT_Pos (0UL) /*!< Position of ANADETECT field. */
+#define LPCOMP_ANADETECT_ANADETECT_Msk (0x3UL << LPCOMP_ANADETECT_ANADETECT_Pos) /*!< Bit mask of ANADETECT field. */
+#define LPCOMP_ANADETECT_ANADETECT_Cross (0UL) /*!< Generate ANADETECT on crossing, both upward crossing and downward crossing */
+#define LPCOMP_ANADETECT_ANADETECT_Up (1UL) /*!< Generate ANADETECT on upward crossing only */
+#define LPCOMP_ANADETECT_ANADETECT_Down (2UL) /*!< Generate ANADETECT on downward crossing only */
+
+/* Register: LPCOMP_HYST */
+/* Description: Comparator hysteresis enable */
+
+/* Bit 0 : Comparator hysteresis enable */
+#define LPCOMP_HYST_HYST_Pos (0UL) /*!< Position of HYST field. */
+#define LPCOMP_HYST_HYST_Msk (0x1UL << LPCOMP_HYST_HYST_Pos) /*!< Bit mask of HYST field. */
+#define LPCOMP_HYST_HYST_NoHyst (0UL) /*!< Comparator hysteresis disabled */
+#define LPCOMP_HYST_HYST_Hyst50mV (1UL) /*!< Comparator hysteresis disabled (typ. 50 mV) */
+
+
+/* Peripheral: MWU */
+/* Description: Memory Watch Unit */
+
+/* Register: MWU_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 27 : Enable or disable interrupt for PREGION[1].RA event */
+#define MWU_INTEN_PREGION1RA_Pos (27UL) /*!< Position of PREGION1RA field. */
+#define MWU_INTEN_PREGION1RA_Msk (0x1UL << MWU_INTEN_PREGION1RA_Pos) /*!< Bit mask of PREGION1RA field. */
+#define MWU_INTEN_PREGION1RA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_PREGION1RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 26 : Enable or disable interrupt for PREGION[1].WA event */
+#define MWU_INTEN_PREGION1WA_Pos (26UL) /*!< Position of PREGION1WA field. */
+#define MWU_INTEN_PREGION1WA_Msk (0x1UL << MWU_INTEN_PREGION1WA_Pos) /*!< Bit mask of PREGION1WA field. */
+#define MWU_INTEN_PREGION1WA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_PREGION1WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 25 : Enable or disable interrupt for PREGION[0].RA event */
+#define MWU_INTEN_PREGION0RA_Pos (25UL) /*!< Position of PREGION0RA field. */
+#define MWU_INTEN_PREGION0RA_Msk (0x1UL << MWU_INTEN_PREGION0RA_Pos) /*!< Bit mask of PREGION0RA field. */
+#define MWU_INTEN_PREGION0RA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_PREGION0RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 24 : Enable or disable interrupt for PREGION[0].WA event */
+#define MWU_INTEN_PREGION0WA_Pos (24UL) /*!< Position of PREGION0WA field. */
+#define MWU_INTEN_PREGION0WA_Msk (0x1UL << MWU_INTEN_PREGION0WA_Pos) /*!< Bit mask of PREGION0WA field. */
+#define MWU_INTEN_PREGION0WA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_PREGION0WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for REGION[3].RA event */
+#define MWU_INTEN_REGION3RA_Pos (7UL) /*!< Position of REGION3RA field. */
+#define MWU_INTEN_REGION3RA_Msk (0x1UL << MWU_INTEN_REGION3RA_Pos) /*!< Bit mask of REGION3RA field. */
+#define MWU_INTEN_REGION3RA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION3RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for REGION[3].WA event */
+#define MWU_INTEN_REGION3WA_Pos (6UL) /*!< Position of REGION3WA field. */
+#define MWU_INTEN_REGION3WA_Msk (0x1UL << MWU_INTEN_REGION3WA_Pos) /*!< Bit mask of REGION3WA field. */
+#define MWU_INTEN_REGION3WA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION3WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for REGION[2].RA event */
+#define MWU_INTEN_REGION2RA_Pos (5UL) /*!< Position of REGION2RA field. */
+#define MWU_INTEN_REGION2RA_Msk (0x1UL << MWU_INTEN_REGION2RA_Pos) /*!< Bit mask of REGION2RA field. */
+#define MWU_INTEN_REGION2RA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION2RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for REGION[2].WA event */
+#define MWU_INTEN_REGION2WA_Pos (4UL) /*!< Position of REGION2WA field. */
+#define MWU_INTEN_REGION2WA_Msk (0x1UL << MWU_INTEN_REGION2WA_Pos) /*!< Bit mask of REGION2WA field. */
+#define MWU_INTEN_REGION2WA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION2WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for REGION[1].RA event */
+#define MWU_INTEN_REGION1RA_Pos (3UL) /*!< Position of REGION1RA field. */
+#define MWU_INTEN_REGION1RA_Msk (0x1UL << MWU_INTEN_REGION1RA_Pos) /*!< Bit mask of REGION1RA field. */
+#define MWU_INTEN_REGION1RA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION1RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for REGION[1].WA event */
+#define MWU_INTEN_REGION1WA_Pos (2UL) /*!< Position of REGION1WA field. */
+#define MWU_INTEN_REGION1WA_Msk (0x1UL << MWU_INTEN_REGION1WA_Pos) /*!< Bit mask of REGION1WA field. */
+#define MWU_INTEN_REGION1WA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION1WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for REGION[0].RA event */
+#define MWU_INTEN_REGION0RA_Pos (1UL) /*!< Position of REGION0RA field. */
+#define MWU_INTEN_REGION0RA_Msk (0x1UL << MWU_INTEN_REGION0RA_Pos) /*!< Bit mask of REGION0RA field. */
+#define MWU_INTEN_REGION0RA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION0RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for REGION[0].WA event */
+#define MWU_INTEN_REGION0WA_Pos (0UL) /*!< Position of REGION0WA field. */
+#define MWU_INTEN_REGION0WA_Msk (0x1UL << MWU_INTEN_REGION0WA_Pos) /*!< Bit mask of REGION0WA field. */
+#define MWU_INTEN_REGION0WA_Disabled (0UL) /*!< Disable */
+#define MWU_INTEN_REGION0WA_Enabled (1UL) /*!< Enable */
+
+/* Register: MWU_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 27 : Write '1' to Enable interrupt for PREGION[1].RA event */
+#define MWU_INTENSET_PREGION1RA_Pos (27UL) /*!< Position of PREGION1RA field. */
+#define MWU_INTENSET_PREGION1RA_Msk (0x1UL << MWU_INTENSET_PREGION1RA_Pos) /*!< Bit mask of PREGION1RA field. */
+#define MWU_INTENSET_PREGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_PREGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_PREGION1RA_Set (1UL) /*!< Enable */
+
+/* Bit 26 : Write '1' to Enable interrupt for PREGION[1].WA event */
+#define MWU_INTENSET_PREGION1WA_Pos (26UL) /*!< Position of PREGION1WA field. */
+#define MWU_INTENSET_PREGION1WA_Msk (0x1UL << MWU_INTENSET_PREGION1WA_Pos) /*!< Bit mask of PREGION1WA field. */
+#define MWU_INTENSET_PREGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_PREGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_PREGION1WA_Set (1UL) /*!< Enable */
+
+/* Bit 25 : Write '1' to Enable interrupt for PREGION[0].RA event */
+#define MWU_INTENSET_PREGION0RA_Pos (25UL) /*!< Position of PREGION0RA field. */
+#define MWU_INTENSET_PREGION0RA_Msk (0x1UL << MWU_INTENSET_PREGION0RA_Pos) /*!< Bit mask of PREGION0RA field. */
+#define MWU_INTENSET_PREGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_PREGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_PREGION0RA_Set (1UL) /*!< Enable */
+
+/* Bit 24 : Write '1' to Enable interrupt for PREGION[0].WA event */
+#define MWU_INTENSET_PREGION0WA_Pos (24UL) /*!< Position of PREGION0WA field. */
+#define MWU_INTENSET_PREGION0WA_Msk (0x1UL << MWU_INTENSET_PREGION0WA_Pos) /*!< Bit mask of PREGION0WA field. */
+#define MWU_INTENSET_PREGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_PREGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_PREGION0WA_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for REGION[3].RA event */
+#define MWU_INTENSET_REGION3RA_Pos (7UL) /*!< Position of REGION3RA field. */
+#define MWU_INTENSET_REGION3RA_Msk (0x1UL << MWU_INTENSET_REGION3RA_Pos) /*!< Bit mask of REGION3RA field. */
+#define MWU_INTENSET_REGION3RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION3RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION3RA_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for REGION[3].WA event */
+#define MWU_INTENSET_REGION3WA_Pos (6UL) /*!< Position of REGION3WA field. */
+#define MWU_INTENSET_REGION3WA_Msk (0x1UL << MWU_INTENSET_REGION3WA_Pos) /*!< Bit mask of REGION3WA field. */
+#define MWU_INTENSET_REGION3WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION3WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION3WA_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for REGION[2].RA event */
+#define MWU_INTENSET_REGION2RA_Pos (5UL) /*!< Position of REGION2RA field. */
+#define MWU_INTENSET_REGION2RA_Msk (0x1UL << MWU_INTENSET_REGION2RA_Pos) /*!< Bit mask of REGION2RA field. */
+#define MWU_INTENSET_REGION2RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION2RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION2RA_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for REGION[2].WA event */
+#define MWU_INTENSET_REGION2WA_Pos (4UL) /*!< Position of REGION2WA field. */
+#define MWU_INTENSET_REGION2WA_Msk (0x1UL << MWU_INTENSET_REGION2WA_Pos) /*!< Bit mask of REGION2WA field. */
+#define MWU_INTENSET_REGION2WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION2WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION2WA_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for REGION[1].RA event */
+#define MWU_INTENSET_REGION1RA_Pos (3UL) /*!< Position of REGION1RA field. */
+#define MWU_INTENSET_REGION1RA_Msk (0x1UL << MWU_INTENSET_REGION1RA_Pos) /*!< Bit mask of REGION1RA field. */
+#define MWU_INTENSET_REGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION1RA_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for REGION[1].WA event */
+#define MWU_INTENSET_REGION1WA_Pos (2UL) /*!< Position of REGION1WA field. */
+#define MWU_INTENSET_REGION1WA_Msk (0x1UL << MWU_INTENSET_REGION1WA_Pos) /*!< Bit mask of REGION1WA field. */
+#define MWU_INTENSET_REGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION1WA_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for REGION[0].RA event */
+#define MWU_INTENSET_REGION0RA_Pos (1UL) /*!< Position of REGION0RA field. */
+#define MWU_INTENSET_REGION0RA_Msk (0x1UL << MWU_INTENSET_REGION0RA_Pos) /*!< Bit mask of REGION0RA field. */
+#define MWU_INTENSET_REGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION0RA_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for REGION[0].WA event */
+#define MWU_INTENSET_REGION0WA_Pos (0UL) /*!< Position of REGION0WA field. */
+#define MWU_INTENSET_REGION0WA_Msk (0x1UL << MWU_INTENSET_REGION0WA_Pos) /*!< Bit mask of REGION0WA field. */
+#define MWU_INTENSET_REGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENSET_REGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENSET_REGION0WA_Set (1UL) /*!< Enable */
+
+/* Register: MWU_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 27 : Write '1' to Disable interrupt for PREGION[1].RA event */
+#define MWU_INTENCLR_PREGION1RA_Pos (27UL) /*!< Position of PREGION1RA field. */
+#define MWU_INTENCLR_PREGION1RA_Msk (0x1UL << MWU_INTENCLR_PREGION1RA_Pos) /*!< Bit mask of PREGION1RA field. */
+#define MWU_INTENCLR_PREGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_PREGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_PREGION1RA_Clear (1UL) /*!< Disable */
+
+/* Bit 26 : Write '1' to Disable interrupt for PREGION[1].WA event */
+#define MWU_INTENCLR_PREGION1WA_Pos (26UL) /*!< Position of PREGION1WA field. */
+#define MWU_INTENCLR_PREGION1WA_Msk (0x1UL << MWU_INTENCLR_PREGION1WA_Pos) /*!< Bit mask of PREGION1WA field. */
+#define MWU_INTENCLR_PREGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_PREGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_PREGION1WA_Clear (1UL) /*!< Disable */
+
+/* Bit 25 : Write '1' to Disable interrupt for PREGION[0].RA event */
+#define MWU_INTENCLR_PREGION0RA_Pos (25UL) /*!< Position of PREGION0RA field. */
+#define MWU_INTENCLR_PREGION0RA_Msk (0x1UL << MWU_INTENCLR_PREGION0RA_Pos) /*!< Bit mask of PREGION0RA field. */
+#define MWU_INTENCLR_PREGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_PREGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_PREGION0RA_Clear (1UL) /*!< Disable */
+
+/* Bit 24 : Write '1' to Disable interrupt for PREGION[0].WA event */
+#define MWU_INTENCLR_PREGION0WA_Pos (24UL) /*!< Position of PREGION0WA field. */
+#define MWU_INTENCLR_PREGION0WA_Msk (0x1UL << MWU_INTENCLR_PREGION0WA_Pos) /*!< Bit mask of PREGION0WA field. */
+#define MWU_INTENCLR_PREGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_PREGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_PREGION0WA_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for REGION[3].RA event */
+#define MWU_INTENCLR_REGION3RA_Pos (7UL) /*!< Position of REGION3RA field. */
+#define MWU_INTENCLR_REGION3RA_Msk (0x1UL << MWU_INTENCLR_REGION3RA_Pos) /*!< Bit mask of REGION3RA field. */
+#define MWU_INTENCLR_REGION3RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION3RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION3RA_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for REGION[3].WA event */
+#define MWU_INTENCLR_REGION3WA_Pos (6UL) /*!< Position of REGION3WA field. */
+#define MWU_INTENCLR_REGION3WA_Msk (0x1UL << MWU_INTENCLR_REGION3WA_Pos) /*!< Bit mask of REGION3WA field. */
+#define MWU_INTENCLR_REGION3WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION3WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION3WA_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for REGION[2].RA event */
+#define MWU_INTENCLR_REGION2RA_Pos (5UL) /*!< Position of REGION2RA field. */
+#define MWU_INTENCLR_REGION2RA_Msk (0x1UL << MWU_INTENCLR_REGION2RA_Pos) /*!< Bit mask of REGION2RA field. */
+#define MWU_INTENCLR_REGION2RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION2RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION2RA_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for REGION[2].WA event */
+#define MWU_INTENCLR_REGION2WA_Pos (4UL) /*!< Position of REGION2WA field. */
+#define MWU_INTENCLR_REGION2WA_Msk (0x1UL << MWU_INTENCLR_REGION2WA_Pos) /*!< Bit mask of REGION2WA field. */
+#define MWU_INTENCLR_REGION2WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION2WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION2WA_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for REGION[1].RA event */
+#define MWU_INTENCLR_REGION1RA_Pos (3UL) /*!< Position of REGION1RA field. */
+#define MWU_INTENCLR_REGION1RA_Msk (0x1UL << MWU_INTENCLR_REGION1RA_Pos) /*!< Bit mask of REGION1RA field. */
+#define MWU_INTENCLR_REGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION1RA_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for REGION[1].WA event */
+#define MWU_INTENCLR_REGION1WA_Pos (2UL) /*!< Position of REGION1WA field. */
+#define MWU_INTENCLR_REGION1WA_Msk (0x1UL << MWU_INTENCLR_REGION1WA_Pos) /*!< Bit mask of REGION1WA field. */
+#define MWU_INTENCLR_REGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION1WA_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for REGION[0].RA event */
+#define MWU_INTENCLR_REGION0RA_Pos (1UL) /*!< Position of REGION0RA field. */
+#define MWU_INTENCLR_REGION0RA_Msk (0x1UL << MWU_INTENCLR_REGION0RA_Pos) /*!< Bit mask of REGION0RA field. */
+#define MWU_INTENCLR_REGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION0RA_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for REGION[0].WA event */
+#define MWU_INTENCLR_REGION0WA_Pos (0UL) /*!< Position of REGION0WA field. */
+#define MWU_INTENCLR_REGION0WA_Msk (0x1UL << MWU_INTENCLR_REGION0WA_Pos) /*!< Bit mask of REGION0WA field. */
+#define MWU_INTENCLR_REGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_INTENCLR_REGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_INTENCLR_REGION0WA_Clear (1UL) /*!< Disable */
+
+/* Register: MWU_NMIEN */
+/* Description: Enable or disable non-maskable interrupt */
+
+/* Bit 27 : Enable or disable non-maskable interrupt for PREGION[1].RA event */
+#define MWU_NMIEN_PREGION1RA_Pos (27UL) /*!< Position of PREGION1RA field. */
+#define MWU_NMIEN_PREGION1RA_Msk (0x1UL << MWU_NMIEN_PREGION1RA_Pos) /*!< Bit mask of PREGION1RA field. */
+#define MWU_NMIEN_PREGION1RA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_PREGION1RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 26 : Enable or disable non-maskable interrupt for PREGION[1].WA event */
+#define MWU_NMIEN_PREGION1WA_Pos (26UL) /*!< Position of PREGION1WA field. */
+#define MWU_NMIEN_PREGION1WA_Msk (0x1UL << MWU_NMIEN_PREGION1WA_Pos) /*!< Bit mask of PREGION1WA field. */
+#define MWU_NMIEN_PREGION1WA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_PREGION1WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 25 : Enable or disable non-maskable interrupt for PREGION[0].RA event */
+#define MWU_NMIEN_PREGION0RA_Pos (25UL) /*!< Position of PREGION0RA field. */
+#define MWU_NMIEN_PREGION0RA_Msk (0x1UL << MWU_NMIEN_PREGION0RA_Pos) /*!< Bit mask of PREGION0RA field. */
+#define MWU_NMIEN_PREGION0RA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_PREGION0RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 24 : Enable or disable non-maskable interrupt for PREGION[0].WA event */
+#define MWU_NMIEN_PREGION0WA_Pos (24UL) /*!< Position of PREGION0WA field. */
+#define MWU_NMIEN_PREGION0WA_Msk (0x1UL << MWU_NMIEN_PREGION0WA_Pos) /*!< Bit mask of PREGION0WA field. */
+#define MWU_NMIEN_PREGION0WA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_PREGION0WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable non-maskable interrupt for REGION[3].RA event */
+#define MWU_NMIEN_REGION3RA_Pos (7UL) /*!< Position of REGION3RA field. */
+#define MWU_NMIEN_REGION3RA_Msk (0x1UL << MWU_NMIEN_REGION3RA_Pos) /*!< Bit mask of REGION3RA field. */
+#define MWU_NMIEN_REGION3RA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION3RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable non-maskable interrupt for REGION[3].WA event */
+#define MWU_NMIEN_REGION3WA_Pos (6UL) /*!< Position of REGION3WA field. */
+#define MWU_NMIEN_REGION3WA_Msk (0x1UL << MWU_NMIEN_REGION3WA_Pos) /*!< Bit mask of REGION3WA field. */
+#define MWU_NMIEN_REGION3WA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION3WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable non-maskable interrupt for REGION[2].RA event */
+#define MWU_NMIEN_REGION2RA_Pos (5UL) /*!< Position of REGION2RA field. */
+#define MWU_NMIEN_REGION2RA_Msk (0x1UL << MWU_NMIEN_REGION2RA_Pos) /*!< Bit mask of REGION2RA field. */
+#define MWU_NMIEN_REGION2RA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION2RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable non-maskable interrupt for REGION[2].WA event */
+#define MWU_NMIEN_REGION2WA_Pos (4UL) /*!< Position of REGION2WA field. */
+#define MWU_NMIEN_REGION2WA_Msk (0x1UL << MWU_NMIEN_REGION2WA_Pos) /*!< Bit mask of REGION2WA field. */
+#define MWU_NMIEN_REGION2WA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION2WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable non-maskable interrupt for REGION[1].RA event */
+#define MWU_NMIEN_REGION1RA_Pos (3UL) /*!< Position of REGION1RA field. */
+#define MWU_NMIEN_REGION1RA_Msk (0x1UL << MWU_NMIEN_REGION1RA_Pos) /*!< Bit mask of REGION1RA field. */
+#define MWU_NMIEN_REGION1RA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION1RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable non-maskable interrupt for REGION[1].WA event */
+#define MWU_NMIEN_REGION1WA_Pos (2UL) /*!< Position of REGION1WA field. */
+#define MWU_NMIEN_REGION1WA_Msk (0x1UL << MWU_NMIEN_REGION1WA_Pos) /*!< Bit mask of REGION1WA field. */
+#define MWU_NMIEN_REGION1WA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION1WA_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable non-maskable interrupt for REGION[0].RA event */
+#define MWU_NMIEN_REGION0RA_Pos (1UL) /*!< Position of REGION0RA field. */
+#define MWU_NMIEN_REGION0RA_Msk (0x1UL << MWU_NMIEN_REGION0RA_Pos) /*!< Bit mask of REGION0RA field. */
+#define MWU_NMIEN_REGION0RA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION0RA_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable non-maskable interrupt for REGION[0].WA event */
+#define MWU_NMIEN_REGION0WA_Pos (0UL) /*!< Position of REGION0WA field. */
+#define MWU_NMIEN_REGION0WA_Msk (0x1UL << MWU_NMIEN_REGION0WA_Pos) /*!< Bit mask of REGION0WA field. */
+#define MWU_NMIEN_REGION0WA_Disabled (0UL) /*!< Disable */
+#define MWU_NMIEN_REGION0WA_Enabled (1UL) /*!< Enable */
+
+/* Register: MWU_NMIENSET */
+/* Description: Enable non-maskable interrupt */
+
+/* Bit 27 : Write '1' to Enable non-maskable interrupt for PREGION[1].RA event */
+#define MWU_NMIENSET_PREGION1RA_Pos (27UL) /*!< Position of PREGION1RA field. */
+#define MWU_NMIENSET_PREGION1RA_Msk (0x1UL << MWU_NMIENSET_PREGION1RA_Pos) /*!< Bit mask of PREGION1RA field. */
+#define MWU_NMIENSET_PREGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_PREGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_PREGION1RA_Set (1UL) /*!< Enable */
+
+/* Bit 26 : Write '1' to Enable non-maskable interrupt for PREGION[1].WA event */
+#define MWU_NMIENSET_PREGION1WA_Pos (26UL) /*!< Position of PREGION1WA field. */
+#define MWU_NMIENSET_PREGION1WA_Msk (0x1UL << MWU_NMIENSET_PREGION1WA_Pos) /*!< Bit mask of PREGION1WA field. */
+#define MWU_NMIENSET_PREGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_PREGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_PREGION1WA_Set (1UL) /*!< Enable */
+
+/* Bit 25 : Write '1' to Enable non-maskable interrupt for PREGION[0].RA event */
+#define MWU_NMIENSET_PREGION0RA_Pos (25UL) /*!< Position of PREGION0RA field. */
+#define MWU_NMIENSET_PREGION0RA_Msk (0x1UL << MWU_NMIENSET_PREGION0RA_Pos) /*!< Bit mask of PREGION0RA field. */
+#define MWU_NMIENSET_PREGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_PREGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_PREGION0RA_Set (1UL) /*!< Enable */
+
+/* Bit 24 : Write '1' to Enable non-maskable interrupt for PREGION[0].WA event */
+#define MWU_NMIENSET_PREGION0WA_Pos (24UL) /*!< Position of PREGION0WA field. */
+#define MWU_NMIENSET_PREGION0WA_Msk (0x1UL << MWU_NMIENSET_PREGION0WA_Pos) /*!< Bit mask of PREGION0WA field. */
+#define MWU_NMIENSET_PREGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_PREGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_PREGION0WA_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable non-maskable interrupt for REGION[3].RA event */
+#define MWU_NMIENSET_REGION3RA_Pos (7UL) /*!< Position of REGION3RA field. */
+#define MWU_NMIENSET_REGION3RA_Msk (0x1UL << MWU_NMIENSET_REGION3RA_Pos) /*!< Bit mask of REGION3RA field. */
+#define MWU_NMIENSET_REGION3RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION3RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION3RA_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable non-maskable interrupt for REGION[3].WA event */
+#define MWU_NMIENSET_REGION3WA_Pos (6UL) /*!< Position of REGION3WA field. */
+#define MWU_NMIENSET_REGION3WA_Msk (0x1UL << MWU_NMIENSET_REGION3WA_Pos) /*!< Bit mask of REGION3WA field. */
+#define MWU_NMIENSET_REGION3WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION3WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION3WA_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable non-maskable interrupt for REGION[2].RA event */
+#define MWU_NMIENSET_REGION2RA_Pos (5UL) /*!< Position of REGION2RA field. */
+#define MWU_NMIENSET_REGION2RA_Msk (0x1UL << MWU_NMIENSET_REGION2RA_Pos) /*!< Bit mask of REGION2RA field. */
+#define MWU_NMIENSET_REGION2RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION2RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION2RA_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable non-maskable interrupt for REGION[2].WA event */
+#define MWU_NMIENSET_REGION2WA_Pos (4UL) /*!< Position of REGION2WA field. */
+#define MWU_NMIENSET_REGION2WA_Msk (0x1UL << MWU_NMIENSET_REGION2WA_Pos) /*!< Bit mask of REGION2WA field. */
+#define MWU_NMIENSET_REGION2WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION2WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION2WA_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable non-maskable interrupt for REGION[1].RA event */
+#define MWU_NMIENSET_REGION1RA_Pos (3UL) /*!< Position of REGION1RA field. */
+#define MWU_NMIENSET_REGION1RA_Msk (0x1UL << MWU_NMIENSET_REGION1RA_Pos) /*!< Bit mask of REGION1RA field. */
+#define MWU_NMIENSET_REGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION1RA_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable non-maskable interrupt for REGION[1].WA event */
+#define MWU_NMIENSET_REGION1WA_Pos (2UL) /*!< Position of REGION1WA field. */
+#define MWU_NMIENSET_REGION1WA_Msk (0x1UL << MWU_NMIENSET_REGION1WA_Pos) /*!< Bit mask of REGION1WA field. */
+#define MWU_NMIENSET_REGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION1WA_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable non-maskable interrupt for REGION[0].RA event */
+#define MWU_NMIENSET_REGION0RA_Pos (1UL) /*!< Position of REGION0RA field. */
+#define MWU_NMIENSET_REGION0RA_Msk (0x1UL << MWU_NMIENSET_REGION0RA_Pos) /*!< Bit mask of REGION0RA field. */
+#define MWU_NMIENSET_REGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION0RA_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable non-maskable interrupt for REGION[0].WA event */
+#define MWU_NMIENSET_REGION0WA_Pos (0UL) /*!< Position of REGION0WA field. */
+#define MWU_NMIENSET_REGION0WA_Msk (0x1UL << MWU_NMIENSET_REGION0WA_Pos) /*!< Bit mask of REGION0WA field. */
+#define MWU_NMIENSET_REGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENSET_REGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENSET_REGION0WA_Set (1UL) /*!< Enable */
+
+/* Register: MWU_NMIENCLR */
+/* Description: Disable non-maskable interrupt */
+
+/* Bit 27 : Write '1' to Disable non-maskable interrupt for PREGION[1].RA event */
+#define MWU_NMIENCLR_PREGION1RA_Pos (27UL) /*!< Position of PREGION1RA field. */
+#define MWU_NMIENCLR_PREGION1RA_Msk (0x1UL << MWU_NMIENCLR_PREGION1RA_Pos) /*!< Bit mask of PREGION1RA field. */
+#define MWU_NMIENCLR_PREGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_PREGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_PREGION1RA_Clear (1UL) /*!< Disable */
+
+/* Bit 26 : Write '1' to Disable non-maskable interrupt for PREGION[1].WA event */
+#define MWU_NMIENCLR_PREGION1WA_Pos (26UL) /*!< Position of PREGION1WA field. */
+#define MWU_NMIENCLR_PREGION1WA_Msk (0x1UL << MWU_NMIENCLR_PREGION1WA_Pos) /*!< Bit mask of PREGION1WA field. */
+#define MWU_NMIENCLR_PREGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_PREGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_PREGION1WA_Clear (1UL) /*!< Disable */
+
+/* Bit 25 : Write '1' to Disable non-maskable interrupt for PREGION[0].RA event */
+#define MWU_NMIENCLR_PREGION0RA_Pos (25UL) /*!< Position of PREGION0RA field. */
+#define MWU_NMIENCLR_PREGION0RA_Msk (0x1UL << MWU_NMIENCLR_PREGION0RA_Pos) /*!< Bit mask of PREGION0RA field. */
+#define MWU_NMIENCLR_PREGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_PREGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_PREGION0RA_Clear (1UL) /*!< Disable */
+
+/* Bit 24 : Write '1' to Disable non-maskable interrupt for PREGION[0].WA event */
+#define MWU_NMIENCLR_PREGION0WA_Pos (24UL) /*!< Position of PREGION0WA field. */
+#define MWU_NMIENCLR_PREGION0WA_Msk (0x1UL << MWU_NMIENCLR_PREGION0WA_Pos) /*!< Bit mask of PREGION0WA field. */
+#define MWU_NMIENCLR_PREGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_PREGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_PREGION0WA_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable non-maskable interrupt for REGION[3].RA event */
+#define MWU_NMIENCLR_REGION3RA_Pos (7UL) /*!< Position of REGION3RA field. */
+#define MWU_NMIENCLR_REGION3RA_Msk (0x1UL << MWU_NMIENCLR_REGION3RA_Pos) /*!< Bit mask of REGION3RA field. */
+#define MWU_NMIENCLR_REGION3RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION3RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION3RA_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable non-maskable interrupt for REGION[3].WA event */
+#define MWU_NMIENCLR_REGION3WA_Pos (6UL) /*!< Position of REGION3WA field. */
+#define MWU_NMIENCLR_REGION3WA_Msk (0x1UL << MWU_NMIENCLR_REGION3WA_Pos) /*!< Bit mask of REGION3WA field. */
+#define MWU_NMIENCLR_REGION3WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION3WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION3WA_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable non-maskable interrupt for REGION[2].RA event */
+#define MWU_NMIENCLR_REGION2RA_Pos (5UL) /*!< Position of REGION2RA field. */
+#define MWU_NMIENCLR_REGION2RA_Msk (0x1UL << MWU_NMIENCLR_REGION2RA_Pos) /*!< Bit mask of REGION2RA field. */
+#define MWU_NMIENCLR_REGION2RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION2RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION2RA_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable non-maskable interrupt for REGION[2].WA event */
+#define MWU_NMIENCLR_REGION2WA_Pos (4UL) /*!< Position of REGION2WA field. */
+#define MWU_NMIENCLR_REGION2WA_Msk (0x1UL << MWU_NMIENCLR_REGION2WA_Pos) /*!< Bit mask of REGION2WA field. */
+#define MWU_NMIENCLR_REGION2WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION2WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION2WA_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable non-maskable interrupt for REGION[1].RA event */
+#define MWU_NMIENCLR_REGION1RA_Pos (3UL) /*!< Position of REGION1RA field. */
+#define MWU_NMIENCLR_REGION1RA_Msk (0x1UL << MWU_NMIENCLR_REGION1RA_Pos) /*!< Bit mask of REGION1RA field. */
+#define MWU_NMIENCLR_REGION1RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION1RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION1RA_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable non-maskable interrupt for REGION[1].WA event */
+#define MWU_NMIENCLR_REGION1WA_Pos (2UL) /*!< Position of REGION1WA field. */
+#define MWU_NMIENCLR_REGION1WA_Msk (0x1UL << MWU_NMIENCLR_REGION1WA_Pos) /*!< Bit mask of REGION1WA field. */
+#define MWU_NMIENCLR_REGION1WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION1WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION1WA_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable non-maskable interrupt for REGION[0].RA event */
+#define MWU_NMIENCLR_REGION0RA_Pos (1UL) /*!< Position of REGION0RA field. */
+#define MWU_NMIENCLR_REGION0RA_Msk (0x1UL << MWU_NMIENCLR_REGION0RA_Pos) /*!< Bit mask of REGION0RA field. */
+#define MWU_NMIENCLR_REGION0RA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION0RA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION0RA_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable non-maskable interrupt for REGION[0].WA event */
+#define MWU_NMIENCLR_REGION0WA_Pos (0UL) /*!< Position of REGION0WA field. */
+#define MWU_NMIENCLR_REGION0WA_Msk (0x1UL << MWU_NMIENCLR_REGION0WA_Pos) /*!< Bit mask of REGION0WA field. */
+#define MWU_NMIENCLR_REGION0WA_Disabled (0UL) /*!< Read: Disabled */
+#define MWU_NMIENCLR_REGION0WA_Enabled (1UL) /*!< Read: Enabled */
+#define MWU_NMIENCLR_REGION0WA_Clear (1UL) /*!< Disable */
+
+/* Register: MWU_PERREGION_SUBSTATWA */
+/* Description: Description cluster[0]: Source of event/interrupt in region 0, write access detected while corresponding subregion was enabled for watching */
+
+/* Bit 31 : Subregion 31 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR31_Pos (31UL) /*!< Position of SR31 field. */
+#define MWU_PERREGION_SUBSTATWA_SR31_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR31_Pos) /*!< Bit mask of SR31 field. */
+#define MWU_PERREGION_SUBSTATWA_SR31_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR31_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 30 : Subregion 30 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR30_Pos (30UL) /*!< Position of SR30 field. */
+#define MWU_PERREGION_SUBSTATWA_SR30_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR30_Pos) /*!< Bit mask of SR30 field. */
+#define MWU_PERREGION_SUBSTATWA_SR30_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR30_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 29 : Subregion 29 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR29_Pos (29UL) /*!< Position of SR29 field. */
+#define MWU_PERREGION_SUBSTATWA_SR29_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR29_Pos) /*!< Bit mask of SR29 field. */
+#define MWU_PERREGION_SUBSTATWA_SR29_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR29_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 28 : Subregion 28 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR28_Pos (28UL) /*!< Position of SR28 field. */
+#define MWU_PERREGION_SUBSTATWA_SR28_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR28_Pos) /*!< Bit mask of SR28 field. */
+#define MWU_PERREGION_SUBSTATWA_SR28_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR28_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 27 : Subregion 27 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR27_Pos (27UL) /*!< Position of SR27 field. */
+#define MWU_PERREGION_SUBSTATWA_SR27_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR27_Pos) /*!< Bit mask of SR27 field. */
+#define MWU_PERREGION_SUBSTATWA_SR27_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR27_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 26 : Subregion 26 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR26_Pos (26UL) /*!< Position of SR26 field. */
+#define MWU_PERREGION_SUBSTATWA_SR26_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR26_Pos) /*!< Bit mask of SR26 field. */
+#define MWU_PERREGION_SUBSTATWA_SR26_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR26_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 25 : Subregion 25 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR25_Pos (25UL) /*!< Position of SR25 field. */
+#define MWU_PERREGION_SUBSTATWA_SR25_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR25_Pos) /*!< Bit mask of SR25 field. */
+#define MWU_PERREGION_SUBSTATWA_SR25_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR25_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 24 : Subregion 24 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR24_Pos (24UL) /*!< Position of SR24 field. */
+#define MWU_PERREGION_SUBSTATWA_SR24_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR24_Pos) /*!< Bit mask of SR24 field. */
+#define MWU_PERREGION_SUBSTATWA_SR24_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR24_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 23 : Subregion 23 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR23_Pos (23UL) /*!< Position of SR23 field. */
+#define MWU_PERREGION_SUBSTATWA_SR23_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR23_Pos) /*!< Bit mask of SR23 field. */
+#define MWU_PERREGION_SUBSTATWA_SR23_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR23_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 22 : Subregion 22 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR22_Pos (22UL) /*!< Position of SR22 field. */
+#define MWU_PERREGION_SUBSTATWA_SR22_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR22_Pos) /*!< Bit mask of SR22 field. */
+#define MWU_PERREGION_SUBSTATWA_SR22_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR22_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 21 : Subregion 21 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR21_Pos (21UL) /*!< Position of SR21 field. */
+#define MWU_PERREGION_SUBSTATWA_SR21_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR21_Pos) /*!< Bit mask of SR21 field. */
+#define MWU_PERREGION_SUBSTATWA_SR21_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR21_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 20 : Subregion 20 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR20_Pos (20UL) /*!< Position of SR20 field. */
+#define MWU_PERREGION_SUBSTATWA_SR20_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR20_Pos) /*!< Bit mask of SR20 field. */
+#define MWU_PERREGION_SUBSTATWA_SR20_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR20_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 19 : Subregion 19 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR19_Pos (19UL) /*!< Position of SR19 field. */
+#define MWU_PERREGION_SUBSTATWA_SR19_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR19_Pos) /*!< Bit mask of SR19 field. */
+#define MWU_PERREGION_SUBSTATWA_SR19_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR19_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 18 : Subregion 18 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR18_Pos (18UL) /*!< Position of SR18 field. */
+#define MWU_PERREGION_SUBSTATWA_SR18_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR18_Pos) /*!< Bit mask of SR18 field. */
+#define MWU_PERREGION_SUBSTATWA_SR18_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR18_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 17 : Subregion 17 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR17_Pos (17UL) /*!< Position of SR17 field. */
+#define MWU_PERREGION_SUBSTATWA_SR17_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR17_Pos) /*!< Bit mask of SR17 field. */
+#define MWU_PERREGION_SUBSTATWA_SR17_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR17_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 16 : Subregion 16 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR16_Pos (16UL) /*!< Position of SR16 field. */
+#define MWU_PERREGION_SUBSTATWA_SR16_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR16_Pos) /*!< Bit mask of SR16 field. */
+#define MWU_PERREGION_SUBSTATWA_SR16_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR16_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 15 : Subregion 15 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR15_Pos (15UL) /*!< Position of SR15 field. */
+#define MWU_PERREGION_SUBSTATWA_SR15_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR15_Pos) /*!< Bit mask of SR15 field. */
+#define MWU_PERREGION_SUBSTATWA_SR15_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR15_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 14 : Subregion 14 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR14_Pos (14UL) /*!< Position of SR14 field. */
+#define MWU_PERREGION_SUBSTATWA_SR14_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR14_Pos) /*!< Bit mask of SR14 field. */
+#define MWU_PERREGION_SUBSTATWA_SR14_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR14_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 13 : Subregion 13 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR13_Pos (13UL) /*!< Position of SR13 field. */
+#define MWU_PERREGION_SUBSTATWA_SR13_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR13_Pos) /*!< Bit mask of SR13 field. */
+#define MWU_PERREGION_SUBSTATWA_SR13_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR13_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 12 : Subregion 12 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR12_Pos (12UL) /*!< Position of SR12 field. */
+#define MWU_PERREGION_SUBSTATWA_SR12_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR12_Pos) /*!< Bit mask of SR12 field. */
+#define MWU_PERREGION_SUBSTATWA_SR12_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR12_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 11 : Subregion 11 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR11_Pos (11UL) /*!< Position of SR11 field. */
+#define MWU_PERREGION_SUBSTATWA_SR11_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR11_Pos) /*!< Bit mask of SR11 field. */
+#define MWU_PERREGION_SUBSTATWA_SR11_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR11_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 10 : Subregion 10 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR10_Pos (10UL) /*!< Position of SR10 field. */
+#define MWU_PERREGION_SUBSTATWA_SR10_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR10_Pos) /*!< Bit mask of SR10 field. */
+#define MWU_PERREGION_SUBSTATWA_SR10_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR10_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 9 : Subregion 9 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR9_Pos (9UL) /*!< Position of SR9 field. */
+#define MWU_PERREGION_SUBSTATWA_SR9_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR9_Pos) /*!< Bit mask of SR9 field. */
+#define MWU_PERREGION_SUBSTATWA_SR9_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR9_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 8 : Subregion 8 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR8_Pos (8UL) /*!< Position of SR8 field. */
+#define MWU_PERREGION_SUBSTATWA_SR8_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR8_Pos) /*!< Bit mask of SR8 field. */
+#define MWU_PERREGION_SUBSTATWA_SR8_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR8_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 7 : Subregion 7 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR7_Pos (7UL) /*!< Position of SR7 field. */
+#define MWU_PERREGION_SUBSTATWA_SR7_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR7_Pos) /*!< Bit mask of SR7 field. */
+#define MWU_PERREGION_SUBSTATWA_SR7_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR7_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 6 : Subregion 6 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR6_Pos (6UL) /*!< Position of SR6 field. */
+#define MWU_PERREGION_SUBSTATWA_SR6_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR6_Pos) /*!< Bit mask of SR6 field. */
+#define MWU_PERREGION_SUBSTATWA_SR6_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR6_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 5 : Subregion 5 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR5_Pos (5UL) /*!< Position of SR5 field. */
+#define MWU_PERREGION_SUBSTATWA_SR5_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR5_Pos) /*!< Bit mask of SR5 field. */
+#define MWU_PERREGION_SUBSTATWA_SR5_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR5_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 4 : Subregion 4 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR4_Pos (4UL) /*!< Position of SR4 field. */
+#define MWU_PERREGION_SUBSTATWA_SR4_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR4_Pos) /*!< Bit mask of SR4 field. */
+#define MWU_PERREGION_SUBSTATWA_SR4_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR4_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 3 : Subregion 3 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR3_Pos (3UL) /*!< Position of SR3 field. */
+#define MWU_PERREGION_SUBSTATWA_SR3_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR3_Pos) /*!< Bit mask of SR3 field. */
+#define MWU_PERREGION_SUBSTATWA_SR3_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR3_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 2 : Subregion 2 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR2_Pos (2UL) /*!< Position of SR2 field. */
+#define MWU_PERREGION_SUBSTATWA_SR2_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR2_Pos) /*!< Bit mask of SR2 field. */
+#define MWU_PERREGION_SUBSTATWA_SR2_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR2_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 1 : Subregion 1 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR1_Pos (1UL) /*!< Position of SR1 field. */
+#define MWU_PERREGION_SUBSTATWA_SR1_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR1_Pos) /*!< Bit mask of SR1 field. */
+#define MWU_PERREGION_SUBSTATWA_SR1_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR1_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Bit 0 : Subregion 0 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATWA_SR0_Pos (0UL) /*!< Position of SR0 field. */
+#define MWU_PERREGION_SUBSTATWA_SR0_Msk (0x1UL << MWU_PERREGION_SUBSTATWA_SR0_Pos) /*!< Bit mask of SR0 field. */
+#define MWU_PERREGION_SUBSTATWA_SR0_NoAccess (0UL) /*!< No write access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATWA_SR0_Access (1UL) /*!< Write access(es) occurred in this subregion */
+
+/* Register: MWU_PERREGION_SUBSTATRA */
+/* Description: Description cluster[0]: Source of event/interrupt in region 0, read access detected while corresponding subregion was enabled for watching */
+
+/* Bit 31 : Subregion 31 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR31_Pos (31UL) /*!< Position of SR31 field. */
+#define MWU_PERREGION_SUBSTATRA_SR31_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR31_Pos) /*!< Bit mask of SR31 field. */
+#define MWU_PERREGION_SUBSTATRA_SR31_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR31_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 30 : Subregion 30 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR30_Pos (30UL) /*!< Position of SR30 field. */
+#define MWU_PERREGION_SUBSTATRA_SR30_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR30_Pos) /*!< Bit mask of SR30 field. */
+#define MWU_PERREGION_SUBSTATRA_SR30_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR30_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 29 : Subregion 29 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR29_Pos (29UL) /*!< Position of SR29 field. */
+#define MWU_PERREGION_SUBSTATRA_SR29_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR29_Pos) /*!< Bit mask of SR29 field. */
+#define MWU_PERREGION_SUBSTATRA_SR29_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR29_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 28 : Subregion 28 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR28_Pos (28UL) /*!< Position of SR28 field. */
+#define MWU_PERREGION_SUBSTATRA_SR28_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR28_Pos) /*!< Bit mask of SR28 field. */
+#define MWU_PERREGION_SUBSTATRA_SR28_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR28_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 27 : Subregion 27 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR27_Pos (27UL) /*!< Position of SR27 field. */
+#define MWU_PERREGION_SUBSTATRA_SR27_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR27_Pos) /*!< Bit mask of SR27 field. */
+#define MWU_PERREGION_SUBSTATRA_SR27_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR27_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 26 : Subregion 26 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR26_Pos (26UL) /*!< Position of SR26 field. */
+#define MWU_PERREGION_SUBSTATRA_SR26_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR26_Pos) /*!< Bit mask of SR26 field. */
+#define MWU_PERREGION_SUBSTATRA_SR26_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR26_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 25 : Subregion 25 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR25_Pos (25UL) /*!< Position of SR25 field. */
+#define MWU_PERREGION_SUBSTATRA_SR25_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR25_Pos) /*!< Bit mask of SR25 field. */
+#define MWU_PERREGION_SUBSTATRA_SR25_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR25_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 24 : Subregion 24 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR24_Pos (24UL) /*!< Position of SR24 field. */
+#define MWU_PERREGION_SUBSTATRA_SR24_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR24_Pos) /*!< Bit mask of SR24 field. */
+#define MWU_PERREGION_SUBSTATRA_SR24_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR24_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 23 : Subregion 23 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR23_Pos (23UL) /*!< Position of SR23 field. */
+#define MWU_PERREGION_SUBSTATRA_SR23_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR23_Pos) /*!< Bit mask of SR23 field. */
+#define MWU_PERREGION_SUBSTATRA_SR23_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR23_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 22 : Subregion 22 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR22_Pos (22UL) /*!< Position of SR22 field. */
+#define MWU_PERREGION_SUBSTATRA_SR22_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR22_Pos) /*!< Bit mask of SR22 field. */
+#define MWU_PERREGION_SUBSTATRA_SR22_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR22_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 21 : Subregion 21 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR21_Pos (21UL) /*!< Position of SR21 field. */
+#define MWU_PERREGION_SUBSTATRA_SR21_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR21_Pos) /*!< Bit mask of SR21 field. */
+#define MWU_PERREGION_SUBSTATRA_SR21_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR21_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 20 : Subregion 20 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR20_Pos (20UL) /*!< Position of SR20 field. */
+#define MWU_PERREGION_SUBSTATRA_SR20_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR20_Pos) /*!< Bit mask of SR20 field. */
+#define MWU_PERREGION_SUBSTATRA_SR20_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR20_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 19 : Subregion 19 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR19_Pos (19UL) /*!< Position of SR19 field. */
+#define MWU_PERREGION_SUBSTATRA_SR19_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR19_Pos) /*!< Bit mask of SR19 field. */
+#define MWU_PERREGION_SUBSTATRA_SR19_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR19_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 18 : Subregion 18 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR18_Pos (18UL) /*!< Position of SR18 field. */
+#define MWU_PERREGION_SUBSTATRA_SR18_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR18_Pos) /*!< Bit mask of SR18 field. */
+#define MWU_PERREGION_SUBSTATRA_SR18_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR18_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 17 : Subregion 17 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR17_Pos (17UL) /*!< Position of SR17 field. */
+#define MWU_PERREGION_SUBSTATRA_SR17_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR17_Pos) /*!< Bit mask of SR17 field. */
+#define MWU_PERREGION_SUBSTATRA_SR17_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR17_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 16 : Subregion 16 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR16_Pos (16UL) /*!< Position of SR16 field. */
+#define MWU_PERREGION_SUBSTATRA_SR16_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR16_Pos) /*!< Bit mask of SR16 field. */
+#define MWU_PERREGION_SUBSTATRA_SR16_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR16_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 15 : Subregion 15 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR15_Pos (15UL) /*!< Position of SR15 field. */
+#define MWU_PERREGION_SUBSTATRA_SR15_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR15_Pos) /*!< Bit mask of SR15 field. */
+#define MWU_PERREGION_SUBSTATRA_SR15_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR15_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 14 : Subregion 14 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR14_Pos (14UL) /*!< Position of SR14 field. */
+#define MWU_PERREGION_SUBSTATRA_SR14_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR14_Pos) /*!< Bit mask of SR14 field. */
+#define MWU_PERREGION_SUBSTATRA_SR14_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR14_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 13 : Subregion 13 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR13_Pos (13UL) /*!< Position of SR13 field. */
+#define MWU_PERREGION_SUBSTATRA_SR13_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR13_Pos) /*!< Bit mask of SR13 field. */
+#define MWU_PERREGION_SUBSTATRA_SR13_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR13_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 12 : Subregion 12 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR12_Pos (12UL) /*!< Position of SR12 field. */
+#define MWU_PERREGION_SUBSTATRA_SR12_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR12_Pos) /*!< Bit mask of SR12 field. */
+#define MWU_PERREGION_SUBSTATRA_SR12_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR12_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 11 : Subregion 11 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR11_Pos (11UL) /*!< Position of SR11 field. */
+#define MWU_PERREGION_SUBSTATRA_SR11_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR11_Pos) /*!< Bit mask of SR11 field. */
+#define MWU_PERREGION_SUBSTATRA_SR11_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR11_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 10 : Subregion 10 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR10_Pos (10UL) /*!< Position of SR10 field. */
+#define MWU_PERREGION_SUBSTATRA_SR10_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR10_Pos) /*!< Bit mask of SR10 field. */
+#define MWU_PERREGION_SUBSTATRA_SR10_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR10_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 9 : Subregion 9 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR9_Pos (9UL) /*!< Position of SR9 field. */
+#define MWU_PERREGION_SUBSTATRA_SR9_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR9_Pos) /*!< Bit mask of SR9 field. */
+#define MWU_PERREGION_SUBSTATRA_SR9_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR9_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 8 : Subregion 8 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR8_Pos (8UL) /*!< Position of SR8 field. */
+#define MWU_PERREGION_SUBSTATRA_SR8_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR8_Pos) /*!< Bit mask of SR8 field. */
+#define MWU_PERREGION_SUBSTATRA_SR8_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR8_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 7 : Subregion 7 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR7_Pos (7UL) /*!< Position of SR7 field. */
+#define MWU_PERREGION_SUBSTATRA_SR7_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR7_Pos) /*!< Bit mask of SR7 field. */
+#define MWU_PERREGION_SUBSTATRA_SR7_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR7_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 6 : Subregion 6 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR6_Pos (6UL) /*!< Position of SR6 field. */
+#define MWU_PERREGION_SUBSTATRA_SR6_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR6_Pos) /*!< Bit mask of SR6 field. */
+#define MWU_PERREGION_SUBSTATRA_SR6_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR6_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 5 : Subregion 5 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR5_Pos (5UL) /*!< Position of SR5 field. */
+#define MWU_PERREGION_SUBSTATRA_SR5_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR5_Pos) /*!< Bit mask of SR5 field. */
+#define MWU_PERREGION_SUBSTATRA_SR5_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR5_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 4 : Subregion 4 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR4_Pos (4UL) /*!< Position of SR4 field. */
+#define MWU_PERREGION_SUBSTATRA_SR4_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR4_Pos) /*!< Bit mask of SR4 field. */
+#define MWU_PERREGION_SUBSTATRA_SR4_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR4_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 3 : Subregion 3 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR3_Pos (3UL) /*!< Position of SR3 field. */
+#define MWU_PERREGION_SUBSTATRA_SR3_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR3_Pos) /*!< Bit mask of SR3 field. */
+#define MWU_PERREGION_SUBSTATRA_SR3_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR3_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 2 : Subregion 2 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR2_Pos (2UL) /*!< Position of SR2 field. */
+#define MWU_PERREGION_SUBSTATRA_SR2_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR2_Pos) /*!< Bit mask of SR2 field. */
+#define MWU_PERREGION_SUBSTATRA_SR2_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR2_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 1 : Subregion 1 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR1_Pos (1UL) /*!< Position of SR1 field. */
+#define MWU_PERREGION_SUBSTATRA_SR1_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR1_Pos) /*!< Bit mask of SR1 field. */
+#define MWU_PERREGION_SUBSTATRA_SR1_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR1_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Bit 0 : Subregion 0 in region 0 (write '1' to clear) */
+#define MWU_PERREGION_SUBSTATRA_SR0_Pos (0UL) /*!< Position of SR0 field. */
+#define MWU_PERREGION_SUBSTATRA_SR0_Msk (0x1UL << MWU_PERREGION_SUBSTATRA_SR0_Pos) /*!< Bit mask of SR0 field. */
+#define MWU_PERREGION_SUBSTATRA_SR0_NoAccess (0UL) /*!< No read access occurred in this subregion */
+#define MWU_PERREGION_SUBSTATRA_SR0_Access (1UL) /*!< Read access(es) occurred in this subregion */
+
+/* Register: MWU_REGIONEN */
+/* Description: Enable/disable regions watch */
+
+/* Bit 27 : Enable/disable read access watch in PREGION[1] */
+#define MWU_REGIONEN_PRGN1RA_Pos (27UL) /*!< Position of PRGN1RA field. */
+#define MWU_REGIONEN_PRGN1RA_Msk (0x1UL << MWU_REGIONEN_PRGN1RA_Pos) /*!< Bit mask of PRGN1RA field. */
+#define MWU_REGIONEN_PRGN1RA_Disable (0UL) /*!< Disable read access watch in this PREGION */
+#define MWU_REGIONEN_PRGN1RA_Enable (1UL) /*!< Enable read access watch in this PREGION */
+
+/* Bit 26 : Enable/disable write access watch in PREGION[1] */
+#define MWU_REGIONEN_PRGN1WA_Pos (26UL) /*!< Position of PRGN1WA field. */
+#define MWU_REGIONEN_PRGN1WA_Msk (0x1UL << MWU_REGIONEN_PRGN1WA_Pos) /*!< Bit mask of PRGN1WA field. */
+#define MWU_REGIONEN_PRGN1WA_Disable (0UL) /*!< Disable write access watch in this PREGION */
+#define MWU_REGIONEN_PRGN1WA_Enable (1UL) /*!< Enable write access watch in this PREGION */
+
+/* Bit 25 : Enable/disable read access watch in PREGION[0] */
+#define MWU_REGIONEN_PRGN0RA_Pos (25UL) /*!< Position of PRGN0RA field. */
+#define MWU_REGIONEN_PRGN0RA_Msk (0x1UL << MWU_REGIONEN_PRGN0RA_Pos) /*!< Bit mask of PRGN0RA field. */
+#define MWU_REGIONEN_PRGN0RA_Disable (0UL) /*!< Disable read access watch in this PREGION */
+#define MWU_REGIONEN_PRGN0RA_Enable (1UL) /*!< Enable read access watch in this PREGION */
+
+/* Bit 24 : Enable/disable write access watch in PREGION[0] */
+#define MWU_REGIONEN_PRGN0WA_Pos (24UL) /*!< Position of PRGN0WA field. */
+#define MWU_REGIONEN_PRGN0WA_Msk (0x1UL << MWU_REGIONEN_PRGN0WA_Pos) /*!< Bit mask of PRGN0WA field. */
+#define MWU_REGIONEN_PRGN0WA_Disable (0UL) /*!< Disable write access watch in this PREGION */
+#define MWU_REGIONEN_PRGN0WA_Enable (1UL) /*!< Enable write access watch in this PREGION */
+
+/* Bit 7 : Enable/disable read access watch in region[3] */
+#define MWU_REGIONEN_RGN3RA_Pos (7UL) /*!< Position of RGN3RA field. */
+#define MWU_REGIONEN_RGN3RA_Msk (0x1UL << MWU_REGIONEN_RGN3RA_Pos) /*!< Bit mask of RGN3RA field. */
+#define MWU_REGIONEN_RGN3RA_Disable (0UL) /*!< Disable read access watch in this region */
+#define MWU_REGIONEN_RGN3RA_Enable (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 6 : Enable/disable write access watch in region[3] */
+#define MWU_REGIONEN_RGN3WA_Pos (6UL) /*!< Position of RGN3WA field. */
+#define MWU_REGIONEN_RGN3WA_Msk (0x1UL << MWU_REGIONEN_RGN3WA_Pos) /*!< Bit mask of RGN3WA field. */
+#define MWU_REGIONEN_RGN3WA_Disable (0UL) /*!< Disable write access watch in this region */
+#define MWU_REGIONEN_RGN3WA_Enable (1UL) /*!< Enable write access watch in this region */
+
+/* Bit 5 : Enable/disable read access watch in region[2] */
+#define MWU_REGIONEN_RGN2RA_Pos (5UL) /*!< Position of RGN2RA field. */
+#define MWU_REGIONEN_RGN2RA_Msk (0x1UL << MWU_REGIONEN_RGN2RA_Pos) /*!< Bit mask of RGN2RA field. */
+#define MWU_REGIONEN_RGN2RA_Disable (0UL) /*!< Disable read access watch in this region */
+#define MWU_REGIONEN_RGN2RA_Enable (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 4 : Enable/disable write access watch in region[2] */
+#define MWU_REGIONEN_RGN2WA_Pos (4UL) /*!< Position of RGN2WA field. */
+#define MWU_REGIONEN_RGN2WA_Msk (0x1UL << MWU_REGIONEN_RGN2WA_Pos) /*!< Bit mask of RGN2WA field. */
+#define MWU_REGIONEN_RGN2WA_Disable (0UL) /*!< Disable write access watch in this region */
+#define MWU_REGIONEN_RGN2WA_Enable (1UL) /*!< Enable write access watch in this region */
+
+/* Bit 3 : Enable/disable read access watch in region[1] */
+#define MWU_REGIONEN_RGN1RA_Pos (3UL) /*!< Position of RGN1RA field. */
+#define MWU_REGIONEN_RGN1RA_Msk (0x1UL << MWU_REGIONEN_RGN1RA_Pos) /*!< Bit mask of RGN1RA field. */
+#define MWU_REGIONEN_RGN1RA_Disable (0UL) /*!< Disable read access watch in this region */
+#define MWU_REGIONEN_RGN1RA_Enable (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 2 : Enable/disable write access watch in region[1] */
+#define MWU_REGIONEN_RGN1WA_Pos (2UL) /*!< Position of RGN1WA field. */
+#define MWU_REGIONEN_RGN1WA_Msk (0x1UL << MWU_REGIONEN_RGN1WA_Pos) /*!< Bit mask of RGN1WA field. */
+#define MWU_REGIONEN_RGN1WA_Disable (0UL) /*!< Disable write access watch in this region */
+#define MWU_REGIONEN_RGN1WA_Enable (1UL) /*!< Enable write access watch in this region */
+
+/* Bit 1 : Enable/disable read access watch in region[0] */
+#define MWU_REGIONEN_RGN0RA_Pos (1UL) /*!< Position of RGN0RA field. */
+#define MWU_REGIONEN_RGN0RA_Msk (0x1UL << MWU_REGIONEN_RGN0RA_Pos) /*!< Bit mask of RGN0RA field. */
+#define MWU_REGIONEN_RGN0RA_Disable (0UL) /*!< Disable read access watch in this region */
+#define MWU_REGIONEN_RGN0RA_Enable (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 0 : Enable/disable write access watch in region[0] */
+#define MWU_REGIONEN_RGN0WA_Pos (0UL) /*!< Position of RGN0WA field. */
+#define MWU_REGIONEN_RGN0WA_Msk (0x1UL << MWU_REGIONEN_RGN0WA_Pos) /*!< Bit mask of RGN0WA field. */
+#define MWU_REGIONEN_RGN0WA_Disable (0UL) /*!< Disable write access watch in this region */
+#define MWU_REGIONEN_RGN0WA_Enable (1UL) /*!< Enable write access watch in this region */
+
+/* Register: MWU_REGIONENSET */
+/* Description: Enable regions watch */
+
+/* Bit 27 : Enable read access watch in PREGION[1] */
+#define MWU_REGIONENSET_PRGN1RA_Pos (27UL) /*!< Position of PRGN1RA field. */
+#define MWU_REGIONENSET_PRGN1RA_Msk (0x1UL << MWU_REGIONENSET_PRGN1RA_Pos) /*!< Bit mask of PRGN1RA field. */
+#define MWU_REGIONENSET_PRGN1RA_Disabled (0UL) /*!< Read access watch in this PREGION is disabled */
+#define MWU_REGIONENSET_PRGN1RA_Enabled (1UL) /*!< Read access watch in this PREGION is enabled */
+#define MWU_REGIONENSET_PRGN1RA_Set (1UL) /*!< Enable read access watch in this PREGION */
+
+/* Bit 26 : Enable write access watch in PREGION[1] */
+#define MWU_REGIONENSET_PRGN1WA_Pos (26UL) /*!< Position of PRGN1WA field. */
+#define MWU_REGIONENSET_PRGN1WA_Msk (0x1UL << MWU_REGIONENSET_PRGN1WA_Pos) /*!< Bit mask of PRGN1WA field. */
+#define MWU_REGIONENSET_PRGN1WA_Disabled (0UL) /*!< Write access watch in this PREGION is disabled */
+#define MWU_REGIONENSET_PRGN1WA_Enabled (1UL) /*!< Write access watch in this PREGION is enabled */
+#define MWU_REGIONENSET_PRGN1WA_Set (1UL) /*!< Enable write access watch in this PREGION */
+
+/* Bit 25 : Enable read access watch in PREGION[0] */
+#define MWU_REGIONENSET_PRGN0RA_Pos (25UL) /*!< Position of PRGN0RA field. */
+#define MWU_REGIONENSET_PRGN0RA_Msk (0x1UL << MWU_REGIONENSET_PRGN0RA_Pos) /*!< Bit mask of PRGN0RA field. */
+#define MWU_REGIONENSET_PRGN0RA_Disabled (0UL) /*!< Read access watch in this PREGION is disabled */
+#define MWU_REGIONENSET_PRGN0RA_Enabled (1UL) /*!< Read access watch in this PREGION is enabled */
+#define MWU_REGIONENSET_PRGN0RA_Set (1UL) /*!< Enable read access watch in this PREGION */
+
+/* Bit 24 : Enable write access watch in PREGION[0] */
+#define MWU_REGIONENSET_PRGN0WA_Pos (24UL) /*!< Position of PRGN0WA field. */
+#define MWU_REGIONENSET_PRGN0WA_Msk (0x1UL << MWU_REGIONENSET_PRGN0WA_Pos) /*!< Bit mask of PRGN0WA field. */
+#define MWU_REGIONENSET_PRGN0WA_Disabled (0UL) /*!< Write access watch in this PREGION is disabled */
+#define MWU_REGIONENSET_PRGN0WA_Enabled (1UL) /*!< Write access watch in this PREGION is enabled */
+#define MWU_REGIONENSET_PRGN0WA_Set (1UL) /*!< Enable write access watch in this PREGION */
+
+/* Bit 7 : Enable read access watch in region[3] */
+#define MWU_REGIONENSET_RGN3RA_Pos (7UL) /*!< Position of RGN3RA field. */
+#define MWU_REGIONENSET_RGN3RA_Msk (0x1UL << MWU_REGIONENSET_RGN3RA_Pos) /*!< Bit mask of RGN3RA field. */
+#define MWU_REGIONENSET_RGN3RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN3RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN3RA_Set (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 6 : Enable write access watch in region[3] */
+#define MWU_REGIONENSET_RGN3WA_Pos (6UL) /*!< Position of RGN3WA field. */
+#define MWU_REGIONENSET_RGN3WA_Msk (0x1UL << MWU_REGIONENSET_RGN3WA_Pos) /*!< Bit mask of RGN3WA field. */
+#define MWU_REGIONENSET_RGN3WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN3WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN3WA_Set (1UL) /*!< Enable write access watch in this region */
+
+/* Bit 5 : Enable read access watch in region[2] */
+#define MWU_REGIONENSET_RGN2RA_Pos (5UL) /*!< Position of RGN2RA field. */
+#define MWU_REGIONENSET_RGN2RA_Msk (0x1UL << MWU_REGIONENSET_RGN2RA_Pos) /*!< Bit mask of RGN2RA field. */
+#define MWU_REGIONENSET_RGN2RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN2RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN2RA_Set (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 4 : Enable write access watch in region[2] */
+#define MWU_REGIONENSET_RGN2WA_Pos (4UL) /*!< Position of RGN2WA field. */
+#define MWU_REGIONENSET_RGN2WA_Msk (0x1UL << MWU_REGIONENSET_RGN2WA_Pos) /*!< Bit mask of RGN2WA field. */
+#define MWU_REGIONENSET_RGN2WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN2WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN2WA_Set (1UL) /*!< Enable write access watch in this region */
+
+/* Bit 3 : Enable read access watch in region[1] */
+#define MWU_REGIONENSET_RGN1RA_Pos (3UL) /*!< Position of RGN1RA field. */
+#define MWU_REGIONENSET_RGN1RA_Msk (0x1UL << MWU_REGIONENSET_RGN1RA_Pos) /*!< Bit mask of RGN1RA field. */
+#define MWU_REGIONENSET_RGN1RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN1RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN1RA_Set (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 2 : Enable write access watch in region[1] */
+#define MWU_REGIONENSET_RGN1WA_Pos (2UL) /*!< Position of RGN1WA field. */
+#define MWU_REGIONENSET_RGN1WA_Msk (0x1UL << MWU_REGIONENSET_RGN1WA_Pos) /*!< Bit mask of RGN1WA field. */
+#define MWU_REGIONENSET_RGN1WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN1WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN1WA_Set (1UL) /*!< Enable write access watch in this region */
+
+/* Bit 1 : Enable read access watch in region[0] */
+#define MWU_REGIONENSET_RGN0RA_Pos (1UL) /*!< Position of RGN0RA field. */
+#define MWU_REGIONENSET_RGN0RA_Msk (0x1UL << MWU_REGIONENSET_RGN0RA_Pos) /*!< Bit mask of RGN0RA field. */
+#define MWU_REGIONENSET_RGN0RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN0RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN0RA_Set (1UL) /*!< Enable read access watch in this region */
+
+/* Bit 0 : Enable write access watch in region[0] */
+#define MWU_REGIONENSET_RGN0WA_Pos (0UL) /*!< Position of RGN0WA field. */
+#define MWU_REGIONENSET_RGN0WA_Msk (0x1UL << MWU_REGIONENSET_RGN0WA_Pos) /*!< Bit mask of RGN0WA field. */
+#define MWU_REGIONENSET_RGN0WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENSET_RGN0WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENSET_RGN0WA_Set (1UL) /*!< Enable write access watch in this region */
+
+/* Register: MWU_REGIONENCLR */
+/* Description: Disable regions watch */
+
+/* Bit 27 : Disable read access watch in PREGION[1] */
+#define MWU_REGIONENCLR_PRGN1RA_Pos (27UL) /*!< Position of PRGN1RA field. */
+#define MWU_REGIONENCLR_PRGN1RA_Msk (0x1UL << MWU_REGIONENCLR_PRGN1RA_Pos) /*!< Bit mask of PRGN1RA field. */
+#define MWU_REGIONENCLR_PRGN1RA_Disabled (0UL) /*!< Read access watch in this PREGION is disabled */
+#define MWU_REGIONENCLR_PRGN1RA_Enabled (1UL) /*!< Read access watch in this PREGION is enabled */
+#define MWU_REGIONENCLR_PRGN1RA_Clear (1UL) /*!< Disable read access watch in this PREGION */
+
+/* Bit 26 : Disable write access watch in PREGION[1] */
+#define MWU_REGIONENCLR_PRGN1WA_Pos (26UL) /*!< Position of PRGN1WA field. */
+#define MWU_REGIONENCLR_PRGN1WA_Msk (0x1UL << MWU_REGIONENCLR_PRGN1WA_Pos) /*!< Bit mask of PRGN1WA field. */
+#define MWU_REGIONENCLR_PRGN1WA_Disabled (0UL) /*!< Write access watch in this PREGION is disabled */
+#define MWU_REGIONENCLR_PRGN1WA_Enabled (1UL) /*!< Write access watch in this PREGION is enabled */
+#define MWU_REGIONENCLR_PRGN1WA_Clear (1UL) /*!< Disable write access watch in this PREGION */
+
+/* Bit 25 : Disable read access watch in PREGION[0] */
+#define MWU_REGIONENCLR_PRGN0RA_Pos (25UL) /*!< Position of PRGN0RA field. */
+#define MWU_REGIONENCLR_PRGN0RA_Msk (0x1UL << MWU_REGIONENCLR_PRGN0RA_Pos) /*!< Bit mask of PRGN0RA field. */
+#define MWU_REGIONENCLR_PRGN0RA_Disabled (0UL) /*!< Read access watch in this PREGION is disabled */
+#define MWU_REGIONENCLR_PRGN0RA_Enabled (1UL) /*!< Read access watch in this PREGION is enabled */
+#define MWU_REGIONENCLR_PRGN0RA_Clear (1UL) /*!< Disable read access watch in this PREGION */
+
+/* Bit 24 : Disable write access watch in PREGION[0] */
+#define MWU_REGIONENCLR_PRGN0WA_Pos (24UL) /*!< Position of PRGN0WA field. */
+#define MWU_REGIONENCLR_PRGN0WA_Msk (0x1UL << MWU_REGIONENCLR_PRGN0WA_Pos) /*!< Bit mask of PRGN0WA field. */
+#define MWU_REGIONENCLR_PRGN0WA_Disabled (0UL) /*!< Write access watch in this PREGION is disabled */
+#define MWU_REGIONENCLR_PRGN0WA_Enabled (1UL) /*!< Write access watch in this PREGION is enabled */
+#define MWU_REGIONENCLR_PRGN0WA_Clear (1UL) /*!< Disable write access watch in this PREGION */
+
+/* Bit 7 : Disable read access watch in region[3] */
+#define MWU_REGIONENCLR_RGN3RA_Pos (7UL) /*!< Position of RGN3RA field. */
+#define MWU_REGIONENCLR_RGN3RA_Msk (0x1UL << MWU_REGIONENCLR_RGN3RA_Pos) /*!< Bit mask of RGN3RA field. */
+#define MWU_REGIONENCLR_RGN3RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN3RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN3RA_Clear (1UL) /*!< Disable read access watch in this region */
+
+/* Bit 6 : Disable write access watch in region[3] */
+#define MWU_REGIONENCLR_RGN3WA_Pos (6UL) /*!< Position of RGN3WA field. */
+#define MWU_REGIONENCLR_RGN3WA_Msk (0x1UL << MWU_REGIONENCLR_RGN3WA_Pos) /*!< Bit mask of RGN3WA field. */
+#define MWU_REGIONENCLR_RGN3WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN3WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN3WA_Clear (1UL) /*!< Disable write access watch in this region */
+
+/* Bit 5 : Disable read access watch in region[2] */
+#define MWU_REGIONENCLR_RGN2RA_Pos (5UL) /*!< Position of RGN2RA field. */
+#define MWU_REGIONENCLR_RGN2RA_Msk (0x1UL << MWU_REGIONENCLR_RGN2RA_Pos) /*!< Bit mask of RGN2RA field. */
+#define MWU_REGIONENCLR_RGN2RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN2RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN2RA_Clear (1UL) /*!< Disable read access watch in this region */
+
+/* Bit 4 : Disable write access watch in region[2] */
+#define MWU_REGIONENCLR_RGN2WA_Pos (4UL) /*!< Position of RGN2WA field. */
+#define MWU_REGIONENCLR_RGN2WA_Msk (0x1UL << MWU_REGIONENCLR_RGN2WA_Pos) /*!< Bit mask of RGN2WA field. */
+#define MWU_REGIONENCLR_RGN2WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN2WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN2WA_Clear (1UL) /*!< Disable write access watch in this region */
+
+/* Bit 3 : Disable read access watch in region[1] */
+#define MWU_REGIONENCLR_RGN1RA_Pos (3UL) /*!< Position of RGN1RA field. */
+#define MWU_REGIONENCLR_RGN1RA_Msk (0x1UL << MWU_REGIONENCLR_RGN1RA_Pos) /*!< Bit mask of RGN1RA field. */
+#define MWU_REGIONENCLR_RGN1RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN1RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN1RA_Clear (1UL) /*!< Disable read access watch in this region */
+
+/* Bit 2 : Disable write access watch in region[1] */
+#define MWU_REGIONENCLR_RGN1WA_Pos (2UL) /*!< Position of RGN1WA field. */
+#define MWU_REGIONENCLR_RGN1WA_Msk (0x1UL << MWU_REGIONENCLR_RGN1WA_Pos) /*!< Bit mask of RGN1WA field. */
+#define MWU_REGIONENCLR_RGN1WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN1WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN1WA_Clear (1UL) /*!< Disable write access watch in this region */
+
+/* Bit 1 : Disable read access watch in region[0] */
+#define MWU_REGIONENCLR_RGN0RA_Pos (1UL) /*!< Position of RGN0RA field. */
+#define MWU_REGIONENCLR_RGN0RA_Msk (0x1UL << MWU_REGIONENCLR_RGN0RA_Pos) /*!< Bit mask of RGN0RA field. */
+#define MWU_REGIONENCLR_RGN0RA_Disabled (0UL) /*!< Read access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN0RA_Enabled (1UL) /*!< Read access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN0RA_Clear (1UL) /*!< Disable read access watch in this region */
+
+/* Bit 0 : Disable write access watch in region[0] */
+#define MWU_REGIONENCLR_RGN0WA_Pos (0UL) /*!< Position of RGN0WA field. */
+#define MWU_REGIONENCLR_RGN0WA_Msk (0x1UL << MWU_REGIONENCLR_RGN0WA_Pos) /*!< Bit mask of RGN0WA field. */
+#define MWU_REGIONENCLR_RGN0WA_Disabled (0UL) /*!< Write access watch in this region is disabled */
+#define MWU_REGIONENCLR_RGN0WA_Enabled (1UL) /*!< Write access watch in this region is enabled */
+#define MWU_REGIONENCLR_RGN0WA_Clear (1UL) /*!< Disable write access watch in this region */
+
+/* Register: MWU_REGION_START */
+/* Description: Description cluster[0]: Start address for region 0 */
+
+/* Bits 31..0 : Start address for region */
+#define MWU_REGION_START_START_Pos (0UL) /*!< Position of START field. */
+#define MWU_REGION_START_START_Msk (0xFFFFFFFFUL << MWU_REGION_START_START_Pos) /*!< Bit mask of START field. */
+
+/* Register: MWU_REGION_END */
+/* Description: Description cluster[0]: End address of region 0 */
+
+/* Bits 31..0 : End address of region. */
+#define MWU_REGION_END_END_Pos (0UL) /*!< Position of END field. */
+#define MWU_REGION_END_END_Msk (0xFFFFFFFFUL << MWU_REGION_END_END_Pos) /*!< Bit mask of END field. */
+
+/* Register: MWU_PREGION_START */
+/* Description: Description cluster[0]: Reserved for future use */
+
+/* Bits 31..0 : Reserved for future use */
+#define MWU_PREGION_START_START_Pos (0UL) /*!< Position of START field. */
+#define MWU_PREGION_START_START_Msk (0xFFFFFFFFUL << MWU_PREGION_START_START_Pos) /*!< Bit mask of START field. */
+
+/* Register: MWU_PREGION_END */
+/* Description: Description cluster[0]: Reserved for future use */
+
+/* Bits 31..0 : Reserved for future use */
+#define MWU_PREGION_END_END_Pos (0UL) /*!< Position of END field. */
+#define MWU_PREGION_END_END_Msk (0xFFFFFFFFUL << MWU_PREGION_END_END_Pos) /*!< Bit mask of END field. */
+
+/* Register: MWU_PREGION_SUBS */
+/* Description: Description cluster[0]: Subregions of region 0 */
+
+/* Bit 31 : Include or exclude subregion 31 in region */
+#define MWU_PREGION_SUBS_SR31_Pos (31UL) /*!< Position of SR31 field. */
+#define MWU_PREGION_SUBS_SR31_Msk (0x1UL << MWU_PREGION_SUBS_SR31_Pos) /*!< Bit mask of SR31 field. */
+#define MWU_PREGION_SUBS_SR31_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR31_Include (1UL) /*!< Include */
+
+/* Bit 30 : Include or exclude subregion 30 in region */
+#define MWU_PREGION_SUBS_SR30_Pos (30UL) /*!< Position of SR30 field. */
+#define MWU_PREGION_SUBS_SR30_Msk (0x1UL << MWU_PREGION_SUBS_SR30_Pos) /*!< Bit mask of SR30 field. */
+#define MWU_PREGION_SUBS_SR30_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR30_Include (1UL) /*!< Include */
+
+/* Bit 29 : Include or exclude subregion 29 in region */
+#define MWU_PREGION_SUBS_SR29_Pos (29UL) /*!< Position of SR29 field. */
+#define MWU_PREGION_SUBS_SR29_Msk (0x1UL << MWU_PREGION_SUBS_SR29_Pos) /*!< Bit mask of SR29 field. */
+#define MWU_PREGION_SUBS_SR29_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR29_Include (1UL) /*!< Include */
+
+/* Bit 28 : Include or exclude subregion 28 in region */
+#define MWU_PREGION_SUBS_SR28_Pos (28UL) /*!< Position of SR28 field. */
+#define MWU_PREGION_SUBS_SR28_Msk (0x1UL << MWU_PREGION_SUBS_SR28_Pos) /*!< Bit mask of SR28 field. */
+#define MWU_PREGION_SUBS_SR28_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR28_Include (1UL) /*!< Include */
+
+/* Bit 27 : Include or exclude subregion 27 in region */
+#define MWU_PREGION_SUBS_SR27_Pos (27UL) /*!< Position of SR27 field. */
+#define MWU_PREGION_SUBS_SR27_Msk (0x1UL << MWU_PREGION_SUBS_SR27_Pos) /*!< Bit mask of SR27 field. */
+#define MWU_PREGION_SUBS_SR27_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR27_Include (1UL) /*!< Include */
+
+/* Bit 26 : Include or exclude subregion 26 in region */
+#define MWU_PREGION_SUBS_SR26_Pos (26UL) /*!< Position of SR26 field. */
+#define MWU_PREGION_SUBS_SR26_Msk (0x1UL << MWU_PREGION_SUBS_SR26_Pos) /*!< Bit mask of SR26 field. */
+#define MWU_PREGION_SUBS_SR26_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR26_Include (1UL) /*!< Include */
+
+/* Bit 25 : Include or exclude subregion 25 in region */
+#define MWU_PREGION_SUBS_SR25_Pos (25UL) /*!< Position of SR25 field. */
+#define MWU_PREGION_SUBS_SR25_Msk (0x1UL << MWU_PREGION_SUBS_SR25_Pos) /*!< Bit mask of SR25 field. */
+#define MWU_PREGION_SUBS_SR25_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR25_Include (1UL) /*!< Include */
+
+/* Bit 24 : Include or exclude subregion 24 in region */
+#define MWU_PREGION_SUBS_SR24_Pos (24UL) /*!< Position of SR24 field. */
+#define MWU_PREGION_SUBS_SR24_Msk (0x1UL << MWU_PREGION_SUBS_SR24_Pos) /*!< Bit mask of SR24 field. */
+#define MWU_PREGION_SUBS_SR24_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR24_Include (1UL) /*!< Include */
+
+/* Bit 23 : Include or exclude subregion 23 in region */
+#define MWU_PREGION_SUBS_SR23_Pos (23UL) /*!< Position of SR23 field. */
+#define MWU_PREGION_SUBS_SR23_Msk (0x1UL << MWU_PREGION_SUBS_SR23_Pos) /*!< Bit mask of SR23 field. */
+#define MWU_PREGION_SUBS_SR23_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR23_Include (1UL) /*!< Include */
+
+/* Bit 22 : Include or exclude subregion 22 in region */
+#define MWU_PREGION_SUBS_SR22_Pos (22UL) /*!< Position of SR22 field. */
+#define MWU_PREGION_SUBS_SR22_Msk (0x1UL << MWU_PREGION_SUBS_SR22_Pos) /*!< Bit mask of SR22 field. */
+#define MWU_PREGION_SUBS_SR22_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR22_Include (1UL) /*!< Include */
+
+/* Bit 21 : Include or exclude subregion 21 in region */
+#define MWU_PREGION_SUBS_SR21_Pos (21UL) /*!< Position of SR21 field. */
+#define MWU_PREGION_SUBS_SR21_Msk (0x1UL << MWU_PREGION_SUBS_SR21_Pos) /*!< Bit mask of SR21 field. */
+#define MWU_PREGION_SUBS_SR21_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR21_Include (1UL) /*!< Include */
+
+/* Bit 20 : Include or exclude subregion 20 in region */
+#define MWU_PREGION_SUBS_SR20_Pos (20UL) /*!< Position of SR20 field. */
+#define MWU_PREGION_SUBS_SR20_Msk (0x1UL << MWU_PREGION_SUBS_SR20_Pos) /*!< Bit mask of SR20 field. */
+#define MWU_PREGION_SUBS_SR20_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR20_Include (1UL) /*!< Include */
+
+/* Bit 19 : Include or exclude subregion 19 in region */
+#define MWU_PREGION_SUBS_SR19_Pos (19UL) /*!< Position of SR19 field. */
+#define MWU_PREGION_SUBS_SR19_Msk (0x1UL << MWU_PREGION_SUBS_SR19_Pos) /*!< Bit mask of SR19 field. */
+#define MWU_PREGION_SUBS_SR19_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR19_Include (1UL) /*!< Include */
+
+/* Bit 18 : Include or exclude subregion 18 in region */
+#define MWU_PREGION_SUBS_SR18_Pos (18UL) /*!< Position of SR18 field. */
+#define MWU_PREGION_SUBS_SR18_Msk (0x1UL << MWU_PREGION_SUBS_SR18_Pos) /*!< Bit mask of SR18 field. */
+#define MWU_PREGION_SUBS_SR18_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR18_Include (1UL) /*!< Include */
+
+/* Bit 17 : Include or exclude subregion 17 in region */
+#define MWU_PREGION_SUBS_SR17_Pos (17UL) /*!< Position of SR17 field. */
+#define MWU_PREGION_SUBS_SR17_Msk (0x1UL << MWU_PREGION_SUBS_SR17_Pos) /*!< Bit mask of SR17 field. */
+#define MWU_PREGION_SUBS_SR17_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR17_Include (1UL) /*!< Include */
+
+/* Bit 16 : Include or exclude subregion 16 in region */
+#define MWU_PREGION_SUBS_SR16_Pos (16UL) /*!< Position of SR16 field. */
+#define MWU_PREGION_SUBS_SR16_Msk (0x1UL << MWU_PREGION_SUBS_SR16_Pos) /*!< Bit mask of SR16 field. */
+#define MWU_PREGION_SUBS_SR16_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR16_Include (1UL) /*!< Include */
+
+/* Bit 15 : Include or exclude subregion 15 in region */
+#define MWU_PREGION_SUBS_SR15_Pos (15UL) /*!< Position of SR15 field. */
+#define MWU_PREGION_SUBS_SR15_Msk (0x1UL << MWU_PREGION_SUBS_SR15_Pos) /*!< Bit mask of SR15 field. */
+#define MWU_PREGION_SUBS_SR15_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR15_Include (1UL) /*!< Include */
+
+/* Bit 14 : Include or exclude subregion 14 in region */
+#define MWU_PREGION_SUBS_SR14_Pos (14UL) /*!< Position of SR14 field. */
+#define MWU_PREGION_SUBS_SR14_Msk (0x1UL << MWU_PREGION_SUBS_SR14_Pos) /*!< Bit mask of SR14 field. */
+#define MWU_PREGION_SUBS_SR14_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR14_Include (1UL) /*!< Include */
+
+/* Bit 13 : Include or exclude subregion 13 in region */
+#define MWU_PREGION_SUBS_SR13_Pos (13UL) /*!< Position of SR13 field. */
+#define MWU_PREGION_SUBS_SR13_Msk (0x1UL << MWU_PREGION_SUBS_SR13_Pos) /*!< Bit mask of SR13 field. */
+#define MWU_PREGION_SUBS_SR13_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR13_Include (1UL) /*!< Include */
+
+/* Bit 12 : Include or exclude subregion 12 in region */
+#define MWU_PREGION_SUBS_SR12_Pos (12UL) /*!< Position of SR12 field. */
+#define MWU_PREGION_SUBS_SR12_Msk (0x1UL << MWU_PREGION_SUBS_SR12_Pos) /*!< Bit mask of SR12 field. */
+#define MWU_PREGION_SUBS_SR12_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR12_Include (1UL) /*!< Include */
+
+/* Bit 11 : Include or exclude subregion 11 in region */
+#define MWU_PREGION_SUBS_SR11_Pos (11UL) /*!< Position of SR11 field. */
+#define MWU_PREGION_SUBS_SR11_Msk (0x1UL << MWU_PREGION_SUBS_SR11_Pos) /*!< Bit mask of SR11 field. */
+#define MWU_PREGION_SUBS_SR11_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR11_Include (1UL) /*!< Include */
+
+/* Bit 10 : Include or exclude subregion 10 in region */
+#define MWU_PREGION_SUBS_SR10_Pos (10UL) /*!< Position of SR10 field. */
+#define MWU_PREGION_SUBS_SR10_Msk (0x1UL << MWU_PREGION_SUBS_SR10_Pos) /*!< Bit mask of SR10 field. */
+#define MWU_PREGION_SUBS_SR10_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR10_Include (1UL) /*!< Include */
+
+/* Bit 9 : Include or exclude subregion 9 in region */
+#define MWU_PREGION_SUBS_SR9_Pos (9UL) /*!< Position of SR9 field. */
+#define MWU_PREGION_SUBS_SR9_Msk (0x1UL << MWU_PREGION_SUBS_SR9_Pos) /*!< Bit mask of SR9 field. */
+#define MWU_PREGION_SUBS_SR9_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR9_Include (1UL) /*!< Include */
+
+/* Bit 8 : Include or exclude subregion 8 in region */
+#define MWU_PREGION_SUBS_SR8_Pos (8UL) /*!< Position of SR8 field. */
+#define MWU_PREGION_SUBS_SR8_Msk (0x1UL << MWU_PREGION_SUBS_SR8_Pos) /*!< Bit mask of SR8 field. */
+#define MWU_PREGION_SUBS_SR8_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR8_Include (1UL) /*!< Include */
+
+/* Bit 7 : Include or exclude subregion 7 in region */
+#define MWU_PREGION_SUBS_SR7_Pos (7UL) /*!< Position of SR7 field. */
+#define MWU_PREGION_SUBS_SR7_Msk (0x1UL << MWU_PREGION_SUBS_SR7_Pos) /*!< Bit mask of SR7 field. */
+#define MWU_PREGION_SUBS_SR7_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR7_Include (1UL) /*!< Include */
+
+/* Bit 6 : Include or exclude subregion 6 in region */
+#define MWU_PREGION_SUBS_SR6_Pos (6UL) /*!< Position of SR6 field. */
+#define MWU_PREGION_SUBS_SR6_Msk (0x1UL << MWU_PREGION_SUBS_SR6_Pos) /*!< Bit mask of SR6 field. */
+#define MWU_PREGION_SUBS_SR6_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR6_Include (1UL) /*!< Include */
+
+/* Bit 5 : Include or exclude subregion 5 in region */
+#define MWU_PREGION_SUBS_SR5_Pos (5UL) /*!< Position of SR5 field. */
+#define MWU_PREGION_SUBS_SR5_Msk (0x1UL << MWU_PREGION_SUBS_SR5_Pos) /*!< Bit mask of SR5 field. */
+#define MWU_PREGION_SUBS_SR5_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR5_Include (1UL) /*!< Include */
+
+/* Bit 4 : Include or exclude subregion 4 in region */
+#define MWU_PREGION_SUBS_SR4_Pos (4UL) /*!< Position of SR4 field. */
+#define MWU_PREGION_SUBS_SR4_Msk (0x1UL << MWU_PREGION_SUBS_SR4_Pos) /*!< Bit mask of SR4 field. */
+#define MWU_PREGION_SUBS_SR4_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR4_Include (1UL) /*!< Include */
+
+/* Bit 3 : Include or exclude subregion 3 in region */
+#define MWU_PREGION_SUBS_SR3_Pos (3UL) /*!< Position of SR3 field. */
+#define MWU_PREGION_SUBS_SR3_Msk (0x1UL << MWU_PREGION_SUBS_SR3_Pos) /*!< Bit mask of SR3 field. */
+#define MWU_PREGION_SUBS_SR3_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR3_Include (1UL) /*!< Include */
+
+/* Bit 2 : Include or exclude subregion 2 in region */
+#define MWU_PREGION_SUBS_SR2_Pos (2UL) /*!< Position of SR2 field. */
+#define MWU_PREGION_SUBS_SR2_Msk (0x1UL << MWU_PREGION_SUBS_SR2_Pos) /*!< Bit mask of SR2 field. */
+#define MWU_PREGION_SUBS_SR2_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR2_Include (1UL) /*!< Include */
+
+/* Bit 1 : Include or exclude subregion 1 in region */
+#define MWU_PREGION_SUBS_SR1_Pos (1UL) /*!< Position of SR1 field. */
+#define MWU_PREGION_SUBS_SR1_Msk (0x1UL << MWU_PREGION_SUBS_SR1_Pos) /*!< Bit mask of SR1 field. */
+#define MWU_PREGION_SUBS_SR1_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR1_Include (1UL) /*!< Include */
+
+/* Bit 0 : Include or exclude subregion 0 in region */
+#define MWU_PREGION_SUBS_SR0_Pos (0UL) /*!< Position of SR0 field. */
+#define MWU_PREGION_SUBS_SR0_Msk (0x1UL << MWU_PREGION_SUBS_SR0_Pos) /*!< Bit mask of SR0 field. */
+#define MWU_PREGION_SUBS_SR0_Exclude (0UL) /*!< Exclude */
+#define MWU_PREGION_SUBS_SR0_Include (1UL) /*!< Include */
+
+
+/* Peripheral: NFCT */
+/* Description: NFC-A compatible radio */
+
+/* Register: NFCT_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 1 : Shortcut between FIELDLOST event and SENSE task */
+#define NFCT_SHORTS_FIELDLOST_SENSE_Pos (1UL) /*!< Position of FIELDLOST_SENSE field. */
+#define NFCT_SHORTS_FIELDLOST_SENSE_Msk (0x1UL << NFCT_SHORTS_FIELDLOST_SENSE_Pos) /*!< Bit mask of FIELDLOST_SENSE field. */
+#define NFCT_SHORTS_FIELDLOST_SENSE_Disabled (0UL) /*!< Disable shortcut */
+#define NFCT_SHORTS_FIELDLOST_SENSE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between FIELDDETECTED event and ACTIVATE task */
+#define NFCT_SHORTS_FIELDDETECTED_ACTIVATE_Pos (0UL) /*!< Position of FIELDDETECTED_ACTIVATE field. */
+#define NFCT_SHORTS_FIELDDETECTED_ACTIVATE_Msk (0x1UL << NFCT_SHORTS_FIELDDETECTED_ACTIVATE_Pos) /*!< Bit mask of FIELDDETECTED_ACTIVATE field. */
+#define NFCT_SHORTS_FIELDDETECTED_ACTIVATE_Disabled (0UL) /*!< Disable shortcut */
+#define NFCT_SHORTS_FIELDDETECTED_ACTIVATE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: NFCT_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 20 : Enable or disable interrupt for STARTED event */
+#define NFCT_INTEN_STARTED_Pos (20UL) /*!< Position of STARTED field. */
+#define NFCT_INTEN_STARTED_Msk (0x1UL << NFCT_INTEN_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define NFCT_INTEN_STARTED_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_STARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for SELECTED event */
+#define NFCT_INTEN_SELECTED_Pos (19UL) /*!< Position of SELECTED field. */
+#define NFCT_INTEN_SELECTED_Msk (0x1UL << NFCT_INTEN_SELECTED_Pos) /*!< Bit mask of SELECTED field. */
+#define NFCT_INTEN_SELECTED_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_SELECTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 18 : Enable or disable interrupt for COLLISION event */
+#define NFCT_INTEN_COLLISION_Pos (18UL) /*!< Position of COLLISION field. */
+#define NFCT_INTEN_COLLISION_Msk (0x1UL << NFCT_INTEN_COLLISION_Pos) /*!< Bit mask of COLLISION field. */
+#define NFCT_INTEN_COLLISION_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_COLLISION_Enabled (1UL) /*!< Enable */
+
+/* Bit 14 : Enable or disable interrupt for AUTOCOLRESSTARTED event */
+#define NFCT_INTEN_AUTOCOLRESSTARTED_Pos (14UL) /*!< Position of AUTOCOLRESSTARTED field. */
+#define NFCT_INTEN_AUTOCOLRESSTARTED_Msk (0x1UL << NFCT_INTEN_AUTOCOLRESSTARTED_Pos) /*!< Bit mask of AUTOCOLRESSTARTED field. */
+#define NFCT_INTEN_AUTOCOLRESSTARTED_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_AUTOCOLRESSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 12 : Enable or disable interrupt for ENDTX event */
+#define NFCT_INTEN_ENDTX_Pos (12UL) /*!< Position of ENDTX field. */
+#define NFCT_INTEN_ENDTX_Msk (0x1UL << NFCT_INTEN_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define NFCT_INTEN_ENDTX_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_ENDTX_Enabled (1UL) /*!< Enable */
+
+/* Bit 11 : Enable or disable interrupt for ENDRX event */
+#define NFCT_INTEN_ENDRX_Pos (11UL) /*!< Position of ENDRX field. */
+#define NFCT_INTEN_ENDRX_Msk (0x1UL << NFCT_INTEN_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define NFCT_INTEN_ENDRX_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_ENDRX_Enabled (1UL) /*!< Enable */
+
+/* Bit 10 : Enable or disable interrupt for RXERROR event */
+#define NFCT_INTEN_RXERROR_Pos (10UL) /*!< Position of RXERROR field. */
+#define NFCT_INTEN_RXERROR_Msk (0x1UL << NFCT_INTEN_RXERROR_Pos) /*!< Bit mask of RXERROR field. */
+#define NFCT_INTEN_RXERROR_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_RXERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for ERROR event */
+#define NFCT_INTEN_ERROR_Pos (7UL) /*!< Position of ERROR field. */
+#define NFCT_INTEN_ERROR_Msk (0x1UL << NFCT_INTEN_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define NFCT_INTEN_ERROR_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_ERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for RXFRAMEEND event */
+#define NFCT_INTEN_RXFRAMEEND_Pos (6UL) /*!< Position of RXFRAMEEND field. */
+#define NFCT_INTEN_RXFRAMEEND_Msk (0x1UL << NFCT_INTEN_RXFRAMEEND_Pos) /*!< Bit mask of RXFRAMEEND field. */
+#define NFCT_INTEN_RXFRAMEEND_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_RXFRAMEEND_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for RXFRAMESTART event */
+#define NFCT_INTEN_RXFRAMESTART_Pos (5UL) /*!< Position of RXFRAMESTART field. */
+#define NFCT_INTEN_RXFRAMESTART_Msk (0x1UL << NFCT_INTEN_RXFRAMESTART_Pos) /*!< Bit mask of RXFRAMESTART field. */
+#define NFCT_INTEN_RXFRAMESTART_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_RXFRAMESTART_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for TXFRAMEEND event */
+#define NFCT_INTEN_TXFRAMEEND_Pos (4UL) /*!< Position of TXFRAMEEND field. */
+#define NFCT_INTEN_TXFRAMEEND_Msk (0x1UL << NFCT_INTEN_TXFRAMEEND_Pos) /*!< Bit mask of TXFRAMEEND field. */
+#define NFCT_INTEN_TXFRAMEEND_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_TXFRAMEEND_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for TXFRAMESTART event */
+#define NFCT_INTEN_TXFRAMESTART_Pos (3UL) /*!< Position of TXFRAMESTART field. */
+#define NFCT_INTEN_TXFRAMESTART_Msk (0x1UL << NFCT_INTEN_TXFRAMESTART_Pos) /*!< Bit mask of TXFRAMESTART field. */
+#define NFCT_INTEN_TXFRAMESTART_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_TXFRAMESTART_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for FIELDLOST event */
+#define NFCT_INTEN_FIELDLOST_Pos (2UL) /*!< Position of FIELDLOST field. */
+#define NFCT_INTEN_FIELDLOST_Msk (0x1UL << NFCT_INTEN_FIELDLOST_Pos) /*!< Bit mask of FIELDLOST field. */
+#define NFCT_INTEN_FIELDLOST_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_FIELDLOST_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for FIELDDETECTED event */
+#define NFCT_INTEN_FIELDDETECTED_Pos (1UL) /*!< Position of FIELDDETECTED field. */
+#define NFCT_INTEN_FIELDDETECTED_Msk (0x1UL << NFCT_INTEN_FIELDDETECTED_Pos) /*!< Bit mask of FIELDDETECTED field. */
+#define NFCT_INTEN_FIELDDETECTED_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_FIELDDETECTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for READY event */
+#define NFCT_INTEN_READY_Pos (0UL) /*!< Position of READY field. */
+#define NFCT_INTEN_READY_Msk (0x1UL << NFCT_INTEN_READY_Pos) /*!< Bit mask of READY field. */
+#define NFCT_INTEN_READY_Disabled (0UL) /*!< Disable */
+#define NFCT_INTEN_READY_Enabled (1UL) /*!< Enable */
+
+/* Register: NFCT_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 20 : Write '1' to Enable interrupt for STARTED event */
+#define NFCT_INTENSET_STARTED_Pos (20UL) /*!< Position of STARTED field. */
+#define NFCT_INTENSET_STARTED_Msk (0x1UL << NFCT_INTENSET_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define NFCT_INTENSET_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_STARTED_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to Enable interrupt for SELECTED event */
+#define NFCT_INTENSET_SELECTED_Pos (19UL) /*!< Position of SELECTED field. */
+#define NFCT_INTENSET_SELECTED_Msk (0x1UL << NFCT_INTENSET_SELECTED_Pos) /*!< Bit mask of SELECTED field. */
+#define NFCT_INTENSET_SELECTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_SELECTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_SELECTED_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to Enable interrupt for COLLISION event */
+#define NFCT_INTENSET_COLLISION_Pos (18UL) /*!< Position of COLLISION field. */
+#define NFCT_INTENSET_COLLISION_Msk (0x1UL << NFCT_INTENSET_COLLISION_Pos) /*!< Bit mask of COLLISION field. */
+#define NFCT_INTENSET_COLLISION_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_COLLISION_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_COLLISION_Set (1UL) /*!< Enable */
+
+/* Bit 14 : Write '1' to Enable interrupt for AUTOCOLRESSTARTED event */
+#define NFCT_INTENSET_AUTOCOLRESSTARTED_Pos (14UL) /*!< Position of AUTOCOLRESSTARTED field. */
+#define NFCT_INTENSET_AUTOCOLRESSTARTED_Msk (0x1UL << NFCT_INTENSET_AUTOCOLRESSTARTED_Pos) /*!< Bit mask of AUTOCOLRESSTARTED field. */
+#define NFCT_INTENSET_AUTOCOLRESSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_AUTOCOLRESSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_AUTOCOLRESSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 12 : Write '1' to Enable interrupt for ENDTX event */
+#define NFCT_INTENSET_ENDTX_Pos (12UL) /*!< Position of ENDTX field. */
+#define NFCT_INTENSET_ENDTX_Msk (0x1UL << NFCT_INTENSET_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define NFCT_INTENSET_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_ENDTX_Set (1UL) /*!< Enable */
+
+/* Bit 11 : Write '1' to Enable interrupt for ENDRX event */
+#define NFCT_INTENSET_ENDRX_Pos (11UL) /*!< Position of ENDRX field. */
+#define NFCT_INTENSET_ENDRX_Msk (0x1UL << NFCT_INTENSET_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define NFCT_INTENSET_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_ENDRX_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to Enable interrupt for RXERROR event */
+#define NFCT_INTENSET_RXERROR_Pos (10UL) /*!< Position of RXERROR field. */
+#define NFCT_INTENSET_RXERROR_Msk (0x1UL << NFCT_INTENSET_RXERROR_Pos) /*!< Bit mask of RXERROR field. */
+#define NFCT_INTENSET_RXERROR_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_RXERROR_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_RXERROR_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for ERROR event */
+#define NFCT_INTENSET_ERROR_Pos (7UL) /*!< Position of ERROR field. */
+#define NFCT_INTENSET_ERROR_Msk (0x1UL << NFCT_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define NFCT_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for RXFRAMEEND event */
+#define NFCT_INTENSET_RXFRAMEEND_Pos (6UL) /*!< Position of RXFRAMEEND field. */
+#define NFCT_INTENSET_RXFRAMEEND_Msk (0x1UL << NFCT_INTENSET_RXFRAMEEND_Pos) /*!< Bit mask of RXFRAMEEND field. */
+#define NFCT_INTENSET_RXFRAMEEND_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_RXFRAMEEND_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_RXFRAMEEND_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for RXFRAMESTART event */
+#define NFCT_INTENSET_RXFRAMESTART_Pos (5UL) /*!< Position of RXFRAMESTART field. */
+#define NFCT_INTENSET_RXFRAMESTART_Msk (0x1UL << NFCT_INTENSET_RXFRAMESTART_Pos) /*!< Bit mask of RXFRAMESTART field. */
+#define NFCT_INTENSET_RXFRAMESTART_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_RXFRAMESTART_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_RXFRAMESTART_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for TXFRAMEEND event */
+#define NFCT_INTENSET_TXFRAMEEND_Pos (4UL) /*!< Position of TXFRAMEEND field. */
+#define NFCT_INTENSET_TXFRAMEEND_Msk (0x1UL << NFCT_INTENSET_TXFRAMEEND_Pos) /*!< Bit mask of TXFRAMEEND field. */
+#define NFCT_INTENSET_TXFRAMEEND_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_TXFRAMEEND_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_TXFRAMEEND_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for TXFRAMESTART event */
+#define NFCT_INTENSET_TXFRAMESTART_Pos (3UL) /*!< Position of TXFRAMESTART field. */
+#define NFCT_INTENSET_TXFRAMESTART_Msk (0x1UL << NFCT_INTENSET_TXFRAMESTART_Pos) /*!< Bit mask of TXFRAMESTART field. */
+#define NFCT_INTENSET_TXFRAMESTART_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_TXFRAMESTART_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_TXFRAMESTART_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for FIELDLOST event */
+#define NFCT_INTENSET_FIELDLOST_Pos (2UL) /*!< Position of FIELDLOST field. */
+#define NFCT_INTENSET_FIELDLOST_Msk (0x1UL << NFCT_INTENSET_FIELDLOST_Pos) /*!< Bit mask of FIELDLOST field. */
+#define NFCT_INTENSET_FIELDLOST_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_FIELDLOST_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_FIELDLOST_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for FIELDDETECTED event */
+#define NFCT_INTENSET_FIELDDETECTED_Pos (1UL) /*!< Position of FIELDDETECTED field. */
+#define NFCT_INTENSET_FIELDDETECTED_Msk (0x1UL << NFCT_INTENSET_FIELDDETECTED_Pos) /*!< Bit mask of FIELDDETECTED field. */
+#define NFCT_INTENSET_FIELDDETECTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_FIELDDETECTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_FIELDDETECTED_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for READY event */
+#define NFCT_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define NFCT_INTENSET_READY_Msk (0x1UL << NFCT_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define NFCT_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: NFCT_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 20 : Write '1' to Disable interrupt for STARTED event */
+#define NFCT_INTENCLR_STARTED_Pos (20UL) /*!< Position of STARTED field. */
+#define NFCT_INTENCLR_STARTED_Msk (0x1UL << NFCT_INTENCLR_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define NFCT_INTENCLR_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_STARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to Disable interrupt for SELECTED event */
+#define NFCT_INTENCLR_SELECTED_Pos (19UL) /*!< Position of SELECTED field. */
+#define NFCT_INTENCLR_SELECTED_Msk (0x1UL << NFCT_INTENCLR_SELECTED_Pos) /*!< Bit mask of SELECTED field. */
+#define NFCT_INTENCLR_SELECTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_SELECTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_SELECTED_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to Disable interrupt for COLLISION event */
+#define NFCT_INTENCLR_COLLISION_Pos (18UL) /*!< Position of COLLISION field. */
+#define NFCT_INTENCLR_COLLISION_Msk (0x1UL << NFCT_INTENCLR_COLLISION_Pos) /*!< Bit mask of COLLISION field. */
+#define NFCT_INTENCLR_COLLISION_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_COLLISION_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_COLLISION_Clear (1UL) /*!< Disable */
+
+/* Bit 14 : Write '1' to Disable interrupt for AUTOCOLRESSTARTED event */
+#define NFCT_INTENCLR_AUTOCOLRESSTARTED_Pos (14UL) /*!< Position of AUTOCOLRESSTARTED field. */
+#define NFCT_INTENCLR_AUTOCOLRESSTARTED_Msk (0x1UL << NFCT_INTENCLR_AUTOCOLRESSTARTED_Pos) /*!< Bit mask of AUTOCOLRESSTARTED field. */
+#define NFCT_INTENCLR_AUTOCOLRESSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_AUTOCOLRESSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_AUTOCOLRESSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 12 : Write '1' to Disable interrupt for ENDTX event */
+#define NFCT_INTENCLR_ENDTX_Pos (12UL) /*!< Position of ENDTX field. */
+#define NFCT_INTENCLR_ENDTX_Msk (0x1UL << NFCT_INTENCLR_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define NFCT_INTENCLR_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_ENDTX_Clear (1UL) /*!< Disable */
+
+/* Bit 11 : Write '1' to Disable interrupt for ENDRX event */
+#define NFCT_INTENCLR_ENDRX_Pos (11UL) /*!< Position of ENDRX field. */
+#define NFCT_INTENCLR_ENDRX_Msk (0x1UL << NFCT_INTENCLR_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define NFCT_INTENCLR_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_ENDRX_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to Disable interrupt for RXERROR event */
+#define NFCT_INTENCLR_RXERROR_Pos (10UL) /*!< Position of RXERROR field. */
+#define NFCT_INTENCLR_RXERROR_Msk (0x1UL << NFCT_INTENCLR_RXERROR_Pos) /*!< Bit mask of RXERROR field. */
+#define NFCT_INTENCLR_RXERROR_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_RXERROR_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_RXERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for ERROR event */
+#define NFCT_INTENCLR_ERROR_Pos (7UL) /*!< Position of ERROR field. */
+#define NFCT_INTENCLR_ERROR_Msk (0x1UL << NFCT_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define NFCT_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for RXFRAMEEND event */
+#define NFCT_INTENCLR_RXFRAMEEND_Pos (6UL) /*!< Position of RXFRAMEEND field. */
+#define NFCT_INTENCLR_RXFRAMEEND_Msk (0x1UL << NFCT_INTENCLR_RXFRAMEEND_Pos) /*!< Bit mask of RXFRAMEEND field. */
+#define NFCT_INTENCLR_RXFRAMEEND_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_RXFRAMEEND_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_RXFRAMEEND_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for RXFRAMESTART event */
+#define NFCT_INTENCLR_RXFRAMESTART_Pos (5UL) /*!< Position of RXFRAMESTART field. */
+#define NFCT_INTENCLR_RXFRAMESTART_Msk (0x1UL << NFCT_INTENCLR_RXFRAMESTART_Pos) /*!< Bit mask of RXFRAMESTART field. */
+#define NFCT_INTENCLR_RXFRAMESTART_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_RXFRAMESTART_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_RXFRAMESTART_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for TXFRAMEEND event */
+#define NFCT_INTENCLR_TXFRAMEEND_Pos (4UL) /*!< Position of TXFRAMEEND field. */
+#define NFCT_INTENCLR_TXFRAMEEND_Msk (0x1UL << NFCT_INTENCLR_TXFRAMEEND_Pos) /*!< Bit mask of TXFRAMEEND field. */
+#define NFCT_INTENCLR_TXFRAMEEND_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_TXFRAMEEND_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_TXFRAMEEND_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for TXFRAMESTART event */
+#define NFCT_INTENCLR_TXFRAMESTART_Pos (3UL) /*!< Position of TXFRAMESTART field. */
+#define NFCT_INTENCLR_TXFRAMESTART_Msk (0x1UL << NFCT_INTENCLR_TXFRAMESTART_Pos) /*!< Bit mask of TXFRAMESTART field. */
+#define NFCT_INTENCLR_TXFRAMESTART_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_TXFRAMESTART_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_TXFRAMESTART_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for FIELDLOST event */
+#define NFCT_INTENCLR_FIELDLOST_Pos (2UL) /*!< Position of FIELDLOST field. */
+#define NFCT_INTENCLR_FIELDLOST_Msk (0x1UL << NFCT_INTENCLR_FIELDLOST_Pos) /*!< Bit mask of FIELDLOST field. */
+#define NFCT_INTENCLR_FIELDLOST_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_FIELDLOST_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_FIELDLOST_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for FIELDDETECTED event */
+#define NFCT_INTENCLR_FIELDDETECTED_Pos (1UL) /*!< Position of FIELDDETECTED field. */
+#define NFCT_INTENCLR_FIELDDETECTED_Msk (0x1UL << NFCT_INTENCLR_FIELDDETECTED_Pos) /*!< Bit mask of FIELDDETECTED field. */
+#define NFCT_INTENCLR_FIELDDETECTED_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_FIELDDETECTED_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_FIELDDETECTED_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for READY event */
+#define NFCT_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define NFCT_INTENCLR_READY_Msk (0x1UL << NFCT_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define NFCT_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define NFCT_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define NFCT_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: NFCT_ERRORSTATUS */
+/* Description: NFC Error Status register */
+
+/* Bit 3 : Field level is too low at min load resistance */
+#define NFCT_ERRORSTATUS_NFCFIELDTOOWEAK_Pos (3UL) /*!< Position of NFCFIELDTOOWEAK field. */
+#define NFCT_ERRORSTATUS_NFCFIELDTOOWEAK_Msk (0x1UL << NFCT_ERRORSTATUS_NFCFIELDTOOWEAK_Pos) /*!< Bit mask of NFCFIELDTOOWEAK field. */
+
+/* Bit 2 : Field level is too high at max load resistance */
+#define NFCT_ERRORSTATUS_NFCFIELDTOOSTRONG_Pos (2UL) /*!< Position of NFCFIELDTOOSTRONG field. */
+#define NFCT_ERRORSTATUS_NFCFIELDTOOSTRONG_Msk (0x1UL << NFCT_ERRORSTATUS_NFCFIELDTOOSTRONG_Pos) /*!< Bit mask of NFCFIELDTOOSTRONG field. */
+
+/* Bit 0 : No STARTTX task triggered before expiration of the time set in FRAMEDELAYMAX */
+#define NFCT_ERRORSTATUS_FRAMEDELAYTIMEOUT_Pos (0UL) /*!< Position of FRAMEDELAYTIMEOUT field. */
+#define NFCT_ERRORSTATUS_FRAMEDELAYTIMEOUT_Msk (0x1UL << NFCT_ERRORSTATUS_FRAMEDELAYTIMEOUT_Pos) /*!< Bit mask of FRAMEDELAYTIMEOUT field. */
+
+/* Register: NFCT_FRAMESTATUS_RX */
+/* Description: Result of last incoming frames */
+
+/* Bit 3 : Overrun detected */
+#define NFCT_FRAMESTATUS_RX_OVERRUN_Pos (3UL) /*!< Position of OVERRUN field. */
+#define NFCT_FRAMESTATUS_RX_OVERRUN_Msk (0x1UL << NFCT_FRAMESTATUS_RX_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define NFCT_FRAMESTATUS_RX_OVERRUN_NoOverrun (0UL) /*!< No overrun detected */
+#define NFCT_FRAMESTATUS_RX_OVERRUN_Overrun (1UL) /*!< Overrun error */
+
+/* Bit 2 : Parity status of received frame */
+#define NFCT_FRAMESTATUS_RX_PARITYSTATUS_Pos (2UL) /*!< Position of PARITYSTATUS field. */
+#define NFCT_FRAMESTATUS_RX_PARITYSTATUS_Msk (0x1UL << NFCT_FRAMESTATUS_RX_PARITYSTATUS_Pos) /*!< Bit mask of PARITYSTATUS field. */
+#define NFCT_FRAMESTATUS_RX_PARITYSTATUS_ParityOK (0UL) /*!< Frame received with parity OK */
+#define NFCT_FRAMESTATUS_RX_PARITYSTATUS_ParityError (1UL) /*!< Frame received with parity error */
+
+/* Bit 0 : No valid End of Frame detected */
+#define NFCT_FRAMESTATUS_RX_CRCERROR_Pos (0UL) /*!< Position of CRCERROR field. */
+#define NFCT_FRAMESTATUS_RX_CRCERROR_Msk (0x1UL << NFCT_FRAMESTATUS_RX_CRCERROR_Pos) /*!< Bit mask of CRCERROR field. */
+#define NFCT_FRAMESTATUS_RX_CRCERROR_CRCCorrect (0UL) /*!< Valid CRC detected */
+#define NFCT_FRAMESTATUS_RX_CRCERROR_CRCError (1UL) /*!< CRC received does not match local check */
+
+/* Register: NFCT_CURRENTLOADCTRL */
+/* Description: Current value driven to the NFC Load Control */
+
+/* Bits 5..0 : Current value driven to the NFC Load Control */
+#define NFCT_CURRENTLOADCTRL_CURRENTLOADCTRL_Pos (0UL) /*!< Position of CURRENTLOADCTRL field. */
+#define NFCT_CURRENTLOADCTRL_CURRENTLOADCTRL_Msk (0x3FUL << NFCT_CURRENTLOADCTRL_CURRENTLOADCTRL_Pos) /*!< Bit mask of CURRENTLOADCTRL field. */
+
+/* Register: NFCT_FIELDPRESENT */
+/* Description: Indicates the presence or not of a valid field */
+
+/* Bit 1 : Indicates if the low level has locked to the field */
+#define NFCT_FIELDPRESENT_LOCKDETECT_Pos (1UL) /*!< Position of LOCKDETECT field. */
+#define NFCT_FIELDPRESENT_LOCKDETECT_Msk (0x1UL << NFCT_FIELDPRESENT_LOCKDETECT_Pos) /*!< Bit mask of LOCKDETECT field. */
+#define NFCT_FIELDPRESENT_LOCKDETECT_NotLocked (0UL) /*!< Not locked to field */
+#define NFCT_FIELDPRESENT_LOCKDETECT_Locked (1UL) /*!< Locked to field */
+
+/* Bit 0 : Indicates the presence or not of a valid field. Available only in the activated state. */
+#define NFCT_FIELDPRESENT_FIELDPRESENT_Pos (0UL) /*!< Position of FIELDPRESENT field. */
+#define NFCT_FIELDPRESENT_FIELDPRESENT_Msk (0x1UL << NFCT_FIELDPRESENT_FIELDPRESENT_Pos) /*!< Bit mask of FIELDPRESENT field. */
+#define NFCT_FIELDPRESENT_FIELDPRESENT_NoField (0UL) /*!< No valid field detected */
+#define NFCT_FIELDPRESENT_FIELDPRESENT_FieldPresent (1UL) /*!< Valid field detected */
+
+/* Register: NFCT_FRAMEDELAYMIN */
+/* Description: Minimum frame delay */
+
+/* Bits 15..0 : Minimum frame delay in number of 13.56 MHz clocks */
+#define NFCT_FRAMEDELAYMIN_FRAMEDELAYMIN_Pos (0UL) /*!< Position of FRAMEDELAYMIN field. */
+#define NFCT_FRAMEDELAYMIN_FRAMEDELAYMIN_Msk (0xFFFFUL << NFCT_FRAMEDELAYMIN_FRAMEDELAYMIN_Pos) /*!< Bit mask of FRAMEDELAYMIN field. */
+
+/* Register: NFCT_FRAMEDELAYMAX */
+/* Description: Maximum frame delay */
+
+/* Bits 15..0 : Maximum frame delay in number of 13.56 MHz clocks */
+#define NFCT_FRAMEDELAYMAX_FRAMEDELAYMAX_Pos (0UL) /*!< Position of FRAMEDELAYMAX field. */
+#define NFCT_FRAMEDELAYMAX_FRAMEDELAYMAX_Msk (0xFFFFUL << NFCT_FRAMEDELAYMAX_FRAMEDELAYMAX_Pos) /*!< Bit mask of FRAMEDELAYMAX field. */
+
+/* Register: NFCT_FRAMEDELAYMODE */
+/* Description: Configuration register for the Frame Delay Timer */
+
+/* Bits 1..0 : Configuration register for the Frame Delay Timer */
+#define NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_Pos (0UL) /*!< Position of FRAMEDELAYMODE field. */
+#define NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_Msk (0x3UL << NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_Pos) /*!< Bit mask of FRAMEDELAYMODE field. */
+#define NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_FreeRun (0UL) /*!< Transmission is independent of frame timer and will start when the STARTTX task is triggered. No timeout. */
+#define NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_Window (1UL) /*!< Frame is transmitted between FRAMEDELAYMIN and FRAMEDELAYMAX */
+#define NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_ExactVal (2UL) /*!< Frame is transmitted exactly at FRAMEDELAYMAX */
+#define NFCT_FRAMEDELAYMODE_FRAMEDELAYMODE_WindowGrid (3UL) /*!< Frame is transmitted on a bit grid between FRAMEDELAYMIN and FRAMEDELAYMAX */
+
+/* Register: NFCT_PACKETPTR */
+/* Description: Packet pointer for TXD and RXD data storage in Data RAM */
+
+/* Bits 31..0 : Packet pointer for TXD and RXD data storage in Data RAM. This address is a byte aligned RAM address. */
+#define NFCT_PACKETPTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define NFCT_PACKETPTR_PTR_Msk (0xFFFFFFFFUL << NFCT_PACKETPTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: NFCT_MAXLEN */
+/* Description: Size of allocated for TXD and RXD data storage buffer in Data RAM */
+
+/* Bits 8..0 : Size of allocated for TXD and RXD data storage buffer in Data RAM */
+#define NFCT_MAXLEN_MAXLEN_Pos (0UL) /*!< Position of MAXLEN field. */
+#define NFCT_MAXLEN_MAXLEN_Msk (0x1FFUL << NFCT_MAXLEN_MAXLEN_Pos) /*!< Bit mask of MAXLEN field. */
+
+/* Register: NFCT_TXD_FRAMECONFIG */
+/* Description: Configuration of outgoing frames */
+
+/* Bit 4 : CRC mode for outgoing frames */
+#define NFCT_TXD_FRAMECONFIG_CRCMODETX_Pos (4UL) /*!< Position of CRCMODETX field. */
+#define NFCT_TXD_FRAMECONFIG_CRCMODETX_Msk (0x1UL << NFCT_TXD_FRAMECONFIG_CRCMODETX_Pos) /*!< Bit mask of CRCMODETX field. */
+#define NFCT_TXD_FRAMECONFIG_CRCMODETX_NoCRCTX (0UL) /*!< CRC is not added to the frame */
+#define NFCT_TXD_FRAMECONFIG_CRCMODETX_CRC16TX (1UL) /*!< 16 bit CRC added to the frame based on all the data read from RAM that is used in the frame */
+
+/* Bit 2 : Adding SoF or not in TX frames */
+#define NFCT_TXD_FRAMECONFIG_SOF_Pos (2UL) /*!< Position of SOF field. */
+#define NFCT_TXD_FRAMECONFIG_SOF_Msk (0x1UL << NFCT_TXD_FRAMECONFIG_SOF_Pos) /*!< Bit mask of SOF field. */
+#define NFCT_TXD_FRAMECONFIG_SOF_NoSoF (0UL) /*!< Start of Frame symbol not added */
+#define NFCT_TXD_FRAMECONFIG_SOF_SoF (1UL) /*!< Start of Frame symbol added */
+
+/* Bit 1 : Discarding unused bits in start or at end of a Frame */
+#define NFCT_TXD_FRAMECONFIG_DISCARDMODE_Pos (1UL) /*!< Position of DISCARDMODE field. */
+#define NFCT_TXD_FRAMECONFIG_DISCARDMODE_Msk (0x1UL << NFCT_TXD_FRAMECONFIG_DISCARDMODE_Pos) /*!< Bit mask of DISCARDMODE field. */
+#define NFCT_TXD_FRAMECONFIG_DISCARDMODE_DiscardEnd (0UL) /*!< Unused bits is discarded at end of frame */
+#define NFCT_TXD_FRAMECONFIG_DISCARDMODE_DiscardStart (1UL) /*!< Unused bits is discarded at start of frame */
+
+/* Bit 0 : Adding parity or not in the frame */
+#define NFCT_TXD_FRAMECONFIG_PARITY_Pos (0UL) /*!< Position of PARITY field. */
+#define NFCT_TXD_FRAMECONFIG_PARITY_Msk (0x1UL << NFCT_TXD_FRAMECONFIG_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define NFCT_TXD_FRAMECONFIG_PARITY_NoParity (0UL) /*!< Parity is not added in TX frames */
+#define NFCT_TXD_FRAMECONFIG_PARITY_Parity (1UL) /*!< Parity is added TX frames */
+
+/* Register: NFCT_TXD_AMOUNT */
+/* Description: Size of outgoing frame */
+
+/* Bits 11..3 : Number of complete bytes that shall be included in the frame, excluding CRC, parity and framing */
+#define NFCT_TXD_AMOUNT_TXDATABYTES_Pos (3UL) /*!< Position of TXDATABYTES field. */
+#define NFCT_TXD_AMOUNT_TXDATABYTES_Msk (0x1FFUL << NFCT_TXD_AMOUNT_TXDATABYTES_Pos) /*!< Bit mask of TXDATABYTES field. */
+
+/* Bits 2..0 : Number of bits in the last or first byte read from RAM that shall be included in the frame (excluding parity bit). */
+#define NFCT_TXD_AMOUNT_TXDATABITS_Pos (0UL) /*!< Position of TXDATABITS field. */
+#define NFCT_TXD_AMOUNT_TXDATABITS_Msk (0x7UL << NFCT_TXD_AMOUNT_TXDATABITS_Pos) /*!< Bit mask of TXDATABITS field. */
+
+/* Register: NFCT_RXD_FRAMECONFIG */
+/* Description: Configuration of incoming frames */
+
+/* Bit 4 : CRC mode for incoming frames */
+#define NFCT_RXD_FRAMECONFIG_CRCMODERX_Pos (4UL) /*!< Position of CRCMODERX field. */
+#define NFCT_RXD_FRAMECONFIG_CRCMODERX_Msk (0x1UL << NFCT_RXD_FRAMECONFIG_CRCMODERX_Pos) /*!< Bit mask of CRCMODERX field. */
+#define NFCT_RXD_FRAMECONFIG_CRCMODERX_NoCRCRX (0UL) /*!< CRC is not expected in RX frames */
+#define NFCT_RXD_FRAMECONFIG_CRCMODERX_CRC16RX (1UL) /*!< Last 16 bits in RX frame is CRC, CRC is checked and CRCSTATUS updated */
+
+/* Bit 2 : SoF expected or not in RX frames */
+#define NFCT_RXD_FRAMECONFIG_SOF_Pos (2UL) /*!< Position of SOF field. */
+#define NFCT_RXD_FRAMECONFIG_SOF_Msk (0x1UL << NFCT_RXD_FRAMECONFIG_SOF_Pos) /*!< Bit mask of SOF field. */
+#define NFCT_RXD_FRAMECONFIG_SOF_NoSoF (0UL) /*!< Start of Frame symbol is not expected in RX frames */
+#define NFCT_RXD_FRAMECONFIG_SOF_SoF (1UL) /*!< Start of Frame symbol is expected in RX frames */
+
+/* Bit 0 : Parity expected or not in RX frame */
+#define NFCT_RXD_FRAMECONFIG_PARITY_Pos (0UL) /*!< Position of PARITY field. */
+#define NFCT_RXD_FRAMECONFIG_PARITY_Msk (0x1UL << NFCT_RXD_FRAMECONFIG_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define NFCT_RXD_FRAMECONFIG_PARITY_NoParity (0UL) /*!< Parity is not expected in RX frames */
+#define NFCT_RXD_FRAMECONFIG_PARITY_Parity (1UL) /*!< Parity is expected in RX frames */
+
+/* Register: NFCT_RXD_AMOUNT */
+/* Description: Size of last incoming frame */
+
+/* Bits 11..3 : Number of complete bytes received in the frame (including CRC, but excluding parity and SoF/EoF framing) */
+#define NFCT_RXD_AMOUNT_RXDATABYTES_Pos (3UL) /*!< Position of RXDATABYTES field. */
+#define NFCT_RXD_AMOUNT_RXDATABYTES_Msk (0x1FFUL << NFCT_RXD_AMOUNT_RXDATABYTES_Pos) /*!< Bit mask of RXDATABYTES field. */
+
+/* Bits 2..0 : Number of bits in the last byte in the frame, if less than 8 (including CRC, but excluding parity and SoF/EoF framing). */
+#define NFCT_RXD_AMOUNT_RXDATABITS_Pos (0UL) /*!< Position of RXDATABITS field. */
+#define NFCT_RXD_AMOUNT_RXDATABITS_Msk (0x7UL << NFCT_RXD_AMOUNT_RXDATABITS_Pos) /*!< Bit mask of RXDATABITS field. */
+
+/* Register: NFCT_NFCID1_LAST */
+/* Description: Last NFCID1 part (4, 7 or 10 bytes ID) */
+
+/* Bits 31..24 : NFCID1 byte W */
+#define NFCT_NFCID1_LAST_NFCID1_W_Pos (24UL) /*!< Position of NFCID1_W field. */
+#define NFCT_NFCID1_LAST_NFCID1_W_Msk (0xFFUL << NFCT_NFCID1_LAST_NFCID1_W_Pos) /*!< Bit mask of NFCID1_W field. */
+
+/* Bits 23..16 : NFCID1 byte X */
+#define NFCT_NFCID1_LAST_NFCID1_X_Pos (16UL) /*!< Position of NFCID1_X field. */
+#define NFCT_NFCID1_LAST_NFCID1_X_Msk (0xFFUL << NFCT_NFCID1_LAST_NFCID1_X_Pos) /*!< Bit mask of NFCID1_X field. */
+
+/* Bits 15..8 : NFCID1 byte Y */
+#define NFCT_NFCID1_LAST_NFCID1_Y_Pos (8UL) /*!< Position of NFCID1_Y field. */
+#define NFCT_NFCID1_LAST_NFCID1_Y_Msk (0xFFUL << NFCT_NFCID1_LAST_NFCID1_Y_Pos) /*!< Bit mask of NFCID1_Y field. */
+
+/* Bits 7..0 : NFCID1 byte Z (very last byte sent) */
+#define NFCT_NFCID1_LAST_NFCID1_Z_Pos (0UL) /*!< Position of NFCID1_Z field. */
+#define NFCT_NFCID1_LAST_NFCID1_Z_Msk (0xFFUL << NFCT_NFCID1_LAST_NFCID1_Z_Pos) /*!< Bit mask of NFCID1_Z field. */
+
+/* Register: NFCT_NFCID1_2ND_LAST */
+/* Description: Second last NFCID1 part (7 or 10 bytes ID) */
+
+/* Bits 23..16 : NFCID1 byte T */
+#define NFCT_NFCID1_2ND_LAST_NFCID1_T_Pos (16UL) /*!< Position of NFCID1_T field. */
+#define NFCT_NFCID1_2ND_LAST_NFCID1_T_Msk (0xFFUL << NFCT_NFCID1_2ND_LAST_NFCID1_T_Pos) /*!< Bit mask of NFCID1_T field. */
+
+/* Bits 15..8 : NFCID1 byte U */
+#define NFCT_NFCID1_2ND_LAST_NFCID1_U_Pos (8UL) /*!< Position of NFCID1_U field. */
+#define NFCT_NFCID1_2ND_LAST_NFCID1_U_Msk (0xFFUL << NFCT_NFCID1_2ND_LAST_NFCID1_U_Pos) /*!< Bit mask of NFCID1_U field. */
+
+/* Bits 7..0 : NFCID1 byte V */
+#define NFCT_NFCID1_2ND_LAST_NFCID1_V_Pos (0UL) /*!< Position of NFCID1_V field. */
+#define NFCT_NFCID1_2ND_LAST_NFCID1_V_Msk (0xFFUL << NFCT_NFCID1_2ND_LAST_NFCID1_V_Pos) /*!< Bit mask of NFCID1_V field. */
+
+/* Register: NFCT_NFCID1_3RD_LAST */
+/* Description: Third last NFCID1 part (10 bytes ID) */
+
+/* Bits 23..16 : NFCID1 byte Q */
+#define NFCT_NFCID1_3RD_LAST_NFCID1_Q_Pos (16UL) /*!< Position of NFCID1_Q field. */
+#define NFCT_NFCID1_3RD_LAST_NFCID1_Q_Msk (0xFFUL << NFCT_NFCID1_3RD_LAST_NFCID1_Q_Pos) /*!< Bit mask of NFCID1_Q field. */
+
+/* Bits 15..8 : NFCID1 byte R */
+#define NFCT_NFCID1_3RD_LAST_NFCID1_R_Pos (8UL) /*!< Position of NFCID1_R field. */
+#define NFCT_NFCID1_3RD_LAST_NFCID1_R_Msk (0xFFUL << NFCT_NFCID1_3RD_LAST_NFCID1_R_Pos) /*!< Bit mask of NFCID1_R field. */
+
+/* Bits 7..0 : NFCID1 byte S */
+#define NFCT_NFCID1_3RD_LAST_NFCID1_S_Pos (0UL) /*!< Position of NFCID1_S field. */
+#define NFCT_NFCID1_3RD_LAST_NFCID1_S_Msk (0xFFUL << NFCT_NFCID1_3RD_LAST_NFCID1_S_Pos) /*!< Bit mask of NFCID1_S field. */
+
+/* Register: NFCT_SENSRES */
+/* Description: NFC-A SENS_RES auto-response settings */
+
+/* Bits 15..12 : Reserved for future use. Shall be 0. */
+#define NFCT_SENSRES_RFU74_Pos (12UL) /*!< Position of RFU74 field. */
+#define NFCT_SENSRES_RFU74_Msk (0xFUL << NFCT_SENSRES_RFU74_Pos) /*!< Bit mask of RFU74 field. */
+
+/* Bits 11..8 : Tag platform configuration as defined by the b4:b1 of byte 2 in SENS_RES response in the NFC Forum, NFC Digital Protocol Technical Specification */
+#define NFCT_SENSRES_PLATFCONFIG_Pos (8UL) /*!< Position of PLATFCONFIG field. */
+#define NFCT_SENSRES_PLATFCONFIG_Msk (0xFUL << NFCT_SENSRES_PLATFCONFIG_Pos) /*!< Bit mask of PLATFCONFIG field. */
+
+/* Bits 7..6 : NFCID1 size. This value is used by the Auto collision resolution engine. */
+#define NFCT_SENSRES_NFCIDSIZE_Pos (6UL) /*!< Position of NFCIDSIZE field. */
+#define NFCT_SENSRES_NFCIDSIZE_Msk (0x3UL << NFCT_SENSRES_NFCIDSIZE_Pos) /*!< Bit mask of NFCIDSIZE field. */
+#define NFCT_SENSRES_NFCIDSIZE_NFCID1Single (0UL) /*!< NFCID1 size: single (4 bytes) */
+#define NFCT_SENSRES_NFCIDSIZE_NFCID1Double (1UL) /*!< NFCID1 size: double (7 bytes) */
+#define NFCT_SENSRES_NFCIDSIZE_NFCID1Triple (2UL) /*!< NFCID1 size: triple (10 bytes) */
+
+/* Bit 5 : Reserved for future use. Shall be 0. */
+#define NFCT_SENSRES_RFU5_Pos (5UL) /*!< Position of RFU5 field. */
+#define NFCT_SENSRES_RFU5_Msk (0x1UL << NFCT_SENSRES_RFU5_Pos) /*!< Bit mask of RFU5 field. */
+
+/* Bits 4..0 : Bit frame SDD as defined by the b5:b1 of byte 1 in SENS_RES response in the NFC Forum, NFC Digital Protocol Technical Specification */
+#define NFCT_SENSRES_BITFRAMESDD_Pos (0UL) /*!< Position of BITFRAMESDD field. */
+#define NFCT_SENSRES_BITFRAMESDD_Msk (0x1FUL << NFCT_SENSRES_BITFRAMESDD_Pos) /*!< Bit mask of BITFRAMESDD field. */
+#define NFCT_SENSRES_BITFRAMESDD_SDD00000 (0UL) /*!< SDD pattern 00000 */
+#define NFCT_SENSRES_BITFRAMESDD_SDD00001 (1UL) /*!< SDD pattern 00001 */
+#define NFCT_SENSRES_BITFRAMESDD_SDD00010 (2UL) /*!< SDD pattern 00010 */
+#define NFCT_SENSRES_BITFRAMESDD_SDD00100 (4UL) /*!< SDD pattern 00100 */
+#define NFCT_SENSRES_BITFRAMESDD_SDD01000 (8UL) /*!< SDD pattern 01000 */
+#define NFCT_SENSRES_BITFRAMESDD_SDD10000 (16UL) /*!< SDD pattern 10000 */
+
+/* Register: NFCT_SELRES */
+/* Description: NFC-A SEL_RES auto-response settings */
+
+/* Bit 7 : Reserved for future use. Shall be 0. */
+#define NFCT_SELRES_RFU7_Pos (7UL) /*!< Position of RFU7 field. */
+#define NFCT_SELRES_RFU7_Msk (0x1UL << NFCT_SELRES_RFU7_Pos) /*!< Bit mask of RFU7 field. */
+
+/* Bits 6..5 : Protocol as defined by the b7:b6 of SEL_RES response in the NFC Forum, NFC Digital Protocol Technical Specification */
+#define NFCT_SELRES_PROTOCOL_Pos (5UL) /*!< Position of PROTOCOL field. */
+#define NFCT_SELRES_PROTOCOL_Msk (0x3UL << NFCT_SELRES_PROTOCOL_Pos) /*!< Bit mask of PROTOCOL field. */
+
+/* Bits 4..3 : Reserved for future use. Shall be 0. */
+#define NFCT_SELRES_RFU43_Pos (3UL) /*!< Position of RFU43 field. */
+#define NFCT_SELRES_RFU43_Msk (0x3UL << NFCT_SELRES_RFU43_Pos) /*!< Bit mask of RFU43 field. */
+
+/* Bit 2 : Cascade bit (controlled by hardware, write has no effect) */
+#define NFCT_SELRES_CASCADE_Pos (2UL) /*!< Position of CASCADE field. */
+#define NFCT_SELRES_CASCADE_Msk (0x1UL << NFCT_SELRES_CASCADE_Pos) /*!< Bit mask of CASCADE field. */
+#define NFCT_SELRES_CASCADE_Complete (0UL) /*!< NFCID1 complete */
+#define NFCT_SELRES_CASCADE_NotComplete (1UL) /*!< NFCID1 not complete */
+
+/* Bits 1..0 : Reserved for future use. Shall be 0. */
+#define NFCT_SELRES_RFU10_Pos (0UL) /*!< Position of RFU10 field. */
+#define NFCT_SELRES_RFU10_Msk (0x3UL << NFCT_SELRES_RFU10_Pos) /*!< Bit mask of RFU10 field. */
+
+
+/* Peripheral: NVMC */
+/* Description: Non Volatile Memory Controller */
+
+/* Register: NVMC_READY */
+/* Description: Ready flag */
+
+/* Bit 0 : NVMC is ready or busy */
+#define NVMC_READY_READY_Pos (0UL) /*!< Position of READY field. */
+#define NVMC_READY_READY_Msk (0x1UL << NVMC_READY_READY_Pos) /*!< Bit mask of READY field. */
+#define NVMC_READY_READY_Busy (0UL) /*!< NVMC is busy (on-going write or erase operation) */
+#define NVMC_READY_READY_Ready (1UL) /*!< NVMC is ready */
+
+/* Register: NVMC_CONFIG */
+/* Description: Configuration register */
+
+/* Bits 1..0 : Program memory access mode. It is strongly recommended to only activate erase and write modes when they are actively used. Enabling write or erase will invalidate the cache and keep it invalidated. */
+#define NVMC_CONFIG_WEN_Pos (0UL) /*!< Position of WEN field. */
+#define NVMC_CONFIG_WEN_Msk (0x3UL << NVMC_CONFIG_WEN_Pos) /*!< Bit mask of WEN field. */
+#define NVMC_CONFIG_WEN_Ren (0UL) /*!< Read only access */
+#define NVMC_CONFIG_WEN_Wen (1UL) /*!< Write Enabled */
+#define NVMC_CONFIG_WEN_Een (2UL) /*!< Erase enabled */
+
+/* Register: NVMC_ERASEPAGE */
+/* Description: Register for erasing a page in Code area */
+
+/* Bits 31..0 : Register for starting erase of a page in Code area */
+#define NVMC_ERASEPAGE_ERASEPAGE_Pos (0UL) /*!< Position of ERASEPAGE field. */
+#define NVMC_ERASEPAGE_ERASEPAGE_Msk (0xFFFFFFFFUL << NVMC_ERASEPAGE_ERASEPAGE_Pos) /*!< Bit mask of ERASEPAGE field. */
+
+/* Register: NVMC_ERASEPCR1 */
+/* Description: Deprecated register - Register for erasing a page in Code area. Equivalent to ERASEPAGE. */
+
+/* Bits 31..0 : Register for erasing a page in Code area. Equivalent to ERASEPAGE. */
+#define NVMC_ERASEPCR1_ERASEPCR1_Pos (0UL) /*!< Position of ERASEPCR1 field. */
+#define NVMC_ERASEPCR1_ERASEPCR1_Msk (0xFFFFFFFFUL << NVMC_ERASEPCR1_ERASEPCR1_Pos) /*!< Bit mask of ERASEPCR1 field. */
+
+/* Register: NVMC_ERASEALL */
+/* Description: Register for erasing all non-volatile user memory */
+
+/* Bit 0 : Erase all non-volatile memory including UICR registers. Note that code erase has to be enabled by CONFIG.EEN before the UICR can be erased. */
+#define NVMC_ERASEALL_ERASEALL_Pos (0UL) /*!< Position of ERASEALL field. */
+#define NVMC_ERASEALL_ERASEALL_Msk (0x1UL << NVMC_ERASEALL_ERASEALL_Pos) /*!< Bit mask of ERASEALL field. */
+#define NVMC_ERASEALL_ERASEALL_NoOperation (0UL) /*!< No operation */
+#define NVMC_ERASEALL_ERASEALL_Erase (1UL) /*!< Start chip erase */
+
+/* Register: NVMC_ERASEPCR0 */
+/* Description: Deprecated register - Register for erasing a page in Code area. Equivalent to ERASEPAGE. */
+
+/* Bits 31..0 : Register for starting erase of a page in Code area. Equivalent to ERASEPAGE. */
+#define NVMC_ERASEPCR0_ERASEPCR0_Pos (0UL) /*!< Position of ERASEPCR0 field. */
+#define NVMC_ERASEPCR0_ERASEPCR0_Msk (0xFFFFFFFFUL << NVMC_ERASEPCR0_ERASEPCR0_Pos) /*!< Bit mask of ERASEPCR0 field. */
+
+/* Register: NVMC_ERASEUICR */
+/* Description: Register for erasing User Information Configuration Registers */
+
+/* Bit 0 : Register starting erase of all User Information Configuration Registers. Note that code erase has to be enabled by CONFIG.EEN before the UICR can be erased. */
+#define NVMC_ERASEUICR_ERASEUICR_Pos (0UL) /*!< Position of ERASEUICR field. */
+#define NVMC_ERASEUICR_ERASEUICR_Msk (0x1UL << NVMC_ERASEUICR_ERASEUICR_Pos) /*!< Bit mask of ERASEUICR field. */
+#define NVMC_ERASEUICR_ERASEUICR_NoOperation (0UL) /*!< No operation */
+#define NVMC_ERASEUICR_ERASEUICR_Erase (1UL) /*!< Start erase of UICR */
+
+/* Register: NVMC_ICACHECNF */
+/* Description: I-Code cache configuration register. */
+
+/* Bit 8 : Cache profiling enable */
+#define NVMC_ICACHECNF_CACHEPROFEN_Pos (8UL) /*!< Position of CACHEPROFEN field. */
+#define NVMC_ICACHECNF_CACHEPROFEN_Msk (0x1UL << NVMC_ICACHECNF_CACHEPROFEN_Pos) /*!< Bit mask of CACHEPROFEN field. */
+#define NVMC_ICACHECNF_CACHEPROFEN_Disabled (0UL) /*!< Disable cache profiling */
+#define NVMC_ICACHECNF_CACHEPROFEN_Enabled (1UL) /*!< Enable cache profiling */
+
+/* Bit 0 : Cache enable */
+#define NVMC_ICACHECNF_CACHEEN_Pos (0UL) /*!< Position of CACHEEN field. */
+#define NVMC_ICACHECNF_CACHEEN_Msk (0x1UL << NVMC_ICACHECNF_CACHEEN_Pos) /*!< Bit mask of CACHEEN field. */
+#define NVMC_ICACHECNF_CACHEEN_Disabled (0UL) /*!< Disable cache. Invalidates all cache entries. */
+#define NVMC_ICACHECNF_CACHEEN_Enabled (1UL) /*!< Enable cache */
+
+/* Register: NVMC_IHIT */
+/* Description: I-Code cache hit counter. */
+
+/* Bits 31..0 : Number of cache hits */
+#define NVMC_IHIT_HITS_Pos (0UL) /*!< Position of HITS field. */
+#define NVMC_IHIT_HITS_Msk (0xFFFFFFFFUL << NVMC_IHIT_HITS_Pos) /*!< Bit mask of HITS field. */
+
+/* Register: NVMC_IMISS */
+/* Description: I-Code cache miss counter. */
+
+/* Bits 31..0 : Number of cache misses */
+#define NVMC_IMISS_MISSES_Pos (0UL) /*!< Position of MISSES field. */
+#define NVMC_IMISS_MISSES_Msk (0xFFFFFFFFUL << NVMC_IMISS_MISSES_Pos) /*!< Bit mask of MISSES field. */
+
+
+/* Peripheral: GPIO */
+/* Description: GPIO Port 1 */
+
+/* Register: GPIO_OUT */
+/* Description: Write GPIO port */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_OUT_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_OUT_PIN31_Msk (0x1UL << GPIO_OUT_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_OUT_PIN31_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN31_High (1UL) /*!< Pin driver is high */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_OUT_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_OUT_PIN30_Msk (0x1UL << GPIO_OUT_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_OUT_PIN30_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN30_High (1UL) /*!< Pin driver is high */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_OUT_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_OUT_PIN29_Msk (0x1UL << GPIO_OUT_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_OUT_PIN29_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN29_High (1UL) /*!< Pin driver is high */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_OUT_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_OUT_PIN28_Msk (0x1UL << GPIO_OUT_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_OUT_PIN28_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN28_High (1UL) /*!< Pin driver is high */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_OUT_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_OUT_PIN27_Msk (0x1UL << GPIO_OUT_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_OUT_PIN27_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN27_High (1UL) /*!< Pin driver is high */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_OUT_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_OUT_PIN26_Msk (0x1UL << GPIO_OUT_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_OUT_PIN26_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN26_High (1UL) /*!< Pin driver is high */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_OUT_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_OUT_PIN25_Msk (0x1UL << GPIO_OUT_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_OUT_PIN25_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN25_High (1UL) /*!< Pin driver is high */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_OUT_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_OUT_PIN24_Msk (0x1UL << GPIO_OUT_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_OUT_PIN24_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN24_High (1UL) /*!< Pin driver is high */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_OUT_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_OUT_PIN23_Msk (0x1UL << GPIO_OUT_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_OUT_PIN23_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN23_High (1UL) /*!< Pin driver is high */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_OUT_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_OUT_PIN22_Msk (0x1UL << GPIO_OUT_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_OUT_PIN22_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN22_High (1UL) /*!< Pin driver is high */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_OUT_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_OUT_PIN21_Msk (0x1UL << GPIO_OUT_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_OUT_PIN21_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN21_High (1UL) /*!< Pin driver is high */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_OUT_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_OUT_PIN20_Msk (0x1UL << GPIO_OUT_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_OUT_PIN20_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN20_High (1UL) /*!< Pin driver is high */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_OUT_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_OUT_PIN19_Msk (0x1UL << GPIO_OUT_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_OUT_PIN19_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN19_High (1UL) /*!< Pin driver is high */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_OUT_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_OUT_PIN18_Msk (0x1UL << GPIO_OUT_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_OUT_PIN18_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN18_High (1UL) /*!< Pin driver is high */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_OUT_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_OUT_PIN17_Msk (0x1UL << GPIO_OUT_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_OUT_PIN17_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN17_High (1UL) /*!< Pin driver is high */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_OUT_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_OUT_PIN16_Msk (0x1UL << GPIO_OUT_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_OUT_PIN16_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN16_High (1UL) /*!< Pin driver is high */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_OUT_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_OUT_PIN15_Msk (0x1UL << GPIO_OUT_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_OUT_PIN15_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN15_High (1UL) /*!< Pin driver is high */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_OUT_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_OUT_PIN14_Msk (0x1UL << GPIO_OUT_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_OUT_PIN14_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN14_High (1UL) /*!< Pin driver is high */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_OUT_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_OUT_PIN13_Msk (0x1UL << GPIO_OUT_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_OUT_PIN13_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN13_High (1UL) /*!< Pin driver is high */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_OUT_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_OUT_PIN12_Msk (0x1UL << GPIO_OUT_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_OUT_PIN12_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN12_High (1UL) /*!< Pin driver is high */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_OUT_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_OUT_PIN11_Msk (0x1UL << GPIO_OUT_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_OUT_PIN11_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN11_High (1UL) /*!< Pin driver is high */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_OUT_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_OUT_PIN10_Msk (0x1UL << GPIO_OUT_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_OUT_PIN10_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN10_High (1UL) /*!< Pin driver is high */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_OUT_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_OUT_PIN9_Msk (0x1UL << GPIO_OUT_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_OUT_PIN9_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN9_High (1UL) /*!< Pin driver is high */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_OUT_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_OUT_PIN8_Msk (0x1UL << GPIO_OUT_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_OUT_PIN8_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN8_High (1UL) /*!< Pin driver is high */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_OUT_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_OUT_PIN7_Msk (0x1UL << GPIO_OUT_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_OUT_PIN7_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN7_High (1UL) /*!< Pin driver is high */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_OUT_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_OUT_PIN6_Msk (0x1UL << GPIO_OUT_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_OUT_PIN6_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN6_High (1UL) /*!< Pin driver is high */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_OUT_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_OUT_PIN5_Msk (0x1UL << GPIO_OUT_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_OUT_PIN5_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN5_High (1UL) /*!< Pin driver is high */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_OUT_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_OUT_PIN4_Msk (0x1UL << GPIO_OUT_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_OUT_PIN4_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN4_High (1UL) /*!< Pin driver is high */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_OUT_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_OUT_PIN3_Msk (0x1UL << GPIO_OUT_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_OUT_PIN3_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN3_High (1UL) /*!< Pin driver is high */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_OUT_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_OUT_PIN2_Msk (0x1UL << GPIO_OUT_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_OUT_PIN2_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN2_High (1UL) /*!< Pin driver is high */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_OUT_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_OUT_PIN1_Msk (0x1UL << GPIO_OUT_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_OUT_PIN1_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN1_High (1UL) /*!< Pin driver is high */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_OUT_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_OUT_PIN0_Msk (0x1UL << GPIO_OUT_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_OUT_PIN0_Low (0UL) /*!< Pin driver is low */
+#define GPIO_OUT_PIN0_High (1UL) /*!< Pin driver is high */
+
+/* Register: GPIO_OUTSET */
+/* Description: Set individual bits in GPIO port */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_OUTSET_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_OUTSET_PIN31_Msk (0x1UL << GPIO_OUTSET_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_OUTSET_PIN31_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN31_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN31_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_OUTSET_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_OUTSET_PIN30_Msk (0x1UL << GPIO_OUTSET_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_OUTSET_PIN30_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN30_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN30_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_OUTSET_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_OUTSET_PIN29_Msk (0x1UL << GPIO_OUTSET_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_OUTSET_PIN29_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN29_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN29_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_OUTSET_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_OUTSET_PIN28_Msk (0x1UL << GPIO_OUTSET_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_OUTSET_PIN28_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN28_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN28_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_OUTSET_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_OUTSET_PIN27_Msk (0x1UL << GPIO_OUTSET_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_OUTSET_PIN27_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN27_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN27_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_OUTSET_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_OUTSET_PIN26_Msk (0x1UL << GPIO_OUTSET_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_OUTSET_PIN26_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN26_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN26_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_OUTSET_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_OUTSET_PIN25_Msk (0x1UL << GPIO_OUTSET_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_OUTSET_PIN25_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN25_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN25_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_OUTSET_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_OUTSET_PIN24_Msk (0x1UL << GPIO_OUTSET_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_OUTSET_PIN24_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN24_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN24_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_OUTSET_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_OUTSET_PIN23_Msk (0x1UL << GPIO_OUTSET_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_OUTSET_PIN23_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN23_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN23_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_OUTSET_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_OUTSET_PIN22_Msk (0x1UL << GPIO_OUTSET_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_OUTSET_PIN22_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN22_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN22_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_OUTSET_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_OUTSET_PIN21_Msk (0x1UL << GPIO_OUTSET_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_OUTSET_PIN21_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN21_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN21_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_OUTSET_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_OUTSET_PIN20_Msk (0x1UL << GPIO_OUTSET_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_OUTSET_PIN20_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN20_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN20_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_OUTSET_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_OUTSET_PIN19_Msk (0x1UL << GPIO_OUTSET_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_OUTSET_PIN19_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN19_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN19_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_OUTSET_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_OUTSET_PIN18_Msk (0x1UL << GPIO_OUTSET_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_OUTSET_PIN18_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN18_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN18_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_OUTSET_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_OUTSET_PIN17_Msk (0x1UL << GPIO_OUTSET_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_OUTSET_PIN17_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN17_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN17_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_OUTSET_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_OUTSET_PIN16_Msk (0x1UL << GPIO_OUTSET_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_OUTSET_PIN16_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN16_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN16_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_OUTSET_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_OUTSET_PIN15_Msk (0x1UL << GPIO_OUTSET_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_OUTSET_PIN15_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN15_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN15_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_OUTSET_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_OUTSET_PIN14_Msk (0x1UL << GPIO_OUTSET_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_OUTSET_PIN14_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN14_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN14_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_OUTSET_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_OUTSET_PIN13_Msk (0x1UL << GPIO_OUTSET_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_OUTSET_PIN13_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN13_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN13_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_OUTSET_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_OUTSET_PIN12_Msk (0x1UL << GPIO_OUTSET_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_OUTSET_PIN12_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN12_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN12_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_OUTSET_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_OUTSET_PIN11_Msk (0x1UL << GPIO_OUTSET_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_OUTSET_PIN11_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN11_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN11_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_OUTSET_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_OUTSET_PIN10_Msk (0x1UL << GPIO_OUTSET_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_OUTSET_PIN10_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN10_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN10_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_OUTSET_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_OUTSET_PIN9_Msk (0x1UL << GPIO_OUTSET_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_OUTSET_PIN9_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN9_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN9_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_OUTSET_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_OUTSET_PIN8_Msk (0x1UL << GPIO_OUTSET_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_OUTSET_PIN8_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN8_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN8_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_OUTSET_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_OUTSET_PIN7_Msk (0x1UL << GPIO_OUTSET_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_OUTSET_PIN7_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN7_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN7_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_OUTSET_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_OUTSET_PIN6_Msk (0x1UL << GPIO_OUTSET_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_OUTSET_PIN6_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN6_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN6_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_OUTSET_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_OUTSET_PIN5_Msk (0x1UL << GPIO_OUTSET_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_OUTSET_PIN5_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN5_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN5_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_OUTSET_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_OUTSET_PIN4_Msk (0x1UL << GPIO_OUTSET_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_OUTSET_PIN4_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN4_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN4_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_OUTSET_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_OUTSET_PIN3_Msk (0x1UL << GPIO_OUTSET_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_OUTSET_PIN3_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN3_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN3_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_OUTSET_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_OUTSET_PIN2_Msk (0x1UL << GPIO_OUTSET_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_OUTSET_PIN2_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN2_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN2_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_OUTSET_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_OUTSET_PIN1_Msk (0x1UL << GPIO_OUTSET_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_OUTSET_PIN1_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN1_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN1_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_OUTSET_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_OUTSET_PIN0_Msk (0x1UL << GPIO_OUTSET_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_OUTSET_PIN0_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTSET_PIN0_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTSET_PIN0_Set (1UL) /*!< Write: writing a '1' sets the pin high; writing a '0' has no effect */
+
+/* Register: GPIO_OUTCLR */
+/* Description: Clear individual bits in GPIO port */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_OUTCLR_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_OUTCLR_PIN31_Msk (0x1UL << GPIO_OUTCLR_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_OUTCLR_PIN31_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN31_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN31_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_OUTCLR_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_OUTCLR_PIN30_Msk (0x1UL << GPIO_OUTCLR_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_OUTCLR_PIN30_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN30_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN30_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_OUTCLR_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_OUTCLR_PIN29_Msk (0x1UL << GPIO_OUTCLR_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_OUTCLR_PIN29_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN29_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN29_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_OUTCLR_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_OUTCLR_PIN28_Msk (0x1UL << GPIO_OUTCLR_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_OUTCLR_PIN28_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN28_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN28_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_OUTCLR_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_OUTCLR_PIN27_Msk (0x1UL << GPIO_OUTCLR_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_OUTCLR_PIN27_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN27_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN27_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_OUTCLR_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_OUTCLR_PIN26_Msk (0x1UL << GPIO_OUTCLR_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_OUTCLR_PIN26_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN26_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN26_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_OUTCLR_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_OUTCLR_PIN25_Msk (0x1UL << GPIO_OUTCLR_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_OUTCLR_PIN25_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN25_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN25_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_OUTCLR_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_OUTCLR_PIN24_Msk (0x1UL << GPIO_OUTCLR_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_OUTCLR_PIN24_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN24_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN24_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_OUTCLR_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_OUTCLR_PIN23_Msk (0x1UL << GPIO_OUTCLR_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_OUTCLR_PIN23_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN23_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN23_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_OUTCLR_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_OUTCLR_PIN22_Msk (0x1UL << GPIO_OUTCLR_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_OUTCLR_PIN22_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN22_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN22_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_OUTCLR_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_OUTCLR_PIN21_Msk (0x1UL << GPIO_OUTCLR_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_OUTCLR_PIN21_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN21_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN21_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_OUTCLR_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_OUTCLR_PIN20_Msk (0x1UL << GPIO_OUTCLR_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_OUTCLR_PIN20_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN20_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN20_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_OUTCLR_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_OUTCLR_PIN19_Msk (0x1UL << GPIO_OUTCLR_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_OUTCLR_PIN19_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN19_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN19_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_OUTCLR_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_OUTCLR_PIN18_Msk (0x1UL << GPIO_OUTCLR_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_OUTCLR_PIN18_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN18_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN18_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_OUTCLR_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_OUTCLR_PIN17_Msk (0x1UL << GPIO_OUTCLR_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_OUTCLR_PIN17_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN17_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN17_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_OUTCLR_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_OUTCLR_PIN16_Msk (0x1UL << GPIO_OUTCLR_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_OUTCLR_PIN16_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN16_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN16_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_OUTCLR_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_OUTCLR_PIN15_Msk (0x1UL << GPIO_OUTCLR_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_OUTCLR_PIN15_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN15_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN15_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_OUTCLR_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_OUTCLR_PIN14_Msk (0x1UL << GPIO_OUTCLR_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_OUTCLR_PIN14_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN14_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN14_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_OUTCLR_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_OUTCLR_PIN13_Msk (0x1UL << GPIO_OUTCLR_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_OUTCLR_PIN13_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN13_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN13_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_OUTCLR_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_OUTCLR_PIN12_Msk (0x1UL << GPIO_OUTCLR_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_OUTCLR_PIN12_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN12_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN12_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_OUTCLR_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_OUTCLR_PIN11_Msk (0x1UL << GPIO_OUTCLR_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_OUTCLR_PIN11_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN11_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN11_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_OUTCLR_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_OUTCLR_PIN10_Msk (0x1UL << GPIO_OUTCLR_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_OUTCLR_PIN10_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN10_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN10_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_OUTCLR_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_OUTCLR_PIN9_Msk (0x1UL << GPIO_OUTCLR_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_OUTCLR_PIN9_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN9_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN9_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_OUTCLR_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_OUTCLR_PIN8_Msk (0x1UL << GPIO_OUTCLR_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_OUTCLR_PIN8_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN8_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN8_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_OUTCLR_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_OUTCLR_PIN7_Msk (0x1UL << GPIO_OUTCLR_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_OUTCLR_PIN7_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN7_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN7_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_OUTCLR_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_OUTCLR_PIN6_Msk (0x1UL << GPIO_OUTCLR_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_OUTCLR_PIN6_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN6_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN6_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_OUTCLR_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_OUTCLR_PIN5_Msk (0x1UL << GPIO_OUTCLR_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_OUTCLR_PIN5_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN5_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN5_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_OUTCLR_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_OUTCLR_PIN4_Msk (0x1UL << GPIO_OUTCLR_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_OUTCLR_PIN4_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN4_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN4_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_OUTCLR_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_OUTCLR_PIN3_Msk (0x1UL << GPIO_OUTCLR_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_OUTCLR_PIN3_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN3_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN3_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_OUTCLR_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_OUTCLR_PIN2_Msk (0x1UL << GPIO_OUTCLR_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_OUTCLR_PIN2_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN2_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN2_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_OUTCLR_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_OUTCLR_PIN1_Msk (0x1UL << GPIO_OUTCLR_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_OUTCLR_PIN1_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN1_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN1_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_OUTCLR_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_OUTCLR_PIN0_Msk (0x1UL << GPIO_OUTCLR_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_OUTCLR_PIN0_Low (0UL) /*!< Read: pin driver is low */
+#define GPIO_OUTCLR_PIN0_High (1UL) /*!< Read: pin driver is high */
+#define GPIO_OUTCLR_PIN0_Clear (1UL) /*!< Write: writing a '1' sets the pin low; writing a '0' has no effect */
+
+/* Register: GPIO_IN */
+/* Description: Read GPIO port */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_IN_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_IN_PIN31_Msk (0x1UL << GPIO_IN_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_IN_PIN31_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN31_High (1UL) /*!< Pin input is high */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_IN_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_IN_PIN30_Msk (0x1UL << GPIO_IN_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_IN_PIN30_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN30_High (1UL) /*!< Pin input is high */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_IN_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_IN_PIN29_Msk (0x1UL << GPIO_IN_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_IN_PIN29_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN29_High (1UL) /*!< Pin input is high */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_IN_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_IN_PIN28_Msk (0x1UL << GPIO_IN_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_IN_PIN28_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN28_High (1UL) /*!< Pin input is high */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_IN_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_IN_PIN27_Msk (0x1UL << GPIO_IN_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_IN_PIN27_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN27_High (1UL) /*!< Pin input is high */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_IN_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_IN_PIN26_Msk (0x1UL << GPIO_IN_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_IN_PIN26_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN26_High (1UL) /*!< Pin input is high */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_IN_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_IN_PIN25_Msk (0x1UL << GPIO_IN_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_IN_PIN25_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN25_High (1UL) /*!< Pin input is high */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_IN_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_IN_PIN24_Msk (0x1UL << GPIO_IN_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_IN_PIN24_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN24_High (1UL) /*!< Pin input is high */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_IN_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_IN_PIN23_Msk (0x1UL << GPIO_IN_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_IN_PIN23_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN23_High (1UL) /*!< Pin input is high */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_IN_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_IN_PIN22_Msk (0x1UL << GPIO_IN_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_IN_PIN22_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN22_High (1UL) /*!< Pin input is high */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_IN_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_IN_PIN21_Msk (0x1UL << GPIO_IN_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_IN_PIN21_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN21_High (1UL) /*!< Pin input is high */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_IN_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_IN_PIN20_Msk (0x1UL << GPIO_IN_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_IN_PIN20_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN20_High (1UL) /*!< Pin input is high */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_IN_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_IN_PIN19_Msk (0x1UL << GPIO_IN_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_IN_PIN19_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN19_High (1UL) /*!< Pin input is high */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_IN_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_IN_PIN18_Msk (0x1UL << GPIO_IN_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_IN_PIN18_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN18_High (1UL) /*!< Pin input is high */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_IN_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_IN_PIN17_Msk (0x1UL << GPIO_IN_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_IN_PIN17_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN17_High (1UL) /*!< Pin input is high */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_IN_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_IN_PIN16_Msk (0x1UL << GPIO_IN_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_IN_PIN16_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN16_High (1UL) /*!< Pin input is high */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_IN_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_IN_PIN15_Msk (0x1UL << GPIO_IN_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_IN_PIN15_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN15_High (1UL) /*!< Pin input is high */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_IN_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_IN_PIN14_Msk (0x1UL << GPIO_IN_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_IN_PIN14_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN14_High (1UL) /*!< Pin input is high */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_IN_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_IN_PIN13_Msk (0x1UL << GPIO_IN_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_IN_PIN13_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN13_High (1UL) /*!< Pin input is high */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_IN_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_IN_PIN12_Msk (0x1UL << GPIO_IN_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_IN_PIN12_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN12_High (1UL) /*!< Pin input is high */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_IN_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_IN_PIN11_Msk (0x1UL << GPIO_IN_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_IN_PIN11_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN11_High (1UL) /*!< Pin input is high */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_IN_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_IN_PIN10_Msk (0x1UL << GPIO_IN_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_IN_PIN10_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN10_High (1UL) /*!< Pin input is high */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_IN_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_IN_PIN9_Msk (0x1UL << GPIO_IN_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_IN_PIN9_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN9_High (1UL) /*!< Pin input is high */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_IN_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_IN_PIN8_Msk (0x1UL << GPIO_IN_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_IN_PIN8_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN8_High (1UL) /*!< Pin input is high */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_IN_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_IN_PIN7_Msk (0x1UL << GPIO_IN_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_IN_PIN7_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN7_High (1UL) /*!< Pin input is high */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_IN_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_IN_PIN6_Msk (0x1UL << GPIO_IN_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_IN_PIN6_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN6_High (1UL) /*!< Pin input is high */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_IN_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_IN_PIN5_Msk (0x1UL << GPIO_IN_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_IN_PIN5_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN5_High (1UL) /*!< Pin input is high */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_IN_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_IN_PIN4_Msk (0x1UL << GPIO_IN_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_IN_PIN4_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN4_High (1UL) /*!< Pin input is high */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_IN_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_IN_PIN3_Msk (0x1UL << GPIO_IN_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_IN_PIN3_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN3_High (1UL) /*!< Pin input is high */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_IN_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_IN_PIN2_Msk (0x1UL << GPIO_IN_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_IN_PIN2_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN2_High (1UL) /*!< Pin input is high */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_IN_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_IN_PIN1_Msk (0x1UL << GPIO_IN_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_IN_PIN1_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN1_High (1UL) /*!< Pin input is high */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_IN_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_IN_PIN0_Msk (0x1UL << GPIO_IN_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_IN_PIN0_Low (0UL) /*!< Pin input is low */
+#define GPIO_IN_PIN0_High (1UL) /*!< Pin input is high */
+
+/* Register: GPIO_DIR */
+/* Description: Direction of GPIO pins */
+
+/* Bit 31 : Pin 31 */
+#define GPIO_DIR_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_DIR_PIN31_Msk (0x1UL << GPIO_DIR_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_DIR_PIN31_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN31_Output (1UL) /*!< Pin set as output */
+
+/* Bit 30 : Pin 30 */
+#define GPIO_DIR_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_DIR_PIN30_Msk (0x1UL << GPIO_DIR_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_DIR_PIN30_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN30_Output (1UL) /*!< Pin set as output */
+
+/* Bit 29 : Pin 29 */
+#define GPIO_DIR_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_DIR_PIN29_Msk (0x1UL << GPIO_DIR_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_DIR_PIN29_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN29_Output (1UL) /*!< Pin set as output */
+
+/* Bit 28 : Pin 28 */
+#define GPIO_DIR_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_DIR_PIN28_Msk (0x1UL << GPIO_DIR_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_DIR_PIN28_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN28_Output (1UL) /*!< Pin set as output */
+
+/* Bit 27 : Pin 27 */
+#define GPIO_DIR_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_DIR_PIN27_Msk (0x1UL << GPIO_DIR_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_DIR_PIN27_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN27_Output (1UL) /*!< Pin set as output */
+
+/* Bit 26 : Pin 26 */
+#define GPIO_DIR_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_DIR_PIN26_Msk (0x1UL << GPIO_DIR_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_DIR_PIN26_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN26_Output (1UL) /*!< Pin set as output */
+
+/* Bit 25 : Pin 25 */
+#define GPIO_DIR_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_DIR_PIN25_Msk (0x1UL << GPIO_DIR_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_DIR_PIN25_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN25_Output (1UL) /*!< Pin set as output */
+
+/* Bit 24 : Pin 24 */
+#define GPIO_DIR_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_DIR_PIN24_Msk (0x1UL << GPIO_DIR_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_DIR_PIN24_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN24_Output (1UL) /*!< Pin set as output */
+
+/* Bit 23 : Pin 23 */
+#define GPIO_DIR_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_DIR_PIN23_Msk (0x1UL << GPIO_DIR_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_DIR_PIN23_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN23_Output (1UL) /*!< Pin set as output */
+
+/* Bit 22 : Pin 22 */
+#define GPIO_DIR_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_DIR_PIN22_Msk (0x1UL << GPIO_DIR_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_DIR_PIN22_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN22_Output (1UL) /*!< Pin set as output */
+
+/* Bit 21 : Pin 21 */
+#define GPIO_DIR_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_DIR_PIN21_Msk (0x1UL << GPIO_DIR_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_DIR_PIN21_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN21_Output (1UL) /*!< Pin set as output */
+
+/* Bit 20 : Pin 20 */
+#define GPIO_DIR_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_DIR_PIN20_Msk (0x1UL << GPIO_DIR_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_DIR_PIN20_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN20_Output (1UL) /*!< Pin set as output */
+
+/* Bit 19 : Pin 19 */
+#define GPIO_DIR_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_DIR_PIN19_Msk (0x1UL << GPIO_DIR_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_DIR_PIN19_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN19_Output (1UL) /*!< Pin set as output */
+
+/* Bit 18 : Pin 18 */
+#define GPIO_DIR_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_DIR_PIN18_Msk (0x1UL << GPIO_DIR_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_DIR_PIN18_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN18_Output (1UL) /*!< Pin set as output */
+
+/* Bit 17 : Pin 17 */
+#define GPIO_DIR_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_DIR_PIN17_Msk (0x1UL << GPIO_DIR_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_DIR_PIN17_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN17_Output (1UL) /*!< Pin set as output */
+
+/* Bit 16 : Pin 16 */
+#define GPIO_DIR_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_DIR_PIN16_Msk (0x1UL << GPIO_DIR_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_DIR_PIN16_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN16_Output (1UL) /*!< Pin set as output */
+
+/* Bit 15 : Pin 15 */
+#define GPIO_DIR_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_DIR_PIN15_Msk (0x1UL << GPIO_DIR_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_DIR_PIN15_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN15_Output (1UL) /*!< Pin set as output */
+
+/* Bit 14 : Pin 14 */
+#define GPIO_DIR_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_DIR_PIN14_Msk (0x1UL << GPIO_DIR_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_DIR_PIN14_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN14_Output (1UL) /*!< Pin set as output */
+
+/* Bit 13 : Pin 13 */
+#define GPIO_DIR_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_DIR_PIN13_Msk (0x1UL << GPIO_DIR_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_DIR_PIN13_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN13_Output (1UL) /*!< Pin set as output */
+
+/* Bit 12 : Pin 12 */
+#define GPIO_DIR_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_DIR_PIN12_Msk (0x1UL << GPIO_DIR_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_DIR_PIN12_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN12_Output (1UL) /*!< Pin set as output */
+
+/* Bit 11 : Pin 11 */
+#define GPIO_DIR_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_DIR_PIN11_Msk (0x1UL << GPIO_DIR_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_DIR_PIN11_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN11_Output (1UL) /*!< Pin set as output */
+
+/* Bit 10 : Pin 10 */
+#define GPIO_DIR_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_DIR_PIN10_Msk (0x1UL << GPIO_DIR_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_DIR_PIN10_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN10_Output (1UL) /*!< Pin set as output */
+
+/* Bit 9 : Pin 9 */
+#define GPIO_DIR_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_DIR_PIN9_Msk (0x1UL << GPIO_DIR_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_DIR_PIN9_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN9_Output (1UL) /*!< Pin set as output */
+
+/* Bit 8 : Pin 8 */
+#define GPIO_DIR_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_DIR_PIN8_Msk (0x1UL << GPIO_DIR_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_DIR_PIN8_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN8_Output (1UL) /*!< Pin set as output */
+
+/* Bit 7 : Pin 7 */
+#define GPIO_DIR_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_DIR_PIN7_Msk (0x1UL << GPIO_DIR_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_DIR_PIN7_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN7_Output (1UL) /*!< Pin set as output */
+
+/* Bit 6 : Pin 6 */
+#define GPIO_DIR_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_DIR_PIN6_Msk (0x1UL << GPIO_DIR_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_DIR_PIN6_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN6_Output (1UL) /*!< Pin set as output */
+
+/* Bit 5 : Pin 5 */
+#define GPIO_DIR_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_DIR_PIN5_Msk (0x1UL << GPIO_DIR_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_DIR_PIN5_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN5_Output (1UL) /*!< Pin set as output */
+
+/* Bit 4 : Pin 4 */
+#define GPIO_DIR_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_DIR_PIN4_Msk (0x1UL << GPIO_DIR_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_DIR_PIN4_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN4_Output (1UL) /*!< Pin set as output */
+
+/* Bit 3 : Pin 3 */
+#define GPIO_DIR_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_DIR_PIN3_Msk (0x1UL << GPIO_DIR_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_DIR_PIN3_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN3_Output (1UL) /*!< Pin set as output */
+
+/* Bit 2 : Pin 2 */
+#define GPIO_DIR_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_DIR_PIN2_Msk (0x1UL << GPIO_DIR_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_DIR_PIN2_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN2_Output (1UL) /*!< Pin set as output */
+
+/* Bit 1 : Pin 1 */
+#define GPIO_DIR_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_DIR_PIN1_Msk (0x1UL << GPIO_DIR_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_DIR_PIN1_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN1_Output (1UL) /*!< Pin set as output */
+
+/* Bit 0 : Pin 0 */
+#define GPIO_DIR_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_DIR_PIN0_Msk (0x1UL << GPIO_DIR_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_DIR_PIN0_Input (0UL) /*!< Pin set as input */
+#define GPIO_DIR_PIN0_Output (1UL) /*!< Pin set as output */
+
+/* Register: GPIO_DIRSET */
+/* Description: DIR set register */
+
+/* Bit 31 : Set as output pin 31 */
+#define GPIO_DIRSET_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_DIRSET_PIN31_Msk (0x1UL << GPIO_DIRSET_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_DIRSET_PIN31_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN31_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN31_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 30 : Set as output pin 30 */
+#define GPIO_DIRSET_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_DIRSET_PIN30_Msk (0x1UL << GPIO_DIRSET_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_DIRSET_PIN30_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN30_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN30_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 29 : Set as output pin 29 */
+#define GPIO_DIRSET_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_DIRSET_PIN29_Msk (0x1UL << GPIO_DIRSET_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_DIRSET_PIN29_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN29_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN29_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 28 : Set as output pin 28 */
+#define GPIO_DIRSET_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_DIRSET_PIN28_Msk (0x1UL << GPIO_DIRSET_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_DIRSET_PIN28_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN28_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN28_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 27 : Set as output pin 27 */
+#define GPIO_DIRSET_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_DIRSET_PIN27_Msk (0x1UL << GPIO_DIRSET_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_DIRSET_PIN27_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN27_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN27_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 26 : Set as output pin 26 */
+#define GPIO_DIRSET_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_DIRSET_PIN26_Msk (0x1UL << GPIO_DIRSET_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_DIRSET_PIN26_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN26_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN26_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 25 : Set as output pin 25 */
+#define GPIO_DIRSET_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_DIRSET_PIN25_Msk (0x1UL << GPIO_DIRSET_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_DIRSET_PIN25_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN25_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN25_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 24 : Set as output pin 24 */
+#define GPIO_DIRSET_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_DIRSET_PIN24_Msk (0x1UL << GPIO_DIRSET_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_DIRSET_PIN24_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN24_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN24_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 23 : Set as output pin 23 */
+#define GPIO_DIRSET_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_DIRSET_PIN23_Msk (0x1UL << GPIO_DIRSET_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_DIRSET_PIN23_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN23_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN23_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 22 : Set as output pin 22 */
+#define GPIO_DIRSET_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_DIRSET_PIN22_Msk (0x1UL << GPIO_DIRSET_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_DIRSET_PIN22_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN22_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN22_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 21 : Set as output pin 21 */
+#define GPIO_DIRSET_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_DIRSET_PIN21_Msk (0x1UL << GPIO_DIRSET_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_DIRSET_PIN21_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN21_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN21_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 20 : Set as output pin 20 */
+#define GPIO_DIRSET_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_DIRSET_PIN20_Msk (0x1UL << GPIO_DIRSET_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_DIRSET_PIN20_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN20_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN20_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 19 : Set as output pin 19 */
+#define GPIO_DIRSET_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_DIRSET_PIN19_Msk (0x1UL << GPIO_DIRSET_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_DIRSET_PIN19_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN19_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN19_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 18 : Set as output pin 18 */
+#define GPIO_DIRSET_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_DIRSET_PIN18_Msk (0x1UL << GPIO_DIRSET_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_DIRSET_PIN18_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN18_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN18_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 17 : Set as output pin 17 */
+#define GPIO_DIRSET_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_DIRSET_PIN17_Msk (0x1UL << GPIO_DIRSET_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_DIRSET_PIN17_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN17_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN17_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 16 : Set as output pin 16 */
+#define GPIO_DIRSET_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_DIRSET_PIN16_Msk (0x1UL << GPIO_DIRSET_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_DIRSET_PIN16_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN16_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN16_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 15 : Set as output pin 15 */
+#define GPIO_DIRSET_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_DIRSET_PIN15_Msk (0x1UL << GPIO_DIRSET_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_DIRSET_PIN15_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN15_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN15_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 14 : Set as output pin 14 */
+#define GPIO_DIRSET_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_DIRSET_PIN14_Msk (0x1UL << GPIO_DIRSET_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_DIRSET_PIN14_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN14_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN14_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 13 : Set as output pin 13 */
+#define GPIO_DIRSET_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_DIRSET_PIN13_Msk (0x1UL << GPIO_DIRSET_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_DIRSET_PIN13_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN13_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN13_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 12 : Set as output pin 12 */
+#define GPIO_DIRSET_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_DIRSET_PIN12_Msk (0x1UL << GPIO_DIRSET_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_DIRSET_PIN12_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN12_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN12_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 11 : Set as output pin 11 */
+#define GPIO_DIRSET_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_DIRSET_PIN11_Msk (0x1UL << GPIO_DIRSET_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_DIRSET_PIN11_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN11_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN11_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 10 : Set as output pin 10 */
+#define GPIO_DIRSET_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_DIRSET_PIN10_Msk (0x1UL << GPIO_DIRSET_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_DIRSET_PIN10_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN10_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN10_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 9 : Set as output pin 9 */
+#define GPIO_DIRSET_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_DIRSET_PIN9_Msk (0x1UL << GPIO_DIRSET_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_DIRSET_PIN9_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN9_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN9_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 8 : Set as output pin 8 */
+#define GPIO_DIRSET_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_DIRSET_PIN8_Msk (0x1UL << GPIO_DIRSET_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_DIRSET_PIN8_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN8_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN8_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 7 : Set as output pin 7 */
+#define GPIO_DIRSET_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_DIRSET_PIN7_Msk (0x1UL << GPIO_DIRSET_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_DIRSET_PIN7_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN7_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN7_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 6 : Set as output pin 6 */
+#define GPIO_DIRSET_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_DIRSET_PIN6_Msk (0x1UL << GPIO_DIRSET_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_DIRSET_PIN6_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN6_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN6_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 5 : Set as output pin 5 */
+#define GPIO_DIRSET_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_DIRSET_PIN5_Msk (0x1UL << GPIO_DIRSET_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_DIRSET_PIN5_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN5_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN5_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 4 : Set as output pin 4 */
+#define GPIO_DIRSET_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_DIRSET_PIN4_Msk (0x1UL << GPIO_DIRSET_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_DIRSET_PIN4_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN4_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN4_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 3 : Set as output pin 3 */
+#define GPIO_DIRSET_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_DIRSET_PIN3_Msk (0x1UL << GPIO_DIRSET_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_DIRSET_PIN3_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN3_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN3_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 2 : Set as output pin 2 */
+#define GPIO_DIRSET_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_DIRSET_PIN2_Msk (0x1UL << GPIO_DIRSET_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_DIRSET_PIN2_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN2_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN2_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 1 : Set as output pin 1 */
+#define GPIO_DIRSET_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_DIRSET_PIN1_Msk (0x1UL << GPIO_DIRSET_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_DIRSET_PIN1_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN1_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN1_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Bit 0 : Set as output pin 0 */
+#define GPIO_DIRSET_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_DIRSET_PIN0_Msk (0x1UL << GPIO_DIRSET_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_DIRSET_PIN0_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRSET_PIN0_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRSET_PIN0_Set (1UL) /*!< Write: writing a '1' sets pin to output; writing a '0' has no effect */
+
+/* Register: GPIO_DIRCLR */
+/* Description: DIR clear register */
+
+/* Bit 31 : Set as input pin 31 */
+#define GPIO_DIRCLR_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_DIRCLR_PIN31_Msk (0x1UL << GPIO_DIRCLR_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_DIRCLR_PIN31_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN31_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN31_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 30 : Set as input pin 30 */
+#define GPIO_DIRCLR_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_DIRCLR_PIN30_Msk (0x1UL << GPIO_DIRCLR_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_DIRCLR_PIN30_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN30_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN30_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 29 : Set as input pin 29 */
+#define GPIO_DIRCLR_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_DIRCLR_PIN29_Msk (0x1UL << GPIO_DIRCLR_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_DIRCLR_PIN29_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN29_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN29_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 28 : Set as input pin 28 */
+#define GPIO_DIRCLR_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_DIRCLR_PIN28_Msk (0x1UL << GPIO_DIRCLR_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_DIRCLR_PIN28_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN28_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN28_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 27 : Set as input pin 27 */
+#define GPIO_DIRCLR_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_DIRCLR_PIN27_Msk (0x1UL << GPIO_DIRCLR_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_DIRCLR_PIN27_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN27_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN27_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 26 : Set as input pin 26 */
+#define GPIO_DIRCLR_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_DIRCLR_PIN26_Msk (0x1UL << GPIO_DIRCLR_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_DIRCLR_PIN26_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN26_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN26_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 25 : Set as input pin 25 */
+#define GPIO_DIRCLR_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_DIRCLR_PIN25_Msk (0x1UL << GPIO_DIRCLR_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_DIRCLR_PIN25_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN25_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN25_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 24 : Set as input pin 24 */
+#define GPIO_DIRCLR_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_DIRCLR_PIN24_Msk (0x1UL << GPIO_DIRCLR_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_DIRCLR_PIN24_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN24_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN24_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 23 : Set as input pin 23 */
+#define GPIO_DIRCLR_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_DIRCLR_PIN23_Msk (0x1UL << GPIO_DIRCLR_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_DIRCLR_PIN23_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN23_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN23_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 22 : Set as input pin 22 */
+#define GPIO_DIRCLR_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_DIRCLR_PIN22_Msk (0x1UL << GPIO_DIRCLR_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_DIRCLR_PIN22_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN22_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN22_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 21 : Set as input pin 21 */
+#define GPIO_DIRCLR_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_DIRCLR_PIN21_Msk (0x1UL << GPIO_DIRCLR_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_DIRCLR_PIN21_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN21_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN21_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 20 : Set as input pin 20 */
+#define GPIO_DIRCLR_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_DIRCLR_PIN20_Msk (0x1UL << GPIO_DIRCLR_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_DIRCLR_PIN20_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN20_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN20_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 19 : Set as input pin 19 */
+#define GPIO_DIRCLR_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_DIRCLR_PIN19_Msk (0x1UL << GPIO_DIRCLR_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_DIRCLR_PIN19_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN19_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN19_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 18 : Set as input pin 18 */
+#define GPIO_DIRCLR_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_DIRCLR_PIN18_Msk (0x1UL << GPIO_DIRCLR_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_DIRCLR_PIN18_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN18_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN18_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 17 : Set as input pin 17 */
+#define GPIO_DIRCLR_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_DIRCLR_PIN17_Msk (0x1UL << GPIO_DIRCLR_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_DIRCLR_PIN17_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN17_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN17_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 16 : Set as input pin 16 */
+#define GPIO_DIRCLR_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_DIRCLR_PIN16_Msk (0x1UL << GPIO_DIRCLR_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_DIRCLR_PIN16_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN16_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN16_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 15 : Set as input pin 15 */
+#define GPIO_DIRCLR_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_DIRCLR_PIN15_Msk (0x1UL << GPIO_DIRCLR_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_DIRCLR_PIN15_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN15_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN15_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 14 : Set as input pin 14 */
+#define GPIO_DIRCLR_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_DIRCLR_PIN14_Msk (0x1UL << GPIO_DIRCLR_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_DIRCLR_PIN14_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN14_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN14_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 13 : Set as input pin 13 */
+#define GPIO_DIRCLR_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_DIRCLR_PIN13_Msk (0x1UL << GPIO_DIRCLR_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_DIRCLR_PIN13_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN13_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN13_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 12 : Set as input pin 12 */
+#define GPIO_DIRCLR_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_DIRCLR_PIN12_Msk (0x1UL << GPIO_DIRCLR_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_DIRCLR_PIN12_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN12_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN12_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 11 : Set as input pin 11 */
+#define GPIO_DIRCLR_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_DIRCLR_PIN11_Msk (0x1UL << GPIO_DIRCLR_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_DIRCLR_PIN11_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN11_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN11_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 10 : Set as input pin 10 */
+#define GPIO_DIRCLR_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_DIRCLR_PIN10_Msk (0x1UL << GPIO_DIRCLR_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_DIRCLR_PIN10_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN10_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN10_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 9 : Set as input pin 9 */
+#define GPIO_DIRCLR_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_DIRCLR_PIN9_Msk (0x1UL << GPIO_DIRCLR_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_DIRCLR_PIN9_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN9_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN9_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 8 : Set as input pin 8 */
+#define GPIO_DIRCLR_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_DIRCLR_PIN8_Msk (0x1UL << GPIO_DIRCLR_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_DIRCLR_PIN8_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN8_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN8_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 7 : Set as input pin 7 */
+#define GPIO_DIRCLR_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_DIRCLR_PIN7_Msk (0x1UL << GPIO_DIRCLR_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_DIRCLR_PIN7_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN7_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN7_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 6 : Set as input pin 6 */
+#define GPIO_DIRCLR_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_DIRCLR_PIN6_Msk (0x1UL << GPIO_DIRCLR_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_DIRCLR_PIN6_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN6_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN6_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 5 : Set as input pin 5 */
+#define GPIO_DIRCLR_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_DIRCLR_PIN5_Msk (0x1UL << GPIO_DIRCLR_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_DIRCLR_PIN5_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN5_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN5_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 4 : Set as input pin 4 */
+#define GPIO_DIRCLR_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_DIRCLR_PIN4_Msk (0x1UL << GPIO_DIRCLR_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_DIRCLR_PIN4_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN4_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN4_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 3 : Set as input pin 3 */
+#define GPIO_DIRCLR_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_DIRCLR_PIN3_Msk (0x1UL << GPIO_DIRCLR_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_DIRCLR_PIN3_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN3_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN3_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 2 : Set as input pin 2 */
+#define GPIO_DIRCLR_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_DIRCLR_PIN2_Msk (0x1UL << GPIO_DIRCLR_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_DIRCLR_PIN2_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN2_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN2_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 1 : Set as input pin 1 */
+#define GPIO_DIRCLR_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_DIRCLR_PIN1_Msk (0x1UL << GPIO_DIRCLR_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_DIRCLR_PIN1_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN1_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN1_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Bit 0 : Set as input pin 0 */
+#define GPIO_DIRCLR_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_DIRCLR_PIN0_Msk (0x1UL << GPIO_DIRCLR_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_DIRCLR_PIN0_Input (0UL) /*!< Read: pin set as input */
+#define GPIO_DIRCLR_PIN0_Output (1UL) /*!< Read: pin set as output */
+#define GPIO_DIRCLR_PIN0_Clear (1UL) /*!< Write: writing a '1' sets pin to input; writing a '0' has no effect */
+
+/* Register: GPIO_LATCH */
+/* Description: Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF[n].SENSE registers */
+
+/* Bit 31 : Status on whether PIN31 has met criteria set in PIN_CNF31.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN31_Pos (31UL) /*!< Position of PIN31 field. */
+#define GPIO_LATCH_PIN31_Msk (0x1UL << GPIO_LATCH_PIN31_Pos) /*!< Bit mask of PIN31 field. */
+#define GPIO_LATCH_PIN31_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN31_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 30 : Status on whether PIN30 has met criteria set in PIN_CNF30.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN30_Pos (30UL) /*!< Position of PIN30 field. */
+#define GPIO_LATCH_PIN30_Msk (0x1UL << GPIO_LATCH_PIN30_Pos) /*!< Bit mask of PIN30 field. */
+#define GPIO_LATCH_PIN30_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN30_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 29 : Status on whether PIN29 has met criteria set in PIN_CNF29.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN29_Pos (29UL) /*!< Position of PIN29 field. */
+#define GPIO_LATCH_PIN29_Msk (0x1UL << GPIO_LATCH_PIN29_Pos) /*!< Bit mask of PIN29 field. */
+#define GPIO_LATCH_PIN29_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN29_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 28 : Status on whether PIN28 has met criteria set in PIN_CNF28.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN28_Pos (28UL) /*!< Position of PIN28 field. */
+#define GPIO_LATCH_PIN28_Msk (0x1UL << GPIO_LATCH_PIN28_Pos) /*!< Bit mask of PIN28 field. */
+#define GPIO_LATCH_PIN28_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN28_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 27 : Status on whether PIN27 has met criteria set in PIN_CNF27.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN27_Pos (27UL) /*!< Position of PIN27 field. */
+#define GPIO_LATCH_PIN27_Msk (0x1UL << GPIO_LATCH_PIN27_Pos) /*!< Bit mask of PIN27 field. */
+#define GPIO_LATCH_PIN27_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN27_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 26 : Status on whether PIN26 has met criteria set in PIN_CNF26.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN26_Pos (26UL) /*!< Position of PIN26 field. */
+#define GPIO_LATCH_PIN26_Msk (0x1UL << GPIO_LATCH_PIN26_Pos) /*!< Bit mask of PIN26 field. */
+#define GPIO_LATCH_PIN26_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN26_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 25 : Status on whether PIN25 has met criteria set in PIN_CNF25.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN25_Pos (25UL) /*!< Position of PIN25 field. */
+#define GPIO_LATCH_PIN25_Msk (0x1UL << GPIO_LATCH_PIN25_Pos) /*!< Bit mask of PIN25 field. */
+#define GPIO_LATCH_PIN25_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN25_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 24 : Status on whether PIN24 has met criteria set in PIN_CNF24.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN24_Pos (24UL) /*!< Position of PIN24 field. */
+#define GPIO_LATCH_PIN24_Msk (0x1UL << GPIO_LATCH_PIN24_Pos) /*!< Bit mask of PIN24 field. */
+#define GPIO_LATCH_PIN24_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN24_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 23 : Status on whether PIN23 has met criteria set in PIN_CNF23.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN23_Pos (23UL) /*!< Position of PIN23 field. */
+#define GPIO_LATCH_PIN23_Msk (0x1UL << GPIO_LATCH_PIN23_Pos) /*!< Bit mask of PIN23 field. */
+#define GPIO_LATCH_PIN23_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN23_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 22 : Status on whether PIN22 has met criteria set in PIN_CNF22.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN22_Pos (22UL) /*!< Position of PIN22 field. */
+#define GPIO_LATCH_PIN22_Msk (0x1UL << GPIO_LATCH_PIN22_Pos) /*!< Bit mask of PIN22 field. */
+#define GPIO_LATCH_PIN22_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN22_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 21 : Status on whether PIN21 has met criteria set in PIN_CNF21.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN21_Pos (21UL) /*!< Position of PIN21 field. */
+#define GPIO_LATCH_PIN21_Msk (0x1UL << GPIO_LATCH_PIN21_Pos) /*!< Bit mask of PIN21 field. */
+#define GPIO_LATCH_PIN21_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN21_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 20 : Status on whether PIN20 has met criteria set in PIN_CNF20.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN20_Pos (20UL) /*!< Position of PIN20 field. */
+#define GPIO_LATCH_PIN20_Msk (0x1UL << GPIO_LATCH_PIN20_Pos) /*!< Bit mask of PIN20 field. */
+#define GPIO_LATCH_PIN20_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN20_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 19 : Status on whether PIN19 has met criteria set in PIN_CNF19.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN19_Pos (19UL) /*!< Position of PIN19 field. */
+#define GPIO_LATCH_PIN19_Msk (0x1UL << GPIO_LATCH_PIN19_Pos) /*!< Bit mask of PIN19 field. */
+#define GPIO_LATCH_PIN19_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN19_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 18 : Status on whether PIN18 has met criteria set in PIN_CNF18.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN18_Pos (18UL) /*!< Position of PIN18 field. */
+#define GPIO_LATCH_PIN18_Msk (0x1UL << GPIO_LATCH_PIN18_Pos) /*!< Bit mask of PIN18 field. */
+#define GPIO_LATCH_PIN18_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN18_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 17 : Status on whether PIN17 has met criteria set in PIN_CNF17.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN17_Pos (17UL) /*!< Position of PIN17 field. */
+#define GPIO_LATCH_PIN17_Msk (0x1UL << GPIO_LATCH_PIN17_Pos) /*!< Bit mask of PIN17 field. */
+#define GPIO_LATCH_PIN17_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN17_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 16 : Status on whether PIN16 has met criteria set in PIN_CNF16.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN16_Pos (16UL) /*!< Position of PIN16 field. */
+#define GPIO_LATCH_PIN16_Msk (0x1UL << GPIO_LATCH_PIN16_Pos) /*!< Bit mask of PIN16 field. */
+#define GPIO_LATCH_PIN16_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN16_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 15 : Status on whether PIN15 has met criteria set in PIN_CNF15.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN15_Pos (15UL) /*!< Position of PIN15 field. */
+#define GPIO_LATCH_PIN15_Msk (0x1UL << GPIO_LATCH_PIN15_Pos) /*!< Bit mask of PIN15 field. */
+#define GPIO_LATCH_PIN15_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN15_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 14 : Status on whether PIN14 has met criteria set in PIN_CNF14.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN14_Pos (14UL) /*!< Position of PIN14 field. */
+#define GPIO_LATCH_PIN14_Msk (0x1UL << GPIO_LATCH_PIN14_Pos) /*!< Bit mask of PIN14 field. */
+#define GPIO_LATCH_PIN14_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN14_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 13 : Status on whether PIN13 has met criteria set in PIN_CNF13.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN13_Pos (13UL) /*!< Position of PIN13 field. */
+#define GPIO_LATCH_PIN13_Msk (0x1UL << GPIO_LATCH_PIN13_Pos) /*!< Bit mask of PIN13 field. */
+#define GPIO_LATCH_PIN13_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN13_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 12 : Status on whether PIN12 has met criteria set in PIN_CNF12.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN12_Pos (12UL) /*!< Position of PIN12 field. */
+#define GPIO_LATCH_PIN12_Msk (0x1UL << GPIO_LATCH_PIN12_Pos) /*!< Bit mask of PIN12 field. */
+#define GPIO_LATCH_PIN12_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN12_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 11 : Status on whether PIN11 has met criteria set in PIN_CNF11.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN11_Pos (11UL) /*!< Position of PIN11 field. */
+#define GPIO_LATCH_PIN11_Msk (0x1UL << GPIO_LATCH_PIN11_Pos) /*!< Bit mask of PIN11 field. */
+#define GPIO_LATCH_PIN11_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN11_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 10 : Status on whether PIN10 has met criteria set in PIN_CNF10.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN10_Pos (10UL) /*!< Position of PIN10 field. */
+#define GPIO_LATCH_PIN10_Msk (0x1UL << GPIO_LATCH_PIN10_Pos) /*!< Bit mask of PIN10 field. */
+#define GPIO_LATCH_PIN10_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN10_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 9 : Status on whether PIN9 has met criteria set in PIN_CNF9.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN9_Pos (9UL) /*!< Position of PIN9 field. */
+#define GPIO_LATCH_PIN9_Msk (0x1UL << GPIO_LATCH_PIN9_Pos) /*!< Bit mask of PIN9 field. */
+#define GPIO_LATCH_PIN9_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN9_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 8 : Status on whether PIN8 has met criteria set in PIN_CNF8.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN8_Pos (8UL) /*!< Position of PIN8 field. */
+#define GPIO_LATCH_PIN8_Msk (0x1UL << GPIO_LATCH_PIN8_Pos) /*!< Bit mask of PIN8 field. */
+#define GPIO_LATCH_PIN8_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN8_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 7 : Status on whether PIN7 has met criteria set in PIN_CNF7.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN7_Pos (7UL) /*!< Position of PIN7 field. */
+#define GPIO_LATCH_PIN7_Msk (0x1UL << GPIO_LATCH_PIN7_Pos) /*!< Bit mask of PIN7 field. */
+#define GPIO_LATCH_PIN7_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN7_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 6 : Status on whether PIN6 has met criteria set in PIN_CNF6.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN6_Pos (6UL) /*!< Position of PIN6 field. */
+#define GPIO_LATCH_PIN6_Msk (0x1UL << GPIO_LATCH_PIN6_Pos) /*!< Bit mask of PIN6 field. */
+#define GPIO_LATCH_PIN6_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN6_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 5 : Status on whether PIN5 has met criteria set in PIN_CNF5.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN5_Pos (5UL) /*!< Position of PIN5 field. */
+#define GPIO_LATCH_PIN5_Msk (0x1UL << GPIO_LATCH_PIN5_Pos) /*!< Bit mask of PIN5 field. */
+#define GPIO_LATCH_PIN5_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN5_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 4 : Status on whether PIN4 has met criteria set in PIN_CNF4.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN4_Pos (4UL) /*!< Position of PIN4 field. */
+#define GPIO_LATCH_PIN4_Msk (0x1UL << GPIO_LATCH_PIN4_Pos) /*!< Bit mask of PIN4 field. */
+#define GPIO_LATCH_PIN4_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN4_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 3 : Status on whether PIN3 has met criteria set in PIN_CNF3.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN3_Pos (3UL) /*!< Position of PIN3 field. */
+#define GPIO_LATCH_PIN3_Msk (0x1UL << GPIO_LATCH_PIN3_Pos) /*!< Bit mask of PIN3 field. */
+#define GPIO_LATCH_PIN3_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN3_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 2 : Status on whether PIN2 has met criteria set in PIN_CNF2.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN2_Pos (2UL) /*!< Position of PIN2 field. */
+#define GPIO_LATCH_PIN2_Msk (0x1UL << GPIO_LATCH_PIN2_Pos) /*!< Bit mask of PIN2 field. */
+#define GPIO_LATCH_PIN2_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN2_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 1 : Status on whether PIN1 has met criteria set in PIN_CNF1.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN1_Pos (1UL) /*!< Position of PIN1 field. */
+#define GPIO_LATCH_PIN1_Msk (0x1UL << GPIO_LATCH_PIN1_Pos) /*!< Bit mask of PIN1 field. */
+#define GPIO_LATCH_PIN1_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN1_Latched (1UL) /*!< Criteria has been met */
+
+/* Bit 0 : Status on whether PIN0 has met criteria set in PIN_CNF0.SENSE register. Write '1' to clear. */
+#define GPIO_LATCH_PIN0_Pos (0UL) /*!< Position of PIN0 field. */
+#define GPIO_LATCH_PIN0_Msk (0x1UL << GPIO_LATCH_PIN0_Pos) /*!< Bit mask of PIN0 field. */
+#define GPIO_LATCH_PIN0_NotLatched (0UL) /*!< Criteria has not been met */
+#define GPIO_LATCH_PIN0_Latched (1UL) /*!< Criteria has been met */
+
+/* Register: GPIO_DETECTMODE */
+/* Description: Select between default DETECT signal behaviour and LDETECT mode */
+
+/* Bit 0 : Select between default DETECT signal behaviour and LDETECT mode */
+#define GPIO_DETECTMODE_DETECTMODE_Pos (0UL) /*!< Position of DETECTMODE field. */
+#define GPIO_DETECTMODE_DETECTMODE_Msk (0x1UL << GPIO_DETECTMODE_DETECTMODE_Pos) /*!< Bit mask of DETECTMODE field. */
+#define GPIO_DETECTMODE_DETECTMODE_Default (0UL) /*!< DETECT directly connected to PIN DETECT signals */
+#define GPIO_DETECTMODE_DETECTMODE_LDETECT (1UL) /*!< Use the latched LDETECT behaviour */
+
+/* Register: GPIO_PIN_CNF */
+/* Description: Description collection[0]: Configuration of GPIO pins */
+
+/* Bits 17..16 : Pin sensing mechanism */
+#define GPIO_PIN_CNF_SENSE_Pos (16UL) /*!< Position of SENSE field. */
+#define GPIO_PIN_CNF_SENSE_Msk (0x3UL << GPIO_PIN_CNF_SENSE_Pos) /*!< Bit mask of SENSE field. */
+#define GPIO_PIN_CNF_SENSE_Disabled (0UL) /*!< Disabled */
+#define GPIO_PIN_CNF_SENSE_High (2UL) /*!< Sense for high level */
+#define GPIO_PIN_CNF_SENSE_Low (3UL) /*!< Sense for low level */
+
+/* Bits 10..8 : Drive configuration */
+#define GPIO_PIN_CNF_DRIVE_Pos (8UL) /*!< Position of DRIVE field. */
+#define GPIO_PIN_CNF_DRIVE_Msk (0x7UL << GPIO_PIN_CNF_DRIVE_Pos) /*!< Bit mask of DRIVE field. */
+#define GPIO_PIN_CNF_DRIVE_S0S1 (0UL) /*!< Standard '0', standard '1' */
+#define GPIO_PIN_CNF_DRIVE_H0S1 (1UL) /*!< High drive '0', standard '1' */
+#define GPIO_PIN_CNF_DRIVE_S0H1 (2UL) /*!< Standard '0', high drive '1' */
+#define GPIO_PIN_CNF_DRIVE_H0H1 (3UL) /*!< High drive '0', high 'drive '1'' */
+#define GPIO_PIN_CNF_DRIVE_D0S1 (4UL) /*!< Disconnect '0' standard '1' (normally used for wired-or connections) */
+#define GPIO_PIN_CNF_DRIVE_D0H1 (5UL) /*!< Disconnect '0', high drive '1' (normally used for wired-or connections) */
+#define GPIO_PIN_CNF_DRIVE_S0D1 (6UL) /*!< Standard '0'. disconnect '1' (normally used for wired-and connections) */
+#define GPIO_PIN_CNF_DRIVE_H0D1 (7UL) /*!< High drive '0', disconnect '1' (normally used for wired-and connections) */
+
+/* Bits 3..2 : Pull configuration */
+#define GPIO_PIN_CNF_PULL_Pos (2UL) /*!< Position of PULL field. */
+#define GPIO_PIN_CNF_PULL_Msk (0x3UL << GPIO_PIN_CNF_PULL_Pos) /*!< Bit mask of PULL field. */
+#define GPIO_PIN_CNF_PULL_Disabled (0UL) /*!< No pull */
+#define GPIO_PIN_CNF_PULL_Pulldown (1UL) /*!< Pull down on pin */
+#define GPIO_PIN_CNF_PULL_Pullup (3UL) /*!< Pull up on pin */
+
+/* Bit 1 : Connect or disconnect input buffer */
+#define GPIO_PIN_CNF_INPUT_Pos (1UL) /*!< Position of INPUT field. */
+#define GPIO_PIN_CNF_INPUT_Msk (0x1UL << GPIO_PIN_CNF_INPUT_Pos) /*!< Bit mask of INPUT field. */
+#define GPIO_PIN_CNF_INPUT_Connect (0UL) /*!< Connect input buffer */
+#define GPIO_PIN_CNF_INPUT_Disconnect (1UL) /*!< Disconnect input buffer */
+
+/* Bit 0 : Pin direction. Same physical register as DIR register */
+#define GPIO_PIN_CNF_DIR_Pos (0UL) /*!< Position of DIR field. */
+#define GPIO_PIN_CNF_DIR_Msk (0x1UL << GPIO_PIN_CNF_DIR_Pos) /*!< Bit mask of DIR field. */
+#define GPIO_PIN_CNF_DIR_Input (0UL) /*!< Configure pin as an input pin */
+#define GPIO_PIN_CNF_DIR_Output (1UL) /*!< Configure pin as an output pin */
+
+
+/* Peripheral: PDM */
+/* Description: Pulse Density Modulation (Digital Microphone) Interface */
+
+/* Register: PDM_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 2 : Enable or disable interrupt for END event */
+#define PDM_INTEN_END_Pos (2UL) /*!< Position of END field. */
+#define PDM_INTEN_END_Msk (0x1UL << PDM_INTEN_END_Pos) /*!< Bit mask of END field. */
+#define PDM_INTEN_END_Disabled (0UL) /*!< Disable */
+#define PDM_INTEN_END_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STOPPED event */
+#define PDM_INTEN_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PDM_INTEN_STOPPED_Msk (0x1UL << PDM_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PDM_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define PDM_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for STARTED event */
+#define PDM_INTEN_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define PDM_INTEN_STARTED_Msk (0x1UL << PDM_INTEN_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define PDM_INTEN_STARTED_Disabled (0UL) /*!< Disable */
+#define PDM_INTEN_STARTED_Enabled (1UL) /*!< Enable */
+
+/* Register: PDM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 2 : Write '1' to Enable interrupt for END event */
+#define PDM_INTENSET_END_Pos (2UL) /*!< Position of END field. */
+#define PDM_INTENSET_END_Msk (0x1UL << PDM_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define PDM_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for STOPPED event */
+#define PDM_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PDM_INTENSET_STOPPED_Msk (0x1UL << PDM_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PDM_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for STARTED event */
+#define PDM_INTENSET_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define PDM_INTENSET_STARTED_Msk (0x1UL << PDM_INTENSET_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define PDM_INTENSET_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENSET_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENSET_STARTED_Set (1UL) /*!< Enable */
+
+/* Register: PDM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 2 : Write '1' to Disable interrupt for END event */
+#define PDM_INTENCLR_END_Pos (2UL) /*!< Position of END field. */
+#define PDM_INTENCLR_END_Msk (0x1UL << PDM_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define PDM_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for STOPPED event */
+#define PDM_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PDM_INTENCLR_STOPPED_Msk (0x1UL << PDM_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PDM_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for STARTED event */
+#define PDM_INTENCLR_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define PDM_INTENCLR_STARTED_Msk (0x1UL << PDM_INTENCLR_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define PDM_INTENCLR_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define PDM_INTENCLR_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define PDM_INTENCLR_STARTED_Clear (1UL) /*!< Disable */
+
+/* Register: PDM_ENABLE */
+/* Description: PDM module enable register */
+
+/* Bit 0 : Enable or disable PDM module */
+#define PDM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define PDM_ENABLE_ENABLE_Msk (0x1UL << PDM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define PDM_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define PDM_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: PDM_PDMCLKCTRL */
+/* Description: PDM clock generator control */
+
+/* Bits 31..0 : PDM_CLK frequency */
+#define PDM_PDMCLKCTRL_FREQ_Pos (0UL) /*!< Position of FREQ field. */
+#define PDM_PDMCLKCTRL_FREQ_Msk (0xFFFFFFFFUL << PDM_PDMCLKCTRL_FREQ_Pos) /*!< Bit mask of FREQ field. */
+#define PDM_PDMCLKCTRL_FREQ_1000K (0x08000000UL) /*!< PDM_CLK = 32 MHz / 32 = 1.000 MHz */
+#define PDM_PDMCLKCTRL_FREQ_Default (0x08400000UL) /*!< PDM_CLK = 32 MHz / 31 = 1.032 MHz */
+#define PDM_PDMCLKCTRL_FREQ_1067K (0x08800000UL) /*!< PDM_CLK = 32 MHz / 30 = 1.067 MHz */
+
+/* Register: PDM_MODE */
+/* Description: Defines the routing of the connected PDM microphones' signals */
+
+/* Bit 1 : Defines on which PDM_CLK edge Left (or mono) is sampled */
+#define PDM_MODE_EDGE_Pos (1UL) /*!< Position of EDGE field. */
+#define PDM_MODE_EDGE_Msk (0x1UL << PDM_MODE_EDGE_Pos) /*!< Bit mask of EDGE field. */
+#define PDM_MODE_EDGE_LeftFalling (0UL) /*!< Left (or mono) is sampled on falling edge of PDM_CLK */
+#define PDM_MODE_EDGE_LeftRising (1UL) /*!< Left (or mono) is sampled on rising edge of PDM_CLK */
+
+/* Bit 0 : Mono or stereo operation */
+#define PDM_MODE_OPERATION_Pos (0UL) /*!< Position of OPERATION field. */
+#define PDM_MODE_OPERATION_Msk (0x1UL << PDM_MODE_OPERATION_Pos) /*!< Bit mask of OPERATION field. */
+#define PDM_MODE_OPERATION_Stereo (0UL) /*!< Sample and store one pair (Left + Right) of 16bit samples per RAM word R=[31:16]; L=[15:0] */
+#define PDM_MODE_OPERATION_Mono (1UL) /*!< Sample and store two successive Left samples (16 bit each) per RAM word L1=[31:16]; L0=[15:0] */
+
+/* Register: PDM_GAINL */
+/* Description: Left output gain adjustment */
+
+/* Bits 6..0 : Left output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters) 0x00 -20 dB gain adjust 0x01 -19.5 dB gain adjust (...) 0x27 -0.5 dB gain adjust 0x28 0 dB gain adjust 0x29 +0.5 dB gain adjust (...) 0x4F +19.5 dB gain adjust 0x50 +20 dB gain adjust */
+#define PDM_GAINL_GAINL_Pos (0UL) /*!< Position of GAINL field. */
+#define PDM_GAINL_GAINL_Msk (0x7FUL << PDM_GAINL_GAINL_Pos) /*!< Bit mask of GAINL field. */
+#define PDM_GAINL_GAINL_MinGain (0x00UL) /*!< -20dB gain adjustment (minimum) */
+#define PDM_GAINL_GAINL_DefaultGain (0x28UL) /*!< 0dB gain adjustment ('2500 RMS' requirement) */
+#define PDM_GAINL_GAINL_MaxGain (0x50UL) /*!< +20dB gain adjustment (maximum) */
+
+/* Register: PDM_GAINR */
+/* Description: Right output gain adjustment */
+
+/* Bits 7..0 : Right output gain adjustment, in 0.5 dB steps, around the default module gain (see electrical parameters) */
+#define PDM_GAINR_GAINR_Pos (0UL) /*!< Position of GAINR field. */
+#define PDM_GAINR_GAINR_Msk (0xFFUL << PDM_GAINR_GAINR_Pos) /*!< Bit mask of GAINR field. */
+#define PDM_GAINR_GAINR_MinGain (0x00UL) /*!< -20dB gain adjustment (minimum) */
+#define PDM_GAINR_GAINR_DefaultGain (0x28UL) /*!< 0dB gain adjustment ('2500 RMS' requirement) */
+#define PDM_GAINR_GAINR_MaxGain (0x50UL) /*!< +20dB gain adjustment (maximum) */
+
+/* Register: PDM_PSEL_CLK */
+/* Description: Pin number configuration for PDM CLK signal */
+
+/* Bit 31 : Connection */
+#define PDM_PSEL_CLK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define PDM_PSEL_CLK_CONNECT_Msk (0x1UL << PDM_PSEL_CLK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define PDM_PSEL_CLK_CONNECT_Connected (0UL) /*!< Connect */
+#define PDM_PSEL_CLK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define PDM_PSEL_CLK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define PDM_PSEL_CLK_PIN_Msk (0x1FUL << PDM_PSEL_CLK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: PDM_PSEL_DIN */
+/* Description: Pin number configuration for PDM DIN signal */
+
+/* Bit 31 : Connection */
+#define PDM_PSEL_DIN_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define PDM_PSEL_DIN_CONNECT_Msk (0x1UL << PDM_PSEL_DIN_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define PDM_PSEL_DIN_CONNECT_Connected (0UL) /*!< Connect */
+#define PDM_PSEL_DIN_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define PDM_PSEL_DIN_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define PDM_PSEL_DIN_PIN_Msk (0x1FUL << PDM_PSEL_DIN_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: PDM_SAMPLE_PTR */
+/* Description: RAM address pointer to write samples to with EasyDMA */
+
+/* Bits 31..0 : Address to write PDM samples to over DMA */
+#define PDM_SAMPLE_PTR_SAMPLEPTR_Pos (0UL) /*!< Position of SAMPLEPTR field. */
+#define PDM_SAMPLE_PTR_SAMPLEPTR_Msk (0xFFFFFFFFUL << PDM_SAMPLE_PTR_SAMPLEPTR_Pos) /*!< Bit mask of SAMPLEPTR field. */
+
+/* Register: PDM_SAMPLE_MAXCNT */
+/* Description: Number of samples to allocate memory for in EasyDMA mode */
+
+/* Bits 14..0 : Length of DMA RAM allocation in number of samples */
+#define PDM_SAMPLE_MAXCNT_BUFFSIZE_Pos (0UL) /*!< Position of BUFFSIZE field. */
+#define PDM_SAMPLE_MAXCNT_BUFFSIZE_Msk (0x7FFFUL << PDM_SAMPLE_MAXCNT_BUFFSIZE_Pos) /*!< Bit mask of BUFFSIZE field. */
+
+
+/* Peripheral: POWER */
+/* Description: Power control */
+
+/* Register: POWER_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 6 : Write '1' to Enable interrupt for SLEEPEXIT event */
+#define POWER_INTENSET_SLEEPEXIT_Pos (6UL) /*!< Position of SLEEPEXIT field. */
+#define POWER_INTENSET_SLEEPEXIT_Msk (0x1UL << POWER_INTENSET_SLEEPEXIT_Pos) /*!< Bit mask of SLEEPEXIT field. */
+#define POWER_INTENSET_SLEEPEXIT_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENSET_SLEEPEXIT_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENSET_SLEEPEXIT_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for SLEEPENTER event */
+#define POWER_INTENSET_SLEEPENTER_Pos (5UL) /*!< Position of SLEEPENTER field. */
+#define POWER_INTENSET_SLEEPENTER_Msk (0x1UL << POWER_INTENSET_SLEEPENTER_Pos) /*!< Bit mask of SLEEPENTER field. */
+#define POWER_INTENSET_SLEEPENTER_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENSET_SLEEPENTER_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENSET_SLEEPENTER_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for POFWARN event */
+#define POWER_INTENSET_POFWARN_Pos (2UL) /*!< Position of POFWARN field. */
+#define POWER_INTENSET_POFWARN_Msk (0x1UL << POWER_INTENSET_POFWARN_Pos) /*!< Bit mask of POFWARN field. */
+#define POWER_INTENSET_POFWARN_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENSET_POFWARN_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENSET_POFWARN_Set (1UL) /*!< Enable */
+
+/* Register: POWER_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 6 : Write '1' to Disable interrupt for SLEEPEXIT event */
+#define POWER_INTENCLR_SLEEPEXIT_Pos (6UL) /*!< Position of SLEEPEXIT field. */
+#define POWER_INTENCLR_SLEEPEXIT_Msk (0x1UL << POWER_INTENCLR_SLEEPEXIT_Pos) /*!< Bit mask of SLEEPEXIT field. */
+#define POWER_INTENCLR_SLEEPEXIT_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENCLR_SLEEPEXIT_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENCLR_SLEEPEXIT_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for SLEEPENTER event */
+#define POWER_INTENCLR_SLEEPENTER_Pos (5UL) /*!< Position of SLEEPENTER field. */
+#define POWER_INTENCLR_SLEEPENTER_Msk (0x1UL << POWER_INTENCLR_SLEEPENTER_Pos) /*!< Bit mask of SLEEPENTER field. */
+#define POWER_INTENCLR_SLEEPENTER_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENCLR_SLEEPENTER_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENCLR_SLEEPENTER_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for POFWARN event */
+#define POWER_INTENCLR_POFWARN_Pos (2UL) /*!< Position of POFWARN field. */
+#define POWER_INTENCLR_POFWARN_Msk (0x1UL << POWER_INTENCLR_POFWARN_Pos) /*!< Bit mask of POFWARN field. */
+#define POWER_INTENCLR_POFWARN_Disabled (0UL) /*!< Read: Disabled */
+#define POWER_INTENCLR_POFWARN_Enabled (1UL) /*!< Read: Enabled */
+#define POWER_INTENCLR_POFWARN_Clear (1UL) /*!< Disable */
+
+/* Register: POWER_RESETREAS */
+/* Description: Reset reason */
+
+/* Bit 19 : Reset due to wake up from System OFF mode by NFC field detect */
+#define POWER_RESETREAS_NFC_Pos (19UL) /*!< Position of NFC field. */
+#define POWER_RESETREAS_NFC_Msk (0x1UL << POWER_RESETREAS_NFC_Pos) /*!< Bit mask of NFC field. */
+#define POWER_RESETREAS_NFC_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_NFC_Detected (1UL) /*!< Detected */
+
+/* Bit 18 : Reset due to wake up from System OFF mode when wakeup is triggered from entering into debug interface mode */
+#define POWER_RESETREAS_DIF_Pos (18UL) /*!< Position of DIF field. */
+#define POWER_RESETREAS_DIF_Msk (0x1UL << POWER_RESETREAS_DIF_Pos) /*!< Bit mask of DIF field. */
+#define POWER_RESETREAS_DIF_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_DIF_Detected (1UL) /*!< Detected */
+
+/* Bit 17 : Reset due to wake up from System OFF mode when wakeup is triggered from ANADETECT signal from LPCOMP */
+#define POWER_RESETREAS_LPCOMP_Pos (17UL) /*!< Position of LPCOMP field. */
+#define POWER_RESETREAS_LPCOMP_Msk (0x1UL << POWER_RESETREAS_LPCOMP_Pos) /*!< Bit mask of LPCOMP field. */
+#define POWER_RESETREAS_LPCOMP_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_LPCOMP_Detected (1UL) /*!< Detected */
+
+/* Bit 16 : Reset due to wake up from System OFF mode when wakeup is triggered from DETECT signal from GPIO */
+#define POWER_RESETREAS_OFF_Pos (16UL) /*!< Position of OFF field. */
+#define POWER_RESETREAS_OFF_Msk (0x1UL << POWER_RESETREAS_OFF_Pos) /*!< Bit mask of OFF field. */
+#define POWER_RESETREAS_OFF_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_OFF_Detected (1UL) /*!< Detected */
+
+/* Bit 3 : Reset from CPU lock-up detected */
+#define POWER_RESETREAS_LOCKUP_Pos (3UL) /*!< Position of LOCKUP field. */
+#define POWER_RESETREAS_LOCKUP_Msk (0x1UL << POWER_RESETREAS_LOCKUP_Pos) /*!< Bit mask of LOCKUP field. */
+#define POWER_RESETREAS_LOCKUP_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_LOCKUP_Detected (1UL) /*!< Detected */
+
+/* Bit 2 : Reset from soft reset detected */
+#define POWER_RESETREAS_SREQ_Pos (2UL) /*!< Position of SREQ field. */
+#define POWER_RESETREAS_SREQ_Msk (0x1UL << POWER_RESETREAS_SREQ_Pos) /*!< Bit mask of SREQ field. */
+#define POWER_RESETREAS_SREQ_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_SREQ_Detected (1UL) /*!< Detected */
+
+/* Bit 1 : Reset from watchdog detected */
+#define POWER_RESETREAS_DOG_Pos (1UL) /*!< Position of DOG field. */
+#define POWER_RESETREAS_DOG_Msk (0x1UL << POWER_RESETREAS_DOG_Pos) /*!< Bit mask of DOG field. */
+#define POWER_RESETREAS_DOG_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_DOG_Detected (1UL) /*!< Detected */
+
+/* Bit 0 : Reset from pin-reset detected */
+#define POWER_RESETREAS_RESETPIN_Pos (0UL) /*!< Position of RESETPIN field. */
+#define POWER_RESETREAS_RESETPIN_Msk (0x1UL << POWER_RESETREAS_RESETPIN_Pos) /*!< Bit mask of RESETPIN field. */
+#define POWER_RESETREAS_RESETPIN_NotDetected (0UL) /*!< Not detected */
+#define POWER_RESETREAS_RESETPIN_Detected (1UL) /*!< Detected */
+
+/* Register: POWER_RAMSTATUS */
+/* Description: Deprecated register - RAM status register */
+
+/* Bit 3 : RAM block 3 is on or off/powering up */
+#define POWER_RAMSTATUS_RAMBLOCK3_Pos (3UL) /*!< Position of RAMBLOCK3 field. */
+#define POWER_RAMSTATUS_RAMBLOCK3_Msk (0x1UL << POWER_RAMSTATUS_RAMBLOCK3_Pos) /*!< Bit mask of RAMBLOCK3 field. */
+#define POWER_RAMSTATUS_RAMBLOCK3_Off (0UL) /*!< Off */
+#define POWER_RAMSTATUS_RAMBLOCK3_On (1UL) /*!< On */
+
+/* Bit 2 : RAM block 2 is on or off/powering up */
+#define POWER_RAMSTATUS_RAMBLOCK2_Pos (2UL) /*!< Position of RAMBLOCK2 field. */
+#define POWER_RAMSTATUS_RAMBLOCK2_Msk (0x1UL << POWER_RAMSTATUS_RAMBLOCK2_Pos) /*!< Bit mask of RAMBLOCK2 field. */
+#define POWER_RAMSTATUS_RAMBLOCK2_Off (0UL) /*!< Off */
+#define POWER_RAMSTATUS_RAMBLOCK2_On (1UL) /*!< On */
+
+/* Bit 1 : RAM block 1 is on or off/powering up */
+#define POWER_RAMSTATUS_RAMBLOCK1_Pos (1UL) /*!< Position of RAMBLOCK1 field. */
+#define POWER_RAMSTATUS_RAMBLOCK1_Msk (0x1UL << POWER_RAMSTATUS_RAMBLOCK1_Pos) /*!< Bit mask of RAMBLOCK1 field. */
+#define POWER_RAMSTATUS_RAMBLOCK1_Off (0UL) /*!< Off */
+#define POWER_RAMSTATUS_RAMBLOCK1_On (1UL) /*!< On */
+
+/* Bit 0 : RAM block 0 is on or off/powering up */
+#define POWER_RAMSTATUS_RAMBLOCK0_Pos (0UL) /*!< Position of RAMBLOCK0 field. */
+#define POWER_RAMSTATUS_RAMBLOCK0_Msk (0x1UL << POWER_RAMSTATUS_RAMBLOCK0_Pos) /*!< Bit mask of RAMBLOCK0 field. */
+#define POWER_RAMSTATUS_RAMBLOCK0_Off (0UL) /*!< Off */
+#define POWER_RAMSTATUS_RAMBLOCK0_On (1UL) /*!< On */
+
+/* Register: POWER_SYSTEMOFF */
+/* Description: System OFF register */
+
+/* Bit 0 : Enable System OFF mode */
+#define POWER_SYSTEMOFF_SYSTEMOFF_Pos (0UL) /*!< Position of SYSTEMOFF field. */
+#define POWER_SYSTEMOFF_SYSTEMOFF_Msk (0x1UL << POWER_SYSTEMOFF_SYSTEMOFF_Pos) /*!< Bit mask of SYSTEMOFF field. */
+#define POWER_SYSTEMOFF_SYSTEMOFF_Enter (1UL) /*!< Enable System OFF mode */
+
+/* Register: POWER_POFCON */
+/* Description: Power failure comparator configuration */
+
+/* Bits 4..1 : Power failure comparator threshold setting */
+#define POWER_POFCON_THRESHOLD_Pos (1UL) /*!< Position of THRESHOLD field. */
+#define POWER_POFCON_THRESHOLD_Msk (0xFUL << POWER_POFCON_THRESHOLD_Pos) /*!< Bit mask of THRESHOLD field. */
+#define POWER_POFCON_THRESHOLD_V17 (4UL) /*!< Set threshold to 1.7 V */
+#define POWER_POFCON_THRESHOLD_V18 (5UL) /*!< Set threshold to 1.8 V */
+#define POWER_POFCON_THRESHOLD_V19 (6UL) /*!< Set threshold to 1.9 V */
+#define POWER_POFCON_THRESHOLD_V20 (7UL) /*!< Set threshold to 2.0 V */
+#define POWER_POFCON_THRESHOLD_V21 (8UL) /*!< Set threshold to 2.1 V */
+#define POWER_POFCON_THRESHOLD_V22 (9UL) /*!< Set threshold to 2.2 V */
+#define POWER_POFCON_THRESHOLD_V23 (10UL) /*!< Set threshold to 2.3 V */
+#define POWER_POFCON_THRESHOLD_V24 (11UL) /*!< Set threshold to 2.4 V */
+#define POWER_POFCON_THRESHOLD_V25 (12UL) /*!< Set threshold to 2.5 V */
+#define POWER_POFCON_THRESHOLD_V26 (13UL) /*!< Set threshold to 2.6 V */
+#define POWER_POFCON_THRESHOLD_V27 (14UL) /*!< Set threshold to 2.7 V */
+#define POWER_POFCON_THRESHOLD_V28 (15UL) /*!< Set threshold to 2.8 V */
+
+/* Bit 0 : Enable or disable power failure comparator */
+#define POWER_POFCON_POF_Pos (0UL) /*!< Position of POF field. */
+#define POWER_POFCON_POF_Msk (0x1UL << POWER_POFCON_POF_Pos) /*!< Bit mask of POF field. */
+#define POWER_POFCON_POF_Disabled (0UL) /*!< Disable */
+#define POWER_POFCON_POF_Enabled (1UL) /*!< Enable */
+
+/* Register: POWER_GPREGRET */
+/* Description: General purpose retention register */
+
+/* Bits 7..0 : General purpose retention register */
+#define POWER_GPREGRET_GPREGRET_Pos (0UL) /*!< Position of GPREGRET field. */
+#define POWER_GPREGRET_GPREGRET_Msk (0xFFUL << POWER_GPREGRET_GPREGRET_Pos) /*!< Bit mask of GPREGRET field. */
+
+/* Register: POWER_GPREGRET2 */
+/* Description: General purpose retention register */
+
+/* Bits 7..0 : General purpose retention register */
+#define POWER_GPREGRET2_GPREGRET_Pos (0UL) /*!< Position of GPREGRET field. */
+#define POWER_GPREGRET2_GPREGRET_Msk (0xFFUL << POWER_GPREGRET2_GPREGRET_Pos) /*!< Bit mask of GPREGRET field. */
+
+/* Register: POWER_RAMON */
+/* Description: Deprecated register - RAM on/off register (this register is retained) */
+
+/* Bit 17 : Keep retention on RAM block 1 when RAM block is switched off */
+#define POWER_RAMON_OFFRAM1_Pos (17UL) /*!< Position of OFFRAM1 field. */
+#define POWER_RAMON_OFFRAM1_Msk (0x1UL << POWER_RAMON_OFFRAM1_Pos) /*!< Bit mask of OFFRAM1 field. */
+#define POWER_RAMON_OFFRAM1_RAM1Off (0UL) /*!< Off */
+#define POWER_RAMON_OFFRAM1_RAM1On (1UL) /*!< On */
+
+/* Bit 16 : Keep retention on RAM block 0 when RAM block is switched off */
+#define POWER_RAMON_OFFRAM0_Pos (16UL) /*!< Position of OFFRAM0 field. */
+#define POWER_RAMON_OFFRAM0_Msk (0x1UL << POWER_RAMON_OFFRAM0_Pos) /*!< Bit mask of OFFRAM0 field. */
+#define POWER_RAMON_OFFRAM0_RAM0Off (0UL) /*!< Off */
+#define POWER_RAMON_OFFRAM0_RAM0On (1UL) /*!< On */
+
+/* Bit 1 : Keep RAM block 1 on or off in system ON Mode */
+#define POWER_RAMON_ONRAM1_Pos (1UL) /*!< Position of ONRAM1 field. */
+#define POWER_RAMON_ONRAM1_Msk (0x1UL << POWER_RAMON_ONRAM1_Pos) /*!< Bit mask of ONRAM1 field. */
+#define POWER_RAMON_ONRAM1_RAM1Off (0UL) /*!< Off */
+#define POWER_RAMON_ONRAM1_RAM1On (1UL) /*!< On */
+
+/* Bit 0 : Keep RAM block 0 on or off in system ON Mode */
+#define POWER_RAMON_ONRAM0_Pos (0UL) /*!< Position of ONRAM0 field. */
+#define POWER_RAMON_ONRAM0_Msk (0x1UL << POWER_RAMON_ONRAM0_Pos) /*!< Bit mask of ONRAM0 field. */
+#define POWER_RAMON_ONRAM0_RAM0Off (0UL) /*!< Off */
+#define POWER_RAMON_ONRAM0_RAM0On (1UL) /*!< On */
+
+/* Register: POWER_RAMONB */
+/* Description: Deprecated register - RAM on/off register (this register is retained) */
+
+/* Bit 17 : Keep retention on RAM block 3 when RAM block is switched off */
+#define POWER_RAMONB_OFFRAM3_Pos (17UL) /*!< Position of OFFRAM3 field. */
+#define POWER_RAMONB_OFFRAM3_Msk (0x1UL << POWER_RAMONB_OFFRAM3_Pos) /*!< Bit mask of OFFRAM3 field. */
+#define POWER_RAMONB_OFFRAM3_RAM3Off (0UL) /*!< Off */
+#define POWER_RAMONB_OFFRAM3_RAM3On (1UL) /*!< On */
+
+/* Bit 16 : Keep retention on RAM block 2 when RAM block is switched off */
+#define POWER_RAMONB_OFFRAM2_Pos (16UL) /*!< Position of OFFRAM2 field. */
+#define POWER_RAMONB_OFFRAM2_Msk (0x1UL << POWER_RAMONB_OFFRAM2_Pos) /*!< Bit mask of OFFRAM2 field. */
+#define POWER_RAMONB_OFFRAM2_RAM2Off (0UL) /*!< Off */
+#define POWER_RAMONB_OFFRAM2_RAM2On (1UL) /*!< On */
+
+/* Bit 1 : Keep RAM block 3 on or off in system ON Mode */
+#define POWER_RAMONB_ONRAM3_Pos (1UL) /*!< Position of ONRAM3 field. */
+#define POWER_RAMONB_ONRAM3_Msk (0x1UL << POWER_RAMONB_ONRAM3_Pos) /*!< Bit mask of ONRAM3 field. */
+#define POWER_RAMONB_ONRAM3_RAM3Off (0UL) /*!< Off */
+#define POWER_RAMONB_ONRAM3_RAM3On (1UL) /*!< On */
+
+/* Bit 0 : Keep RAM block 2 on or off in system ON Mode */
+#define POWER_RAMONB_ONRAM2_Pos (0UL) /*!< Position of ONRAM2 field. */
+#define POWER_RAMONB_ONRAM2_Msk (0x1UL << POWER_RAMONB_ONRAM2_Pos) /*!< Bit mask of ONRAM2 field. */
+#define POWER_RAMONB_ONRAM2_RAM2Off (0UL) /*!< Off */
+#define POWER_RAMONB_ONRAM2_RAM2On (1UL) /*!< On */
+
+/* Register: POWER_DCDCEN */
+/* Description: DC/DC enable register */
+
+/* Bit 0 : Enable or disable DC/DC converter */
+#define POWER_DCDCEN_DCDCEN_Pos (0UL) /*!< Position of DCDCEN field. */
+#define POWER_DCDCEN_DCDCEN_Msk (0x1UL << POWER_DCDCEN_DCDCEN_Pos) /*!< Bit mask of DCDCEN field. */
+#define POWER_DCDCEN_DCDCEN_Disabled (0UL) /*!< Disable */
+#define POWER_DCDCEN_DCDCEN_Enabled (1UL) /*!< Enable */
+
+/* Register: POWER_RAM_POWER */
+/* Description: Description cluster[0]: RAM0 power control register */
+
+/* Bit 17 : Keep retention on RAM section S1 when RAM section is in OFF */
+#define POWER_RAM_POWER_S1RETENTION_Pos (17UL) /*!< Position of S1RETENTION field. */
+#define POWER_RAM_POWER_S1RETENTION_Msk (0x1UL << POWER_RAM_POWER_S1RETENTION_Pos) /*!< Bit mask of S1RETENTION field. */
+#define POWER_RAM_POWER_S1RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S1RETENTION_On (1UL) /*!< On */
+
+/* Bit 16 : Keep retention on RAM section S0 when RAM section is in OFF */
+#define POWER_RAM_POWER_S0RETENTION_Pos (16UL) /*!< Position of S0RETENTION field. */
+#define POWER_RAM_POWER_S0RETENTION_Msk (0x1UL << POWER_RAM_POWER_S0RETENTION_Pos) /*!< Bit mask of S0RETENTION field. */
+#define POWER_RAM_POWER_S0RETENTION_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S0RETENTION_On (1UL) /*!< On */
+
+/* Bit 1 : Keep RAM section S1 ON or OFF in System ON mode. */
+#define POWER_RAM_POWER_S1POWER_Pos (1UL) /*!< Position of S1POWER field. */
+#define POWER_RAM_POWER_S1POWER_Msk (0x1UL << POWER_RAM_POWER_S1POWER_Pos) /*!< Bit mask of S1POWER field. */
+#define POWER_RAM_POWER_S1POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S1POWER_On (1UL) /*!< On */
+
+/* Bit 0 : Keep RAM section S0 ON or OFF in System ON mode. */
+#define POWER_RAM_POWER_S0POWER_Pos (0UL) /*!< Position of S0POWER field. */
+#define POWER_RAM_POWER_S0POWER_Msk (0x1UL << POWER_RAM_POWER_S0POWER_Pos) /*!< Bit mask of S0POWER field. */
+#define POWER_RAM_POWER_S0POWER_Off (0UL) /*!< Off */
+#define POWER_RAM_POWER_S0POWER_On (1UL) /*!< On */
+
+/* Register: POWER_RAM_POWERSET */
+/* Description: Description cluster[0]: RAM0 power control set register */
+
+/* Bit 17 : Keep retention on RAM section S1 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S1RETENTION_Pos (17UL) /*!< Position of S1RETENTION field. */
+#define POWER_RAM_POWERSET_S1RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S1RETENTION_Pos) /*!< Bit mask of S1RETENTION field. */
+#define POWER_RAM_POWERSET_S1RETENTION_On (1UL) /*!< On */
+
+/* Bit 16 : Keep retention on RAM section S0 when RAM section is switched off */
+#define POWER_RAM_POWERSET_S0RETENTION_Pos (16UL) /*!< Position of S0RETENTION field. */
+#define POWER_RAM_POWERSET_S0RETENTION_Msk (0x1UL << POWER_RAM_POWERSET_S0RETENTION_Pos) /*!< Bit mask of S0RETENTION field. */
+#define POWER_RAM_POWERSET_S0RETENTION_On (1UL) /*!< On */
+
+/* Bit 1 : Keep RAM section S1 of RAM0 on or off in System ON mode */
+#define POWER_RAM_POWERSET_S1POWER_Pos (1UL) /*!< Position of S1POWER field. */
+#define POWER_RAM_POWERSET_S1POWER_Msk (0x1UL << POWER_RAM_POWERSET_S1POWER_Pos) /*!< Bit mask of S1POWER field. */
+#define POWER_RAM_POWERSET_S1POWER_On (1UL) /*!< On */
+
+/* Bit 0 : Keep RAM section S0 of RAM0 on or off in System ON mode */
+#define POWER_RAM_POWERSET_S0POWER_Pos (0UL) /*!< Position of S0POWER field. */
+#define POWER_RAM_POWERSET_S0POWER_Msk (0x1UL << POWER_RAM_POWERSET_S0POWER_Pos) /*!< Bit mask of S0POWER field. */
+#define POWER_RAM_POWERSET_S0POWER_On (1UL) /*!< On */
+
+/* Register: POWER_RAM_POWERCLR */
+/* Description: Description cluster[0]: RAM0 power control clear register */
+
+/* Bit 17 : Keep retention on RAM section S1 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S1RETENTION_Pos (17UL) /*!< Position of S1RETENTION field. */
+#define POWER_RAM_POWERCLR_S1RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S1RETENTION_Pos) /*!< Bit mask of S1RETENTION field. */
+#define POWER_RAM_POWERCLR_S1RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 16 : Keep retention on RAM section S0 when RAM section is switched off */
+#define POWER_RAM_POWERCLR_S0RETENTION_Pos (16UL) /*!< Position of S0RETENTION field. */
+#define POWER_RAM_POWERCLR_S0RETENTION_Msk (0x1UL << POWER_RAM_POWERCLR_S0RETENTION_Pos) /*!< Bit mask of S0RETENTION field. */
+#define POWER_RAM_POWERCLR_S0RETENTION_Off (1UL) /*!< Off */
+
+/* Bit 1 : Keep RAM section S1 of RAM0 on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S1POWER_Pos (1UL) /*!< Position of S1POWER field. */
+#define POWER_RAM_POWERCLR_S1POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S1POWER_Pos) /*!< Bit mask of S1POWER field. */
+#define POWER_RAM_POWERCLR_S1POWER_Off (1UL) /*!< Off */
+
+/* Bit 0 : Keep RAM section S0 of RAM0 on or off in System ON mode */
+#define POWER_RAM_POWERCLR_S0POWER_Pos (0UL) /*!< Position of S0POWER field. */
+#define POWER_RAM_POWERCLR_S0POWER_Msk (0x1UL << POWER_RAM_POWERCLR_S0POWER_Pos) /*!< Bit mask of S0POWER field. */
+#define POWER_RAM_POWERCLR_S0POWER_Off (1UL) /*!< Off */
+
+
+/* Peripheral: PPI */
+/* Description: Programmable Peripheral Interconnect */
+
+/* Register: PPI_CHEN */
+/* Description: Channel enable register */
+
+/* Bit 31 : Enable or disable channel 31 */
+#define PPI_CHEN_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHEN_CH31_Msk (0x1UL << PPI_CHEN_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHEN_CH31_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH31_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 30 : Enable or disable channel 30 */
+#define PPI_CHEN_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHEN_CH30_Msk (0x1UL << PPI_CHEN_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHEN_CH30_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH30_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 29 : Enable or disable channel 29 */
+#define PPI_CHEN_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHEN_CH29_Msk (0x1UL << PPI_CHEN_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHEN_CH29_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH29_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 28 : Enable or disable channel 28 */
+#define PPI_CHEN_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHEN_CH28_Msk (0x1UL << PPI_CHEN_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHEN_CH28_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH28_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 27 : Enable or disable channel 27 */
+#define PPI_CHEN_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHEN_CH27_Msk (0x1UL << PPI_CHEN_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHEN_CH27_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH27_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 26 : Enable or disable channel 26 */
+#define PPI_CHEN_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHEN_CH26_Msk (0x1UL << PPI_CHEN_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHEN_CH26_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH26_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 25 : Enable or disable channel 25 */
+#define PPI_CHEN_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHEN_CH25_Msk (0x1UL << PPI_CHEN_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHEN_CH25_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH25_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 24 : Enable or disable channel 24 */
+#define PPI_CHEN_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHEN_CH24_Msk (0x1UL << PPI_CHEN_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHEN_CH24_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH24_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 23 : Enable or disable channel 23 */
+#define PPI_CHEN_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHEN_CH23_Msk (0x1UL << PPI_CHEN_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHEN_CH23_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH23_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 22 : Enable or disable channel 22 */
+#define PPI_CHEN_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHEN_CH22_Msk (0x1UL << PPI_CHEN_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHEN_CH22_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH22_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 21 : Enable or disable channel 21 */
+#define PPI_CHEN_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHEN_CH21_Msk (0x1UL << PPI_CHEN_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHEN_CH21_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH21_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 20 : Enable or disable channel 20 */
+#define PPI_CHEN_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHEN_CH20_Msk (0x1UL << PPI_CHEN_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHEN_CH20_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH20_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 19 : Enable or disable channel 19 */
+#define PPI_CHEN_CH19_Pos (19UL) /*!< Position of CH19 field. */
+#define PPI_CHEN_CH19_Msk (0x1UL << PPI_CHEN_CH19_Pos) /*!< Bit mask of CH19 field. */
+#define PPI_CHEN_CH19_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH19_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 18 : Enable or disable channel 18 */
+#define PPI_CHEN_CH18_Pos (18UL) /*!< Position of CH18 field. */
+#define PPI_CHEN_CH18_Msk (0x1UL << PPI_CHEN_CH18_Pos) /*!< Bit mask of CH18 field. */
+#define PPI_CHEN_CH18_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH18_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 17 : Enable or disable channel 17 */
+#define PPI_CHEN_CH17_Pos (17UL) /*!< Position of CH17 field. */
+#define PPI_CHEN_CH17_Msk (0x1UL << PPI_CHEN_CH17_Pos) /*!< Bit mask of CH17 field. */
+#define PPI_CHEN_CH17_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH17_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 16 : Enable or disable channel 16 */
+#define PPI_CHEN_CH16_Pos (16UL) /*!< Position of CH16 field. */
+#define PPI_CHEN_CH16_Msk (0x1UL << PPI_CHEN_CH16_Pos) /*!< Bit mask of CH16 field. */
+#define PPI_CHEN_CH16_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH16_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 15 : Enable or disable channel 15 */
+#define PPI_CHEN_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHEN_CH15_Msk (0x1UL << PPI_CHEN_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHEN_CH15_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH15_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 14 : Enable or disable channel 14 */
+#define PPI_CHEN_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHEN_CH14_Msk (0x1UL << PPI_CHEN_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHEN_CH14_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH14_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 13 : Enable or disable channel 13 */
+#define PPI_CHEN_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHEN_CH13_Msk (0x1UL << PPI_CHEN_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHEN_CH13_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH13_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 12 : Enable or disable channel 12 */
+#define PPI_CHEN_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHEN_CH12_Msk (0x1UL << PPI_CHEN_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHEN_CH12_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH12_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 11 : Enable or disable channel 11 */
+#define PPI_CHEN_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHEN_CH11_Msk (0x1UL << PPI_CHEN_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHEN_CH11_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH11_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 10 : Enable or disable channel 10 */
+#define PPI_CHEN_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHEN_CH10_Msk (0x1UL << PPI_CHEN_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHEN_CH10_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH10_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 9 : Enable or disable channel 9 */
+#define PPI_CHEN_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHEN_CH9_Msk (0x1UL << PPI_CHEN_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHEN_CH9_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH9_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 8 : Enable or disable channel 8 */
+#define PPI_CHEN_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHEN_CH8_Msk (0x1UL << PPI_CHEN_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHEN_CH8_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH8_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 7 : Enable or disable channel 7 */
+#define PPI_CHEN_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHEN_CH7_Msk (0x1UL << PPI_CHEN_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHEN_CH7_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH7_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 6 : Enable or disable channel 6 */
+#define PPI_CHEN_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHEN_CH6_Msk (0x1UL << PPI_CHEN_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHEN_CH6_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH6_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 5 : Enable or disable channel 5 */
+#define PPI_CHEN_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHEN_CH5_Msk (0x1UL << PPI_CHEN_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHEN_CH5_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH5_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 4 : Enable or disable channel 4 */
+#define PPI_CHEN_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHEN_CH4_Msk (0x1UL << PPI_CHEN_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHEN_CH4_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH4_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 3 : Enable or disable channel 3 */
+#define PPI_CHEN_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHEN_CH3_Msk (0x1UL << PPI_CHEN_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHEN_CH3_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH3_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 2 : Enable or disable channel 2 */
+#define PPI_CHEN_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHEN_CH2_Msk (0x1UL << PPI_CHEN_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHEN_CH2_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH2_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 1 : Enable or disable channel 1 */
+#define PPI_CHEN_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHEN_CH1_Msk (0x1UL << PPI_CHEN_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHEN_CH1_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH1_Enabled (1UL) /*!< Enable channel */
+
+/* Bit 0 : Enable or disable channel 0 */
+#define PPI_CHEN_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHEN_CH0_Msk (0x1UL << PPI_CHEN_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHEN_CH0_Disabled (0UL) /*!< Disable channel */
+#define PPI_CHEN_CH0_Enabled (1UL) /*!< Enable channel */
+
+/* Register: PPI_CHENSET */
+/* Description: Channel enable set register */
+
+/* Bit 31 : Channel 31 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHENSET_CH31_Msk (0x1UL << PPI_CHENSET_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHENSET_CH31_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH31_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH31_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 30 : Channel 30 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHENSET_CH30_Msk (0x1UL << PPI_CHENSET_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHENSET_CH30_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH30_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH30_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 29 : Channel 29 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHENSET_CH29_Msk (0x1UL << PPI_CHENSET_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHENSET_CH29_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH29_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH29_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 28 : Channel 28 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHENSET_CH28_Msk (0x1UL << PPI_CHENSET_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHENSET_CH28_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH28_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH28_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 27 : Channel 27 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHENSET_CH27_Msk (0x1UL << PPI_CHENSET_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHENSET_CH27_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH27_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH27_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 26 : Channel 26 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHENSET_CH26_Msk (0x1UL << PPI_CHENSET_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHENSET_CH26_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH26_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH26_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 25 : Channel 25 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHENSET_CH25_Msk (0x1UL << PPI_CHENSET_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHENSET_CH25_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH25_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH25_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 24 : Channel 24 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHENSET_CH24_Msk (0x1UL << PPI_CHENSET_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHENSET_CH24_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH24_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH24_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 23 : Channel 23 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHENSET_CH23_Msk (0x1UL << PPI_CHENSET_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHENSET_CH23_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH23_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH23_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 22 : Channel 22 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHENSET_CH22_Msk (0x1UL << PPI_CHENSET_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHENSET_CH22_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH22_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH22_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 21 : Channel 21 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHENSET_CH21_Msk (0x1UL << PPI_CHENSET_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHENSET_CH21_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH21_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH21_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 20 : Channel 20 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHENSET_CH20_Msk (0x1UL << PPI_CHENSET_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHENSET_CH20_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH20_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH20_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 19 : Channel 19 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH19_Pos (19UL) /*!< Position of CH19 field. */
+#define PPI_CHENSET_CH19_Msk (0x1UL << PPI_CHENSET_CH19_Pos) /*!< Bit mask of CH19 field. */
+#define PPI_CHENSET_CH19_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH19_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH19_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 18 : Channel 18 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH18_Pos (18UL) /*!< Position of CH18 field. */
+#define PPI_CHENSET_CH18_Msk (0x1UL << PPI_CHENSET_CH18_Pos) /*!< Bit mask of CH18 field. */
+#define PPI_CHENSET_CH18_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH18_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH18_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 17 : Channel 17 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH17_Pos (17UL) /*!< Position of CH17 field. */
+#define PPI_CHENSET_CH17_Msk (0x1UL << PPI_CHENSET_CH17_Pos) /*!< Bit mask of CH17 field. */
+#define PPI_CHENSET_CH17_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH17_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH17_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 16 : Channel 16 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH16_Pos (16UL) /*!< Position of CH16 field. */
+#define PPI_CHENSET_CH16_Msk (0x1UL << PPI_CHENSET_CH16_Pos) /*!< Bit mask of CH16 field. */
+#define PPI_CHENSET_CH16_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH16_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH16_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 15 : Channel 15 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHENSET_CH15_Msk (0x1UL << PPI_CHENSET_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHENSET_CH15_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH15_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH15_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 14 : Channel 14 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHENSET_CH14_Msk (0x1UL << PPI_CHENSET_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHENSET_CH14_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH14_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH14_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 13 : Channel 13 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHENSET_CH13_Msk (0x1UL << PPI_CHENSET_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHENSET_CH13_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH13_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH13_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 12 : Channel 12 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHENSET_CH12_Msk (0x1UL << PPI_CHENSET_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHENSET_CH12_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH12_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH12_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 11 : Channel 11 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHENSET_CH11_Msk (0x1UL << PPI_CHENSET_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHENSET_CH11_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH11_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH11_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 10 : Channel 10 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHENSET_CH10_Msk (0x1UL << PPI_CHENSET_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHENSET_CH10_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH10_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH10_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 9 : Channel 9 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHENSET_CH9_Msk (0x1UL << PPI_CHENSET_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHENSET_CH9_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH9_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH9_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 8 : Channel 8 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHENSET_CH8_Msk (0x1UL << PPI_CHENSET_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHENSET_CH8_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH8_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH8_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 7 : Channel 7 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHENSET_CH7_Msk (0x1UL << PPI_CHENSET_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHENSET_CH7_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH7_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH7_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 6 : Channel 6 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHENSET_CH6_Msk (0x1UL << PPI_CHENSET_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHENSET_CH6_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH6_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH6_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 5 : Channel 5 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHENSET_CH5_Msk (0x1UL << PPI_CHENSET_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHENSET_CH5_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH5_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH5_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 4 : Channel 4 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHENSET_CH4_Msk (0x1UL << PPI_CHENSET_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHENSET_CH4_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH4_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH4_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 3 : Channel 3 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHENSET_CH3_Msk (0x1UL << PPI_CHENSET_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHENSET_CH3_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH3_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH3_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 2 : Channel 2 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHENSET_CH2_Msk (0x1UL << PPI_CHENSET_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHENSET_CH2_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH2_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH2_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 1 : Channel 1 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHENSET_CH1_Msk (0x1UL << PPI_CHENSET_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHENSET_CH1_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH1_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH1_Set (1UL) /*!< Write: Enable channel */
+
+/* Bit 0 : Channel 0 enable set register. Writing '0' has no effect */
+#define PPI_CHENSET_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHENSET_CH0_Msk (0x1UL << PPI_CHENSET_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHENSET_CH0_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENSET_CH0_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENSET_CH0_Set (1UL) /*!< Write: Enable channel */
+
+/* Register: PPI_CHENCLR */
+/* Description: Channel enable clear register */
+
+/* Bit 31 : Channel 31 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHENCLR_CH31_Msk (0x1UL << PPI_CHENCLR_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHENCLR_CH31_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH31_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH31_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 30 : Channel 30 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHENCLR_CH30_Msk (0x1UL << PPI_CHENCLR_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHENCLR_CH30_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH30_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH30_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 29 : Channel 29 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHENCLR_CH29_Msk (0x1UL << PPI_CHENCLR_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHENCLR_CH29_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH29_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH29_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 28 : Channel 28 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHENCLR_CH28_Msk (0x1UL << PPI_CHENCLR_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHENCLR_CH28_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH28_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH28_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 27 : Channel 27 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHENCLR_CH27_Msk (0x1UL << PPI_CHENCLR_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHENCLR_CH27_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH27_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH27_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 26 : Channel 26 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHENCLR_CH26_Msk (0x1UL << PPI_CHENCLR_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHENCLR_CH26_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH26_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH26_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 25 : Channel 25 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHENCLR_CH25_Msk (0x1UL << PPI_CHENCLR_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHENCLR_CH25_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH25_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH25_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 24 : Channel 24 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHENCLR_CH24_Msk (0x1UL << PPI_CHENCLR_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHENCLR_CH24_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH24_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH24_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 23 : Channel 23 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHENCLR_CH23_Msk (0x1UL << PPI_CHENCLR_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHENCLR_CH23_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH23_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH23_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 22 : Channel 22 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHENCLR_CH22_Msk (0x1UL << PPI_CHENCLR_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHENCLR_CH22_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH22_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH22_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 21 : Channel 21 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHENCLR_CH21_Msk (0x1UL << PPI_CHENCLR_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHENCLR_CH21_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH21_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH21_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 20 : Channel 20 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHENCLR_CH20_Msk (0x1UL << PPI_CHENCLR_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHENCLR_CH20_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH20_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH20_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 19 : Channel 19 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH19_Pos (19UL) /*!< Position of CH19 field. */
+#define PPI_CHENCLR_CH19_Msk (0x1UL << PPI_CHENCLR_CH19_Pos) /*!< Bit mask of CH19 field. */
+#define PPI_CHENCLR_CH19_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH19_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH19_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 18 : Channel 18 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH18_Pos (18UL) /*!< Position of CH18 field. */
+#define PPI_CHENCLR_CH18_Msk (0x1UL << PPI_CHENCLR_CH18_Pos) /*!< Bit mask of CH18 field. */
+#define PPI_CHENCLR_CH18_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH18_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH18_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 17 : Channel 17 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH17_Pos (17UL) /*!< Position of CH17 field. */
+#define PPI_CHENCLR_CH17_Msk (0x1UL << PPI_CHENCLR_CH17_Pos) /*!< Bit mask of CH17 field. */
+#define PPI_CHENCLR_CH17_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH17_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH17_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 16 : Channel 16 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH16_Pos (16UL) /*!< Position of CH16 field. */
+#define PPI_CHENCLR_CH16_Msk (0x1UL << PPI_CHENCLR_CH16_Pos) /*!< Bit mask of CH16 field. */
+#define PPI_CHENCLR_CH16_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH16_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH16_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 15 : Channel 15 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHENCLR_CH15_Msk (0x1UL << PPI_CHENCLR_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHENCLR_CH15_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH15_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH15_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 14 : Channel 14 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHENCLR_CH14_Msk (0x1UL << PPI_CHENCLR_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHENCLR_CH14_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH14_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH14_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 13 : Channel 13 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHENCLR_CH13_Msk (0x1UL << PPI_CHENCLR_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHENCLR_CH13_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH13_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH13_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 12 : Channel 12 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHENCLR_CH12_Msk (0x1UL << PPI_CHENCLR_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHENCLR_CH12_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH12_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH12_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 11 : Channel 11 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHENCLR_CH11_Msk (0x1UL << PPI_CHENCLR_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHENCLR_CH11_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH11_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH11_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 10 : Channel 10 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHENCLR_CH10_Msk (0x1UL << PPI_CHENCLR_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHENCLR_CH10_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH10_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH10_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 9 : Channel 9 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHENCLR_CH9_Msk (0x1UL << PPI_CHENCLR_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHENCLR_CH9_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH9_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH9_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 8 : Channel 8 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHENCLR_CH8_Msk (0x1UL << PPI_CHENCLR_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHENCLR_CH8_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH8_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH8_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 7 : Channel 7 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHENCLR_CH7_Msk (0x1UL << PPI_CHENCLR_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHENCLR_CH7_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH7_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH7_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 6 : Channel 6 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHENCLR_CH6_Msk (0x1UL << PPI_CHENCLR_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHENCLR_CH6_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH6_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH6_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 5 : Channel 5 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHENCLR_CH5_Msk (0x1UL << PPI_CHENCLR_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHENCLR_CH5_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH5_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH5_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 4 : Channel 4 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHENCLR_CH4_Msk (0x1UL << PPI_CHENCLR_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHENCLR_CH4_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH4_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH4_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 3 : Channel 3 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHENCLR_CH3_Msk (0x1UL << PPI_CHENCLR_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHENCLR_CH3_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH3_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH3_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 2 : Channel 2 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHENCLR_CH2_Msk (0x1UL << PPI_CHENCLR_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHENCLR_CH2_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH2_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH2_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 1 : Channel 1 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHENCLR_CH1_Msk (0x1UL << PPI_CHENCLR_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHENCLR_CH1_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH1_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH1_Clear (1UL) /*!< Write: disable channel */
+
+/* Bit 0 : Channel 0 enable clear register. Writing '0' has no effect */
+#define PPI_CHENCLR_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHENCLR_CH0_Msk (0x1UL << PPI_CHENCLR_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHENCLR_CH0_Disabled (0UL) /*!< Read: channel disabled */
+#define PPI_CHENCLR_CH0_Enabled (1UL) /*!< Read: channel enabled */
+#define PPI_CHENCLR_CH0_Clear (1UL) /*!< Write: disable channel */
+
+/* Register: PPI_CH_EEP */
+/* Description: Description cluster[0]: Channel 0 event end-point */
+
+/* Bits 31..0 : Pointer to event register. Accepts only addresses to registers from the Event group. */
+#define PPI_CH_EEP_EEP_Pos (0UL) /*!< Position of EEP field. */
+#define PPI_CH_EEP_EEP_Msk (0xFFFFFFFFUL << PPI_CH_EEP_EEP_Pos) /*!< Bit mask of EEP field. */
+
+/* Register: PPI_CH_TEP */
+/* Description: Description cluster[0]: Channel 0 task end-point */
+
+/* Bits 31..0 : Pointer to task register. Accepts only addresses to registers from the Task group. */
+#define PPI_CH_TEP_TEP_Pos (0UL) /*!< Position of TEP field. */
+#define PPI_CH_TEP_TEP_Msk (0xFFFFFFFFUL << PPI_CH_TEP_TEP_Pos) /*!< Bit mask of TEP field. */
+
+/* Register: PPI_CHG */
+/* Description: Description collection[0]: Channel group 0 */
+
+/* Bit 31 : Include or exclude channel 31 */
+#define PPI_CHG_CH31_Pos (31UL) /*!< Position of CH31 field. */
+#define PPI_CHG_CH31_Msk (0x1UL << PPI_CHG_CH31_Pos) /*!< Bit mask of CH31 field. */
+#define PPI_CHG_CH31_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH31_Included (1UL) /*!< Include */
+
+/* Bit 30 : Include or exclude channel 30 */
+#define PPI_CHG_CH30_Pos (30UL) /*!< Position of CH30 field. */
+#define PPI_CHG_CH30_Msk (0x1UL << PPI_CHG_CH30_Pos) /*!< Bit mask of CH30 field. */
+#define PPI_CHG_CH30_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH30_Included (1UL) /*!< Include */
+
+/* Bit 29 : Include or exclude channel 29 */
+#define PPI_CHG_CH29_Pos (29UL) /*!< Position of CH29 field. */
+#define PPI_CHG_CH29_Msk (0x1UL << PPI_CHG_CH29_Pos) /*!< Bit mask of CH29 field. */
+#define PPI_CHG_CH29_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH29_Included (1UL) /*!< Include */
+
+/* Bit 28 : Include or exclude channel 28 */
+#define PPI_CHG_CH28_Pos (28UL) /*!< Position of CH28 field. */
+#define PPI_CHG_CH28_Msk (0x1UL << PPI_CHG_CH28_Pos) /*!< Bit mask of CH28 field. */
+#define PPI_CHG_CH28_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH28_Included (1UL) /*!< Include */
+
+/* Bit 27 : Include or exclude channel 27 */
+#define PPI_CHG_CH27_Pos (27UL) /*!< Position of CH27 field. */
+#define PPI_CHG_CH27_Msk (0x1UL << PPI_CHG_CH27_Pos) /*!< Bit mask of CH27 field. */
+#define PPI_CHG_CH27_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH27_Included (1UL) /*!< Include */
+
+/* Bit 26 : Include or exclude channel 26 */
+#define PPI_CHG_CH26_Pos (26UL) /*!< Position of CH26 field. */
+#define PPI_CHG_CH26_Msk (0x1UL << PPI_CHG_CH26_Pos) /*!< Bit mask of CH26 field. */
+#define PPI_CHG_CH26_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH26_Included (1UL) /*!< Include */
+
+/* Bit 25 : Include or exclude channel 25 */
+#define PPI_CHG_CH25_Pos (25UL) /*!< Position of CH25 field. */
+#define PPI_CHG_CH25_Msk (0x1UL << PPI_CHG_CH25_Pos) /*!< Bit mask of CH25 field. */
+#define PPI_CHG_CH25_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH25_Included (1UL) /*!< Include */
+
+/* Bit 24 : Include or exclude channel 24 */
+#define PPI_CHG_CH24_Pos (24UL) /*!< Position of CH24 field. */
+#define PPI_CHG_CH24_Msk (0x1UL << PPI_CHG_CH24_Pos) /*!< Bit mask of CH24 field. */
+#define PPI_CHG_CH24_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH24_Included (1UL) /*!< Include */
+
+/* Bit 23 : Include or exclude channel 23 */
+#define PPI_CHG_CH23_Pos (23UL) /*!< Position of CH23 field. */
+#define PPI_CHG_CH23_Msk (0x1UL << PPI_CHG_CH23_Pos) /*!< Bit mask of CH23 field. */
+#define PPI_CHG_CH23_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH23_Included (1UL) /*!< Include */
+
+/* Bit 22 : Include or exclude channel 22 */
+#define PPI_CHG_CH22_Pos (22UL) /*!< Position of CH22 field. */
+#define PPI_CHG_CH22_Msk (0x1UL << PPI_CHG_CH22_Pos) /*!< Bit mask of CH22 field. */
+#define PPI_CHG_CH22_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH22_Included (1UL) /*!< Include */
+
+/* Bit 21 : Include or exclude channel 21 */
+#define PPI_CHG_CH21_Pos (21UL) /*!< Position of CH21 field. */
+#define PPI_CHG_CH21_Msk (0x1UL << PPI_CHG_CH21_Pos) /*!< Bit mask of CH21 field. */
+#define PPI_CHG_CH21_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH21_Included (1UL) /*!< Include */
+
+/* Bit 20 : Include or exclude channel 20 */
+#define PPI_CHG_CH20_Pos (20UL) /*!< Position of CH20 field. */
+#define PPI_CHG_CH20_Msk (0x1UL << PPI_CHG_CH20_Pos) /*!< Bit mask of CH20 field. */
+#define PPI_CHG_CH20_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH20_Included (1UL) /*!< Include */
+
+/* Bit 19 : Include or exclude channel 19 */
+#define PPI_CHG_CH19_Pos (19UL) /*!< Position of CH19 field. */
+#define PPI_CHG_CH19_Msk (0x1UL << PPI_CHG_CH19_Pos) /*!< Bit mask of CH19 field. */
+#define PPI_CHG_CH19_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH19_Included (1UL) /*!< Include */
+
+/* Bit 18 : Include or exclude channel 18 */
+#define PPI_CHG_CH18_Pos (18UL) /*!< Position of CH18 field. */
+#define PPI_CHG_CH18_Msk (0x1UL << PPI_CHG_CH18_Pos) /*!< Bit mask of CH18 field. */
+#define PPI_CHG_CH18_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH18_Included (1UL) /*!< Include */
+
+/* Bit 17 : Include or exclude channel 17 */
+#define PPI_CHG_CH17_Pos (17UL) /*!< Position of CH17 field. */
+#define PPI_CHG_CH17_Msk (0x1UL << PPI_CHG_CH17_Pos) /*!< Bit mask of CH17 field. */
+#define PPI_CHG_CH17_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH17_Included (1UL) /*!< Include */
+
+/* Bit 16 : Include or exclude channel 16 */
+#define PPI_CHG_CH16_Pos (16UL) /*!< Position of CH16 field. */
+#define PPI_CHG_CH16_Msk (0x1UL << PPI_CHG_CH16_Pos) /*!< Bit mask of CH16 field. */
+#define PPI_CHG_CH16_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH16_Included (1UL) /*!< Include */
+
+/* Bit 15 : Include or exclude channel 15 */
+#define PPI_CHG_CH15_Pos (15UL) /*!< Position of CH15 field. */
+#define PPI_CHG_CH15_Msk (0x1UL << PPI_CHG_CH15_Pos) /*!< Bit mask of CH15 field. */
+#define PPI_CHG_CH15_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH15_Included (1UL) /*!< Include */
+
+/* Bit 14 : Include or exclude channel 14 */
+#define PPI_CHG_CH14_Pos (14UL) /*!< Position of CH14 field. */
+#define PPI_CHG_CH14_Msk (0x1UL << PPI_CHG_CH14_Pos) /*!< Bit mask of CH14 field. */
+#define PPI_CHG_CH14_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH14_Included (1UL) /*!< Include */
+
+/* Bit 13 : Include or exclude channel 13 */
+#define PPI_CHG_CH13_Pos (13UL) /*!< Position of CH13 field. */
+#define PPI_CHG_CH13_Msk (0x1UL << PPI_CHG_CH13_Pos) /*!< Bit mask of CH13 field. */
+#define PPI_CHG_CH13_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH13_Included (1UL) /*!< Include */
+
+/* Bit 12 : Include or exclude channel 12 */
+#define PPI_CHG_CH12_Pos (12UL) /*!< Position of CH12 field. */
+#define PPI_CHG_CH12_Msk (0x1UL << PPI_CHG_CH12_Pos) /*!< Bit mask of CH12 field. */
+#define PPI_CHG_CH12_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH12_Included (1UL) /*!< Include */
+
+/* Bit 11 : Include or exclude channel 11 */
+#define PPI_CHG_CH11_Pos (11UL) /*!< Position of CH11 field. */
+#define PPI_CHG_CH11_Msk (0x1UL << PPI_CHG_CH11_Pos) /*!< Bit mask of CH11 field. */
+#define PPI_CHG_CH11_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH11_Included (1UL) /*!< Include */
+
+/* Bit 10 : Include or exclude channel 10 */
+#define PPI_CHG_CH10_Pos (10UL) /*!< Position of CH10 field. */
+#define PPI_CHG_CH10_Msk (0x1UL << PPI_CHG_CH10_Pos) /*!< Bit mask of CH10 field. */
+#define PPI_CHG_CH10_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH10_Included (1UL) /*!< Include */
+
+/* Bit 9 : Include or exclude channel 9 */
+#define PPI_CHG_CH9_Pos (9UL) /*!< Position of CH9 field. */
+#define PPI_CHG_CH9_Msk (0x1UL << PPI_CHG_CH9_Pos) /*!< Bit mask of CH9 field. */
+#define PPI_CHG_CH9_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH9_Included (1UL) /*!< Include */
+
+/* Bit 8 : Include or exclude channel 8 */
+#define PPI_CHG_CH8_Pos (8UL) /*!< Position of CH8 field. */
+#define PPI_CHG_CH8_Msk (0x1UL << PPI_CHG_CH8_Pos) /*!< Bit mask of CH8 field. */
+#define PPI_CHG_CH8_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH8_Included (1UL) /*!< Include */
+
+/* Bit 7 : Include or exclude channel 7 */
+#define PPI_CHG_CH7_Pos (7UL) /*!< Position of CH7 field. */
+#define PPI_CHG_CH7_Msk (0x1UL << PPI_CHG_CH7_Pos) /*!< Bit mask of CH7 field. */
+#define PPI_CHG_CH7_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH7_Included (1UL) /*!< Include */
+
+/* Bit 6 : Include or exclude channel 6 */
+#define PPI_CHG_CH6_Pos (6UL) /*!< Position of CH6 field. */
+#define PPI_CHG_CH6_Msk (0x1UL << PPI_CHG_CH6_Pos) /*!< Bit mask of CH6 field. */
+#define PPI_CHG_CH6_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH6_Included (1UL) /*!< Include */
+
+/* Bit 5 : Include or exclude channel 5 */
+#define PPI_CHG_CH5_Pos (5UL) /*!< Position of CH5 field. */
+#define PPI_CHG_CH5_Msk (0x1UL << PPI_CHG_CH5_Pos) /*!< Bit mask of CH5 field. */
+#define PPI_CHG_CH5_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH5_Included (1UL) /*!< Include */
+
+/* Bit 4 : Include or exclude channel 4 */
+#define PPI_CHG_CH4_Pos (4UL) /*!< Position of CH4 field. */
+#define PPI_CHG_CH4_Msk (0x1UL << PPI_CHG_CH4_Pos) /*!< Bit mask of CH4 field. */
+#define PPI_CHG_CH4_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH4_Included (1UL) /*!< Include */
+
+/* Bit 3 : Include or exclude channel 3 */
+#define PPI_CHG_CH3_Pos (3UL) /*!< Position of CH3 field. */
+#define PPI_CHG_CH3_Msk (0x1UL << PPI_CHG_CH3_Pos) /*!< Bit mask of CH3 field. */
+#define PPI_CHG_CH3_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH3_Included (1UL) /*!< Include */
+
+/* Bit 2 : Include or exclude channel 2 */
+#define PPI_CHG_CH2_Pos (2UL) /*!< Position of CH2 field. */
+#define PPI_CHG_CH2_Msk (0x1UL << PPI_CHG_CH2_Pos) /*!< Bit mask of CH2 field. */
+#define PPI_CHG_CH2_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH2_Included (1UL) /*!< Include */
+
+/* Bit 1 : Include or exclude channel 1 */
+#define PPI_CHG_CH1_Pos (1UL) /*!< Position of CH1 field. */
+#define PPI_CHG_CH1_Msk (0x1UL << PPI_CHG_CH1_Pos) /*!< Bit mask of CH1 field. */
+#define PPI_CHG_CH1_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH1_Included (1UL) /*!< Include */
+
+/* Bit 0 : Include or exclude channel 0 */
+#define PPI_CHG_CH0_Pos (0UL) /*!< Position of CH0 field. */
+#define PPI_CHG_CH0_Msk (0x1UL << PPI_CHG_CH0_Pos) /*!< Bit mask of CH0 field. */
+#define PPI_CHG_CH0_Excluded (0UL) /*!< Exclude */
+#define PPI_CHG_CH0_Included (1UL) /*!< Include */
+
+/* Register: PPI_FORK_TEP */
+/* Description: Description cluster[0]: Channel 0 task end-point */
+
+/* Bits 31..0 : Pointer to task register */
+#define PPI_FORK_TEP_TEP_Pos (0UL) /*!< Position of TEP field. */
+#define PPI_FORK_TEP_TEP_Msk (0xFFFFFFFFUL << PPI_FORK_TEP_TEP_Pos) /*!< Bit mask of TEP field. */
+
+
+/* Peripheral: PWM */
+/* Description: Pulse Width Modulation Unit 0 */
+
+/* Register: PWM_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 4 : Shortcut between LOOPSDONE event and STOP task */
+#define PWM_SHORTS_LOOPSDONE_STOP_Pos (4UL) /*!< Position of LOOPSDONE_STOP field. */
+#define PWM_SHORTS_LOOPSDONE_STOP_Msk (0x1UL << PWM_SHORTS_LOOPSDONE_STOP_Pos) /*!< Bit mask of LOOPSDONE_STOP field. */
+#define PWM_SHORTS_LOOPSDONE_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_LOOPSDONE_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between LOOPSDONE event and SEQSTART[1] task */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART1_Pos (3UL) /*!< Position of LOOPSDONE_SEQSTART1 field. */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART1_Msk (0x1UL << PWM_SHORTS_LOOPSDONE_SEQSTART1_Pos) /*!< Bit mask of LOOPSDONE_SEQSTART1 field. */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART1_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART1_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between LOOPSDONE event and SEQSTART[0] task */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART0_Pos (2UL) /*!< Position of LOOPSDONE_SEQSTART0 field. */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART0_Msk (0x1UL << PWM_SHORTS_LOOPSDONE_SEQSTART0_Pos) /*!< Bit mask of LOOPSDONE_SEQSTART0 field. */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART0_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_LOOPSDONE_SEQSTART0_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between SEQEND[1] event and STOP task */
+#define PWM_SHORTS_SEQEND1_STOP_Pos (1UL) /*!< Position of SEQEND1_STOP field. */
+#define PWM_SHORTS_SEQEND1_STOP_Msk (0x1UL << PWM_SHORTS_SEQEND1_STOP_Pos) /*!< Bit mask of SEQEND1_STOP field. */
+#define PWM_SHORTS_SEQEND1_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_SEQEND1_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between SEQEND[0] event and STOP task */
+#define PWM_SHORTS_SEQEND0_STOP_Pos (0UL) /*!< Position of SEQEND0_STOP field. */
+#define PWM_SHORTS_SEQEND0_STOP_Msk (0x1UL << PWM_SHORTS_SEQEND0_STOP_Pos) /*!< Bit mask of SEQEND0_STOP field. */
+#define PWM_SHORTS_SEQEND0_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define PWM_SHORTS_SEQEND0_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: PWM_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 7 : Enable or disable interrupt for LOOPSDONE event */
+#define PWM_INTEN_LOOPSDONE_Pos (7UL) /*!< Position of LOOPSDONE field. */
+#define PWM_INTEN_LOOPSDONE_Msk (0x1UL << PWM_INTEN_LOOPSDONE_Pos) /*!< Bit mask of LOOPSDONE field. */
+#define PWM_INTEN_LOOPSDONE_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_LOOPSDONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for PWMPERIODEND event */
+#define PWM_INTEN_PWMPERIODEND_Pos (6UL) /*!< Position of PWMPERIODEND field. */
+#define PWM_INTEN_PWMPERIODEND_Msk (0x1UL << PWM_INTEN_PWMPERIODEND_Pos) /*!< Bit mask of PWMPERIODEND field. */
+#define PWM_INTEN_PWMPERIODEND_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_PWMPERIODEND_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for SEQEND[1] event */
+#define PWM_INTEN_SEQEND1_Pos (5UL) /*!< Position of SEQEND1 field. */
+#define PWM_INTEN_SEQEND1_Msk (0x1UL << PWM_INTEN_SEQEND1_Pos) /*!< Bit mask of SEQEND1 field. */
+#define PWM_INTEN_SEQEND1_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_SEQEND1_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for SEQEND[0] event */
+#define PWM_INTEN_SEQEND0_Pos (4UL) /*!< Position of SEQEND0 field. */
+#define PWM_INTEN_SEQEND0_Msk (0x1UL << PWM_INTEN_SEQEND0_Pos) /*!< Bit mask of SEQEND0 field. */
+#define PWM_INTEN_SEQEND0_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_SEQEND0_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for SEQSTARTED[1] event */
+#define PWM_INTEN_SEQSTARTED1_Pos (3UL) /*!< Position of SEQSTARTED1 field. */
+#define PWM_INTEN_SEQSTARTED1_Msk (0x1UL << PWM_INTEN_SEQSTARTED1_Pos) /*!< Bit mask of SEQSTARTED1 field. */
+#define PWM_INTEN_SEQSTARTED1_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_SEQSTARTED1_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for SEQSTARTED[0] event */
+#define PWM_INTEN_SEQSTARTED0_Pos (2UL) /*!< Position of SEQSTARTED0 field. */
+#define PWM_INTEN_SEQSTARTED0_Msk (0x1UL << PWM_INTEN_SEQSTARTED0_Pos) /*!< Bit mask of SEQSTARTED0 field. */
+#define PWM_INTEN_SEQSTARTED0_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_SEQSTARTED0_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STOPPED event */
+#define PWM_INTEN_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PWM_INTEN_STOPPED_Msk (0x1UL << PWM_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PWM_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define PWM_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Register: PWM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 7 : Write '1' to Enable interrupt for LOOPSDONE event */
+#define PWM_INTENSET_LOOPSDONE_Pos (7UL) /*!< Position of LOOPSDONE field. */
+#define PWM_INTENSET_LOOPSDONE_Msk (0x1UL << PWM_INTENSET_LOOPSDONE_Pos) /*!< Bit mask of LOOPSDONE field. */
+#define PWM_INTENSET_LOOPSDONE_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_LOOPSDONE_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_LOOPSDONE_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for PWMPERIODEND event */
+#define PWM_INTENSET_PWMPERIODEND_Pos (6UL) /*!< Position of PWMPERIODEND field. */
+#define PWM_INTENSET_PWMPERIODEND_Msk (0x1UL << PWM_INTENSET_PWMPERIODEND_Pos) /*!< Bit mask of PWMPERIODEND field. */
+#define PWM_INTENSET_PWMPERIODEND_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_PWMPERIODEND_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_PWMPERIODEND_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for SEQEND[1] event */
+#define PWM_INTENSET_SEQEND1_Pos (5UL) /*!< Position of SEQEND1 field. */
+#define PWM_INTENSET_SEQEND1_Msk (0x1UL << PWM_INTENSET_SEQEND1_Pos) /*!< Bit mask of SEQEND1 field. */
+#define PWM_INTENSET_SEQEND1_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_SEQEND1_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_SEQEND1_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for SEQEND[0] event */
+#define PWM_INTENSET_SEQEND0_Pos (4UL) /*!< Position of SEQEND0 field. */
+#define PWM_INTENSET_SEQEND0_Msk (0x1UL << PWM_INTENSET_SEQEND0_Pos) /*!< Bit mask of SEQEND0 field. */
+#define PWM_INTENSET_SEQEND0_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_SEQEND0_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_SEQEND0_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for SEQSTARTED[1] event */
+#define PWM_INTENSET_SEQSTARTED1_Pos (3UL) /*!< Position of SEQSTARTED1 field. */
+#define PWM_INTENSET_SEQSTARTED1_Msk (0x1UL << PWM_INTENSET_SEQSTARTED1_Pos) /*!< Bit mask of SEQSTARTED1 field. */
+#define PWM_INTENSET_SEQSTARTED1_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_SEQSTARTED1_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_SEQSTARTED1_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for SEQSTARTED[0] event */
+#define PWM_INTENSET_SEQSTARTED0_Pos (2UL) /*!< Position of SEQSTARTED0 field. */
+#define PWM_INTENSET_SEQSTARTED0_Msk (0x1UL << PWM_INTENSET_SEQSTARTED0_Pos) /*!< Bit mask of SEQSTARTED0 field. */
+#define PWM_INTENSET_SEQSTARTED0_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_SEQSTARTED0_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_SEQSTARTED0_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for STOPPED event */
+#define PWM_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PWM_INTENSET_STOPPED_Msk (0x1UL << PWM_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PWM_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: PWM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 7 : Write '1' to Disable interrupt for LOOPSDONE event */
+#define PWM_INTENCLR_LOOPSDONE_Pos (7UL) /*!< Position of LOOPSDONE field. */
+#define PWM_INTENCLR_LOOPSDONE_Msk (0x1UL << PWM_INTENCLR_LOOPSDONE_Pos) /*!< Bit mask of LOOPSDONE field. */
+#define PWM_INTENCLR_LOOPSDONE_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_LOOPSDONE_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_LOOPSDONE_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for PWMPERIODEND event */
+#define PWM_INTENCLR_PWMPERIODEND_Pos (6UL) /*!< Position of PWMPERIODEND field. */
+#define PWM_INTENCLR_PWMPERIODEND_Msk (0x1UL << PWM_INTENCLR_PWMPERIODEND_Pos) /*!< Bit mask of PWMPERIODEND field. */
+#define PWM_INTENCLR_PWMPERIODEND_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_PWMPERIODEND_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_PWMPERIODEND_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for SEQEND[1] event */
+#define PWM_INTENCLR_SEQEND1_Pos (5UL) /*!< Position of SEQEND1 field. */
+#define PWM_INTENCLR_SEQEND1_Msk (0x1UL << PWM_INTENCLR_SEQEND1_Pos) /*!< Bit mask of SEQEND1 field. */
+#define PWM_INTENCLR_SEQEND1_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_SEQEND1_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_SEQEND1_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for SEQEND[0] event */
+#define PWM_INTENCLR_SEQEND0_Pos (4UL) /*!< Position of SEQEND0 field. */
+#define PWM_INTENCLR_SEQEND0_Msk (0x1UL << PWM_INTENCLR_SEQEND0_Pos) /*!< Bit mask of SEQEND0 field. */
+#define PWM_INTENCLR_SEQEND0_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_SEQEND0_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_SEQEND0_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for SEQSTARTED[1] event */
+#define PWM_INTENCLR_SEQSTARTED1_Pos (3UL) /*!< Position of SEQSTARTED1 field. */
+#define PWM_INTENCLR_SEQSTARTED1_Msk (0x1UL << PWM_INTENCLR_SEQSTARTED1_Pos) /*!< Bit mask of SEQSTARTED1 field. */
+#define PWM_INTENCLR_SEQSTARTED1_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_SEQSTARTED1_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_SEQSTARTED1_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for SEQSTARTED[0] event */
+#define PWM_INTENCLR_SEQSTARTED0_Pos (2UL) /*!< Position of SEQSTARTED0 field. */
+#define PWM_INTENCLR_SEQSTARTED0_Msk (0x1UL << PWM_INTENCLR_SEQSTARTED0_Pos) /*!< Bit mask of SEQSTARTED0 field. */
+#define PWM_INTENCLR_SEQSTARTED0_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_SEQSTARTED0_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_SEQSTARTED0_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for STOPPED event */
+#define PWM_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define PWM_INTENCLR_STOPPED_Msk (0x1UL << PWM_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define PWM_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define PWM_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define PWM_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: PWM_ENABLE */
+/* Description: PWM module enable register */
+
+/* Bit 0 : Enable or disable PWM module */
+#define PWM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define PWM_ENABLE_ENABLE_Msk (0x1UL << PWM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define PWM_ENABLE_ENABLE_Disabled (0UL) /*!< Disabled */
+#define PWM_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: PWM_MODE */
+/* Description: Selects operating mode of the wave counter */
+
+/* Bit 0 : Selects up or up and down as wave counter mode */
+#define PWM_MODE_UPDOWN_Pos (0UL) /*!< Position of UPDOWN field. */
+#define PWM_MODE_UPDOWN_Msk (0x1UL << PWM_MODE_UPDOWN_Pos) /*!< Bit mask of UPDOWN field. */
+#define PWM_MODE_UPDOWN_Up (0UL) /*!< Up counter - edge aligned PWM duty-cycle */
+#define PWM_MODE_UPDOWN_UpAndDown (1UL) /*!< Up and down counter - center aligned PWM duty cycle */
+
+/* Register: PWM_COUNTERTOP */
+/* Description: Value up to which the pulse generator counter counts */
+
+/* Bits 14..0 : Value up to which the pulse generator counter counts. This register is ignored when DECODER.MODE=WaveForm and only values from RAM will be used. */
+#define PWM_COUNTERTOP_COUNTERTOP_Pos (0UL) /*!< Position of COUNTERTOP field. */
+#define PWM_COUNTERTOP_COUNTERTOP_Msk (0x7FFFUL << PWM_COUNTERTOP_COUNTERTOP_Pos) /*!< Bit mask of COUNTERTOP field. */
+
+/* Register: PWM_PRESCALER */
+/* Description: Configuration for PWM_CLK */
+
+/* Bits 2..0 : Pre-scaler of PWM_CLK */
+#define PWM_PRESCALER_PRESCALER_Pos (0UL) /*!< Position of PRESCALER field. */
+#define PWM_PRESCALER_PRESCALER_Msk (0x7UL << PWM_PRESCALER_PRESCALER_Pos) /*!< Bit mask of PRESCALER field. */
+#define PWM_PRESCALER_PRESCALER_DIV_1 (0UL) /*!< Divide by 1 (16MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_2 (1UL) /*!< Divide by 2 ( 8MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_4 (2UL) /*!< Divide by 4 ( 4MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_8 (3UL) /*!< Divide by 8 ( 2MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_16 (4UL) /*!< Divide by 16 ( 1MHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_32 (5UL) /*!< Divide by 32 ( 500kHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_64 (6UL) /*!< Divide by 64 ( 250kHz) */
+#define PWM_PRESCALER_PRESCALER_DIV_128 (7UL) /*!< Divide by 128 ( 125kHz) */
+
+/* Register: PWM_DECODER */
+/* Description: Configuration of the decoder */
+
+/* Bit 8 : Selects source for advancing the active sequence */
+#define PWM_DECODER_MODE_Pos (8UL) /*!< Position of MODE field. */
+#define PWM_DECODER_MODE_Msk (0x1UL << PWM_DECODER_MODE_Pos) /*!< Bit mask of MODE field. */
+#define PWM_DECODER_MODE_RefreshCount (0UL) /*!< SEQ[n].REFRESH is used to determine loading internal compare registers */
+#define PWM_DECODER_MODE_NextStep (1UL) /*!< NEXTSTEP task causes a new value to be loaded to internal compare registers */
+
+/* Bits 1..0 : How a sequence is read from RAM and spread to the compare register */
+#define PWM_DECODER_LOAD_Pos (0UL) /*!< Position of LOAD field. */
+#define PWM_DECODER_LOAD_Msk (0x3UL << PWM_DECODER_LOAD_Pos) /*!< Bit mask of LOAD field. */
+#define PWM_DECODER_LOAD_Common (0UL) /*!< 1st half word (16-bit) used in all PWM channels 0..3 */
+#define PWM_DECODER_LOAD_Grouped (1UL) /*!< 1st half word (16-bit) used in channel 0..1; 2nd word in channel 2..3 */
+#define PWM_DECODER_LOAD_Individual (2UL) /*!< 1st half word (16-bit) in ch.0; 2nd in ch.1; ...; 4th in ch.3 */
+#define PWM_DECODER_LOAD_WaveForm (3UL) /*!< 1st half word (16-bit) in ch.0; 2nd in ch.1; ...; 4th in COUNTERTOP */
+
+/* Register: PWM_LOOP */
+/* Description: Amount of playback of a loop */
+
+/* Bits 15..0 : Amount of playback of pattern cycles */
+#define PWM_LOOP_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define PWM_LOOP_CNT_Msk (0xFFFFUL << PWM_LOOP_CNT_Pos) /*!< Bit mask of CNT field. */
+#define PWM_LOOP_CNT_Disabled (0UL) /*!< Looping disabled (stop at the end of the sequence) */
+
+/* Register: PWM_SEQ_PTR */
+/* Description: Description cluster[0]: Beginning address in Data RAM of this sequence */
+
+/* Bits 31..0 : Beginning address in Data RAM of this sequence */
+#define PWM_SEQ_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define PWM_SEQ_PTR_PTR_Msk (0xFFFFFFFFUL << PWM_SEQ_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: PWM_SEQ_CNT */
+/* Description: Description cluster[0]: Amount of values (duty cycles) in this sequence */
+
+/* Bits 14..0 : Amount of values (duty cycles) in this sequence */
+#define PWM_SEQ_CNT_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define PWM_SEQ_CNT_CNT_Msk (0x7FFFUL << PWM_SEQ_CNT_CNT_Pos) /*!< Bit mask of CNT field. */
+#define PWM_SEQ_CNT_CNT_Disabled (0UL) /*!< Sequence is disabled, and shall not be started as it is empty */
+
+/* Register: PWM_SEQ_REFRESH */
+/* Description: Description cluster[0]: Amount of additional PWM periods between samples loaded into compare register */
+
+/* Bits 23..0 : Amount of additional PWM periods between samples loaded into compare register (load every REFRESH.CNT+1 PWM periods) */
+#define PWM_SEQ_REFRESH_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define PWM_SEQ_REFRESH_CNT_Msk (0xFFFFFFUL << PWM_SEQ_REFRESH_CNT_Pos) /*!< Bit mask of CNT field. */
+#define PWM_SEQ_REFRESH_CNT_Continuous (0UL) /*!< Update every PWM period */
+
+/* Register: PWM_SEQ_ENDDELAY */
+/* Description: Description cluster[0]: Time added after the sequence */
+
+/* Bits 23..0 : Time added after the sequence in PWM periods */
+#define PWM_SEQ_ENDDELAY_CNT_Pos (0UL) /*!< Position of CNT field. */
+#define PWM_SEQ_ENDDELAY_CNT_Msk (0xFFFFFFUL << PWM_SEQ_ENDDELAY_CNT_Pos) /*!< Bit mask of CNT field. */
+
+/* Register: PWM_PSEL_OUT */
+/* Description: Description collection[0]: Output pin select for PWM channel 0 */
+
+/* Bit 31 : Connection */
+#define PWM_PSEL_OUT_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define PWM_PSEL_OUT_CONNECT_Msk (0x1UL << PWM_PSEL_OUT_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define PWM_PSEL_OUT_CONNECT_Connected (0UL) /*!< Connect */
+#define PWM_PSEL_OUT_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define PWM_PSEL_OUT_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define PWM_PSEL_OUT_PIN_Msk (0x1FUL << PWM_PSEL_OUT_PIN_Pos) /*!< Bit mask of PIN field. */
+
+
+/* Peripheral: QDEC */
+/* Description: Quadrature Decoder */
+
+/* Register: QDEC_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 6 : Shortcut between SAMPLERDY event and READCLRACC task */
+#define QDEC_SHORTS_SAMPLERDY_READCLRACC_Pos (6UL) /*!< Position of SAMPLERDY_READCLRACC field. */
+#define QDEC_SHORTS_SAMPLERDY_READCLRACC_Msk (0x1UL << QDEC_SHORTS_SAMPLERDY_READCLRACC_Pos) /*!< Bit mask of SAMPLERDY_READCLRACC field. */
+#define QDEC_SHORTS_SAMPLERDY_READCLRACC_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_SAMPLERDY_READCLRACC_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 5 : Shortcut between DBLRDY event and STOP task */
+#define QDEC_SHORTS_DBLRDY_STOP_Pos (5UL) /*!< Position of DBLRDY_STOP field. */
+#define QDEC_SHORTS_DBLRDY_STOP_Msk (0x1UL << QDEC_SHORTS_DBLRDY_STOP_Pos) /*!< Bit mask of DBLRDY_STOP field. */
+#define QDEC_SHORTS_DBLRDY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_DBLRDY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 4 : Shortcut between DBLRDY event and RDCLRDBL task */
+#define QDEC_SHORTS_DBLRDY_RDCLRDBL_Pos (4UL) /*!< Position of DBLRDY_RDCLRDBL field. */
+#define QDEC_SHORTS_DBLRDY_RDCLRDBL_Msk (0x1UL << QDEC_SHORTS_DBLRDY_RDCLRDBL_Pos) /*!< Bit mask of DBLRDY_RDCLRDBL field. */
+#define QDEC_SHORTS_DBLRDY_RDCLRDBL_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_DBLRDY_RDCLRDBL_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between REPORTRDY event and STOP task */
+#define QDEC_SHORTS_REPORTRDY_STOP_Pos (3UL) /*!< Position of REPORTRDY_STOP field. */
+#define QDEC_SHORTS_REPORTRDY_STOP_Msk (0x1UL << QDEC_SHORTS_REPORTRDY_STOP_Pos) /*!< Bit mask of REPORTRDY_STOP field. */
+#define QDEC_SHORTS_REPORTRDY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_REPORTRDY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between REPORTRDY event and RDCLRACC task */
+#define QDEC_SHORTS_REPORTRDY_RDCLRACC_Pos (2UL) /*!< Position of REPORTRDY_RDCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_RDCLRACC_Msk (0x1UL << QDEC_SHORTS_REPORTRDY_RDCLRACC_Pos) /*!< Bit mask of REPORTRDY_RDCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_RDCLRACC_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_REPORTRDY_RDCLRACC_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between SAMPLERDY event and STOP task */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Pos (1UL) /*!< Position of SAMPLERDY_STOP field. */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Msk (0x1UL << QDEC_SHORTS_SAMPLERDY_STOP_Pos) /*!< Bit mask of SAMPLERDY_STOP field. */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_SAMPLERDY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between REPORTRDY event and READCLRACC task */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Pos (0UL) /*!< Position of REPORTRDY_READCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Msk (0x1UL << QDEC_SHORTS_REPORTRDY_READCLRACC_Pos) /*!< Bit mask of REPORTRDY_READCLRACC field. */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Disabled (0UL) /*!< Disable shortcut */
+#define QDEC_SHORTS_REPORTRDY_READCLRACC_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: QDEC_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 4 : Write '1' to Enable interrupt for STOPPED event */
+#define QDEC_INTENSET_STOPPED_Pos (4UL) /*!< Position of STOPPED field. */
+#define QDEC_INTENSET_STOPPED_Msk (0x1UL << QDEC_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define QDEC_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for DBLRDY event */
+#define QDEC_INTENSET_DBLRDY_Pos (3UL) /*!< Position of DBLRDY field. */
+#define QDEC_INTENSET_DBLRDY_Msk (0x1UL << QDEC_INTENSET_DBLRDY_Pos) /*!< Bit mask of DBLRDY field. */
+#define QDEC_INTENSET_DBLRDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_DBLRDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_DBLRDY_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for ACCOF event */
+#define QDEC_INTENSET_ACCOF_Pos (2UL) /*!< Position of ACCOF field. */
+#define QDEC_INTENSET_ACCOF_Msk (0x1UL << QDEC_INTENSET_ACCOF_Pos) /*!< Bit mask of ACCOF field. */
+#define QDEC_INTENSET_ACCOF_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_ACCOF_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_ACCOF_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for REPORTRDY event */
+#define QDEC_INTENSET_REPORTRDY_Pos (1UL) /*!< Position of REPORTRDY field. */
+#define QDEC_INTENSET_REPORTRDY_Msk (0x1UL << QDEC_INTENSET_REPORTRDY_Pos) /*!< Bit mask of REPORTRDY field. */
+#define QDEC_INTENSET_REPORTRDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_REPORTRDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_REPORTRDY_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for SAMPLERDY event */
+#define QDEC_INTENSET_SAMPLERDY_Pos (0UL) /*!< Position of SAMPLERDY field. */
+#define QDEC_INTENSET_SAMPLERDY_Msk (0x1UL << QDEC_INTENSET_SAMPLERDY_Pos) /*!< Bit mask of SAMPLERDY field. */
+#define QDEC_INTENSET_SAMPLERDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENSET_SAMPLERDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENSET_SAMPLERDY_Set (1UL) /*!< Enable */
+
+/* Register: QDEC_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 4 : Write '1' to Disable interrupt for STOPPED event */
+#define QDEC_INTENCLR_STOPPED_Pos (4UL) /*!< Position of STOPPED field. */
+#define QDEC_INTENCLR_STOPPED_Msk (0x1UL << QDEC_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define QDEC_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for DBLRDY event */
+#define QDEC_INTENCLR_DBLRDY_Pos (3UL) /*!< Position of DBLRDY field. */
+#define QDEC_INTENCLR_DBLRDY_Msk (0x1UL << QDEC_INTENCLR_DBLRDY_Pos) /*!< Bit mask of DBLRDY field. */
+#define QDEC_INTENCLR_DBLRDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_DBLRDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_DBLRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for ACCOF event */
+#define QDEC_INTENCLR_ACCOF_Pos (2UL) /*!< Position of ACCOF field. */
+#define QDEC_INTENCLR_ACCOF_Msk (0x1UL << QDEC_INTENCLR_ACCOF_Pos) /*!< Bit mask of ACCOF field. */
+#define QDEC_INTENCLR_ACCOF_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_ACCOF_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_ACCOF_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for REPORTRDY event */
+#define QDEC_INTENCLR_REPORTRDY_Pos (1UL) /*!< Position of REPORTRDY field. */
+#define QDEC_INTENCLR_REPORTRDY_Msk (0x1UL << QDEC_INTENCLR_REPORTRDY_Pos) /*!< Bit mask of REPORTRDY field. */
+#define QDEC_INTENCLR_REPORTRDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_REPORTRDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_REPORTRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for SAMPLERDY event */
+#define QDEC_INTENCLR_SAMPLERDY_Pos (0UL) /*!< Position of SAMPLERDY field. */
+#define QDEC_INTENCLR_SAMPLERDY_Msk (0x1UL << QDEC_INTENCLR_SAMPLERDY_Pos) /*!< Bit mask of SAMPLERDY field. */
+#define QDEC_INTENCLR_SAMPLERDY_Disabled (0UL) /*!< Read: Disabled */
+#define QDEC_INTENCLR_SAMPLERDY_Enabled (1UL) /*!< Read: Enabled */
+#define QDEC_INTENCLR_SAMPLERDY_Clear (1UL) /*!< Disable */
+
+/* Register: QDEC_ENABLE */
+/* Description: Enable the quadrature decoder */
+
+/* Bit 0 : Enable or disable the quadrature decoder */
+#define QDEC_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define QDEC_ENABLE_ENABLE_Msk (0x1UL << QDEC_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define QDEC_ENABLE_ENABLE_Disabled (0UL) /*!< Disable */
+#define QDEC_ENABLE_ENABLE_Enabled (1UL) /*!< Enable */
+
+/* Register: QDEC_LEDPOL */
+/* Description: LED output pin polarity */
+
+/* Bit 0 : LED output pin polarity */
+#define QDEC_LEDPOL_LEDPOL_Pos (0UL) /*!< Position of LEDPOL field. */
+#define QDEC_LEDPOL_LEDPOL_Msk (0x1UL << QDEC_LEDPOL_LEDPOL_Pos) /*!< Bit mask of LEDPOL field. */
+#define QDEC_LEDPOL_LEDPOL_ActiveLow (0UL) /*!< Led active on output pin low */
+#define QDEC_LEDPOL_LEDPOL_ActiveHigh (1UL) /*!< Led active on output pin high */
+
+/* Register: QDEC_SAMPLEPER */
+/* Description: Sample period */
+
+/* Bits 3..0 : Sample period. The SAMPLE register will be updated for every new sample */
+#define QDEC_SAMPLEPER_SAMPLEPER_Pos (0UL) /*!< Position of SAMPLEPER field. */
+#define QDEC_SAMPLEPER_SAMPLEPER_Msk (0xFUL << QDEC_SAMPLEPER_SAMPLEPER_Pos) /*!< Bit mask of SAMPLEPER field. */
+#define QDEC_SAMPLEPER_SAMPLEPER_128us (0UL) /*!< 128 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_256us (1UL) /*!< 256 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_512us (2UL) /*!< 512 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_1024us (3UL) /*!< 1024 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_2048us (4UL) /*!< 2048 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_4096us (5UL) /*!< 4096 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_8192us (6UL) /*!< 8192 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_16384us (7UL) /*!< 16384 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_32ms (8UL) /*!< 32768 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_65ms (9UL) /*!< 65536 us */
+#define QDEC_SAMPLEPER_SAMPLEPER_131ms (10UL) /*!< 131072 us */
+
+/* Register: QDEC_SAMPLE */
+/* Description: Motion sample value */
+
+/* Bits 31..0 : Last motion sample */
+#define QDEC_SAMPLE_SAMPLE_Pos (0UL) /*!< Position of SAMPLE field. */
+#define QDEC_SAMPLE_SAMPLE_Msk (0xFFFFFFFFUL << QDEC_SAMPLE_SAMPLE_Pos) /*!< Bit mask of SAMPLE field. */
+
+/* Register: QDEC_REPORTPER */
+/* Description: Number of samples to be taken before REPORTRDY and DBLRDY events can be generated */
+
+/* Bits 3..0 : Specifies the number of samples to be accumulated in the ACC register before the REPORTRDY and DBLRDY events can be generated */
+#define QDEC_REPORTPER_REPORTPER_Pos (0UL) /*!< Position of REPORTPER field. */
+#define QDEC_REPORTPER_REPORTPER_Msk (0xFUL << QDEC_REPORTPER_REPORTPER_Pos) /*!< Bit mask of REPORTPER field. */
+#define QDEC_REPORTPER_REPORTPER_10Smpl (0UL) /*!< 10 samples / report */
+#define QDEC_REPORTPER_REPORTPER_40Smpl (1UL) /*!< 40 samples / report */
+#define QDEC_REPORTPER_REPORTPER_80Smpl (2UL) /*!< 80 samples / report */
+#define QDEC_REPORTPER_REPORTPER_120Smpl (3UL) /*!< 120 samples / report */
+#define QDEC_REPORTPER_REPORTPER_160Smpl (4UL) /*!< 160 samples / report */
+#define QDEC_REPORTPER_REPORTPER_200Smpl (5UL) /*!< 200 samples / report */
+#define QDEC_REPORTPER_REPORTPER_240Smpl (6UL) /*!< 240 samples / report */
+#define QDEC_REPORTPER_REPORTPER_280Smpl (7UL) /*!< 280 samples / report */
+#define QDEC_REPORTPER_REPORTPER_1Smpl (8UL) /*!< 1 sample / report */
+
+/* Register: QDEC_ACC */
+/* Description: Register accumulating the valid transitions */
+
+/* Bits 31..0 : Register accumulating all valid samples (not double transition) read from the SAMPLE register */
+#define QDEC_ACC_ACC_Pos (0UL) /*!< Position of ACC field. */
+#define QDEC_ACC_ACC_Msk (0xFFFFFFFFUL << QDEC_ACC_ACC_Pos) /*!< Bit mask of ACC field. */
+
+/* Register: QDEC_ACCREAD */
+/* Description: Snapshot of the ACC register, updated by the READCLRACC or RDCLRACC task */
+
+/* Bits 31..0 : Snapshot of the ACC register. */
+#define QDEC_ACCREAD_ACCREAD_Pos (0UL) /*!< Position of ACCREAD field. */
+#define QDEC_ACCREAD_ACCREAD_Msk (0xFFFFFFFFUL << QDEC_ACCREAD_ACCREAD_Pos) /*!< Bit mask of ACCREAD field. */
+
+/* Register: QDEC_PSEL_LED */
+/* Description: Pin select for LED signal */
+
+/* Bit 31 : Connection */
+#define QDEC_PSEL_LED_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QDEC_PSEL_LED_CONNECT_Msk (0x1UL << QDEC_PSEL_LED_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QDEC_PSEL_LED_CONNECT_Connected (0UL) /*!< Connect */
+#define QDEC_PSEL_LED_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define QDEC_PSEL_LED_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QDEC_PSEL_LED_PIN_Msk (0x1FUL << QDEC_PSEL_LED_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QDEC_PSEL_A */
+/* Description: Pin select for A signal */
+
+/* Bit 31 : Connection */
+#define QDEC_PSEL_A_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QDEC_PSEL_A_CONNECT_Msk (0x1UL << QDEC_PSEL_A_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QDEC_PSEL_A_CONNECT_Connected (0UL) /*!< Connect */
+#define QDEC_PSEL_A_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define QDEC_PSEL_A_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QDEC_PSEL_A_PIN_Msk (0x1FUL << QDEC_PSEL_A_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QDEC_PSEL_B */
+/* Description: Pin select for B signal */
+
+/* Bit 31 : Connection */
+#define QDEC_PSEL_B_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define QDEC_PSEL_B_CONNECT_Msk (0x1UL << QDEC_PSEL_B_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define QDEC_PSEL_B_CONNECT_Connected (0UL) /*!< Connect */
+#define QDEC_PSEL_B_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define QDEC_PSEL_B_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define QDEC_PSEL_B_PIN_Msk (0x1FUL << QDEC_PSEL_B_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: QDEC_DBFEN */
+/* Description: Enable input debounce filters */
+
+/* Bit 0 : Enable input debounce filters */
+#define QDEC_DBFEN_DBFEN_Pos (0UL) /*!< Position of DBFEN field. */
+#define QDEC_DBFEN_DBFEN_Msk (0x1UL << QDEC_DBFEN_DBFEN_Pos) /*!< Bit mask of DBFEN field. */
+#define QDEC_DBFEN_DBFEN_Disabled (0UL) /*!< Debounce input filters disabled */
+#define QDEC_DBFEN_DBFEN_Enabled (1UL) /*!< Debounce input filters enabled */
+
+/* Register: QDEC_LEDPRE */
+/* Description: Time period the LED is switched ON prior to sampling */
+
+/* Bits 8..0 : Period in us the LED is switched on prior to sampling */
+#define QDEC_LEDPRE_LEDPRE_Pos (0UL) /*!< Position of LEDPRE field. */
+#define QDEC_LEDPRE_LEDPRE_Msk (0x1FFUL << QDEC_LEDPRE_LEDPRE_Pos) /*!< Bit mask of LEDPRE field. */
+
+/* Register: QDEC_ACCDBL */
+/* Description: Register accumulating the number of detected double transitions */
+
+/* Bits 3..0 : Register accumulating the number of detected double or illegal transitions. ( SAMPLE = 2 ). */
+#define QDEC_ACCDBL_ACCDBL_Pos (0UL) /*!< Position of ACCDBL field. */
+#define QDEC_ACCDBL_ACCDBL_Msk (0xFUL << QDEC_ACCDBL_ACCDBL_Pos) /*!< Bit mask of ACCDBL field. */
+
+/* Register: QDEC_ACCDBLREAD */
+/* Description: Snapshot of the ACCDBL, updated by the READCLRACC or RDCLRDBL task */
+
+/* Bits 3..0 : Snapshot of the ACCDBL register. This field is updated when the READCLRACC or RDCLRDBL task is triggered. */
+#define QDEC_ACCDBLREAD_ACCDBLREAD_Pos (0UL) /*!< Position of ACCDBLREAD field. */
+#define QDEC_ACCDBLREAD_ACCDBLREAD_Msk (0xFUL << QDEC_ACCDBLREAD_ACCDBLREAD_Pos) /*!< Bit mask of ACCDBLREAD field. */
+
+
+/* Peripheral: RADIO */
+/* Description: 2.4 GHz Radio */
+
+/* Register: RADIO_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 8 : Shortcut between DISABLED event and RSSISTOP task */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Pos (8UL) /*!< Position of DISABLED_RSSISTOP field. */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Msk (0x1UL << RADIO_SHORTS_DISABLED_RSSISTOP_Pos) /*!< Bit mask of DISABLED_RSSISTOP field. */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_DISABLED_RSSISTOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 6 : Shortcut between ADDRESS event and BCSTART task */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Pos (6UL) /*!< Position of ADDRESS_BCSTART field. */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Msk (0x1UL << RADIO_SHORTS_ADDRESS_BCSTART_Pos) /*!< Bit mask of ADDRESS_BCSTART field. */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_ADDRESS_BCSTART_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 5 : Shortcut between END event and START task */
+#define RADIO_SHORTS_END_START_Pos (5UL) /*!< Position of END_START field. */
+#define RADIO_SHORTS_END_START_Msk (0x1UL << RADIO_SHORTS_END_START_Pos) /*!< Bit mask of END_START field. */
+#define RADIO_SHORTS_END_START_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_END_START_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 4 : Shortcut between ADDRESS event and RSSISTART task */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Pos (4UL) /*!< Position of ADDRESS_RSSISTART field. */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Msk (0x1UL << RADIO_SHORTS_ADDRESS_RSSISTART_Pos) /*!< Bit mask of ADDRESS_RSSISTART field. */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_ADDRESS_RSSISTART_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between DISABLED event and RXEN task */
+#define RADIO_SHORTS_DISABLED_RXEN_Pos (3UL) /*!< Position of DISABLED_RXEN field. */
+#define RADIO_SHORTS_DISABLED_RXEN_Msk (0x1UL << RADIO_SHORTS_DISABLED_RXEN_Pos) /*!< Bit mask of DISABLED_RXEN field. */
+#define RADIO_SHORTS_DISABLED_RXEN_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_DISABLED_RXEN_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between DISABLED event and TXEN task */
+#define RADIO_SHORTS_DISABLED_TXEN_Pos (2UL) /*!< Position of DISABLED_TXEN field. */
+#define RADIO_SHORTS_DISABLED_TXEN_Msk (0x1UL << RADIO_SHORTS_DISABLED_TXEN_Pos) /*!< Bit mask of DISABLED_TXEN field. */
+#define RADIO_SHORTS_DISABLED_TXEN_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_DISABLED_TXEN_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between END event and DISABLE task */
+#define RADIO_SHORTS_END_DISABLE_Pos (1UL) /*!< Position of END_DISABLE field. */
+#define RADIO_SHORTS_END_DISABLE_Msk (0x1UL << RADIO_SHORTS_END_DISABLE_Pos) /*!< Bit mask of END_DISABLE field. */
+#define RADIO_SHORTS_END_DISABLE_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_END_DISABLE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between READY event and START task */
+#define RADIO_SHORTS_READY_START_Pos (0UL) /*!< Position of READY_START field. */
+#define RADIO_SHORTS_READY_START_Msk (0x1UL << RADIO_SHORTS_READY_START_Pos) /*!< Bit mask of READY_START field. */
+#define RADIO_SHORTS_READY_START_Disabled (0UL) /*!< Disable shortcut */
+#define RADIO_SHORTS_READY_START_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: RADIO_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 13 : Write '1' to Enable interrupt for CRCERROR event */
+#define RADIO_INTENSET_CRCERROR_Pos (13UL) /*!< Position of CRCERROR field. */
+#define RADIO_INTENSET_CRCERROR_Msk (0x1UL << RADIO_INTENSET_CRCERROR_Pos) /*!< Bit mask of CRCERROR field. */
+#define RADIO_INTENSET_CRCERROR_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_CRCERROR_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_CRCERROR_Set (1UL) /*!< Enable */
+
+/* Bit 12 : Write '1' to Enable interrupt for CRCOK event */
+#define RADIO_INTENSET_CRCOK_Pos (12UL) /*!< Position of CRCOK field. */
+#define RADIO_INTENSET_CRCOK_Msk (0x1UL << RADIO_INTENSET_CRCOK_Pos) /*!< Bit mask of CRCOK field. */
+#define RADIO_INTENSET_CRCOK_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_CRCOK_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_CRCOK_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to Enable interrupt for BCMATCH event */
+#define RADIO_INTENSET_BCMATCH_Pos (10UL) /*!< Position of BCMATCH field. */
+#define RADIO_INTENSET_BCMATCH_Msk (0x1UL << RADIO_INTENSET_BCMATCH_Pos) /*!< Bit mask of BCMATCH field. */
+#define RADIO_INTENSET_BCMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_BCMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_BCMATCH_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for RSSIEND event */
+#define RADIO_INTENSET_RSSIEND_Pos (7UL) /*!< Position of RSSIEND field. */
+#define RADIO_INTENSET_RSSIEND_Msk (0x1UL << RADIO_INTENSET_RSSIEND_Pos) /*!< Bit mask of RSSIEND field. */
+#define RADIO_INTENSET_RSSIEND_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_RSSIEND_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_RSSIEND_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for DEVMISS event */
+#define RADIO_INTENSET_DEVMISS_Pos (6UL) /*!< Position of DEVMISS field. */
+#define RADIO_INTENSET_DEVMISS_Msk (0x1UL << RADIO_INTENSET_DEVMISS_Pos) /*!< Bit mask of DEVMISS field. */
+#define RADIO_INTENSET_DEVMISS_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_DEVMISS_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_DEVMISS_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for DEVMATCH event */
+#define RADIO_INTENSET_DEVMATCH_Pos (5UL) /*!< Position of DEVMATCH field. */
+#define RADIO_INTENSET_DEVMATCH_Msk (0x1UL << RADIO_INTENSET_DEVMATCH_Pos) /*!< Bit mask of DEVMATCH field. */
+#define RADIO_INTENSET_DEVMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_DEVMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_DEVMATCH_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for DISABLED event */
+#define RADIO_INTENSET_DISABLED_Pos (4UL) /*!< Position of DISABLED field. */
+#define RADIO_INTENSET_DISABLED_Msk (0x1UL << RADIO_INTENSET_DISABLED_Pos) /*!< Bit mask of DISABLED field. */
+#define RADIO_INTENSET_DISABLED_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_DISABLED_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_DISABLED_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for END event */
+#define RADIO_INTENSET_END_Pos (3UL) /*!< Position of END field. */
+#define RADIO_INTENSET_END_Msk (0x1UL << RADIO_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define RADIO_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for PAYLOAD event */
+#define RADIO_INTENSET_PAYLOAD_Pos (2UL) /*!< Position of PAYLOAD field. */
+#define RADIO_INTENSET_PAYLOAD_Msk (0x1UL << RADIO_INTENSET_PAYLOAD_Pos) /*!< Bit mask of PAYLOAD field. */
+#define RADIO_INTENSET_PAYLOAD_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_PAYLOAD_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_PAYLOAD_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for ADDRESS event */
+#define RADIO_INTENSET_ADDRESS_Pos (1UL) /*!< Position of ADDRESS field. */
+#define RADIO_INTENSET_ADDRESS_Msk (0x1UL << RADIO_INTENSET_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+#define RADIO_INTENSET_ADDRESS_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_ADDRESS_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_ADDRESS_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for READY event */
+#define RADIO_INTENSET_READY_Pos (0UL) /*!< Position of READY field. */
+#define RADIO_INTENSET_READY_Msk (0x1UL << RADIO_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define RADIO_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: RADIO_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 13 : Write '1' to Disable interrupt for CRCERROR event */
+#define RADIO_INTENCLR_CRCERROR_Pos (13UL) /*!< Position of CRCERROR field. */
+#define RADIO_INTENCLR_CRCERROR_Msk (0x1UL << RADIO_INTENCLR_CRCERROR_Pos) /*!< Bit mask of CRCERROR field. */
+#define RADIO_INTENCLR_CRCERROR_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_CRCERROR_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_CRCERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 12 : Write '1' to Disable interrupt for CRCOK event */
+#define RADIO_INTENCLR_CRCOK_Pos (12UL) /*!< Position of CRCOK field. */
+#define RADIO_INTENCLR_CRCOK_Msk (0x1UL << RADIO_INTENCLR_CRCOK_Pos) /*!< Bit mask of CRCOK field. */
+#define RADIO_INTENCLR_CRCOK_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_CRCOK_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_CRCOK_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to Disable interrupt for BCMATCH event */
+#define RADIO_INTENCLR_BCMATCH_Pos (10UL) /*!< Position of BCMATCH field. */
+#define RADIO_INTENCLR_BCMATCH_Msk (0x1UL << RADIO_INTENCLR_BCMATCH_Pos) /*!< Bit mask of BCMATCH field. */
+#define RADIO_INTENCLR_BCMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_BCMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_BCMATCH_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for RSSIEND event */
+#define RADIO_INTENCLR_RSSIEND_Pos (7UL) /*!< Position of RSSIEND field. */
+#define RADIO_INTENCLR_RSSIEND_Msk (0x1UL << RADIO_INTENCLR_RSSIEND_Pos) /*!< Bit mask of RSSIEND field. */
+#define RADIO_INTENCLR_RSSIEND_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_RSSIEND_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_RSSIEND_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for DEVMISS event */
+#define RADIO_INTENCLR_DEVMISS_Pos (6UL) /*!< Position of DEVMISS field. */
+#define RADIO_INTENCLR_DEVMISS_Msk (0x1UL << RADIO_INTENCLR_DEVMISS_Pos) /*!< Bit mask of DEVMISS field. */
+#define RADIO_INTENCLR_DEVMISS_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_DEVMISS_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_DEVMISS_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for DEVMATCH event */
+#define RADIO_INTENCLR_DEVMATCH_Pos (5UL) /*!< Position of DEVMATCH field. */
+#define RADIO_INTENCLR_DEVMATCH_Msk (0x1UL << RADIO_INTENCLR_DEVMATCH_Pos) /*!< Bit mask of DEVMATCH field. */
+#define RADIO_INTENCLR_DEVMATCH_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_DEVMATCH_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_DEVMATCH_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for DISABLED event */
+#define RADIO_INTENCLR_DISABLED_Pos (4UL) /*!< Position of DISABLED field. */
+#define RADIO_INTENCLR_DISABLED_Msk (0x1UL << RADIO_INTENCLR_DISABLED_Pos) /*!< Bit mask of DISABLED field. */
+#define RADIO_INTENCLR_DISABLED_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_DISABLED_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_DISABLED_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for END event */
+#define RADIO_INTENCLR_END_Pos (3UL) /*!< Position of END field. */
+#define RADIO_INTENCLR_END_Msk (0x1UL << RADIO_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define RADIO_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for PAYLOAD event */
+#define RADIO_INTENCLR_PAYLOAD_Pos (2UL) /*!< Position of PAYLOAD field. */
+#define RADIO_INTENCLR_PAYLOAD_Msk (0x1UL << RADIO_INTENCLR_PAYLOAD_Pos) /*!< Bit mask of PAYLOAD field. */
+#define RADIO_INTENCLR_PAYLOAD_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_PAYLOAD_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_PAYLOAD_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for ADDRESS event */
+#define RADIO_INTENCLR_ADDRESS_Pos (1UL) /*!< Position of ADDRESS field. */
+#define RADIO_INTENCLR_ADDRESS_Msk (0x1UL << RADIO_INTENCLR_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+#define RADIO_INTENCLR_ADDRESS_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_ADDRESS_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_ADDRESS_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for READY event */
+#define RADIO_INTENCLR_READY_Pos (0UL) /*!< Position of READY field. */
+#define RADIO_INTENCLR_READY_Msk (0x1UL << RADIO_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define RADIO_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define RADIO_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define RADIO_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: RADIO_CRCSTATUS */
+/* Description: CRC status */
+
+/* Bit 0 : CRC status of packet received */
+#define RADIO_CRCSTATUS_CRCSTATUS_Pos (0UL) /*!< Position of CRCSTATUS field. */
+#define RADIO_CRCSTATUS_CRCSTATUS_Msk (0x1UL << RADIO_CRCSTATUS_CRCSTATUS_Pos) /*!< Bit mask of CRCSTATUS field. */
+#define RADIO_CRCSTATUS_CRCSTATUS_CRCError (0UL) /*!< Packet received with CRC error */
+#define RADIO_CRCSTATUS_CRCSTATUS_CRCOk (1UL) /*!< Packet received with CRC ok */
+
+/* Register: RADIO_RXMATCH */
+/* Description: Received address */
+
+/* Bits 2..0 : Received address */
+#define RADIO_RXMATCH_RXMATCH_Pos (0UL) /*!< Position of RXMATCH field. */
+#define RADIO_RXMATCH_RXMATCH_Msk (0x7UL << RADIO_RXMATCH_RXMATCH_Pos) /*!< Bit mask of RXMATCH field. */
+
+/* Register: RADIO_RXCRC */
+/* Description: CRC field of previously received packet */
+
+/* Bits 23..0 : CRC field of previously received packet */
+#define RADIO_RXCRC_RXCRC_Pos (0UL) /*!< Position of RXCRC field. */
+#define RADIO_RXCRC_RXCRC_Msk (0xFFFFFFUL << RADIO_RXCRC_RXCRC_Pos) /*!< Bit mask of RXCRC field. */
+
+/* Register: RADIO_DAI */
+/* Description: Device address match index */
+
+/* Bits 2..0 : Device address match index */
+#define RADIO_DAI_DAI_Pos (0UL) /*!< Position of DAI field. */
+#define RADIO_DAI_DAI_Msk (0x7UL << RADIO_DAI_DAI_Pos) /*!< Bit mask of DAI field. */
+
+/* Register: RADIO_PACKETPTR */
+/* Description: Packet pointer */
+
+/* Bits 31..0 : Packet pointer */
+#define RADIO_PACKETPTR_PACKETPTR_Pos (0UL) /*!< Position of PACKETPTR field. */
+#define RADIO_PACKETPTR_PACKETPTR_Msk (0xFFFFFFFFUL << RADIO_PACKETPTR_PACKETPTR_Pos) /*!< Bit mask of PACKETPTR field. */
+
+/* Register: RADIO_FREQUENCY */
+/* Description: Frequency */
+
+/* Bit 8 : Channel map selection. */
+#define RADIO_FREQUENCY_MAP_Pos (8UL) /*!< Position of MAP field. */
+#define RADIO_FREQUENCY_MAP_Msk (0x1UL << RADIO_FREQUENCY_MAP_Pos) /*!< Bit mask of MAP field. */
+#define RADIO_FREQUENCY_MAP_Default (0UL) /*!< Channel map between 2400 MHZ .. 2500 MHz */
+#define RADIO_FREQUENCY_MAP_Low (1UL) /*!< Channel map between 2360 MHZ .. 2460 MHz */
+
+/* Bits 6..0 : Radio channel frequency */
+#define RADIO_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define RADIO_FREQUENCY_FREQUENCY_Msk (0x7FUL << RADIO_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+
+/* Register: RADIO_TXPOWER */
+/* Description: Output power */
+
+/* Bits 7..0 : RADIO output power. */
+#define RADIO_TXPOWER_TXPOWER_Pos (0UL) /*!< Position of TXPOWER field. */
+#define RADIO_TXPOWER_TXPOWER_Msk (0xFFUL << RADIO_TXPOWER_TXPOWER_Pos) /*!< Bit mask of TXPOWER field. */
+#define RADIO_TXPOWER_TXPOWER_0dBm (0x00UL) /*!< 0 dBm */
+#define RADIO_TXPOWER_TXPOWER_Pos3dBm (0x03UL) /*!< +3 dBm */
+#define RADIO_TXPOWER_TXPOWER_Pos4dBm (0x04UL) /*!< +4 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg30dBm (0xD8UL) /*!< Deprecated enumerator - -40 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg40dBm (0xD8UL) /*!< -40 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg20dBm (0xECUL) /*!< -20 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg16dBm (0xF0UL) /*!< -16 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg12dBm (0xF4UL) /*!< -12 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg8dBm (0xF8UL) /*!< -8 dBm */
+#define RADIO_TXPOWER_TXPOWER_Neg4dBm (0xFCUL) /*!< -4 dBm */
+
+/* Register: RADIO_MODE */
+/* Description: Data rate and modulation */
+
+/* Bits 3..0 : Radio data rate and modulation setting. The radio supports Frequency-shift Keying (FSK) modulation. */
+#define RADIO_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define RADIO_MODE_MODE_Msk (0xFUL << RADIO_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define RADIO_MODE_MODE_Nrf_1Mbit (0UL) /*!< 1 Mbit/s Nordic proprietary radio mode */
+#define RADIO_MODE_MODE_Nrf_2Mbit (1UL) /*!< 2 Mbit/s Nordic proprietary radio mode */
+#define RADIO_MODE_MODE_Nrf_250Kbit (2UL) /*!< Deprecated enumerator - 250 kbit/s Nordic proprietary radio mode */
+#define RADIO_MODE_MODE_Ble_1Mbit (3UL) /*!< 1 Mbit/s Bluetooth Low Energy */
+#define RADIO_MODE_MODE_Ble_2Mbit (4UL) /*!< 2 Mbit/s Bluetooth Low Energy */
+
+/* Register: RADIO_PCNF0 */
+/* Description: Packet configuration register 0 */
+
+/* Bit 24 : Length of preamble on air. Decision point: TASKS_START task */
+#define RADIO_PCNF0_PLEN_Pos (24UL) /*!< Position of PLEN field. */
+#define RADIO_PCNF0_PLEN_Msk (0x1UL << RADIO_PCNF0_PLEN_Pos) /*!< Bit mask of PLEN field. */
+#define RADIO_PCNF0_PLEN_8bit (0UL) /*!< 8-bit preamble */
+#define RADIO_PCNF0_PLEN_16bit (1UL) /*!< 16-bit preamble */
+
+/* Bit 20 : Include or exclude S1 field in RAM */
+#define RADIO_PCNF0_S1INCL_Pos (20UL) /*!< Position of S1INCL field. */
+#define RADIO_PCNF0_S1INCL_Msk (0x1UL << RADIO_PCNF0_S1INCL_Pos) /*!< Bit mask of S1INCL field. */
+#define RADIO_PCNF0_S1INCL_Automatic (0UL) /*!< Include S1 field in RAM only if S1LEN &gt; 0 */
+#define RADIO_PCNF0_S1INCL_Include (1UL) /*!< Always include S1 field in RAM independent of S1LEN */
+
+/* Bits 19..16 : Length on air of S1 field in number of bits. */
+#define RADIO_PCNF0_S1LEN_Pos (16UL) /*!< Position of S1LEN field. */
+#define RADIO_PCNF0_S1LEN_Msk (0xFUL << RADIO_PCNF0_S1LEN_Pos) /*!< Bit mask of S1LEN field. */
+
+/* Bit 8 : Length on air of S0 field in number of bytes. */
+#define RADIO_PCNF0_S0LEN_Pos (8UL) /*!< Position of S0LEN field. */
+#define RADIO_PCNF0_S0LEN_Msk (0x1UL << RADIO_PCNF0_S0LEN_Pos) /*!< Bit mask of S0LEN field. */
+
+/* Bits 3..0 : Length on air of LENGTH field in number of bits. */
+#define RADIO_PCNF0_LFLEN_Pos (0UL) /*!< Position of LFLEN field. */
+#define RADIO_PCNF0_LFLEN_Msk (0xFUL << RADIO_PCNF0_LFLEN_Pos) /*!< Bit mask of LFLEN field. */
+
+/* Register: RADIO_PCNF1 */
+/* Description: Packet configuration register 1 */
+
+/* Bit 25 : Enable or disable packet whitening */
+#define RADIO_PCNF1_WHITEEN_Pos (25UL) /*!< Position of WHITEEN field. */
+#define RADIO_PCNF1_WHITEEN_Msk (0x1UL << RADIO_PCNF1_WHITEEN_Pos) /*!< Bit mask of WHITEEN field. */
+#define RADIO_PCNF1_WHITEEN_Disabled (0UL) /*!< Disable */
+#define RADIO_PCNF1_WHITEEN_Enabled (1UL) /*!< Enable */
+
+/* Bit 24 : On air endianness of packet, this applies to the S0, LENGTH, S1 and the PAYLOAD fields. */
+#define RADIO_PCNF1_ENDIAN_Pos (24UL) /*!< Position of ENDIAN field. */
+#define RADIO_PCNF1_ENDIAN_Msk (0x1UL << RADIO_PCNF1_ENDIAN_Pos) /*!< Bit mask of ENDIAN field. */
+#define RADIO_PCNF1_ENDIAN_Little (0UL) /*!< Least Significant bit on air first */
+#define RADIO_PCNF1_ENDIAN_Big (1UL) /*!< Most significant bit on air first */
+
+/* Bits 18..16 : Base address length in number of bytes */
+#define RADIO_PCNF1_BALEN_Pos (16UL) /*!< Position of BALEN field. */
+#define RADIO_PCNF1_BALEN_Msk (0x7UL << RADIO_PCNF1_BALEN_Pos) /*!< Bit mask of BALEN field. */
+
+/* Bits 15..8 : Static length in number of bytes */
+#define RADIO_PCNF1_STATLEN_Pos (8UL) /*!< Position of STATLEN field. */
+#define RADIO_PCNF1_STATLEN_Msk (0xFFUL << RADIO_PCNF1_STATLEN_Pos) /*!< Bit mask of STATLEN field. */
+
+/* Bits 7..0 : Maximum length of packet payload. If the packet payload is larger than MAXLEN, the radio will truncate the payload to MAXLEN. */
+#define RADIO_PCNF1_MAXLEN_Pos (0UL) /*!< Position of MAXLEN field. */
+#define RADIO_PCNF1_MAXLEN_Msk (0xFFUL << RADIO_PCNF1_MAXLEN_Pos) /*!< Bit mask of MAXLEN field. */
+
+/* Register: RADIO_BASE0 */
+/* Description: Base address 0 */
+
+/* Bits 31..0 : Base address 0 */
+#define RADIO_BASE0_BASE0_Pos (0UL) /*!< Position of BASE0 field. */
+#define RADIO_BASE0_BASE0_Msk (0xFFFFFFFFUL << RADIO_BASE0_BASE0_Pos) /*!< Bit mask of BASE0 field. */
+
+/* Register: RADIO_BASE1 */
+/* Description: Base address 1 */
+
+/* Bits 31..0 : Base address 1 */
+#define RADIO_BASE1_BASE1_Pos (0UL) /*!< Position of BASE1 field. */
+#define RADIO_BASE1_BASE1_Msk (0xFFFFFFFFUL << RADIO_BASE1_BASE1_Pos) /*!< Bit mask of BASE1 field. */
+
+/* Register: RADIO_PREFIX0 */
+/* Description: Prefixes bytes for logical addresses 0-3 */
+
+/* Bits 31..24 : Address prefix 3. */
+#define RADIO_PREFIX0_AP3_Pos (24UL) /*!< Position of AP3 field. */
+#define RADIO_PREFIX0_AP3_Msk (0xFFUL << RADIO_PREFIX0_AP3_Pos) /*!< Bit mask of AP3 field. */
+
+/* Bits 23..16 : Address prefix 2. */
+#define RADIO_PREFIX0_AP2_Pos (16UL) /*!< Position of AP2 field. */
+#define RADIO_PREFIX0_AP2_Msk (0xFFUL << RADIO_PREFIX0_AP2_Pos) /*!< Bit mask of AP2 field. */
+
+/* Bits 15..8 : Address prefix 1. */
+#define RADIO_PREFIX0_AP1_Pos (8UL) /*!< Position of AP1 field. */
+#define RADIO_PREFIX0_AP1_Msk (0xFFUL << RADIO_PREFIX0_AP1_Pos) /*!< Bit mask of AP1 field. */
+
+/* Bits 7..0 : Address prefix 0. */
+#define RADIO_PREFIX0_AP0_Pos (0UL) /*!< Position of AP0 field. */
+#define RADIO_PREFIX0_AP0_Msk (0xFFUL << RADIO_PREFIX0_AP0_Pos) /*!< Bit mask of AP0 field. */
+
+/* Register: RADIO_PREFIX1 */
+/* Description: Prefixes bytes for logical addresses 4-7 */
+
+/* Bits 31..24 : Address prefix 7. */
+#define RADIO_PREFIX1_AP7_Pos (24UL) /*!< Position of AP7 field. */
+#define RADIO_PREFIX1_AP7_Msk (0xFFUL << RADIO_PREFIX1_AP7_Pos) /*!< Bit mask of AP7 field. */
+
+/* Bits 23..16 : Address prefix 6. */
+#define RADIO_PREFIX1_AP6_Pos (16UL) /*!< Position of AP6 field. */
+#define RADIO_PREFIX1_AP6_Msk (0xFFUL << RADIO_PREFIX1_AP6_Pos) /*!< Bit mask of AP6 field. */
+
+/* Bits 15..8 : Address prefix 5. */
+#define RADIO_PREFIX1_AP5_Pos (8UL) /*!< Position of AP5 field. */
+#define RADIO_PREFIX1_AP5_Msk (0xFFUL << RADIO_PREFIX1_AP5_Pos) /*!< Bit mask of AP5 field. */
+
+/* Bits 7..0 : Address prefix 4. */
+#define RADIO_PREFIX1_AP4_Pos (0UL) /*!< Position of AP4 field. */
+#define RADIO_PREFIX1_AP4_Msk (0xFFUL << RADIO_PREFIX1_AP4_Pos) /*!< Bit mask of AP4 field. */
+
+/* Register: RADIO_TXADDRESS */
+/* Description: Transmit address select */
+
+/* Bits 2..0 : Transmit address select */
+#define RADIO_TXADDRESS_TXADDRESS_Pos (0UL) /*!< Position of TXADDRESS field. */
+#define RADIO_TXADDRESS_TXADDRESS_Msk (0x7UL << RADIO_TXADDRESS_TXADDRESS_Pos) /*!< Bit mask of TXADDRESS field. */
+
+/* Register: RADIO_RXADDRESSES */
+/* Description: Receive address select */
+
+/* Bit 7 : Enable or disable reception on logical address 7. */
+#define RADIO_RXADDRESSES_ADDR7_Pos (7UL) /*!< Position of ADDR7 field. */
+#define RADIO_RXADDRESSES_ADDR7_Msk (0x1UL << RADIO_RXADDRESSES_ADDR7_Pos) /*!< Bit mask of ADDR7 field. */
+#define RADIO_RXADDRESSES_ADDR7_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR7_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable reception on logical address 6. */
+#define RADIO_RXADDRESSES_ADDR6_Pos (6UL) /*!< Position of ADDR6 field. */
+#define RADIO_RXADDRESSES_ADDR6_Msk (0x1UL << RADIO_RXADDRESSES_ADDR6_Pos) /*!< Bit mask of ADDR6 field. */
+#define RADIO_RXADDRESSES_ADDR6_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR6_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable reception on logical address 5. */
+#define RADIO_RXADDRESSES_ADDR5_Pos (5UL) /*!< Position of ADDR5 field. */
+#define RADIO_RXADDRESSES_ADDR5_Msk (0x1UL << RADIO_RXADDRESSES_ADDR5_Pos) /*!< Bit mask of ADDR5 field. */
+#define RADIO_RXADDRESSES_ADDR5_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR5_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable reception on logical address 4. */
+#define RADIO_RXADDRESSES_ADDR4_Pos (4UL) /*!< Position of ADDR4 field. */
+#define RADIO_RXADDRESSES_ADDR4_Msk (0x1UL << RADIO_RXADDRESSES_ADDR4_Pos) /*!< Bit mask of ADDR4 field. */
+#define RADIO_RXADDRESSES_ADDR4_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR4_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable reception on logical address 3. */
+#define RADIO_RXADDRESSES_ADDR3_Pos (3UL) /*!< Position of ADDR3 field. */
+#define RADIO_RXADDRESSES_ADDR3_Msk (0x1UL << RADIO_RXADDRESSES_ADDR3_Pos) /*!< Bit mask of ADDR3 field. */
+#define RADIO_RXADDRESSES_ADDR3_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR3_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable reception on logical address 2. */
+#define RADIO_RXADDRESSES_ADDR2_Pos (2UL) /*!< Position of ADDR2 field. */
+#define RADIO_RXADDRESSES_ADDR2_Msk (0x1UL << RADIO_RXADDRESSES_ADDR2_Pos) /*!< Bit mask of ADDR2 field. */
+#define RADIO_RXADDRESSES_ADDR2_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR2_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable reception on logical address 1. */
+#define RADIO_RXADDRESSES_ADDR1_Pos (1UL) /*!< Position of ADDR1 field. */
+#define RADIO_RXADDRESSES_ADDR1_Msk (0x1UL << RADIO_RXADDRESSES_ADDR1_Pos) /*!< Bit mask of ADDR1 field. */
+#define RADIO_RXADDRESSES_ADDR1_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR1_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable reception on logical address 0. */
+#define RADIO_RXADDRESSES_ADDR0_Pos (0UL) /*!< Position of ADDR0 field. */
+#define RADIO_RXADDRESSES_ADDR0_Msk (0x1UL << RADIO_RXADDRESSES_ADDR0_Pos) /*!< Bit mask of ADDR0 field. */
+#define RADIO_RXADDRESSES_ADDR0_Disabled (0UL) /*!< Disable */
+#define RADIO_RXADDRESSES_ADDR0_Enabled (1UL) /*!< Enable */
+
+/* Register: RADIO_CRCCNF */
+/* Description: CRC configuration */
+
+/* Bit 8 : Include or exclude packet address field out of CRC calculation. */
+#define RADIO_CRCCNF_SKIPADDR_Pos (8UL) /*!< Position of SKIPADDR field. */
+#define RADIO_CRCCNF_SKIPADDR_Msk (0x1UL << RADIO_CRCCNF_SKIPADDR_Pos) /*!< Bit mask of SKIPADDR field. */
+#define RADIO_CRCCNF_SKIPADDR_Include (0UL) /*!< CRC calculation includes address field */
+#define RADIO_CRCCNF_SKIPADDR_Skip (1UL) /*!< CRC calculation does not include address field. The CRC calculation will start at the first byte after the address. */
+
+/* Bits 1..0 : CRC length in number of bytes. */
+#define RADIO_CRCCNF_LEN_Pos (0UL) /*!< Position of LEN field. */
+#define RADIO_CRCCNF_LEN_Msk (0x3UL << RADIO_CRCCNF_LEN_Pos) /*!< Bit mask of LEN field. */
+#define RADIO_CRCCNF_LEN_Disabled (0UL) /*!< CRC length is zero and CRC calculation is disabled */
+#define RADIO_CRCCNF_LEN_One (1UL) /*!< CRC length is one byte and CRC calculation is enabled */
+#define RADIO_CRCCNF_LEN_Two (2UL) /*!< CRC length is two bytes and CRC calculation is enabled */
+#define RADIO_CRCCNF_LEN_Three (3UL) /*!< CRC length is three bytes and CRC calculation is enabled */
+
+/* Register: RADIO_CRCPOLY */
+/* Description: CRC polynomial */
+
+/* Bits 23..0 : CRC polynomial */
+#define RADIO_CRCPOLY_CRCPOLY_Pos (0UL) /*!< Position of CRCPOLY field. */
+#define RADIO_CRCPOLY_CRCPOLY_Msk (0xFFFFFFUL << RADIO_CRCPOLY_CRCPOLY_Pos) /*!< Bit mask of CRCPOLY field. */
+
+/* Register: RADIO_CRCINIT */
+/* Description: CRC initial value */
+
+/* Bits 23..0 : CRC initial value */
+#define RADIO_CRCINIT_CRCINIT_Pos (0UL) /*!< Position of CRCINIT field. */
+#define RADIO_CRCINIT_CRCINIT_Msk (0xFFFFFFUL << RADIO_CRCINIT_CRCINIT_Pos) /*!< Bit mask of CRCINIT field. */
+
+/* Register: RADIO_TIFS */
+/* Description: Inter Frame Spacing in us */
+
+/* Bits 7..0 : Inter Frame Spacing in us */
+#define RADIO_TIFS_TIFS_Pos (0UL) /*!< Position of TIFS field. */
+#define RADIO_TIFS_TIFS_Msk (0xFFUL << RADIO_TIFS_TIFS_Pos) /*!< Bit mask of TIFS field. */
+
+/* Register: RADIO_RSSISAMPLE */
+/* Description: RSSI sample */
+
+/* Bits 6..0 : RSSI sample */
+#define RADIO_RSSISAMPLE_RSSISAMPLE_Pos (0UL) /*!< Position of RSSISAMPLE field. */
+#define RADIO_RSSISAMPLE_RSSISAMPLE_Msk (0x7FUL << RADIO_RSSISAMPLE_RSSISAMPLE_Pos) /*!< Bit mask of RSSISAMPLE field. */
+
+/* Register: RADIO_STATE */
+/* Description: Current radio state */
+
+/* Bits 3..0 : Current radio state */
+#define RADIO_STATE_STATE_Pos (0UL) /*!< Position of STATE field. */
+#define RADIO_STATE_STATE_Msk (0xFUL << RADIO_STATE_STATE_Pos) /*!< Bit mask of STATE field. */
+#define RADIO_STATE_STATE_Disabled (0UL) /*!< RADIO is in the Disabled state */
+#define RADIO_STATE_STATE_RxRu (1UL) /*!< RADIO is in the RXRU state */
+#define RADIO_STATE_STATE_RxIdle (2UL) /*!< RADIO is in the RXIDLE state */
+#define RADIO_STATE_STATE_Rx (3UL) /*!< RADIO is in the RX state */
+#define RADIO_STATE_STATE_RxDisable (4UL) /*!< RADIO is in the RXDISABLED state */
+#define RADIO_STATE_STATE_TxRu (9UL) /*!< RADIO is in the TXRU state */
+#define RADIO_STATE_STATE_TxIdle (10UL) /*!< RADIO is in the TXIDLE state */
+#define RADIO_STATE_STATE_Tx (11UL) /*!< RADIO is in the TX state */
+#define RADIO_STATE_STATE_TxDisable (12UL) /*!< RADIO is in the TXDISABLED state */
+
+/* Register: RADIO_DATAWHITEIV */
+/* Description: Data whitening initial value */
+
+/* Bits 6..0 : Data whitening initial value. Bit 6 is hard-wired to '1', writing '0' to it has no effect, and it will always be read back and used by the device as '1'. */
+#define RADIO_DATAWHITEIV_DATAWHITEIV_Pos (0UL) /*!< Position of DATAWHITEIV field. */
+#define RADIO_DATAWHITEIV_DATAWHITEIV_Msk (0x7FUL << RADIO_DATAWHITEIV_DATAWHITEIV_Pos) /*!< Bit mask of DATAWHITEIV field. */
+
+/* Register: RADIO_BCC */
+/* Description: Bit counter compare */
+
+/* Bits 31..0 : Bit counter compare */
+#define RADIO_BCC_BCC_Pos (0UL) /*!< Position of BCC field. */
+#define RADIO_BCC_BCC_Msk (0xFFFFFFFFUL << RADIO_BCC_BCC_Pos) /*!< Bit mask of BCC field. */
+
+/* Register: RADIO_DAB */
+/* Description: Description collection[0]: Device address base segment 0 */
+
+/* Bits 31..0 : Device address base segment 0 */
+#define RADIO_DAB_DAB_Pos (0UL) /*!< Position of DAB field. */
+#define RADIO_DAB_DAB_Msk (0xFFFFFFFFUL << RADIO_DAB_DAB_Pos) /*!< Bit mask of DAB field. */
+
+/* Register: RADIO_DAP */
+/* Description: Description collection[0]: Device address prefix 0 */
+
+/* Bits 15..0 : Device address prefix 0 */
+#define RADIO_DAP_DAP_Pos (0UL) /*!< Position of DAP field. */
+#define RADIO_DAP_DAP_Msk (0xFFFFUL << RADIO_DAP_DAP_Pos) /*!< Bit mask of DAP field. */
+
+/* Register: RADIO_DACNF */
+/* Description: Device address match configuration */
+
+/* Bit 15 : TxAdd for device address 7 */
+#define RADIO_DACNF_TXADD7_Pos (15UL) /*!< Position of TXADD7 field. */
+#define RADIO_DACNF_TXADD7_Msk (0x1UL << RADIO_DACNF_TXADD7_Pos) /*!< Bit mask of TXADD7 field. */
+
+/* Bit 14 : TxAdd for device address 6 */
+#define RADIO_DACNF_TXADD6_Pos (14UL) /*!< Position of TXADD6 field. */
+#define RADIO_DACNF_TXADD6_Msk (0x1UL << RADIO_DACNF_TXADD6_Pos) /*!< Bit mask of TXADD6 field. */
+
+/* Bit 13 : TxAdd for device address 5 */
+#define RADIO_DACNF_TXADD5_Pos (13UL) /*!< Position of TXADD5 field. */
+#define RADIO_DACNF_TXADD5_Msk (0x1UL << RADIO_DACNF_TXADD5_Pos) /*!< Bit mask of TXADD5 field. */
+
+/* Bit 12 : TxAdd for device address 4 */
+#define RADIO_DACNF_TXADD4_Pos (12UL) /*!< Position of TXADD4 field. */
+#define RADIO_DACNF_TXADD4_Msk (0x1UL << RADIO_DACNF_TXADD4_Pos) /*!< Bit mask of TXADD4 field. */
+
+/* Bit 11 : TxAdd for device address 3 */
+#define RADIO_DACNF_TXADD3_Pos (11UL) /*!< Position of TXADD3 field. */
+#define RADIO_DACNF_TXADD3_Msk (0x1UL << RADIO_DACNF_TXADD3_Pos) /*!< Bit mask of TXADD3 field. */
+
+/* Bit 10 : TxAdd for device address 2 */
+#define RADIO_DACNF_TXADD2_Pos (10UL) /*!< Position of TXADD2 field. */
+#define RADIO_DACNF_TXADD2_Msk (0x1UL << RADIO_DACNF_TXADD2_Pos) /*!< Bit mask of TXADD2 field. */
+
+/* Bit 9 : TxAdd for device address 1 */
+#define RADIO_DACNF_TXADD1_Pos (9UL) /*!< Position of TXADD1 field. */
+#define RADIO_DACNF_TXADD1_Msk (0x1UL << RADIO_DACNF_TXADD1_Pos) /*!< Bit mask of TXADD1 field. */
+
+/* Bit 8 : TxAdd for device address 0 */
+#define RADIO_DACNF_TXADD0_Pos (8UL) /*!< Position of TXADD0 field. */
+#define RADIO_DACNF_TXADD0_Msk (0x1UL << RADIO_DACNF_TXADD0_Pos) /*!< Bit mask of TXADD0 field. */
+
+/* Bit 7 : Enable or disable device address matching using device address 7 */
+#define RADIO_DACNF_ENA7_Pos (7UL) /*!< Position of ENA7 field. */
+#define RADIO_DACNF_ENA7_Msk (0x1UL << RADIO_DACNF_ENA7_Pos) /*!< Bit mask of ENA7 field. */
+#define RADIO_DACNF_ENA7_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA7_Enabled (1UL) /*!< Enabled */
+
+/* Bit 6 : Enable or disable device address matching using device address 6 */
+#define RADIO_DACNF_ENA6_Pos (6UL) /*!< Position of ENA6 field. */
+#define RADIO_DACNF_ENA6_Msk (0x1UL << RADIO_DACNF_ENA6_Pos) /*!< Bit mask of ENA6 field. */
+#define RADIO_DACNF_ENA6_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA6_Enabled (1UL) /*!< Enabled */
+
+/* Bit 5 : Enable or disable device address matching using device address 5 */
+#define RADIO_DACNF_ENA5_Pos (5UL) /*!< Position of ENA5 field. */
+#define RADIO_DACNF_ENA5_Msk (0x1UL << RADIO_DACNF_ENA5_Pos) /*!< Bit mask of ENA5 field. */
+#define RADIO_DACNF_ENA5_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA5_Enabled (1UL) /*!< Enabled */
+
+/* Bit 4 : Enable or disable device address matching using device address 4 */
+#define RADIO_DACNF_ENA4_Pos (4UL) /*!< Position of ENA4 field. */
+#define RADIO_DACNF_ENA4_Msk (0x1UL << RADIO_DACNF_ENA4_Pos) /*!< Bit mask of ENA4 field. */
+#define RADIO_DACNF_ENA4_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA4_Enabled (1UL) /*!< Enabled */
+
+/* Bit 3 : Enable or disable device address matching using device address 3 */
+#define RADIO_DACNF_ENA3_Pos (3UL) /*!< Position of ENA3 field. */
+#define RADIO_DACNF_ENA3_Msk (0x1UL << RADIO_DACNF_ENA3_Pos) /*!< Bit mask of ENA3 field. */
+#define RADIO_DACNF_ENA3_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA3_Enabled (1UL) /*!< Enabled */
+
+/* Bit 2 : Enable or disable device address matching using device address 2 */
+#define RADIO_DACNF_ENA2_Pos (2UL) /*!< Position of ENA2 field. */
+#define RADIO_DACNF_ENA2_Msk (0x1UL << RADIO_DACNF_ENA2_Pos) /*!< Bit mask of ENA2 field. */
+#define RADIO_DACNF_ENA2_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA2_Enabled (1UL) /*!< Enabled */
+
+/* Bit 1 : Enable or disable device address matching using device address 1 */
+#define RADIO_DACNF_ENA1_Pos (1UL) /*!< Position of ENA1 field. */
+#define RADIO_DACNF_ENA1_Msk (0x1UL << RADIO_DACNF_ENA1_Pos) /*!< Bit mask of ENA1 field. */
+#define RADIO_DACNF_ENA1_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA1_Enabled (1UL) /*!< Enabled */
+
+/* Bit 0 : Enable or disable device address matching using device address 0 */
+#define RADIO_DACNF_ENA0_Pos (0UL) /*!< Position of ENA0 field. */
+#define RADIO_DACNF_ENA0_Msk (0x1UL << RADIO_DACNF_ENA0_Pos) /*!< Bit mask of ENA0 field. */
+#define RADIO_DACNF_ENA0_Disabled (0UL) /*!< Disabled */
+#define RADIO_DACNF_ENA0_Enabled (1UL) /*!< Enabled */
+
+/* Register: RADIO_MODECNF0 */
+/* Description: Radio mode configuration register 0 */
+
+/* Bits 9..8 : Default TX value */
+#define RADIO_MODECNF0_DTX_Pos (8UL) /*!< Position of DTX field. */
+#define RADIO_MODECNF0_DTX_Msk (0x3UL << RADIO_MODECNF0_DTX_Pos) /*!< Bit mask of DTX field. */
+#define RADIO_MODECNF0_DTX_B1 (0UL) /*!< Transmit '1' */
+#define RADIO_MODECNF0_DTX_B0 (1UL) /*!< Transmit '0' */
+#define RADIO_MODECNF0_DTX_Center (2UL) /*!< Transmit center frequency */
+
+/* Bit 0 : Radio ramp-up time */
+#define RADIO_MODECNF0_RU_Pos (0UL) /*!< Position of RU field. */
+#define RADIO_MODECNF0_RU_Msk (0x1UL << RADIO_MODECNF0_RU_Pos) /*!< Bit mask of RU field. */
+#define RADIO_MODECNF0_RU_Default (0UL) /*!< Default ramp-up time (tRXEN), compatible with firmware written for nRF51 */
+#define RADIO_MODECNF0_RU_Fast (1UL) /*!< Fast ramp-up (tRXEN,FAST), see electrical specification for more information */
+
+/* Register: RADIO_POWER */
+/* Description: Peripheral power control */
+
+/* Bit 0 : Peripheral power control. The peripheral and its registers will be reset to its initial state by switching the peripheral off and then back on again. */
+#define RADIO_POWER_POWER_Pos (0UL) /*!< Position of POWER field. */
+#define RADIO_POWER_POWER_Msk (0x1UL << RADIO_POWER_POWER_Pos) /*!< Bit mask of POWER field. */
+#define RADIO_POWER_POWER_Disabled (0UL) /*!< Peripheral is powered off */
+#define RADIO_POWER_POWER_Enabled (1UL) /*!< Peripheral is powered on */
+
+
+/* Peripheral: RNG */
+/* Description: Random Number Generator */
+
+/* Register: RNG_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 0 : Shortcut between VALRDY event and STOP task */
+#define RNG_SHORTS_VALRDY_STOP_Pos (0UL) /*!< Position of VALRDY_STOP field. */
+#define RNG_SHORTS_VALRDY_STOP_Msk (0x1UL << RNG_SHORTS_VALRDY_STOP_Pos) /*!< Bit mask of VALRDY_STOP field. */
+#define RNG_SHORTS_VALRDY_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define RNG_SHORTS_VALRDY_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: RNG_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 0 : Write '1' to Enable interrupt for VALRDY event */
+#define RNG_INTENSET_VALRDY_Pos (0UL) /*!< Position of VALRDY field. */
+#define RNG_INTENSET_VALRDY_Msk (0x1UL << RNG_INTENSET_VALRDY_Pos) /*!< Bit mask of VALRDY field. */
+#define RNG_INTENSET_VALRDY_Disabled (0UL) /*!< Read: Disabled */
+#define RNG_INTENSET_VALRDY_Enabled (1UL) /*!< Read: Enabled */
+#define RNG_INTENSET_VALRDY_Set (1UL) /*!< Enable */
+
+/* Register: RNG_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 0 : Write '1' to Disable interrupt for VALRDY event */
+#define RNG_INTENCLR_VALRDY_Pos (0UL) /*!< Position of VALRDY field. */
+#define RNG_INTENCLR_VALRDY_Msk (0x1UL << RNG_INTENCLR_VALRDY_Pos) /*!< Bit mask of VALRDY field. */
+#define RNG_INTENCLR_VALRDY_Disabled (0UL) /*!< Read: Disabled */
+#define RNG_INTENCLR_VALRDY_Enabled (1UL) /*!< Read: Enabled */
+#define RNG_INTENCLR_VALRDY_Clear (1UL) /*!< Disable */
+
+/* Register: RNG_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 0 : Bias correction */
+#define RNG_CONFIG_DERCEN_Pos (0UL) /*!< Position of DERCEN field. */
+#define RNG_CONFIG_DERCEN_Msk (0x1UL << RNG_CONFIG_DERCEN_Pos) /*!< Bit mask of DERCEN field. */
+#define RNG_CONFIG_DERCEN_Disabled (0UL) /*!< Disabled */
+#define RNG_CONFIG_DERCEN_Enabled (1UL) /*!< Enabled */
+
+/* Register: RNG_VALUE */
+/* Description: Output random number */
+
+/* Bits 7..0 : Generated random number */
+#define RNG_VALUE_VALUE_Pos (0UL) /*!< Position of VALUE field. */
+#define RNG_VALUE_VALUE_Msk (0xFFUL << RNG_VALUE_VALUE_Pos) /*!< Bit mask of VALUE field. */
+
+
+/* Peripheral: RTC */
+/* Description: Real time counter 0 */
+
+/* Register: RTC_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 19 : Write '1' to Enable interrupt for COMPARE[3] event */
+#define RTC_INTENSET_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_INTENSET_COMPARE3_Msk (0x1UL << RTC_INTENSET_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_INTENSET_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_COMPARE3_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to Enable interrupt for COMPARE[2] event */
+#define RTC_INTENSET_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_INTENSET_COMPARE2_Msk (0x1UL << RTC_INTENSET_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_INTENSET_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_COMPARE2_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to Enable interrupt for COMPARE[1] event */
+#define RTC_INTENSET_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_INTENSET_COMPARE1_Msk (0x1UL << RTC_INTENSET_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_INTENSET_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_COMPARE1_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to Enable interrupt for COMPARE[0] event */
+#define RTC_INTENSET_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_INTENSET_COMPARE0_Msk (0x1UL << RTC_INTENSET_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_INTENSET_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_COMPARE0_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for OVRFLW event */
+#define RTC_INTENSET_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_INTENSET_OVRFLW_Msk (0x1UL << RTC_INTENSET_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_INTENSET_OVRFLW_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_OVRFLW_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_OVRFLW_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for TICK event */
+#define RTC_INTENSET_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_INTENSET_TICK_Msk (0x1UL << RTC_INTENSET_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_INTENSET_TICK_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENSET_TICK_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENSET_TICK_Set (1UL) /*!< Enable */
+
+/* Register: RTC_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 19 : Write '1' to Disable interrupt for COMPARE[3] event */
+#define RTC_INTENCLR_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_INTENCLR_COMPARE3_Msk (0x1UL << RTC_INTENCLR_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_INTENCLR_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_COMPARE3_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to Disable interrupt for COMPARE[2] event */
+#define RTC_INTENCLR_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_INTENCLR_COMPARE2_Msk (0x1UL << RTC_INTENCLR_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_INTENCLR_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_COMPARE2_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to Disable interrupt for COMPARE[1] event */
+#define RTC_INTENCLR_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_INTENCLR_COMPARE1_Msk (0x1UL << RTC_INTENCLR_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_INTENCLR_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_COMPARE1_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to Disable interrupt for COMPARE[0] event */
+#define RTC_INTENCLR_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_INTENCLR_COMPARE0_Msk (0x1UL << RTC_INTENCLR_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_INTENCLR_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_COMPARE0_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for OVRFLW event */
+#define RTC_INTENCLR_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_INTENCLR_OVRFLW_Msk (0x1UL << RTC_INTENCLR_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_INTENCLR_OVRFLW_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_OVRFLW_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_OVRFLW_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for TICK event */
+#define RTC_INTENCLR_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_INTENCLR_TICK_Msk (0x1UL << RTC_INTENCLR_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_INTENCLR_TICK_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_INTENCLR_TICK_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_INTENCLR_TICK_Clear (1UL) /*!< Disable */
+
+/* Register: RTC_EVTEN */
+/* Description: Enable or disable event routing */
+
+/* Bit 19 : Enable or disable event routing for COMPARE[3] event */
+#define RTC_EVTEN_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_EVTEN_COMPARE3_Msk (0x1UL << RTC_EVTEN_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_EVTEN_COMPARE3_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_COMPARE3_Enabled (1UL) /*!< Enable */
+
+/* Bit 18 : Enable or disable event routing for COMPARE[2] event */
+#define RTC_EVTEN_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_EVTEN_COMPARE2_Msk (0x1UL << RTC_EVTEN_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_EVTEN_COMPARE2_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_COMPARE2_Enabled (1UL) /*!< Enable */
+
+/* Bit 17 : Enable or disable event routing for COMPARE[1] event */
+#define RTC_EVTEN_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_EVTEN_COMPARE1_Msk (0x1UL << RTC_EVTEN_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_EVTEN_COMPARE1_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_COMPARE1_Enabled (1UL) /*!< Enable */
+
+/* Bit 16 : Enable or disable event routing for COMPARE[0] event */
+#define RTC_EVTEN_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_EVTEN_COMPARE0_Msk (0x1UL << RTC_EVTEN_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_EVTEN_COMPARE0_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_COMPARE0_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable event routing for OVRFLW event */
+#define RTC_EVTEN_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_EVTEN_OVRFLW_Msk (0x1UL << RTC_EVTEN_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_EVTEN_OVRFLW_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_OVRFLW_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable event routing for TICK event */
+#define RTC_EVTEN_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_EVTEN_TICK_Msk (0x1UL << RTC_EVTEN_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_EVTEN_TICK_Disabled (0UL) /*!< Disable */
+#define RTC_EVTEN_TICK_Enabled (1UL) /*!< Enable */
+
+/* Register: RTC_EVTENSET */
+/* Description: Enable event routing */
+
+/* Bit 19 : Write '1' to Enable event routing for COMPARE[3] event */
+#define RTC_EVTENSET_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_EVTENSET_COMPARE3_Msk (0x1UL << RTC_EVTENSET_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_EVTENSET_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_COMPARE3_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to Enable event routing for COMPARE[2] event */
+#define RTC_EVTENSET_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_EVTENSET_COMPARE2_Msk (0x1UL << RTC_EVTENSET_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_EVTENSET_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_COMPARE2_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to Enable event routing for COMPARE[1] event */
+#define RTC_EVTENSET_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_EVTENSET_COMPARE1_Msk (0x1UL << RTC_EVTENSET_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_EVTENSET_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_COMPARE1_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to Enable event routing for COMPARE[0] event */
+#define RTC_EVTENSET_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_EVTENSET_COMPARE0_Msk (0x1UL << RTC_EVTENSET_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_EVTENSET_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_COMPARE0_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable event routing for OVRFLW event */
+#define RTC_EVTENSET_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_EVTENSET_OVRFLW_Msk (0x1UL << RTC_EVTENSET_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_EVTENSET_OVRFLW_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_OVRFLW_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_OVRFLW_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable event routing for TICK event */
+#define RTC_EVTENSET_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_EVTENSET_TICK_Msk (0x1UL << RTC_EVTENSET_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_EVTENSET_TICK_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENSET_TICK_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENSET_TICK_Set (1UL) /*!< Enable */
+
+/* Register: RTC_EVTENCLR */
+/* Description: Disable event routing */
+
+/* Bit 19 : Write '1' to Disable event routing for COMPARE[3] event */
+#define RTC_EVTENCLR_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define RTC_EVTENCLR_COMPARE3_Msk (0x1UL << RTC_EVTENCLR_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define RTC_EVTENCLR_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_COMPARE3_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to Disable event routing for COMPARE[2] event */
+#define RTC_EVTENCLR_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define RTC_EVTENCLR_COMPARE2_Msk (0x1UL << RTC_EVTENCLR_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define RTC_EVTENCLR_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_COMPARE2_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to Disable event routing for COMPARE[1] event */
+#define RTC_EVTENCLR_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define RTC_EVTENCLR_COMPARE1_Msk (0x1UL << RTC_EVTENCLR_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define RTC_EVTENCLR_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_COMPARE1_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to Disable event routing for COMPARE[0] event */
+#define RTC_EVTENCLR_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define RTC_EVTENCLR_COMPARE0_Msk (0x1UL << RTC_EVTENCLR_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define RTC_EVTENCLR_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_COMPARE0_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable event routing for OVRFLW event */
+#define RTC_EVTENCLR_OVRFLW_Pos (1UL) /*!< Position of OVRFLW field. */
+#define RTC_EVTENCLR_OVRFLW_Msk (0x1UL << RTC_EVTENCLR_OVRFLW_Pos) /*!< Bit mask of OVRFLW field. */
+#define RTC_EVTENCLR_OVRFLW_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_OVRFLW_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_OVRFLW_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable event routing for TICK event */
+#define RTC_EVTENCLR_TICK_Pos (0UL) /*!< Position of TICK field. */
+#define RTC_EVTENCLR_TICK_Msk (0x1UL << RTC_EVTENCLR_TICK_Pos) /*!< Bit mask of TICK field. */
+#define RTC_EVTENCLR_TICK_Disabled (0UL) /*!< Read: Disabled */
+#define RTC_EVTENCLR_TICK_Enabled (1UL) /*!< Read: Enabled */
+#define RTC_EVTENCLR_TICK_Clear (1UL) /*!< Disable */
+
+/* Register: RTC_COUNTER */
+/* Description: Current COUNTER value */
+
+/* Bits 23..0 : Counter value */
+#define RTC_COUNTER_COUNTER_Pos (0UL) /*!< Position of COUNTER field. */
+#define RTC_COUNTER_COUNTER_Msk (0xFFFFFFUL << RTC_COUNTER_COUNTER_Pos) /*!< Bit mask of COUNTER field. */
+
+/* Register: RTC_PRESCALER */
+/* Description: 12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must be written when RTC is stopped */
+
+/* Bits 11..0 : Prescaler value */
+#define RTC_PRESCALER_PRESCALER_Pos (0UL) /*!< Position of PRESCALER field. */
+#define RTC_PRESCALER_PRESCALER_Msk (0xFFFUL << RTC_PRESCALER_PRESCALER_Pos) /*!< Bit mask of PRESCALER field. */
+
+/* Register: RTC_CC */
+/* Description: Description collection[0]: Compare register 0 */
+
+/* Bits 23..0 : Compare value */
+#define RTC_CC_COMPARE_Pos (0UL) /*!< Position of COMPARE field. */
+#define RTC_CC_COMPARE_Msk (0xFFFFFFUL << RTC_CC_COMPARE_Pos) /*!< Bit mask of COMPARE field. */
+
+
+/* Peripheral: SAADC */
+/* Description: Analog to Digital Converter */
+
+/* Register: SAADC_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 21 : Enable or disable interrupt for CH[7].LIMITL event */
+#define SAADC_INTEN_CH7LIMITL_Pos (21UL) /*!< Position of CH7LIMITL field. */
+#define SAADC_INTEN_CH7LIMITL_Msk (0x1UL << SAADC_INTEN_CH7LIMITL_Pos) /*!< Bit mask of CH7LIMITL field. */
+#define SAADC_INTEN_CH7LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH7LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for CH[7].LIMITH event */
+#define SAADC_INTEN_CH7LIMITH_Pos (20UL) /*!< Position of CH7LIMITH field. */
+#define SAADC_INTEN_CH7LIMITH_Msk (0x1UL << SAADC_INTEN_CH7LIMITH_Pos) /*!< Bit mask of CH7LIMITH field. */
+#define SAADC_INTEN_CH7LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH7LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for CH[6].LIMITL event */
+#define SAADC_INTEN_CH6LIMITL_Pos (19UL) /*!< Position of CH6LIMITL field. */
+#define SAADC_INTEN_CH6LIMITL_Msk (0x1UL << SAADC_INTEN_CH6LIMITL_Pos) /*!< Bit mask of CH6LIMITL field. */
+#define SAADC_INTEN_CH6LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH6LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 18 : Enable or disable interrupt for CH[6].LIMITH event */
+#define SAADC_INTEN_CH6LIMITH_Pos (18UL) /*!< Position of CH6LIMITH field. */
+#define SAADC_INTEN_CH6LIMITH_Msk (0x1UL << SAADC_INTEN_CH6LIMITH_Pos) /*!< Bit mask of CH6LIMITH field. */
+#define SAADC_INTEN_CH6LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH6LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 17 : Enable or disable interrupt for CH[5].LIMITL event */
+#define SAADC_INTEN_CH5LIMITL_Pos (17UL) /*!< Position of CH5LIMITL field. */
+#define SAADC_INTEN_CH5LIMITL_Msk (0x1UL << SAADC_INTEN_CH5LIMITL_Pos) /*!< Bit mask of CH5LIMITL field. */
+#define SAADC_INTEN_CH5LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH5LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 16 : Enable or disable interrupt for CH[5].LIMITH event */
+#define SAADC_INTEN_CH5LIMITH_Pos (16UL) /*!< Position of CH5LIMITH field. */
+#define SAADC_INTEN_CH5LIMITH_Msk (0x1UL << SAADC_INTEN_CH5LIMITH_Pos) /*!< Bit mask of CH5LIMITH field. */
+#define SAADC_INTEN_CH5LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH5LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 15 : Enable or disable interrupt for CH[4].LIMITL event */
+#define SAADC_INTEN_CH4LIMITL_Pos (15UL) /*!< Position of CH4LIMITL field. */
+#define SAADC_INTEN_CH4LIMITL_Msk (0x1UL << SAADC_INTEN_CH4LIMITL_Pos) /*!< Bit mask of CH4LIMITL field. */
+#define SAADC_INTEN_CH4LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH4LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 14 : Enable or disable interrupt for CH[4].LIMITH event */
+#define SAADC_INTEN_CH4LIMITH_Pos (14UL) /*!< Position of CH4LIMITH field. */
+#define SAADC_INTEN_CH4LIMITH_Msk (0x1UL << SAADC_INTEN_CH4LIMITH_Pos) /*!< Bit mask of CH4LIMITH field. */
+#define SAADC_INTEN_CH4LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH4LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 13 : Enable or disable interrupt for CH[3].LIMITL event */
+#define SAADC_INTEN_CH3LIMITL_Pos (13UL) /*!< Position of CH3LIMITL field. */
+#define SAADC_INTEN_CH3LIMITL_Msk (0x1UL << SAADC_INTEN_CH3LIMITL_Pos) /*!< Bit mask of CH3LIMITL field. */
+#define SAADC_INTEN_CH3LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH3LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 12 : Enable or disable interrupt for CH[3].LIMITH event */
+#define SAADC_INTEN_CH3LIMITH_Pos (12UL) /*!< Position of CH3LIMITH field. */
+#define SAADC_INTEN_CH3LIMITH_Msk (0x1UL << SAADC_INTEN_CH3LIMITH_Pos) /*!< Bit mask of CH3LIMITH field. */
+#define SAADC_INTEN_CH3LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH3LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 11 : Enable or disable interrupt for CH[2].LIMITL event */
+#define SAADC_INTEN_CH2LIMITL_Pos (11UL) /*!< Position of CH2LIMITL field. */
+#define SAADC_INTEN_CH2LIMITL_Msk (0x1UL << SAADC_INTEN_CH2LIMITL_Pos) /*!< Bit mask of CH2LIMITL field. */
+#define SAADC_INTEN_CH2LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH2LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 10 : Enable or disable interrupt for CH[2].LIMITH event */
+#define SAADC_INTEN_CH2LIMITH_Pos (10UL) /*!< Position of CH2LIMITH field. */
+#define SAADC_INTEN_CH2LIMITH_Msk (0x1UL << SAADC_INTEN_CH2LIMITH_Pos) /*!< Bit mask of CH2LIMITH field. */
+#define SAADC_INTEN_CH2LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH2LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for CH[1].LIMITL event */
+#define SAADC_INTEN_CH1LIMITL_Pos (9UL) /*!< Position of CH1LIMITL field. */
+#define SAADC_INTEN_CH1LIMITL_Msk (0x1UL << SAADC_INTEN_CH1LIMITL_Pos) /*!< Bit mask of CH1LIMITL field. */
+#define SAADC_INTEN_CH1LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH1LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 8 : Enable or disable interrupt for CH[1].LIMITH event */
+#define SAADC_INTEN_CH1LIMITH_Pos (8UL) /*!< Position of CH1LIMITH field. */
+#define SAADC_INTEN_CH1LIMITH_Msk (0x1UL << SAADC_INTEN_CH1LIMITH_Pos) /*!< Bit mask of CH1LIMITH field. */
+#define SAADC_INTEN_CH1LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH1LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for CH[0].LIMITL event */
+#define SAADC_INTEN_CH0LIMITL_Pos (7UL) /*!< Position of CH0LIMITL field. */
+#define SAADC_INTEN_CH0LIMITL_Msk (0x1UL << SAADC_INTEN_CH0LIMITL_Pos) /*!< Bit mask of CH0LIMITL field. */
+#define SAADC_INTEN_CH0LIMITL_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH0LIMITL_Enabled (1UL) /*!< Enable */
+
+/* Bit 6 : Enable or disable interrupt for CH[0].LIMITH event */
+#define SAADC_INTEN_CH0LIMITH_Pos (6UL) /*!< Position of CH0LIMITH field. */
+#define SAADC_INTEN_CH0LIMITH_Msk (0x1UL << SAADC_INTEN_CH0LIMITH_Pos) /*!< Bit mask of CH0LIMITH field. */
+#define SAADC_INTEN_CH0LIMITH_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CH0LIMITH_Enabled (1UL) /*!< Enable */
+
+/* Bit 5 : Enable or disable interrupt for STOPPED event */
+#define SAADC_INTEN_STOPPED_Pos (5UL) /*!< Position of STOPPED field. */
+#define SAADC_INTEN_STOPPED_Msk (0x1UL << SAADC_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SAADC_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for CALIBRATEDONE event */
+#define SAADC_INTEN_CALIBRATEDONE_Pos (4UL) /*!< Position of CALIBRATEDONE field. */
+#define SAADC_INTEN_CALIBRATEDONE_Msk (0x1UL << SAADC_INTEN_CALIBRATEDONE_Pos) /*!< Bit mask of CALIBRATEDONE field. */
+#define SAADC_INTEN_CALIBRATEDONE_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_CALIBRATEDONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 3 : Enable or disable interrupt for RESULTDONE event */
+#define SAADC_INTEN_RESULTDONE_Pos (3UL) /*!< Position of RESULTDONE field. */
+#define SAADC_INTEN_RESULTDONE_Msk (0x1UL << SAADC_INTEN_RESULTDONE_Pos) /*!< Bit mask of RESULTDONE field. */
+#define SAADC_INTEN_RESULTDONE_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_RESULTDONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for DONE event */
+#define SAADC_INTEN_DONE_Pos (2UL) /*!< Position of DONE field. */
+#define SAADC_INTEN_DONE_Msk (0x1UL << SAADC_INTEN_DONE_Pos) /*!< Bit mask of DONE field. */
+#define SAADC_INTEN_DONE_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_DONE_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for END event */
+#define SAADC_INTEN_END_Pos (1UL) /*!< Position of END field. */
+#define SAADC_INTEN_END_Msk (0x1UL << SAADC_INTEN_END_Pos) /*!< Bit mask of END field. */
+#define SAADC_INTEN_END_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_END_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for STARTED event */
+#define SAADC_INTEN_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define SAADC_INTEN_STARTED_Msk (0x1UL << SAADC_INTEN_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SAADC_INTEN_STARTED_Disabled (0UL) /*!< Disable */
+#define SAADC_INTEN_STARTED_Enabled (1UL) /*!< Enable */
+
+/* Register: SAADC_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 21 : Write '1' to Enable interrupt for CH[7].LIMITL event */
+#define SAADC_INTENSET_CH7LIMITL_Pos (21UL) /*!< Position of CH7LIMITL field. */
+#define SAADC_INTENSET_CH7LIMITL_Msk (0x1UL << SAADC_INTENSET_CH7LIMITL_Pos) /*!< Bit mask of CH7LIMITL field. */
+#define SAADC_INTENSET_CH7LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH7LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH7LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to Enable interrupt for CH[7].LIMITH event */
+#define SAADC_INTENSET_CH7LIMITH_Pos (20UL) /*!< Position of CH7LIMITH field. */
+#define SAADC_INTENSET_CH7LIMITH_Msk (0x1UL << SAADC_INTENSET_CH7LIMITH_Pos) /*!< Bit mask of CH7LIMITH field. */
+#define SAADC_INTENSET_CH7LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH7LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH7LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to Enable interrupt for CH[6].LIMITL event */
+#define SAADC_INTENSET_CH6LIMITL_Pos (19UL) /*!< Position of CH6LIMITL field. */
+#define SAADC_INTENSET_CH6LIMITL_Msk (0x1UL << SAADC_INTENSET_CH6LIMITL_Pos) /*!< Bit mask of CH6LIMITL field. */
+#define SAADC_INTENSET_CH6LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH6LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH6LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to Enable interrupt for CH[6].LIMITH event */
+#define SAADC_INTENSET_CH6LIMITH_Pos (18UL) /*!< Position of CH6LIMITH field. */
+#define SAADC_INTENSET_CH6LIMITH_Msk (0x1UL << SAADC_INTENSET_CH6LIMITH_Pos) /*!< Bit mask of CH6LIMITH field. */
+#define SAADC_INTENSET_CH6LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH6LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH6LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to Enable interrupt for CH[5].LIMITL event */
+#define SAADC_INTENSET_CH5LIMITL_Pos (17UL) /*!< Position of CH5LIMITL field. */
+#define SAADC_INTENSET_CH5LIMITL_Msk (0x1UL << SAADC_INTENSET_CH5LIMITL_Pos) /*!< Bit mask of CH5LIMITL field. */
+#define SAADC_INTENSET_CH5LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH5LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH5LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to Enable interrupt for CH[5].LIMITH event */
+#define SAADC_INTENSET_CH5LIMITH_Pos (16UL) /*!< Position of CH5LIMITH field. */
+#define SAADC_INTENSET_CH5LIMITH_Msk (0x1UL << SAADC_INTENSET_CH5LIMITH_Pos) /*!< Bit mask of CH5LIMITH field. */
+#define SAADC_INTENSET_CH5LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH5LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH5LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 15 : Write '1' to Enable interrupt for CH[4].LIMITL event */
+#define SAADC_INTENSET_CH4LIMITL_Pos (15UL) /*!< Position of CH4LIMITL field. */
+#define SAADC_INTENSET_CH4LIMITL_Msk (0x1UL << SAADC_INTENSET_CH4LIMITL_Pos) /*!< Bit mask of CH4LIMITL field. */
+#define SAADC_INTENSET_CH4LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH4LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH4LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 14 : Write '1' to Enable interrupt for CH[4].LIMITH event */
+#define SAADC_INTENSET_CH4LIMITH_Pos (14UL) /*!< Position of CH4LIMITH field. */
+#define SAADC_INTENSET_CH4LIMITH_Msk (0x1UL << SAADC_INTENSET_CH4LIMITH_Pos) /*!< Bit mask of CH4LIMITH field. */
+#define SAADC_INTENSET_CH4LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH4LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH4LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 13 : Write '1' to Enable interrupt for CH[3].LIMITL event */
+#define SAADC_INTENSET_CH3LIMITL_Pos (13UL) /*!< Position of CH3LIMITL field. */
+#define SAADC_INTENSET_CH3LIMITL_Msk (0x1UL << SAADC_INTENSET_CH3LIMITL_Pos) /*!< Bit mask of CH3LIMITL field. */
+#define SAADC_INTENSET_CH3LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH3LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH3LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 12 : Write '1' to Enable interrupt for CH[3].LIMITH event */
+#define SAADC_INTENSET_CH3LIMITH_Pos (12UL) /*!< Position of CH3LIMITH field. */
+#define SAADC_INTENSET_CH3LIMITH_Msk (0x1UL << SAADC_INTENSET_CH3LIMITH_Pos) /*!< Bit mask of CH3LIMITH field. */
+#define SAADC_INTENSET_CH3LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH3LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH3LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 11 : Write '1' to Enable interrupt for CH[2].LIMITL event */
+#define SAADC_INTENSET_CH2LIMITL_Pos (11UL) /*!< Position of CH2LIMITL field. */
+#define SAADC_INTENSET_CH2LIMITL_Msk (0x1UL << SAADC_INTENSET_CH2LIMITL_Pos) /*!< Bit mask of CH2LIMITL field. */
+#define SAADC_INTENSET_CH2LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH2LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH2LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 10 : Write '1' to Enable interrupt for CH[2].LIMITH event */
+#define SAADC_INTENSET_CH2LIMITH_Pos (10UL) /*!< Position of CH2LIMITH field. */
+#define SAADC_INTENSET_CH2LIMITH_Msk (0x1UL << SAADC_INTENSET_CH2LIMITH_Pos) /*!< Bit mask of CH2LIMITH field. */
+#define SAADC_INTENSET_CH2LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH2LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH2LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to Enable interrupt for CH[1].LIMITL event */
+#define SAADC_INTENSET_CH1LIMITL_Pos (9UL) /*!< Position of CH1LIMITL field. */
+#define SAADC_INTENSET_CH1LIMITL_Msk (0x1UL << SAADC_INTENSET_CH1LIMITL_Pos) /*!< Bit mask of CH1LIMITL field. */
+#define SAADC_INTENSET_CH1LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH1LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH1LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to Enable interrupt for CH[1].LIMITH event */
+#define SAADC_INTENSET_CH1LIMITH_Pos (8UL) /*!< Position of CH1LIMITH field. */
+#define SAADC_INTENSET_CH1LIMITH_Msk (0x1UL << SAADC_INTENSET_CH1LIMITH_Pos) /*!< Bit mask of CH1LIMITH field. */
+#define SAADC_INTENSET_CH1LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH1LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH1LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for CH[0].LIMITL event */
+#define SAADC_INTENSET_CH0LIMITL_Pos (7UL) /*!< Position of CH0LIMITL field. */
+#define SAADC_INTENSET_CH0LIMITL_Msk (0x1UL << SAADC_INTENSET_CH0LIMITL_Pos) /*!< Bit mask of CH0LIMITL field. */
+#define SAADC_INTENSET_CH0LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH0LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH0LIMITL_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for CH[0].LIMITH event */
+#define SAADC_INTENSET_CH0LIMITH_Pos (6UL) /*!< Position of CH0LIMITH field. */
+#define SAADC_INTENSET_CH0LIMITH_Msk (0x1UL << SAADC_INTENSET_CH0LIMITH_Pos) /*!< Bit mask of CH0LIMITH field. */
+#define SAADC_INTENSET_CH0LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CH0LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CH0LIMITH_Set (1UL) /*!< Enable */
+
+/* Bit 5 : Write '1' to Enable interrupt for STOPPED event */
+#define SAADC_INTENSET_STOPPED_Pos (5UL) /*!< Position of STOPPED field. */
+#define SAADC_INTENSET_STOPPED_Msk (0x1UL << SAADC_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SAADC_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for CALIBRATEDONE event */
+#define SAADC_INTENSET_CALIBRATEDONE_Pos (4UL) /*!< Position of CALIBRATEDONE field. */
+#define SAADC_INTENSET_CALIBRATEDONE_Msk (0x1UL << SAADC_INTENSET_CALIBRATEDONE_Pos) /*!< Bit mask of CALIBRATEDONE field. */
+#define SAADC_INTENSET_CALIBRATEDONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_CALIBRATEDONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_CALIBRATEDONE_Set (1UL) /*!< Enable */
+
+/* Bit 3 : Write '1' to Enable interrupt for RESULTDONE event */
+#define SAADC_INTENSET_RESULTDONE_Pos (3UL) /*!< Position of RESULTDONE field. */
+#define SAADC_INTENSET_RESULTDONE_Msk (0x1UL << SAADC_INTENSET_RESULTDONE_Pos) /*!< Bit mask of RESULTDONE field. */
+#define SAADC_INTENSET_RESULTDONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_RESULTDONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_RESULTDONE_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for DONE event */
+#define SAADC_INTENSET_DONE_Pos (2UL) /*!< Position of DONE field. */
+#define SAADC_INTENSET_DONE_Msk (0x1UL << SAADC_INTENSET_DONE_Pos) /*!< Bit mask of DONE field. */
+#define SAADC_INTENSET_DONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_DONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_DONE_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for END event */
+#define SAADC_INTENSET_END_Pos (1UL) /*!< Position of END field. */
+#define SAADC_INTENSET_END_Msk (0x1UL << SAADC_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define SAADC_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for STARTED event */
+#define SAADC_INTENSET_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define SAADC_INTENSET_STARTED_Msk (0x1UL << SAADC_INTENSET_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SAADC_INTENSET_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENSET_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENSET_STARTED_Set (1UL) /*!< Enable */
+
+/* Register: SAADC_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 21 : Write '1' to Disable interrupt for CH[7].LIMITL event */
+#define SAADC_INTENCLR_CH7LIMITL_Pos (21UL) /*!< Position of CH7LIMITL field. */
+#define SAADC_INTENCLR_CH7LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH7LIMITL_Pos) /*!< Bit mask of CH7LIMITL field. */
+#define SAADC_INTENCLR_CH7LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH7LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH7LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to Disable interrupt for CH[7].LIMITH event */
+#define SAADC_INTENCLR_CH7LIMITH_Pos (20UL) /*!< Position of CH7LIMITH field. */
+#define SAADC_INTENCLR_CH7LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH7LIMITH_Pos) /*!< Bit mask of CH7LIMITH field. */
+#define SAADC_INTENCLR_CH7LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH7LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH7LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to Disable interrupt for CH[6].LIMITL event */
+#define SAADC_INTENCLR_CH6LIMITL_Pos (19UL) /*!< Position of CH6LIMITL field. */
+#define SAADC_INTENCLR_CH6LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH6LIMITL_Pos) /*!< Bit mask of CH6LIMITL field. */
+#define SAADC_INTENCLR_CH6LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH6LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH6LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to Disable interrupt for CH[6].LIMITH event */
+#define SAADC_INTENCLR_CH6LIMITH_Pos (18UL) /*!< Position of CH6LIMITH field. */
+#define SAADC_INTENCLR_CH6LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH6LIMITH_Pos) /*!< Bit mask of CH6LIMITH field. */
+#define SAADC_INTENCLR_CH6LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH6LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH6LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to Disable interrupt for CH[5].LIMITL event */
+#define SAADC_INTENCLR_CH5LIMITL_Pos (17UL) /*!< Position of CH5LIMITL field. */
+#define SAADC_INTENCLR_CH5LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH5LIMITL_Pos) /*!< Bit mask of CH5LIMITL field. */
+#define SAADC_INTENCLR_CH5LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH5LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH5LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to Disable interrupt for CH[5].LIMITH event */
+#define SAADC_INTENCLR_CH5LIMITH_Pos (16UL) /*!< Position of CH5LIMITH field. */
+#define SAADC_INTENCLR_CH5LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH5LIMITH_Pos) /*!< Bit mask of CH5LIMITH field. */
+#define SAADC_INTENCLR_CH5LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH5LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH5LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 15 : Write '1' to Disable interrupt for CH[4].LIMITL event */
+#define SAADC_INTENCLR_CH4LIMITL_Pos (15UL) /*!< Position of CH4LIMITL field. */
+#define SAADC_INTENCLR_CH4LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH4LIMITL_Pos) /*!< Bit mask of CH4LIMITL field. */
+#define SAADC_INTENCLR_CH4LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH4LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH4LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 14 : Write '1' to Disable interrupt for CH[4].LIMITH event */
+#define SAADC_INTENCLR_CH4LIMITH_Pos (14UL) /*!< Position of CH4LIMITH field. */
+#define SAADC_INTENCLR_CH4LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH4LIMITH_Pos) /*!< Bit mask of CH4LIMITH field. */
+#define SAADC_INTENCLR_CH4LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH4LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH4LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 13 : Write '1' to Disable interrupt for CH[3].LIMITL event */
+#define SAADC_INTENCLR_CH3LIMITL_Pos (13UL) /*!< Position of CH3LIMITL field. */
+#define SAADC_INTENCLR_CH3LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH3LIMITL_Pos) /*!< Bit mask of CH3LIMITL field. */
+#define SAADC_INTENCLR_CH3LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH3LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH3LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 12 : Write '1' to Disable interrupt for CH[3].LIMITH event */
+#define SAADC_INTENCLR_CH3LIMITH_Pos (12UL) /*!< Position of CH3LIMITH field. */
+#define SAADC_INTENCLR_CH3LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH3LIMITH_Pos) /*!< Bit mask of CH3LIMITH field. */
+#define SAADC_INTENCLR_CH3LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH3LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH3LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 11 : Write '1' to Disable interrupt for CH[2].LIMITL event */
+#define SAADC_INTENCLR_CH2LIMITL_Pos (11UL) /*!< Position of CH2LIMITL field. */
+#define SAADC_INTENCLR_CH2LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH2LIMITL_Pos) /*!< Bit mask of CH2LIMITL field. */
+#define SAADC_INTENCLR_CH2LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH2LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH2LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 10 : Write '1' to Disable interrupt for CH[2].LIMITH event */
+#define SAADC_INTENCLR_CH2LIMITH_Pos (10UL) /*!< Position of CH2LIMITH field. */
+#define SAADC_INTENCLR_CH2LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH2LIMITH_Pos) /*!< Bit mask of CH2LIMITH field. */
+#define SAADC_INTENCLR_CH2LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH2LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH2LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to Disable interrupt for CH[1].LIMITL event */
+#define SAADC_INTENCLR_CH1LIMITL_Pos (9UL) /*!< Position of CH1LIMITL field. */
+#define SAADC_INTENCLR_CH1LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH1LIMITL_Pos) /*!< Bit mask of CH1LIMITL field. */
+#define SAADC_INTENCLR_CH1LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH1LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH1LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to Disable interrupt for CH[1].LIMITH event */
+#define SAADC_INTENCLR_CH1LIMITH_Pos (8UL) /*!< Position of CH1LIMITH field. */
+#define SAADC_INTENCLR_CH1LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH1LIMITH_Pos) /*!< Bit mask of CH1LIMITH field. */
+#define SAADC_INTENCLR_CH1LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH1LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH1LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for CH[0].LIMITL event */
+#define SAADC_INTENCLR_CH0LIMITL_Pos (7UL) /*!< Position of CH0LIMITL field. */
+#define SAADC_INTENCLR_CH0LIMITL_Msk (0x1UL << SAADC_INTENCLR_CH0LIMITL_Pos) /*!< Bit mask of CH0LIMITL field. */
+#define SAADC_INTENCLR_CH0LIMITL_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH0LIMITL_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH0LIMITL_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for CH[0].LIMITH event */
+#define SAADC_INTENCLR_CH0LIMITH_Pos (6UL) /*!< Position of CH0LIMITH field. */
+#define SAADC_INTENCLR_CH0LIMITH_Msk (0x1UL << SAADC_INTENCLR_CH0LIMITH_Pos) /*!< Bit mask of CH0LIMITH field. */
+#define SAADC_INTENCLR_CH0LIMITH_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CH0LIMITH_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CH0LIMITH_Clear (1UL) /*!< Disable */
+
+/* Bit 5 : Write '1' to Disable interrupt for STOPPED event */
+#define SAADC_INTENCLR_STOPPED_Pos (5UL) /*!< Position of STOPPED field. */
+#define SAADC_INTENCLR_STOPPED_Msk (0x1UL << SAADC_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SAADC_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for CALIBRATEDONE event */
+#define SAADC_INTENCLR_CALIBRATEDONE_Pos (4UL) /*!< Position of CALIBRATEDONE field. */
+#define SAADC_INTENCLR_CALIBRATEDONE_Msk (0x1UL << SAADC_INTENCLR_CALIBRATEDONE_Pos) /*!< Bit mask of CALIBRATEDONE field. */
+#define SAADC_INTENCLR_CALIBRATEDONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_CALIBRATEDONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_CALIBRATEDONE_Clear (1UL) /*!< Disable */
+
+/* Bit 3 : Write '1' to Disable interrupt for RESULTDONE event */
+#define SAADC_INTENCLR_RESULTDONE_Pos (3UL) /*!< Position of RESULTDONE field. */
+#define SAADC_INTENCLR_RESULTDONE_Msk (0x1UL << SAADC_INTENCLR_RESULTDONE_Pos) /*!< Bit mask of RESULTDONE field. */
+#define SAADC_INTENCLR_RESULTDONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_RESULTDONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_RESULTDONE_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for DONE event */
+#define SAADC_INTENCLR_DONE_Pos (2UL) /*!< Position of DONE field. */
+#define SAADC_INTENCLR_DONE_Msk (0x1UL << SAADC_INTENCLR_DONE_Pos) /*!< Bit mask of DONE field. */
+#define SAADC_INTENCLR_DONE_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_DONE_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_DONE_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for END event */
+#define SAADC_INTENCLR_END_Pos (1UL) /*!< Position of END field. */
+#define SAADC_INTENCLR_END_Msk (0x1UL << SAADC_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define SAADC_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for STARTED event */
+#define SAADC_INTENCLR_STARTED_Pos (0UL) /*!< Position of STARTED field. */
+#define SAADC_INTENCLR_STARTED_Msk (0x1UL << SAADC_INTENCLR_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SAADC_INTENCLR_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define SAADC_INTENCLR_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define SAADC_INTENCLR_STARTED_Clear (1UL) /*!< Disable */
+
+/* Register: SAADC_STATUS */
+/* Description: Status */
+
+/* Bit 0 : Status */
+#define SAADC_STATUS_STATUS_Pos (0UL) /*!< Position of STATUS field. */
+#define SAADC_STATUS_STATUS_Msk (0x1UL << SAADC_STATUS_STATUS_Pos) /*!< Bit mask of STATUS field. */
+#define SAADC_STATUS_STATUS_Ready (0UL) /*!< ADC is ready. No on-going conversion. */
+#define SAADC_STATUS_STATUS_Busy (1UL) /*!< ADC is busy. Conversion in progress. */
+
+/* Register: SAADC_ENABLE */
+/* Description: Enable or disable ADC */
+
+/* Bit 0 : Enable or disable ADC */
+#define SAADC_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SAADC_ENABLE_ENABLE_Msk (0x1UL << SAADC_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SAADC_ENABLE_ENABLE_Disabled (0UL) /*!< Disable ADC */
+#define SAADC_ENABLE_ENABLE_Enabled (1UL) /*!< Enable ADC */
+
+/* Register: SAADC_CH_PSELP */
+/* Description: Description cluster[0]: Input positive pin selection for CH[0] */
+
+/* Bits 4..0 : Analog positive input channel */
+#define SAADC_CH_PSELP_PSELP_Pos (0UL) /*!< Position of PSELP field. */
+#define SAADC_CH_PSELP_PSELP_Msk (0x1FUL << SAADC_CH_PSELP_PSELP_Pos) /*!< Bit mask of PSELP field. */
+#define SAADC_CH_PSELP_PSELP_NC (0UL) /*!< Not connected */
+#define SAADC_CH_PSELP_PSELP_AnalogInput0 (1UL) /*!< AIN0 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput1 (2UL) /*!< AIN1 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput2 (3UL) /*!< AIN2 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput3 (4UL) /*!< AIN3 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput4 (5UL) /*!< AIN4 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput5 (6UL) /*!< AIN5 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput6 (7UL) /*!< AIN6 */
+#define SAADC_CH_PSELP_PSELP_AnalogInput7 (8UL) /*!< AIN7 */
+#define SAADC_CH_PSELP_PSELP_VDD (9UL) /*!< VDD */
+
+/* Register: SAADC_CH_PSELN */
+/* Description: Description cluster[0]: Input negative pin selection for CH[0] */
+
+/* Bits 4..0 : Analog negative input, enables differential channel */
+#define SAADC_CH_PSELN_PSELN_Pos (0UL) /*!< Position of PSELN field. */
+#define SAADC_CH_PSELN_PSELN_Msk (0x1FUL << SAADC_CH_PSELN_PSELN_Pos) /*!< Bit mask of PSELN field. */
+#define SAADC_CH_PSELN_PSELN_NC (0UL) /*!< Not connected */
+#define SAADC_CH_PSELN_PSELN_AnalogInput0 (1UL) /*!< AIN0 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput1 (2UL) /*!< AIN1 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput2 (3UL) /*!< AIN2 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput3 (4UL) /*!< AIN3 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput4 (5UL) /*!< AIN4 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput5 (6UL) /*!< AIN5 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput6 (7UL) /*!< AIN6 */
+#define SAADC_CH_PSELN_PSELN_AnalogInput7 (8UL) /*!< AIN7 */
+#define SAADC_CH_PSELN_PSELN_VDD (9UL) /*!< VDD */
+
+/* Register: SAADC_CH_CONFIG */
+/* Description: Description cluster[0]: Input configuration for CH[0] */
+
+/* Bit 24 : Enable burst mode */
+#define SAADC_CH_CONFIG_BURST_Pos (24UL) /*!< Position of BURST field. */
+#define SAADC_CH_CONFIG_BURST_Msk (0x1UL << SAADC_CH_CONFIG_BURST_Pos) /*!< Bit mask of BURST field. */
+#define SAADC_CH_CONFIG_BURST_Disabled (0UL) /*!< Burst mode is disabled (normal operation) */
+#define SAADC_CH_CONFIG_BURST_Enabled (1UL) /*!< Burst mode is enabled. SAADC takes 2^OVERSAMPLE number of samples as fast as it can, and sends the average to Data RAM. */
+
+/* Bit 20 : Enable differential mode */
+#define SAADC_CH_CONFIG_MODE_Pos (20UL) /*!< Position of MODE field. */
+#define SAADC_CH_CONFIG_MODE_Msk (0x1UL << SAADC_CH_CONFIG_MODE_Pos) /*!< Bit mask of MODE field. */
+#define SAADC_CH_CONFIG_MODE_SE (0UL) /*!< Single ended, PSELN will be ignored, negative input to ADC shorted to GND */
+#define SAADC_CH_CONFIG_MODE_Diff (1UL) /*!< Differential */
+
+/* Bits 18..16 : Acquisition time, the time the ADC uses to sample the input voltage */
+#define SAADC_CH_CONFIG_TACQ_Pos (16UL) /*!< Position of TACQ field. */
+#define SAADC_CH_CONFIG_TACQ_Msk (0x7UL << SAADC_CH_CONFIG_TACQ_Pos) /*!< Bit mask of TACQ field. */
+#define SAADC_CH_CONFIG_TACQ_3us (0UL) /*!< 3 us */
+#define SAADC_CH_CONFIG_TACQ_5us (1UL) /*!< 5 us */
+#define SAADC_CH_CONFIG_TACQ_10us (2UL) /*!< 10 us */
+#define SAADC_CH_CONFIG_TACQ_15us (3UL) /*!< 15 us */
+#define SAADC_CH_CONFIG_TACQ_20us (4UL) /*!< 20 us */
+#define SAADC_CH_CONFIG_TACQ_40us (5UL) /*!< 40 us */
+
+/* Bit 12 : Reference control */
+#define SAADC_CH_CONFIG_REFSEL_Pos (12UL) /*!< Position of REFSEL field. */
+#define SAADC_CH_CONFIG_REFSEL_Msk (0x1UL << SAADC_CH_CONFIG_REFSEL_Pos) /*!< Bit mask of REFSEL field. */
+#define SAADC_CH_CONFIG_REFSEL_Internal (0UL) /*!< Internal reference (0.6 V) */
+#define SAADC_CH_CONFIG_REFSEL_VDD1_4 (1UL) /*!< VDD/4 as reference */
+
+/* Bits 10..8 : Gain control */
+#define SAADC_CH_CONFIG_GAIN_Pos (8UL) /*!< Position of GAIN field. */
+#define SAADC_CH_CONFIG_GAIN_Msk (0x7UL << SAADC_CH_CONFIG_GAIN_Pos) /*!< Bit mask of GAIN field. */
+#define SAADC_CH_CONFIG_GAIN_Gain1_6 (0UL) /*!< 1/6 */
+#define SAADC_CH_CONFIG_GAIN_Gain1_5 (1UL) /*!< 1/5 */
+#define SAADC_CH_CONFIG_GAIN_Gain1_4 (2UL) /*!< 1/4 */
+#define SAADC_CH_CONFIG_GAIN_Gain1_3 (3UL) /*!< 1/3 */
+#define SAADC_CH_CONFIG_GAIN_Gain1_2 (4UL) /*!< 1/2 */
+#define SAADC_CH_CONFIG_GAIN_Gain1 (5UL) /*!< 1 */
+#define SAADC_CH_CONFIG_GAIN_Gain2 (6UL) /*!< 2 */
+#define SAADC_CH_CONFIG_GAIN_Gain4 (7UL) /*!< 4 */
+
+/* Bits 5..4 : Negative channel resistor control */
+#define SAADC_CH_CONFIG_RESN_Pos (4UL) /*!< Position of RESN field. */
+#define SAADC_CH_CONFIG_RESN_Msk (0x3UL << SAADC_CH_CONFIG_RESN_Pos) /*!< Bit mask of RESN field. */
+#define SAADC_CH_CONFIG_RESN_Bypass (0UL) /*!< Bypass resistor ladder */
+#define SAADC_CH_CONFIG_RESN_Pulldown (1UL) /*!< Pull-down to GND */
+#define SAADC_CH_CONFIG_RESN_Pullup (2UL) /*!< Pull-up to VDD */
+#define SAADC_CH_CONFIG_RESN_VDD1_2 (3UL) /*!< Set input at VDD/2 */
+
+/* Bits 1..0 : Positive channel resistor control */
+#define SAADC_CH_CONFIG_RESP_Pos (0UL) /*!< Position of RESP field. */
+#define SAADC_CH_CONFIG_RESP_Msk (0x3UL << SAADC_CH_CONFIG_RESP_Pos) /*!< Bit mask of RESP field. */
+#define SAADC_CH_CONFIG_RESP_Bypass (0UL) /*!< Bypass resistor ladder */
+#define SAADC_CH_CONFIG_RESP_Pulldown (1UL) /*!< Pull-down to GND */
+#define SAADC_CH_CONFIG_RESP_Pullup (2UL) /*!< Pull-up to VDD */
+#define SAADC_CH_CONFIG_RESP_VDD1_2 (3UL) /*!< Set input at VDD/2 */
+
+/* Register: SAADC_CH_LIMIT */
+/* Description: Description cluster[0]: High/low limits for event monitoring a channel */
+
+/* Bits 31..16 : High level limit */
+#define SAADC_CH_LIMIT_HIGH_Pos (16UL) /*!< Position of HIGH field. */
+#define SAADC_CH_LIMIT_HIGH_Msk (0xFFFFUL << SAADC_CH_LIMIT_HIGH_Pos) /*!< Bit mask of HIGH field. */
+
+/* Bits 15..0 : Low level limit */
+#define SAADC_CH_LIMIT_LOW_Pos (0UL) /*!< Position of LOW field. */
+#define SAADC_CH_LIMIT_LOW_Msk (0xFFFFUL << SAADC_CH_LIMIT_LOW_Pos) /*!< Bit mask of LOW field. */
+
+/* Register: SAADC_RESOLUTION */
+/* Description: Resolution configuration */
+
+/* Bits 2..0 : Set the resolution */
+#define SAADC_RESOLUTION_VAL_Pos (0UL) /*!< Position of VAL field. */
+#define SAADC_RESOLUTION_VAL_Msk (0x7UL << SAADC_RESOLUTION_VAL_Pos) /*!< Bit mask of VAL field. */
+#define SAADC_RESOLUTION_VAL_8bit (0UL) /*!< 8 bit */
+#define SAADC_RESOLUTION_VAL_10bit (1UL) /*!< 10 bit */
+#define SAADC_RESOLUTION_VAL_12bit (2UL) /*!< 12 bit */
+#define SAADC_RESOLUTION_VAL_14bit (3UL) /*!< 14 bit */
+
+/* Register: SAADC_OVERSAMPLE */
+/* Description: Oversampling configuration. OVERSAMPLE should not be combined with SCAN. The RESOLUTION is applied before averaging, thus for high OVERSAMPLE a higher RESOLUTION should be used. */
+
+/* Bits 3..0 : Oversample control */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Pos (0UL) /*!< Position of OVERSAMPLE field. */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Msk (0xFUL << SAADC_OVERSAMPLE_OVERSAMPLE_Pos) /*!< Bit mask of OVERSAMPLE field. */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Bypass (0UL) /*!< Bypass oversampling */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over2x (1UL) /*!< Oversample 2x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over4x (2UL) /*!< Oversample 4x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over8x (3UL) /*!< Oversample 8x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over16x (4UL) /*!< Oversample 16x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over32x (5UL) /*!< Oversample 32x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over64x (6UL) /*!< Oversample 64x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over128x (7UL) /*!< Oversample 128x */
+#define SAADC_OVERSAMPLE_OVERSAMPLE_Over256x (8UL) /*!< Oversample 256x */
+
+/* Register: SAADC_SAMPLERATE */
+/* Description: Controls normal or continuous sample rate */
+
+/* Bit 12 : Select mode for sample rate control */
+#define SAADC_SAMPLERATE_MODE_Pos (12UL) /*!< Position of MODE field. */
+#define SAADC_SAMPLERATE_MODE_Msk (0x1UL << SAADC_SAMPLERATE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define SAADC_SAMPLERATE_MODE_Task (0UL) /*!< Rate is controlled from SAMPLE task */
+#define SAADC_SAMPLERATE_MODE_Timers (1UL) /*!< Rate is controlled from local timer (use CC to control the rate) */
+
+/* Bits 10..0 : Capture and compare value. Sample rate is 16 MHz/CC */
+#define SAADC_SAMPLERATE_CC_Pos (0UL) /*!< Position of CC field. */
+#define SAADC_SAMPLERATE_CC_Msk (0x7FFUL << SAADC_SAMPLERATE_CC_Pos) /*!< Bit mask of CC field. */
+
+/* Register: SAADC_RESULT_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define SAADC_RESULT_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SAADC_RESULT_PTR_PTR_Msk (0xFFFFFFFFUL << SAADC_RESULT_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SAADC_RESULT_MAXCNT */
+/* Description: Maximum number of buffer words to transfer */
+
+/* Bits 14..0 : Maximum number of buffer words to transfer */
+#define SAADC_RESULT_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SAADC_RESULT_MAXCNT_MAXCNT_Msk (0x7FFFUL << SAADC_RESULT_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SAADC_RESULT_AMOUNT */
+/* Description: Number of buffer words transferred since last START */
+
+/* Bits 14..0 : Number of buffer words transferred since last START. This register can be read after an END or STOPPED event. */
+#define SAADC_RESULT_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SAADC_RESULT_AMOUNT_AMOUNT_Msk (0x7FFFUL << SAADC_RESULT_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+
+/* Peripheral: SPI */
+/* Description: Serial Peripheral Interface 0 */
+
+/* Register: SPI_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 2 : Write '1' to Enable interrupt for READY event */
+#define SPI_INTENSET_READY_Pos (2UL) /*!< Position of READY field. */
+#define SPI_INTENSET_READY_Msk (0x1UL << SPI_INTENSET_READY_Pos) /*!< Bit mask of READY field. */
+#define SPI_INTENSET_READY_Disabled (0UL) /*!< Read: Disabled */
+#define SPI_INTENSET_READY_Enabled (1UL) /*!< Read: Enabled */
+#define SPI_INTENSET_READY_Set (1UL) /*!< Enable */
+
+/* Register: SPI_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 2 : Write '1' to Disable interrupt for READY event */
+#define SPI_INTENCLR_READY_Pos (2UL) /*!< Position of READY field. */
+#define SPI_INTENCLR_READY_Msk (0x1UL << SPI_INTENCLR_READY_Pos) /*!< Bit mask of READY field. */
+#define SPI_INTENCLR_READY_Disabled (0UL) /*!< Read: Disabled */
+#define SPI_INTENCLR_READY_Enabled (1UL) /*!< Read: Enabled */
+#define SPI_INTENCLR_READY_Clear (1UL) /*!< Disable */
+
+/* Register: SPI_ENABLE */
+/* Description: Enable SPI */
+
+/* Bits 3..0 : Enable or disable SPI */
+#define SPI_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SPI_ENABLE_ENABLE_Msk (0xFUL << SPI_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SPI_ENABLE_ENABLE_Disabled (0UL) /*!< Disable SPI */
+#define SPI_ENABLE_ENABLE_Enabled (1UL) /*!< Enable SPI */
+
+/* Register: SPI_PSEL_SCK */
+/* Description: Pin select for SCK */
+
+/* Bits 31..0 : Pin number configuration for SPI SCK signal */
+#define SPI_PSEL_SCK_PSELSCK_Pos (0UL) /*!< Position of PSELSCK field. */
+#define SPI_PSEL_SCK_PSELSCK_Msk (0xFFFFFFFFUL << SPI_PSEL_SCK_PSELSCK_Pos) /*!< Bit mask of PSELSCK field. */
+#define SPI_PSEL_SCK_PSELSCK_Disconnected (0xFFFFFFFFUL) /*!< Disconnect */
+
+/* Register: SPI_PSEL_MOSI */
+/* Description: Pin select for MOSI */
+
+/* Bits 31..0 : Pin number configuration for SPI MOSI signal */
+#define SPI_PSEL_MOSI_PSELMOSI_Pos (0UL) /*!< Position of PSELMOSI field. */
+#define SPI_PSEL_MOSI_PSELMOSI_Msk (0xFFFFFFFFUL << SPI_PSEL_MOSI_PSELMOSI_Pos) /*!< Bit mask of PSELMOSI field. */
+#define SPI_PSEL_MOSI_PSELMOSI_Disconnected (0xFFFFFFFFUL) /*!< Disconnect */
+
+/* Register: SPI_PSEL_MISO */
+/* Description: Pin select for MISO */
+
+/* Bits 31..0 : Pin number configuration for SPI MISO signal */
+#define SPI_PSEL_MISO_PSELMISO_Pos (0UL) /*!< Position of PSELMISO field. */
+#define SPI_PSEL_MISO_PSELMISO_Msk (0xFFFFFFFFUL << SPI_PSEL_MISO_PSELMISO_Pos) /*!< Bit mask of PSELMISO field. */
+#define SPI_PSEL_MISO_PSELMISO_Disconnected (0xFFFFFFFFUL) /*!< Disconnect */
+
+/* Register: SPI_RXD */
+/* Description: RXD register */
+
+/* Bits 7..0 : RX data received. Double buffered */
+#define SPI_RXD_RXD_Pos (0UL) /*!< Position of RXD field. */
+#define SPI_RXD_RXD_Msk (0xFFUL << SPI_RXD_RXD_Pos) /*!< Bit mask of RXD field. */
+
+/* Register: SPI_TXD */
+/* Description: TXD register */
+
+/* Bits 7..0 : TX data to send. Double buffered */
+#define SPI_TXD_TXD_Pos (0UL) /*!< Position of TXD field. */
+#define SPI_TXD_TXD_Msk (0xFFUL << SPI_TXD_TXD_Pos) /*!< Bit mask of TXD field. */
+
+/* Register: SPI_FREQUENCY */
+/* Description: SPI frequency */
+
+/* Bits 31..0 : SPI master data rate */
+#define SPI_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define SPI_FREQUENCY_FREQUENCY_Msk (0xFFFFFFFFUL << SPI_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+#define SPI_FREQUENCY_FREQUENCY_K125 (0x02000000UL) /*!< 125 kbps */
+#define SPI_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250 kbps */
+#define SPI_FREQUENCY_FREQUENCY_K500 (0x08000000UL) /*!< 500 kbps */
+#define SPI_FREQUENCY_FREQUENCY_M1 (0x10000000UL) /*!< 1 Mbps */
+#define SPI_FREQUENCY_FREQUENCY_M2 (0x20000000UL) /*!< 2 Mbps */
+#define SPI_FREQUENCY_FREQUENCY_M4 (0x40000000UL) /*!< 4 Mbps */
+#define SPI_FREQUENCY_FREQUENCY_M8 (0x80000000UL) /*!< 8 Mbps */
+
+/* Register: SPI_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 2 : Serial clock (SCK) polarity */
+#define SPI_CONFIG_CPOL_Pos (2UL) /*!< Position of CPOL field. */
+#define SPI_CONFIG_CPOL_Msk (0x1UL << SPI_CONFIG_CPOL_Pos) /*!< Bit mask of CPOL field. */
+#define SPI_CONFIG_CPOL_ActiveHigh (0UL) /*!< Active high */
+#define SPI_CONFIG_CPOL_ActiveLow (1UL) /*!< Active low */
+
+/* Bit 1 : Serial clock (SCK) phase */
+#define SPI_CONFIG_CPHA_Pos (1UL) /*!< Position of CPHA field. */
+#define SPI_CONFIG_CPHA_Msk (0x1UL << SPI_CONFIG_CPHA_Pos) /*!< Bit mask of CPHA field. */
+#define SPI_CONFIG_CPHA_Leading (0UL) /*!< Sample on leading edge of clock, shift serial data on trailing edge */
+#define SPI_CONFIG_CPHA_Trailing (1UL) /*!< Sample on trailing edge of clock, shift serial data on leading edge */
+
+/* Bit 0 : Bit order */
+#define SPI_CONFIG_ORDER_Pos (0UL) /*!< Position of ORDER field. */
+#define SPI_CONFIG_ORDER_Msk (0x1UL << SPI_CONFIG_ORDER_Pos) /*!< Bit mask of ORDER field. */
+#define SPI_CONFIG_ORDER_MsbFirst (0UL) /*!< Most significant bit shifted out first */
+#define SPI_CONFIG_ORDER_LsbFirst (1UL) /*!< Least significant bit shifted out first */
+
+
+/* Peripheral: SPIM */
+/* Description: Serial Peripheral Interface Master with EasyDMA 0 */
+
+/* Register: SPIM_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 17 : Shortcut between END event and START task */
+#define SPIM_SHORTS_END_START_Pos (17UL) /*!< Position of END_START field. */
+#define SPIM_SHORTS_END_START_Msk (0x1UL << SPIM_SHORTS_END_START_Pos) /*!< Bit mask of END_START field. */
+#define SPIM_SHORTS_END_START_Disabled (0UL) /*!< Disable shortcut */
+#define SPIM_SHORTS_END_START_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: SPIM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 19 : Write '1' to Enable interrupt for STARTED event */
+#define SPIM_INTENSET_STARTED_Pos (19UL) /*!< Position of STARTED field. */
+#define SPIM_INTENSET_STARTED_Msk (0x1UL << SPIM_INTENSET_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SPIM_INTENSET_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_STARTED_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to Enable interrupt for ENDTX event */
+#define SPIM_INTENSET_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define SPIM_INTENSET_ENDTX_Msk (0x1UL << SPIM_INTENSET_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define SPIM_INTENSET_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_ENDTX_Set (1UL) /*!< Enable */
+
+/* Bit 6 : Write '1' to Enable interrupt for END event */
+#define SPIM_INTENSET_END_Pos (6UL) /*!< Position of END field. */
+#define SPIM_INTENSET_END_Msk (0x1UL << SPIM_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define SPIM_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for ENDRX event */
+#define SPIM_INTENSET_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIM_INTENSET_ENDRX_Msk (0x1UL << SPIM_INTENSET_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIM_INTENSET_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_ENDRX_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for STOPPED event */
+#define SPIM_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define SPIM_INTENSET_STOPPED_Msk (0x1UL << SPIM_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SPIM_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: SPIM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 19 : Write '1' to Disable interrupt for STARTED event */
+#define SPIM_INTENCLR_STARTED_Pos (19UL) /*!< Position of STARTED field. */
+#define SPIM_INTENCLR_STARTED_Msk (0x1UL << SPIM_INTENCLR_STARTED_Pos) /*!< Bit mask of STARTED field. */
+#define SPIM_INTENCLR_STARTED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_STARTED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_STARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to Disable interrupt for ENDTX event */
+#define SPIM_INTENCLR_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define SPIM_INTENCLR_ENDTX_Msk (0x1UL << SPIM_INTENCLR_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define SPIM_INTENCLR_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_ENDTX_Clear (1UL) /*!< Disable */
+
+/* Bit 6 : Write '1' to Disable interrupt for END event */
+#define SPIM_INTENCLR_END_Pos (6UL) /*!< Position of END field. */
+#define SPIM_INTENCLR_END_Msk (0x1UL << SPIM_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define SPIM_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for ENDRX event */
+#define SPIM_INTENCLR_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIM_INTENCLR_ENDRX_Msk (0x1UL << SPIM_INTENCLR_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIM_INTENCLR_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_ENDRX_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for STOPPED event */
+#define SPIM_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define SPIM_INTENCLR_STOPPED_Msk (0x1UL << SPIM_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define SPIM_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIM_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIM_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: SPIM_ENABLE */
+/* Description: Enable SPIM */
+
+/* Bits 3..0 : Enable or disable SPIM */
+#define SPIM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SPIM_ENABLE_ENABLE_Msk (0xFUL << SPIM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SPIM_ENABLE_ENABLE_Disabled (0UL) /*!< Disable SPIM */
+#define SPIM_ENABLE_ENABLE_Enabled (7UL) /*!< Enable SPIM */
+
+/* Register: SPIM_PSEL_SCK */
+/* Description: Pin select for SCK */
+
+/* Bit 31 : Connection */
+#define SPIM_PSEL_SCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIM_PSEL_SCK_CONNECT_Msk (0x1UL << SPIM_PSEL_SCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIM_PSEL_SCK_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIM_PSEL_SCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIM_PSEL_SCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIM_PSEL_SCK_PIN_Msk (0x1FUL << SPIM_PSEL_SCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIM_PSEL_MOSI */
+/* Description: Pin select for MOSI signal */
+
+/* Bit 31 : Connection */
+#define SPIM_PSEL_MOSI_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIM_PSEL_MOSI_CONNECT_Msk (0x1UL << SPIM_PSEL_MOSI_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIM_PSEL_MOSI_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIM_PSEL_MOSI_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIM_PSEL_MOSI_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIM_PSEL_MOSI_PIN_Msk (0x1FUL << SPIM_PSEL_MOSI_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIM_PSEL_MISO */
+/* Description: Pin select for MISO signal */
+
+/* Bit 31 : Connection */
+#define SPIM_PSEL_MISO_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIM_PSEL_MISO_CONNECT_Msk (0x1UL << SPIM_PSEL_MISO_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIM_PSEL_MISO_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIM_PSEL_MISO_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIM_PSEL_MISO_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIM_PSEL_MISO_PIN_Msk (0x1FUL << SPIM_PSEL_MISO_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIM_FREQUENCY */
+/* Description: SPI frequency. Accuracy depends on the HFCLK source selected. */
+
+/* Bits 31..0 : SPI master data rate */
+#define SPIM_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define SPIM_FREQUENCY_FREQUENCY_Msk (0xFFFFFFFFUL << SPIM_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+#define SPIM_FREQUENCY_FREQUENCY_K125 (0x02000000UL) /*!< 125 kbps */
+#define SPIM_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250 kbps */
+#define SPIM_FREQUENCY_FREQUENCY_K500 (0x08000000UL) /*!< 500 kbps */
+#define SPIM_FREQUENCY_FREQUENCY_M1 (0x10000000UL) /*!< 1 Mbps */
+#define SPIM_FREQUENCY_FREQUENCY_M2 (0x20000000UL) /*!< 2 Mbps */
+#define SPIM_FREQUENCY_FREQUENCY_M4 (0x40000000UL) /*!< 4 Mbps */
+#define SPIM_FREQUENCY_FREQUENCY_M8 (0x80000000UL) /*!< 8 Mbps */
+
+/* Register: SPIM_RXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define SPIM_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SPIM_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << SPIM_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SPIM_RXD_MAXCNT */
+/* Description: Maximum number of bytes in receive buffer */
+
+/* Bits 7..0 : Maximum number of bytes in receive buffer */
+#define SPIM_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SPIM_RXD_MAXCNT_MAXCNT_Msk (0xFFUL << SPIM_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SPIM_RXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 7..0 : Number of bytes transferred in the last transaction */
+#define SPIM_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SPIM_RXD_AMOUNT_AMOUNT_Msk (0xFFUL << SPIM_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: SPIM_RXD_LIST */
+/* Description: EasyDMA list type */
+
+/* Bits 2..0 : List type */
+#define SPIM_RXD_LIST_LIST_Pos (0UL) /*!< Position of LIST field. */
+#define SPIM_RXD_LIST_LIST_Msk (0x7UL << SPIM_RXD_LIST_LIST_Pos) /*!< Bit mask of LIST field. */
+#define SPIM_RXD_LIST_LIST_Disabled (0UL) /*!< Disable EasyDMA list */
+#define SPIM_RXD_LIST_LIST_ArrayList (1UL) /*!< Use array list */
+
+/* Register: SPIM_TXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define SPIM_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SPIM_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << SPIM_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SPIM_TXD_MAXCNT */
+/* Description: Maximum number of bytes in transmit buffer */
+
+/* Bits 7..0 : Maximum number of bytes in transmit buffer */
+#define SPIM_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SPIM_TXD_MAXCNT_MAXCNT_Msk (0xFFUL << SPIM_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SPIM_TXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 7..0 : Number of bytes transferred in the last transaction */
+#define SPIM_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SPIM_TXD_AMOUNT_AMOUNT_Msk (0xFFUL << SPIM_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: SPIM_TXD_LIST */
+/* Description: EasyDMA list type */
+
+/* Bits 2..0 : List type */
+#define SPIM_TXD_LIST_LIST_Pos (0UL) /*!< Position of LIST field. */
+#define SPIM_TXD_LIST_LIST_Msk (0x7UL << SPIM_TXD_LIST_LIST_Pos) /*!< Bit mask of LIST field. */
+#define SPIM_TXD_LIST_LIST_Disabled (0UL) /*!< Disable EasyDMA list */
+#define SPIM_TXD_LIST_LIST_ArrayList (1UL) /*!< Use array list */
+
+/* Register: SPIM_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 2 : Serial clock (SCK) polarity */
+#define SPIM_CONFIG_CPOL_Pos (2UL) /*!< Position of CPOL field. */
+#define SPIM_CONFIG_CPOL_Msk (0x1UL << SPIM_CONFIG_CPOL_Pos) /*!< Bit mask of CPOL field. */
+#define SPIM_CONFIG_CPOL_ActiveHigh (0UL) /*!< Active high */
+#define SPIM_CONFIG_CPOL_ActiveLow (1UL) /*!< Active low */
+
+/* Bit 1 : Serial clock (SCK) phase */
+#define SPIM_CONFIG_CPHA_Pos (1UL) /*!< Position of CPHA field. */
+#define SPIM_CONFIG_CPHA_Msk (0x1UL << SPIM_CONFIG_CPHA_Pos) /*!< Bit mask of CPHA field. */
+#define SPIM_CONFIG_CPHA_Leading (0UL) /*!< Sample on leading edge of clock, shift serial data on trailing edge */
+#define SPIM_CONFIG_CPHA_Trailing (1UL) /*!< Sample on trailing edge of clock, shift serial data on leading edge */
+
+/* Bit 0 : Bit order */
+#define SPIM_CONFIG_ORDER_Pos (0UL) /*!< Position of ORDER field. */
+#define SPIM_CONFIG_ORDER_Msk (0x1UL << SPIM_CONFIG_ORDER_Pos) /*!< Bit mask of ORDER field. */
+#define SPIM_CONFIG_ORDER_MsbFirst (0UL) /*!< Most significant bit shifted out first */
+#define SPIM_CONFIG_ORDER_LsbFirst (1UL) /*!< Least significant bit shifted out first */
+
+/* Register: SPIM_ORC */
+/* Description: Over-read character. Character clocked out in case and over-read of the TXD buffer. */
+
+/* Bits 7..0 : Over-read character. Character clocked out in case and over-read of the TXD buffer. */
+#define SPIM_ORC_ORC_Pos (0UL) /*!< Position of ORC field. */
+#define SPIM_ORC_ORC_Msk (0xFFUL << SPIM_ORC_ORC_Pos) /*!< Bit mask of ORC field. */
+
+
+/* Peripheral: SPIS */
+/* Description: SPI Slave 0 */
+
+/* Register: SPIS_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 2 : Shortcut between END event and ACQUIRE task */
+#define SPIS_SHORTS_END_ACQUIRE_Pos (2UL) /*!< Position of END_ACQUIRE field. */
+#define SPIS_SHORTS_END_ACQUIRE_Msk (0x1UL << SPIS_SHORTS_END_ACQUIRE_Pos) /*!< Bit mask of END_ACQUIRE field. */
+#define SPIS_SHORTS_END_ACQUIRE_Disabled (0UL) /*!< Disable shortcut */
+#define SPIS_SHORTS_END_ACQUIRE_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: SPIS_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 10 : Write '1' to Enable interrupt for ACQUIRED event */
+#define SPIS_INTENSET_ACQUIRED_Pos (10UL) /*!< Position of ACQUIRED field. */
+#define SPIS_INTENSET_ACQUIRED_Msk (0x1UL << SPIS_INTENSET_ACQUIRED_Pos) /*!< Bit mask of ACQUIRED field. */
+#define SPIS_INTENSET_ACQUIRED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENSET_ACQUIRED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENSET_ACQUIRED_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for ENDRX event */
+#define SPIS_INTENSET_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIS_INTENSET_ENDRX_Msk (0x1UL << SPIS_INTENSET_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIS_INTENSET_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENSET_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENSET_ENDRX_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for END event */
+#define SPIS_INTENSET_END_Pos (1UL) /*!< Position of END field. */
+#define SPIS_INTENSET_END_Msk (0x1UL << SPIS_INTENSET_END_Pos) /*!< Bit mask of END field. */
+#define SPIS_INTENSET_END_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENSET_END_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENSET_END_Set (1UL) /*!< Enable */
+
+/* Register: SPIS_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 10 : Write '1' to Disable interrupt for ACQUIRED event */
+#define SPIS_INTENCLR_ACQUIRED_Pos (10UL) /*!< Position of ACQUIRED field. */
+#define SPIS_INTENCLR_ACQUIRED_Msk (0x1UL << SPIS_INTENCLR_ACQUIRED_Pos) /*!< Bit mask of ACQUIRED field. */
+#define SPIS_INTENCLR_ACQUIRED_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENCLR_ACQUIRED_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENCLR_ACQUIRED_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for ENDRX event */
+#define SPIS_INTENCLR_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define SPIS_INTENCLR_ENDRX_Msk (0x1UL << SPIS_INTENCLR_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define SPIS_INTENCLR_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENCLR_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENCLR_ENDRX_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for END event */
+#define SPIS_INTENCLR_END_Pos (1UL) /*!< Position of END field. */
+#define SPIS_INTENCLR_END_Msk (0x1UL << SPIS_INTENCLR_END_Pos) /*!< Bit mask of END field. */
+#define SPIS_INTENCLR_END_Disabled (0UL) /*!< Read: Disabled */
+#define SPIS_INTENCLR_END_Enabled (1UL) /*!< Read: Enabled */
+#define SPIS_INTENCLR_END_Clear (1UL) /*!< Disable */
+
+/* Register: SPIS_SEMSTAT */
+/* Description: Semaphore status register */
+
+/* Bits 1..0 : Semaphore status */
+#define SPIS_SEMSTAT_SEMSTAT_Pos (0UL) /*!< Position of SEMSTAT field. */
+#define SPIS_SEMSTAT_SEMSTAT_Msk (0x3UL << SPIS_SEMSTAT_SEMSTAT_Pos) /*!< Bit mask of SEMSTAT field. */
+#define SPIS_SEMSTAT_SEMSTAT_Free (0UL) /*!< Semaphore is free */
+#define SPIS_SEMSTAT_SEMSTAT_CPU (1UL) /*!< Semaphore is assigned to CPU */
+#define SPIS_SEMSTAT_SEMSTAT_SPIS (2UL) /*!< Semaphore is assigned to SPI slave */
+#define SPIS_SEMSTAT_SEMSTAT_CPUPending (3UL) /*!< Semaphore is assigned to SPI but a handover to the CPU is pending */
+
+/* Register: SPIS_STATUS */
+/* Description: Status from last transaction */
+
+/* Bit 1 : RX buffer overflow detected, and prevented */
+#define SPIS_STATUS_OVERFLOW_Pos (1UL) /*!< Position of OVERFLOW field. */
+#define SPIS_STATUS_OVERFLOW_Msk (0x1UL << SPIS_STATUS_OVERFLOW_Pos) /*!< Bit mask of OVERFLOW field. */
+#define SPIS_STATUS_OVERFLOW_NotPresent (0UL) /*!< Read: error not present */
+#define SPIS_STATUS_OVERFLOW_Present (1UL) /*!< Read: error present */
+#define SPIS_STATUS_OVERFLOW_Clear (1UL) /*!< Write: clear error on writing '1' */
+
+/* Bit 0 : TX buffer over-read detected, and prevented */
+#define SPIS_STATUS_OVERREAD_Pos (0UL) /*!< Position of OVERREAD field. */
+#define SPIS_STATUS_OVERREAD_Msk (0x1UL << SPIS_STATUS_OVERREAD_Pos) /*!< Bit mask of OVERREAD field. */
+#define SPIS_STATUS_OVERREAD_NotPresent (0UL) /*!< Read: error not present */
+#define SPIS_STATUS_OVERREAD_Present (1UL) /*!< Read: error present */
+#define SPIS_STATUS_OVERREAD_Clear (1UL) /*!< Write: clear error on writing '1' */
+
+/* Register: SPIS_ENABLE */
+/* Description: Enable SPI slave */
+
+/* Bits 3..0 : Enable or disable SPI slave */
+#define SPIS_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define SPIS_ENABLE_ENABLE_Msk (0xFUL << SPIS_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define SPIS_ENABLE_ENABLE_Disabled (0UL) /*!< Disable SPI slave */
+#define SPIS_ENABLE_ENABLE_Enabled (2UL) /*!< Enable SPI slave */
+
+/* Register: SPIS_PSEL_SCK */
+/* Description: Pin select for SCK */
+
+/* Bit 31 : Connection */
+#define SPIS_PSEL_SCK_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIS_PSEL_SCK_CONNECT_Msk (0x1UL << SPIS_PSEL_SCK_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIS_PSEL_SCK_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIS_PSEL_SCK_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIS_PSEL_SCK_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIS_PSEL_SCK_PIN_Msk (0x1FUL << SPIS_PSEL_SCK_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIS_PSEL_MISO */
+/* Description: Pin select for MISO signal */
+
+/* Bit 31 : Connection */
+#define SPIS_PSEL_MISO_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIS_PSEL_MISO_CONNECT_Msk (0x1UL << SPIS_PSEL_MISO_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIS_PSEL_MISO_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIS_PSEL_MISO_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIS_PSEL_MISO_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIS_PSEL_MISO_PIN_Msk (0x1FUL << SPIS_PSEL_MISO_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIS_PSEL_MOSI */
+/* Description: Pin select for MOSI signal */
+
+/* Bit 31 : Connection */
+#define SPIS_PSEL_MOSI_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIS_PSEL_MOSI_CONNECT_Msk (0x1UL << SPIS_PSEL_MOSI_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIS_PSEL_MOSI_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIS_PSEL_MOSI_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIS_PSEL_MOSI_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIS_PSEL_MOSI_PIN_Msk (0x1FUL << SPIS_PSEL_MOSI_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIS_PSEL_CSN */
+/* Description: Pin select for CSN signal */
+
+/* Bit 31 : Connection */
+#define SPIS_PSEL_CSN_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define SPIS_PSEL_CSN_CONNECT_Msk (0x1UL << SPIS_PSEL_CSN_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define SPIS_PSEL_CSN_CONNECT_Connected (0UL) /*!< Connect */
+#define SPIS_PSEL_CSN_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define SPIS_PSEL_CSN_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define SPIS_PSEL_CSN_PIN_Msk (0x1FUL << SPIS_PSEL_CSN_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: SPIS_RXD_PTR */
+/* Description: RXD data pointer */
+
+/* Bits 31..0 : RXD data pointer */
+#define SPIS_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SPIS_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << SPIS_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SPIS_RXD_MAXCNT */
+/* Description: Maximum number of bytes in receive buffer */
+
+/* Bits 7..0 : Maximum number of bytes in receive buffer */
+#define SPIS_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SPIS_RXD_MAXCNT_MAXCNT_Msk (0xFFUL << SPIS_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SPIS_RXD_AMOUNT */
+/* Description: Number of bytes received in last granted transaction */
+
+/* Bits 7..0 : Number of bytes received in the last granted transaction */
+#define SPIS_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SPIS_RXD_AMOUNT_AMOUNT_Msk (0xFFUL << SPIS_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: SPIS_TXD_PTR */
+/* Description: TXD data pointer */
+
+/* Bits 31..0 : TXD data pointer */
+#define SPIS_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define SPIS_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << SPIS_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: SPIS_TXD_MAXCNT */
+/* Description: Maximum number of bytes in transmit buffer */
+
+/* Bits 7..0 : Maximum number of bytes in transmit buffer */
+#define SPIS_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define SPIS_TXD_MAXCNT_MAXCNT_Msk (0xFFUL << SPIS_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: SPIS_TXD_AMOUNT */
+/* Description: Number of bytes transmitted in last granted transaction */
+
+/* Bits 7..0 : Number of bytes transmitted in last granted transaction */
+#define SPIS_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define SPIS_TXD_AMOUNT_AMOUNT_Msk (0xFFUL << SPIS_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: SPIS_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 2 : Serial clock (SCK) polarity */
+#define SPIS_CONFIG_CPOL_Pos (2UL) /*!< Position of CPOL field. */
+#define SPIS_CONFIG_CPOL_Msk (0x1UL << SPIS_CONFIG_CPOL_Pos) /*!< Bit mask of CPOL field. */
+#define SPIS_CONFIG_CPOL_ActiveHigh (0UL) /*!< Active high */
+#define SPIS_CONFIG_CPOL_ActiveLow (1UL) /*!< Active low */
+
+/* Bit 1 : Serial clock (SCK) phase */
+#define SPIS_CONFIG_CPHA_Pos (1UL) /*!< Position of CPHA field. */
+#define SPIS_CONFIG_CPHA_Msk (0x1UL << SPIS_CONFIG_CPHA_Pos) /*!< Bit mask of CPHA field. */
+#define SPIS_CONFIG_CPHA_Leading (0UL) /*!< Sample on leading edge of clock, shift serial data on trailing edge */
+#define SPIS_CONFIG_CPHA_Trailing (1UL) /*!< Sample on trailing edge of clock, shift serial data on leading edge */
+
+/* Bit 0 : Bit order */
+#define SPIS_CONFIG_ORDER_Pos (0UL) /*!< Position of ORDER field. */
+#define SPIS_CONFIG_ORDER_Msk (0x1UL << SPIS_CONFIG_ORDER_Pos) /*!< Bit mask of ORDER field. */
+#define SPIS_CONFIG_ORDER_MsbFirst (0UL) /*!< Most significant bit shifted out first */
+#define SPIS_CONFIG_ORDER_LsbFirst (1UL) /*!< Least significant bit shifted out first */
+
+/* Register: SPIS_DEF */
+/* Description: Default character. Character clocked out in case of an ignored transaction. */
+
+/* Bits 7..0 : Default character. Character clocked out in case of an ignored transaction. */
+#define SPIS_DEF_DEF_Pos (0UL) /*!< Position of DEF field. */
+#define SPIS_DEF_DEF_Msk (0xFFUL << SPIS_DEF_DEF_Pos) /*!< Bit mask of DEF field. */
+
+/* Register: SPIS_ORC */
+/* Description: Over-read character */
+
+/* Bits 7..0 : Over-read character. Character clocked out after an over-read of the transmit buffer. */
+#define SPIS_ORC_ORC_Pos (0UL) /*!< Position of ORC field. */
+#define SPIS_ORC_ORC_Msk (0xFFUL << SPIS_ORC_ORC_Pos) /*!< Bit mask of ORC field. */
+
+
+/* Peripheral: TEMP */
+/* Description: Temperature Sensor */
+
+/* Register: TEMP_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 0 : Write '1' to Enable interrupt for DATARDY event */
+#define TEMP_INTENSET_DATARDY_Pos (0UL) /*!< Position of DATARDY field. */
+#define TEMP_INTENSET_DATARDY_Msk (0x1UL << TEMP_INTENSET_DATARDY_Pos) /*!< Bit mask of DATARDY field. */
+#define TEMP_INTENSET_DATARDY_Disabled (0UL) /*!< Read: Disabled */
+#define TEMP_INTENSET_DATARDY_Enabled (1UL) /*!< Read: Enabled */
+#define TEMP_INTENSET_DATARDY_Set (1UL) /*!< Enable */
+
+/* Register: TEMP_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 0 : Write '1' to Disable interrupt for DATARDY event */
+#define TEMP_INTENCLR_DATARDY_Pos (0UL) /*!< Position of DATARDY field. */
+#define TEMP_INTENCLR_DATARDY_Msk (0x1UL << TEMP_INTENCLR_DATARDY_Pos) /*!< Bit mask of DATARDY field. */
+#define TEMP_INTENCLR_DATARDY_Disabled (0UL) /*!< Read: Disabled */
+#define TEMP_INTENCLR_DATARDY_Enabled (1UL) /*!< Read: Enabled */
+#define TEMP_INTENCLR_DATARDY_Clear (1UL) /*!< Disable */
+
+/* Register: TEMP_TEMP */
+/* Description: Temperature in degC (0.25deg steps) */
+
+/* Bits 31..0 : Temperature in degC (0.25deg steps) */
+#define TEMP_TEMP_TEMP_Pos (0UL) /*!< Position of TEMP field. */
+#define TEMP_TEMP_TEMP_Msk (0xFFFFFFFFUL << TEMP_TEMP_TEMP_Pos) /*!< Bit mask of TEMP field. */
+
+/* Register: TEMP_A0 */
+/* Description: Slope of 1st piece wise linear function */
+
+/* Bits 11..0 : Slope of 1st piece wise linear function */
+#define TEMP_A0_A0_Pos (0UL) /*!< Position of A0 field. */
+#define TEMP_A0_A0_Msk (0xFFFUL << TEMP_A0_A0_Pos) /*!< Bit mask of A0 field. */
+
+/* Register: TEMP_A1 */
+/* Description: Slope of 2nd piece wise linear function */
+
+/* Bits 11..0 : Slope of 2nd piece wise linear function */
+#define TEMP_A1_A1_Pos (0UL) /*!< Position of A1 field. */
+#define TEMP_A1_A1_Msk (0xFFFUL << TEMP_A1_A1_Pos) /*!< Bit mask of A1 field. */
+
+/* Register: TEMP_A2 */
+/* Description: Slope of 3rd piece wise linear function */
+
+/* Bits 11..0 : Slope of 3rd piece wise linear function */
+#define TEMP_A2_A2_Pos (0UL) /*!< Position of A2 field. */
+#define TEMP_A2_A2_Msk (0xFFFUL << TEMP_A2_A2_Pos) /*!< Bit mask of A2 field. */
+
+/* Register: TEMP_A3 */
+/* Description: Slope of 4th piece wise linear function */
+
+/* Bits 11..0 : Slope of 4th piece wise linear function */
+#define TEMP_A3_A3_Pos (0UL) /*!< Position of A3 field. */
+#define TEMP_A3_A3_Msk (0xFFFUL << TEMP_A3_A3_Pos) /*!< Bit mask of A3 field. */
+
+/* Register: TEMP_A4 */
+/* Description: Slope of 5th piece wise linear function */
+
+/* Bits 11..0 : Slope of 5th piece wise linear function */
+#define TEMP_A4_A4_Pos (0UL) /*!< Position of A4 field. */
+#define TEMP_A4_A4_Msk (0xFFFUL << TEMP_A4_A4_Pos) /*!< Bit mask of A4 field. */
+
+/* Register: TEMP_A5 */
+/* Description: Slope of 6th piece wise linear function */
+
+/* Bits 11..0 : Slope of 6th piece wise linear function */
+#define TEMP_A5_A5_Pos (0UL) /*!< Position of A5 field. */
+#define TEMP_A5_A5_Msk (0xFFFUL << TEMP_A5_A5_Pos) /*!< Bit mask of A5 field. */
+
+/* Register: TEMP_B0 */
+/* Description: y-intercept of 1st piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 1st piece wise linear function */
+#define TEMP_B0_B0_Pos (0UL) /*!< Position of B0 field. */
+#define TEMP_B0_B0_Msk (0x3FFFUL << TEMP_B0_B0_Pos) /*!< Bit mask of B0 field. */
+
+/* Register: TEMP_B1 */
+/* Description: y-intercept of 2nd piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 2nd piece wise linear function */
+#define TEMP_B1_B1_Pos (0UL) /*!< Position of B1 field. */
+#define TEMP_B1_B1_Msk (0x3FFFUL << TEMP_B1_B1_Pos) /*!< Bit mask of B1 field. */
+
+/* Register: TEMP_B2 */
+/* Description: y-intercept of 3rd piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 3rd piece wise linear function */
+#define TEMP_B2_B2_Pos (0UL) /*!< Position of B2 field. */
+#define TEMP_B2_B2_Msk (0x3FFFUL << TEMP_B2_B2_Pos) /*!< Bit mask of B2 field. */
+
+/* Register: TEMP_B3 */
+/* Description: y-intercept of 4th piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 4th piece wise linear function */
+#define TEMP_B3_B3_Pos (0UL) /*!< Position of B3 field. */
+#define TEMP_B3_B3_Msk (0x3FFFUL << TEMP_B3_B3_Pos) /*!< Bit mask of B3 field. */
+
+/* Register: TEMP_B4 */
+/* Description: y-intercept of 5th piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 5th piece wise linear function */
+#define TEMP_B4_B4_Pos (0UL) /*!< Position of B4 field. */
+#define TEMP_B4_B4_Msk (0x3FFFUL << TEMP_B4_B4_Pos) /*!< Bit mask of B4 field. */
+
+/* Register: TEMP_B5 */
+/* Description: y-intercept of 6th piece wise linear function */
+
+/* Bits 13..0 : y-intercept of 6th piece wise linear function */
+#define TEMP_B5_B5_Pos (0UL) /*!< Position of B5 field. */
+#define TEMP_B5_B5_Msk (0x3FFFUL << TEMP_B5_B5_Pos) /*!< Bit mask of B5 field. */
+
+/* Register: TEMP_T0 */
+/* Description: End point of 1st piece wise linear function */
+
+/* Bits 7..0 : End point of 1st piece wise linear function */
+#define TEMP_T0_T0_Pos (0UL) /*!< Position of T0 field. */
+#define TEMP_T0_T0_Msk (0xFFUL << TEMP_T0_T0_Pos) /*!< Bit mask of T0 field. */
+
+/* Register: TEMP_T1 */
+/* Description: End point of 2nd piece wise linear function */
+
+/* Bits 7..0 : End point of 2nd piece wise linear function */
+#define TEMP_T1_T1_Pos (0UL) /*!< Position of T1 field. */
+#define TEMP_T1_T1_Msk (0xFFUL << TEMP_T1_T1_Pos) /*!< Bit mask of T1 field. */
+
+/* Register: TEMP_T2 */
+/* Description: End point of 3rd piece wise linear function */
+
+/* Bits 7..0 : End point of 3rd piece wise linear function */
+#define TEMP_T2_T2_Pos (0UL) /*!< Position of T2 field. */
+#define TEMP_T2_T2_Msk (0xFFUL << TEMP_T2_T2_Pos) /*!< Bit mask of T2 field. */
+
+/* Register: TEMP_T3 */
+/* Description: End point of 4th piece wise linear function */
+
+/* Bits 7..0 : End point of 4th piece wise linear function */
+#define TEMP_T3_T3_Pos (0UL) /*!< Position of T3 field. */
+#define TEMP_T3_T3_Msk (0xFFUL << TEMP_T3_T3_Pos) /*!< Bit mask of T3 field. */
+
+/* Register: TEMP_T4 */
+/* Description: End point of 5th piece wise linear function */
+
+/* Bits 7..0 : End point of 5th piece wise linear function */
+#define TEMP_T4_T4_Pos (0UL) /*!< Position of T4 field. */
+#define TEMP_T4_T4_Msk (0xFFUL << TEMP_T4_T4_Pos) /*!< Bit mask of T4 field. */
+
+
+/* Peripheral: TIMER */
+/* Description: Timer/Counter 0 */
+
+/* Register: TIMER_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 13 : Shortcut between COMPARE[5] event and STOP task */
+#define TIMER_SHORTS_COMPARE5_STOP_Pos (13UL) /*!< Position of COMPARE5_STOP field. */
+#define TIMER_SHORTS_COMPARE5_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE5_STOP_Pos) /*!< Bit mask of COMPARE5_STOP field. */
+#define TIMER_SHORTS_COMPARE5_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE5_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 12 : Shortcut between COMPARE[4] event and STOP task */
+#define TIMER_SHORTS_COMPARE4_STOP_Pos (12UL) /*!< Position of COMPARE4_STOP field. */
+#define TIMER_SHORTS_COMPARE4_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE4_STOP_Pos) /*!< Bit mask of COMPARE4_STOP field. */
+#define TIMER_SHORTS_COMPARE4_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE4_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 11 : Shortcut between COMPARE[3] event and STOP task */
+#define TIMER_SHORTS_COMPARE3_STOP_Pos (11UL) /*!< Position of COMPARE3_STOP field. */
+#define TIMER_SHORTS_COMPARE3_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE3_STOP_Pos) /*!< Bit mask of COMPARE3_STOP field. */
+#define TIMER_SHORTS_COMPARE3_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE3_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 10 : Shortcut between COMPARE[2] event and STOP task */
+#define TIMER_SHORTS_COMPARE2_STOP_Pos (10UL) /*!< Position of COMPARE2_STOP field. */
+#define TIMER_SHORTS_COMPARE2_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE2_STOP_Pos) /*!< Bit mask of COMPARE2_STOP field. */
+#define TIMER_SHORTS_COMPARE2_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE2_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 9 : Shortcut between COMPARE[1] event and STOP task */
+#define TIMER_SHORTS_COMPARE1_STOP_Pos (9UL) /*!< Position of COMPARE1_STOP field. */
+#define TIMER_SHORTS_COMPARE1_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE1_STOP_Pos) /*!< Bit mask of COMPARE1_STOP field. */
+#define TIMER_SHORTS_COMPARE1_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE1_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 8 : Shortcut between COMPARE[0] event and STOP task */
+#define TIMER_SHORTS_COMPARE0_STOP_Pos (8UL) /*!< Position of COMPARE0_STOP field. */
+#define TIMER_SHORTS_COMPARE0_STOP_Msk (0x1UL << TIMER_SHORTS_COMPARE0_STOP_Pos) /*!< Bit mask of COMPARE0_STOP field. */
+#define TIMER_SHORTS_COMPARE0_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE0_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 5 : Shortcut between COMPARE[5] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE5_CLEAR_Pos (5UL) /*!< Position of COMPARE5_CLEAR field. */
+#define TIMER_SHORTS_COMPARE5_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE5_CLEAR_Pos) /*!< Bit mask of COMPARE5_CLEAR field. */
+#define TIMER_SHORTS_COMPARE5_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE5_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 4 : Shortcut between COMPARE[4] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE4_CLEAR_Pos (4UL) /*!< Position of COMPARE4_CLEAR field. */
+#define TIMER_SHORTS_COMPARE4_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE4_CLEAR_Pos) /*!< Bit mask of COMPARE4_CLEAR field. */
+#define TIMER_SHORTS_COMPARE4_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE4_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between COMPARE[3] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Pos (3UL) /*!< Position of COMPARE3_CLEAR field. */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE3_CLEAR_Pos) /*!< Bit mask of COMPARE3_CLEAR field. */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE3_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 2 : Shortcut between COMPARE[2] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Pos (2UL) /*!< Position of COMPARE2_CLEAR field. */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE2_CLEAR_Pos) /*!< Bit mask of COMPARE2_CLEAR field. */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE2_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 1 : Shortcut between COMPARE[1] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Pos (1UL) /*!< Position of COMPARE1_CLEAR field. */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE1_CLEAR_Pos) /*!< Bit mask of COMPARE1_CLEAR field. */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE1_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between COMPARE[0] event and CLEAR task */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Pos (0UL) /*!< Position of COMPARE0_CLEAR field. */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Msk (0x1UL << TIMER_SHORTS_COMPARE0_CLEAR_Pos) /*!< Bit mask of COMPARE0_CLEAR field. */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Disabled (0UL) /*!< Disable shortcut */
+#define TIMER_SHORTS_COMPARE0_CLEAR_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: TIMER_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 21 : Write '1' to Enable interrupt for COMPARE[5] event */
+#define TIMER_INTENSET_COMPARE5_Pos (21UL) /*!< Position of COMPARE5 field. */
+#define TIMER_INTENSET_COMPARE5_Msk (0x1UL << TIMER_INTENSET_COMPARE5_Pos) /*!< Bit mask of COMPARE5 field. */
+#define TIMER_INTENSET_COMPARE5_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE5_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE5_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to Enable interrupt for COMPARE[4] event */
+#define TIMER_INTENSET_COMPARE4_Pos (20UL) /*!< Position of COMPARE4 field. */
+#define TIMER_INTENSET_COMPARE4_Msk (0x1UL << TIMER_INTENSET_COMPARE4_Pos) /*!< Bit mask of COMPARE4 field. */
+#define TIMER_INTENSET_COMPARE4_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE4_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE4_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to Enable interrupt for COMPARE[3] event */
+#define TIMER_INTENSET_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define TIMER_INTENSET_COMPARE3_Msk (0x1UL << TIMER_INTENSET_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define TIMER_INTENSET_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE3_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to Enable interrupt for COMPARE[2] event */
+#define TIMER_INTENSET_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define TIMER_INTENSET_COMPARE2_Msk (0x1UL << TIMER_INTENSET_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define TIMER_INTENSET_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE2_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to Enable interrupt for COMPARE[1] event */
+#define TIMER_INTENSET_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define TIMER_INTENSET_COMPARE1_Msk (0x1UL << TIMER_INTENSET_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define TIMER_INTENSET_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE1_Set (1UL) /*!< Enable */
+
+/* Bit 16 : Write '1' to Enable interrupt for COMPARE[0] event */
+#define TIMER_INTENSET_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define TIMER_INTENSET_COMPARE0_Msk (0x1UL << TIMER_INTENSET_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define TIMER_INTENSET_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENSET_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENSET_COMPARE0_Set (1UL) /*!< Enable */
+
+/* Register: TIMER_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 21 : Write '1' to Disable interrupt for COMPARE[5] event */
+#define TIMER_INTENCLR_COMPARE5_Pos (21UL) /*!< Position of COMPARE5 field. */
+#define TIMER_INTENCLR_COMPARE5_Msk (0x1UL << TIMER_INTENCLR_COMPARE5_Pos) /*!< Bit mask of COMPARE5 field. */
+#define TIMER_INTENCLR_COMPARE5_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE5_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE5_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to Disable interrupt for COMPARE[4] event */
+#define TIMER_INTENCLR_COMPARE4_Pos (20UL) /*!< Position of COMPARE4 field. */
+#define TIMER_INTENCLR_COMPARE4_Msk (0x1UL << TIMER_INTENCLR_COMPARE4_Pos) /*!< Bit mask of COMPARE4 field. */
+#define TIMER_INTENCLR_COMPARE4_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE4_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE4_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to Disable interrupt for COMPARE[3] event */
+#define TIMER_INTENCLR_COMPARE3_Pos (19UL) /*!< Position of COMPARE3 field. */
+#define TIMER_INTENCLR_COMPARE3_Msk (0x1UL << TIMER_INTENCLR_COMPARE3_Pos) /*!< Bit mask of COMPARE3 field. */
+#define TIMER_INTENCLR_COMPARE3_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE3_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE3_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to Disable interrupt for COMPARE[2] event */
+#define TIMER_INTENCLR_COMPARE2_Pos (18UL) /*!< Position of COMPARE2 field. */
+#define TIMER_INTENCLR_COMPARE2_Msk (0x1UL << TIMER_INTENCLR_COMPARE2_Pos) /*!< Bit mask of COMPARE2 field. */
+#define TIMER_INTENCLR_COMPARE2_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE2_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE2_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to Disable interrupt for COMPARE[1] event */
+#define TIMER_INTENCLR_COMPARE1_Pos (17UL) /*!< Position of COMPARE1 field. */
+#define TIMER_INTENCLR_COMPARE1_Msk (0x1UL << TIMER_INTENCLR_COMPARE1_Pos) /*!< Bit mask of COMPARE1 field. */
+#define TIMER_INTENCLR_COMPARE1_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE1_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE1_Clear (1UL) /*!< Disable */
+
+/* Bit 16 : Write '1' to Disable interrupt for COMPARE[0] event */
+#define TIMER_INTENCLR_COMPARE0_Pos (16UL) /*!< Position of COMPARE0 field. */
+#define TIMER_INTENCLR_COMPARE0_Msk (0x1UL << TIMER_INTENCLR_COMPARE0_Pos) /*!< Bit mask of COMPARE0 field. */
+#define TIMER_INTENCLR_COMPARE0_Disabled (0UL) /*!< Read: Disabled */
+#define TIMER_INTENCLR_COMPARE0_Enabled (1UL) /*!< Read: Enabled */
+#define TIMER_INTENCLR_COMPARE0_Clear (1UL) /*!< Disable */
+
+/* Register: TIMER_MODE */
+/* Description: Timer mode selection */
+
+/* Bits 1..0 : Timer mode */
+#define TIMER_MODE_MODE_Pos (0UL) /*!< Position of MODE field. */
+#define TIMER_MODE_MODE_Msk (0x3UL << TIMER_MODE_MODE_Pos) /*!< Bit mask of MODE field. */
+#define TIMER_MODE_MODE_Timer (0UL) /*!< Select Timer mode */
+#define TIMER_MODE_MODE_Counter (1UL) /*!< Deprecated enumerator - Select Counter mode */
+#define TIMER_MODE_MODE_LowPowerCounter (2UL) /*!< Select Low Power Counter mode */
+
+/* Register: TIMER_BITMODE */
+/* Description: Configure the number of bits used by the TIMER */
+
+/* Bits 1..0 : Timer bit width */
+#define TIMER_BITMODE_BITMODE_Pos (0UL) /*!< Position of BITMODE field. */
+#define TIMER_BITMODE_BITMODE_Msk (0x3UL << TIMER_BITMODE_BITMODE_Pos) /*!< Bit mask of BITMODE field. */
+#define TIMER_BITMODE_BITMODE_16Bit (0UL) /*!< 16 bit timer bit width */
+#define TIMER_BITMODE_BITMODE_08Bit (1UL) /*!< 8 bit timer bit width */
+#define TIMER_BITMODE_BITMODE_24Bit (2UL) /*!< 24 bit timer bit width */
+#define TIMER_BITMODE_BITMODE_32Bit (3UL) /*!< 32 bit timer bit width */
+
+/* Register: TIMER_PRESCALER */
+/* Description: Timer prescaler register */
+
+/* Bits 3..0 : Prescaler value */
+#define TIMER_PRESCALER_PRESCALER_Pos (0UL) /*!< Position of PRESCALER field. */
+#define TIMER_PRESCALER_PRESCALER_Msk (0xFUL << TIMER_PRESCALER_PRESCALER_Pos) /*!< Bit mask of PRESCALER field. */
+
+/* Register: TIMER_CC */
+/* Description: Description collection[0]: Capture/Compare register 0 */
+
+/* Bits 31..0 : Capture/Compare value */
+#define TIMER_CC_CC_Pos (0UL) /*!< Position of CC field. */
+#define TIMER_CC_CC_Msk (0xFFFFFFFFUL << TIMER_CC_CC_Pos) /*!< Bit mask of CC field. */
+
+
+/* Peripheral: TWI */
+/* Description: I2C compatible Two-Wire Interface 0 */
+
+/* Register: TWI_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 1 : Shortcut between BB event and STOP task */
+#define TWI_SHORTS_BB_STOP_Pos (1UL) /*!< Position of BB_STOP field. */
+#define TWI_SHORTS_BB_STOP_Msk (0x1UL << TWI_SHORTS_BB_STOP_Pos) /*!< Bit mask of BB_STOP field. */
+#define TWI_SHORTS_BB_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TWI_SHORTS_BB_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 0 : Shortcut between BB event and SUSPEND task */
+#define TWI_SHORTS_BB_SUSPEND_Pos (0UL) /*!< Position of BB_SUSPEND field. */
+#define TWI_SHORTS_BB_SUSPEND_Msk (0x1UL << TWI_SHORTS_BB_SUSPEND_Pos) /*!< Bit mask of BB_SUSPEND field. */
+#define TWI_SHORTS_BB_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWI_SHORTS_BB_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: TWI_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 18 : Write '1' to Enable interrupt for SUSPENDED event */
+#define TWI_INTENSET_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWI_INTENSET_SUSPENDED_Msk (0x1UL << TWI_INTENSET_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWI_INTENSET_SUSPENDED_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENSET_SUSPENDED_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENSET_SUSPENDED_Set (1UL) /*!< Enable */
+
+/* Bit 14 : Write '1' to Enable interrupt for BB event */
+#define TWI_INTENSET_BB_Pos (14UL) /*!< Position of BB field. */
+#define TWI_INTENSET_BB_Msk (0x1UL << TWI_INTENSET_BB_Pos) /*!< Bit mask of BB field. */
+#define TWI_INTENSET_BB_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENSET_BB_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENSET_BB_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to Enable interrupt for ERROR event */
+#define TWI_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWI_INTENSET_ERROR_Msk (0x1UL << TWI_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWI_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for TXDSENT event */
+#define TWI_INTENSET_TXDSENT_Pos (7UL) /*!< Position of TXDSENT field. */
+#define TWI_INTENSET_TXDSENT_Msk (0x1UL << TWI_INTENSET_TXDSENT_Pos) /*!< Bit mask of TXDSENT field. */
+#define TWI_INTENSET_TXDSENT_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENSET_TXDSENT_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENSET_TXDSENT_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for RXDREADY event */
+#define TWI_INTENSET_RXDREADY_Pos (2UL) /*!< Position of RXDREADY field. */
+#define TWI_INTENSET_RXDREADY_Msk (0x1UL << TWI_INTENSET_RXDREADY_Pos) /*!< Bit mask of RXDREADY field. */
+#define TWI_INTENSET_RXDREADY_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENSET_RXDREADY_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENSET_RXDREADY_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for STOPPED event */
+#define TWI_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWI_INTENSET_STOPPED_Msk (0x1UL << TWI_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWI_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: TWI_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 18 : Write '1' to Disable interrupt for SUSPENDED event */
+#define TWI_INTENCLR_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWI_INTENCLR_SUSPENDED_Msk (0x1UL << TWI_INTENCLR_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWI_INTENCLR_SUSPENDED_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENCLR_SUSPENDED_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENCLR_SUSPENDED_Clear (1UL) /*!< Disable */
+
+/* Bit 14 : Write '1' to Disable interrupt for BB event */
+#define TWI_INTENCLR_BB_Pos (14UL) /*!< Position of BB field. */
+#define TWI_INTENCLR_BB_Msk (0x1UL << TWI_INTENCLR_BB_Pos) /*!< Bit mask of BB field. */
+#define TWI_INTENCLR_BB_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENCLR_BB_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENCLR_BB_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to Disable interrupt for ERROR event */
+#define TWI_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWI_INTENCLR_ERROR_Msk (0x1UL << TWI_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWI_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for TXDSENT event */
+#define TWI_INTENCLR_TXDSENT_Pos (7UL) /*!< Position of TXDSENT field. */
+#define TWI_INTENCLR_TXDSENT_Msk (0x1UL << TWI_INTENCLR_TXDSENT_Pos) /*!< Bit mask of TXDSENT field. */
+#define TWI_INTENCLR_TXDSENT_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENCLR_TXDSENT_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENCLR_TXDSENT_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for RXDREADY event */
+#define TWI_INTENCLR_RXDREADY_Pos (2UL) /*!< Position of RXDREADY field. */
+#define TWI_INTENCLR_RXDREADY_Msk (0x1UL << TWI_INTENCLR_RXDREADY_Pos) /*!< Bit mask of RXDREADY field. */
+#define TWI_INTENCLR_RXDREADY_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENCLR_RXDREADY_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENCLR_RXDREADY_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for STOPPED event */
+#define TWI_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWI_INTENCLR_STOPPED_Msk (0x1UL << TWI_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWI_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWI_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWI_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: TWI_ERRORSRC */
+/* Description: Error source */
+
+/* Bit 2 : NACK received after sending a data byte (write '1' to clear) */
+#define TWI_ERRORSRC_DNACK_Pos (2UL) /*!< Position of DNACK field. */
+#define TWI_ERRORSRC_DNACK_Msk (0x1UL << TWI_ERRORSRC_DNACK_Pos) /*!< Bit mask of DNACK field. */
+#define TWI_ERRORSRC_DNACK_NotPresent (0UL) /*!< Read: error not present */
+#define TWI_ERRORSRC_DNACK_Present (1UL) /*!< Read: error present */
+#define TWI_ERRORSRC_DNACK_Clear (1UL) /*!< Write: clear error on writing '1' */
+
+/* Bit 1 : NACK received after sending the address (write '1' to clear) */
+#define TWI_ERRORSRC_ANACK_Pos (1UL) /*!< Position of ANACK field. */
+#define TWI_ERRORSRC_ANACK_Msk (0x1UL << TWI_ERRORSRC_ANACK_Pos) /*!< Bit mask of ANACK field. */
+#define TWI_ERRORSRC_ANACK_NotPresent (0UL) /*!< Read: error not present */
+#define TWI_ERRORSRC_ANACK_Present (1UL) /*!< Read: error present */
+#define TWI_ERRORSRC_ANACK_Clear (1UL) /*!< Write: clear error on writing '1' */
+
+/* Bit 0 : Overrun error */
+#define TWI_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
+#define TWI_ERRORSRC_OVERRUN_Msk (0x1UL << TWI_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define TWI_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: no overrun occured */
+#define TWI_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: overrun occured */
+#define TWI_ERRORSRC_OVERRUN_Clear (1UL) /*!< Write: clear error on writing '1' */
+
+/* Register: TWI_ENABLE */
+/* Description: Enable TWI */
+
+/* Bits 3..0 : Enable or disable TWI */
+#define TWI_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define TWI_ENABLE_ENABLE_Msk (0xFUL << TWI_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define TWI_ENABLE_ENABLE_Disabled (0UL) /*!< Disable TWI */
+#define TWI_ENABLE_ENABLE_Enabled (5UL) /*!< Enable TWI */
+
+/* Register: TWI_PSELSCL */
+/* Description: Pin select for SCL */
+
+/* Bits 31..0 : Pin number configuration for TWI SCL signal */
+#define TWI_PSELSCL_PSELSCL_Pos (0UL) /*!< Position of PSELSCL field. */
+#define TWI_PSELSCL_PSELSCL_Msk (0xFFFFFFFFUL << TWI_PSELSCL_PSELSCL_Pos) /*!< Bit mask of PSELSCL field. */
+#define TWI_PSELSCL_PSELSCL_Disconnected (0xFFFFFFFFUL) /*!< Disconnect */
+
+/* Register: TWI_PSELSDA */
+/* Description: Pin select for SDA */
+
+/* Bits 31..0 : Pin number configuration for TWI SDA signal */
+#define TWI_PSELSDA_PSELSDA_Pos (0UL) /*!< Position of PSELSDA field. */
+#define TWI_PSELSDA_PSELSDA_Msk (0xFFFFFFFFUL << TWI_PSELSDA_PSELSDA_Pos) /*!< Bit mask of PSELSDA field. */
+#define TWI_PSELSDA_PSELSDA_Disconnected (0xFFFFFFFFUL) /*!< Disconnect */
+
+/* Register: TWI_RXD */
+/* Description: RXD register */
+
+/* Bits 7..0 : RXD register */
+#define TWI_RXD_RXD_Pos (0UL) /*!< Position of RXD field. */
+#define TWI_RXD_RXD_Msk (0xFFUL << TWI_RXD_RXD_Pos) /*!< Bit mask of RXD field. */
+
+/* Register: TWI_TXD */
+/* Description: TXD register */
+
+/* Bits 7..0 : TXD register */
+#define TWI_TXD_TXD_Pos (0UL) /*!< Position of TXD field. */
+#define TWI_TXD_TXD_Msk (0xFFUL << TWI_TXD_TXD_Pos) /*!< Bit mask of TXD field. */
+
+/* Register: TWI_FREQUENCY */
+/* Description: TWI frequency */
+
+/* Bits 31..0 : TWI master clock frequency */
+#define TWI_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define TWI_FREQUENCY_FREQUENCY_Msk (0xFFFFFFFFUL << TWI_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+#define TWI_FREQUENCY_FREQUENCY_K100 (0x01980000UL) /*!< 100 kbps */
+#define TWI_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250 kbps */
+#define TWI_FREQUENCY_FREQUENCY_K400 (0x06680000UL) /*!< 400 kbps (actual rate 410.256 kbps) */
+
+/* Register: TWI_ADDRESS */
+/* Description: Address used in the TWI transfer */
+
+/* Bits 6..0 : Address used in the TWI transfer */
+#define TWI_ADDRESS_ADDRESS_Pos (0UL) /*!< Position of ADDRESS field. */
+#define TWI_ADDRESS_ADDRESS_Msk (0x7FUL << TWI_ADDRESS_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+
+
+/* Peripheral: TWIM */
+/* Description: I2C compatible Two-Wire Master Interface with EasyDMA 0 */
+
+/* Register: TWIM_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 12 : Shortcut between LASTRX event and STOP task */
+#define TWIM_SHORTS_LASTRX_STOP_Pos (12UL) /*!< Position of LASTRX_STOP field. */
+#define TWIM_SHORTS_LASTRX_STOP_Msk (0x1UL << TWIM_SHORTS_LASTRX_STOP_Pos) /*!< Bit mask of LASTRX_STOP field. */
+#define TWIM_SHORTS_LASTRX_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTRX_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 10 : Shortcut between LASTRX event and STARTTX task */
+#define TWIM_SHORTS_LASTRX_STARTTX_Pos (10UL) /*!< Position of LASTRX_STARTTX field. */
+#define TWIM_SHORTS_LASTRX_STARTTX_Msk (0x1UL << TWIM_SHORTS_LASTRX_STARTTX_Pos) /*!< Bit mask of LASTRX_STARTTX field. */
+#define TWIM_SHORTS_LASTRX_STARTTX_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTRX_STARTTX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 9 : Shortcut between LASTTX event and STOP task */
+#define TWIM_SHORTS_LASTTX_STOP_Pos (9UL) /*!< Position of LASTTX_STOP field. */
+#define TWIM_SHORTS_LASTTX_STOP_Msk (0x1UL << TWIM_SHORTS_LASTTX_STOP_Pos) /*!< Bit mask of LASTTX_STOP field. */
+#define TWIM_SHORTS_LASTTX_STOP_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTTX_STOP_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 8 : Shortcut between LASTTX event and SUSPEND task */
+#define TWIM_SHORTS_LASTTX_SUSPEND_Pos (8UL) /*!< Position of LASTTX_SUSPEND field. */
+#define TWIM_SHORTS_LASTTX_SUSPEND_Msk (0x1UL << TWIM_SHORTS_LASTTX_SUSPEND_Pos) /*!< Bit mask of LASTTX_SUSPEND field. */
+#define TWIM_SHORTS_LASTTX_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTTX_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 7 : Shortcut between LASTTX event and STARTRX task */
+#define TWIM_SHORTS_LASTTX_STARTRX_Pos (7UL) /*!< Position of LASTTX_STARTRX field. */
+#define TWIM_SHORTS_LASTTX_STARTRX_Msk (0x1UL << TWIM_SHORTS_LASTTX_STARTRX_Pos) /*!< Bit mask of LASTTX_STARTRX field. */
+#define TWIM_SHORTS_LASTTX_STARTRX_Disabled (0UL) /*!< Disable shortcut */
+#define TWIM_SHORTS_LASTTX_STARTRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: TWIM_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 24 : Enable or disable interrupt for LASTTX event */
+#define TWIM_INTEN_LASTTX_Pos (24UL) /*!< Position of LASTTX field. */
+#define TWIM_INTEN_LASTTX_Msk (0x1UL << TWIM_INTEN_LASTTX_Pos) /*!< Bit mask of LASTTX field. */
+#define TWIM_INTEN_LASTTX_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_LASTTX_Enabled (1UL) /*!< Enable */
+
+/* Bit 23 : Enable or disable interrupt for LASTRX event */
+#define TWIM_INTEN_LASTRX_Pos (23UL) /*!< Position of LASTRX field. */
+#define TWIM_INTEN_LASTRX_Msk (0x1UL << TWIM_INTEN_LASTRX_Pos) /*!< Bit mask of LASTRX field. */
+#define TWIM_INTEN_LASTRX_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_LASTRX_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for TXSTARTED event */
+#define TWIM_INTEN_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIM_INTEN_TXSTARTED_Msk (0x1UL << TWIM_INTEN_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIM_INTEN_TXSTARTED_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_TXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for RXSTARTED event */
+#define TWIM_INTEN_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIM_INTEN_RXSTARTED_Msk (0x1UL << TWIM_INTEN_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIM_INTEN_RXSTARTED_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_RXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 18 : Enable or disable interrupt for SUSPENDED event */
+#define TWIM_INTEN_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWIM_INTEN_SUSPENDED_Msk (0x1UL << TWIM_INTEN_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWIM_INTEN_SUSPENDED_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_SUSPENDED_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for ERROR event */
+#define TWIM_INTEN_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIM_INTEN_ERROR_Msk (0x1UL << TWIM_INTEN_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIM_INTEN_ERROR_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_ERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STOPPED event */
+#define TWIM_INTEN_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIM_INTEN_STOPPED_Msk (0x1UL << TWIM_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIM_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define TWIM_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Register: TWIM_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 24 : Write '1' to Enable interrupt for LASTTX event */
+#define TWIM_INTENSET_LASTTX_Pos (24UL) /*!< Position of LASTTX field. */
+#define TWIM_INTENSET_LASTTX_Msk (0x1UL << TWIM_INTENSET_LASTTX_Pos) /*!< Bit mask of LASTTX field. */
+#define TWIM_INTENSET_LASTTX_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_LASTTX_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_LASTTX_Set (1UL) /*!< Enable */
+
+/* Bit 23 : Write '1' to Enable interrupt for LASTRX event */
+#define TWIM_INTENSET_LASTRX_Pos (23UL) /*!< Position of LASTRX field. */
+#define TWIM_INTENSET_LASTRX_Msk (0x1UL << TWIM_INTENSET_LASTRX_Pos) /*!< Bit mask of LASTRX field. */
+#define TWIM_INTENSET_LASTRX_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_LASTRX_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_LASTRX_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to Enable interrupt for TXSTARTED event */
+#define TWIM_INTENSET_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIM_INTENSET_TXSTARTED_Msk (0x1UL << TWIM_INTENSET_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIM_INTENSET_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_TXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to Enable interrupt for RXSTARTED event */
+#define TWIM_INTENSET_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIM_INTENSET_RXSTARTED_Msk (0x1UL << TWIM_INTENSET_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIM_INTENSET_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_RXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 18 : Write '1' to Enable interrupt for SUSPENDED event */
+#define TWIM_INTENSET_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWIM_INTENSET_SUSPENDED_Msk (0x1UL << TWIM_INTENSET_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWIM_INTENSET_SUSPENDED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_SUSPENDED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_SUSPENDED_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to Enable interrupt for ERROR event */
+#define TWIM_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIM_INTENSET_ERROR_Msk (0x1UL << TWIM_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIM_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for STOPPED event */
+#define TWIM_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIM_INTENSET_STOPPED_Msk (0x1UL << TWIM_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIM_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: TWIM_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 24 : Write '1' to Disable interrupt for LASTTX event */
+#define TWIM_INTENCLR_LASTTX_Pos (24UL) /*!< Position of LASTTX field. */
+#define TWIM_INTENCLR_LASTTX_Msk (0x1UL << TWIM_INTENCLR_LASTTX_Pos) /*!< Bit mask of LASTTX field. */
+#define TWIM_INTENCLR_LASTTX_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_LASTTX_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_LASTTX_Clear (1UL) /*!< Disable */
+
+/* Bit 23 : Write '1' to Disable interrupt for LASTRX event */
+#define TWIM_INTENCLR_LASTRX_Pos (23UL) /*!< Position of LASTRX field. */
+#define TWIM_INTENCLR_LASTRX_Msk (0x1UL << TWIM_INTENCLR_LASTRX_Pos) /*!< Bit mask of LASTRX field. */
+#define TWIM_INTENCLR_LASTRX_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_LASTRX_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_LASTRX_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to Disable interrupt for TXSTARTED event */
+#define TWIM_INTENCLR_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIM_INTENCLR_TXSTARTED_Msk (0x1UL << TWIM_INTENCLR_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIM_INTENCLR_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_TXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to Disable interrupt for RXSTARTED event */
+#define TWIM_INTENCLR_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIM_INTENCLR_RXSTARTED_Msk (0x1UL << TWIM_INTENCLR_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIM_INTENCLR_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_RXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 18 : Write '1' to Disable interrupt for SUSPENDED event */
+#define TWIM_INTENCLR_SUSPENDED_Pos (18UL) /*!< Position of SUSPENDED field. */
+#define TWIM_INTENCLR_SUSPENDED_Msk (0x1UL << TWIM_INTENCLR_SUSPENDED_Pos) /*!< Bit mask of SUSPENDED field. */
+#define TWIM_INTENCLR_SUSPENDED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_SUSPENDED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_SUSPENDED_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to Disable interrupt for ERROR event */
+#define TWIM_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIM_INTENCLR_ERROR_Msk (0x1UL << TWIM_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIM_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for STOPPED event */
+#define TWIM_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIM_INTENCLR_STOPPED_Msk (0x1UL << TWIM_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIM_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIM_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIM_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: TWIM_ERRORSRC */
+/* Description: Error source */
+
+/* Bit 2 : NACK received after sending a data byte (write '1' to clear) */
+#define TWIM_ERRORSRC_DNACK_Pos (2UL) /*!< Position of DNACK field. */
+#define TWIM_ERRORSRC_DNACK_Msk (0x1UL << TWIM_ERRORSRC_DNACK_Pos) /*!< Bit mask of DNACK field. */
+#define TWIM_ERRORSRC_DNACK_NotReceived (0UL) /*!< Error did not occur */
+#define TWIM_ERRORSRC_DNACK_Received (1UL) /*!< Error occurred */
+
+/* Bit 1 : NACK received after sending the address (write '1' to clear) */
+#define TWIM_ERRORSRC_ANACK_Pos (1UL) /*!< Position of ANACK field. */
+#define TWIM_ERRORSRC_ANACK_Msk (0x1UL << TWIM_ERRORSRC_ANACK_Pos) /*!< Bit mask of ANACK field. */
+#define TWIM_ERRORSRC_ANACK_NotReceived (0UL) /*!< Error did not occur */
+#define TWIM_ERRORSRC_ANACK_Received (1UL) /*!< Error occurred */
+
+/* Bit 0 : Overrun error */
+#define TWIM_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
+#define TWIM_ERRORSRC_OVERRUN_Msk (0x1UL << TWIM_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define TWIM_ERRORSRC_OVERRUN_NotReceived (0UL) /*!< Error did not occur */
+#define TWIM_ERRORSRC_OVERRUN_Received (1UL) /*!< Error occurred */
+
+/* Register: TWIM_ENABLE */
+/* Description: Enable TWIM */
+
+/* Bits 3..0 : Enable or disable TWIM */
+#define TWIM_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define TWIM_ENABLE_ENABLE_Msk (0xFUL << TWIM_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define TWIM_ENABLE_ENABLE_Disabled (0UL) /*!< Disable TWIM */
+#define TWIM_ENABLE_ENABLE_Enabled (6UL) /*!< Enable TWIM */
+
+/* Register: TWIM_PSEL_SCL */
+/* Description: Pin select for SCL signal */
+
+/* Bit 31 : Connection */
+#define TWIM_PSEL_SCL_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWIM_PSEL_SCL_CONNECT_Msk (0x1UL << TWIM_PSEL_SCL_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWIM_PSEL_SCL_CONNECT_Connected (0UL) /*!< Connect */
+#define TWIM_PSEL_SCL_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define TWIM_PSEL_SCL_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWIM_PSEL_SCL_PIN_Msk (0x1FUL << TWIM_PSEL_SCL_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWIM_PSEL_SDA */
+/* Description: Pin select for SDA signal */
+
+/* Bit 31 : Connection */
+#define TWIM_PSEL_SDA_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWIM_PSEL_SDA_CONNECT_Msk (0x1UL << TWIM_PSEL_SDA_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWIM_PSEL_SDA_CONNECT_Connected (0UL) /*!< Connect */
+#define TWIM_PSEL_SDA_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define TWIM_PSEL_SDA_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWIM_PSEL_SDA_PIN_Msk (0x1FUL << TWIM_PSEL_SDA_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWIM_FREQUENCY */
+/* Description: TWI frequency */
+
+/* Bits 31..0 : TWI master clock frequency */
+#define TWIM_FREQUENCY_FREQUENCY_Pos (0UL) /*!< Position of FREQUENCY field. */
+#define TWIM_FREQUENCY_FREQUENCY_Msk (0xFFFFFFFFUL << TWIM_FREQUENCY_FREQUENCY_Pos) /*!< Bit mask of FREQUENCY field. */
+#define TWIM_FREQUENCY_FREQUENCY_K100 (0x01980000UL) /*!< 100 kbps */
+#define TWIM_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250 kbps */
+#define TWIM_FREQUENCY_FREQUENCY_K400 (0x06400000UL) /*!< 400 kbps */
+
+/* Register: TWIM_RXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define TWIM_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define TWIM_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << TWIM_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: TWIM_RXD_MAXCNT */
+/* Description: Maximum number of bytes in receive buffer */
+
+/* Bits 7..0 : Maximum number of bytes in receive buffer */
+#define TWIM_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define TWIM_RXD_MAXCNT_MAXCNT_Msk (0xFFUL << TWIM_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: TWIM_RXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 7..0 : Number of bytes transferred in the last transaction. In case of NACK error, includes the NACK'ed byte. */
+#define TWIM_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define TWIM_RXD_AMOUNT_AMOUNT_Msk (0xFFUL << TWIM_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: TWIM_RXD_LIST */
+/* Description: EasyDMA list type */
+
+/* Bits 2..0 : List type */
+#define TWIM_RXD_LIST_LIST_Pos (0UL) /*!< Position of LIST field. */
+#define TWIM_RXD_LIST_LIST_Msk (0x7UL << TWIM_RXD_LIST_LIST_Pos) /*!< Bit mask of LIST field. */
+#define TWIM_RXD_LIST_LIST_Disabled (0UL) /*!< Disable EasyDMA list */
+#define TWIM_RXD_LIST_LIST_ArrayList (1UL) /*!< Use array list */
+
+/* Register: TWIM_TXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define TWIM_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define TWIM_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << TWIM_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: TWIM_TXD_MAXCNT */
+/* Description: Maximum number of bytes in transmit buffer */
+
+/* Bits 7..0 : Maximum number of bytes in transmit buffer */
+#define TWIM_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define TWIM_TXD_MAXCNT_MAXCNT_Msk (0xFFUL << TWIM_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: TWIM_TXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 7..0 : Number of bytes transferred in the last transaction. In case of NACK error, includes the NACK'ed byte. */
+#define TWIM_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define TWIM_TXD_AMOUNT_AMOUNT_Msk (0xFFUL << TWIM_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: TWIM_TXD_LIST */
+/* Description: EasyDMA list type */
+
+/* Bits 2..0 : List type */
+#define TWIM_TXD_LIST_LIST_Pos (0UL) /*!< Position of LIST field. */
+#define TWIM_TXD_LIST_LIST_Msk (0x7UL << TWIM_TXD_LIST_LIST_Pos) /*!< Bit mask of LIST field. */
+#define TWIM_TXD_LIST_LIST_Disabled (0UL) /*!< Disable EasyDMA list */
+#define TWIM_TXD_LIST_LIST_ArrayList (1UL) /*!< Use array list */
+
+/* Register: TWIM_ADDRESS */
+/* Description: Address used in the TWI transfer */
+
+/* Bits 6..0 : Address used in the TWI transfer */
+#define TWIM_ADDRESS_ADDRESS_Pos (0UL) /*!< Position of ADDRESS field. */
+#define TWIM_ADDRESS_ADDRESS_Msk (0x7FUL << TWIM_ADDRESS_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+
+
+/* Peripheral: TWIS */
+/* Description: I2C compatible Two-Wire Slave Interface with EasyDMA 0 */
+
+/* Register: TWIS_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 14 : Shortcut between READ event and SUSPEND task */
+#define TWIS_SHORTS_READ_SUSPEND_Pos (14UL) /*!< Position of READ_SUSPEND field. */
+#define TWIS_SHORTS_READ_SUSPEND_Msk (0x1UL << TWIS_SHORTS_READ_SUSPEND_Pos) /*!< Bit mask of READ_SUSPEND field. */
+#define TWIS_SHORTS_READ_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWIS_SHORTS_READ_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 13 : Shortcut between WRITE event and SUSPEND task */
+#define TWIS_SHORTS_WRITE_SUSPEND_Pos (13UL) /*!< Position of WRITE_SUSPEND field. */
+#define TWIS_SHORTS_WRITE_SUSPEND_Msk (0x1UL << TWIS_SHORTS_WRITE_SUSPEND_Pos) /*!< Bit mask of WRITE_SUSPEND field. */
+#define TWIS_SHORTS_WRITE_SUSPEND_Disabled (0UL) /*!< Disable shortcut */
+#define TWIS_SHORTS_WRITE_SUSPEND_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: TWIS_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 26 : Enable or disable interrupt for READ event */
+#define TWIS_INTEN_READ_Pos (26UL) /*!< Position of READ field. */
+#define TWIS_INTEN_READ_Msk (0x1UL << TWIS_INTEN_READ_Pos) /*!< Bit mask of READ field. */
+#define TWIS_INTEN_READ_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_READ_Enabled (1UL) /*!< Enable */
+
+/* Bit 25 : Enable or disable interrupt for WRITE event */
+#define TWIS_INTEN_WRITE_Pos (25UL) /*!< Position of WRITE field. */
+#define TWIS_INTEN_WRITE_Msk (0x1UL << TWIS_INTEN_WRITE_Pos) /*!< Bit mask of WRITE field. */
+#define TWIS_INTEN_WRITE_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_WRITE_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for TXSTARTED event */
+#define TWIS_INTEN_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIS_INTEN_TXSTARTED_Msk (0x1UL << TWIS_INTEN_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIS_INTEN_TXSTARTED_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_TXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for RXSTARTED event */
+#define TWIS_INTEN_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIS_INTEN_RXSTARTED_Msk (0x1UL << TWIS_INTEN_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIS_INTEN_RXSTARTED_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_RXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for ERROR event */
+#define TWIS_INTEN_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIS_INTEN_ERROR_Msk (0x1UL << TWIS_INTEN_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIS_INTEN_ERROR_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_ERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for STOPPED event */
+#define TWIS_INTEN_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIS_INTEN_STOPPED_Msk (0x1UL << TWIS_INTEN_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIS_INTEN_STOPPED_Disabled (0UL) /*!< Disable */
+#define TWIS_INTEN_STOPPED_Enabled (1UL) /*!< Enable */
+
+/* Register: TWIS_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 26 : Write '1' to Enable interrupt for READ event */
+#define TWIS_INTENSET_READ_Pos (26UL) /*!< Position of READ field. */
+#define TWIS_INTENSET_READ_Msk (0x1UL << TWIS_INTENSET_READ_Pos) /*!< Bit mask of READ field. */
+#define TWIS_INTENSET_READ_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_READ_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_READ_Set (1UL) /*!< Enable */
+
+/* Bit 25 : Write '1' to Enable interrupt for WRITE event */
+#define TWIS_INTENSET_WRITE_Pos (25UL) /*!< Position of WRITE field. */
+#define TWIS_INTENSET_WRITE_Msk (0x1UL << TWIS_INTENSET_WRITE_Pos) /*!< Bit mask of WRITE field. */
+#define TWIS_INTENSET_WRITE_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_WRITE_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_WRITE_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to Enable interrupt for TXSTARTED event */
+#define TWIS_INTENSET_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIS_INTENSET_TXSTARTED_Msk (0x1UL << TWIS_INTENSET_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIS_INTENSET_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_TXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to Enable interrupt for RXSTARTED event */
+#define TWIS_INTENSET_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIS_INTENSET_RXSTARTED_Msk (0x1UL << TWIS_INTENSET_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIS_INTENSET_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_RXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to Enable interrupt for ERROR event */
+#define TWIS_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIS_INTENSET_ERROR_Msk (0x1UL << TWIS_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIS_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for STOPPED event */
+#define TWIS_INTENSET_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIS_INTENSET_STOPPED_Msk (0x1UL << TWIS_INTENSET_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIS_INTENSET_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENSET_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENSET_STOPPED_Set (1UL) /*!< Enable */
+
+/* Register: TWIS_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 26 : Write '1' to Disable interrupt for READ event */
+#define TWIS_INTENCLR_READ_Pos (26UL) /*!< Position of READ field. */
+#define TWIS_INTENCLR_READ_Msk (0x1UL << TWIS_INTENCLR_READ_Pos) /*!< Bit mask of READ field. */
+#define TWIS_INTENCLR_READ_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_READ_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_READ_Clear (1UL) /*!< Disable */
+
+/* Bit 25 : Write '1' to Disable interrupt for WRITE event */
+#define TWIS_INTENCLR_WRITE_Pos (25UL) /*!< Position of WRITE field. */
+#define TWIS_INTENCLR_WRITE_Msk (0x1UL << TWIS_INTENCLR_WRITE_Pos) /*!< Bit mask of WRITE field. */
+#define TWIS_INTENCLR_WRITE_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_WRITE_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_WRITE_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to Disable interrupt for TXSTARTED event */
+#define TWIS_INTENCLR_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define TWIS_INTENCLR_TXSTARTED_Msk (0x1UL << TWIS_INTENCLR_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define TWIS_INTENCLR_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_TXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to Disable interrupt for RXSTARTED event */
+#define TWIS_INTENCLR_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define TWIS_INTENCLR_RXSTARTED_Msk (0x1UL << TWIS_INTENCLR_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define TWIS_INTENCLR_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_RXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to Disable interrupt for ERROR event */
+#define TWIS_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define TWIS_INTENCLR_ERROR_Msk (0x1UL << TWIS_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define TWIS_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for STOPPED event */
+#define TWIS_INTENCLR_STOPPED_Pos (1UL) /*!< Position of STOPPED field. */
+#define TWIS_INTENCLR_STOPPED_Msk (0x1UL << TWIS_INTENCLR_STOPPED_Pos) /*!< Bit mask of STOPPED field. */
+#define TWIS_INTENCLR_STOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define TWIS_INTENCLR_STOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define TWIS_INTENCLR_STOPPED_Clear (1UL) /*!< Disable */
+
+/* Register: TWIS_ERRORSRC */
+/* Description: Error source */
+
+/* Bit 3 : TX buffer over-read detected, and prevented */
+#define TWIS_ERRORSRC_OVERREAD_Pos (3UL) /*!< Position of OVERREAD field. */
+#define TWIS_ERRORSRC_OVERREAD_Msk (0x1UL << TWIS_ERRORSRC_OVERREAD_Pos) /*!< Bit mask of OVERREAD field. */
+#define TWIS_ERRORSRC_OVERREAD_NotDetected (0UL) /*!< Error did not occur */
+#define TWIS_ERRORSRC_OVERREAD_Detected (1UL) /*!< Error occurred */
+
+/* Bit 2 : NACK sent after receiving a data byte */
+#define TWIS_ERRORSRC_DNACK_Pos (2UL) /*!< Position of DNACK field. */
+#define TWIS_ERRORSRC_DNACK_Msk (0x1UL << TWIS_ERRORSRC_DNACK_Pos) /*!< Bit mask of DNACK field. */
+#define TWIS_ERRORSRC_DNACK_NotReceived (0UL) /*!< Error did not occur */
+#define TWIS_ERRORSRC_DNACK_Received (1UL) /*!< Error occurred */
+
+/* Bit 0 : RX buffer overflow detected, and prevented */
+#define TWIS_ERRORSRC_OVERFLOW_Pos (0UL) /*!< Position of OVERFLOW field. */
+#define TWIS_ERRORSRC_OVERFLOW_Msk (0x1UL << TWIS_ERRORSRC_OVERFLOW_Pos) /*!< Bit mask of OVERFLOW field. */
+#define TWIS_ERRORSRC_OVERFLOW_NotDetected (0UL) /*!< Error did not occur */
+#define TWIS_ERRORSRC_OVERFLOW_Detected (1UL) /*!< Error occurred */
+
+/* Register: TWIS_MATCH */
+/* Description: Status register indicating which address had a match */
+
+/* Bit 0 : Which of the addresses in {ADDRESS} matched the incoming address */
+#define TWIS_MATCH_MATCH_Pos (0UL) /*!< Position of MATCH field. */
+#define TWIS_MATCH_MATCH_Msk (0x1UL << TWIS_MATCH_MATCH_Pos) /*!< Bit mask of MATCH field. */
+
+/* Register: TWIS_ENABLE */
+/* Description: Enable TWIS */
+
+/* Bits 3..0 : Enable or disable TWIS */
+#define TWIS_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define TWIS_ENABLE_ENABLE_Msk (0xFUL << TWIS_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define TWIS_ENABLE_ENABLE_Disabled (0UL) /*!< Disable TWIS */
+#define TWIS_ENABLE_ENABLE_Enabled (9UL) /*!< Enable TWIS */
+
+/* Register: TWIS_PSEL_SCL */
+/* Description: Pin select for SCL signal */
+
+/* Bit 31 : Connection */
+#define TWIS_PSEL_SCL_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWIS_PSEL_SCL_CONNECT_Msk (0x1UL << TWIS_PSEL_SCL_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWIS_PSEL_SCL_CONNECT_Connected (0UL) /*!< Connect */
+#define TWIS_PSEL_SCL_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define TWIS_PSEL_SCL_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWIS_PSEL_SCL_PIN_Msk (0x1FUL << TWIS_PSEL_SCL_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWIS_PSEL_SDA */
+/* Description: Pin select for SDA signal */
+
+/* Bit 31 : Connection */
+#define TWIS_PSEL_SDA_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define TWIS_PSEL_SDA_CONNECT_Msk (0x1UL << TWIS_PSEL_SDA_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define TWIS_PSEL_SDA_CONNECT_Connected (0UL) /*!< Connect */
+#define TWIS_PSEL_SDA_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define TWIS_PSEL_SDA_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define TWIS_PSEL_SDA_PIN_Msk (0x1FUL << TWIS_PSEL_SDA_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: TWIS_RXD_PTR */
+/* Description: RXD Data pointer */
+
+/* Bits 31..0 : RXD Data pointer */
+#define TWIS_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define TWIS_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << TWIS_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: TWIS_RXD_MAXCNT */
+/* Description: Maximum number of bytes in RXD buffer */
+
+/* Bits 7..0 : Maximum number of bytes in RXD buffer */
+#define TWIS_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define TWIS_RXD_MAXCNT_MAXCNT_Msk (0xFFUL << TWIS_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: TWIS_RXD_AMOUNT */
+/* Description: Number of bytes transferred in the last RXD transaction */
+
+/* Bits 7..0 : Number of bytes transferred in the last RXD transaction */
+#define TWIS_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define TWIS_RXD_AMOUNT_AMOUNT_Msk (0xFFUL << TWIS_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: TWIS_TXD_PTR */
+/* Description: TXD Data pointer */
+
+/* Bits 31..0 : TXD Data pointer */
+#define TWIS_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define TWIS_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << TWIS_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: TWIS_TXD_MAXCNT */
+/* Description: Maximum number of bytes in TXD buffer */
+
+/* Bits 7..0 : Maximum number of bytes in TXD buffer */
+#define TWIS_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define TWIS_TXD_MAXCNT_MAXCNT_Msk (0xFFUL << TWIS_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: TWIS_TXD_AMOUNT */
+/* Description: Number of bytes transferred in the last TXD transaction */
+
+/* Bits 7..0 : Number of bytes transferred in the last TXD transaction */
+#define TWIS_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define TWIS_TXD_AMOUNT_AMOUNT_Msk (0xFFUL << TWIS_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: TWIS_ADDRESS */
+/* Description: Description collection[0]: TWI slave address 0 */
+
+/* Bits 6..0 : TWI slave address */
+#define TWIS_ADDRESS_ADDRESS_Pos (0UL) /*!< Position of ADDRESS field. */
+#define TWIS_ADDRESS_ADDRESS_Msk (0x7FUL << TWIS_ADDRESS_ADDRESS_Pos) /*!< Bit mask of ADDRESS field. */
+
+/* Register: TWIS_CONFIG */
+/* Description: Configuration register for the address match mechanism */
+
+/* Bit 1 : Enable or disable address matching on ADDRESS[1] */
+#define TWIS_CONFIG_ADDRESS1_Pos (1UL) /*!< Position of ADDRESS1 field. */
+#define TWIS_CONFIG_ADDRESS1_Msk (0x1UL << TWIS_CONFIG_ADDRESS1_Pos) /*!< Bit mask of ADDRESS1 field. */
+#define TWIS_CONFIG_ADDRESS1_Disabled (0UL) /*!< Disabled */
+#define TWIS_CONFIG_ADDRESS1_Enabled (1UL) /*!< Enabled */
+
+/* Bit 0 : Enable or disable address matching on ADDRESS[0] */
+#define TWIS_CONFIG_ADDRESS0_Pos (0UL) /*!< Position of ADDRESS0 field. */
+#define TWIS_CONFIG_ADDRESS0_Msk (0x1UL << TWIS_CONFIG_ADDRESS0_Pos) /*!< Bit mask of ADDRESS0 field. */
+#define TWIS_CONFIG_ADDRESS0_Disabled (0UL) /*!< Disabled */
+#define TWIS_CONFIG_ADDRESS0_Enabled (1UL) /*!< Enabled */
+
+/* Register: TWIS_ORC */
+/* Description: Over-read character. Character sent out in case of an over-read of the transmit buffer. */
+
+/* Bits 7..0 : Over-read character. Character sent out in case of an over-read of the transmit buffer. */
+#define TWIS_ORC_ORC_Pos (0UL) /*!< Position of ORC field. */
+#define TWIS_ORC_ORC_Msk (0xFFUL << TWIS_ORC_ORC_Pos) /*!< Bit mask of ORC field. */
+
+
+/* Peripheral: UART */
+/* Description: Universal Asynchronous Receiver/Transmitter */
+
+/* Register: UART_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 4 : Shortcut between NCTS event and STOPRX task */
+#define UART_SHORTS_NCTS_STOPRX_Pos (4UL) /*!< Position of NCTS_STOPRX field. */
+#define UART_SHORTS_NCTS_STOPRX_Msk (0x1UL << UART_SHORTS_NCTS_STOPRX_Pos) /*!< Bit mask of NCTS_STOPRX field. */
+#define UART_SHORTS_NCTS_STOPRX_Disabled (0UL) /*!< Disable shortcut */
+#define UART_SHORTS_NCTS_STOPRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 3 : Shortcut between CTS event and STARTRX task */
+#define UART_SHORTS_CTS_STARTRX_Pos (3UL) /*!< Position of CTS_STARTRX field. */
+#define UART_SHORTS_CTS_STARTRX_Msk (0x1UL << UART_SHORTS_CTS_STARTRX_Pos) /*!< Bit mask of CTS_STARTRX field. */
+#define UART_SHORTS_CTS_STARTRX_Disabled (0UL) /*!< Disable shortcut */
+#define UART_SHORTS_CTS_STARTRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: UART_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 17 : Write '1' to Enable interrupt for RXTO event */
+#define UART_INTENSET_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UART_INTENSET_RXTO_Msk (0x1UL << UART_INTENSET_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UART_INTENSET_RXTO_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENSET_RXTO_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENSET_RXTO_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to Enable interrupt for ERROR event */
+#define UART_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UART_INTENSET_ERROR_Msk (0x1UL << UART_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UART_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for TXDRDY event */
+#define UART_INTENSET_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UART_INTENSET_TXDRDY_Msk (0x1UL << UART_INTENSET_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UART_INTENSET_TXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENSET_TXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENSET_TXDRDY_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for RXDRDY event */
+#define UART_INTENSET_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UART_INTENSET_RXDRDY_Msk (0x1UL << UART_INTENSET_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UART_INTENSET_RXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENSET_RXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENSET_RXDRDY_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for NCTS event */
+#define UART_INTENSET_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UART_INTENSET_NCTS_Msk (0x1UL << UART_INTENSET_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UART_INTENSET_NCTS_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENSET_NCTS_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENSET_NCTS_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for CTS event */
+#define UART_INTENSET_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UART_INTENSET_CTS_Msk (0x1UL << UART_INTENSET_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UART_INTENSET_CTS_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENSET_CTS_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENSET_CTS_Set (1UL) /*!< Enable */
+
+/* Register: UART_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 17 : Write '1' to Disable interrupt for RXTO event */
+#define UART_INTENCLR_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UART_INTENCLR_RXTO_Msk (0x1UL << UART_INTENCLR_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UART_INTENCLR_RXTO_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENCLR_RXTO_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENCLR_RXTO_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to Disable interrupt for ERROR event */
+#define UART_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UART_INTENCLR_ERROR_Msk (0x1UL << UART_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UART_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for TXDRDY event */
+#define UART_INTENCLR_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UART_INTENCLR_TXDRDY_Msk (0x1UL << UART_INTENCLR_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UART_INTENCLR_TXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENCLR_TXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENCLR_TXDRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for RXDRDY event */
+#define UART_INTENCLR_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UART_INTENCLR_RXDRDY_Msk (0x1UL << UART_INTENCLR_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UART_INTENCLR_RXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENCLR_RXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENCLR_RXDRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for NCTS event */
+#define UART_INTENCLR_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UART_INTENCLR_NCTS_Msk (0x1UL << UART_INTENCLR_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UART_INTENCLR_NCTS_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENCLR_NCTS_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENCLR_NCTS_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for CTS event */
+#define UART_INTENCLR_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UART_INTENCLR_CTS_Msk (0x1UL << UART_INTENCLR_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UART_INTENCLR_CTS_Disabled (0UL) /*!< Read: Disabled */
+#define UART_INTENCLR_CTS_Enabled (1UL) /*!< Read: Enabled */
+#define UART_INTENCLR_CTS_Clear (1UL) /*!< Disable */
+
+/* Register: UART_ERRORSRC */
+/* Description: Error source */
+
+/* Bit 3 : Break condition */
+#define UART_ERRORSRC_BREAK_Pos (3UL) /*!< Position of BREAK field. */
+#define UART_ERRORSRC_BREAK_Msk (0x1UL << UART_ERRORSRC_BREAK_Pos) /*!< Bit mask of BREAK field. */
+#define UART_ERRORSRC_BREAK_NotPresent (0UL) /*!< Read: error not present */
+#define UART_ERRORSRC_BREAK_Present (1UL) /*!< Read: error present */
+
+/* Bit 2 : Framing error occurred */
+#define UART_ERRORSRC_FRAMING_Pos (2UL) /*!< Position of FRAMING field. */
+#define UART_ERRORSRC_FRAMING_Msk (0x1UL << UART_ERRORSRC_FRAMING_Pos) /*!< Bit mask of FRAMING field. */
+#define UART_ERRORSRC_FRAMING_NotPresent (0UL) /*!< Read: error not present */
+#define UART_ERRORSRC_FRAMING_Present (1UL) /*!< Read: error present */
+
+/* Bit 1 : Parity error */
+#define UART_ERRORSRC_PARITY_Pos (1UL) /*!< Position of PARITY field. */
+#define UART_ERRORSRC_PARITY_Msk (0x1UL << UART_ERRORSRC_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define UART_ERRORSRC_PARITY_NotPresent (0UL) /*!< Read: error not present */
+#define UART_ERRORSRC_PARITY_Present (1UL) /*!< Read: error present */
+
+/* Bit 0 : Overrun error */
+#define UART_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
+#define UART_ERRORSRC_OVERRUN_Msk (0x1UL << UART_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define UART_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: error not present */
+#define UART_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: error present */
+
+/* Register: UART_ENABLE */
+/* Description: Enable UART */
+
+/* Bits 3..0 : Enable or disable UART */
+#define UART_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define UART_ENABLE_ENABLE_Msk (0xFUL << UART_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define UART_ENABLE_ENABLE_Disabled (0UL) /*!< Disable UART */
+#define UART_ENABLE_ENABLE_Enabled (4UL) /*!< Enable UART */
+
+/* Register: UART_PSELRTS */
+/* Description: Pin select for RTS */
+
+/* Bits 31..0 : Pin number configuration for UART RTS signal */
+#define UART_PSELRTS_PSELRTS_Pos (0UL) /*!< Position of PSELRTS field. */
+#define UART_PSELRTS_PSELRTS_Msk (0xFFFFFFFFUL << UART_PSELRTS_PSELRTS_Pos) /*!< Bit mask of PSELRTS field. */
+#define UART_PSELRTS_PSELRTS_Disconnected (0xFFFFFFFFUL) /*!< Disconnect */
+
+/* Register: UART_PSELTXD */
+/* Description: Pin select for TXD */
+
+/* Bits 31..0 : Pin number configuration for UART TXD signal */
+#define UART_PSELTXD_PSELTXD_Pos (0UL) /*!< Position of PSELTXD field. */
+#define UART_PSELTXD_PSELTXD_Msk (0xFFFFFFFFUL << UART_PSELTXD_PSELTXD_Pos) /*!< Bit mask of PSELTXD field. */
+#define UART_PSELTXD_PSELTXD_Disconnected (0xFFFFFFFFUL) /*!< Disconnect */
+
+/* Register: UART_PSELCTS */
+/* Description: Pin select for CTS */
+
+/* Bits 31..0 : Pin number configuration for UART CTS signal */
+#define UART_PSELCTS_PSELCTS_Pos (0UL) /*!< Position of PSELCTS field. */
+#define UART_PSELCTS_PSELCTS_Msk (0xFFFFFFFFUL << UART_PSELCTS_PSELCTS_Pos) /*!< Bit mask of PSELCTS field. */
+#define UART_PSELCTS_PSELCTS_Disconnected (0xFFFFFFFFUL) /*!< Disconnect */
+
+/* Register: UART_PSELRXD */
+/* Description: Pin select for RXD */
+
+/* Bits 31..0 : Pin number configuration for UART RXD signal */
+#define UART_PSELRXD_PSELRXD_Pos (0UL) /*!< Position of PSELRXD field. */
+#define UART_PSELRXD_PSELRXD_Msk (0xFFFFFFFFUL << UART_PSELRXD_PSELRXD_Pos) /*!< Bit mask of PSELRXD field. */
+#define UART_PSELRXD_PSELRXD_Disconnected (0xFFFFFFFFUL) /*!< Disconnect */
+
+/* Register: UART_RXD */
+/* Description: RXD register */
+
+/* Bits 7..0 : RX data received in previous transfers, double buffered */
+#define UART_RXD_RXD_Pos (0UL) /*!< Position of RXD field. */
+#define UART_RXD_RXD_Msk (0xFFUL << UART_RXD_RXD_Pos) /*!< Bit mask of RXD field. */
+
+/* Register: UART_TXD */
+/* Description: TXD register */
+
+/* Bits 7..0 : TX data to be transferred */
+#define UART_TXD_TXD_Pos (0UL) /*!< Position of TXD field. */
+#define UART_TXD_TXD_Msk (0xFFUL << UART_TXD_TXD_Pos) /*!< Bit mask of TXD field. */
+
+/* Register: UART_BAUDRATE */
+/* Description: Baud rate */
+
+/* Bits 31..0 : Baud rate */
+#define UART_BAUDRATE_BAUDRATE_Pos (0UL) /*!< Position of BAUDRATE field. */
+#define UART_BAUDRATE_BAUDRATE_Msk (0xFFFFFFFFUL << UART_BAUDRATE_BAUDRATE_Pos) /*!< Bit mask of BAUDRATE field. */
+#define UART_BAUDRATE_BAUDRATE_Baud1200 (0x0004F000UL) /*!< 1200 baud (actual rate: 1205) */
+#define UART_BAUDRATE_BAUDRATE_Baud2400 (0x0009D000UL) /*!< 2400 baud (actual rate: 2396) */
+#define UART_BAUDRATE_BAUDRATE_Baud4800 (0x0013B000UL) /*!< 4800 baud (actual rate: 4808) */
+#define UART_BAUDRATE_BAUDRATE_Baud9600 (0x00275000UL) /*!< 9600 baud (actual rate: 9598) */
+#define UART_BAUDRATE_BAUDRATE_Baud14400 (0x003B0000UL) /*!< 14400 baud (actual rate: 14414) */
+#define UART_BAUDRATE_BAUDRATE_Baud19200 (0x004EA000UL) /*!< 19200 baud (actual rate: 19208) */
+#define UART_BAUDRATE_BAUDRATE_Baud28800 (0x0075F000UL) /*!< 28800 baud (actual rate: 28829) */
+#define UART_BAUDRATE_BAUDRATE_Baud31250 (0x00800000UL) /*!< 31250 baud */
+#define UART_BAUDRATE_BAUDRATE_Baud38400 (0x009D5000UL) /*!< 38400 baud (actual rate: 38462) */
+#define UART_BAUDRATE_BAUDRATE_Baud56000 (0x00E50000UL) /*!< 56000 baud (actual rate: 55944) */
+#define UART_BAUDRATE_BAUDRATE_Baud57600 (0x00EBF000UL) /*!< 57600 baud (actual rate: 57762) */
+#define UART_BAUDRATE_BAUDRATE_Baud76800 (0x013A9000UL) /*!< 76800 baud (actual rate: 76923) */
+#define UART_BAUDRATE_BAUDRATE_Baud115200 (0x01D7E000UL) /*!< 115200 baud (actual rate: 115942) */
+#define UART_BAUDRATE_BAUDRATE_Baud230400 (0x03AFB000UL) /*!< 230400 baud (actual rate: 231884) */
+#define UART_BAUDRATE_BAUDRATE_Baud250000 (0x04000000UL) /*!< 250000 baud */
+#define UART_BAUDRATE_BAUDRATE_Baud460800 (0x075F7000UL) /*!< 460800 baud (actual rate: 470588) */
+#define UART_BAUDRATE_BAUDRATE_Baud921600 (0x0EBED000UL) /*!< 921600 baud (actual rate: 941176) */
+#define UART_BAUDRATE_BAUDRATE_Baud1M (0x10000000UL) /*!< 1Mega baud */
+
+/* Register: UART_CONFIG */
+/* Description: Configuration of parity and hardware flow control */
+
+/* Bits 3..1 : Parity */
+#define UART_CONFIG_PARITY_Pos (1UL) /*!< Position of PARITY field. */
+#define UART_CONFIG_PARITY_Msk (0x7UL << UART_CONFIG_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define UART_CONFIG_PARITY_Excluded (0x0UL) /*!< Exclude parity bit */
+#define UART_CONFIG_PARITY_Included (0x7UL) /*!< Include parity bit */
+
+/* Bit 0 : Hardware flow control */
+#define UART_CONFIG_HWFC_Pos (0UL) /*!< Position of HWFC field. */
+#define UART_CONFIG_HWFC_Msk (0x1UL << UART_CONFIG_HWFC_Pos) /*!< Bit mask of HWFC field. */
+#define UART_CONFIG_HWFC_Disabled (0UL) /*!< Disabled */
+#define UART_CONFIG_HWFC_Enabled (1UL) /*!< Enabled */
+
+
+/* Peripheral: UARTE */
+/* Description: UART with EasyDMA */
+
+/* Register: UARTE_SHORTS */
+/* Description: Shortcut register */
+
+/* Bit 6 : Shortcut between ENDRX event and STOPRX task */
+#define UARTE_SHORTS_ENDRX_STOPRX_Pos (6UL) /*!< Position of ENDRX_STOPRX field. */
+#define UARTE_SHORTS_ENDRX_STOPRX_Msk (0x1UL << UARTE_SHORTS_ENDRX_STOPRX_Pos) /*!< Bit mask of ENDRX_STOPRX field. */
+#define UARTE_SHORTS_ENDRX_STOPRX_Disabled (0UL) /*!< Disable shortcut */
+#define UARTE_SHORTS_ENDRX_STOPRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Bit 5 : Shortcut between ENDRX event and STARTRX task */
+#define UARTE_SHORTS_ENDRX_STARTRX_Pos (5UL) /*!< Position of ENDRX_STARTRX field. */
+#define UARTE_SHORTS_ENDRX_STARTRX_Msk (0x1UL << UARTE_SHORTS_ENDRX_STARTRX_Pos) /*!< Bit mask of ENDRX_STARTRX field. */
+#define UARTE_SHORTS_ENDRX_STARTRX_Disabled (0UL) /*!< Disable shortcut */
+#define UARTE_SHORTS_ENDRX_STARTRX_Enabled (1UL) /*!< Enable shortcut */
+
+/* Register: UARTE_INTEN */
+/* Description: Enable or disable interrupt */
+
+/* Bit 22 : Enable or disable interrupt for TXSTOPPED event */
+#define UARTE_INTEN_TXSTOPPED_Pos (22UL) /*!< Position of TXSTOPPED field. */
+#define UARTE_INTEN_TXSTOPPED_Msk (0x1UL << UARTE_INTEN_TXSTOPPED_Pos) /*!< Bit mask of TXSTOPPED field. */
+#define UARTE_INTEN_TXSTOPPED_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_TXSTOPPED_Enabled (1UL) /*!< Enable */
+
+/* Bit 20 : Enable or disable interrupt for TXSTARTED event */
+#define UARTE_INTEN_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define UARTE_INTEN_TXSTARTED_Msk (0x1UL << UARTE_INTEN_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define UARTE_INTEN_TXSTARTED_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_TXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 19 : Enable or disable interrupt for RXSTARTED event */
+#define UARTE_INTEN_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define UARTE_INTEN_RXSTARTED_Msk (0x1UL << UARTE_INTEN_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define UARTE_INTEN_RXSTARTED_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_RXSTARTED_Enabled (1UL) /*!< Enable */
+
+/* Bit 17 : Enable or disable interrupt for RXTO event */
+#define UARTE_INTEN_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UARTE_INTEN_RXTO_Msk (0x1UL << UARTE_INTEN_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UARTE_INTEN_RXTO_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_RXTO_Enabled (1UL) /*!< Enable */
+
+/* Bit 9 : Enable or disable interrupt for ERROR event */
+#define UARTE_INTEN_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UARTE_INTEN_ERROR_Msk (0x1UL << UARTE_INTEN_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UARTE_INTEN_ERROR_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_ERROR_Enabled (1UL) /*!< Enable */
+
+/* Bit 8 : Enable or disable interrupt for ENDTX event */
+#define UARTE_INTEN_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define UARTE_INTEN_ENDTX_Msk (0x1UL << UARTE_INTEN_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define UARTE_INTEN_ENDTX_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_ENDTX_Enabled (1UL) /*!< Enable */
+
+/* Bit 7 : Enable or disable interrupt for TXDRDY event */
+#define UARTE_INTEN_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UARTE_INTEN_TXDRDY_Msk (0x1UL << UARTE_INTEN_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UARTE_INTEN_TXDRDY_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_TXDRDY_Enabled (1UL) /*!< Enable */
+
+/* Bit 4 : Enable or disable interrupt for ENDRX event */
+#define UARTE_INTEN_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define UARTE_INTEN_ENDRX_Msk (0x1UL << UARTE_INTEN_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define UARTE_INTEN_ENDRX_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_ENDRX_Enabled (1UL) /*!< Enable */
+
+/* Bit 2 : Enable or disable interrupt for RXDRDY event */
+#define UARTE_INTEN_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UARTE_INTEN_RXDRDY_Msk (0x1UL << UARTE_INTEN_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UARTE_INTEN_RXDRDY_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_RXDRDY_Enabled (1UL) /*!< Enable */
+
+/* Bit 1 : Enable or disable interrupt for NCTS event */
+#define UARTE_INTEN_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UARTE_INTEN_NCTS_Msk (0x1UL << UARTE_INTEN_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UARTE_INTEN_NCTS_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_NCTS_Enabled (1UL) /*!< Enable */
+
+/* Bit 0 : Enable or disable interrupt for CTS event */
+#define UARTE_INTEN_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UARTE_INTEN_CTS_Msk (0x1UL << UARTE_INTEN_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UARTE_INTEN_CTS_Disabled (0UL) /*!< Disable */
+#define UARTE_INTEN_CTS_Enabled (1UL) /*!< Enable */
+
+/* Register: UARTE_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 22 : Write '1' to Enable interrupt for TXSTOPPED event */
+#define UARTE_INTENSET_TXSTOPPED_Pos (22UL) /*!< Position of TXSTOPPED field. */
+#define UARTE_INTENSET_TXSTOPPED_Msk (0x1UL << UARTE_INTENSET_TXSTOPPED_Pos) /*!< Bit mask of TXSTOPPED field. */
+#define UARTE_INTENSET_TXSTOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_TXSTOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_TXSTOPPED_Set (1UL) /*!< Enable */
+
+/* Bit 20 : Write '1' to Enable interrupt for TXSTARTED event */
+#define UARTE_INTENSET_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define UARTE_INTENSET_TXSTARTED_Msk (0x1UL << UARTE_INTENSET_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define UARTE_INTENSET_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_TXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 19 : Write '1' to Enable interrupt for RXSTARTED event */
+#define UARTE_INTENSET_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define UARTE_INTENSET_RXSTARTED_Msk (0x1UL << UARTE_INTENSET_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define UARTE_INTENSET_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_RXSTARTED_Set (1UL) /*!< Enable */
+
+/* Bit 17 : Write '1' to Enable interrupt for RXTO event */
+#define UARTE_INTENSET_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UARTE_INTENSET_RXTO_Msk (0x1UL << UARTE_INTENSET_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UARTE_INTENSET_RXTO_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_RXTO_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_RXTO_Set (1UL) /*!< Enable */
+
+/* Bit 9 : Write '1' to Enable interrupt for ERROR event */
+#define UARTE_INTENSET_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UARTE_INTENSET_ERROR_Msk (0x1UL << UARTE_INTENSET_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UARTE_INTENSET_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_ERROR_Set (1UL) /*!< Enable */
+
+/* Bit 8 : Write '1' to Enable interrupt for ENDTX event */
+#define UARTE_INTENSET_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define UARTE_INTENSET_ENDTX_Msk (0x1UL << UARTE_INTENSET_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define UARTE_INTENSET_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_ENDTX_Set (1UL) /*!< Enable */
+
+/* Bit 7 : Write '1' to Enable interrupt for TXDRDY event */
+#define UARTE_INTENSET_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UARTE_INTENSET_TXDRDY_Msk (0x1UL << UARTE_INTENSET_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UARTE_INTENSET_TXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_TXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_TXDRDY_Set (1UL) /*!< Enable */
+
+/* Bit 4 : Write '1' to Enable interrupt for ENDRX event */
+#define UARTE_INTENSET_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define UARTE_INTENSET_ENDRX_Msk (0x1UL << UARTE_INTENSET_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define UARTE_INTENSET_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_ENDRX_Set (1UL) /*!< Enable */
+
+/* Bit 2 : Write '1' to Enable interrupt for RXDRDY event */
+#define UARTE_INTENSET_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UARTE_INTENSET_RXDRDY_Msk (0x1UL << UARTE_INTENSET_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UARTE_INTENSET_RXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_RXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_RXDRDY_Set (1UL) /*!< Enable */
+
+/* Bit 1 : Write '1' to Enable interrupt for NCTS event */
+#define UARTE_INTENSET_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UARTE_INTENSET_NCTS_Msk (0x1UL << UARTE_INTENSET_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UARTE_INTENSET_NCTS_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_NCTS_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_NCTS_Set (1UL) /*!< Enable */
+
+/* Bit 0 : Write '1' to Enable interrupt for CTS event */
+#define UARTE_INTENSET_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UARTE_INTENSET_CTS_Msk (0x1UL << UARTE_INTENSET_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UARTE_INTENSET_CTS_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENSET_CTS_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENSET_CTS_Set (1UL) /*!< Enable */
+
+/* Register: UARTE_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 22 : Write '1' to Disable interrupt for TXSTOPPED event */
+#define UARTE_INTENCLR_TXSTOPPED_Pos (22UL) /*!< Position of TXSTOPPED field. */
+#define UARTE_INTENCLR_TXSTOPPED_Msk (0x1UL << UARTE_INTENCLR_TXSTOPPED_Pos) /*!< Bit mask of TXSTOPPED field. */
+#define UARTE_INTENCLR_TXSTOPPED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_TXSTOPPED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_TXSTOPPED_Clear (1UL) /*!< Disable */
+
+/* Bit 20 : Write '1' to Disable interrupt for TXSTARTED event */
+#define UARTE_INTENCLR_TXSTARTED_Pos (20UL) /*!< Position of TXSTARTED field. */
+#define UARTE_INTENCLR_TXSTARTED_Msk (0x1UL << UARTE_INTENCLR_TXSTARTED_Pos) /*!< Bit mask of TXSTARTED field. */
+#define UARTE_INTENCLR_TXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_TXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_TXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 19 : Write '1' to Disable interrupt for RXSTARTED event */
+#define UARTE_INTENCLR_RXSTARTED_Pos (19UL) /*!< Position of RXSTARTED field. */
+#define UARTE_INTENCLR_RXSTARTED_Msk (0x1UL << UARTE_INTENCLR_RXSTARTED_Pos) /*!< Bit mask of RXSTARTED field. */
+#define UARTE_INTENCLR_RXSTARTED_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_RXSTARTED_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_RXSTARTED_Clear (1UL) /*!< Disable */
+
+/* Bit 17 : Write '1' to Disable interrupt for RXTO event */
+#define UARTE_INTENCLR_RXTO_Pos (17UL) /*!< Position of RXTO field. */
+#define UARTE_INTENCLR_RXTO_Msk (0x1UL << UARTE_INTENCLR_RXTO_Pos) /*!< Bit mask of RXTO field. */
+#define UARTE_INTENCLR_RXTO_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_RXTO_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_RXTO_Clear (1UL) /*!< Disable */
+
+/* Bit 9 : Write '1' to Disable interrupt for ERROR event */
+#define UARTE_INTENCLR_ERROR_Pos (9UL) /*!< Position of ERROR field. */
+#define UARTE_INTENCLR_ERROR_Msk (0x1UL << UARTE_INTENCLR_ERROR_Pos) /*!< Bit mask of ERROR field. */
+#define UARTE_INTENCLR_ERROR_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_ERROR_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_ERROR_Clear (1UL) /*!< Disable */
+
+/* Bit 8 : Write '1' to Disable interrupt for ENDTX event */
+#define UARTE_INTENCLR_ENDTX_Pos (8UL) /*!< Position of ENDTX field. */
+#define UARTE_INTENCLR_ENDTX_Msk (0x1UL << UARTE_INTENCLR_ENDTX_Pos) /*!< Bit mask of ENDTX field. */
+#define UARTE_INTENCLR_ENDTX_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_ENDTX_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_ENDTX_Clear (1UL) /*!< Disable */
+
+/* Bit 7 : Write '1' to Disable interrupt for TXDRDY event */
+#define UARTE_INTENCLR_TXDRDY_Pos (7UL) /*!< Position of TXDRDY field. */
+#define UARTE_INTENCLR_TXDRDY_Msk (0x1UL << UARTE_INTENCLR_TXDRDY_Pos) /*!< Bit mask of TXDRDY field. */
+#define UARTE_INTENCLR_TXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_TXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_TXDRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 4 : Write '1' to Disable interrupt for ENDRX event */
+#define UARTE_INTENCLR_ENDRX_Pos (4UL) /*!< Position of ENDRX field. */
+#define UARTE_INTENCLR_ENDRX_Msk (0x1UL << UARTE_INTENCLR_ENDRX_Pos) /*!< Bit mask of ENDRX field. */
+#define UARTE_INTENCLR_ENDRX_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_ENDRX_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_ENDRX_Clear (1UL) /*!< Disable */
+
+/* Bit 2 : Write '1' to Disable interrupt for RXDRDY event */
+#define UARTE_INTENCLR_RXDRDY_Pos (2UL) /*!< Position of RXDRDY field. */
+#define UARTE_INTENCLR_RXDRDY_Msk (0x1UL << UARTE_INTENCLR_RXDRDY_Pos) /*!< Bit mask of RXDRDY field. */
+#define UARTE_INTENCLR_RXDRDY_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_RXDRDY_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_RXDRDY_Clear (1UL) /*!< Disable */
+
+/* Bit 1 : Write '1' to Disable interrupt for NCTS event */
+#define UARTE_INTENCLR_NCTS_Pos (1UL) /*!< Position of NCTS field. */
+#define UARTE_INTENCLR_NCTS_Msk (0x1UL << UARTE_INTENCLR_NCTS_Pos) /*!< Bit mask of NCTS field. */
+#define UARTE_INTENCLR_NCTS_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_NCTS_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_NCTS_Clear (1UL) /*!< Disable */
+
+/* Bit 0 : Write '1' to Disable interrupt for CTS event */
+#define UARTE_INTENCLR_CTS_Pos (0UL) /*!< Position of CTS field. */
+#define UARTE_INTENCLR_CTS_Msk (0x1UL << UARTE_INTENCLR_CTS_Pos) /*!< Bit mask of CTS field. */
+#define UARTE_INTENCLR_CTS_Disabled (0UL) /*!< Read: Disabled */
+#define UARTE_INTENCLR_CTS_Enabled (1UL) /*!< Read: Enabled */
+#define UARTE_INTENCLR_CTS_Clear (1UL) /*!< Disable */
+
+/* Register: UARTE_ERRORSRC */
+/* Description: Error source */
+
+/* Bit 3 : Break condition */
+#define UARTE_ERRORSRC_BREAK_Pos (3UL) /*!< Position of BREAK field. */
+#define UARTE_ERRORSRC_BREAK_Msk (0x1UL << UARTE_ERRORSRC_BREAK_Pos) /*!< Bit mask of BREAK field. */
+#define UARTE_ERRORSRC_BREAK_NotPresent (0UL) /*!< Read: error not present */
+#define UARTE_ERRORSRC_BREAK_Present (1UL) /*!< Read: error present */
+
+/* Bit 2 : Framing error occurred */
+#define UARTE_ERRORSRC_FRAMING_Pos (2UL) /*!< Position of FRAMING field. */
+#define UARTE_ERRORSRC_FRAMING_Msk (0x1UL << UARTE_ERRORSRC_FRAMING_Pos) /*!< Bit mask of FRAMING field. */
+#define UARTE_ERRORSRC_FRAMING_NotPresent (0UL) /*!< Read: error not present */
+#define UARTE_ERRORSRC_FRAMING_Present (1UL) /*!< Read: error present */
+
+/* Bit 1 : Parity error */
+#define UARTE_ERRORSRC_PARITY_Pos (1UL) /*!< Position of PARITY field. */
+#define UARTE_ERRORSRC_PARITY_Msk (0x1UL << UARTE_ERRORSRC_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define UARTE_ERRORSRC_PARITY_NotPresent (0UL) /*!< Read: error not present */
+#define UARTE_ERRORSRC_PARITY_Present (1UL) /*!< Read: error present */
+
+/* Bit 0 : Overrun error */
+#define UARTE_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
+#define UARTE_ERRORSRC_OVERRUN_Msk (0x1UL << UARTE_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
+#define UARTE_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: error not present */
+#define UARTE_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: error present */
+
+/* Register: UARTE_ENABLE */
+/* Description: Enable UART */
+
+/* Bits 3..0 : Enable or disable UARTE */
+#define UARTE_ENABLE_ENABLE_Pos (0UL) /*!< Position of ENABLE field. */
+#define UARTE_ENABLE_ENABLE_Msk (0xFUL << UARTE_ENABLE_ENABLE_Pos) /*!< Bit mask of ENABLE field. */
+#define UARTE_ENABLE_ENABLE_Disabled (0UL) /*!< Disable UARTE */
+#define UARTE_ENABLE_ENABLE_Enabled (8UL) /*!< Enable UARTE */
+
+/* Register: UARTE_PSEL_RTS */
+/* Description: Pin select for RTS signal */
+
+/* Bit 31 : Connection */
+#define UARTE_PSEL_RTS_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UARTE_PSEL_RTS_CONNECT_Msk (0x1UL << UARTE_PSEL_RTS_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UARTE_PSEL_RTS_CONNECT_Connected (0UL) /*!< Connect */
+#define UARTE_PSEL_RTS_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define UARTE_PSEL_RTS_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UARTE_PSEL_RTS_PIN_Msk (0x1FUL << UARTE_PSEL_RTS_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UARTE_PSEL_TXD */
+/* Description: Pin select for TXD signal */
+
+/* Bit 31 : Connection */
+#define UARTE_PSEL_TXD_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UARTE_PSEL_TXD_CONNECT_Msk (0x1UL << UARTE_PSEL_TXD_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UARTE_PSEL_TXD_CONNECT_Connected (0UL) /*!< Connect */
+#define UARTE_PSEL_TXD_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define UARTE_PSEL_TXD_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UARTE_PSEL_TXD_PIN_Msk (0x1FUL << UARTE_PSEL_TXD_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UARTE_PSEL_CTS */
+/* Description: Pin select for CTS signal */
+
+/* Bit 31 : Connection */
+#define UARTE_PSEL_CTS_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UARTE_PSEL_CTS_CONNECT_Msk (0x1UL << UARTE_PSEL_CTS_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UARTE_PSEL_CTS_CONNECT_Connected (0UL) /*!< Connect */
+#define UARTE_PSEL_CTS_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define UARTE_PSEL_CTS_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UARTE_PSEL_CTS_PIN_Msk (0x1FUL << UARTE_PSEL_CTS_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UARTE_PSEL_RXD */
+/* Description: Pin select for RXD signal */
+
+/* Bit 31 : Connection */
+#define UARTE_PSEL_RXD_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UARTE_PSEL_RXD_CONNECT_Msk (0x1UL << UARTE_PSEL_RXD_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UARTE_PSEL_RXD_CONNECT_Connected (0UL) /*!< Connect */
+#define UARTE_PSEL_RXD_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 4..0 : Pin number */
+#define UARTE_PSEL_RXD_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UARTE_PSEL_RXD_PIN_Msk (0x1FUL << UARTE_PSEL_RXD_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UARTE_BAUDRATE */
+/* Description: Baud rate. Accuracy depends on the HFCLK source selected. */
+
+/* Bits 31..0 : Baud rate */
+#define UARTE_BAUDRATE_BAUDRATE_Pos (0UL) /*!< Position of BAUDRATE field. */
+#define UARTE_BAUDRATE_BAUDRATE_Msk (0xFFFFFFFFUL << UARTE_BAUDRATE_BAUDRATE_Pos) /*!< Bit mask of BAUDRATE field. */
+#define UARTE_BAUDRATE_BAUDRATE_Baud1200 (0x0004F000UL) /*!< 1200 baud (actual rate: 1205) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud2400 (0x0009D000UL) /*!< 2400 baud (actual rate: 2396) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud4800 (0x0013B000UL) /*!< 4800 baud (actual rate: 4808) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud9600 (0x00275000UL) /*!< 9600 baud (actual rate: 9598) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud14400 (0x003AF000UL) /*!< 14400 baud (actual rate: 14401) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud19200 (0x004EA000UL) /*!< 19200 baud (actual rate: 19208) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud28800 (0x0075C000UL) /*!< 28800 baud (actual rate: 28777) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud31250 (0x00800000UL) /*!< 31250 baud */
+#define UARTE_BAUDRATE_BAUDRATE_Baud38400 (0x009D0000UL) /*!< 38400 baud (actual rate: 38369) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud56000 (0x00E50000UL) /*!< 56000 baud (actual rate: 55944) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud57600 (0x00EB0000UL) /*!< 57600 baud (actual rate: 57554) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud76800 (0x013A9000UL) /*!< 76800 baud (actual rate: 76923) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud115200 (0x01D60000UL) /*!< 115200 baud (actual rate: 115108) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud230400 (0x03B00000UL) /*!< 230400 baud (actual rate: 231884) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud250000 (0x04000000UL) /*!< 250000 baud */
+#define UARTE_BAUDRATE_BAUDRATE_Baud460800 (0x07400000UL) /*!< 460800 baud (actual rate: 457143) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud921600 (0x0F000000UL) /*!< 921600 baud (actual rate: 941176) */
+#define UARTE_BAUDRATE_BAUDRATE_Baud1M (0x10000000UL) /*!< 1Mega baud */
+
+/* Register: UARTE_RXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define UARTE_RXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define UARTE_RXD_PTR_PTR_Msk (0xFFFFFFFFUL << UARTE_RXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: UARTE_RXD_MAXCNT */
+/* Description: Maximum number of bytes in receive buffer */
+
+/* Bits 7..0 : Maximum number of bytes in receive buffer */
+#define UARTE_RXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define UARTE_RXD_MAXCNT_MAXCNT_Msk (0xFFUL << UARTE_RXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: UARTE_RXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 7..0 : Number of bytes transferred in the last transaction */
+#define UARTE_RXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define UARTE_RXD_AMOUNT_AMOUNT_Msk (0xFFUL << UARTE_RXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: UARTE_TXD_PTR */
+/* Description: Data pointer */
+
+/* Bits 31..0 : Data pointer */
+#define UARTE_TXD_PTR_PTR_Pos (0UL) /*!< Position of PTR field. */
+#define UARTE_TXD_PTR_PTR_Msk (0xFFFFFFFFUL << UARTE_TXD_PTR_PTR_Pos) /*!< Bit mask of PTR field. */
+
+/* Register: UARTE_TXD_MAXCNT */
+/* Description: Maximum number of bytes in transmit buffer */
+
+/* Bits 7..0 : Maximum number of bytes in transmit buffer */
+#define UARTE_TXD_MAXCNT_MAXCNT_Pos (0UL) /*!< Position of MAXCNT field. */
+#define UARTE_TXD_MAXCNT_MAXCNT_Msk (0xFFUL << UARTE_TXD_MAXCNT_MAXCNT_Pos) /*!< Bit mask of MAXCNT field. */
+
+/* Register: UARTE_TXD_AMOUNT */
+/* Description: Number of bytes transferred in the last transaction */
+
+/* Bits 7..0 : Number of bytes transferred in the last transaction */
+#define UARTE_TXD_AMOUNT_AMOUNT_Pos (0UL) /*!< Position of AMOUNT field. */
+#define UARTE_TXD_AMOUNT_AMOUNT_Msk (0xFFUL << UARTE_TXD_AMOUNT_AMOUNT_Pos) /*!< Bit mask of AMOUNT field. */
+
+/* Register: UARTE_CONFIG */
+/* Description: Configuration of parity and hardware flow control */
+
+/* Bits 3..1 : Parity */
+#define UARTE_CONFIG_PARITY_Pos (1UL) /*!< Position of PARITY field. */
+#define UARTE_CONFIG_PARITY_Msk (0x7UL << UARTE_CONFIG_PARITY_Pos) /*!< Bit mask of PARITY field. */
+#define UARTE_CONFIG_PARITY_Excluded (0x0UL) /*!< Exclude parity bit */
+#define UARTE_CONFIG_PARITY_Included (0x7UL) /*!< Include parity bit */
+
+/* Bit 0 : Hardware flow control */
+#define UARTE_CONFIG_HWFC_Pos (0UL) /*!< Position of HWFC field. */
+#define UARTE_CONFIG_HWFC_Msk (0x1UL << UARTE_CONFIG_HWFC_Pos) /*!< Bit mask of HWFC field. */
+#define UARTE_CONFIG_HWFC_Disabled (0UL) /*!< Disabled */
+#define UARTE_CONFIG_HWFC_Enabled (1UL) /*!< Enabled */
+
+
+/* Peripheral: UICR */
+/* Description: User Information Configuration Registers */
+
+/* Register: UICR_NRFFW */
+/* Description: Description collection[0]: Reserved for Nordic firmware design */
+
+/* Bits 31..0 : Reserved for Nordic firmware design */
+#define UICR_NRFFW_NRFFW_Pos (0UL) /*!< Position of NRFFW field. */
+#define UICR_NRFFW_NRFFW_Msk (0xFFFFFFFFUL << UICR_NRFFW_NRFFW_Pos) /*!< Bit mask of NRFFW field. */
+
+/* Register: UICR_NRFHW */
+/* Description: Description collection[0]: Reserved for Nordic hardware design */
+
+/* Bits 31..0 : Reserved for Nordic hardware design */
+#define UICR_NRFHW_NRFHW_Pos (0UL) /*!< Position of NRFHW field. */
+#define UICR_NRFHW_NRFHW_Msk (0xFFFFFFFFUL << UICR_NRFHW_NRFHW_Pos) /*!< Bit mask of NRFHW field. */
+
+/* Register: UICR_CUSTOMER */
+/* Description: Description collection[0]: Reserved for customer */
+
+/* Bits 31..0 : Reserved for customer */
+#define UICR_CUSTOMER_CUSTOMER_Pos (0UL) /*!< Position of CUSTOMER field. */
+#define UICR_CUSTOMER_CUSTOMER_Msk (0xFFFFFFFFUL << UICR_CUSTOMER_CUSTOMER_Pos) /*!< Bit mask of CUSTOMER field. */
+
+/* Register: UICR_PSELRESET */
+/* Description: Description collection[0]: Mapping of the nRESET function (see POWER chapter for details) */
+
+/* Bit 31 : Connection */
+#define UICR_PSELRESET_CONNECT_Pos (31UL) /*!< Position of CONNECT field. */
+#define UICR_PSELRESET_CONNECT_Msk (0x1UL << UICR_PSELRESET_CONNECT_Pos) /*!< Bit mask of CONNECT field. */
+#define UICR_PSELRESET_CONNECT_Connected (0UL) /*!< Connect */
+#define UICR_PSELRESET_CONNECT_Disconnected (1UL) /*!< Disconnect */
+
+/* Bits 5..0 : GPIO number P0.n onto which Reset is exposed */
+#define UICR_PSELRESET_PIN_Pos (0UL) /*!< Position of PIN field. */
+#define UICR_PSELRESET_PIN_Msk (0x3FUL << UICR_PSELRESET_PIN_Pos) /*!< Bit mask of PIN field. */
+
+/* Register: UICR_APPROTECT */
+/* Description: Access Port protection */
+
+/* Bits 7..0 : Enable or disable Access Port protection. Any other value than 0xFF being written to this field will enable protection. */
+#define UICR_APPROTECT_PALL_Pos (0UL) /*!< Position of PALL field. */
+#define UICR_APPROTECT_PALL_Msk (0xFFUL << UICR_APPROTECT_PALL_Pos) /*!< Bit mask of PALL field. */
+#define UICR_APPROTECT_PALL_Enabled (0x00UL) /*!< Enable */
+#define UICR_APPROTECT_PALL_Disabled (0xFFUL) /*!< Disable */
+
+/* Register: UICR_NFCPINS */
+/* Description: Setting of pins dedicated to NFC functionality: NFC antenna or GPIO */
+
+/* Bit 0 : Setting of pins dedicated to NFC functionality */
+#define UICR_NFCPINS_PROTECT_Pos (0UL) /*!< Position of PROTECT field. */
+#define UICR_NFCPINS_PROTECT_Msk (0x1UL << UICR_NFCPINS_PROTECT_Pos) /*!< Bit mask of PROTECT field. */
+#define UICR_NFCPINS_PROTECT_Disabled (0UL) /*!< Operation as GPIO pins. Same protection as normal GPIO pins */
+#define UICR_NFCPINS_PROTECT_NFC (1UL) /*!< Operation as NFC antenna pins. Configures the protection for NFC operation */
+
+
+/* Peripheral: WDT */
+/* Description: Watchdog Timer */
+
+/* Register: WDT_INTENSET */
+/* Description: Enable interrupt */
+
+/* Bit 0 : Write '1' to Enable interrupt for TIMEOUT event */
+#define WDT_INTENSET_TIMEOUT_Pos (0UL) /*!< Position of TIMEOUT field. */
+#define WDT_INTENSET_TIMEOUT_Msk (0x1UL << WDT_INTENSET_TIMEOUT_Pos) /*!< Bit mask of TIMEOUT field. */
+#define WDT_INTENSET_TIMEOUT_Disabled (0UL) /*!< Read: Disabled */
+#define WDT_INTENSET_TIMEOUT_Enabled (1UL) /*!< Read: Enabled */
+#define WDT_INTENSET_TIMEOUT_Set (1UL) /*!< Enable */
+
+/* Register: WDT_INTENCLR */
+/* Description: Disable interrupt */
+
+/* Bit 0 : Write '1' to Disable interrupt for TIMEOUT event */
+#define WDT_INTENCLR_TIMEOUT_Pos (0UL) /*!< Position of TIMEOUT field. */
+#define WDT_INTENCLR_TIMEOUT_Msk (0x1UL << WDT_INTENCLR_TIMEOUT_Pos) /*!< Bit mask of TIMEOUT field. */
+#define WDT_INTENCLR_TIMEOUT_Disabled (0UL) /*!< Read: Disabled */
+#define WDT_INTENCLR_TIMEOUT_Enabled (1UL) /*!< Read: Enabled */
+#define WDT_INTENCLR_TIMEOUT_Clear (1UL) /*!< Disable */
+
+/* Register: WDT_RUNSTATUS */
+/* Description: Run status */
+
+/* Bit 0 : Indicates whether or not the watchdog is running */
+#define WDT_RUNSTATUS_RUNSTATUS_Pos (0UL) /*!< Position of RUNSTATUS field. */
+#define WDT_RUNSTATUS_RUNSTATUS_Msk (0x1UL << WDT_RUNSTATUS_RUNSTATUS_Pos) /*!< Bit mask of RUNSTATUS field. */
+#define WDT_RUNSTATUS_RUNSTATUS_NotRunning (0UL) /*!< Watchdog not running */
+#define WDT_RUNSTATUS_RUNSTATUS_Running (1UL) /*!< Watchdog is running */
+
+/* Register: WDT_REQSTATUS */
+/* Description: Request status */
+
+/* Bit 7 : Request status for RR[7] register */
+#define WDT_REQSTATUS_RR7_Pos (7UL) /*!< Position of RR7 field. */
+#define WDT_REQSTATUS_RR7_Msk (0x1UL << WDT_REQSTATUS_RR7_Pos) /*!< Bit mask of RR7 field. */
+#define WDT_REQSTATUS_RR7_DisabledOrRequested (0UL) /*!< RR[7] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR7_EnabledAndUnrequested (1UL) /*!< RR[7] register is enabled, and are not yet requesting reload */
+
+/* Bit 6 : Request status for RR[6] register */
+#define WDT_REQSTATUS_RR6_Pos (6UL) /*!< Position of RR6 field. */
+#define WDT_REQSTATUS_RR6_Msk (0x1UL << WDT_REQSTATUS_RR6_Pos) /*!< Bit mask of RR6 field. */
+#define WDT_REQSTATUS_RR6_DisabledOrRequested (0UL) /*!< RR[6] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR6_EnabledAndUnrequested (1UL) /*!< RR[6] register is enabled, and are not yet requesting reload */
+
+/* Bit 5 : Request status for RR[5] register */
+#define WDT_REQSTATUS_RR5_Pos (5UL) /*!< Position of RR5 field. */
+#define WDT_REQSTATUS_RR5_Msk (0x1UL << WDT_REQSTATUS_RR5_Pos) /*!< Bit mask of RR5 field. */
+#define WDT_REQSTATUS_RR5_DisabledOrRequested (0UL) /*!< RR[5] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR5_EnabledAndUnrequested (1UL) /*!< RR[5] register is enabled, and are not yet requesting reload */
+
+/* Bit 4 : Request status for RR[4] register */
+#define WDT_REQSTATUS_RR4_Pos (4UL) /*!< Position of RR4 field. */
+#define WDT_REQSTATUS_RR4_Msk (0x1UL << WDT_REQSTATUS_RR4_Pos) /*!< Bit mask of RR4 field. */
+#define WDT_REQSTATUS_RR4_DisabledOrRequested (0UL) /*!< RR[4] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR4_EnabledAndUnrequested (1UL) /*!< RR[4] register is enabled, and are not yet requesting reload */
+
+/* Bit 3 : Request status for RR[3] register */
+#define WDT_REQSTATUS_RR3_Pos (3UL) /*!< Position of RR3 field. */
+#define WDT_REQSTATUS_RR3_Msk (0x1UL << WDT_REQSTATUS_RR3_Pos) /*!< Bit mask of RR3 field. */
+#define WDT_REQSTATUS_RR3_DisabledOrRequested (0UL) /*!< RR[3] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR3_EnabledAndUnrequested (1UL) /*!< RR[3] register is enabled, and are not yet requesting reload */
+
+/* Bit 2 : Request status for RR[2] register */
+#define WDT_REQSTATUS_RR2_Pos (2UL) /*!< Position of RR2 field. */
+#define WDT_REQSTATUS_RR2_Msk (0x1UL << WDT_REQSTATUS_RR2_Pos) /*!< Bit mask of RR2 field. */
+#define WDT_REQSTATUS_RR2_DisabledOrRequested (0UL) /*!< RR[2] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR2_EnabledAndUnrequested (1UL) /*!< RR[2] register is enabled, and are not yet requesting reload */
+
+/* Bit 1 : Request status for RR[1] register */
+#define WDT_REQSTATUS_RR1_Pos (1UL) /*!< Position of RR1 field. */
+#define WDT_REQSTATUS_RR1_Msk (0x1UL << WDT_REQSTATUS_RR1_Pos) /*!< Bit mask of RR1 field. */
+#define WDT_REQSTATUS_RR1_DisabledOrRequested (0UL) /*!< RR[1] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR1_EnabledAndUnrequested (1UL) /*!< RR[1] register is enabled, and are not yet requesting reload */
+
+/* Bit 0 : Request status for RR[0] register */
+#define WDT_REQSTATUS_RR0_Pos (0UL) /*!< Position of RR0 field. */
+#define WDT_REQSTATUS_RR0_Msk (0x1UL << WDT_REQSTATUS_RR0_Pos) /*!< Bit mask of RR0 field. */
+#define WDT_REQSTATUS_RR0_DisabledOrRequested (0UL) /*!< RR[0] register is not enabled, or are already requesting reload */
+#define WDT_REQSTATUS_RR0_EnabledAndUnrequested (1UL) /*!< RR[0] register is enabled, and are not yet requesting reload */
+
+/* Register: WDT_CRV */
+/* Description: Counter reload value */
+
+/* Bits 31..0 : Counter reload value in number of cycles of the 32.768 kHz clock */
+#define WDT_CRV_CRV_Pos (0UL) /*!< Position of CRV field. */
+#define WDT_CRV_CRV_Msk (0xFFFFFFFFUL << WDT_CRV_CRV_Pos) /*!< Bit mask of CRV field. */
+
+/* Register: WDT_RREN */
+/* Description: Enable register for reload request registers */
+
+/* Bit 7 : Enable or disable RR[7] register */
+#define WDT_RREN_RR7_Pos (7UL) /*!< Position of RR7 field. */
+#define WDT_RREN_RR7_Msk (0x1UL << WDT_RREN_RR7_Pos) /*!< Bit mask of RR7 field. */
+#define WDT_RREN_RR7_Disabled (0UL) /*!< Disable RR[7] register */
+#define WDT_RREN_RR7_Enabled (1UL) /*!< Enable RR[7] register */
+
+/* Bit 6 : Enable or disable RR[6] register */
+#define WDT_RREN_RR6_Pos (6UL) /*!< Position of RR6 field. */
+#define WDT_RREN_RR6_Msk (0x1UL << WDT_RREN_RR6_Pos) /*!< Bit mask of RR6 field. */
+#define WDT_RREN_RR6_Disabled (0UL) /*!< Disable RR[6] register */
+#define WDT_RREN_RR6_Enabled (1UL) /*!< Enable RR[6] register */
+
+/* Bit 5 : Enable or disable RR[5] register */
+#define WDT_RREN_RR5_Pos (5UL) /*!< Position of RR5 field. */
+#define WDT_RREN_RR5_Msk (0x1UL << WDT_RREN_RR5_Pos) /*!< Bit mask of RR5 field. */
+#define WDT_RREN_RR5_Disabled (0UL) /*!< Disable RR[5] register */
+#define WDT_RREN_RR5_Enabled (1UL) /*!< Enable RR[5] register */
+
+/* Bit 4 : Enable or disable RR[4] register */
+#define WDT_RREN_RR4_Pos (4UL) /*!< Position of RR4 field. */
+#define WDT_RREN_RR4_Msk (0x1UL << WDT_RREN_RR4_Pos) /*!< Bit mask of RR4 field. */
+#define WDT_RREN_RR4_Disabled (0UL) /*!< Disable RR[4] register */
+#define WDT_RREN_RR4_Enabled (1UL) /*!< Enable RR[4] register */
+
+/* Bit 3 : Enable or disable RR[3] register */
+#define WDT_RREN_RR3_Pos (3UL) /*!< Position of RR3 field. */
+#define WDT_RREN_RR3_Msk (0x1UL << WDT_RREN_RR3_Pos) /*!< Bit mask of RR3 field. */
+#define WDT_RREN_RR3_Disabled (0UL) /*!< Disable RR[3] register */
+#define WDT_RREN_RR3_Enabled (1UL) /*!< Enable RR[3] register */
+
+/* Bit 2 : Enable or disable RR[2] register */
+#define WDT_RREN_RR2_Pos (2UL) /*!< Position of RR2 field. */
+#define WDT_RREN_RR2_Msk (0x1UL << WDT_RREN_RR2_Pos) /*!< Bit mask of RR2 field. */
+#define WDT_RREN_RR2_Disabled (0UL) /*!< Disable RR[2] register */
+#define WDT_RREN_RR2_Enabled (1UL) /*!< Enable RR[2] register */
+
+/* Bit 1 : Enable or disable RR[1] register */
+#define WDT_RREN_RR1_Pos (1UL) /*!< Position of RR1 field. */
+#define WDT_RREN_RR1_Msk (0x1UL << WDT_RREN_RR1_Pos) /*!< Bit mask of RR1 field. */
+#define WDT_RREN_RR1_Disabled (0UL) /*!< Disable RR[1] register */
+#define WDT_RREN_RR1_Enabled (1UL) /*!< Enable RR[1] register */
+
+/* Bit 0 : Enable or disable RR[0] register */
+#define WDT_RREN_RR0_Pos (0UL) /*!< Position of RR0 field. */
+#define WDT_RREN_RR0_Msk (0x1UL << WDT_RREN_RR0_Pos) /*!< Bit mask of RR0 field. */
+#define WDT_RREN_RR0_Disabled (0UL) /*!< Disable RR[0] register */
+#define WDT_RREN_RR0_Enabled (1UL) /*!< Enable RR[0] register */
+
+/* Register: WDT_CONFIG */
+/* Description: Configuration register */
+
+/* Bit 3 : Configure the watchdog to either be paused, or kept running, while the CPU is halted by the debugger */
+#define WDT_CONFIG_HALT_Pos (3UL) /*!< Position of HALT field. */
+#define WDT_CONFIG_HALT_Msk (0x1UL << WDT_CONFIG_HALT_Pos) /*!< Bit mask of HALT field. */
+#define WDT_CONFIG_HALT_Pause (0UL) /*!< Pause watchdog while the CPU is halted by the debugger */
+#define WDT_CONFIG_HALT_Run (1UL) /*!< Keep the watchdog running while the CPU is halted by the debugger */
+
+/* Bit 0 : Configure the watchdog to either be paused, or kept running, while the CPU is sleeping */
+#define WDT_CONFIG_SLEEP_Pos (0UL) /*!< Position of SLEEP field. */
+#define WDT_CONFIG_SLEEP_Msk (0x1UL << WDT_CONFIG_SLEEP_Pos) /*!< Bit mask of SLEEP field. */
+#define WDT_CONFIG_SLEEP_Pause (0UL) /*!< Pause watchdog while the CPU is sleeping */
+#define WDT_CONFIG_SLEEP_Run (1UL) /*!< Keep the watchdog running while the CPU is sleeping */
+
+/* Register: WDT_RR */
+/* Description: Description collection[0]: Reload request 0 */
+
+/* Bits 31..0 : Reload request register */
+#define WDT_RR_RR_Pos (0UL) /*!< Position of RR field. */
+#define WDT_RR_RR_Msk (0xFFFFFFFFUL << WDT_RR_RR_Pos) /*!< Bit mask of RR field. */
+#define WDT_RR_RR_Reload (0x6E524635UL) /*!< Value to request a reload of the watchdog timer */
+
+
+/*lint --flb "Leave library region" */
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_common.ld b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_common.ld
new file mode 100644
index 0000000..097beb4
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_common.ld
@@ -0,0 +1,170 @@
+/* Deprecated linker script for Nordic Semiconductor nRF52 devices,
+ * please use nrfx_common.ld. This version exists for backwards
+ * compatibility.
+ *
+ * Version: Sourcery G++ 4.5-1
+ * Support: https://support.codesourcery.com/GNUToolchain/
+ *
+ * Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.
+ *
+ * The authors hereby grant permission to use, copy, modify, distribute,
+ * and license this software and its documentation for any purpose, provided
+ * that existing copyright notices are retained in all copies and that this
+ * notice is included verbatim in any distributions. No written agreement,
+ * license, or royalty fee is required for any of the authorized uses.
+ * Modifications to this software may be copyrighted by their authors
+ * and need not follow the licensing terms described here, provided that
+ * the new terms are clearly indicated on the first page of each file where
+ * they apply.
+ */
+OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
+
+/* Linker script to place sections and symbol values. Should be used together
+ * with other linker script that defines memory regions FLASH and RAM.
+ * It references following symbols, which must be defined in code:
+ * Reset_Handler : Entry of reset handler
+ *
+ * It defines following symbols, which code can use without definition:
+ * __exidx_start
+ * __exidx_end
+ * __etext
+ * __data_start__
+ * __preinit_array_start
+ * __preinit_array_end
+ * __init_array_start
+ * __init_array_end
+ * __fini_array_start
+ * __fini_array_end
+ * __data_end__
+ * __bss_start__
+ * __bss_end__
+ * __end__
+ * end
+ * __HeapBase
+ * __HeapLimit
+ * __StackLimit
+ * __StackTop
+ * __stack
+ */
+ENTRY(Reset_Handler)
+
+SECTIONS
+{
+ .text :
+ {
+ KEEP(*(.isr_vector))
+ *(.text*)
+
+ KEEP(*(.init))
+ KEEP(*(.fini))
+
+ /* .ctors */
+ *crtbegin.o(.ctors)
+ *crtbegin?.o(.ctors)
+ *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
+ *(SORT(.ctors.*))
+ *(.ctors)
+
+ /* .dtors */
+ *crtbegin.o(.dtors)
+ *crtbegin?.o(.dtors)
+ *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
+ *(SORT(.dtors.*))
+ *(.dtors)
+
+ *(.rodata*)
+
+ KEEP(*(.eh_frame*))
+ } > FLASH
+
+ .ARM.extab :
+ {
+ *(.ARM.extab* .gnu.linkonce.armextab.*)
+ } > FLASH
+
+ __exidx_start = .;
+ .ARM.exidx :
+ {
+ *(.ARM.exidx* .gnu.linkonce.armexidx.*)
+ } > FLASH
+ __exidx_end = .;
+
+ __etext = .;
+
+ .data : AT (__etext)
+ {
+ __data_start__ = .;
+ *(vtable)
+ *(.data*)
+
+ . = ALIGN(4);
+ /* preinit data */
+ PROVIDE_HIDDEN (__preinit_array_start = .);
+ KEEP(*(.preinit_array))
+ PROVIDE_HIDDEN (__preinit_array_end = .);
+
+ . = ALIGN(4);
+ /* init data */
+ PROVIDE_HIDDEN (__init_array_start = .);
+ KEEP(*(SORT(.init_array.*)))
+ KEEP(*(.init_array))
+ PROVIDE_HIDDEN (__init_array_end = .);
+
+
+ . = ALIGN(4);
+ /* finit data */
+ PROVIDE_HIDDEN (__fini_array_start = .);
+ KEEP(*(SORT(.fini_array.*)))
+ KEEP(*(.fini_array))
+ PROVIDE_HIDDEN (__fini_array_end = .);
+
+ KEEP(*(.jcr*))
+ . = ALIGN(4);
+ /* All data end */
+ __data_end__ = .;
+
+ } > RAM
+
+ .bss :
+ {
+ . = ALIGN(4);
+ __bss_start__ = .;
+ *(.bss*)
+ *(COMMON)
+ . = ALIGN(4);
+ __bss_end__ = .;
+ } > RAM
+
+ .heap (COPY):
+ {
+ __HeapBase = .;
+ __end__ = .;
+ PROVIDE(end = .);
+ KEEP(*(.heap*))
+ __HeapLimit = .;
+ } > RAM
+
+ /* .stack_dummy section doesn't contains any symbols. It is only
+ * used for linker to calculate size of stack sections, and assign
+ * values to stack symbols later */
+ .stack_dummy (COPY):
+ {
+ KEEP(*(.stack*))
+ } > RAM
+
+ /* Set stack top to end of RAM, and stack limit move down by
+ * size of stack_dummy section */
+ __StackTop = ORIGIN(RAM) + LENGTH(RAM);
+ __StackLimit = __StackTop - SIZEOF(.stack_dummy);
+ PROVIDE(__stack = __StackTop);
+
+ /* Check if data + heap + stack exceeds RAM limit */
+ ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
+
+ /* Check if text sections + data exceeds FLASH limit */
+ DataInitFlashUsed = __bss_start__ - __data_start__;
+ CodeFlashUsed = __etext - ORIGIN(FLASH);
+ TotalFlashUsed = CodeFlashUsed + DataInitFlashUsed;
+ ASSERT(TotalFlashUsed <= LENGTH(FLASH), "region FLASH overflowed with .data and user data")
+
+}
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_name_change.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_name_change.h
new file mode 100644
index 0000000..3d44efc
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_name_change.h
@@ -0,0 +1,81 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef NRF52_NAME_CHANGE_H
+#define NRF52_NAME_CHANGE_H
+
+/*lint ++flb "Enter library region */
+
+/* This file is given to prevent your SW from not compiling with the updates made to nrf52.h and
+ * nrf52_bitfields.h. The macros defined in this file were available previously. Do not use these
+ * macros on purpose. Use the ones defined in nrf52.h and nrf52_bitfields.h instead.
+ */
+
+/* I2S */
+/* Several enumerations changed case. Adding old macros to keep compilation compatibility. */
+#define I2S_ENABLE_ENABLE_DISABLE I2S_ENABLE_ENABLE_Disabled
+#define I2S_ENABLE_ENABLE_ENABLE I2S_ENABLE_ENABLE_Enabled
+#define I2S_CONFIG_MODE_MODE_MASTER I2S_CONFIG_MODE_MODE_Master
+#define I2S_CONFIG_MODE_MODE_SLAVE I2S_CONFIG_MODE_MODE_Slave
+#define I2S_CONFIG_RXEN_RXEN_DISABLE I2S_CONFIG_RXEN_RXEN_Disabled
+#define I2S_CONFIG_RXEN_RXEN_ENABLE I2S_CONFIG_RXEN_RXEN_Enabled
+#define I2S_CONFIG_TXEN_TXEN_DISABLE I2S_CONFIG_TXEN_TXEN_Disabled
+#define I2S_CONFIG_TXEN_TXEN_ENABLE I2S_CONFIG_TXEN_TXEN_Enabled
+#define I2S_CONFIG_MCKEN_MCKEN_DISABLE I2S_CONFIG_MCKEN_MCKEN_Disabled
+#define I2S_CONFIG_MCKEN_MCKEN_ENABLE I2S_CONFIG_MCKEN_MCKEN_Enabled
+#define I2S_CONFIG_SWIDTH_SWIDTH_8BIT I2S_CONFIG_SWIDTH_SWIDTH_8Bit
+#define I2S_CONFIG_SWIDTH_SWIDTH_16BIT I2S_CONFIG_SWIDTH_SWIDTH_16Bit
+#define I2S_CONFIG_SWIDTH_SWIDTH_24BIT I2S_CONFIG_SWIDTH_SWIDTH_24Bit
+#define I2S_CONFIG_ALIGN_ALIGN_LEFT I2S_CONFIG_ALIGN_ALIGN_Left
+#define I2S_CONFIG_ALIGN_ALIGN_RIGHT I2S_CONFIG_ALIGN_ALIGN_Right
+#define I2S_CONFIG_FORMAT_FORMAT_ALIGNED I2S_CONFIG_FORMAT_FORMAT_Aligned
+#define I2S_CONFIG_CHANNELS_CHANNELS_STEREO I2S_CONFIG_CHANNELS_CHANNELS_Stereo
+#define I2S_CONFIG_CHANNELS_CHANNELS_LEFT I2S_CONFIG_CHANNELS_CHANNELS_Left
+#define I2S_CONFIG_CHANNELS_CHANNELS_RIGHT I2S_CONFIG_CHANNELS_CHANNELS_Right
+
+/* LPCOMP */
+/* Corrected typo in RESULT register. */
+#define LPCOMP_RESULT_RESULT_Bellow LPCOMP_RESULT_RESULT_Below
+
+/*lint --flb "Leave library region" */
+
+#endif /* NRF52_NAME_CHANGE_H */
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_to_nrf52810.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_to_nrf52810.h
new file mode 100644
index 0000000..4a248df
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_to_nrf52810.h
@@ -0,0 +1,105 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef NRF52_TO_NRF52810_H
+#define NRF52_TO_NRF52810_H
+
+/*lint ++flb "Enter library region */
+
+/* This file is given to prevent your SW from not compiling with the name changes between nRF51 or nRF52832 and nRF52840 devices.
+ * It redefines the old nRF51 or nRF52832 names into the new ones as long as the functionality is still supported. If the
+ * functionality is gone, there old names are not defined, so compilation will fail. Note that also includes macros
+ * from the nrf52_namechange.h file. */
+
+/* Differences between latest nRF52 headers and nRF52810 headers. */
+
+/* Interrupt service routines handlers. Note that handlers SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler and
+ SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler are not redefined since functionality is not equivalent. */
+#define UARTE0_UART0_IRQHandler UARTE0_IRQHandler
+#define COMP_LPCOMP_IRQHandler COMP_IRQHandler
+#define SWI2_EGU2_IRQHandler SWI2_IRQHandler
+#define SWI3_EGU3_IRQHandler SWI3_IRQHandler
+#define SWI4_EGU4_IRQHandler SWI4_IRQHandler
+#define SWI5_EGU5_IRQHandler SWI5_IRQHandler
+
+/* Interrupt service routines index. Note that indexes SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn and
+ SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn are not redefined since functionality is not equivalent. */
+#define UARTE0_UART0_IRQn UARTE0_IRQn
+#define COMP_LPCOMP_IRQn COMP_IRQn
+#define SWI2_EGU2_IRQn SWI2_IRQn
+#define SWI3_EGU3_IRQn SWI3_IRQn
+#define SWI4_EGU4_IRQn SWI4_IRQn
+#define SWI5_EGU5_IRQn SWI5_IRQn
+
+
+/* From nrf52_name_change.h. Several macros changed in different versions of nRF52 headers. By defining the following, any code written for any version of nRF52 headers will still compile. */
+
+/* I2S */
+/* Several enumerations changed case. Adding old macros to keep compilation compatibility. */
+#define I2S_ENABLE_ENABLE_DISABLE I2S_ENABLE_ENABLE_Disabled
+#define I2S_ENABLE_ENABLE_ENABLE I2S_ENABLE_ENABLE_Enabled
+#define I2S_CONFIG_MODE_MODE_MASTER I2S_CONFIG_MODE_MODE_Master
+#define I2S_CONFIG_MODE_MODE_SLAVE I2S_CONFIG_MODE_MODE_Slave
+#define I2S_CONFIG_RXEN_RXEN_DISABLE I2S_CONFIG_RXEN_RXEN_Disabled
+#define I2S_CONFIG_RXEN_RXEN_ENABLE I2S_CONFIG_RXEN_RXEN_Enabled
+#define I2S_CONFIG_TXEN_TXEN_DISABLE I2S_CONFIG_TXEN_TXEN_Disabled
+#define I2S_CONFIG_TXEN_TXEN_ENABLE I2S_CONFIG_TXEN_TXEN_Enabled
+#define I2S_CONFIG_MCKEN_MCKEN_DISABLE I2S_CONFIG_MCKEN_MCKEN_Disabled
+#define I2S_CONFIG_MCKEN_MCKEN_ENABLE I2S_CONFIG_MCKEN_MCKEN_Enabled
+#define I2S_CONFIG_SWIDTH_SWIDTH_8BIT I2S_CONFIG_SWIDTH_SWIDTH_8Bit
+#define I2S_CONFIG_SWIDTH_SWIDTH_16BIT I2S_CONFIG_SWIDTH_SWIDTH_16Bit
+#define I2S_CONFIG_SWIDTH_SWIDTH_24BIT I2S_CONFIG_SWIDTH_SWIDTH_24Bit
+#define I2S_CONFIG_ALIGN_ALIGN_LEFT I2S_CONFIG_ALIGN_ALIGN_Left
+#define I2S_CONFIG_ALIGN_ALIGN_RIGHT I2S_CONFIG_ALIGN_ALIGN_Right
+#define I2S_CONFIG_FORMAT_FORMAT_ALIGNED I2S_CONFIG_FORMAT_FORMAT_Aligned
+#define I2S_CONFIG_CHANNELS_CHANNELS_STEREO I2S_CONFIG_CHANNELS_CHANNELS_Stereo
+#define I2S_CONFIG_CHANNELS_CHANNELS_LEFT I2S_CONFIG_CHANNELS_CHANNELS_Left
+#define I2S_CONFIG_CHANNELS_CHANNELS_RIGHT I2S_CONFIG_CHANNELS_CHANNELS_Right
+
+/* LPCOMP */
+/* Corrected typo in RESULT register. */
+#define LPCOMP_RESULT_RESULT_Bellow LPCOMP_RESULT_RESULT_Below
+
+
+/*lint --flb "Leave library region" */
+
+#endif /* NRF51_TO_NRF52810_H */
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_to_nrf52840.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_to_nrf52840.h
new file mode 100644
index 0000000..bb87d6f
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_to_nrf52840.h
@@ -0,0 +1,105 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef NRF52_TO_NRF52840_H
+#define NRF52_TO_NRF52840_H
+
+/*lint ++flb "Enter library region */
+
+/* This file is given to prevent your SW from not compiling with the name changes between nRF51 or nRF52832 and nRF52840 devices.
+ * It redefines the old nRF51 or nRF52832 names into the new ones as long as the functionality is still supported. If the
+ * functionality is gone, there old names are not defined, so compilation will fail. Note that also includes macros
+ * from the nrf52_namechange.h file. */
+
+/* Differences between latest nRF52 headers and nRF52840 headers. */
+
+/* UART */
+/* The registers PSELRTS, PSELTXD, PSELCTS, PSELRXD were restructured into a struct. */
+#define PSELRTS PSEL.RTS
+#define PSELTXD PSEL.TXD
+#define PSELCTS PSEL.CTS
+#define PSELRXD PSEL.RXD
+
+/* TWI */
+/* The registers PSELSCL, PSELSDA were restructured into a struct. */
+#define PSELSCL PSEL.SCL
+#define PSELSDA PSEL.SDA
+
+
+/* LPCOMP */
+/* The hysteresis control enumerated values has changed name for nRF52840 devices. */
+#define LPCOMP_HYST_HYST_NoHyst LPCOMP_HYST_HYST_Disabled
+#define LPCOMP_HYST_HYST_Hyst50mV LPCOMP_HYST_HYST_Enabled
+
+
+/* From nrf52_name_change.h. Several macros changed in different versions of nRF52 headers. By defining the following, any code written for any version of nRF52 headers will still compile. */
+
+/* I2S */
+/* Several enumerations changed case. Adding old macros to keep compilation compatibility. */
+#define I2S_ENABLE_ENABLE_DISABLE I2S_ENABLE_ENABLE_Disabled
+#define I2S_ENABLE_ENABLE_ENABLE I2S_ENABLE_ENABLE_Enabled
+#define I2S_CONFIG_MODE_MODE_MASTER I2S_CONFIG_MODE_MODE_Master
+#define I2S_CONFIG_MODE_MODE_SLAVE I2S_CONFIG_MODE_MODE_Slave
+#define I2S_CONFIG_RXEN_RXEN_DISABLE I2S_CONFIG_RXEN_RXEN_Disabled
+#define I2S_CONFIG_RXEN_RXEN_ENABLE I2S_CONFIG_RXEN_RXEN_Enabled
+#define I2S_CONFIG_TXEN_TXEN_DISABLE I2S_CONFIG_TXEN_TXEN_Disabled
+#define I2S_CONFIG_TXEN_TXEN_ENABLE I2S_CONFIG_TXEN_TXEN_Enabled
+#define I2S_CONFIG_MCKEN_MCKEN_DISABLE I2S_CONFIG_MCKEN_MCKEN_Disabled
+#define I2S_CONFIG_MCKEN_MCKEN_ENABLE I2S_CONFIG_MCKEN_MCKEN_Enabled
+#define I2S_CONFIG_SWIDTH_SWIDTH_8BIT I2S_CONFIG_SWIDTH_SWIDTH_8Bit
+#define I2S_CONFIG_SWIDTH_SWIDTH_16BIT I2S_CONFIG_SWIDTH_SWIDTH_16Bit
+#define I2S_CONFIG_SWIDTH_SWIDTH_24BIT I2S_CONFIG_SWIDTH_SWIDTH_24Bit
+#define I2S_CONFIG_ALIGN_ALIGN_LEFT I2S_CONFIG_ALIGN_ALIGN_Left
+#define I2S_CONFIG_ALIGN_ALIGN_RIGHT I2S_CONFIG_ALIGN_ALIGN_Right
+#define I2S_CONFIG_FORMAT_FORMAT_ALIGNED I2S_CONFIG_FORMAT_FORMAT_Aligned
+#define I2S_CONFIG_CHANNELS_CHANNELS_STEREO I2S_CONFIG_CHANNELS_CHANNELS_Stereo
+#define I2S_CONFIG_CHANNELS_CHANNELS_LEFT I2S_CONFIG_CHANNELS_CHANNELS_Left
+#define I2S_CONFIG_CHANNELS_CHANNELS_RIGHT I2S_CONFIG_CHANNELS_CHANNELS_Right
+
+/* LPCOMP */
+/* Corrected typo in RESULT register. */
+#define LPCOMP_RESULT_RESULT_Bellow LPCOMP_RESULT_RESULT_Below
+
+
+/*lint --flb "Leave library region" */
+
+#endif /* NRF51_TO_NRF52840_H */
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_xxaa.ld b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_xxaa.ld
new file mode 100644
index 0000000..ca28116
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf52_xxaa.ld
@@ -0,0 +1,13 @@
+/* Linker script to configure memory regions. */
+
+SEARCH_DIR(.)
+GROUP(-lgcc -lc -lnosys)
+
+MEMORY
+{
+ FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x80000
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000
+}
+
+
+INCLUDE "nrf_common.ld"
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf_common.ld b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf_common.ld
new file mode 100644
index 0000000..1aba217
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf_common.ld
@@ -0,0 +1,168 @@
+/* Linker script for Nordic Semiconductor nRF devices
+ *
+ * Version: Sourcery G++ 4.5-1
+ * Support: https://support.codesourcery.com/GNUToolchain/
+ *
+ * Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.
+ *
+ * The authors hereby grant permission to use, copy, modify, distribute,
+ * and license this software and its documentation for any purpose, provided
+ * that existing copyright notices are retained in all copies and that this
+ * notice is included verbatim in any distributions. No written agreement,
+ * license, or royalty fee is required for any of the authorized uses.
+ * Modifications to this software may be copyrighted by their authors
+ * and need not follow the licensing terms described here, provided that
+ * the new terms are clearly indicated on the first page of each file where
+ * they apply.
+ */
+OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
+
+/* Linker script to place sections and symbol values. Should be used together
+ * with other linker script that defines memory regions FLASH and RAM.
+ * It references following symbols, which must be defined in code:
+ * Reset_Handler : Entry of reset handler
+ *
+ * It defines following symbols, which code can use without definition:
+ * __exidx_start
+ * __exidx_end
+ * __etext
+ * __data_start__
+ * __preinit_array_start
+ * __preinit_array_end
+ * __init_array_start
+ * __init_array_end
+ * __fini_array_start
+ * __fini_array_end
+ * __data_end__
+ * __bss_start__
+ * __bss_end__
+ * __end__
+ * end
+ * __HeapBase
+ * __HeapLimit
+ * __StackLimit
+ * __StackTop
+ * __stack
+ */
+ENTRY(Reset_Handler)
+
+SECTIONS
+{
+ .text :
+ {
+ KEEP(*(.isr_vector))
+ *(.text*)
+
+ KEEP(*(.init))
+ KEEP(*(.fini))
+
+ /* .ctors */
+ *crtbegin.o(.ctors)
+ *crtbegin?.o(.ctors)
+ *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
+ *(SORT(.ctors.*))
+ *(.ctors)
+
+ /* .dtors */
+ *crtbegin.o(.dtors)
+ *crtbegin?.o(.dtors)
+ *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
+ *(SORT(.dtors.*))
+ *(.dtors)
+
+ *(.rodata*)
+
+ KEEP(*(.eh_frame*))
+ } > FLASH
+
+ .ARM.extab :
+ {
+ *(.ARM.extab* .gnu.linkonce.armextab.*)
+ } > FLASH
+
+ __exidx_start = .;
+ .ARM.exidx :
+ {
+ *(.ARM.exidx* .gnu.linkonce.armexidx.*)
+ } > FLASH
+ __exidx_end = .;
+
+ __etext = .;
+
+ .data : AT (__etext)
+ {
+ __data_start__ = .;
+ *(vtable)
+ *(.data*)
+
+ . = ALIGN(4);
+ /* preinit data */
+ PROVIDE_HIDDEN (__preinit_array_start = .);
+ KEEP(*(.preinit_array))
+ PROVIDE_HIDDEN (__preinit_array_end = .);
+
+ . = ALIGN(4);
+ /* init data */
+ PROVIDE_HIDDEN (__init_array_start = .);
+ KEEP(*(SORT(.init_array.*)))
+ KEEP(*(.init_array))
+ PROVIDE_HIDDEN (__init_array_end = .);
+
+
+ . = ALIGN(4);
+ /* finit data */
+ PROVIDE_HIDDEN (__fini_array_start = .);
+ KEEP(*(SORT(.fini_array.*)))
+ KEEP(*(.fini_array))
+ PROVIDE_HIDDEN (__fini_array_end = .);
+
+ KEEP(*(.jcr*))
+ . = ALIGN(4);
+ /* All data end */
+ __data_end__ = .;
+
+ } > RAM
+
+ .bss :
+ {
+ . = ALIGN(4);
+ __bss_start__ = .;
+ *(.bss*)
+ *(COMMON)
+ . = ALIGN(4);
+ __bss_end__ = .;
+ } > RAM
+
+ .heap (COPY):
+ {
+ __HeapBase = .;
+ __end__ = .;
+ PROVIDE(end = .);
+ KEEP(*(.heap*))
+ __HeapLimit = .;
+ } > RAM
+
+ /* .stack_dummy section doesn't contains any symbols. It is only
+ * used for linker to calculate size of stack sections, and assign
+ * values to stack symbols later */
+ .stack_dummy (COPY):
+ {
+ KEEP(*(.stack*))
+ } > RAM
+
+ /* Set stack top to end of RAM, and stack limit move down by
+ * size of stack_dummy section */
+ __StackTop = ORIGIN(RAM) + LENGTH(RAM);
+ __StackLimit = __StackTop - SIZEOF(.stack_dummy);
+ PROVIDE(__stack = __StackTop);
+
+ /* Check if data + heap + stack exceeds RAM limit */
+ ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
+
+ /* Check if text sections + data exceeds FLASH limit */
+ DataInitFlashUsed = __bss_start__ - __data_start__;
+ CodeFlashUsed = __etext - ORIGIN(FLASH);
+ TotalFlashUsed = CodeFlashUsed + DataInitFlashUsed;
+ ASSERT(TotalFlashUsed <= LENGTH(FLASH), "region FLASH overflowed with .data and user data")
+
+}
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf_peripherals.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf_peripherals.h
new file mode 100644
index 0000000..3b98c5c
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/nrf_peripherals.h
@@ -0,0 +1,72 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+#ifndef NRF_PERIPHERALS_H__
+#define NRF_PERIPHERALS_H__
+
+/*lint ++flb "Enter library region */
+
+#if defined(_WIN32)
+ /* Do not include nrf specific files when building for PC host */
+#elif defined(__unix)
+ /* Do not include nrf specific files when building for PC host */
+#elif defined(__APPLE__)
+ /* Do not include nrf specific files when building for PC host */
+#else
+
+ #if defined(NRF51)
+ #include "nrf51_peripherals.h"
+
+ #elif defined(NRF52810_XXAA)
+ #include "nrf52810_peripherals.h"
+ #elif defined(NRF52832_XXAA) || defined(NRF52832_XXAB)
+ #include "nrf52832_peripherals.h"
+ #elif defined(NRF52840_XXAA)
+ #include "nrf52840_peripherals.h"
+
+ #else
+ #error "Device must be defined. See nrf.h."
+ #endif
+#endif
+
+/*lint --flb "Leave library region" */
+
+#endif // NRF_PERIPHERALS_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nRF_Startup.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nRF_Startup.s
new file mode 100644
index 0000000..a4fa3c2
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nRF_Startup.s
@@ -0,0 +1,148 @@
+/*****************************************************************************
+ * SEGGER Microcontroller GmbH & Co. KG *
+ * Solutions for real time microcontroller applications *
+ *****************************************************************************
+ * *
+ * (c) 2017 SEGGER Microcontroller GmbH & Co. KG *
+ * *
+ * Internet: www.segger.com Support: support@segger.com *
+ * *
+ *****************************************************************************/
+
+/*****************************************************************************
+ * Preprocessor Definitions *
+ * ------------------------ *
+ * NO_FPU_ENABLE *
+ * *
+ * If defined, FPU will not be enabled. *
+ * *
+ * NO_STACK_INIT *
+ * *
+ * If defined, the stack pointer will not be initialised. *
+ * *
+ * NO_SYSTEM_INIT *
+ * *
+ * If defined, the SystemInit() function will not be called. By default *
+ * SystemInit() is called after reset to enable the clocks and memories to *
+ * be initialised prior to any C startup initialisation. *
+ * *
+ * NO_VTOR_CONFIG *
+ * *
+ * If defined, the vector table offset register will not be configured. *
+ * *
+ * MEMORY_INIT *
+ * *
+ * If defined, the MemoryInit() function will be called. By default *
+ * MemoryInit() is called after SystemInit() to enable an external memory *
+ * controller. *
+ * *
+ * STACK_INIT_VAL *
+ * *
+ * If defined, specifies the initial stack pointer value. If undefined, *
+ * the stack pointer will be initialised to point to the end of the *
+ * RAM segment. *
+ * *
+ * VECTORS_IN_RAM *
+ * *
+ * If defined, the exception vectors will be copied from Flash to RAM. *
+ * *
+ *****************************************************************************/
+
+ .syntax unified
+
+ .global Reset_Handler
+#ifdef INITIALIZE_USER_SECTIONS
+ .global InitializeUserMemorySections
+#endif
+ .extern _vectors
+
+ .section .init, "ax"
+ .thumb_func
+
+ .equ VTOR_REG, 0xE000ED08
+ .equ FPU_CPACR_REG, 0xE000ED88
+
+#ifndef STACK_INIT_VAL
+#define STACK_INIT_VAL __RAM_segment_end__
+#endif
+
+Reset_Handler:
+#ifndef NO_STACK_INIT
+ /* Initialise main stack */
+ ldr r0, =STACK_INIT_VAL
+ ldr r1, =0x7
+ bics r0, r1
+ mov sp, r0
+#endif
+
+#ifndef NO_SYSTEM_INIT
+ /* Initialise system */
+ ldr r0, =SystemInit
+ blx r0
+#endif
+
+#ifdef MEMORY_INIT
+ ldr r0, =MemoryInit
+ blx r0
+#endif
+
+#ifdef VECTORS_IN_RAM
+ /* Copy exception vectors into RAM */
+ ldr r0, =__vectors_start__
+ ldr r1, =__vectors_end__
+ ldr r2, =__vectors_ram_start__
+1:
+ cmp r0, r1
+ beq 2f
+ ldr r3, [r0]
+ str r3, [r2]
+ adds r0, r0, #4
+ adds r2, r2, #4
+ b 1b
+2:
+#endif
+
+#ifndef NO_VTOR_CONFIG
+ /* Configure vector table offset register */
+ ldr r0, =VTOR_REG
+#ifdef VECTORS_IN_RAM
+ ldr r1, =_vectors_ram
+#else
+ ldr r1, =_vectors
+#endif
+ str r1, [r0]
+#endif
+
+#if (defined(__ARM_ARCH_FPV4_SP_D16__) || defined(__ARM_ARCH_FPV5_D16__)) && !defined(NO_FPU_ENABLE)
+ /* Enable FPU */
+ ldr r0, =FPU_CPACR_REG
+ ldr r1, [r0]
+ orr r1, r1, #(0xF << 20)
+ str r1, [r0]
+ dsb
+ isb
+#endif
+
+ /* Jump to program start */
+ b _start
+
+#ifdef INITIALIZE_USER_SECTIONS
+ .thumb_func
+InitializeUserMemorySections:
+ ldr r0, =__start_nrf_sections
+ ldr r1, =__start_nrf_sections_run
+ ldr r2, =__end_nrf_sections_run
+ cmp r0, r1
+ beq 2f
+ subs r2, r2, r1
+ beq 2f
+1:
+ ldrb r3, [r0]
+ adds r0, r0, #1
+ strb r3, [r1]
+ adds r1, r1, #1
+ subs r2, r2, #1
+ bne 1b
+2:
+ bx lr
+#endif \ No newline at end of file
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf51_Vectors.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf51_Vectors.s
new file mode 100644
index 0000000..9b824d9
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf51_Vectors.s
@@ -0,0 +1,329 @@
+/*****************************************************************************
+ * SEGGER Microcontroller GmbH & Co. KG *
+ * Solutions for real time microcontroller applications *
+ *****************************************************************************
+ * *
+ * (c) 2017 SEGGER Microcontroller GmbH & Co. KG *
+ * *
+ * Internet: www.segger.com Support: support@segger.com *
+ * *
+ *****************************************************************************/
+
+/*****************************************************************************
+ * Preprocessor Definitions *
+ * ------------------------ *
+ * VECTORS_IN_RAM *
+ * *
+ * If defined, an area of RAM will large enough to store the vector table *
+ * will be reserved. *
+ * *
+ *****************************************************************************/
+
+ .syntax unified
+ .code 16
+
+ .section .init, "ax"
+ .align 0
+
+/*****************************************************************************
+ * Default Exception Handlers *
+ *****************************************************************************/
+
+ .thumb_func
+ .weak NMI_Handler
+NMI_Handler:
+ b .
+
+ .thumb_func
+ .weak HardFault_Handler
+HardFault_Handler:
+ b .
+
+ .thumb_func
+ .weak SVC_Handler
+SVC_Handler:
+ b .
+
+ .thumb_func
+ .weak PendSV_Handler
+PendSV_Handler:
+ b .
+
+ .thumb_func
+ .weak SysTick_Handler
+SysTick_Handler:
+ b .
+
+ .thumb_func
+Dummy_Handler:
+ b .
+
+#if defined(__OPTIMIZATION_SMALL)
+
+ .weak POWER_CLOCK_IRQHandler
+ .thumb_set POWER_CLOCK_IRQHandler,Dummy_Handler
+
+ .weak RADIO_IRQHandler
+ .thumb_set RADIO_IRQHandler,Dummy_Handler
+
+ .weak UART0_IRQHandler
+ .thumb_set UART0_IRQHandler,Dummy_Handler
+
+ .weak SPI0_TWI0_IRQHandler
+ .thumb_set SPI0_TWI0_IRQHandler,Dummy_Handler
+
+ .weak SPI1_TWI1_IRQHandler
+ .thumb_set SPI1_TWI1_IRQHandler,Dummy_Handler
+
+ .weak GPIOTE_IRQHandler
+ .thumb_set GPIOTE_IRQHandler,Dummy_Handler
+
+ .weak ADC_IRQHandler
+ .thumb_set ADC_IRQHandler,Dummy_Handler
+
+ .weak TIMER0_IRQHandler
+ .thumb_set TIMER0_IRQHandler,Dummy_Handler
+
+ .weak TIMER1_IRQHandler
+ .thumb_set TIMER1_IRQHandler,Dummy_Handler
+
+ .weak TIMER2_IRQHandler
+ .thumb_set TIMER2_IRQHandler,Dummy_Handler
+
+ .weak RTC0_IRQHandler
+ .thumb_set RTC0_IRQHandler,Dummy_Handler
+
+ .weak TEMP_IRQHandler
+ .thumb_set TEMP_IRQHandler,Dummy_Handler
+
+ .weak RNG_IRQHandler
+ .thumb_set RNG_IRQHandler,Dummy_Handler
+
+ .weak ECB_IRQHandler
+ .thumb_set ECB_IRQHandler,Dummy_Handler
+
+ .weak CCM_AAR_IRQHandler
+ .thumb_set CCM_AAR_IRQHandler,Dummy_Handler
+
+ .weak WDT_IRQHandler
+ .thumb_set WDT_IRQHandler,Dummy_Handler
+
+ .weak RTC1_IRQHandler
+ .thumb_set RTC1_IRQHandler,Dummy_Handler
+
+ .weak QDEC_IRQHandler
+ .thumb_set QDEC_IRQHandler,Dummy_Handler
+
+ .weak LPCOMP_IRQHandler
+ .thumb_set LPCOMP_IRQHandler,Dummy_Handler
+
+ .weak SWI0_IRQHandler
+ .thumb_set SWI0_IRQHandler,Dummy_Handler
+
+ .weak SWI1_IRQHandler
+ .thumb_set SWI1_IRQHandler,Dummy_Handler
+
+ .weak SWI2_IRQHandler
+ .thumb_set SWI2_IRQHandler,Dummy_Handler
+
+ .weak SWI3_IRQHandler
+ .thumb_set SWI3_IRQHandler,Dummy_Handler
+
+ .weak SWI4_IRQHandler
+ .thumb_set SWI4_IRQHandler,Dummy_Handler
+
+ .weak SWI5_IRQHandler
+ .thumb_set SWI5_IRQHandler,Dummy_Handler
+
+#else
+
+ .thumb_func
+ .weak POWER_CLOCK_IRQHandler
+POWER_CLOCK_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RADIO_IRQHandler
+RADIO_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak UART0_IRQHandler
+UART0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SPI0_TWI0_IRQHandler
+SPI0_TWI0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SPI1_TWI1_IRQHandler
+SPI1_TWI1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak GPIOTE_IRQHandler
+GPIOTE_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak ADC_IRQHandler
+ADC_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER0_IRQHandler
+TIMER0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER1_IRQHandler
+TIMER1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER2_IRQHandler
+TIMER2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RTC0_IRQHandler
+RTC0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TEMP_IRQHandler
+TEMP_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RNG_IRQHandler
+RNG_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak ECB_IRQHandler
+ECB_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak CCM_AAR_IRQHandler
+CCM_AAR_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak WDT_IRQHandler
+WDT_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RTC1_IRQHandler
+RTC1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak QDEC_IRQHandler
+QDEC_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak LPCOMP_IRQHandler
+LPCOMP_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI0_IRQHandler
+SWI0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI1_IRQHandler
+SWI1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI2_IRQHandler
+SWI2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI3_IRQHandler
+SWI3_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI4_IRQHandler
+SWI4_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI5_IRQHandler
+SWI5_IRQHandler:
+ b .
+
+#endif
+
+/*****************************************************************************
+ * Vector Table *
+ *****************************************************************************/
+
+ .section .vectors, "ax"
+ .align 0
+ .global _vectors
+ .extern __stack_end__
+ .extern Reset_Handler
+
+_vectors:
+ .word __stack_end__
+ .word Reset_Handler
+ .word NMI_Handler
+ .word HardFault_Handler
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word SVC_Handler
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word PendSV_Handler
+ .word SysTick_Handler
+ .word POWER_CLOCK_IRQHandler
+ .word RADIO_IRQHandler
+ .word UART0_IRQHandler
+ .word SPI0_TWI0_IRQHandler
+ .word SPI1_TWI1_IRQHandler
+ .word Dummy_Handler /* Reserved */
+ .word GPIOTE_IRQHandler
+ .word ADC_IRQHandler
+ .word TIMER0_IRQHandler
+ .word TIMER1_IRQHandler
+ .word TIMER2_IRQHandler
+ .word RTC0_IRQHandler
+ .word TEMP_IRQHandler
+ .word RNG_IRQHandler
+ .word ECB_IRQHandler
+ .word CCM_AAR_IRQHandler
+ .word WDT_IRQHandler
+ .word RTC1_IRQHandler
+ .word QDEC_IRQHandler
+ .word LPCOMP_IRQHandler
+ .word SWI0_IRQHandler
+ .word SWI1_IRQHandler
+ .word SWI2_IRQHandler
+ .word SWI3_IRQHandler
+ .word SWI4_IRQHandler
+ .word SWI5_IRQHandler
+_vectors_end:
+
+#ifdef VECTORS_IN_RAM
+ .section .vectors_ram, "ax"
+ .align 0
+ .global _vectors_ram
+
+_vectors_ram:
+ .space _vectors_end - _vectors, 0
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf52810_Vectors.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf52810_Vectors.s
new file mode 100644
index 0000000..f504da3
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf52810_Vectors.s
@@ -0,0 +1,369 @@
+/*****************************************************************************
+ * SEGGER Microcontroller GmbH & Co. KG *
+ * Solutions for real time microcontroller applications *
+ *****************************************************************************
+ * *
+ * (c) 2017 SEGGER Microcontroller GmbH & Co. KG *
+ * *
+ * Internet: www.segger.com Support: support@segger.com *
+ * *
+ *****************************************************************************/
+
+/*****************************************************************************
+ * Preprocessor Definitions *
+ * ------------------------ *
+ * VECTORS_IN_RAM *
+ * *
+ * If defined, an area of RAM will large enough to store the vector table *
+ * will be reserved. *
+ * *
+ *****************************************************************************/
+
+ .syntax unified
+ .code 16
+
+ .section .init, "ax"
+ .align 0
+
+/*****************************************************************************
+ * Default Exception Handlers *
+ *****************************************************************************/
+
+ .thumb_func
+ .weak NMI_Handler
+NMI_Handler:
+ b .
+
+ .thumb_func
+ .weak HardFault_Handler
+HardFault_Handler:
+ b .
+
+ .thumb_func
+ .weak MemoryManagement_Handler
+MemoryManagement_Handler:
+ b .
+
+ .thumb_func
+ .weak BusFault_Handler
+BusFault_Handler:
+ b .
+
+ .thumb_func
+ .weak UsageFault_Handler
+UsageFault_Handler:
+ b .
+
+ .thumb_func
+ .weak SVC_Handler
+SVC_Handler:
+ b .
+
+ .thumb_func
+ .weak DebugMon_Handler
+DebugMon_Handler:
+ b .
+
+ .thumb_func
+ .weak PendSV_Handler
+PendSV_Handler:
+ b .
+
+ .thumb_func
+ .weak SysTick_Handler
+SysTick_Handler:
+ b .
+
+ .thumb_func
+Dummy_Handler:
+ b .
+
+#if defined(__OPTIMIZATION_SMALL)
+
+ .weak POWER_CLOCK_IRQHandler
+ .thumb_set POWER_CLOCK_IRQHandler,Dummy_Handler
+
+ .weak RADIO_IRQHandler
+ .thumb_set RADIO_IRQHandler,Dummy_Handler
+
+ .weak UARTE0_IRQHandler
+ .thumb_set UARTE0_IRQHandler,Dummy_Handler
+
+ .weak TWIM0_TWIS0_IRQHandler
+ .thumb_set TWIM0_TWIS0_IRQHandler,Dummy_Handler
+
+ .weak SPIM0_SPIS0_IRQHandler
+ .thumb_set SPIM0_SPIS0_IRQHandler,Dummy_Handler
+
+ .weak GPIOTE_IRQHandler
+ .thumb_set GPIOTE_IRQHandler,Dummy_Handler
+
+ .weak SAADC_IRQHandler
+ .thumb_set SAADC_IRQHandler,Dummy_Handler
+
+ .weak TIMER0_IRQHandler
+ .thumb_set TIMER0_IRQHandler,Dummy_Handler
+
+ .weak TIMER1_IRQHandler
+ .thumb_set TIMER1_IRQHandler,Dummy_Handler
+
+ .weak TIMER2_IRQHandler
+ .thumb_set TIMER2_IRQHandler,Dummy_Handler
+
+ .weak RTC0_IRQHandler
+ .thumb_set RTC0_IRQHandler,Dummy_Handler
+
+ .weak TEMP_IRQHandler
+ .thumb_set TEMP_IRQHandler,Dummy_Handler
+
+ .weak RNG_IRQHandler
+ .thumb_set RNG_IRQHandler,Dummy_Handler
+
+ .weak ECB_IRQHandler
+ .thumb_set ECB_IRQHandler,Dummy_Handler
+
+ .weak CCM_AAR_IRQHandler
+ .thumb_set CCM_AAR_IRQHandler,Dummy_Handler
+
+ .weak WDT_IRQHandler
+ .thumb_set WDT_IRQHandler,Dummy_Handler
+
+ .weak RTC1_IRQHandler
+ .thumb_set RTC1_IRQHandler,Dummy_Handler
+
+ .weak QDEC_IRQHandler
+ .thumb_set QDEC_IRQHandler,Dummy_Handler
+
+ .weak COMP_IRQHandler
+ .thumb_set COMP_IRQHandler,Dummy_Handler
+
+ .weak SWI0_EGU0_IRQHandler
+ .thumb_set SWI0_EGU0_IRQHandler,Dummy_Handler
+
+ .weak SWI1_EGU1_IRQHandler
+ .thumb_set SWI1_EGU1_IRQHandler,Dummy_Handler
+
+ .weak SWI2_IRQHandler
+ .thumb_set SWI2_IRQHandler,Dummy_Handler
+
+ .weak SWI3_IRQHandler
+ .thumb_set SWI3_IRQHandler,Dummy_Handler
+
+ .weak SWI4_IRQHandler
+ .thumb_set SWI4_IRQHandler,Dummy_Handler
+
+ .weak SWI5_IRQHandler
+ .thumb_set SWI5_IRQHandler,Dummy_Handler
+
+ .weak PWM0_IRQHandler
+ .thumb_set PWM0_IRQHandler,Dummy_Handler
+
+ .weak PDM_IRQHandler
+ .thumb_set PDM_IRQHandler,Dummy_Handler
+
+#else
+
+ .thumb_func
+ .weak POWER_CLOCK_IRQHandler
+POWER_CLOCK_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RADIO_IRQHandler
+RADIO_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak UARTE0_IRQHandler
+UARTE0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TWIM0_TWIS0_IRQHandler
+TWIM0_TWIS0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SPIM0_SPIS0_IRQHandler
+SPIM0_SPIS0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak GPIOTE_IRQHandler
+GPIOTE_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SAADC_IRQHandler
+SAADC_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER0_IRQHandler
+TIMER0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER1_IRQHandler
+TIMER1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER2_IRQHandler
+TIMER2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RTC0_IRQHandler
+RTC0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TEMP_IRQHandler
+TEMP_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RNG_IRQHandler
+RNG_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak ECB_IRQHandler
+ECB_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak CCM_AAR_IRQHandler
+CCM_AAR_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak WDT_IRQHandler
+WDT_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RTC1_IRQHandler
+RTC1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak QDEC_IRQHandler
+QDEC_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak COMP_IRQHandler
+COMP_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI0_EGU0_IRQHandler
+SWI0_EGU0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI1_EGU1_IRQHandler
+SWI1_EGU1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI2_IRQHandler
+SWI2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI3_IRQHandler
+SWI3_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI4_IRQHandler
+SWI4_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI5_IRQHandler
+SWI5_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak PWM0_IRQHandler
+PWM0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak PDM_IRQHandler
+PDM_IRQHandler:
+ b .
+
+#endif
+
+/*****************************************************************************
+ * Vector Table *
+ *****************************************************************************/
+
+ .section .vectors, "ax"
+ .align 0
+ .global _vectors
+ .extern __stack_end__
+ .extern Reset_Handler
+
+_vectors:
+ .word __stack_end__
+ .word Reset_Handler
+ .word NMI_Handler
+ .word HardFault_Handler
+ .word MemoryManagement_Handler
+ .word BusFault_Handler
+ .word UsageFault_Handler
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word SVC_Handler
+ .word DebugMon_Handler
+ .word 0 /* Reserved */
+ .word PendSV_Handler
+ .word SysTick_Handler
+ .word POWER_CLOCK_IRQHandler
+ .word RADIO_IRQHandler
+ .word UARTE0_IRQHandler
+ .word TWIM0_TWIS0_IRQHandler
+ .word SPIM0_SPIS0_IRQHandler
+ .word 0
+ .word GPIOTE_IRQHandler
+ .word SAADC_IRQHandler
+ .word TIMER0_IRQHandler
+ .word TIMER1_IRQHandler
+ .word TIMER2_IRQHandler
+ .word RTC0_IRQHandler
+ .word TEMP_IRQHandler
+ .word RNG_IRQHandler
+ .word ECB_IRQHandler
+ .word CCM_AAR_IRQHandler
+ .word WDT_IRQHandler
+ .word RTC1_IRQHandler
+ .word QDEC_IRQHandler
+ .word COMP_IRQHandler
+ .word SWI0_EGU0_IRQHandler
+ .word SWI1_EGU1_IRQHandler
+ .word SWI2_IRQHandler
+ .word SWI3_IRQHandler
+ .word SWI4_IRQHandler
+ .word SWI5_IRQHandler
+ .word 0
+ .word 0
+ .word PWM0_IRQHandler
+ .word PDM_IRQHandler
+_vectors_end:
+
+#ifdef VECTORS_IN_RAM
+ .section .vectors_ram, "ax"
+ .align 0
+ .global _vectors_ram
+
+_vectors_ram:
+ .space _vectors_end - _vectors, 0
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf52840_Vectors.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf52840_Vectors.s
new file mode 100644
index 0000000..41064fc
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf52840_Vectors.s
@@ -0,0 +1,515 @@
+/*****************************************************************************
+ * SEGGER Microcontroller GmbH & Co. KG *
+ * Solutions for real time microcontroller applications *
+ *****************************************************************************
+ * *
+ * (c) 2017 SEGGER Microcontroller GmbH & Co. KG *
+ * *
+ * Internet: www.segger.com Support: support@segger.com *
+ * *
+ *****************************************************************************/
+
+/*****************************************************************************
+ * Preprocessor Definitions *
+ * ------------------------ *
+ * VECTORS_IN_RAM *
+ * *
+ * If defined, an area of RAM will large enough to store the vector table *
+ * will be reserved. *
+ * *
+ *****************************************************************************/
+
+ .syntax unified
+ .code 16
+
+ .section .init, "ax"
+ .align 0
+
+/*****************************************************************************
+ * Default Exception Handlers *
+ *****************************************************************************/
+
+ .thumb_func
+ .weak NMI_Handler
+NMI_Handler:
+ b .
+
+ .thumb_func
+ .weak HardFault_Handler
+HardFault_Handler:
+ b .
+
+ .thumb_func
+ .weak MemoryManagement_Handler
+MemoryManagement_Handler:
+ b .
+
+ .thumb_func
+ .weak BusFault_Handler
+BusFault_Handler:
+ b .
+
+ .thumb_func
+ .weak UsageFault_Handler
+UsageFault_Handler:
+ b .
+
+ .thumb_func
+ .weak SVC_Handler
+SVC_Handler:
+ b .
+
+ .thumb_func
+ .weak DebugMon_Handler
+DebugMon_Handler:
+ b .
+
+ .thumb_func
+ .weak PendSV_Handler
+PendSV_Handler:
+ b .
+
+ .thumb_func
+ .weak SysTick_Handler
+SysTick_Handler:
+ b .
+
+ .thumb_func
+Dummy_Handler:
+ b .
+
+#if defined(__OPTIMIZATION_SMALL)
+
+ .weak POWER_CLOCK_IRQHandler
+ .thumb_set POWER_CLOCK_IRQHandler,Dummy_Handler
+
+ .weak RADIO_IRQHandler
+ .thumb_set RADIO_IRQHandler,Dummy_Handler
+
+ .weak UARTE0_UART0_IRQHandler
+ .thumb_set UARTE0_UART0_IRQHandler,Dummy_Handler
+
+ .weak SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ .thumb_set SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler,Dummy_Handler
+
+ .weak SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ .thumb_set SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler,Dummy_Handler
+
+ .weak NFCT_IRQHandler
+ .thumb_set NFCT_IRQHandler,Dummy_Handler
+
+ .weak GPIOTE_IRQHandler
+ .thumb_set GPIOTE_IRQHandler,Dummy_Handler
+
+ .weak SAADC_IRQHandler
+ .thumb_set SAADC_IRQHandler,Dummy_Handler
+
+ .weak TIMER0_IRQHandler
+ .thumb_set TIMER0_IRQHandler,Dummy_Handler
+
+ .weak TIMER1_IRQHandler
+ .thumb_set TIMER1_IRQHandler,Dummy_Handler
+
+ .weak TIMER2_IRQHandler
+ .thumb_set TIMER2_IRQHandler,Dummy_Handler
+
+ .weak RTC0_IRQHandler
+ .thumb_set RTC0_IRQHandler,Dummy_Handler
+
+ .weak TEMP_IRQHandler
+ .thumb_set TEMP_IRQHandler,Dummy_Handler
+
+ .weak RNG_IRQHandler
+ .thumb_set RNG_IRQHandler,Dummy_Handler
+
+ .weak ECB_IRQHandler
+ .thumb_set ECB_IRQHandler,Dummy_Handler
+
+ .weak CCM_AAR_IRQHandler
+ .thumb_set CCM_AAR_IRQHandler,Dummy_Handler
+
+ .weak WDT_IRQHandler
+ .thumb_set WDT_IRQHandler,Dummy_Handler
+
+ .weak RTC1_IRQHandler
+ .thumb_set RTC1_IRQHandler,Dummy_Handler
+
+ .weak QDEC_IRQHandler
+ .thumb_set QDEC_IRQHandler,Dummy_Handler
+
+ .weak COMP_LPCOMP_IRQHandler
+ .thumb_set COMP_LPCOMP_IRQHandler,Dummy_Handler
+
+ .weak SWI0_EGU0_IRQHandler
+ .thumb_set SWI0_EGU0_IRQHandler,Dummy_Handler
+
+ .weak SWI1_EGU1_IRQHandler
+ .thumb_set SWI1_EGU1_IRQHandler,Dummy_Handler
+
+ .weak SWI2_EGU2_IRQHandler
+ .thumb_set SWI2_EGU2_IRQHandler,Dummy_Handler
+
+ .weak SWI3_EGU3_IRQHandler
+ .thumb_set SWI3_EGU3_IRQHandler,Dummy_Handler
+
+ .weak SWI4_EGU4_IRQHandler
+ .thumb_set SWI4_EGU4_IRQHandler,Dummy_Handler
+
+ .weak SWI5_EGU5_IRQHandler
+ .thumb_set SWI5_EGU5_IRQHandler,Dummy_Handler
+
+ .weak TIMER3_IRQHandler
+ .thumb_set TIMER3_IRQHandler,Dummy_Handler
+
+ .weak TIMER4_IRQHandler
+ .thumb_set TIMER4_IRQHandler,Dummy_Handler
+
+ .weak PWM0_IRQHandler
+ .thumb_set PWM0_IRQHandler,Dummy_Handler
+
+ .weak PDM_IRQHandler
+ .thumb_set PDM_IRQHandler,Dummy_Handler
+
+ .weak MWU_IRQHandler
+ .thumb_set MWU_IRQHandler,Dummy_Handler
+
+ .weak PWM1_IRQHandler
+ .thumb_set PWM1_IRQHandler,Dummy_Handler
+
+ .weak PWM2_IRQHandler
+ .thumb_set PWM2_IRQHandler,Dummy_Handler
+
+ .weak SPIM2_SPIS2_SPI2_IRQHandler
+ .thumb_set SPIM2_SPIS2_SPI2_IRQHandler,Dummy_Handler
+
+ .weak RTC2_IRQHandler
+ .thumb_set RTC2_IRQHandler,Dummy_Handler
+
+ .weak I2S_IRQHandler
+ .thumb_set I2S_IRQHandler,Dummy_Handler
+
+ .weak FPU_IRQHandler
+ .thumb_set FPU_IRQHandler,Dummy_Handler
+
+ .weak USBD_IRQHandler
+ .thumb_set USBD_IRQHandler,Dummy_Handler
+
+ .weak UARTE1_IRQHandler
+ .thumb_set UARTE1_IRQHandler,Dummy_Handler
+
+ .weak QSPI_IRQHandler
+ .thumb_set QSPI_IRQHandler,Dummy_Handler
+
+ .weak CRYPTOCELL_IRQHandler
+ .thumb_set CRYPTOCELL_IRQHandler,Dummy_Handler
+
+ .weak SPIM3_IRQHandler
+ .thumb_set SPIM3_IRQHandler,Dummy_Handler
+
+ .weak PWM3_IRQHandler
+ .thumb_set PWM3_IRQHandler,Dummy_Handler
+
+#else
+
+ .thumb_func
+ .weak POWER_CLOCK_IRQHandler
+POWER_CLOCK_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RADIO_IRQHandler
+RADIO_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak UARTE0_UART0_IRQHandler
+UARTE0_UART0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak NFCT_IRQHandler
+NFCT_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak GPIOTE_IRQHandler
+GPIOTE_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SAADC_IRQHandler
+SAADC_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER0_IRQHandler
+TIMER0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER1_IRQHandler
+TIMER1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER2_IRQHandler
+TIMER2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RTC0_IRQHandler
+RTC0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TEMP_IRQHandler
+TEMP_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RNG_IRQHandler
+RNG_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak ECB_IRQHandler
+ECB_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak CCM_AAR_IRQHandler
+CCM_AAR_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak WDT_IRQHandler
+WDT_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RTC1_IRQHandler
+RTC1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak QDEC_IRQHandler
+QDEC_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak COMP_LPCOMP_IRQHandler
+COMP_LPCOMP_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI0_EGU0_IRQHandler
+SWI0_EGU0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI1_EGU1_IRQHandler
+SWI1_EGU1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI2_EGU2_IRQHandler
+SWI2_EGU2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI3_EGU3_IRQHandler
+SWI3_EGU3_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI4_EGU4_IRQHandler
+SWI4_EGU4_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI5_EGU5_IRQHandler
+SWI5_EGU5_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER3_IRQHandler
+TIMER3_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER4_IRQHandler
+TIMER4_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak PWM0_IRQHandler
+PWM0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak PDM_IRQHandler
+PDM_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak MWU_IRQHandler
+MWU_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak PWM1_IRQHandler
+PWM1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak PWM2_IRQHandler
+PWM2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SPIM2_SPIS2_SPI2_IRQHandler
+SPIM2_SPIS2_SPI2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RTC2_IRQHandler
+RTC2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak I2S_IRQHandler
+I2S_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak FPU_IRQHandler
+FPU_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak USBD_IRQHandler
+USBD_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak UARTE1_IRQHandler
+UARTE1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak QSPI_IRQHandler
+QSPI_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak CRYPTOCELL_IRQHandler
+CRYPTOCELL_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SPIM3_IRQHandler
+SPIM3_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak PWM3_IRQHandler
+PWM3_IRQHandler:
+ b .
+
+#endif
+
+/*****************************************************************************
+ * Vector Table *
+ *****************************************************************************/
+
+ .section .vectors, "ax"
+ .align 0
+ .global _vectors
+ .extern __stack_end__
+ .extern Reset_Handler
+
+_vectors:
+ .word __stack_end__
+ .word Reset_Handler
+ .word NMI_Handler
+ .word HardFault_Handler
+ .word MemoryManagement_Handler
+ .word BusFault_Handler
+ .word UsageFault_Handler
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word SVC_Handler
+ .word DebugMon_Handler
+ .word 0 /* Reserved */
+ .word PendSV_Handler
+ .word SysTick_Handler
+ .word POWER_CLOCK_IRQHandler
+ .word RADIO_IRQHandler
+ .word UARTE0_UART0_IRQHandler
+ .word SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ .word SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ .word NFCT_IRQHandler
+ .word GPIOTE_IRQHandler
+ .word SAADC_IRQHandler
+ .word TIMER0_IRQHandler
+ .word TIMER1_IRQHandler
+ .word TIMER2_IRQHandler
+ .word RTC0_IRQHandler
+ .word TEMP_IRQHandler
+ .word RNG_IRQHandler
+ .word ECB_IRQHandler
+ .word CCM_AAR_IRQHandler
+ .word WDT_IRQHandler
+ .word RTC1_IRQHandler
+ .word QDEC_IRQHandler
+ .word COMP_LPCOMP_IRQHandler
+ .word SWI0_EGU0_IRQHandler
+ .word SWI1_EGU1_IRQHandler
+ .word SWI2_EGU2_IRQHandler
+ .word SWI3_EGU3_IRQHandler
+ .word SWI4_EGU4_IRQHandler
+ .word SWI5_EGU5_IRQHandler
+ .word TIMER3_IRQHandler
+ .word TIMER4_IRQHandler
+ .word PWM0_IRQHandler
+ .word PDM_IRQHandler
+ .word Dummy_Handler /* Reserved */
+ .word Dummy_Handler /* Reserved */
+ .word MWU_IRQHandler
+ .word PWM1_IRQHandler
+ .word PWM2_IRQHandler
+ .word SPIM2_SPIS2_SPI2_IRQHandler
+ .word RTC2_IRQHandler
+ .word I2S_IRQHandler
+ .word FPU_IRQHandler
+ .word USBD_IRQHandler
+ .word UARTE1_IRQHandler
+ .word QSPI_IRQHandler
+ .word CRYPTOCELL_IRQHandler
+ .word Dummy_Handler /* Reserved */
+ .word Dummy_Handler /* Reserved */
+ .word PWM3_IRQHandler
+ .word Dummy_Handler /* Reserved */
+ .word SPIM3_IRQHandler
+_vectors_end:
+
+#ifdef VECTORS_IN_RAM
+ .section .vectors_ram, "ax"
+ .align 0
+ .global _vectors_ram
+
+_vectors_ram:
+ .space _vectors_end - _vectors, 0
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf52_Vectors.s b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf52_Vectors.s
new file mode 100644
index 0000000..4e486d4
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/ses_nrf52_Vectors.s
@@ -0,0 +1,458 @@
+/*****************************************************************************
+ * SEGGER Microcontroller GmbH & Co. KG *
+ * Solutions for real time microcontroller applications *
+ *****************************************************************************
+ * *
+ * (c) 2017 SEGGER Microcontroller GmbH & Co. KG *
+ * *
+ * Internet: www.segger.com Support: support@segger.com *
+ * *
+ *****************************************************************************/
+
+/*****************************************************************************
+ * Preprocessor Definitions *
+ * ------------------------ *
+ * VECTORS_IN_RAM *
+ * *
+ * If defined, an area of RAM will large enough to store the vector table *
+ * will be reserved. *
+ * *
+ *****************************************************************************/
+
+ .syntax unified
+ .code 16
+
+ .section .init, "ax"
+ .align 0
+
+/*****************************************************************************
+ * Default Exception Handlers *
+ *****************************************************************************/
+
+ .thumb_func
+ .weak NMI_Handler
+NMI_Handler:
+ b .
+
+ .thumb_func
+ .weak HardFault_Handler
+HardFault_Handler:
+ b .
+
+ .thumb_func
+ .weak MemoryManagement_Handler
+MemoryManagement_Handler:
+ b .
+
+ .thumb_func
+ .weak BusFault_Handler
+BusFault_Handler:
+ b .
+
+ .thumb_func
+ .weak UsageFault_Handler
+UsageFault_Handler:
+ b .
+
+ .thumb_func
+ .weak SVC_Handler
+SVC_Handler:
+ b .
+
+ .thumb_func
+ .weak DebugMon_Handler
+DebugMon_Handler:
+ b .
+
+ .thumb_func
+ .weak PendSV_Handler
+PendSV_Handler:
+ b .
+
+ .thumb_func
+ .weak SysTick_Handler
+SysTick_Handler:
+ b .
+
+ .thumb_func
+Dummy_Handler:
+ b .
+
+#if defined(__OPTIMIZATION_SMALL)
+
+ .weak POWER_CLOCK_IRQHandler
+ .thumb_set POWER_CLOCK_IRQHandler,Dummy_Handler
+
+ .weak RADIO_IRQHandler
+ .thumb_set RADIO_IRQHandler,Dummy_Handler
+
+ .weak UARTE0_UART0_IRQHandler
+ .thumb_set UARTE0_UART0_IRQHandler,Dummy_Handler
+
+ .weak SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ .thumb_set SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler,Dummy_Handler
+
+ .weak SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ .thumb_set SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler,Dummy_Handler
+
+ .weak NFCT_IRQHandler
+ .thumb_set NFCT_IRQHandler,Dummy_Handler
+
+ .weak GPIOTE_IRQHandler
+ .thumb_set GPIOTE_IRQHandler,Dummy_Handler
+
+ .weak SAADC_IRQHandler
+ .thumb_set SAADC_IRQHandler,Dummy_Handler
+
+ .weak TIMER0_IRQHandler
+ .thumb_set TIMER0_IRQHandler,Dummy_Handler
+
+ .weak TIMER1_IRQHandler
+ .thumb_set TIMER1_IRQHandler,Dummy_Handler
+
+ .weak TIMER2_IRQHandler
+ .thumb_set TIMER2_IRQHandler,Dummy_Handler
+
+ .weak RTC0_IRQHandler
+ .thumb_set RTC0_IRQHandler,Dummy_Handler
+
+ .weak TEMP_IRQHandler
+ .thumb_set TEMP_IRQHandler,Dummy_Handler
+
+ .weak RNG_IRQHandler
+ .thumb_set RNG_IRQHandler,Dummy_Handler
+
+ .weak ECB_IRQHandler
+ .thumb_set ECB_IRQHandler,Dummy_Handler
+
+ .weak CCM_AAR_IRQHandler
+ .thumb_set CCM_AAR_IRQHandler,Dummy_Handler
+
+ .weak WDT_IRQHandler
+ .thumb_set WDT_IRQHandler,Dummy_Handler
+
+ .weak RTC1_IRQHandler
+ .thumb_set RTC1_IRQHandler,Dummy_Handler
+
+ .weak QDEC_IRQHandler
+ .thumb_set QDEC_IRQHandler,Dummy_Handler
+
+ .weak COMP_LPCOMP_IRQHandler
+ .thumb_set COMP_LPCOMP_IRQHandler,Dummy_Handler
+
+ .weak SWI0_EGU0_IRQHandler
+ .thumb_set SWI0_EGU0_IRQHandler,Dummy_Handler
+
+ .weak SWI1_EGU1_IRQHandler
+ .thumb_set SWI1_EGU1_IRQHandler,Dummy_Handler
+
+ .weak SWI2_EGU2_IRQHandler
+ .thumb_set SWI2_EGU2_IRQHandler,Dummy_Handler
+
+ .weak SWI3_EGU3_IRQHandler
+ .thumb_set SWI3_EGU3_IRQHandler,Dummy_Handler
+
+ .weak SWI4_EGU4_IRQHandler
+ .thumb_set SWI4_EGU4_IRQHandler,Dummy_Handler
+
+ .weak SWI5_EGU5_IRQHandler
+ .thumb_set SWI5_EGU5_IRQHandler,Dummy_Handler
+
+ .weak TIMER3_IRQHandler
+ .thumb_set TIMER3_IRQHandler,Dummy_Handler
+
+ .weak TIMER4_IRQHandler
+ .thumb_set TIMER4_IRQHandler,Dummy_Handler
+
+ .weak PWM0_IRQHandler
+ .thumb_set PWM0_IRQHandler,Dummy_Handler
+
+ .weak PDM_IRQHandler
+ .thumb_set PDM_IRQHandler,Dummy_Handler
+
+ .weak MWU_IRQHandler
+ .thumb_set MWU_IRQHandler,Dummy_Handler
+
+ .weak PWM1_IRQHandler
+ .thumb_set PWM1_IRQHandler,Dummy_Handler
+
+ .weak PWM2_IRQHandler
+ .thumb_set PWM2_IRQHandler,Dummy_Handler
+
+ .weak SPIM2_SPIS2_SPI2_IRQHandler
+ .thumb_set SPIM2_SPIS2_SPI2_IRQHandler,Dummy_Handler
+
+ .weak RTC2_IRQHandler
+ .thumb_set RTC2_IRQHandler,Dummy_Handler
+
+ .weak I2S_IRQHandler
+ .thumb_set I2S_IRQHandler,Dummy_Handler
+
+ .weak FPU_IRQHandler
+ .thumb_set FPU_IRQHandler,Dummy_Handler
+
+#else
+
+ .thumb_func
+ .weak POWER_CLOCK_IRQHandler
+POWER_CLOCK_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RADIO_IRQHandler
+RADIO_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak UARTE0_UART0_IRQHandler
+UARTE0_UART0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak NFCT_IRQHandler
+NFCT_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak GPIOTE_IRQHandler
+GPIOTE_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SAADC_IRQHandler
+SAADC_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER0_IRQHandler
+TIMER0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER1_IRQHandler
+TIMER1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER2_IRQHandler
+TIMER2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RTC0_IRQHandler
+RTC0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TEMP_IRQHandler
+TEMP_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RNG_IRQHandler
+RNG_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak ECB_IRQHandler
+ECB_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak CCM_AAR_IRQHandler
+CCM_AAR_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak WDT_IRQHandler
+WDT_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RTC1_IRQHandler
+RTC1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak QDEC_IRQHandler
+QDEC_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak COMP_LPCOMP_IRQHandler
+COMP_LPCOMP_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI0_EGU0_IRQHandler
+SWI0_EGU0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI1_EGU1_IRQHandler
+SWI1_EGU1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI2_EGU2_IRQHandler
+SWI2_EGU2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI3_EGU3_IRQHandler
+SWI3_EGU3_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI4_EGU4_IRQHandler
+SWI4_EGU4_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SWI5_EGU5_IRQHandler
+SWI5_EGU5_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER3_IRQHandler
+TIMER3_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak TIMER4_IRQHandler
+TIMER4_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak PWM0_IRQHandler
+PWM0_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak PDM_IRQHandler
+PDM_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak MWU_IRQHandler
+MWU_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak PWM1_IRQHandler
+PWM1_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak PWM2_IRQHandler
+PWM2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak SPIM2_SPIS2_SPI2_IRQHandler
+SPIM2_SPIS2_SPI2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak RTC2_IRQHandler
+RTC2_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak I2S_IRQHandler
+I2S_IRQHandler:
+ b .
+
+ .thumb_func
+ .weak FPU_IRQHandler
+FPU_IRQHandler:
+ b .
+
+#endif
+
+/*****************************************************************************
+ * Vector Table *
+ *****************************************************************************/
+
+ .section .vectors, "ax"
+ .align 0
+ .global _vectors
+ .extern __stack_end__
+ .extern Reset_Handler
+
+_vectors:
+ .word __stack_end__
+ .word Reset_Handler
+ .word NMI_Handler
+ .word HardFault_Handler
+ .word MemoryManagement_Handler
+ .word BusFault_Handler
+ .word UsageFault_Handler
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word 0 /* Reserved */
+ .word SVC_Handler
+ .word DebugMon_Handler
+ .word 0 /* Reserved */
+ .word PendSV_Handler
+ .word SysTick_Handler
+ .word POWER_CLOCK_IRQHandler
+ .word RADIO_IRQHandler
+ .word UARTE0_UART0_IRQHandler
+ .word SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+ .word SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+ .word NFCT_IRQHandler
+ .word GPIOTE_IRQHandler
+ .word SAADC_IRQHandler
+ .word TIMER0_IRQHandler
+ .word TIMER1_IRQHandler
+ .word TIMER2_IRQHandler
+ .word RTC0_IRQHandler
+ .word TEMP_IRQHandler
+ .word RNG_IRQHandler
+ .word ECB_IRQHandler
+ .word CCM_AAR_IRQHandler
+ .word WDT_IRQHandler
+ .word RTC1_IRQHandler
+ .word QDEC_IRQHandler
+ .word COMP_LPCOMP_IRQHandler
+ .word SWI0_EGU0_IRQHandler
+ .word SWI1_EGU1_IRQHandler
+ .word SWI2_EGU2_IRQHandler
+ .word SWI3_EGU3_IRQHandler
+ .word SWI4_EGU4_IRQHandler
+ .word SWI5_EGU5_IRQHandler
+ .word TIMER3_IRQHandler
+ .word TIMER4_IRQHandler
+ .word PWM0_IRQHandler
+ .word PDM_IRQHandler
+ .word Dummy_Handler /* Reserved */
+ .word Dummy_Handler /* Reserved */
+ .word MWU_IRQHandler
+ .word PWM1_IRQHandler
+ .word PWM2_IRQHandler
+ .word SPIM2_SPIS2_SPI2_IRQHandler
+ .word RTC2_IRQHandler
+ .word I2S_IRQHandler
+ .word FPU_IRQHandler
+_vectors_end:
+
+#ifdef VECTORS_IN_RAM
+ .section .vectors_ram, "ax"
+ .align 0
+ .global _vectors_ram
+
+_vectors_ram:
+ .space _vectors_end - _vectors, 0
+#endif
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/startup_config.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/startup_config.h
new file mode 100644
index 0000000..7dd3b42
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/startup_config.h
@@ -0,0 +1,60 @@
+/*
+
+Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form, except as embedded into a Nordic
+ Semiconductor ASA integrated circuit in a product or a software update for
+ such product, must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+4. This software, with or without modification, must only be used with a
+ Nordic Semiconductor ASA integrated circuit.
+
+5. Any software provided in binary form under this license must not be reverse
+ engineered, decompiled, modified and/or disassembled.
+
+THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+*/
+
+/* Configure stack size, stack alignement and heap size with a header file instead of project settings or modification of Nordic provided assembler files. Modify this file as needed. */
+
+/* In order to make use this file,
+ 1. For Keil uVision IDE, in the Options for Target -> Asm tab, define symbol __STARTUP_CONFIG and use the additional assembler option --cpreproc in Misc Control text box.
+ 2. For GCC compiling, add extra assembly option -D__STARTUP_CONFIG.
+ 3. For IAR Embedded Workbench define symbol __STARTUP_CONFIG in the Assembler options and define symbol __STARTUP_CONFIG=1 in the linker options.
+*/
+
+/* This file is a template and should be copied to the project directory. */
+
+/* Define size of stack. Size must be multiple of 4. */
+#define __STARTUP_CONFIG_STACK_SIZE 0x1000
+
+/* Define alignement of stack. Alignment will be 2 to the power of __STARTUP_CONFIG_STACK_ALIGNEMENT. Since calling convention requires that the stack is aligned to 8-bytes when a function is called, the minimum __STARTUP_CONFIG_STACK_ALIGNEMENT is therefore 3. */
+#define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
+
+/* Define size of heap. Size must be multiple of 4. */
+#define __STARTUP_CONFIG_HEAP_SIZE 0x1000
+
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf51.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf51.c
new file mode 100644
index 0000000..e342441
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf51.c
@@ -0,0 +1,143 @@
+/*
+
+Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the License); you may
+not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an AS IS BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+*/
+
+/* NOTE: Template files (including this one) are application specific and therefore expected to
+ be copied into the application project folder prior to its use! */
+
+#include <stdint.h>
+#include <stdbool.h>
+#include "nrf.h"
+#include "system_nrf51.h"
+
+/*lint ++flb "Enter library region" */
+
+
+#define __SYSTEM_CLOCK (16000000UL) /*!< nRF51 devices use a fixed System Clock Frequency of 16MHz */
+
+static bool is_manual_peripheral_setup_needed(void);
+static bool is_disabled_in_debug_needed(void);
+static bool is_peripheral_domain_setup_needed(void);
+
+
+#if defined ( __CC_ARM )
+ uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK;
+#elif defined ( __ICCARM__ )
+ __root uint32_t SystemCoreClock = __SYSTEM_CLOCK;
+#elif defined ( __GNUC__ )
+ uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK;
+#endif
+
+void SystemCoreClockUpdate(void)
+{
+ SystemCoreClock = __SYSTEM_CLOCK;
+}
+
+void SystemInit(void)
+{
+ /* If desired, switch off the unused RAM to lower consumption by the use of RAMON register.
+ It can also be done in the application main() function. */
+
+ /* Prepare the peripherals for use as indicated by the PAN 26 "System: Manual setup is required
+ to enable the use of peripherals" found at Product Anomaly document for your device found at
+ https://www.nordicsemi.com/. The side effect of executing these instructions in the devices
+ that do not need it is that the new peripherals in the second generation devices (LPCOMP for
+ example) will not be available. */
+ if (is_manual_peripheral_setup_needed())
+ {
+ *(uint32_t volatile *)0x40000504 = 0xC007FFDF;
+ *(uint32_t volatile *)0x40006C18 = 0x00008000;
+ }
+
+ /* Disable PROTENSET registers under debug, as indicated by PAN 59 "MPU: Reset value of DISABLEINDEBUG
+ register is incorrect" found at Product Anomaly document for your device found at
+ https://www.nordicsemi.com/. There is no side effect of using these instruction if not needed. */
+ if (is_disabled_in_debug_needed())
+ {
+ NRF_MPU->DISABLEINDEBUG = MPU_DISABLEINDEBUG_DISABLEINDEBUG_Disabled << MPU_DISABLEINDEBUG_DISABLEINDEBUG_Pos;
+ }
+
+ /* Execute the following code to eliminate excessive current in sleep mode with RAM retention in nRF51802 devices,
+ as indicated by PAN 76 "System: Excessive current in sleep mode with retention" found at Product Anomaly document
+ for your device found at https://www.nordicsemi.com/. */
+ if (is_peripheral_domain_setup_needed()){
+ if (*(uint32_t volatile *)0x4006EC00 != 1){
+ *(uint32_t volatile *)0x4006EC00 = 0x9375;
+ while (*(uint32_t volatile *)0x4006EC00 != 1){
+ }
+ }
+ *(uint32_t volatile *)0x4006EC14 = 0xC0;
+ }
+}
+
+
+static bool is_manual_peripheral_setup_needed(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x1) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0))
+ {
+ if ((((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x00) && (((*(uint32_t *)0xF0000FEC) & 0x000000F0) == 0x0))
+ {
+ return true;
+ }
+ if ((((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x10) && (((*(uint32_t *)0xF0000FEC) & 0x000000F0) == 0x0))
+ {
+ return true;
+ }
+ if ((((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30) && (((*(uint32_t *)0xF0000FEC) & 0x000000F0) == 0x0))
+ {
+ return true;
+ }
+ }
+
+ return false;
+}
+
+static bool is_disabled_in_debug_needed(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x1) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0))
+ {
+ if ((((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x40) && (((*(uint32_t *)0xF0000FEC) & 0x000000F0) == 0x0))
+ {
+ return true;
+ }
+ }
+
+ return false;
+}
+
+static bool is_peripheral_domain_setup_needed(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x1) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0))
+ {
+ if ((((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0xA0) && (((*(uint32_t *)0xF0000FEC) & 0x000000F0) == 0x0))
+ {
+ return true;
+ }
+ if ((((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0xD0) && (((*(uint32_t *)0xF0000FEC) & 0x000000F0) == 0x0))
+ {
+ return true;
+ }
+ }
+
+ return false;
+}
+
+/*lint --flb "Leave library region" */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf51.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf51.h
new file mode 100644
index 0000000..3227caf
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf51.h
@@ -0,0 +1,61 @@
+/*
+
+Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the License); you may
+not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an AS IS BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+*/
+
+#ifndef SYSTEM_NRF51_H
+#define SYSTEM_NRF51_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+
+
+extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
+
+/**
+ * Initialize the system
+ *
+ * @param none
+ * @return none
+ *
+ * @brief Setup the microcontroller system.
+ * Initialize the System and update the SystemCoreClock variable.
+ */
+extern void SystemInit (void);
+
+/**
+ * Update SystemCoreClock variable
+ *
+ * @param none
+ * @return none
+ *
+ * @brief Updates the SystemCoreClock with current core Clock
+ * retrieved from cpu registers.
+ */
+extern void SystemCoreClockUpdate (void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* SYSTEM_NRF51_H */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52.c
new file mode 100644
index 0000000..d9d684c
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52.c
@@ -0,0 +1,373 @@
+/*
+
+Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the License); you may
+not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an AS IS BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+*/
+
+/* NOTE: Template files (including this one) are application specific and therefore expected to
+ be copied into the application project folder prior to its use! */
+
+#include <stdint.h>
+#include <stdbool.h>
+#include "nrf.h"
+#include "system_nrf52.h"
+
+/*lint ++flb "Enter library region" */
+
+#define __SYSTEM_CLOCK_64M (64000000UL)
+
+static bool errata_12(void);
+static bool errata_16(void);
+static bool errata_31(void);
+static bool errata_32(void);
+static bool errata_36(void);
+static bool errata_37(void);
+static bool errata_57(void);
+static bool errata_66(void);
+static bool errata_108(void);
+static bool errata_136(void);
+static bool errata_182(void);
+
+
+#if defined ( __CC_ARM )
+ uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK_64M;
+#elif defined ( __ICCARM__ )
+ __root uint32_t SystemCoreClock = __SYSTEM_CLOCK_64M;
+#elif defined ( __GNUC__ )
+ uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK_64M;
+#endif
+
+void SystemCoreClockUpdate(void)
+{
+ SystemCoreClock = __SYSTEM_CLOCK_64M;
+}
+
+void SystemInit(void)
+{
+ /* Enable SWO trace functionality. If ENABLE_SWO is not defined, SWO pin will be used as GPIO (see Product
+ Specification to see which one). */
+ #if defined (ENABLE_SWO)
+ CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;
+ NRF_CLOCK->TRACECONFIG |= CLOCK_TRACECONFIG_TRACEMUX_Serial << CLOCK_TRACECONFIG_TRACEMUX_Pos;
+ NRF_P0->PIN_CNF[18] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ #endif
+
+ /* Enable Trace functionality. If ENABLE_TRACE is not defined, TRACE pins will be used as GPIOs (see Product
+ Specification to see which ones). */
+ #if defined (ENABLE_TRACE)
+ CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;
+ NRF_CLOCK->TRACECONFIG |= CLOCK_TRACECONFIG_TRACEMUX_Parallel << CLOCK_TRACECONFIG_TRACEMUX_Pos;
+ NRF_P0->PIN_CNF[14] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ NRF_P0->PIN_CNF[15] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ NRF_P0->PIN_CNF[16] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ NRF_P0->PIN_CNF[18] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ NRF_P0->PIN_CNF[20] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ #endif
+
+ /* Workaround for Errata 12 "COMP: Reference ladder not correctly calibrated" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_12()){
+ *(volatile uint32_t *)0x40013540 = (*(uint32_t *)0x10000324 & 0x00001F00) >> 8;
+ }
+
+ /* Workaround for Errata 16 "System: RAM may be corrupt on wakeup from CPU IDLE" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_16()){
+ *(volatile uint32_t *)0x4007C074 = 3131961357ul;
+ }
+
+ /* Workaround for Errata 31 "CLOCK: Calibration values are not correctly loaded from FICR at reset" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_31()){
+ *(volatile uint32_t *)0x4000053C = ((*(volatile uint32_t *)0x10000244) & 0x0000E000) >> 13;
+ }
+
+ /* Workaround for Errata 32 "DIF: Debug session automatically enables TracePort pins" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_32()){
+ CoreDebug->DEMCR &= ~CoreDebug_DEMCR_TRCENA_Msk;
+ }
+
+ /* Workaround for Errata 36 "CLOCK: Some registers are not reset when expected" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_36()){
+ NRF_CLOCK->EVENTS_DONE = 0;
+ NRF_CLOCK->EVENTS_CTTO = 0;
+ NRF_CLOCK->CTIV = 0;
+ }
+
+ /* Workaround for Errata 37 "RADIO: Encryption engine is slow by default" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_37()){
+ *(volatile uint32_t *)0x400005A0 = 0x3;
+ }
+
+ /* Workaround for Errata 57 "NFCT: NFC Modulation amplitude" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_57()){
+ *(volatile uint32_t *)0x40005610 = 0x00000005;
+ *(volatile uint32_t *)0x40005688 = 0x00000001;
+ *(volatile uint32_t *)0x40005618 = 0x00000000;
+ *(volatile uint32_t *)0x40005614 = 0x0000003F;
+ }
+
+ /* Workaround for Errata 66 "TEMP: Linearity specification not met with default settings" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_66()){
+ NRF_TEMP->A0 = NRF_FICR->TEMP.A0;
+ NRF_TEMP->A1 = NRF_FICR->TEMP.A1;
+ NRF_TEMP->A2 = NRF_FICR->TEMP.A2;
+ NRF_TEMP->A3 = NRF_FICR->TEMP.A3;
+ NRF_TEMP->A4 = NRF_FICR->TEMP.A4;
+ NRF_TEMP->A5 = NRF_FICR->TEMP.A5;
+ NRF_TEMP->B0 = NRF_FICR->TEMP.B0;
+ NRF_TEMP->B1 = NRF_FICR->TEMP.B1;
+ NRF_TEMP->B2 = NRF_FICR->TEMP.B2;
+ NRF_TEMP->B3 = NRF_FICR->TEMP.B3;
+ NRF_TEMP->B4 = NRF_FICR->TEMP.B4;
+ NRF_TEMP->B5 = NRF_FICR->TEMP.B5;
+ NRF_TEMP->T0 = NRF_FICR->TEMP.T0;
+ NRF_TEMP->T1 = NRF_FICR->TEMP.T1;
+ NRF_TEMP->T2 = NRF_FICR->TEMP.T2;
+ NRF_TEMP->T3 = NRF_FICR->TEMP.T3;
+ NRF_TEMP->T4 = NRF_FICR->TEMP.T4;
+ }
+
+ /* Workaround for Errata 108 "RAM: RAM content cannot be trusted upon waking up from System ON Idle or System OFF mode" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_108()){
+ *(volatile uint32_t *)0x40000EE4 = *(volatile uint32_t *)0x10000258 & 0x0000004F;
+ }
+
+ /* Workaround for Errata 136 "System: Bits in RESETREAS are set when they should not be" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_136()){
+ if (NRF_POWER->RESETREAS & POWER_RESETREAS_RESETPIN_Msk){
+ NRF_POWER->RESETREAS = ~POWER_RESETREAS_RESETPIN_Msk;
+ }
+ }
+
+ /* Workaround for Errata 182 "RADIO: Fixes for anomalies #102, #106, and #107 do not take effect" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_182()){
+ *(volatile uint32_t *) 0x4000173C |= (0x1 << 10);
+ }
+
+ /* Enable the FPU if the compiler used floating point unit instructions. __FPU_USED is a MACRO defined by the
+ * compiler. Since the FPU consumes energy, remember to disable FPU use in the compiler if floating point unit
+ * operations are not used in your code. */
+ #if (__FPU_USED == 1)
+ SCB->CPACR |= (3UL << 20) | (3UL << 22);
+ __DSB();
+ __ISB();
+ #endif
+
+ /* Configure NFCT pins as GPIOs if NFCT is not to be used in your code. If CONFIG_NFCT_PINS_AS_GPIOS is not defined,
+ two GPIOs (see Product Specification to see which ones) will be reserved for NFC and will not be available as
+ normal GPIOs. */
+ #if defined (CONFIG_NFCT_PINS_AS_GPIOS)
+ if ((NRF_UICR->NFCPINS & UICR_NFCPINS_PROTECT_Msk) == (UICR_NFCPINS_PROTECT_NFC << UICR_NFCPINS_PROTECT_Pos)){
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_UICR->NFCPINS &= ~UICR_NFCPINS_PROTECT_Msk;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NVIC_SystemReset();
+ }
+ #endif
+
+ /* Configure GPIO pads as pPin Reset pin if Pin Reset capabilities desired. If CONFIG_GPIO_AS_PINRESET is not
+ defined, pin reset will not be available. One GPIO (see Product Specification to see which one) will then be
+ reserved for PinReset and not available as normal GPIO. */
+ #if defined (CONFIG_GPIO_AS_PINRESET)
+ if (((NRF_UICR->PSELRESET[0] & UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected << UICR_PSELRESET_CONNECT_Pos)) ||
+ ((NRF_UICR->PSELRESET[1] & UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected << UICR_PSELRESET_CONNECT_Pos))){
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_UICR->PSELRESET[0] = 21;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_UICR->PSELRESET[1] = 21;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NVIC_SystemReset();
+ }
+ #endif
+
+ SystemCoreClockUpdate();
+}
+
+
+static bool errata_12(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x40){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x50){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+static bool errata_16(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+static bool errata_31(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x40){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x50){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+static bool errata_32(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+static bool errata_36(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x40){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x50){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+static bool errata_37(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+static bool errata_57(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+static bool errata_66(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x50){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+
+static bool errata_108(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x40){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x50){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+
+static bool errata_136(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x40){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x50){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+
+static bool errata_182(void)
+{
+ if (*(uint32_t *)0x10000130ul == 0x6ul){
+ if (*(uint32_t *)0x10000134ul == 0x6ul){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+
+/*lint --flb "Leave library region" */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52.h
new file mode 100644
index 0000000..d05316c
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52.h
@@ -0,0 +1,61 @@
+/*
+
+Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the License); you may
+not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an AS IS BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+*/
+
+#ifndef SYSTEM_NRF52_H
+#define SYSTEM_NRF52_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+
+
+extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
+
+/**
+ * Initialize the system
+ *
+ * @param none
+ * @return none
+ *
+ * @brief Setup the microcontroller system.
+ * Initialize the System and update the SystemCoreClock variable.
+ */
+extern void SystemInit (void);
+
+/**
+ * Update SystemCoreClock variable
+ *
+ * @param none
+ * @return none
+ *
+ * @brief Updates the SystemCoreClock with current core Clock
+ * retrieved from cpu registers.
+ */
+extern void SystemCoreClockUpdate (void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* SYSTEM_NRF52_H */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52810.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52810.c
new file mode 100644
index 0000000..e8689c1
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52810.c
@@ -0,0 +1,416 @@
+/*
+
+Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the License); you may
+not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an AS IS BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+*/
+
+/* NOTE: Template files (including this one) are application specific and therefore expected to
+ be copied into the application project folder prior to its use! */
+
+#include <stdint.h>
+#include <stdbool.h>
+#include "nrf.h"
+#include "system_nrf52810.h"
+
+/*lint ++flb "Enter library region" */
+
+#define __SYSTEM_CLOCK_64M (64000000UL)
+
+static bool errata_31(void);
+static bool errata_36(void);
+static bool errata_66(void);
+static bool errata_103(void);
+static bool errata_136(void);
+
+/* Helper functions for Errata workarounds in nRF52832 */
+#if defined (DEVELOP_IN_NRF52832)
+static bool errata_12(void);
+static bool errata_16(void);
+static bool errata_32(void);
+static bool errata_37(void);
+static bool errata_57(void);
+static bool errata_108(void);
+static bool errata_182(void);
+#endif
+
+#if defined ( __CC_ARM )
+ uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK_64M;
+#elif defined ( __ICCARM__ )
+ __root uint32_t SystemCoreClock = __SYSTEM_CLOCK_64M;
+#elif defined ( __GNUC__ )
+ uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK_64M;
+#endif
+
+void SystemCoreClockUpdate(void)
+{
+ SystemCoreClock = __SYSTEM_CLOCK_64M;
+}
+
+void SystemInit(void)
+{
+ /* Enable SWO trace functionality. If ENABLE_SWO is not defined, SWO pin will be used as GPIO (see Product
+ Specification to see which one). Only available if the developing environment is an nRF52832 device. */
+ #if defined (DEVELOP_IN_NRF52832) && defined (ENABLE_SWO)
+ CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;
+ NRF_CLOCK->TRACECONFIG |= CLOCK_TRACECONFIG_TRACEMUX_Serial << CLOCK_TRACECONFIG_TRACEMUX_Pos;
+ NRF_P0->PIN_CNF[18] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ #endif
+
+ /* Enable Trace functionality. If ENABLE_TRACE is not defined, TRACE pins will be used as GPIOs (see Product
+ Specification to see which ones). Only available if the developing environment is an nRF52832 device. */
+ #if defined (DEVELOP_IN_NRF52832) && defined (ENABLE_TRACE)
+ CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;
+ NRF_CLOCK->TRACECONFIG |= CLOCK_TRACECONFIG_TRACEMUX_Parallel << CLOCK_TRACECONFIG_TRACEMUX_Pos;
+ NRF_P0->PIN_CNF[14] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ NRF_P0->PIN_CNF[15] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ NRF_P0->PIN_CNF[16] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ NRF_P0->PIN_CNF[18] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ NRF_P0->PIN_CNF[20] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ #endif
+
+ #if defined (DEVELOP_IN_NRF52832)
+ /* Workaround for Errata 12 "COMP: Reference ladder not correctly calibrated" found at the Errata document
+ for nRF52832 device located at https://infocenter.nordicsemi.com/ */
+ if (errata_12()){
+ *(volatile uint32_t *)0x40013540 = (*(uint32_t *)0x10000324 & 0x00001F00) >> 8;
+ }
+ #endif
+
+ #if defined (DEVELOP_IN_NRF52832)
+ /* Workaround for Errata 16 "System: RAM may be corrupt on wakeup from CPU IDLE" found at the Errata document
+ for nRF52832 device located at https://infocenter.nordicsemi.com/ */
+ if (errata_16()){
+ *(volatile uint32_t *)0x4007C074 = 3131961357ul;
+ }
+ #endif
+
+ /* Workaround for Errata 31 "CLOCK: Calibration values are not correctly loaded from FICR at reset" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_31()){
+ *(volatile uint32_t *)0x4000053C = ((*(volatile uint32_t *)0x10000244) & 0x0000E000) >> 13;
+ }
+
+ #if defined (DEVELOP_IN_NRF52832)
+ /* Workaround for Errata 32 "DIF: Debug session automatically enables TracePort pins" found at the Errata document
+ for nRF52832 device located at https://infocenter.nordicsemi.com/ */
+ if (errata_32()){
+ CoreDebug->DEMCR &= ~CoreDebug_DEMCR_TRCENA_Msk;
+ }
+ #endif
+
+ /* Workaround for Errata 36 "CLOCK: Some registers are not reset when expected" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_36()){
+ NRF_CLOCK->EVENTS_DONE = 0;
+ NRF_CLOCK->EVENTS_CTTO = 0;
+ NRF_CLOCK->CTIV = 0;
+ }
+
+ #if defined (DEVELOP_IN_NRF52832)
+ /* Workaround for Errata 37 "RADIO: Encryption engine is slow by default" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_37()){
+ *(volatile uint32_t *)0x400005A0 = 0x3;
+ }
+ #endif
+
+ #if defined (DEVELOP_IN_NRF52832)
+ /* Workaround for Errata 57 "NFCT: NFC Modulation amplitude" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_57()){
+ *(volatile uint32_t *)0x40005610 = 0x00000005;
+ *(volatile uint32_t *)0x40005688 = 0x00000001;
+ *(volatile uint32_t *)0x40005618 = 0x00000000;
+ *(volatile uint32_t *)0x40005614 = 0x0000003F;
+ }
+ #endif
+
+ /* Workaround for Errata 66 "TEMP: Linearity specification not met with default settings" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_66()){
+ NRF_TEMP->A0 = NRF_FICR->TEMP.A0;
+ NRF_TEMP->A1 = NRF_FICR->TEMP.A1;
+ NRF_TEMP->A2 = NRF_FICR->TEMP.A2;
+ NRF_TEMP->A3 = NRF_FICR->TEMP.A3;
+ NRF_TEMP->A4 = NRF_FICR->TEMP.A4;
+ NRF_TEMP->A5 = NRF_FICR->TEMP.A5;
+ NRF_TEMP->B0 = NRF_FICR->TEMP.B0;
+ NRF_TEMP->B1 = NRF_FICR->TEMP.B1;
+ NRF_TEMP->B2 = NRF_FICR->TEMP.B2;
+ NRF_TEMP->B3 = NRF_FICR->TEMP.B3;
+ NRF_TEMP->B4 = NRF_FICR->TEMP.B4;
+ NRF_TEMP->B5 = NRF_FICR->TEMP.B5;
+ NRF_TEMP->T0 = NRF_FICR->TEMP.T0;
+ NRF_TEMP->T1 = NRF_FICR->TEMP.T1;
+ NRF_TEMP->T2 = NRF_FICR->TEMP.T2;
+ NRF_TEMP->T3 = NRF_FICR->TEMP.T3;
+ NRF_TEMP->T4 = NRF_FICR->TEMP.T4;
+ }
+
+ /* Workaround for Errata 103 "CCM: Wrong reset value of CCM MAXPACKETSIZE" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_103()){
+ NRF_CCM->MAXPACKETSIZE = 0xFBul;
+ }
+
+ #if defined (DEVELOP_IN_NRF52832)
+ /* Workaround for Errata 108 "RAM: RAM content cannot be trusted upon waking up from System ON Idle or System OFF mode" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_108()){
+ *(volatile uint32_t *)0x40000EE4 = *(volatile uint32_t *)0x10000258 & 0x0000004F;
+ }
+ #endif
+
+ /* Workaround for Errata 136 "System: Bits in RESETREAS are set when they should not be" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_136()){
+ if (NRF_POWER->RESETREAS & POWER_RESETREAS_RESETPIN_Msk){
+ NRF_POWER->RESETREAS = ~POWER_RESETREAS_RESETPIN_Msk;
+ }
+ }
+
+ #if defined (DEVELOP_IN_NRF52832)
+ /* Workaround for Errata 182 "RADIO: Fixes for anomalies #102, #106, and #107 do not take effect" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_182()){
+ *(volatile uint32_t *) 0x4000173C |= (0x1 << 10);
+ }
+ #endif
+
+ /* Configure GPIO pads as pPin Reset pin if Pin Reset capabilities desired. If CONFIG_GPIO_AS_PINRESET is not
+ defined, pin reset will not be available. One GPIO (see Product Specification to see which one) will then be
+ reserved for PinReset and not available as normal GPIO. */
+ #if defined (CONFIG_GPIO_AS_PINRESET)
+ if (((NRF_UICR->PSELRESET[0] & UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected << UICR_PSELRESET_CONNECT_Pos)) ||
+ ((NRF_UICR->PSELRESET[1] & UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected << UICR_PSELRESET_CONNECT_Pos))){
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_UICR->PSELRESET[0] = 21;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_UICR->PSELRESET[1] = 21;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NVIC_SystemReset();
+ }
+ #endif
+
+ SystemCoreClockUpdate();
+}
+
+#if defined (DEVELOP_IN_NRF52832)
+static bool errata_12(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x40){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x50){
+ return true;
+ }
+ }
+
+ return false;
+}
+#endif
+
+#if defined (DEVELOP_IN_NRF52832)
+static bool errata_16(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ }
+
+ return false;
+}
+#endif
+
+static bool errata_31(void)
+{
+ if ((*(uint32_t *)0x10000130ul == 0xAul) && (*(uint32_t *)0x10000134ul == 0x0ul)){
+ return true;
+ }
+
+ #if defined (DEVELOP_IN_NRF52832)
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x40){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x50){
+ return true;
+ }
+ }
+ #endif
+
+ return true;
+}
+
+#if defined (DEVELOP_IN_NRF52832)
+static bool errata_32(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ }
+
+ return false;
+}
+#endif
+
+static bool errata_36(void)
+{
+ if ((*(uint32_t *)0x10000130ul == 0xAul) && (*(uint32_t *)0x10000134ul == 0x0ul)){
+ return true;
+ }
+
+ #if defined (DEVELOP_IN_NRF52832)
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x40){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x50){
+ return true;
+ }
+ }
+ #endif
+
+ return true;
+}
+
+#if defined (DEVELOP_IN_NRF52832)
+static bool errata_37(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ }
+
+ return false;
+}
+#endif
+
+#if defined (DEVELOP_IN_NRF52832)
+static bool errata_57(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ }
+
+ return false;
+}
+#endif
+
+static bool errata_66(void)
+{
+ if ((*(uint32_t *)0x10000130ul == 0xAul) && (*(uint32_t *)0x10000134ul == 0x0ul)){
+ return true;
+ }
+
+ #if defined (DEVELOP_IN_NRF52832)
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x50){
+ return true;
+ }
+ }
+ #endif
+
+ return true;
+}
+
+static bool errata_103(void)
+{
+ if ((*(uint32_t *)0x10000130ul == 0xAul) && (*(uint32_t *)0x10000134ul == 0x0ul)){
+ return true;
+ }
+
+ return true;
+}
+
+#if defined (DEVELOP_IN_NRF52832)
+static bool errata_108(void)
+{
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x40){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x50){
+ return true;
+ }
+ }
+
+ return false;
+}
+#endif
+
+static bool errata_136(void)
+{
+ if ((*(uint32_t *)0x10000130ul == 0xAul) && (*(uint32_t *)0x10000134ul == 0x0ul)){
+ return true;
+ }
+
+ #if defined (DEVELOP_IN_NRF52832)
+ if ((((*(uint32_t *)0xF0000FE0) & 0x000000FF) == 0x6) && (((*(uint32_t *)0xF0000FE4) & 0x0000000F) == 0x0)){
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x30){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x40){
+ return true;
+ }
+ if (((*(uint32_t *)0xF0000FE8) & 0x000000F0) == 0x50){
+ return true;
+ }
+ }
+ #endif
+
+ return true;
+}
+
+#if defined (DEVELOP_IN_NRF52832)
+static bool errata_182(void)
+{
+ if (*(uint32_t *)0x10000130ul == 0x6ul){
+ if (*(uint32_t *)0x10000134ul == 0x6ul){
+ return true;
+ }
+ }
+
+ return false;
+}
+#endif
+
+
+/*lint --flb "Leave library region" */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52810.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52810.h
new file mode 100644
index 0000000..e395ee9
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52810.h
@@ -0,0 +1,61 @@
+/*
+
+Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the License); you may
+not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an AS IS BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+*/
+
+#ifndef SYSTEM_NRF52810_H
+#define SYSTEM_NRF52810_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+
+
+extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
+
+/**
+ * Initialize the system
+ *
+ * @param none
+ * @return none
+ *
+ * @brief Setup the microcontroller system.
+ * Initialize the System and update the SystemCoreClock variable.
+ */
+extern void SystemInit (void);
+
+/**
+ * Update SystemCoreClock variable
+ *
+ * @param none
+ * @return none
+ *
+ * @brief Updates the SystemCoreClock with current core Clock
+ * retrieved from cpu registers.
+ */
+extern void SystemCoreClockUpdate (void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* SYSTEM_NRF52810_H */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52840.c b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52840.c
new file mode 100644
index 0000000..12478ba
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52840.c
@@ -0,0 +1,288 @@
+/*
+
+Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the License); you may
+not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an AS IS BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+*/
+
+/* NOTE: Template files (including this one) are application specific and therefore expected to
+ be copied into the application project folder prior to its use! */
+
+#include <stdint.h>
+#include <stdbool.h>
+#include "nrf.h"
+#include "system_nrf52840.h"
+
+/*lint ++flb "Enter library region" */
+
+#define __SYSTEM_CLOCK_64M (64000000UL)
+
+static bool errata_36(void);
+static bool errata_66(void);
+static bool errata_98(void);
+static bool errata_103(void);
+static bool errata_115(void);
+static bool errata_120(void);
+static bool errata_136(void);
+
+
+#if defined ( __CC_ARM )
+ uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK_64M;
+#elif defined ( __ICCARM__ )
+ __root uint32_t SystemCoreClock = __SYSTEM_CLOCK_64M;
+#elif defined ( __GNUC__ )
+ uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK_64M;
+#endif
+
+void SystemCoreClockUpdate(void)
+{
+ SystemCoreClock = __SYSTEM_CLOCK_64M;
+}
+
+void SystemInit(void)
+{
+ /* Enable SWO trace functionality. If ENABLE_SWO is not defined, SWO pin will be used as GPIO (see Product
+ Specification to see which one). */
+ #if defined (ENABLE_SWO)
+ CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;
+ NRF_CLOCK->TRACECONFIG |= CLOCK_TRACECONFIG_TRACEMUX_Serial << CLOCK_TRACECONFIG_TRACEMUX_Pos;
+ NRF_P1->PIN_CNF[0] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ #endif
+
+ /* Enable Trace functionality. If ENABLE_TRACE is not defined, TRACE pins will be used as GPIOs (see Product
+ Specification to see which ones). */
+ #if defined (ENABLE_TRACE)
+ CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;
+ NRF_CLOCK->TRACECONFIG |= CLOCK_TRACECONFIG_TRACEMUX_Parallel << CLOCK_TRACECONFIG_TRACEMUX_Pos;
+ NRF_P0->PIN_CNF[7] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ NRF_P1->PIN_CNF[0] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ NRF_P0->PIN_CNF[12] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ NRF_P0->PIN_CNF[11] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ NRF_P1->PIN_CNF[9] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
+ #endif
+
+ /* Workaround for Errata 36 "CLOCK: Some registers are not reset when expected" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_36()){
+ NRF_CLOCK->EVENTS_DONE = 0;
+ NRF_CLOCK->EVENTS_CTTO = 0;
+ NRF_CLOCK->CTIV = 0;
+ }
+
+ /* Workaround for Errata 66 "TEMP: Linearity specification not met with default settings" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_66()){
+ NRF_TEMP->A0 = NRF_FICR->TEMP.A0;
+ NRF_TEMP->A1 = NRF_FICR->TEMP.A1;
+ NRF_TEMP->A2 = NRF_FICR->TEMP.A2;
+ NRF_TEMP->A3 = NRF_FICR->TEMP.A3;
+ NRF_TEMP->A4 = NRF_FICR->TEMP.A4;
+ NRF_TEMP->A5 = NRF_FICR->TEMP.A5;
+ NRF_TEMP->B0 = NRF_FICR->TEMP.B0;
+ NRF_TEMP->B1 = NRF_FICR->TEMP.B1;
+ NRF_TEMP->B2 = NRF_FICR->TEMP.B2;
+ NRF_TEMP->B3 = NRF_FICR->TEMP.B3;
+ NRF_TEMP->B4 = NRF_FICR->TEMP.B4;
+ NRF_TEMP->B5 = NRF_FICR->TEMP.B5;
+ NRF_TEMP->T0 = NRF_FICR->TEMP.T0;
+ NRF_TEMP->T1 = NRF_FICR->TEMP.T1;
+ NRF_TEMP->T2 = NRF_FICR->TEMP.T2;
+ NRF_TEMP->T3 = NRF_FICR->TEMP.T3;
+ NRF_TEMP->T4 = NRF_FICR->TEMP.T4;
+ }
+
+ /* Workaround for Errata 98 "NFCT: Not able to communicate with the peer" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_98()){
+ *(volatile uint32_t *)0x4000568Cul = 0x00038148ul;
+ }
+
+ /* Workaround for Errata 103 "CCM: Wrong reset value of CCM MAXPACKETSIZE" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_103()){
+ NRF_CCM->MAXPACKETSIZE = 0xFBul;
+ }
+
+ /* Workaround for Errata 115 "RAM: RAM content cannot be trusted upon waking up from System ON Idle or System OFF mode" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_115()){
+ *(volatile uint32_t *)0x40000EE4 = (*(volatile uint32_t *)0x40000EE4 & 0xFFFFFFF0) | (*(uint32_t *)0x10000258 & 0x0000000F);
+ }
+
+ /* Workaround for Errata 120 "QSPI: Data read or written is corrupted" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_120()){
+ *(volatile uint32_t *)0x40029640ul = 0x200ul;
+ }
+
+ /* Workaround for Errata 136 "System: Bits in RESETREAS are set when they should not be" found at the Errata document
+ for your device located at https://infocenter.nordicsemi.com/ */
+ if (errata_136()){
+ if (NRF_POWER->RESETREAS & POWER_RESETREAS_RESETPIN_Msk){
+ NRF_POWER->RESETREAS = ~POWER_RESETREAS_RESETPIN_Msk;
+ }
+ }
+
+ /* Enable the FPU if the compiler used floating point unit instructions. __FPU_USED is a MACRO defined by the
+ * compiler. Since the FPU consumes energy, remember to disable FPU use in the compiler if floating point unit
+ * operations are not used in your code. */
+ #if (__FPU_USED == 1)
+ SCB->CPACR |= (3UL << 20) | (3UL << 22);
+ __DSB();
+ __ISB();
+ #endif
+
+ /* Configure NFCT pins as GPIOs if NFCT is not to be used in your code. If CONFIG_NFCT_PINS_AS_GPIOS is not defined,
+ two GPIOs (see Product Specification to see which ones) will be reserved for NFC and will not be available as
+ normal GPIOs. */
+ #if defined (CONFIG_NFCT_PINS_AS_GPIOS)
+ if ((NRF_UICR->NFCPINS & UICR_NFCPINS_PROTECT_Msk) == (UICR_NFCPINS_PROTECT_NFC << UICR_NFCPINS_PROTECT_Pos)){
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_UICR->NFCPINS &= ~UICR_NFCPINS_PROTECT_Msk;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NVIC_SystemReset();
+ }
+ #endif
+
+ /* Configure GPIO pads as pPin Reset pin if Pin Reset capabilities desired. If CONFIG_GPIO_AS_PINRESET is not
+ defined, pin reset will not be available. One GPIO (see Product Specification to see which one) will then be
+ reserved for PinReset and not available as normal GPIO. */
+ #if defined (CONFIG_GPIO_AS_PINRESET)
+ if (((NRF_UICR->PSELRESET[0] & UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected << UICR_PSELRESET_CONNECT_Pos)) ||
+ ((NRF_UICR->PSELRESET[1] & UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected << UICR_PSELRESET_CONNECT_Pos))){
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_UICR->PSELRESET[0] = 18;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_UICR->PSELRESET[1] = 18;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos;
+ while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
+ NVIC_SystemReset();
+ }
+ #endif
+
+ SystemCoreClockUpdate();
+}
+
+
+static bool errata_36(void)
+{
+ if (*(uint32_t *)0x10000130ul == 0x8ul){
+ if (*(uint32_t *)0x10000134ul == 0x0ul){
+ return true;
+ }
+ if (*(uint32_t *)0x10000134ul == 0x1ul){
+ return true;
+ }
+ if (*(uint32_t *)0x10000134ul == 0x2ul){
+ return true;
+ }
+ }
+
+ return true;
+}
+
+
+static bool errata_66(void)
+{
+ if (*(uint32_t *)0x10000130ul == 0x8ul){
+ if (*(uint32_t *)0x10000134ul == 0x0ul){
+ return true;
+ }
+ if (*(uint32_t *)0x10000134ul == 0x1ul){
+ return true;
+ }
+ if (*(uint32_t *)0x10000134ul == 0x2ul){
+ return true;
+ }
+ }
+
+ return true;
+}
+
+
+static bool errata_98(void)
+{
+ if (*(uint32_t *)0x10000130ul == 0x8ul){
+ if (*(uint32_t *)0x10000134ul == 0x0ul){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+
+static bool errata_103(void)
+{
+ if (*(uint32_t *)0x10000130ul == 0x8ul){
+ if (*(uint32_t *)0x10000134ul == 0x0ul){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+
+static bool errata_115(void)
+{
+ if (*(uint32_t *)0x10000130ul == 0x8ul){
+ if (*(uint32_t *)0x10000134ul == 0x0ul){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+
+static bool errata_120(void)
+{
+ if (*(uint32_t *)0x10000130ul == 0x8ul){
+ if (*(uint32_t *)0x10000134ul == 0x0ul){
+ return true;
+ }
+ }
+
+ return false;
+}
+
+
+static bool errata_136(void)
+{
+ if (*(uint32_t *)0x10000130ul == 0x8ul){
+ if (*(uint32_t *)0x10000134ul == 0x0ul){
+ return true;
+ }
+ if (*(uint32_t *)0x10000134ul == 0x1ul){
+ return true;
+ }
+ if (*(uint32_t *)0x10000134ul == 0x2ul){
+ return true;
+ }
+ }
+
+ return true;
+}
+
+/*lint --flb "Leave library region" */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52840.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52840.h
new file mode 100644
index 0000000..28b3151
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/mdk/system_nrf52840.h
@@ -0,0 +1,61 @@
+/*
+
+Copyright (c) 2009-2018 ARM Limited. All rights reserved.
+
+ SPDX-License-Identifier: Apache-2.0
+
+Licensed under the Apache License, Version 2.0 (the License); you may
+not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an AS IS BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+NOTICE: This file has been modified by Nordic Semiconductor ASA.
+
+*/
+
+#ifndef SYSTEM_NRF52840_H
+#define SYSTEM_NRF52840_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+
+
+extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
+
+/**
+ * Initialize the system
+ *
+ * @param none
+ * @return none
+ *
+ * @brief Setup the microcontroller system.
+ * Initialize the System and update the SystemCoreClock variable.
+ */
+extern void SystemInit (void);
+
+/**
+ * Update SystemCoreClock variable
+ *
+ * @param none
+ * @return none
+ *
+ * @brief Updates the SystemCoreClock with current core Clock
+ * retrieved from cpu registers.
+ */
+extern void SystemCoreClockUpdate (void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* SYSTEM_NRF52840_H */
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/nrfx.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/nrfx.h
new file mode 100644
index 0000000..37e3c8d
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/nrfx.h
@@ -0,0 +1,49 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_H__
+#define NRFX_H__
+
+#include <nrfx_config.h>
+#include <drivers/nrfx_common.h>
+#include <nrfx_glue.h>
+#include <drivers/nrfx_errors.h>
+
+#endif // NRFX_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_coredep.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_coredep.h
new file mode 100644
index 0000000..fddf052
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_coredep.h
@@ -0,0 +1,171 @@
+/**
+ * Copyright (c) 2018 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_COREDEP_H__
+#define NRFX_COREDEP_H__
+
+/**
+ * @defgroup nrfx_coredep Core-dependent functionality
+ * @{
+ * @ingroup nrfx
+ * @brief Module containing functions with core-dependent implementation, like delay.
+ */
+
+#if defined(__NRFX_DOXYGEN__)
+
+/** @brief Core frequency (in MHz). */
+#define NRFX_DELAY_CPU_FREQ_MHZ
+/** @brief Availability of DWT unit in the given SoC. */
+#define NRFX_DELAY_DWT_PRESENT
+
+#elif defined(NRF51)
+ #define NRFX_DELAY_CPU_FREQ_MHZ 16
+ #define NRFX_DELAY_DWT_PRESENT 0
+#elif defined(NRF52810_XXAA)
+ #define NRFX_DELAY_CPU_FREQ_MHZ 64
+ #define NRFX_DELAY_DWT_PRESENT 0
+#elif defined(NRF52832_XXAA) || defined (NRF52832_XXAB)
+ #define NRFX_DELAY_CPU_FREQ_MHZ 64
+ #define NRFX_DELAY_DWT_PRESENT 1
+#elif defined(NRF52840_XXAA)
+ #define NRFX_DELAY_CPU_FREQ_MHZ 64
+ #define NRFX_DELAY_DWT_PRESENT 1
+#else
+ #error "Unknown device."
+#endif
+
+/**
+ * @brief Function for delaying execution for a number of microseconds.
+ *
+ * The value of @p time_us is multiplied by the frequency in MHz. Therefore, the delay is limited to
+ * maximum uint32_t capacity divided by frequency. For example:
+ * - For SoCs working at 64MHz: 0xFFFFFFFF/64 = 0x03FFFFFF (67108863 microseconds)
+ * - For SoCs working at 16MHz: 0xFFFFFFFF/16 = 0x0FFFFFFF (268435455 microseconds)
+ *
+ * @param time_us Number of microseconds to wait.
+ */
+__STATIC_INLINE void nrfx_coredep_delay_us(uint32_t time_us);
+
+/** @} */
+
+#ifndef SUPPRESS_INLINE_IMPLEMENTATION
+
+#if NRFX_CHECK(NRFX_DELAY_DWT_BASED)
+
+#if !NRFX_DELAY_DWT_PRESENT
+#error "DWT unit not present in the SoC that is used."
+#endif
+
+__STATIC_INLINE void nrfx_coredep_delay_us(uint32_t time_us)
+{
+ if (time_us == 0)
+ {
+ return;
+ }
+ uint32_t time_cycles = time_us * NRFX_DELAY_CPU_FREQ_MHZ;
+
+ // Save the current state of the DEMCR register to be able to restore it before exiting
+ // this function. Enable the trace and debug blocks (DWT is one of them).
+ uint32_t core_debug = CoreDebug->DEMCR;
+ CoreDebug->DEMCR = core_debug | CoreDebug_DEMCR_TRCENA_Msk;
+
+ // Save the current state of the CTRL register in DWT block. Make sure
+ // that cycle counter is enabled.
+ uint32_t dwt_ctrl = DWT->CTRL;
+ DWT->CTRL = dwt_ctrl | DWT_CTRL_CYCCNTENA_Msk;
+
+ // Store start value of cycle counter.
+ uint32_t cyccnt_initial = DWT->CYCCNT;
+
+ // Delay required time.
+ while ((DWT->CYCCNT - cyccnt_initial) < time_cycles)
+ {}
+
+ // Restore preserved registers.
+ DWT->CTRL = dwt_ctrl;
+ CoreDebug->DEMCR = core_debug;
+}
+#else // NRFX_CHECK(NRFX_DELAY_DWT_BASED)
+
+
+__STATIC_INLINE void nrfx_coredep_delay_us(uint32_t time_us)
+{
+ if (time_us == 0)
+ {
+ return;
+ }
+
+ #if defined(NRF51)
+ // The loop takes 4 cycles: 1 for SUBS and 3 for BHI.
+ static const uint16_t delay_bytecode[] = {
+ 0x3804, // SUBS r0, #4
+ 0xd8fd, // BHI .-2
+ 0x4770 // BX LR
+ };
+ #elif defined(NRF52810_XXAA)
+ // The loop takes 7 cycles: 1 for SUBS and 2 for BHI and 2 for flash wait states.
+ static const uint16_t delay_bytecode[] = {
+ 0x3807, // SUBS r0, #7
+ 0xd8fd, // BHI .-2
+ 0x4770 // BX LR
+ };
+ #elif defined(NRF52832_XXAA) || defined (NRF52832_XXAB) || defined(NRF52840_XXAA)
+ // The loop takes 3 cycles: 1 for SUBS and 2 for BHI.
+ // Make sure that code will be cached properly, so that no extra wait states appear.
+ __ALIGN(16)
+ static const uint16_t delay_bytecode[] = {
+ 0x3803, // SUBS r0, #3
+ 0xd8fd, // BHI .-2
+ 0x4770 // BX LR
+ };
+ #endif
+
+ typedef void (* delay_func_t)(uint32_t);
+ // Set LSB to 1 to execute code in Thumb mode.
+ const delay_func_t delay_cycles = (delay_func_t)((((uint32_t)delay_bytecode) | 1));
+ uint32_t cycles = time_us * NRFX_DELAY_CPU_FREQ_MHZ;
+ delay_cycles(cycles);
+}
+
+#endif // !NRFX_CHECK(NRFX_DELAY_DWT_BASED_DELAY)
+
+#endif // SUPPRESS_INLINE_IMPLEMENTATION
+
+#endif // NRFX_COREDEP_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs.h
new file mode 100644
index 0000000..60fd4a2
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs.h
@@ -0,0 +1,56 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_IRQS_H__
+#define NRFX_IRQS_H__
+
+#if defined(NRF51)
+ #include <soc/nrfx_irqs_nrf51.h>
+#elif defined(NRF52810_XXAA)
+ #include <soc/nrfx_irqs_nrf52810.h>
+#elif defined(NRF52832_XXAA) || defined (NRF52832_XXAB)
+ #include <soc/nrfx_irqs_nrf52832.h>
+#elif defined(NRF52840_XXAA)
+ #include <soc/nrfx_irqs_nrf52840.h>
+#else
+ #error "Unknown device."
+#endif
+
+#endif // NRFX_IRQS_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf51.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf51.h
new file mode 100644
index 0000000..0a20453
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf51.h
@@ -0,0 +1,136 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_IRQS_NRF51_H__
+#define NRFX_IRQS_NRF51_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+// POWER_CLOCK_IRQn
+#define nrfx_power_clock_irq_handler POWER_CLOCK_IRQHandler
+
+// RADIO_IRQn
+
+// UART0_IRQn
+#define nrfx_uart_0_irq_handler UART0_IRQHandler
+
+// SPI0_TWI0_IRQn
+#if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_0_ENABLED)
+#define nrfx_prs_box_0_irq_handler SPI0_TWI0_IRQHandler
+#else
+#define nrfx_spi_0_irq_handler SPI0_TWI0_IRQHandler
+#define nrfx_twi_0_irq_handler SPI0_TWI0_IRQHandler
+#endif
+
+// SPI1_TWI1_IRQn
+#if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_1_ENABLED)
+#define nrfx_prs_box_1_irq_handler SPI1_TWI1_IRQHandler
+#else
+#define nrfx_spi_1_irq_handler SPI1_TWI1_IRQHandler
+#define nrfx_spis_1_irq_handler SPI1_TWI1_IRQHandler
+#define nrfx_twi_1_irq_handler SPI1_TWI1_IRQHandler
+#endif
+
+// GPIOTE_IRQn
+#define nrfx_gpiote_irq_handler GPIOTE_IRQHandler
+
+// ADC_IRQn
+#define nrfx_adc_irq_handler ADC_IRQHandler
+
+// TIMER0_IRQn
+#define nrfx_timer_0_irq_handler TIMER0_IRQHandler
+
+// TIMER1_IRQn
+#define nrfx_timer_1_irq_handler TIMER1_IRQHandler
+
+// TIMER2_IRQn
+#define nrfx_timer_2_irq_handler TIMER2_IRQHandler
+
+// RTC0_IRQn
+#define nrfx_rtc_0_irq_handler RTC0_IRQHandler
+
+// TEMP_IRQn
+
+// RNG_IRQn
+#define nrfx_rng_irq_handler RNG_IRQHandler
+
+// ECB_IRQn
+
+// CCM_AAR_IRQn
+
+// WDT_IRQn
+#define nrfx_wdt_irq_handler WDT_IRQHandler
+
+// RTC1_IRQn
+#define nrfx_rtc_1_irq_handler RTC1_IRQHandler
+
+// QDEC_IRQn
+#define nrfx_qdec_irq_handler QDEC_IRQHandler
+
+// LPCOMP_IRQn
+#define nrfx_lpcomp_irq_handler LPCOMP_IRQHandler
+
+// SWI0_IRQn
+#define nrfx_swi_0_irq_handler SWI0_IRQHandler
+
+// SWI1_IRQn
+#define nrfx_swi_1_irq_handler SWI1_IRQHandler
+
+// SWI2_IRQn
+#define nrfx_swi_2_irq_handler SWI2_IRQHandler
+
+// SWI3_IRQn
+#define nrfx_swi_3_irq_handler SWI3_IRQHandler
+
+// SWI4_IRQn
+#define nrfx_swi_4_irq_handler SWI4_IRQHandler
+
+// SWI5_IRQn
+#define nrfx_swi_5_irq_handler SWI5_IRQHandler
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_IRQS_NRF51_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf52810.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf52810.h
new file mode 100644
index 0000000..7934854
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf52810.h
@@ -0,0 +1,141 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_IRQS_NRF52832_H__
+#define NRFX_IRQS_NRF52832_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+// POWER_CLOCK_IRQn
+#define nrfx_power_clock_irq_handler POWER_CLOCK_IRQHandler
+
+// RADIO_IRQn
+
+// UARTE0_IRQn
+#define nrfx_uarte_0_irq_handler UARTE0_IRQHandler
+
+// TWIM0_TWIS0_IRQn
+#if NRFX_CHECK(NRFX_PRS_BOX_0_ENABLED)
+#define nrfx_prs_box_0_irq_handler TWIM0_TWIS0_IRQHandler
+#else
+#define nrfx_twim_0_irq_handler TWIM0_TWIS0_IRQHandler
+#define nrfx_twis_0_irq_handler TWIM0_TWIS0_IRQHandler
+#endif
+
+// SPIM1_SPIS1_IRQn
+#if NRFX_CHECK(NRFX_PRS_BOX_1_ENABLED)
+#define nrfx_prs_box_1_irq_handler SPIM1_SPIS1_IRQHandler
+#else
+#define nrfx_spim_1_irq_handler SPIM1_SPIS1_IRQHandler
+#define nrfx_spis_1_irq_handler SPIM1_SPIS1_IRQHandler
+#endif
+
+// GPIOTE_IRQn
+#define nrfx_gpiote_irq_handler GPIOTE_IRQHandler
+
+// SAADC_IRQn
+#define nrfx_saadc_irq_handler SAADC_IRQHandler
+
+// TIMER0_IRQn
+#define nrfx_timer_0_irq_handler TIMER0_IRQHandler
+
+// TIMER1_IRQn
+#define nrfx_timer_1_irq_handler TIMER1_IRQHandler
+
+// TIMER2_IRQn
+#define nrfx_timer_2_irq_handler TIMER2_IRQHandler
+
+// RTC0_IRQn
+#define nrfx_rtc_0_irq_handler RTC0_IRQHandler
+
+// TEMP_IRQn
+
+// RNG_IRQn
+#define nrfx_rng_irq_handler RNG_IRQHandler
+
+// ECB_IRQn
+
+// CCM_AAR_IRQn
+
+// WDT_IRQn
+#define nrfx_wdt_irq_handler WDT_IRQHandler
+
+// RTC1_IRQn
+#define nrfx_rtc_1_irq_handler RTC1_IRQHandler
+
+// QDEC_IRQn
+#define nrfx_qdec_irq_handler QDEC_IRQHandler
+
+// COMP_IRQn
+#define nrfx_comp_irq_handler COMP_IRQHandler
+
+// SWI0_EGU0_IRQn
+#define nrfx_swi_0_irq_handler SWI0_EGU0_IRQHandler
+
+// SWI1_EGU1_IRQn
+#define nrfx_swi_1_irq_handler SWI1_EGU1_IRQHandler
+
+// SWI2_IRQn
+#define nrfx_swi_2_irq_handler SWI2_IRQHandler
+
+// SWI3_IRQn
+#define nrfx_swi_3_irq_handler SWI3_IRQHandler
+
+// SWI4_IRQn
+#define nrfx_swi_4_irq_handler SWI4_IRQHandler
+
+// SWI5_IRQn
+#define nrfx_swi_5_irq_handler SWI5_IRQHandler
+
+// PWM0_IRQn
+#define nrfx_pwm_0_irq_handler PWM0_IRQHandler
+
+// PDM_IRQn
+#define nrfx_pdm_irq_handler PDM_IRQHandler
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_IRQS_NRF52832_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf52832.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf52832.h
new file mode 100644
index 0000000..b947bdc
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf52832.h
@@ -0,0 +1,192 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_IRQS_NRF52832_H__
+#define NRFX_IRQS_NRF52832_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+// POWER_CLOCK_IRQn
+#define nrfx_power_clock_irq_handler POWER_CLOCK_IRQHandler
+
+// RADIO_IRQn
+
+// UARTE0_UART0_IRQn
+#if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_4_ENABLED)
+#define nrfx_prs_box_4_irq_handler UARTE0_UART0_IRQHandler
+#else
+#define nrfx_uarte_0_irq_handler UARTE0_UART0_IRQHandler
+#define nrfx_uart_0_irq_handler UARTE0_UART0_IRQHandler
+#endif
+
+// SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn
+#if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_0_ENABLED)
+#define nrfx_prs_box_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#else
+#define nrfx_spim_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#define nrfx_spis_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#define nrfx_twim_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#define nrfx_twis_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#define nrfx_spi_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#define nrfx_twi_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#endif
+
+// SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn
+#if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_1_ENABLED)
+#define nrfx_prs_box_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#else
+#define nrfx_spim_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#define nrfx_spis_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#define nrfx_twim_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#define nrfx_twis_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#define nrfx_spi_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#define nrfx_twi_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#endif
+
+// NFCT_IRQn
+
+// GPIOTE_IRQn
+#define nrfx_gpiote_irq_handler GPIOTE_IRQHandler
+
+// SAADC_IRQn
+#define nrfx_saadc_irq_handler SAADC_IRQHandler
+
+// TIMER0_IRQn
+#define nrfx_timer_0_irq_handler TIMER0_IRQHandler
+
+// TIMER1_IRQn
+#define nrfx_timer_1_irq_handler TIMER1_IRQHandler
+
+// TIMER2_IRQn
+#define nrfx_timer_2_irq_handler TIMER2_IRQHandler
+
+// RTC0_IRQn
+#define nrfx_rtc_0_irq_handler RTC0_IRQHandler
+
+// TEMP_IRQn
+
+// RNG_IRQn
+#define nrfx_rng_irq_handler RNG_IRQHandler
+
+// ECB_IRQn
+
+// CCM_AAR_IRQn
+
+// WDT_IRQn
+#define nrfx_wdt_irq_handler WDT_IRQHandler
+
+// RTC1_IRQn
+#define nrfx_rtc_1_irq_handler RTC1_IRQHandler
+
+// QDEC_IRQn
+#define nrfx_qdec_irq_handler QDEC_IRQHandler
+
+// COMP_LPCOMP_IRQn
+#if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_3_ENABLED)
+#define nrfx_prs_box_3_irq_handler COMP_LPCOMP_IRQHandler
+#else
+#define nrfx_comp_irq_handler COMP_LPCOMP_IRQHandler
+#define nrfx_lpcomp_irq_handler COMP_LPCOMP_IRQHandler
+#endif
+
+// SWI0_EGU0_IRQn
+#define nrfx_swi_0_irq_handler SWI0_EGU0_IRQHandler
+
+// SWI1_EGU1_IRQn
+#define nrfx_swi_1_irq_handler SWI1_EGU1_IRQHandler
+
+// SWI2_EGU2_IRQn
+#define nrfx_swi_2_irq_handler SWI2_EGU2_IRQHandler
+
+// SWI3_EGU3_IRQn
+#define nrfx_swi_3_irq_handler SWI3_EGU3_IRQHandler
+
+// SWI4_EGU4_IRQn
+#define nrfx_swi_4_irq_handler SWI4_EGU4_IRQHandler
+
+// SWI5_EGU5_IRQn
+#define nrfx_swi_5_irq_handler SWI5_EGU5_IRQHandler
+
+// TIMER3_IRQn
+#define nrfx_timer_3_irq_handler TIMER3_IRQHandler
+
+// TIMER4_IRQn
+#define nrfx_timer_4_irq_handler TIMER4_IRQHandler
+
+// PWM0_IRQn
+#define nrfx_pwm_0_irq_handler PWM0_IRQHandler
+
+// PDM_IRQn
+#define nrfx_pdm_irq_handler PDM_IRQHandler
+
+// MWU_IRQn
+
+// PWM1_IRQn
+#define nrfx_pwm_1_irq_handler PWM1_IRQHandler
+
+// PWM2_IRQn
+#define nrfx_pwm_2_irq_handler PWM2_IRQHandler
+
+// SPIM2_SPIS2_SPI2_IRQn
+#if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_2_ENABLED)
+#define nrfx_prs_box_2_irq_handler SPIM2_SPIS2_SPI2_IRQHandler
+#else
+#define nrfx_spim_2_irq_handler SPIM2_SPIS2_SPI2_IRQHandler
+#define nrfx_spis_2_irq_handler SPIM2_SPIS2_SPI2_IRQHandler
+#define nrfx_spi_2_irq_handler SPIM2_SPIS2_SPI2_IRQHandler
+#endif
+
+// RTC2_IRQn
+#define nrfx_rtc_2_irq_handler RTC2_IRQHandler
+
+// I2S_IRQn
+#define nrfx_i2s_irq_handler I2S_IRQHandler
+
+// FPU_IRQn
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_IRQS_NRF52832_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf52840.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf52840.h
new file mode 100644
index 0000000..ecb7e1d
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/soc/nrfx_irqs_nrf52840.h
@@ -0,0 +1,208 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_IRQS_NRF52840_H__
+#define NRFX_IRQS_NRF52840_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+// POWER_CLOCK_IRQn
+#define nrfx_power_clock_irq_handler POWER_CLOCK_IRQHandler
+
+// RADIO_IRQn
+
+// UARTE0_UART0_IRQn
+#if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_4_ENABLED)
+#define nrfx_prs_box_4_irq_handler UARTE0_UART0_IRQHandler
+#else
+#define nrfx_uarte_0_irq_handler UARTE0_UART0_IRQHandler
+#define nrfx_uart_0_irq_handler UARTE0_UART0_IRQHandler
+#endif
+
+// SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn
+#if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_0_ENABLED)
+#define nrfx_prs_box_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#else
+#define nrfx_spim_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#define nrfx_spis_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#define nrfx_twim_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#define nrfx_twis_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#define nrfx_spi_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#define nrfx_twi_0_irq_handler SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
+#endif
+
+// SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn
+#if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_1_ENABLED)
+#define nrfx_prs_box_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#else
+#define nrfx_spim_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#define nrfx_spis_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#define nrfx_twim_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#define nrfx_twis_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#define nrfx_spi_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#define nrfx_twi_1_irq_handler SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler
+#endif
+
+// NFCT_IRQn
+
+// GPIOTE_IRQn
+#define nrfx_gpiote_irq_handler GPIOTE_IRQHandler
+
+// SAADC_IRQn
+#define nrfx_saadc_irq_handler SAADC_IRQHandler
+
+// TIMER0_IRQn
+#define nrfx_timer_0_irq_handler TIMER0_IRQHandler
+
+// TIMER1_IRQn
+#define nrfx_timer_1_irq_handler TIMER1_IRQHandler
+
+// TIMER2_IRQn
+#define nrfx_timer_2_irq_handler TIMER2_IRQHandler
+
+// RTC0_IRQn
+#define nrfx_rtc_0_irq_handler RTC0_IRQHandler
+
+// TEMP_IRQn
+
+// RNG_IRQn
+#define nrfx_rng_irq_handler RNG_IRQHandler
+
+// ECB_IRQn
+
+// CCM_AAR_IRQn
+
+// WDT_IRQn
+#define nrfx_wdt_irq_handler WDT_IRQHandler
+
+// RTC1_IRQn
+#define nrfx_rtc_1_irq_handler RTC1_IRQHandler
+
+// QDEC_IRQn
+#define nrfx_qdec_irq_handler QDEC_IRQHandler
+
+// COMP_LPCOMP_IRQn
+#if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_3_ENABLED)
+#define nrfx_prs_box_3_irq_handler COMP_LPCOMP_IRQHandler
+#else
+#define nrfx_comp_irq_handler COMP_LPCOMP_IRQHandler
+#define nrfx_lpcomp_irq_handler COMP_LPCOMP_IRQHandler
+#endif
+
+// SWI0_EGU0_IRQn
+#define nrfx_swi_0_irq_handler SWI0_EGU0_IRQHandler
+
+// SWI1_EGU1_IRQn
+#define nrfx_swi_1_irq_handler SWI1_EGU1_IRQHandler
+
+// SWI2_EGU2_IRQn
+#define nrfx_swi_2_irq_handler SWI2_EGU2_IRQHandler
+
+// SWI3_EGU3_IRQn
+#define nrfx_swi_3_irq_handler SWI3_EGU3_IRQHandler
+
+// SWI4_EGU4_IRQn
+#define nrfx_swi_4_irq_handler SWI4_EGU4_IRQHandler
+
+// SWI5_EGU5_IRQn
+#define nrfx_swi_5_irq_handler SWI5_EGU5_IRQHandler
+
+// TIMER3_IRQn
+#define nrfx_timer_3_irq_handler TIMER3_IRQHandler
+
+// TIMER4_IRQn
+#define nrfx_timer_4_irq_handler TIMER4_IRQHandler
+
+// PWM0_IRQn
+#define nrfx_pwm_0_irq_handler PWM0_IRQHandler
+
+// PDM_IRQn
+#define nrfx_pdm_irq_handler PDM_IRQHandler
+
+// MWU_IRQn
+
+// PWM1_IRQn
+#define nrfx_pwm_1_irq_handler PWM1_IRQHandler
+
+// PWM2_IRQn
+#define nrfx_pwm_2_irq_handler PWM2_IRQHandler
+
+// SPIM2_SPIS2_SPI2_IRQn
+#if NRFX_CHECK(NRFX_PRS_ENABLED) && NRFX_CHECK(NRFX_PRS_BOX_2_ENABLED)
+#define nrfx_prs_box_2_irq_handler SPIM2_SPIS2_SPI2_IRQHandler
+#else
+#define nrfx_spim_2_irq_handler SPIM2_SPIS2_SPI2_IRQHandler
+#define nrfx_spis_2_irq_handler SPIM2_SPIS2_SPI2_IRQHandler
+#define nrfx_spi_2_irq_handler SPIM2_SPIS2_SPI2_IRQHandler
+#endif
+
+// RTC2_IRQn
+#define nrfx_rtc_2_irq_handler RTC2_IRQHandler
+
+// I2S_IRQn
+#define nrfx_i2s_irq_handler I2S_IRQHandler
+
+// FPU_IRQn
+
+// USBD_IRQn
+
+// UARTE1_IRQn
+#define nrfx_uarte_1_irq_handler UARTE1_IRQHandler
+
+// QSPI_IRQn
+#define nrfx_qspi_irq_handler QSPI_IRQHandler
+
+// CRYPTOCELL_IRQn
+
+// PWM3_IRQn
+#define nrfx_pwm_3_irq_handler PWM3_IRQHandler
+
+// SPIM3_IRQn
+#define nrfx_spim_3_irq_handler SPIM3_IRQHandler
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_IRQS_NRF52840_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF51/nrfx_config.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF51/nrfx_config.h
new file mode 100644
index 0000000..1d2b6ce
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF51/nrfx_config.h
@@ -0,0 +1,1563 @@
+#ifndef NRFX_CONFIG_H__
+#define NRFX_CONFIG_H__
+
+// <<< Use Configuration Wizard in Context Menu >>>\n
+
+// <h> nRF_Drivers
+
+// <e> NRFX_ADC_ENABLED - nrfx_adc - ADC peripheral driver
+//==========================================================
+#ifndef NRFX_ADC_ENABLED
+#define NRFX_ADC_ENABLED 1
+#endif
+// <o> NRFX_ADC_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_ADC_CONFIG_IRQ_PRIORITY
+#define NRFX_ADC_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <e> NRFX_ADC_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_ADC_CONFIG_LOG_ENABLED
+#define NRFX_ADC_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_ADC_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_ADC_CONFIG_LOG_LEVEL
+#define NRFX_ADC_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_ADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_ADC_CONFIG_INFO_COLOR
+#define NRFX_ADC_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_ADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_ADC_CONFIG_DEBUG_COLOR
+#define NRFX_ADC_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
+//==========================================================
+#ifndef NRFX_CLOCK_ENABLED
+#define NRFX_CLOCK_ENABLED 1
+#endif
+// <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source
+
+// <0=> RC
+// <1=> XTAL
+// <2=> Synth
+
+#ifndef NRFX_CLOCK_CONFIG_LF_SRC
+#define NRFX_CLOCK_CONFIG_LF_SRC 1
+#endif
+
+// <o> NRFX_CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_CLOCK_CONFIG_IRQ_PRIORITY
+#define NRFX_CLOCK_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <e> NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED
+#define NRFX_CLOCK_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_CLOCK_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL
+#define NRFX_CLOCK_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_CLOCK_CONFIG_INFO_COLOR
+#define NRFX_CLOCK_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR
+#define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
+//==========================================================
+#ifndef NRFX_GPIOTE_ENABLED
+#define NRFX_GPIOTE_ENABLED 1
+#endif
+// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
+#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
+#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
+#endif
+
+// <o> NRFX_GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_GPIOTE_CONFIG_IRQ_PRIORITY
+#define NRFX_GPIOTE_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <e> NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED
+#define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL
+#define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR
+#define NRFX_GPIOTE_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR
+#define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_LPCOMP_ENABLED - nrfx_lpcomp - LPCOMP peripheral driver
+//==========================================================
+#ifndef NRFX_LPCOMP_ENABLED
+#define NRFX_LPCOMP_ENABLED 1
+#endif
+// <o> NRFX_LPCOMP_CONFIG_REFERENCE - Reference voltage
+
+// <0=> Supply 1/8
+// <1=> Supply 2/8
+// <2=> Supply 3/8
+// <3=> Supply 4/8
+// <4=> Supply 5/8
+// <5=> Supply 6/8
+// <6=> Supply 7/8
+// <8=> Supply 1/16 (nRF52)
+// <9=> Supply 3/16 (nRF52)
+// <10=> Supply 5/16 (nRF52)
+// <11=> Supply 7/16 (nRF52)
+// <12=> Supply 9/16 (nRF52)
+// <13=> Supply 11/16 (nRF52)
+// <14=> Supply 13/16 (nRF52)
+// <15=> Supply 15/16 (nRF52)
+// <7=> External Ref 0
+// <65543=> External Ref 1
+
+#ifndef NRFX_LPCOMP_CONFIG_REFERENCE
+#define NRFX_LPCOMP_CONFIG_REFERENCE 3
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_DETECTION - Detection
+
+// <0=> Crossing
+// <1=> Up
+// <2=> Down
+
+#ifndef NRFX_LPCOMP_CONFIG_DETECTION
+#define NRFX_LPCOMP_CONFIG_DETECTION 2
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_INPUT - Analog input
+
+// <0=> 0
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_LPCOMP_CONFIG_INPUT
+#define NRFX_LPCOMP_CONFIG_INPUT 0
+#endif
+
+// <q> NRFX_LPCOMP_CONFIG_HYST - Hysteresis
+
+
+#ifndef NRFX_LPCOMP_CONFIG_HYST
+#define NRFX_LPCOMP_CONFIG_HYST 0
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_LPCOMP_CONFIG_IRQ_PRIORITY
+#define NRFX_LPCOMP_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <e> NRFX_LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED
+#define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_LPCOMP_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL
+#define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_LPCOMP_CONFIG_INFO_COLOR
+#define NRFX_LPCOMP_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_LPCOMP_CONFIG_DEBUG_COLOR
+#define NRFX_LPCOMP_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver
+//==========================================================
+#ifndef NRFX_POWER_ENABLED
+#define NRFX_POWER_ENABLED 1
+#endif
+// <o> NRFX_POWER_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_POWER_CONFIG_IRQ_PRIORITY
+#define NRFX_POWER_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator
+
+
+// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
+
+#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCEN
+#define NRFX_POWER_CONFIG_DEFAULT_DCDCEN 0
+#endif
+
+// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator
+
+
+// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
+
+#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCENHV
+#define NRFX_POWER_CONFIG_DEFAULT_DCDCENHV 0
+#endif
+
+// </e>
+
+// <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator
+//==========================================================
+#ifndef NRFX_PPI_ENABLED
+#define NRFX_PPI_ENABLED 1
+#endif
+// <e> NRFX_PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PPI_CONFIG_LOG_ENABLED
+#define NRFX_PPI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PPI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PPI_CONFIG_LOG_LEVEL
+#define NRFX_PPI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PPI_CONFIG_INFO_COLOR
+#define NRFX_PPI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PPI_CONFIG_DEBUG_COLOR
+#define NRFX_PPI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing module
+//==========================================================
+#ifndef NRFX_PRS_ENABLED
+#define NRFX_PRS_ENABLED 1
+#endif
+// <q> NRFX_PRS_BOX_0_ENABLED - Enables box 0 in the module.
+
+
+#ifndef NRFX_PRS_BOX_0_ENABLED
+#define NRFX_PRS_BOX_0_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_1_ENABLED - Enables box 1 in the module.
+
+
+#ifndef NRFX_PRS_BOX_1_ENABLED
+#define NRFX_PRS_BOX_1_ENABLED 1
+#endif
+
+// <e> NRFX_PRS_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PRS_CONFIG_LOG_ENABLED
+#define NRFX_PRS_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PRS_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PRS_CONFIG_LOG_LEVEL
+#define NRFX_PRS_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PRS_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PRS_CONFIG_INFO_COLOR
+#define NRFX_PRS_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PRS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PRS_CONFIG_DEBUG_COLOR
+#define NRFX_PRS_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
+//==========================================================
+#ifndef NRFX_QDEC_ENABLED
+#define NRFX_QDEC_ENABLED 1
+#endif
+// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
+
+// <0=> 10 Samples
+// <1=> 40 Samples
+// <2=> 80 Samples
+// <3=> 120 Samples
+// <4=> 160 Samples
+// <5=> 200 Samples
+// <6=> 240 Samples
+// <7=> 280 Samples
+
+#ifndef NRFX_QDEC_CONFIG_REPORTPER
+#define NRFX_QDEC_CONFIG_REPORTPER 0
+#endif
+
+// <o> NRFX_QDEC_CONFIG_SAMPLEPER - Sample period
+
+// <0=> 128 us
+// <1=> 256 us
+// <2=> 512 us
+// <3=> 1024 us
+// <4=> 2048 us
+// <5=> 4096 us
+// <6=> 8192 us
+// <7=> 16384 us
+
+#ifndef NRFX_QDEC_CONFIG_SAMPLEPER
+#define NRFX_QDEC_CONFIG_SAMPLEPER 7
+#endif
+
+// <o> NRFX_QDEC_CONFIG_PIO_A - A pin <0-31>
+
+
+#ifndef NRFX_QDEC_CONFIG_PIO_A
+#define NRFX_QDEC_CONFIG_PIO_A 31
+#endif
+
+// <o> NRFX_QDEC_CONFIG_PIO_B - B pin <0-31>
+
+
+#ifndef NRFX_QDEC_CONFIG_PIO_B
+#define NRFX_QDEC_CONFIG_PIO_B 31
+#endif
+
+// <o> NRFX_QDEC_CONFIG_PIO_LED - LED pin <0-31>
+
+
+#ifndef NRFX_QDEC_CONFIG_PIO_LED
+#define NRFX_QDEC_CONFIG_PIO_LED 31
+#endif
+
+// <o> NRFX_QDEC_CONFIG_LEDPRE - LED pre
+#ifndef NRFX_QDEC_CONFIG_LEDPRE
+#define NRFX_QDEC_CONFIG_LEDPRE 511
+#endif
+
+// <o> NRFX_QDEC_CONFIG_LEDPOL - LED polarity
+
+// <0=> Active low
+// <1=> Active high
+
+#ifndef NRFX_QDEC_CONFIG_LEDPOL
+#define NRFX_QDEC_CONFIG_LEDPOL 1
+#endif
+
+// <q> NRFX_QDEC_CONFIG_DBFEN - Debouncing enable
+
+
+#ifndef NRFX_QDEC_CONFIG_DBFEN
+#define NRFX_QDEC_CONFIG_DBFEN 0
+#endif
+
+// <q> NRFX_QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable
+
+
+#ifndef NRFX_QDEC_CONFIG_SAMPLE_INTEN
+#define NRFX_QDEC_CONFIG_SAMPLE_INTEN 0
+#endif
+
+// <o> NRFX_QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_QDEC_CONFIG_IRQ_PRIORITY
+#define NRFX_QDEC_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <e> NRFX_QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_QDEC_CONFIG_LOG_ENABLED
+#define NRFX_QDEC_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_QDEC_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_QDEC_CONFIG_LOG_LEVEL
+#define NRFX_QDEC_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_QDEC_CONFIG_INFO_COLOR
+#define NRFX_QDEC_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_QDEC_CONFIG_DEBUG_COLOR
+#define NRFX_QDEC_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_RNG_ENABLED - nrfx_rng - RNG peripheral driver
+//==========================================================
+#ifndef NRFX_RNG_ENABLED
+#define NRFX_RNG_ENABLED 1
+#endif
+// <q> NRFX_RNG_CONFIG_ERROR_CORRECTION - Error correction
+
+
+#ifndef NRFX_RNG_CONFIG_ERROR_CORRECTION
+#define NRFX_RNG_CONFIG_ERROR_CORRECTION 1
+#endif
+
+// <o> NRFX_RNG_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_RNG_CONFIG_IRQ_PRIORITY
+#define NRFX_RNG_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <e> NRFX_RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_RNG_CONFIG_LOG_ENABLED
+#define NRFX_RNG_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_RNG_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_RNG_CONFIG_LOG_LEVEL
+#define NRFX_RNG_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RNG_CONFIG_INFO_COLOR
+#define NRFX_RNG_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RNG_CONFIG_DEBUG_COLOR
+#define NRFX_RNG_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver
+//==========================================================
+#ifndef NRFX_RTC_ENABLED
+#define NRFX_RTC_ENABLED 1
+#endif
+// <q> NRFX_RTC0_ENABLED - Enable RTC0 instance
+
+
+#ifndef NRFX_RTC0_ENABLED
+#define NRFX_RTC0_ENABLED 1
+#endif
+
+// <q> NRFX_RTC1_ENABLED - Enable RTC1 instance
+
+
+#ifndef NRFX_RTC1_ENABLED
+#define NRFX_RTC1_ENABLED 1
+#endif
+
+// <o> NRFX_RTC_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt
+#ifndef NRFX_RTC_MAXIMUM_LATENCY_US
+#define NRFX_RTC_MAXIMUM_LATENCY_US 2000
+#endif
+
+// <o> NRFX_RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768>
+
+
+#ifndef NRFX_RTC_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_RTC_DEFAULT_CONFIG_FREQUENCY 32768
+#endif
+
+// <q> NRFX_RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering
+
+
+#ifndef NRFX_RTC_DEFAULT_CONFIG_RELIABLE
+#define NRFX_RTC_DEFAULT_CONFIG_RELIABLE 0
+#endif
+
+// <o> NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <e> NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_RTC_CONFIG_LOG_ENABLED
+#define NRFX_RTC_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_RTC_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_RTC_CONFIG_LOG_LEVEL
+#define NRFX_RTC_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RTC_CONFIG_INFO_COLOR
+#define NRFX_RTC_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RTC_CONFIG_DEBUG_COLOR
+#define NRFX_RTC_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver
+//==========================================================
+#ifndef NRFX_SPIS_ENABLED
+#define NRFX_SPIS_ENABLED 1
+#endif
+// <q> NRFX_SPIS1_ENABLED - Enable SPIS1 instance
+
+
+#ifndef NRFX_SPIS1_ENABLED
+#define NRFX_SPIS1_ENABLED 1
+#endif
+
+// <o> NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <o> NRFX_SPIS_DEFAULT_DEF - SPIS default DEF character <0-255>
+
+
+#ifndef NRFX_SPIS_DEFAULT_DEF
+#define NRFX_SPIS_DEFAULT_DEF 255
+#endif
+
+// <o> NRFX_SPIS_DEFAULT_ORC - SPIS default ORC character <0-255>
+
+
+#ifndef NRFX_SPIS_DEFAULT_ORC
+#define NRFX_SPIS_DEFAULT_ORC 255
+#endif
+
+// <e> NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SPIS_CONFIG_LOG_ENABLED
+#define NRFX_SPIS_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SPIS_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SPIS_CONFIG_LOG_LEVEL
+#define NRFX_SPIS_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIS_CONFIG_INFO_COLOR
+#define NRFX_SPIS_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR
+#define NRFX_SPIS_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SPI_ENABLED - nrfx_spi - SPI peripheral driver
+//==========================================================
+#ifndef NRFX_SPI_ENABLED
+#define NRFX_SPI_ENABLED 1
+#endif
+// <q> NRFX_SPI0_ENABLED - Enable SPI0 instance
+
+
+#ifndef NRFX_SPI0_ENABLED
+#define NRFX_SPI0_ENABLED 1
+#endif
+
+// <q> NRFX_SPI1_ENABLED - Enable SPI1 instance
+
+
+#ifndef NRFX_SPI1_ENABLED
+#define NRFX_SPI1_ENABLED 1
+#endif
+
+// <o> NRFX_SPI_MISO_PULL_CFG - MISO pin pull configuration.
+
+// <0=> NRF_GPIO_PIN_NOPULL
+// <1=> NRF_GPIO_PIN_PULLDOWN
+// <3=> NRF_GPIO_PIN_PULLUP
+
+#ifndef NRFX_SPI_MISO_PULL_CFG
+#define NRFX_SPI_MISO_PULL_CFG 1
+#endif
+
+// <o> NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <e> NRFX_SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SPI_CONFIG_LOG_ENABLED
+#define NRFX_SPI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SPI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SPI_CONFIG_LOG_LEVEL
+#define NRFX_SPI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPI_CONFIG_INFO_COLOR
+#define NRFX_SPI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPI_CONFIG_DEBUG_COLOR
+#define NRFX_SPI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SWI_ENABLED - nrfx_swi - SWI/EGU peripheral allocator
+//==========================================================
+#ifndef NRFX_SWI_ENABLED
+#define NRFX_SWI_ENABLED 1
+#endif
+// <q> NRFX_SWI0_DISABLED - Exclude SWI0 from being utilized by the driver
+
+
+#ifndef NRFX_SWI0_DISABLED
+#define NRFX_SWI0_DISABLED 0
+#endif
+
+// <q> NRFX_SWI1_DISABLED - Exclude SWI1 from being utilized by the driver
+
+
+#ifndef NRFX_SWI1_DISABLED
+#define NRFX_SWI1_DISABLED 0
+#endif
+
+// <q> NRFX_SWI2_DISABLED - Exclude SWI2 from being utilized by the driver
+
+
+#ifndef NRFX_SWI2_DISABLED
+#define NRFX_SWI2_DISABLED 0
+#endif
+
+// <q> NRFX_SWI3_DISABLED - Exclude SWI3 from being utilized by the driver
+
+
+#ifndef NRFX_SWI3_DISABLED
+#define NRFX_SWI3_DISABLED 0
+#endif
+
+// <q> NRFX_SWI4_DISABLED - Exclude SWI4 from being utilized by the driver
+
+
+#ifndef NRFX_SWI4_DISABLED
+#define NRFX_SWI4_DISABLED 0
+#endif
+
+// <q> NRFX_SWI5_DISABLED - Exclude SWI5 from being utilized by the driver
+
+
+#ifndef NRFX_SWI5_DISABLED
+#define NRFX_SWI5_DISABLED 0
+#endif
+
+// <e> NRFX_SWI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SWI_CONFIG_LOG_ENABLED
+#define NRFX_SWI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SWI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SWI_CONFIG_LOG_LEVEL
+#define NRFX_SWI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SWI_CONFIG_INFO_COLOR
+#define NRFX_SWI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SWI_CONFIG_DEBUG_COLOR
+#define NRFX_SWI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
+//==========================================================
+#ifndef NRFX_TIMER_ENABLED
+#define NRFX_TIMER_ENABLED 1
+#endif
+// <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance
+
+
+#ifndef NRFX_TIMER0_ENABLED
+#define NRFX_TIMER0_ENABLED 1
+#endif
+
+// <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance
+
+
+#ifndef NRFX_TIMER1_ENABLED
+#define NRFX_TIMER1_ENABLED 1
+#endif
+
+// <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance
+
+
+#ifndef NRFX_TIMER2_ENABLED
+#define NRFX_TIMER2_ENABLED 1
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
+
+// <0=> 16 MHz
+// <1=> 8 MHz
+// <2=> 4 MHz
+// <3=> 2 MHz
+// <4=> 1 MHz
+// <5=> 500 kHz
+// <6=> 250 kHz
+// <7=> 125 kHz
+// <8=> 62.5 kHz
+// <9=> 31.25 kHz
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 0
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
+
+// <0=> Timer
+// <1=> Counter
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_MODE
+#define NRFX_TIMER_DEFAULT_CONFIG_MODE 0
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
+
+// <0=> 16 bit
+// <1=> 8 bit
+// <2=> 24 bit
+// <3=> 32 bit
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH
+#define NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TIMER_CONFIG_LOG_ENABLED
+#define NRFX_TIMER_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TIMER_CONFIG_LOG_LEVEL
+#define NRFX_TIMER_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TIMER_CONFIG_INFO_COLOR
+#define NRFX_TIMER_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR
+#define NRFX_TIMER_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_TWI_ENABLED - nrfx_twi - TWI peripheral driver
+//==========================================================
+#ifndef NRFX_TWI_ENABLED
+#define NRFX_TWI_ENABLED 1
+#endif
+// <q> NRFX_TWI0_ENABLED - Enable TWI0 instance
+
+
+#ifndef NRFX_TWI0_ENABLED
+#define NRFX_TWI0_ENABLED 1
+#endif
+
+// <q> NRFX_TWI1_ENABLED - Enable TWI1 instance
+
+
+#ifndef NRFX_TWI1_ENABLED
+#define NRFX_TWI1_ENABLED 1
+#endif
+
+// <o> NRFX_TWI_DEFAULT_CONFIG_FREQUENCY - Frequency
+
+// <26738688=> 100k
+// <67108864=> 250k
+// <104857600=> 400k
+
+#ifndef NRFX_TWI_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 26738688
+#endif
+
+// <q> NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
+
+
+#ifndef NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
+#define NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
+#endif
+
+// <o> NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <e> NRFX_TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TWI_CONFIG_LOG_ENABLED
+#define NRFX_TWI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TWI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TWI_CONFIG_LOG_LEVEL
+#define NRFX_TWI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWI_CONFIG_INFO_COLOR
+#define NRFX_TWI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWI_CONFIG_DEBUG_COLOR
+#define NRFX_TWI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver
+//==========================================================
+#ifndef NRFX_UART_ENABLED
+#define NRFX_UART_ENABLED 1
+#endif
+// <o> NRFX_UART0_ENABLED - Enable UART0 instance
+#ifndef NRFX_UART0_ENABLED
+#define NRFX_UART0_ENABLED 1
+#endif
+
+// <o> NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
+
+// <0=> Disabled
+// <1=> Enabled
+
+#ifndef NRFX_UART_DEFAULT_CONFIG_HWFC
+#define NRFX_UART_DEFAULT_CONFIG_HWFC 0
+#endif
+
+// <o> NRFX_UART_DEFAULT_CONFIG_PARITY - Parity
+
+// <0=> Excluded
+// <14=> Included
+
+#ifndef NRFX_UART_DEFAULT_CONFIG_PARITY
+#define NRFX_UART_DEFAULT_CONFIG_PARITY 0
+#endif
+
+// <o> NRFX_UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
+
+// <323584=> 1200 baud
+// <643072=> 2400 baud
+// <1290240=> 4800 baud
+// <2576384=> 9600 baud
+// <3866624=> 14400 baud
+// <5152768=> 19200 baud
+// <7729152=> 28800 baud
+// <8388608=> 31250 baud
+// <10309632=> 38400 baud
+// <15007744=> 56000 baud
+// <15462400=> 57600 baud
+// <20615168=> 76800 baud
+// <30924800=> 115200 baud
+// <61845504=> 230400 baud
+// <67108864=> 250000 baud
+// <123695104=> 460800 baud
+// <247386112=> 921600 baud
+// <268435456=> 1000000 baud
+
+#ifndef NRFX_UART_DEFAULT_CONFIG_BAUDRATE
+#define NRFX_UART_DEFAULT_CONFIG_BAUDRATE 30924800
+#endif
+
+// <o> NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <e> NRFX_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_UART_CONFIG_LOG_ENABLED
+#define NRFX_UART_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_UART_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_UART_CONFIG_LOG_LEVEL
+#define NRFX_UART_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_UART_CONFIG_INFO_COLOR
+#define NRFX_UART_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_UART_CONFIG_DEBUG_COLOR
+#define NRFX_UART_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver
+//==========================================================
+#ifndef NRFX_WDT_ENABLED
+#define NRFX_WDT_ENABLED 1
+#endif
+// <o> NRFX_WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode
+
+// <1=> Run in SLEEP, Pause in HALT
+// <8=> Pause in SLEEP, Run in HALT
+// <9=> Run in SLEEP and HALT
+// <0=> Pause in SLEEP and HALT
+
+#ifndef NRFX_WDT_CONFIG_BEHAVIOUR
+#define NRFX_WDT_CONFIG_BEHAVIOUR 1
+#endif
+
+// <o> NRFX_WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295>
+
+
+#ifndef NRFX_WDT_CONFIG_RELOAD_VALUE
+#define NRFX_WDT_CONFIG_RELOAD_VALUE 2000
+#endif
+
+// <o> NRFX_WDT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+
+#ifndef NRFX_WDT_CONFIG_IRQ_PRIORITY
+#define NRFX_WDT_CONFIG_IRQ_PRIORITY 3
+#endif
+
+// <e> NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_WDT_CONFIG_LOG_ENABLED
+#define NRFX_WDT_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_WDT_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_WDT_CONFIG_LOG_LEVEL
+#define NRFX_WDT_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_WDT_CONFIG_INFO_COLOR
+#define NRFX_WDT_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_WDT_CONFIG_DEBUG_COLOR
+#define NRFX_WDT_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// </h>
+
+#endif // NRFX_CONFIG_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF52810/nrfx_config.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF52810/nrfx_config.h
new file mode 100644
index 0000000..b2f39c9
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF52810/nrfx_config.h
@@ -0,0 +1,2070 @@
+#ifndef NRFX_CONFIG_H__
+#define NRFX_CONFIG_H__
+
+// <<< Use Configuration Wizard in Context Menu >>>\n
+
+// <h> nRF_Drivers
+
+// <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
+//==========================================================
+#ifndef NRFX_CLOCK_ENABLED
+#define NRFX_CLOCK_ENABLED 1
+#endif
+// <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source
+
+// <0=> RC
+// <1=> XTAL
+// <2=> Synth
+
+#ifndef NRFX_CLOCK_CONFIG_LF_SRC
+#define NRFX_CLOCK_CONFIG_LF_SRC 1
+#endif
+
+// <o> NRFX_CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_CLOCK_CONFIG_IRQ_PRIORITY
+#define NRFX_CLOCK_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED
+#define NRFX_CLOCK_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_CLOCK_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL
+#define NRFX_CLOCK_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_CLOCK_CONFIG_INFO_COLOR
+#define NRFX_CLOCK_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR
+#define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_COMP_ENABLED - nrfx_comp - COMP peripheral driver
+//==========================================================
+#ifndef NRFX_COMP_ENABLED
+#define NRFX_COMP_ENABLED 1
+#endif
+// <o> NRFX_COMP_CONFIG_REF - Reference voltage
+
+// <0=> Internal 1.2V
+// <1=> Internal 1.8V
+// <2=> Internal 2.4V
+// <4=> VDD
+// <7=> ARef
+
+#ifndef NRFX_COMP_CONFIG_REF
+#define NRFX_COMP_CONFIG_REF 1
+#endif
+
+// <o> NRFX_COMP_CONFIG_MAIN_MODE - Main mode
+
+// <0=> Single ended
+// <1=> Differential
+
+#ifndef NRFX_COMP_CONFIG_MAIN_MODE
+#define NRFX_COMP_CONFIG_MAIN_MODE 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_SPEED_MODE - Speed mode
+
+// <0=> Low power
+// <1=> Normal
+// <2=> High speed
+
+#ifndef NRFX_COMP_CONFIG_SPEED_MODE
+#define NRFX_COMP_CONFIG_SPEED_MODE 2
+#endif
+
+// <o> NRFX_COMP_CONFIG_HYST - Hystheresis
+
+// <0=> No
+// <1=> 50mV
+
+#ifndef NRFX_COMP_CONFIG_HYST
+#define NRFX_COMP_CONFIG_HYST 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_ISOURCE - Current Source
+
+// <0=> Off
+// <1=> 2.5 uA
+// <2=> 5 uA
+// <3=> 10 uA
+
+#ifndef NRFX_COMP_CONFIG_ISOURCE
+#define NRFX_COMP_CONFIG_ISOURCE 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_INPUT - Analog input
+
+// <0=> 0
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_COMP_CONFIG_INPUT
+#define NRFX_COMP_CONFIG_INPUT 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_COMP_CONFIG_IRQ_PRIORITY
+#define NRFX_COMP_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_COMP_CONFIG_LOG_ENABLED
+#define NRFX_COMP_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_COMP_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_COMP_CONFIG_LOG_LEVEL
+#define NRFX_COMP_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_COMP_CONFIG_INFO_COLOR
+#define NRFX_COMP_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_COMP_CONFIG_DEBUG_COLOR
+#define NRFX_COMP_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
+//==========================================================
+#ifndef NRFX_GPIOTE_ENABLED
+#define NRFX_GPIOTE_ENABLED 1
+#endif
+// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
+#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
+#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
+#endif
+
+// <o> NRFX_GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_GPIOTE_CONFIG_IRQ_PRIORITY
+#define NRFX_GPIOTE_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED
+#define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL
+#define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR
+#define NRFX_GPIOTE_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR
+#define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver
+//==========================================================
+#ifndef NRFX_PDM_ENABLED
+#define NRFX_PDM_ENABLED 1
+#endif
+// <o> NRFX_PDM_CONFIG_MODE - Mode
+
+// <0=> Stereo
+// <1=> Mono
+
+#ifndef NRFX_PDM_CONFIG_MODE
+#define NRFX_PDM_CONFIG_MODE 1
+#endif
+
+// <o> NRFX_PDM_CONFIG_EDGE - Edge
+
+// <0=> Left falling
+// <1=> Left rising
+
+#ifndef NRFX_PDM_CONFIG_EDGE
+#define NRFX_PDM_CONFIG_EDGE 0
+#endif
+
+// <o> NRFX_PDM_CONFIG_CLOCK_FREQ - Clock frequency
+
+// <134217728=> 1000k
+// <138412032=> 1032k (default)
+// <142606336=> 1067k
+
+#ifndef NRFX_PDM_CONFIG_CLOCK_FREQ
+#define NRFX_PDM_CONFIG_CLOCK_FREQ 138412032
+#endif
+
+// <o> NRFX_PDM_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_PDM_CONFIG_IRQ_PRIORITY
+#define NRFX_PDM_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PDM_CONFIG_LOG_ENABLED
+#define NRFX_PDM_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PDM_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PDM_CONFIG_LOG_LEVEL
+#define NRFX_PDM_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PDM_CONFIG_INFO_COLOR
+#define NRFX_PDM_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PDM_CONFIG_DEBUG_COLOR
+#define NRFX_PDM_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver
+//==========================================================
+#ifndef NRFX_POWER_ENABLED
+#define NRFX_POWER_ENABLED 1
+#endif
+// <o> NRFX_POWER_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_POWER_CONFIG_IRQ_PRIORITY
+#define NRFX_POWER_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator
+
+
+// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
+
+#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCEN
+#define NRFX_POWER_CONFIG_DEFAULT_DCDCEN 0
+#endif
+
+// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator
+
+
+// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
+
+#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCENHV
+#define NRFX_POWER_CONFIG_DEFAULT_DCDCENHV 0
+#endif
+
+// </e>
+
+// <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator
+//==========================================================
+#ifndef NRFX_PPI_ENABLED
+#define NRFX_PPI_ENABLED 1
+#endif
+// <e> NRFX_PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PPI_CONFIG_LOG_ENABLED
+#define NRFX_PPI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PPI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PPI_CONFIG_LOG_LEVEL
+#define NRFX_PPI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PPI_CONFIG_INFO_COLOR
+#define NRFX_PPI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PPI_CONFIG_DEBUG_COLOR
+#define NRFX_PPI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing module
+//==========================================================
+#ifndef NRFX_PRS_ENABLED
+#define NRFX_PRS_ENABLED 1
+#endif
+// <q> NRFX_PRS_BOX_0_ENABLED - Enables box 0 in the module.
+
+
+#ifndef NRFX_PRS_BOX_0_ENABLED
+#define NRFX_PRS_BOX_0_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_1_ENABLED - Enables box 1 in the module.
+
+
+#ifndef NRFX_PRS_BOX_1_ENABLED
+#define NRFX_PRS_BOX_1_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_2_ENABLED - Enables box 2 in the module.
+
+
+#ifndef NRFX_PRS_BOX_2_ENABLED
+#define NRFX_PRS_BOX_2_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_3_ENABLED - Enables box 3 in the module.
+
+
+#ifndef NRFX_PRS_BOX_3_ENABLED
+#define NRFX_PRS_BOX_3_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_4_ENABLED - Enables box 4 in the module.
+
+
+#ifndef NRFX_PRS_BOX_4_ENABLED
+#define NRFX_PRS_BOX_4_ENABLED 1
+#endif
+
+// <e> NRFX_PRS_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PRS_CONFIG_LOG_ENABLED
+#define NRFX_PRS_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PRS_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PRS_CONFIG_LOG_LEVEL
+#define NRFX_PRS_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PRS_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PRS_CONFIG_INFO_COLOR
+#define NRFX_PRS_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PRS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PRS_CONFIG_DEBUG_COLOR
+#define NRFX_PRS_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver
+//==========================================================
+#ifndef NRFX_PWM_ENABLED
+#define NRFX_PWM_ENABLED 1
+#endif
+// <q> NRFX_PWM0_ENABLED - Enable PWM0 instance
+
+
+#ifndef NRFX_PWM0_ENABLED
+#define NRFX_PWM0_ENABLED 1
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31>
+
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN
+#define NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN 31
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31>
+
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN
+#define NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN 31
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31>
+
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN
+#define NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN 31
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31>
+
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN
+#define NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN 31
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock
+
+// <0=> 16 MHz
+// <1=> 8 MHz
+// <2=> 4 MHz
+// <3=> 2 MHz
+// <4=> 1 MHz
+// <5=> 500 kHz
+// <6=> 250 kHz
+// <7=> 125 kHz
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK
+#define NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK 4
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode
+
+// <0=> Up
+// <1=> Up and Down
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE
+#define NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE 0
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE - Top value
+#ifndef NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE
+#define NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE 1000
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode
+
+// <0=> Common
+// <1=> Grouped
+// <2=> Individual
+// <3=> Waveform
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE
+#define NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE 0
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_STEP_MODE - Step mode
+
+// <0=> Auto
+// <1=> Triggered
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_STEP_MODE
+#define NRFX_PWM_DEFAULT_CONFIG_STEP_MODE 0
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PWM_CONFIG_LOG_ENABLED
+#define NRFX_PWM_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PWM_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PWM_CONFIG_LOG_LEVEL
+#define NRFX_PWM_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PWM_CONFIG_INFO_COLOR
+#define NRFX_PWM_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PWM_CONFIG_DEBUG_COLOR
+#define NRFX_PWM_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
+//==========================================================
+#ifndef NRFX_QDEC_ENABLED
+#define NRFX_QDEC_ENABLED 1
+#endif
+// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
+
+// <0=> 10 Samples
+// <1=> 40 Samples
+// <2=> 80 Samples
+// <3=> 120 Samples
+// <4=> 160 Samples
+// <5=> 200 Samples
+// <6=> 240 Samples
+// <7=> 280 Samples
+
+#ifndef NRFX_QDEC_CONFIG_REPORTPER
+#define NRFX_QDEC_CONFIG_REPORTPER 0
+#endif
+
+// <o> NRFX_QDEC_CONFIG_SAMPLEPER - Sample period
+
+// <0=> 128 us
+// <1=> 256 us
+// <2=> 512 us
+// <3=> 1024 us
+// <4=> 2048 us
+// <5=> 4096 us
+// <6=> 8192 us
+// <7=> 16384 us
+
+#ifndef NRFX_QDEC_CONFIG_SAMPLEPER
+#define NRFX_QDEC_CONFIG_SAMPLEPER 7
+#endif
+
+// <o> NRFX_QDEC_CONFIG_PIO_A - A pin <0-31>
+
+
+#ifndef NRFX_QDEC_CONFIG_PIO_A
+#define NRFX_QDEC_CONFIG_PIO_A 31
+#endif
+
+// <o> NRFX_QDEC_CONFIG_PIO_B - B pin <0-31>
+
+
+#ifndef NRFX_QDEC_CONFIG_PIO_B
+#define NRFX_QDEC_CONFIG_PIO_B 31
+#endif
+
+// <o> NRFX_QDEC_CONFIG_PIO_LED - LED pin <0-31>
+
+
+#ifndef NRFX_QDEC_CONFIG_PIO_LED
+#define NRFX_QDEC_CONFIG_PIO_LED 31
+#endif
+
+// <o> NRFX_QDEC_CONFIG_LEDPRE - LED pre
+#ifndef NRFX_QDEC_CONFIG_LEDPRE
+#define NRFX_QDEC_CONFIG_LEDPRE 511
+#endif
+
+// <o> NRFX_QDEC_CONFIG_LEDPOL - LED polarity
+
+// <0=> Active low
+// <1=> Active high
+
+#ifndef NRFX_QDEC_CONFIG_LEDPOL
+#define NRFX_QDEC_CONFIG_LEDPOL 1
+#endif
+
+// <q> NRFX_QDEC_CONFIG_DBFEN - Debouncing enable
+
+
+#ifndef NRFX_QDEC_CONFIG_DBFEN
+#define NRFX_QDEC_CONFIG_DBFEN 0
+#endif
+
+// <q> NRFX_QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable
+
+
+#ifndef NRFX_QDEC_CONFIG_SAMPLE_INTEN
+#define NRFX_QDEC_CONFIG_SAMPLE_INTEN 0
+#endif
+
+// <o> NRFX_QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_QDEC_CONFIG_IRQ_PRIORITY
+#define NRFX_QDEC_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_QDEC_CONFIG_LOG_ENABLED
+#define NRFX_QDEC_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_QDEC_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_QDEC_CONFIG_LOG_LEVEL
+#define NRFX_QDEC_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_QDEC_CONFIG_INFO_COLOR
+#define NRFX_QDEC_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_QDEC_CONFIG_DEBUG_COLOR
+#define NRFX_QDEC_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_RNG_ENABLED - nrfx_rng - RNG peripheral driver
+//==========================================================
+#ifndef NRFX_RNG_ENABLED
+#define NRFX_RNG_ENABLED 1
+#endif
+// <q> NRFX_RNG_CONFIG_ERROR_CORRECTION - Error correction
+
+
+#ifndef NRFX_RNG_CONFIG_ERROR_CORRECTION
+#define NRFX_RNG_CONFIG_ERROR_CORRECTION 1
+#endif
+
+// <o> NRFX_RNG_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_RNG_CONFIG_IRQ_PRIORITY
+#define NRFX_RNG_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_RNG_CONFIG_LOG_ENABLED
+#define NRFX_RNG_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_RNG_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_RNG_CONFIG_LOG_LEVEL
+#define NRFX_RNG_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RNG_CONFIG_INFO_COLOR
+#define NRFX_RNG_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RNG_CONFIG_DEBUG_COLOR
+#define NRFX_RNG_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver
+//==========================================================
+#ifndef NRFX_RTC_ENABLED
+#define NRFX_RTC_ENABLED 1
+#endif
+// <q> NRFX_RTC0_ENABLED - Enable RTC0 instance
+
+
+#ifndef NRFX_RTC0_ENABLED
+#define NRFX_RTC0_ENABLED 1
+#endif
+
+// <q> NRFX_RTC1_ENABLED - Enable RTC1 instance
+
+
+#ifndef NRFX_RTC1_ENABLED
+#define NRFX_RTC1_ENABLED 1
+#endif
+
+// <o> NRFX_RTC_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt
+#ifndef NRFX_RTC_MAXIMUM_LATENCY_US
+#define NRFX_RTC_MAXIMUM_LATENCY_US 2000
+#endif
+
+// <o> NRFX_RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768>
+
+
+#ifndef NRFX_RTC_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_RTC_DEFAULT_CONFIG_FREQUENCY 32768
+#endif
+
+// <q> NRFX_RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering
+
+
+#ifndef NRFX_RTC_DEFAULT_CONFIG_RELIABLE
+#define NRFX_RTC_DEFAULT_CONFIG_RELIABLE 0
+#endif
+
+// <o> NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_RTC_CONFIG_LOG_ENABLED
+#define NRFX_RTC_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_RTC_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_RTC_CONFIG_LOG_LEVEL
+#define NRFX_RTC_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RTC_CONFIG_INFO_COLOR
+#define NRFX_RTC_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RTC_CONFIG_DEBUG_COLOR
+#define NRFX_RTC_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver
+//==========================================================
+#ifndef NRFX_SAADC_ENABLED
+#define NRFX_SAADC_ENABLED 1
+#endif
+// <o> NRFX_SAADC_CONFIG_RESOLUTION - Resolution
+
+// <0=> 8 bit
+// <1=> 10 bit
+// <2=> 12 bit
+// <3=> 14 bit
+
+#ifndef NRFX_SAADC_CONFIG_RESOLUTION
+#define NRFX_SAADC_CONFIG_RESOLUTION 1
+#endif
+
+// <o> NRFX_SAADC_CONFIG_OVERSAMPLE - Sample period
+
+// <0=> Disabled
+// <1=> 2x
+// <2=> 4x
+// <3=> 8x
+// <4=> 16x
+// <5=> 32x
+// <6=> 64x
+// <7=> 128x
+// <8=> 256x
+
+#ifndef NRFX_SAADC_CONFIG_OVERSAMPLE
+#define NRFX_SAADC_CONFIG_OVERSAMPLE 0
+#endif
+
+// <q> NRFX_SAADC_CONFIG_LP_MODE - Enabling low power mode
+
+
+#ifndef NRFX_SAADC_CONFIG_LP_MODE
+#define NRFX_SAADC_CONFIG_LP_MODE 0
+#endif
+
+// <o> NRFX_SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_SAADC_CONFIG_IRQ_PRIORITY
+#define NRFX_SAADC_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SAADC_CONFIG_LOG_ENABLED
+#define NRFX_SAADC_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SAADC_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SAADC_CONFIG_LOG_LEVEL
+#define NRFX_SAADC_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SAADC_CONFIG_INFO_COLOR
+#define NRFX_SAADC_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SAADC_CONFIG_DEBUG_COLOR
+#define NRFX_SAADC_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver
+//==========================================================
+#ifndef NRFX_SPIM_ENABLED
+#define NRFX_SPIM_ENABLED 1
+#endif
+// <q> NRFX_SPIM0_ENABLED - Enable SPIM0 instance
+
+
+#ifndef NRFX_SPIM0_ENABLED
+#define NRFX_SPIM0_ENABLED 1
+#endif
+
+// <o> NRFX_SPIM_MISO_PULL_CFG - MISO pin pull configuration.
+
+// <0=> NRF_GPIO_PIN_NOPULL
+// <1=> NRF_GPIO_PIN_PULLDOWN
+// <3=> NRF_GPIO_PIN_PULLUP
+
+#ifndef NRFX_SPIM_MISO_PULL_CFG
+#define NRFX_SPIM_MISO_PULL_CFG 1
+#endif
+
+// <o> NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SPIM_CONFIG_LOG_ENABLED
+#define NRFX_SPIM_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SPIM_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SPIM_CONFIG_LOG_LEVEL
+#define NRFX_SPIM_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIM_CONFIG_INFO_COLOR
+#define NRFX_SPIM_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SPIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIM_CONFIG_DEBUG_COLOR
+#define NRFX_SPIM_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver
+//==========================================================
+#ifndef NRFX_SPIS_ENABLED
+#define NRFX_SPIS_ENABLED 1
+#endif
+// <q> NRFX_SPIS0_ENABLED - Enable SPIS0 instance
+
+
+#ifndef NRFX_SPIS0_ENABLED
+#define NRFX_SPIS0_ENABLED 1
+#endif
+
+// <o> NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <o> NRFX_SPIS_DEFAULT_DEF - SPIS default DEF character <0-255>
+
+
+#ifndef NRFX_SPIS_DEFAULT_DEF
+#define NRFX_SPIS_DEFAULT_DEF 255
+#endif
+
+// <o> NRFX_SPIS_DEFAULT_ORC - SPIS default ORC character <0-255>
+
+
+#ifndef NRFX_SPIS_DEFAULT_ORC
+#define NRFX_SPIS_DEFAULT_ORC 255
+#endif
+
+// <e> NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SPIS_CONFIG_LOG_ENABLED
+#define NRFX_SPIS_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SPIS_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SPIS_CONFIG_LOG_LEVEL
+#define NRFX_SPIS_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIS_CONFIG_INFO_COLOR
+#define NRFX_SPIS_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR
+#define NRFX_SPIS_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SWI_ENABLED - nrfx_swi - SWI/EGU peripheral allocator
+//==========================================================
+#ifndef NRFX_SWI_ENABLED
+#define NRFX_SWI_ENABLED 1
+#endif
+// <q> NRFX_EGU_ENABLED - Enable EGU support
+
+
+#ifndef NRFX_EGU_ENABLED
+#define NRFX_EGU_ENABLED 0
+#endif
+
+// <q> NRFX_SWI0_DISABLED - Exclude SWI0 from being utilized by the driver
+
+
+#ifndef NRFX_SWI0_DISABLED
+#define NRFX_SWI0_DISABLED 0
+#endif
+
+// <q> NRFX_SWI1_DISABLED - Exclude SWI1 from being utilized by the driver
+
+
+#ifndef NRFX_SWI1_DISABLED
+#define NRFX_SWI1_DISABLED 0
+#endif
+
+// <q> NRFX_SWI2_DISABLED - Exclude SWI2 from being utilized by the driver
+
+
+#ifndef NRFX_SWI2_DISABLED
+#define NRFX_SWI2_DISABLED 0
+#endif
+
+// <q> NRFX_SWI3_DISABLED - Exclude SWI3 from being utilized by the driver
+
+
+#ifndef NRFX_SWI3_DISABLED
+#define NRFX_SWI3_DISABLED 0
+#endif
+
+// <q> NRFX_SWI4_DISABLED - Exclude SWI4 from being utilized by the driver
+
+
+#ifndef NRFX_SWI4_DISABLED
+#define NRFX_SWI4_DISABLED 0
+#endif
+
+// <q> NRFX_SWI5_DISABLED - Exclude SWI5 from being utilized by the driver
+
+
+#ifndef NRFX_SWI5_DISABLED
+#define NRFX_SWI5_DISABLED 0
+#endif
+
+// <e> NRFX_SWI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SWI_CONFIG_LOG_ENABLED
+#define NRFX_SWI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SWI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SWI_CONFIG_LOG_LEVEL
+#define NRFX_SWI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SWI_CONFIG_INFO_COLOR
+#define NRFX_SWI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SWI_CONFIG_DEBUG_COLOR
+#define NRFX_SWI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <q> NRFX_SYSTICK_ENABLED - nrfx_systick - ARM(R) SysTick driver
+
+
+#ifndef NRFX_SYSTICK_ENABLED
+#define NRFX_SYSTICK_ENABLED 1
+#endif
+
+// <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
+//==========================================================
+#ifndef NRFX_TIMER_ENABLED
+#define NRFX_TIMER_ENABLED 1
+#endif
+// <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance
+
+
+#ifndef NRFX_TIMER0_ENABLED
+#define NRFX_TIMER0_ENABLED 1
+#endif
+
+// <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance
+
+
+#ifndef NRFX_TIMER1_ENABLED
+#define NRFX_TIMER1_ENABLED 1
+#endif
+
+// <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance
+
+
+#ifndef NRFX_TIMER2_ENABLED
+#define NRFX_TIMER2_ENABLED 1
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
+
+// <0=> 16 MHz
+// <1=> 8 MHz
+// <2=> 4 MHz
+// <3=> 2 MHz
+// <4=> 1 MHz
+// <5=> 500 kHz
+// <6=> 250 kHz
+// <7=> 125 kHz
+// <8=> 62.5 kHz
+// <9=> 31.25 kHz
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 0
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
+
+// <0=> Timer
+// <1=> Counter
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_MODE
+#define NRFX_TIMER_DEFAULT_CONFIG_MODE 0
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
+
+// <0=> 16 bit
+// <1=> 8 bit
+// <2=> 24 bit
+// <3=> 32 bit
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH
+#define NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TIMER_CONFIG_LOG_ENABLED
+#define NRFX_TIMER_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TIMER_CONFIG_LOG_LEVEL
+#define NRFX_TIMER_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TIMER_CONFIG_INFO_COLOR
+#define NRFX_TIMER_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR
+#define NRFX_TIMER_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver
+//==========================================================
+#ifndef NRFX_TWIM_ENABLED
+#define NRFX_TWIM_ENABLED 1
+#endif
+// <q> NRFX_TWIM0_ENABLED - Enable TWIM0 instance
+
+
+#ifndef NRFX_TWIM0_ENABLED
+#define NRFX_TWIM0_ENABLED 1
+#endif
+
+// <o> NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY - Frequency
+
+// <26738688=> 100k
+// <67108864=> 250k
+// <104857600=> 400k
+
+#ifndef NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688
+#endif
+
+// <q> NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
+
+
+#ifndef NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT
+#define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
+#endif
+
+// <o> NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TWIM_CONFIG_LOG_ENABLED
+#define NRFX_TWIM_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TWIM_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TWIM_CONFIG_LOG_LEVEL
+#define NRFX_TWIM_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TWIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWIM_CONFIG_INFO_COLOR
+#define NRFX_TWIM_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TWIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR
+#define NRFX_TWIM_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver
+//==========================================================
+#ifndef NRFX_TWIS_ENABLED
+#define NRFX_TWIS_ENABLED 1
+#endif
+// <q> NRFX_TWIS0_ENABLED - Enable TWIS0 instance
+
+
+#ifndef NRFX_TWIS0_ENABLED
+#define NRFX_TWIS0_ENABLED 1
+#endif
+
+// <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once
+
+
+// <i> Optimization flag. Registers used by TWIS are shared by other peripherals. Normally, during initialization driver tries to clear all registers to known state before doing the initialization itself. This gives initialization safe procedure, no matter when it would be called. If you activate TWIS only once and do never uninitialize it - set this flag to 1 what gives more optimal code.
+
+#ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY
+#define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
+#endif
+
+// <q> NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode
+
+
+// <i> Synchronous mode would be used in specific situations. And it uses some additional code and data memory to safely process state machine by polling it in status functions. If this functionality is not required it may be disabled to free some resources.
+
+#ifndef NRFX_TWIS_NO_SYNC_MODE
+#define NRFX_TWIS_NO_SYNC_MODE 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR0 - Address0
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR0
+#define NRFX_TWIS_DEFAULT_CONFIG_ADDR0 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR1 - Address1
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR1
+#define NRFX_TWIS_DEFAULT_CONFIG_ADDR1 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration
+
+// <0=> Disabled
+// <1=> Pull down
+// <3=> Pull up
+
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL
+#define NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration
+
+// <0=> Disabled
+// <1=> Pull down
+// <3=> Pull up
+
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL
+#define NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TWIS_CONFIG_LOG_ENABLED
+#define NRFX_TWIS_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TWIS_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TWIS_CONFIG_LOG_LEVEL
+#define NRFX_TWIS_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWIS_CONFIG_INFO_COLOR
+#define NRFX_TWIS_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWIS_CONFIG_DEBUG_COLOR
+#define NRFX_TWIS_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver
+//==========================================================
+#ifndef NRFX_UARTE_ENABLED
+#define NRFX_UARTE_ENABLED 1
+#endif
+// <o> NRFX_UARTE0_ENABLED - Enable UARTE0 instance
+#ifndef NRFX_UARTE0_ENABLED
+#define NRFX_UARTE0_ENABLED 1
+#endif
+
+// <o> NRFX_UARTE_DEFAULT_CONFIG_HWFC - Hardware Flow Control
+
+// <0=> Disabled
+// <1=> Enabled
+
+#ifndef NRFX_UARTE_DEFAULT_CONFIG_HWFC
+#define NRFX_UARTE_DEFAULT_CONFIG_HWFC 0
+#endif
+
+// <o> NRFX_UARTE_DEFAULT_CONFIG_PARITY - Parity
+
+// <0=> Excluded
+// <14=> Included
+
+#ifndef NRFX_UARTE_DEFAULT_CONFIG_PARITY
+#define NRFX_UARTE_DEFAULT_CONFIG_PARITY 0
+#endif
+
+// <o> NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
+
+// <323584=> 1200 baud
+// <643072=> 2400 baud
+// <1290240=> 4800 baud
+// <2576384=> 9600 baud
+// <3862528=> 14400 baud
+// <5152768=> 19200 baud
+// <7716864=> 28800 baud
+// <8388608=> 31250 baud
+// <10289152=> 38400 baud
+// <15007744=> 56000 baud
+// <15400960=> 57600 baud
+// <20615168=> 76800 baud
+// <30801920=> 115200 baud
+// <61865984=> 230400 baud
+// <67108864=> 250000 baud
+// <121634816=> 460800 baud
+// <251658240=> 921600 baud
+// <268435456=> 1000000 baud
+
+#ifndef NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE
+#define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 30801920
+#endif
+
+// <o> NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_UARTE_CONFIG_LOG_ENABLED
+#define NRFX_UARTE_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_UARTE_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_UARTE_CONFIG_LOG_LEVEL
+#define NRFX_UARTE_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_UARTE_CONFIG_INFO_COLOR
+#define NRFX_UARTE_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR
+#define NRFX_UARTE_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver
+//==========================================================
+#ifndef NRFX_WDT_ENABLED
+#define NRFX_WDT_ENABLED 1
+#endif
+// <o> NRFX_WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode
+
+// <1=> Run in SLEEP, Pause in HALT
+// <8=> Pause in SLEEP, Run in HALT
+// <9=> Run in SLEEP and HALT
+// <0=> Pause in SLEEP and HALT
+
+#ifndef NRFX_WDT_CONFIG_BEHAVIOUR
+#define NRFX_WDT_CONFIG_BEHAVIOUR 1
+#endif
+
+// <o> NRFX_WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295>
+
+
+#ifndef NRFX_WDT_CONFIG_RELOAD_VALUE
+#define NRFX_WDT_CONFIG_RELOAD_VALUE 2000
+#endif
+
+// <o> NRFX_WDT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_WDT_CONFIG_IRQ_PRIORITY
+#define NRFX_WDT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_WDT_CONFIG_LOG_ENABLED
+#define NRFX_WDT_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_WDT_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_WDT_CONFIG_LOG_LEVEL
+#define NRFX_WDT_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_WDT_CONFIG_INFO_COLOR
+#define NRFX_WDT_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_WDT_CONFIG_DEBUG_COLOR
+#define NRFX_WDT_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// </h>
+
+#endif // NRFX_CONFIG_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF52832/nrfx_config.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF52832/nrfx_config.h
new file mode 100644
index 0000000..20f3c16
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF52832/nrfx_config.h
@@ -0,0 +1,2869 @@
+#ifndef NRFX_CONFIG_H__
+#define NRFX_CONFIG_H__
+
+// <<< Use Configuration Wizard in Context Menu >>>\n
+
+// <h> nRF_Drivers
+
+// <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
+//==========================================================
+#ifndef NRFX_CLOCK_ENABLED
+#define NRFX_CLOCK_ENABLED 1
+#endif
+// <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source
+
+// <0=> RC
+// <1=> XTAL
+// <2=> Synth
+
+#ifndef NRFX_CLOCK_CONFIG_LF_SRC
+#define NRFX_CLOCK_CONFIG_LF_SRC 1
+#endif
+
+// <o> NRFX_CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_CLOCK_CONFIG_IRQ_PRIORITY
+#define NRFX_CLOCK_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED
+#define NRFX_CLOCK_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_CLOCK_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL
+#define NRFX_CLOCK_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_CLOCK_CONFIG_INFO_COLOR
+#define NRFX_CLOCK_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR
+#define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_COMP_ENABLED - nrfx_comp - COMP peripheral driver
+//==========================================================
+#ifndef NRFX_COMP_ENABLED
+#define NRFX_COMP_ENABLED 1
+#endif
+// <o> NRFX_COMP_CONFIG_REF - Reference voltage
+
+// <0=> Internal 1.2V
+// <1=> Internal 1.8V
+// <2=> Internal 2.4V
+// <4=> VDD
+// <7=> ARef
+
+#ifndef NRFX_COMP_CONFIG_REF
+#define NRFX_COMP_CONFIG_REF 1
+#endif
+
+// <o> NRFX_COMP_CONFIG_MAIN_MODE - Main mode
+
+// <0=> Single ended
+// <1=> Differential
+
+#ifndef NRFX_COMP_CONFIG_MAIN_MODE
+#define NRFX_COMP_CONFIG_MAIN_MODE 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_SPEED_MODE - Speed mode
+
+// <0=> Low power
+// <1=> Normal
+// <2=> High speed
+
+#ifndef NRFX_COMP_CONFIG_SPEED_MODE
+#define NRFX_COMP_CONFIG_SPEED_MODE 2
+#endif
+
+// <o> NRFX_COMP_CONFIG_HYST - Hystheresis
+
+// <0=> No
+// <1=> 50mV
+
+#ifndef NRFX_COMP_CONFIG_HYST
+#define NRFX_COMP_CONFIG_HYST 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_ISOURCE - Current Source
+
+// <0=> Off
+// <1=> 2.5 uA
+// <2=> 5 uA
+// <3=> 10 uA
+
+#ifndef NRFX_COMP_CONFIG_ISOURCE
+#define NRFX_COMP_CONFIG_ISOURCE 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_INPUT - Analog input
+
+// <0=> 0
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_COMP_CONFIG_INPUT
+#define NRFX_COMP_CONFIG_INPUT 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_COMP_CONFIG_IRQ_PRIORITY
+#define NRFX_COMP_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_COMP_CONFIG_LOG_ENABLED
+#define NRFX_COMP_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_COMP_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_COMP_CONFIG_LOG_LEVEL
+#define NRFX_COMP_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_COMP_CONFIG_INFO_COLOR
+#define NRFX_COMP_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_COMP_CONFIG_DEBUG_COLOR
+#define NRFX_COMP_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
+//==========================================================
+#ifndef NRFX_GPIOTE_ENABLED
+#define NRFX_GPIOTE_ENABLED 1
+#endif
+// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
+#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
+#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
+#endif
+
+// <o> NRFX_GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_GPIOTE_CONFIG_IRQ_PRIORITY
+#define NRFX_GPIOTE_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED
+#define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL
+#define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR
+#define NRFX_GPIOTE_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR
+#define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_I2S_ENABLED - nrfx_i2s - I2S peripheral driver
+//==========================================================
+#ifndef NRFX_I2S_ENABLED
+#define NRFX_I2S_ENABLED 1
+#endif
+// <o> NRFX_I2S_CONFIG_SCK_PIN - SCK pin <0-31>
+
+
+#ifndef NRFX_I2S_CONFIG_SCK_PIN
+#define NRFX_I2S_CONFIG_SCK_PIN 31
+#endif
+
+// <o> NRFX_I2S_CONFIG_LRCK_PIN - LRCK pin <1-31>
+
+
+#ifndef NRFX_I2S_CONFIG_LRCK_PIN
+#define NRFX_I2S_CONFIG_LRCK_PIN 30
+#endif
+
+// <o> NRFX_I2S_CONFIG_MCK_PIN - MCK pin
+#ifndef NRFX_I2S_CONFIG_MCK_PIN
+#define NRFX_I2S_CONFIG_MCK_PIN 255
+#endif
+
+// <o> NRFX_I2S_CONFIG_SDOUT_PIN - SDOUT pin <0-31>
+
+
+#ifndef NRFX_I2S_CONFIG_SDOUT_PIN
+#define NRFX_I2S_CONFIG_SDOUT_PIN 29
+#endif
+
+// <o> NRFX_I2S_CONFIG_SDIN_PIN - SDIN pin <0-31>
+
+
+#ifndef NRFX_I2S_CONFIG_SDIN_PIN
+#define NRFX_I2S_CONFIG_SDIN_PIN 28
+#endif
+
+// <o> NRFX_I2S_CONFIG_MASTER - Mode
+
+// <0=> Master
+// <1=> Slave
+
+#ifndef NRFX_I2S_CONFIG_MASTER
+#define NRFX_I2S_CONFIG_MASTER 0
+#endif
+
+// <o> NRFX_I2S_CONFIG_FORMAT - Format
+
+// <0=> I2S
+// <1=> Aligned
+
+#ifndef NRFX_I2S_CONFIG_FORMAT
+#define NRFX_I2S_CONFIG_FORMAT 0
+#endif
+
+// <o> NRFX_I2S_CONFIG_ALIGN - Alignment
+
+// <0=> Left
+// <1=> Right
+
+#ifndef NRFX_I2S_CONFIG_ALIGN
+#define NRFX_I2S_CONFIG_ALIGN 0
+#endif
+
+// <o> NRFX_I2S_CONFIG_SWIDTH - Sample width (bits)
+
+// <0=> 8
+// <1=> 16
+// <2=> 24
+
+#ifndef NRFX_I2S_CONFIG_SWIDTH
+#define NRFX_I2S_CONFIG_SWIDTH 1
+#endif
+
+// <o> NRFX_I2S_CONFIG_CHANNELS - Channels
+
+// <0=> Stereo
+// <1=> Left
+// <2=> Right
+
+#ifndef NRFX_I2S_CONFIG_CHANNELS
+#define NRFX_I2S_CONFIG_CHANNELS 1
+#endif
+
+// <o> NRFX_I2S_CONFIG_MCK_SETUP - MCK behavior
+
+// <0=> Disabled
+// <2147483648=> 32MHz/2
+// <1342177280=> 32MHz/3
+// <1073741824=> 32MHz/4
+// <805306368=> 32MHz/5
+// <671088640=> 32MHz/6
+// <536870912=> 32MHz/8
+// <402653184=> 32MHz/10
+// <369098752=> 32MHz/11
+// <285212672=> 32MHz/15
+// <268435456=> 32MHz/16
+// <201326592=> 32MHz/21
+// <184549376=> 32MHz/23
+// <142606336=> 32MHz/30
+// <138412032=> 32MHz/31
+// <134217728=> 32MHz/32
+// <100663296=> 32MHz/42
+// <68157440=> 32MHz/63
+// <34340864=> 32MHz/125
+
+#ifndef NRFX_I2S_CONFIG_MCK_SETUP
+#define NRFX_I2S_CONFIG_MCK_SETUP 536870912
+#endif
+
+// <o> NRFX_I2S_CONFIG_RATIO - MCK/LRCK ratio
+
+// <0=> 32x
+// <1=> 48x
+// <2=> 64x
+// <3=> 96x
+// <4=> 128x
+// <5=> 192x
+// <6=> 256x
+// <7=> 384x
+// <8=> 512x
+
+#ifndef NRFX_I2S_CONFIG_RATIO
+#define NRFX_I2S_CONFIG_RATIO 2000
+#endif
+
+// <o> NRFX_I2S_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_I2S_CONFIG_IRQ_PRIORITY
+#define NRFX_I2S_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_I2S_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_I2S_CONFIG_LOG_ENABLED
+#define NRFX_I2S_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_I2S_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_I2S_CONFIG_LOG_LEVEL
+#define NRFX_I2S_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_I2S_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_I2S_CONFIG_INFO_COLOR
+#define NRFX_I2S_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_I2S_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_I2S_CONFIG_DEBUG_COLOR
+#define NRFX_I2S_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_LPCOMP_ENABLED - nrfx_lpcomp - LPCOMP peripheral driver
+//==========================================================
+#ifndef NRFX_LPCOMP_ENABLED
+#define NRFX_LPCOMP_ENABLED 1
+#endif
+// <o> NRFX_LPCOMP_CONFIG_REFERENCE - Reference voltage
+
+// <0=> Supply 1/8
+// <1=> Supply 2/8
+// <2=> Supply 3/8
+// <3=> Supply 4/8
+// <4=> Supply 5/8
+// <5=> Supply 6/8
+// <6=> Supply 7/8
+// <8=> Supply 1/16 (nRF52)
+// <9=> Supply 3/16 (nRF52)
+// <10=> Supply 5/16 (nRF52)
+// <11=> Supply 7/16 (nRF52)
+// <12=> Supply 9/16 (nRF52)
+// <13=> Supply 11/16 (nRF52)
+// <14=> Supply 13/16 (nRF52)
+// <15=> Supply 15/16 (nRF52)
+// <7=> External Ref 0
+// <65543=> External Ref 1
+
+#ifndef NRFX_LPCOMP_CONFIG_REFERENCE
+#define NRFX_LPCOMP_CONFIG_REFERENCE 3
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_DETECTION - Detection
+
+// <0=> Crossing
+// <1=> Up
+// <2=> Down
+
+#ifndef NRFX_LPCOMP_CONFIG_DETECTION
+#define NRFX_LPCOMP_CONFIG_DETECTION 2
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_INPUT - Analog input
+
+// <0=> 0
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_LPCOMP_CONFIG_INPUT
+#define NRFX_LPCOMP_CONFIG_INPUT 0
+#endif
+
+// <q> NRFX_LPCOMP_CONFIG_HYST - Hysteresis
+
+
+#ifndef NRFX_LPCOMP_CONFIG_HYST
+#define NRFX_LPCOMP_CONFIG_HYST 0
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_LPCOMP_CONFIG_IRQ_PRIORITY
+#define NRFX_LPCOMP_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED
+#define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_LPCOMP_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL
+#define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_LPCOMP_CONFIG_INFO_COLOR
+#define NRFX_LPCOMP_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_LPCOMP_CONFIG_DEBUG_COLOR
+#define NRFX_LPCOMP_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver
+//==========================================================
+#ifndef NRFX_PDM_ENABLED
+#define NRFX_PDM_ENABLED 1
+#endif
+// <o> NRFX_PDM_CONFIG_MODE - Mode
+
+// <0=> Stereo
+// <1=> Mono
+
+#ifndef NRFX_PDM_CONFIG_MODE
+#define NRFX_PDM_CONFIG_MODE 1
+#endif
+
+// <o> NRFX_PDM_CONFIG_EDGE - Edge
+
+// <0=> Left falling
+// <1=> Left rising
+
+#ifndef NRFX_PDM_CONFIG_EDGE
+#define NRFX_PDM_CONFIG_EDGE 0
+#endif
+
+// <o> NRFX_PDM_CONFIG_CLOCK_FREQ - Clock frequency
+
+// <134217728=> 1000k
+// <138412032=> 1032k (default)
+// <142606336=> 1067k
+
+#ifndef NRFX_PDM_CONFIG_CLOCK_FREQ
+#define NRFX_PDM_CONFIG_CLOCK_FREQ 138412032
+#endif
+
+// <o> NRFX_PDM_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_PDM_CONFIG_IRQ_PRIORITY
+#define NRFX_PDM_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PDM_CONFIG_LOG_ENABLED
+#define NRFX_PDM_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PDM_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PDM_CONFIG_LOG_LEVEL
+#define NRFX_PDM_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PDM_CONFIG_INFO_COLOR
+#define NRFX_PDM_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PDM_CONFIG_DEBUG_COLOR
+#define NRFX_PDM_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver
+//==========================================================
+#ifndef NRFX_POWER_ENABLED
+#define NRFX_POWER_ENABLED 1
+#endif
+// <o> NRFX_POWER_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_POWER_CONFIG_IRQ_PRIORITY
+#define NRFX_POWER_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator
+
+
+// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
+
+#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCEN
+#define NRFX_POWER_CONFIG_DEFAULT_DCDCEN 0
+#endif
+
+// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator
+
+
+// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
+
+#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCENHV
+#define NRFX_POWER_CONFIG_DEFAULT_DCDCENHV 0
+#endif
+
+// </e>
+
+// <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator
+//==========================================================
+#ifndef NRFX_PPI_ENABLED
+#define NRFX_PPI_ENABLED 1
+#endif
+// <e> NRFX_PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PPI_CONFIG_LOG_ENABLED
+#define NRFX_PPI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PPI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PPI_CONFIG_LOG_LEVEL
+#define NRFX_PPI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PPI_CONFIG_INFO_COLOR
+#define NRFX_PPI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PPI_CONFIG_DEBUG_COLOR
+#define NRFX_PPI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing module
+//==========================================================
+#ifndef NRFX_PRS_ENABLED
+#define NRFX_PRS_ENABLED 1
+#endif
+// <q> NRFX_PRS_BOX_0_ENABLED - Enables box 0 in the module.
+
+
+#ifndef NRFX_PRS_BOX_0_ENABLED
+#define NRFX_PRS_BOX_0_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_1_ENABLED - Enables box 1 in the module.
+
+
+#ifndef NRFX_PRS_BOX_1_ENABLED
+#define NRFX_PRS_BOX_1_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_2_ENABLED - Enables box 2 in the module.
+
+
+#ifndef NRFX_PRS_BOX_2_ENABLED
+#define NRFX_PRS_BOX_2_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_3_ENABLED - Enables box 3 in the module.
+
+
+#ifndef NRFX_PRS_BOX_3_ENABLED
+#define NRFX_PRS_BOX_3_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_4_ENABLED - Enables box 4 in the module.
+
+
+#ifndef NRFX_PRS_BOX_4_ENABLED
+#define NRFX_PRS_BOX_4_ENABLED 1
+#endif
+
+// <e> NRFX_PRS_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PRS_CONFIG_LOG_ENABLED
+#define NRFX_PRS_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PRS_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PRS_CONFIG_LOG_LEVEL
+#define NRFX_PRS_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PRS_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PRS_CONFIG_INFO_COLOR
+#define NRFX_PRS_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PRS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PRS_CONFIG_DEBUG_COLOR
+#define NRFX_PRS_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver
+//==========================================================
+#ifndef NRFX_PWM_ENABLED
+#define NRFX_PWM_ENABLED 1
+#endif
+// <q> NRFX_PWM0_ENABLED - Enable PWM0 instance
+
+
+#ifndef NRFX_PWM0_ENABLED
+#define NRFX_PWM0_ENABLED 1
+#endif
+
+// <q> NRFX_PWM1_ENABLED - Enable PWM1 instance
+
+
+#ifndef NRFX_PWM1_ENABLED
+#define NRFX_PWM1_ENABLED 1
+#endif
+
+// <q> NRFX_PWM2_ENABLED - Enable PWM2 instance
+
+
+#ifndef NRFX_PWM2_ENABLED
+#define NRFX_PWM2_ENABLED 1
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31>
+
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN
+#define NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN 31
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31>
+
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN
+#define NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN 31
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31>
+
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN
+#define NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN 31
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31>
+
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN
+#define NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN 31
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock
+
+// <0=> 16 MHz
+// <1=> 8 MHz
+// <2=> 4 MHz
+// <3=> 2 MHz
+// <4=> 1 MHz
+// <5=> 500 kHz
+// <6=> 250 kHz
+// <7=> 125 kHz
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK
+#define NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK 4
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode
+
+// <0=> Up
+// <1=> Up and Down
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE
+#define NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE 0
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE - Top value
+#ifndef NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE
+#define NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE 1000
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode
+
+// <0=> Common
+// <1=> Grouped
+// <2=> Individual
+// <3=> Waveform
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE
+#define NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE 0
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_STEP_MODE - Step mode
+
+// <0=> Auto
+// <1=> Triggered
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_STEP_MODE
+#define NRFX_PWM_DEFAULT_CONFIG_STEP_MODE 0
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PWM_CONFIG_LOG_ENABLED
+#define NRFX_PWM_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PWM_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PWM_CONFIG_LOG_LEVEL
+#define NRFX_PWM_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PWM_CONFIG_INFO_COLOR
+#define NRFX_PWM_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PWM_CONFIG_DEBUG_COLOR
+#define NRFX_PWM_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// <e> NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround for PWM.
+
+// <i> The workaround uses interrupts to wake up the CPU and ensure
+// <i> it is active when PWM is about to start a DMA transfer. For
+// <i> initial transfer, done when a playback is started via PPI,
+// <i> a specific EGU instance is used to generate the interrupt.
+// <i> During the playback, the PWM interrupt triggered on SEQEND
+// <i> event of a preceding sequence is used to protect the transfer
+// <i> done for the next sequence to be played.
+//==========================================================
+#ifndef NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
+#define NRFX_PWM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
+#endif
+// <o> NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE - EGU instance used by the nRF52 Anomaly 109 workaround for PWM.
+
+// <0=> EGU0
+// <1=> EGU1
+// <2=> EGU2
+// <3=> EGU3
+// <4=> EGU4
+// <5=> EGU5
+
+#ifndef NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE
+#define NRFX_PWM_NRF52_ANOMALY_109_EGU_INSTANCE 5
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
+//==========================================================
+#ifndef NRFX_QDEC_ENABLED
+#define NRFX_QDEC_ENABLED 1
+#endif
+// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
+
+// <0=> 10 Samples
+// <1=> 40 Samples
+// <2=> 80 Samples
+// <3=> 120 Samples
+// <4=> 160 Samples
+// <5=> 200 Samples
+// <6=> 240 Samples
+// <7=> 280 Samples
+
+#ifndef NRFX_QDEC_CONFIG_REPORTPER
+#define NRFX_QDEC_CONFIG_REPORTPER 0
+#endif
+
+// <o> NRFX_QDEC_CONFIG_SAMPLEPER - Sample period
+
+// <0=> 128 us
+// <1=> 256 us
+// <2=> 512 us
+// <3=> 1024 us
+// <4=> 2048 us
+// <5=> 4096 us
+// <6=> 8192 us
+// <7=> 16384 us
+
+#ifndef NRFX_QDEC_CONFIG_SAMPLEPER
+#define NRFX_QDEC_CONFIG_SAMPLEPER 7
+#endif
+
+// <o> NRFX_QDEC_CONFIG_PIO_A - A pin <0-31>
+
+
+#ifndef NRFX_QDEC_CONFIG_PIO_A
+#define NRFX_QDEC_CONFIG_PIO_A 31
+#endif
+
+// <o> NRFX_QDEC_CONFIG_PIO_B - B pin <0-31>
+
+
+#ifndef NRFX_QDEC_CONFIG_PIO_B
+#define NRFX_QDEC_CONFIG_PIO_B 31
+#endif
+
+// <o> NRFX_QDEC_CONFIG_PIO_LED - LED pin <0-31>
+
+
+#ifndef NRFX_QDEC_CONFIG_PIO_LED
+#define NRFX_QDEC_CONFIG_PIO_LED 31
+#endif
+
+// <o> NRFX_QDEC_CONFIG_LEDPRE - LED pre
+#ifndef NRFX_QDEC_CONFIG_LEDPRE
+#define NRFX_QDEC_CONFIG_LEDPRE 511
+#endif
+
+// <o> NRFX_QDEC_CONFIG_LEDPOL - LED polarity
+
+// <0=> Active low
+// <1=> Active high
+
+#ifndef NRFX_QDEC_CONFIG_LEDPOL
+#define NRFX_QDEC_CONFIG_LEDPOL 1
+#endif
+
+// <q> NRFX_QDEC_CONFIG_DBFEN - Debouncing enable
+
+
+#ifndef NRFX_QDEC_CONFIG_DBFEN
+#define NRFX_QDEC_CONFIG_DBFEN 0
+#endif
+
+// <q> NRFX_QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable
+
+
+#ifndef NRFX_QDEC_CONFIG_SAMPLE_INTEN
+#define NRFX_QDEC_CONFIG_SAMPLE_INTEN 0
+#endif
+
+// <o> NRFX_QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_QDEC_CONFIG_IRQ_PRIORITY
+#define NRFX_QDEC_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_QDEC_CONFIG_LOG_ENABLED
+#define NRFX_QDEC_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_QDEC_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_QDEC_CONFIG_LOG_LEVEL
+#define NRFX_QDEC_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_QDEC_CONFIG_INFO_COLOR
+#define NRFX_QDEC_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_QDEC_CONFIG_DEBUG_COLOR
+#define NRFX_QDEC_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_RNG_ENABLED - nrfx_rng - RNG peripheral driver
+//==========================================================
+#ifndef NRFX_RNG_ENABLED
+#define NRFX_RNG_ENABLED 1
+#endif
+// <q> NRFX_RNG_CONFIG_ERROR_CORRECTION - Error correction
+
+
+#ifndef NRFX_RNG_CONFIG_ERROR_CORRECTION
+#define NRFX_RNG_CONFIG_ERROR_CORRECTION 1
+#endif
+
+// <o> NRFX_RNG_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_RNG_CONFIG_IRQ_PRIORITY
+#define NRFX_RNG_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_RNG_CONFIG_LOG_ENABLED
+#define NRFX_RNG_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_RNG_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_RNG_CONFIG_LOG_LEVEL
+#define NRFX_RNG_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RNG_CONFIG_INFO_COLOR
+#define NRFX_RNG_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RNG_CONFIG_DEBUG_COLOR
+#define NRFX_RNG_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver
+//==========================================================
+#ifndef NRFX_RTC_ENABLED
+#define NRFX_RTC_ENABLED 1
+#endif
+// <q> NRFX_RTC0_ENABLED - Enable RTC0 instance
+
+
+#ifndef NRFX_RTC0_ENABLED
+#define NRFX_RTC0_ENABLED 1
+#endif
+
+// <q> NRFX_RTC1_ENABLED - Enable RTC1 instance
+
+
+#ifndef NRFX_RTC1_ENABLED
+#define NRFX_RTC1_ENABLED 1
+#endif
+
+// <q> NRFX_RTC2_ENABLED - Enable RTC2 instance
+
+
+#ifndef NRFX_RTC2_ENABLED
+#define NRFX_RTC2_ENABLED 1
+#endif
+
+// <o> NRFX_RTC_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt
+#ifndef NRFX_RTC_MAXIMUM_LATENCY_US
+#define NRFX_RTC_MAXIMUM_LATENCY_US 2000
+#endif
+
+// <o> NRFX_RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768>
+
+
+#ifndef NRFX_RTC_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_RTC_DEFAULT_CONFIG_FREQUENCY 32768
+#endif
+
+// <q> NRFX_RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering
+
+
+#ifndef NRFX_RTC_DEFAULT_CONFIG_RELIABLE
+#define NRFX_RTC_DEFAULT_CONFIG_RELIABLE 0
+#endif
+
+// <o> NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_RTC_CONFIG_LOG_ENABLED
+#define NRFX_RTC_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_RTC_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_RTC_CONFIG_LOG_LEVEL
+#define NRFX_RTC_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RTC_CONFIG_INFO_COLOR
+#define NRFX_RTC_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RTC_CONFIG_DEBUG_COLOR
+#define NRFX_RTC_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver
+//==========================================================
+#ifndef NRFX_SAADC_ENABLED
+#define NRFX_SAADC_ENABLED 1
+#endif
+// <o> NRFX_SAADC_CONFIG_RESOLUTION - Resolution
+
+// <0=> 8 bit
+// <1=> 10 bit
+// <2=> 12 bit
+// <3=> 14 bit
+
+#ifndef NRFX_SAADC_CONFIG_RESOLUTION
+#define NRFX_SAADC_CONFIG_RESOLUTION 1
+#endif
+
+// <o> NRFX_SAADC_CONFIG_OVERSAMPLE - Sample period
+
+// <0=> Disabled
+// <1=> 2x
+// <2=> 4x
+// <3=> 8x
+// <4=> 16x
+// <5=> 32x
+// <6=> 64x
+// <7=> 128x
+// <8=> 256x
+
+#ifndef NRFX_SAADC_CONFIG_OVERSAMPLE
+#define NRFX_SAADC_CONFIG_OVERSAMPLE 0
+#endif
+
+// <q> NRFX_SAADC_CONFIG_LP_MODE - Enabling low power mode
+
+
+#ifndef NRFX_SAADC_CONFIG_LP_MODE
+#define NRFX_SAADC_CONFIG_LP_MODE 0
+#endif
+
+// <o> NRFX_SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_SAADC_CONFIG_IRQ_PRIORITY
+#define NRFX_SAADC_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SAADC_CONFIG_LOG_ENABLED
+#define NRFX_SAADC_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SAADC_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SAADC_CONFIG_LOG_LEVEL
+#define NRFX_SAADC_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SAADC_CONFIG_INFO_COLOR
+#define NRFX_SAADC_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SAADC_CONFIG_DEBUG_COLOR
+#define NRFX_SAADC_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver
+//==========================================================
+#ifndef NRFX_SPIM_ENABLED
+#define NRFX_SPIM_ENABLED 1
+#endif
+// <q> NRFX_SPIM0_ENABLED - Enable SPIM0 instance
+
+
+#ifndef NRFX_SPIM0_ENABLED
+#define NRFX_SPIM0_ENABLED 1
+#endif
+
+// <q> NRFX_SPIM1_ENABLED - Enable SPIM1 instance
+
+
+#ifndef NRFX_SPIM1_ENABLED
+#define NRFX_SPIM1_ENABLED 1
+#endif
+
+// <q> NRFX_SPIM2_ENABLED - Enable SPIM2 instance
+
+
+#ifndef NRFX_SPIM2_ENABLED
+#define NRFX_SPIM2_ENABLED 1
+#endif
+
+// <o> NRFX_SPIM_MISO_PULL_CFG - MISO pin pull configuration.
+
+// <0=> NRF_GPIO_PIN_NOPULL
+// <1=> NRF_GPIO_PIN_PULLDOWN
+// <3=> NRF_GPIO_PIN_PULLUP
+
+#ifndef NRFX_SPIM_MISO_PULL_CFG
+#define NRFX_SPIM_MISO_PULL_CFG 1
+#endif
+
+// <o> NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SPIM_CONFIG_LOG_ENABLED
+#define NRFX_SPIM_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SPIM_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SPIM_CONFIG_LOG_LEVEL
+#define NRFX_SPIM_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIM_CONFIG_INFO_COLOR
+#define NRFX_SPIM_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SPIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIM_CONFIG_DEBUG_COLOR
+#define NRFX_SPIM_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// <q> NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 anomaly 109 workaround for SPIM.
+
+
+// <i> The workaround uses interrupts to wake up the CPU by catching
+// <i> a start event of zero-length transmission to start the clock. This
+// <i> ensures that the DMA transfer will be executed without issues and
+// <i> that the proper transfer will be started. See more in the Errata
+// <i> document or Anomaly 109 Addendum located at
+// <i> https://infocenter.nordicsemi.com/
+
+#ifndef NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
+#define NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
+#endif
+
+// </e>
+
+// <e> NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver
+//==========================================================
+#ifndef NRFX_SPIS_ENABLED
+#define NRFX_SPIS_ENABLED 1
+#endif
+// <q> NRFX_SPIS0_ENABLED - Enable SPIS0 instance
+
+
+#ifndef NRFX_SPIS0_ENABLED
+#define NRFX_SPIS0_ENABLED 1
+#endif
+
+// <q> NRFX_SPIS1_ENABLED - Enable SPIS1 instance
+
+
+#ifndef NRFX_SPIS1_ENABLED
+#define NRFX_SPIS1_ENABLED 1
+#endif
+
+// <q> NRFX_SPIS2_ENABLED - Enable SPIS2 instance
+
+
+#ifndef NRFX_SPIS2_ENABLED
+#define NRFX_SPIS2_ENABLED 1
+#endif
+
+// <o> NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <o> NRFX_SPIS_DEFAULT_DEF - SPIS default DEF character <0-255>
+
+
+#ifndef NRFX_SPIS_DEFAULT_DEF
+#define NRFX_SPIS_DEFAULT_DEF 255
+#endif
+
+// <o> NRFX_SPIS_DEFAULT_ORC - SPIS default ORC character <0-255>
+
+
+#ifndef NRFX_SPIS_DEFAULT_ORC
+#define NRFX_SPIS_DEFAULT_ORC 255
+#endif
+
+// <e> NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SPIS_CONFIG_LOG_ENABLED
+#define NRFX_SPIS_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SPIS_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SPIS_CONFIG_LOG_LEVEL
+#define NRFX_SPIS_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIS_CONFIG_INFO_COLOR
+#define NRFX_SPIS_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR
+#define NRFX_SPIS_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// <q> NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 Anomaly 109 workaround for SPIS.
+
+
+// <i> The workaround uses a GPIOTE channel to generate interrupts
+// <i> on falling edges detected on the CSN line. This will make
+// <i> the CPU active for the moment when SPIS starts DMA transfers,
+// <i> and this way the transfers will be protected.
+// <i> This workaround uses GPIOTE driver, so this driver must be
+// <i> enabled as well.
+
+#ifndef NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED
+#define NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
+#endif
+
+// </e>
+
+// <e> NRFX_SPI_ENABLED - nrfx_spi - SPI peripheral driver
+//==========================================================
+#ifndef NRFX_SPI_ENABLED
+#define NRFX_SPI_ENABLED 1
+#endif
+// <q> NRFX_SPI0_ENABLED - Enable SPI0 instance
+
+
+#ifndef NRFX_SPI0_ENABLED
+#define NRFX_SPI0_ENABLED 1
+#endif
+
+// <q> NRFX_SPI1_ENABLED - Enable SPI1 instance
+
+
+#ifndef NRFX_SPI1_ENABLED
+#define NRFX_SPI1_ENABLED 1
+#endif
+
+// <q> NRFX_SPI2_ENABLED - Enable SPI2 instance
+
+
+#ifndef NRFX_SPI2_ENABLED
+#define NRFX_SPI2_ENABLED 1
+#endif
+
+// <o> NRFX_SPI_MISO_PULL_CFG - MISO pin pull configuration.
+
+// <0=> NRF_GPIO_PIN_NOPULL
+// <1=> NRF_GPIO_PIN_PULLDOWN
+// <3=> NRF_GPIO_PIN_PULLUP
+
+#ifndef NRFX_SPI_MISO_PULL_CFG
+#define NRFX_SPI_MISO_PULL_CFG 1
+#endif
+
+// <o> NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SPI_CONFIG_LOG_ENABLED
+#define NRFX_SPI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SPI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SPI_CONFIG_LOG_LEVEL
+#define NRFX_SPI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPI_CONFIG_INFO_COLOR
+#define NRFX_SPI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPI_CONFIG_DEBUG_COLOR
+#define NRFX_SPI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SWI_ENABLED - nrfx_swi - SWI/EGU peripheral allocator
+//==========================================================
+#ifndef NRFX_SWI_ENABLED
+#define NRFX_SWI_ENABLED 1
+#endif
+// <q> NRFX_EGU_ENABLED - Enable EGU support
+
+
+#ifndef NRFX_EGU_ENABLED
+#define NRFX_EGU_ENABLED 0
+#endif
+
+// <q> NRFX_SWI0_DISABLED - Exclude SWI0 from being utilized by the driver
+
+
+#ifndef NRFX_SWI0_DISABLED
+#define NRFX_SWI0_DISABLED 0
+#endif
+
+// <q> NRFX_SWI1_DISABLED - Exclude SWI1 from being utilized by the driver
+
+
+#ifndef NRFX_SWI1_DISABLED
+#define NRFX_SWI1_DISABLED 0
+#endif
+
+// <q> NRFX_SWI2_DISABLED - Exclude SWI2 from being utilized by the driver
+
+
+#ifndef NRFX_SWI2_DISABLED
+#define NRFX_SWI2_DISABLED 0
+#endif
+
+// <q> NRFX_SWI3_DISABLED - Exclude SWI3 from being utilized by the driver
+
+
+#ifndef NRFX_SWI3_DISABLED
+#define NRFX_SWI3_DISABLED 0
+#endif
+
+// <q> NRFX_SWI4_DISABLED - Exclude SWI4 from being utilized by the driver
+
+
+#ifndef NRFX_SWI4_DISABLED
+#define NRFX_SWI4_DISABLED 0
+#endif
+
+// <q> NRFX_SWI5_DISABLED - Exclude SWI5 from being utilized by the driver
+
+
+#ifndef NRFX_SWI5_DISABLED
+#define NRFX_SWI5_DISABLED 0
+#endif
+
+// <e> NRFX_SWI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SWI_CONFIG_LOG_ENABLED
+#define NRFX_SWI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SWI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SWI_CONFIG_LOG_LEVEL
+#define NRFX_SWI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SWI_CONFIG_INFO_COLOR
+#define NRFX_SWI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SWI_CONFIG_DEBUG_COLOR
+#define NRFX_SWI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <q> NRFX_SYSTICK_ENABLED - nrfx_systick - ARM(R) SysTick driver
+
+
+#ifndef NRFX_SYSTICK_ENABLED
+#define NRFX_SYSTICK_ENABLED 1
+#endif
+
+// <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
+//==========================================================
+#ifndef NRFX_TIMER_ENABLED
+#define NRFX_TIMER_ENABLED 1
+#endif
+// <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance
+
+
+#ifndef NRFX_TIMER0_ENABLED
+#define NRFX_TIMER0_ENABLED 1
+#endif
+
+// <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance
+
+
+#ifndef NRFX_TIMER1_ENABLED
+#define NRFX_TIMER1_ENABLED 1
+#endif
+
+// <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance
+
+
+#ifndef NRFX_TIMER2_ENABLED
+#define NRFX_TIMER2_ENABLED 1
+#endif
+
+// <q> NRFX_TIMER3_ENABLED - Enable TIMER3 instance
+
+
+#ifndef NRFX_TIMER3_ENABLED
+#define NRFX_TIMER3_ENABLED 1
+#endif
+
+// <q> NRFX_TIMER4_ENABLED - Enable TIMER4 instance
+
+
+#ifndef NRFX_TIMER4_ENABLED
+#define NRFX_TIMER4_ENABLED 1
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
+
+// <0=> 16 MHz
+// <1=> 8 MHz
+// <2=> 4 MHz
+// <3=> 2 MHz
+// <4=> 1 MHz
+// <5=> 500 kHz
+// <6=> 250 kHz
+// <7=> 125 kHz
+// <8=> 62.5 kHz
+// <9=> 31.25 kHz
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 0
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
+
+// <0=> Timer
+// <1=> Counter
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_MODE
+#define NRFX_TIMER_DEFAULT_CONFIG_MODE 0
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
+
+// <0=> 16 bit
+// <1=> 8 bit
+// <2=> 24 bit
+// <3=> 32 bit
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH
+#define NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TIMER_CONFIG_LOG_ENABLED
+#define NRFX_TIMER_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TIMER_CONFIG_LOG_LEVEL
+#define NRFX_TIMER_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TIMER_CONFIG_INFO_COLOR
+#define NRFX_TIMER_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR
+#define NRFX_TIMER_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver
+//==========================================================
+#ifndef NRFX_TWIM_ENABLED
+#define NRFX_TWIM_ENABLED 1
+#endif
+// <q> NRFX_TWIM0_ENABLED - Enable TWIM0 instance
+
+
+#ifndef NRFX_TWIM0_ENABLED
+#define NRFX_TWIM0_ENABLED 1
+#endif
+
+// <q> NRFX_TWIM1_ENABLED - Enable TWIM1 instance
+
+
+#ifndef NRFX_TWIM1_ENABLED
+#define NRFX_TWIM1_ENABLED 1
+#endif
+
+// <o> NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY - Frequency
+
+// <26738688=> 100k
+// <67108864=> 250k
+// <104857600=> 400k
+
+#ifndef NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688
+#endif
+
+// <q> NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
+
+
+#ifndef NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT
+#define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
+#endif
+
+// <o> NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TWIM_CONFIG_LOG_ENABLED
+#define NRFX_TWIM_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TWIM_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TWIM_CONFIG_LOG_LEVEL
+#define NRFX_TWIM_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TWIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWIM_CONFIG_INFO_COLOR
+#define NRFX_TWIM_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TWIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR
+#define NRFX_TWIM_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// <q> NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED - Enables nRF52 anomaly 109 workaround for TWIM.
+
+
+// <i> The workaround uses interrupts to wake up the CPU by catching
+// <i> the start event of zero-frequency transmission, clear the
+// <i> peripheral, set desired frequency, start the peripheral, and
+// <i> the proper transmission. See more in the Errata document or
+// <i> Anomaly 109 Addendum located at https://infocenter.nordicsemi.com/
+
+#ifndef NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
+#define NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
+#endif
+
+// </e>
+
+// <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver
+//==========================================================
+#ifndef NRFX_TWIS_ENABLED
+#define NRFX_TWIS_ENABLED 1
+#endif
+// <q> NRFX_TWIS0_ENABLED - Enable TWIS0 instance
+
+
+#ifndef NRFX_TWIS0_ENABLED
+#define NRFX_TWIS0_ENABLED 1
+#endif
+
+// <q> NRFX_TWIS1_ENABLED - Enable TWIS1 instance
+
+
+#ifndef NRFX_TWIS1_ENABLED
+#define NRFX_TWIS1_ENABLED 1
+#endif
+
+// <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once
+
+
+// <i> Optimization flag. Registers used by TWIS are shared by other peripherals. Normally, during initialization driver tries to clear all registers to known state before doing the initialization itself. This gives initialization safe procedure, no matter when it would be called. If you activate TWIS only once and do never uninitialize it - set this flag to 1 what gives more optimal code.
+
+#ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY
+#define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
+#endif
+
+// <q> NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode
+
+
+// <i> Synchronous mode would be used in specific situations. And it uses some additional code and data memory to safely process state machine by polling it in status functions. If this functionality is not required it may be disabled to free some resources.
+
+#ifndef NRFX_TWIS_NO_SYNC_MODE
+#define NRFX_TWIS_NO_SYNC_MODE 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR0 - Address0
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR0
+#define NRFX_TWIS_DEFAULT_CONFIG_ADDR0 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR1 - Address1
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR1
+#define NRFX_TWIS_DEFAULT_CONFIG_ADDR1 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration
+
+// <0=> Disabled
+// <1=> Pull down
+// <3=> Pull up
+
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL
+#define NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration
+
+// <0=> Disabled
+// <1=> Pull down
+// <3=> Pull up
+
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL
+#define NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TWIS_CONFIG_LOG_ENABLED
+#define NRFX_TWIS_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TWIS_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TWIS_CONFIG_LOG_LEVEL
+#define NRFX_TWIS_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWIS_CONFIG_INFO_COLOR
+#define NRFX_TWIS_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWIS_CONFIG_DEBUG_COLOR
+#define NRFX_TWIS_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_TWI_ENABLED - nrfx_twi - TWI peripheral driver
+//==========================================================
+#ifndef NRFX_TWI_ENABLED
+#define NRFX_TWI_ENABLED 1
+#endif
+// <q> NRFX_TWI0_ENABLED - Enable TWI0 instance
+
+
+#ifndef NRFX_TWI0_ENABLED
+#define NRFX_TWI0_ENABLED 1
+#endif
+
+// <q> NRFX_TWI1_ENABLED - Enable TWI1 instance
+
+
+#ifndef NRFX_TWI1_ENABLED
+#define NRFX_TWI1_ENABLED 1
+#endif
+
+// <o> NRFX_TWI_DEFAULT_CONFIG_FREQUENCY - Frequency
+
+// <26738688=> 100k
+// <67108864=> 250k
+// <104857600=> 400k
+
+#ifndef NRFX_TWI_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 26738688
+#endif
+
+// <q> NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
+
+
+#ifndef NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
+#define NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
+#endif
+
+// <o> NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TWI_CONFIG_LOG_ENABLED
+#define NRFX_TWI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TWI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TWI_CONFIG_LOG_LEVEL
+#define NRFX_TWI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWI_CONFIG_INFO_COLOR
+#define NRFX_TWI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWI_CONFIG_DEBUG_COLOR
+#define NRFX_TWI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver
+//==========================================================
+#ifndef NRFX_UARTE_ENABLED
+#define NRFX_UARTE_ENABLED 1
+#endif
+// <o> NRFX_UARTE0_ENABLED - Enable UARTE0 instance
+#ifndef NRFX_UARTE0_ENABLED
+#define NRFX_UARTE0_ENABLED 1
+#endif
+
+// <o> NRFX_UARTE_DEFAULT_CONFIG_HWFC - Hardware Flow Control
+
+// <0=> Disabled
+// <1=> Enabled
+
+#ifndef NRFX_UARTE_DEFAULT_CONFIG_HWFC
+#define NRFX_UARTE_DEFAULT_CONFIG_HWFC 0
+#endif
+
+// <o> NRFX_UARTE_DEFAULT_CONFIG_PARITY - Parity
+
+// <0=> Excluded
+// <14=> Included
+
+#ifndef NRFX_UARTE_DEFAULT_CONFIG_PARITY
+#define NRFX_UARTE_DEFAULT_CONFIG_PARITY 0
+#endif
+
+// <o> NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
+
+// <323584=> 1200 baud
+// <643072=> 2400 baud
+// <1290240=> 4800 baud
+// <2576384=> 9600 baud
+// <3862528=> 14400 baud
+// <5152768=> 19200 baud
+// <7716864=> 28800 baud
+// <8388608=> 31250 baud
+// <10289152=> 38400 baud
+// <15007744=> 56000 baud
+// <15400960=> 57600 baud
+// <20615168=> 76800 baud
+// <30801920=> 115200 baud
+// <61865984=> 230400 baud
+// <67108864=> 250000 baud
+// <121634816=> 460800 baud
+// <251658240=> 921600 baud
+// <268435456=> 1000000 baud
+
+#ifndef NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE
+#define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 30801920
+#endif
+
+// <o> NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_UARTE_CONFIG_LOG_ENABLED
+#define NRFX_UARTE_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_UARTE_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_UARTE_CONFIG_LOG_LEVEL
+#define NRFX_UARTE_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_UARTE_CONFIG_INFO_COLOR
+#define NRFX_UARTE_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR
+#define NRFX_UARTE_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver
+//==========================================================
+#ifndef NRFX_UART_ENABLED
+#define NRFX_UART_ENABLED 1
+#endif
+// <o> NRFX_UART0_ENABLED - Enable UART0 instance
+#ifndef NRFX_UART0_ENABLED
+#define NRFX_UART0_ENABLED 1
+#endif
+
+// <o> NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
+
+// <0=> Disabled
+// <1=> Enabled
+
+#ifndef NRFX_UART_DEFAULT_CONFIG_HWFC
+#define NRFX_UART_DEFAULT_CONFIG_HWFC 0
+#endif
+
+// <o> NRFX_UART_DEFAULT_CONFIG_PARITY - Parity
+
+// <0=> Excluded
+// <14=> Included
+
+#ifndef NRFX_UART_DEFAULT_CONFIG_PARITY
+#define NRFX_UART_DEFAULT_CONFIG_PARITY 0
+#endif
+
+// <o> NRFX_UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
+
+// <323584=> 1200 baud
+// <643072=> 2400 baud
+// <1290240=> 4800 baud
+// <2576384=> 9600 baud
+// <3866624=> 14400 baud
+// <5152768=> 19200 baud
+// <7729152=> 28800 baud
+// <8388608=> 31250 baud
+// <10309632=> 38400 baud
+// <15007744=> 56000 baud
+// <15462400=> 57600 baud
+// <20615168=> 76800 baud
+// <30924800=> 115200 baud
+// <61845504=> 230400 baud
+// <67108864=> 250000 baud
+// <123695104=> 460800 baud
+// <247386112=> 921600 baud
+// <268435456=> 1000000 baud
+
+#ifndef NRFX_UART_DEFAULT_CONFIG_BAUDRATE
+#define NRFX_UART_DEFAULT_CONFIG_BAUDRATE 30924800
+#endif
+
+// <o> NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_UART_CONFIG_LOG_ENABLED
+#define NRFX_UART_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_UART_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_UART_CONFIG_LOG_LEVEL
+#define NRFX_UART_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_UART_CONFIG_INFO_COLOR
+#define NRFX_UART_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_UART_CONFIG_DEBUG_COLOR
+#define NRFX_UART_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver
+//==========================================================
+#ifndef NRFX_WDT_ENABLED
+#define NRFX_WDT_ENABLED 1
+#endif
+// <o> NRFX_WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode
+
+// <1=> Run in SLEEP, Pause in HALT
+// <8=> Pause in SLEEP, Run in HALT
+// <9=> Run in SLEEP and HALT
+// <0=> Pause in SLEEP and HALT
+
+#ifndef NRFX_WDT_CONFIG_BEHAVIOUR
+#define NRFX_WDT_CONFIG_BEHAVIOUR 1
+#endif
+
+// <o> NRFX_WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295>
+
+
+#ifndef NRFX_WDT_CONFIG_RELOAD_VALUE
+#define NRFX_WDT_CONFIG_RELOAD_VALUE 2000
+#endif
+
+// <o> NRFX_WDT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_WDT_CONFIG_IRQ_PRIORITY
+#define NRFX_WDT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_WDT_CONFIG_LOG_ENABLED
+#define NRFX_WDT_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_WDT_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_WDT_CONFIG_LOG_LEVEL
+#define NRFX_WDT_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_WDT_CONFIG_INFO_COLOR
+#define NRFX_WDT_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_WDT_CONFIG_DEBUG_COLOR
+#define NRFX_WDT_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// </h>
+
+#endif // NRFX_CONFIG_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF52840/nrfx_config.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF52840/nrfx_config.h
new file mode 100644
index 0000000..786cb42
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nRF52840/nrfx_config.h
@@ -0,0 +1,2964 @@
+#ifndef NRFX_CONFIG_H__
+#define NRFX_CONFIG_H__
+
+// <<< Use Configuration Wizard in Context Menu >>>\n
+
+// <h> nRF_Drivers
+
+// <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
+//==========================================================
+#ifndef NRFX_CLOCK_ENABLED
+#define NRFX_CLOCK_ENABLED 1
+#endif
+// <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source
+
+// <0=> RC
+// <1=> XTAL
+// <2=> Synth
+
+#ifndef NRFX_CLOCK_CONFIG_LF_SRC
+#define NRFX_CLOCK_CONFIG_LF_SRC 1
+#endif
+
+// <o> NRFX_CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_CLOCK_CONFIG_IRQ_PRIORITY
+#define NRFX_CLOCK_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED
+#define NRFX_CLOCK_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_CLOCK_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL
+#define NRFX_CLOCK_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_CLOCK_CONFIG_INFO_COLOR
+#define NRFX_CLOCK_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR
+#define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_COMP_ENABLED - nrfx_comp - COMP peripheral driver
+//==========================================================
+#ifndef NRFX_COMP_ENABLED
+#define NRFX_COMP_ENABLED 1
+#endif
+// <o> NRFX_COMP_CONFIG_REF - Reference voltage
+
+// <0=> Internal 1.2V
+// <1=> Internal 1.8V
+// <2=> Internal 2.4V
+// <4=> VDD
+// <7=> ARef
+
+#ifndef NRFX_COMP_CONFIG_REF
+#define NRFX_COMP_CONFIG_REF 1
+#endif
+
+// <o> NRFX_COMP_CONFIG_MAIN_MODE - Main mode
+
+// <0=> Single ended
+// <1=> Differential
+
+#ifndef NRFX_COMP_CONFIG_MAIN_MODE
+#define NRFX_COMP_CONFIG_MAIN_MODE 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_SPEED_MODE - Speed mode
+
+// <0=> Low power
+// <1=> Normal
+// <2=> High speed
+
+#ifndef NRFX_COMP_CONFIG_SPEED_MODE
+#define NRFX_COMP_CONFIG_SPEED_MODE 2
+#endif
+
+// <o> NRFX_COMP_CONFIG_HYST - Hystheresis
+
+// <0=> No
+// <1=> 50mV
+
+#ifndef NRFX_COMP_CONFIG_HYST
+#define NRFX_COMP_CONFIG_HYST 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_ISOURCE - Current Source
+
+// <0=> Off
+// <1=> 2.5 uA
+// <2=> 5 uA
+// <3=> 10 uA
+
+#ifndef NRFX_COMP_CONFIG_ISOURCE
+#define NRFX_COMP_CONFIG_ISOURCE 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_INPUT - Analog input
+
+// <0=> 0
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_COMP_CONFIG_INPUT
+#define NRFX_COMP_CONFIG_INPUT 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_COMP_CONFIG_IRQ_PRIORITY
+#define NRFX_COMP_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_COMP_CONFIG_LOG_ENABLED
+#define NRFX_COMP_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_COMP_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_COMP_CONFIG_LOG_LEVEL
+#define NRFX_COMP_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_COMP_CONFIG_INFO_COLOR
+#define NRFX_COMP_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_COMP_CONFIG_DEBUG_COLOR
+#define NRFX_COMP_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
+//==========================================================
+#ifndef NRFX_GPIOTE_ENABLED
+#define NRFX_GPIOTE_ENABLED 1
+#endif
+// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
+#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
+#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
+#endif
+
+// <o> NRFX_GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_GPIOTE_CONFIG_IRQ_PRIORITY
+#define NRFX_GPIOTE_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED
+#define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL
+#define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR
+#define NRFX_GPIOTE_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR
+#define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_I2S_ENABLED - nrfx_i2s - I2S peripheral driver
+//==========================================================
+#ifndef NRFX_I2S_ENABLED
+#define NRFX_I2S_ENABLED 1
+#endif
+// <o> NRFX_I2S_CONFIG_SCK_PIN - SCK pin <0-31>
+
+
+#ifndef NRFX_I2S_CONFIG_SCK_PIN
+#define NRFX_I2S_CONFIG_SCK_PIN 31
+#endif
+
+// <o> NRFX_I2S_CONFIG_LRCK_PIN - LRCK pin <1-31>
+
+
+#ifndef NRFX_I2S_CONFIG_LRCK_PIN
+#define NRFX_I2S_CONFIG_LRCK_PIN 30
+#endif
+
+// <o> NRFX_I2S_CONFIG_MCK_PIN - MCK pin
+#ifndef NRFX_I2S_CONFIG_MCK_PIN
+#define NRFX_I2S_CONFIG_MCK_PIN 255
+#endif
+
+// <o> NRFX_I2S_CONFIG_SDOUT_PIN - SDOUT pin <0-31>
+
+
+#ifndef NRFX_I2S_CONFIG_SDOUT_PIN
+#define NRFX_I2S_CONFIG_SDOUT_PIN 29
+#endif
+
+// <o> NRFX_I2S_CONFIG_SDIN_PIN - SDIN pin <0-31>
+
+
+#ifndef NRFX_I2S_CONFIG_SDIN_PIN
+#define NRFX_I2S_CONFIG_SDIN_PIN 28
+#endif
+
+// <o> NRFX_I2S_CONFIG_MASTER - Mode
+
+// <0=> Master
+// <1=> Slave
+
+#ifndef NRFX_I2S_CONFIG_MASTER
+#define NRFX_I2S_CONFIG_MASTER 0
+#endif
+
+// <o> NRFX_I2S_CONFIG_FORMAT - Format
+
+// <0=> I2S
+// <1=> Aligned
+
+#ifndef NRFX_I2S_CONFIG_FORMAT
+#define NRFX_I2S_CONFIG_FORMAT 0
+#endif
+
+// <o> NRFX_I2S_CONFIG_ALIGN - Alignment
+
+// <0=> Left
+// <1=> Right
+
+#ifndef NRFX_I2S_CONFIG_ALIGN
+#define NRFX_I2S_CONFIG_ALIGN 0
+#endif
+
+// <o> NRFX_I2S_CONFIG_SWIDTH - Sample width (bits)
+
+// <0=> 8
+// <1=> 16
+// <2=> 24
+
+#ifndef NRFX_I2S_CONFIG_SWIDTH
+#define NRFX_I2S_CONFIG_SWIDTH 1
+#endif
+
+// <o> NRFX_I2S_CONFIG_CHANNELS - Channels
+
+// <0=> Stereo
+// <1=> Left
+// <2=> Right
+
+#ifndef NRFX_I2S_CONFIG_CHANNELS
+#define NRFX_I2S_CONFIG_CHANNELS 1
+#endif
+
+// <o> NRFX_I2S_CONFIG_MCK_SETUP - MCK behavior
+
+// <0=> Disabled
+// <2147483648=> 32MHz/2
+// <1342177280=> 32MHz/3
+// <1073741824=> 32MHz/4
+// <805306368=> 32MHz/5
+// <671088640=> 32MHz/6
+// <536870912=> 32MHz/8
+// <402653184=> 32MHz/10
+// <369098752=> 32MHz/11
+// <285212672=> 32MHz/15
+// <268435456=> 32MHz/16
+// <201326592=> 32MHz/21
+// <184549376=> 32MHz/23
+// <142606336=> 32MHz/30
+// <138412032=> 32MHz/31
+// <134217728=> 32MHz/32
+// <100663296=> 32MHz/42
+// <68157440=> 32MHz/63
+// <34340864=> 32MHz/125
+
+#ifndef NRFX_I2S_CONFIG_MCK_SETUP
+#define NRFX_I2S_CONFIG_MCK_SETUP 536870912
+#endif
+
+// <o> NRFX_I2S_CONFIG_RATIO - MCK/LRCK ratio
+
+// <0=> 32x
+// <1=> 48x
+// <2=> 64x
+// <3=> 96x
+// <4=> 128x
+// <5=> 192x
+// <6=> 256x
+// <7=> 384x
+// <8=> 512x
+
+#ifndef NRFX_I2S_CONFIG_RATIO
+#define NRFX_I2S_CONFIG_RATIO 2000
+#endif
+
+// <o> NRFX_I2S_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_I2S_CONFIG_IRQ_PRIORITY
+#define NRFX_I2S_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_I2S_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_I2S_CONFIG_LOG_ENABLED
+#define NRFX_I2S_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_I2S_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_I2S_CONFIG_LOG_LEVEL
+#define NRFX_I2S_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_I2S_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_I2S_CONFIG_INFO_COLOR
+#define NRFX_I2S_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_I2S_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_I2S_CONFIG_DEBUG_COLOR
+#define NRFX_I2S_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_LPCOMP_ENABLED - nrfx_lpcomp - LPCOMP peripheral driver
+//==========================================================
+#ifndef NRFX_LPCOMP_ENABLED
+#define NRFX_LPCOMP_ENABLED 1
+#endif
+// <o> NRFX_LPCOMP_CONFIG_REFERENCE - Reference voltage
+
+// <0=> Supply 1/8
+// <1=> Supply 2/8
+// <2=> Supply 3/8
+// <3=> Supply 4/8
+// <4=> Supply 5/8
+// <5=> Supply 6/8
+// <6=> Supply 7/8
+// <8=> Supply 1/16 (nRF52)
+// <9=> Supply 3/16 (nRF52)
+// <10=> Supply 5/16 (nRF52)
+// <11=> Supply 7/16 (nRF52)
+// <12=> Supply 9/16 (nRF52)
+// <13=> Supply 11/16 (nRF52)
+// <14=> Supply 13/16 (nRF52)
+// <15=> Supply 15/16 (nRF52)
+// <7=> External Ref 0
+// <65543=> External Ref 1
+
+#ifndef NRFX_LPCOMP_CONFIG_REFERENCE
+#define NRFX_LPCOMP_CONFIG_REFERENCE 3
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_DETECTION - Detection
+
+// <0=> Crossing
+// <1=> Up
+// <2=> Down
+
+#ifndef NRFX_LPCOMP_CONFIG_DETECTION
+#define NRFX_LPCOMP_CONFIG_DETECTION 2
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_INPUT - Analog input
+
+// <0=> 0
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_LPCOMP_CONFIG_INPUT
+#define NRFX_LPCOMP_CONFIG_INPUT 0
+#endif
+
+// <q> NRFX_LPCOMP_CONFIG_HYST - Hysteresis
+
+
+#ifndef NRFX_LPCOMP_CONFIG_HYST
+#define NRFX_LPCOMP_CONFIG_HYST 0
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_LPCOMP_CONFIG_IRQ_PRIORITY
+#define NRFX_LPCOMP_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED
+#define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_LPCOMP_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL
+#define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_LPCOMP_CONFIG_INFO_COLOR
+#define NRFX_LPCOMP_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_LPCOMP_CONFIG_DEBUG_COLOR
+#define NRFX_LPCOMP_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver
+//==========================================================
+#ifndef NRFX_PDM_ENABLED
+#define NRFX_PDM_ENABLED 1
+#endif
+// <o> NRFX_PDM_CONFIG_MODE - Mode
+
+// <0=> Stereo
+// <1=> Mono
+
+#ifndef NRFX_PDM_CONFIG_MODE
+#define NRFX_PDM_CONFIG_MODE 1
+#endif
+
+// <o> NRFX_PDM_CONFIG_EDGE - Edge
+
+// <0=> Left falling
+// <1=> Left rising
+
+#ifndef NRFX_PDM_CONFIG_EDGE
+#define NRFX_PDM_CONFIG_EDGE 0
+#endif
+
+// <o> NRFX_PDM_CONFIG_CLOCK_FREQ - Clock frequency
+
+// <134217728=> 1000k
+// <138412032=> 1032k (default)
+// <142606336=> 1067k
+
+#ifndef NRFX_PDM_CONFIG_CLOCK_FREQ
+#define NRFX_PDM_CONFIG_CLOCK_FREQ 138412032
+#endif
+
+// <o> NRFX_PDM_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_PDM_CONFIG_IRQ_PRIORITY
+#define NRFX_PDM_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PDM_CONFIG_LOG_ENABLED
+#define NRFX_PDM_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PDM_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PDM_CONFIG_LOG_LEVEL
+#define NRFX_PDM_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PDM_CONFIG_INFO_COLOR
+#define NRFX_PDM_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PDM_CONFIG_DEBUG_COLOR
+#define NRFX_PDM_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver
+//==========================================================
+#ifndef NRFX_POWER_ENABLED
+#define NRFX_POWER_ENABLED 1
+#endif
+// <o> NRFX_POWER_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_POWER_CONFIG_IRQ_PRIORITY
+#define NRFX_POWER_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator
+
+
+// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
+
+#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCEN
+#define NRFX_POWER_CONFIG_DEFAULT_DCDCEN 0
+#endif
+
+// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator
+
+
+// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
+
+#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCENHV
+#define NRFX_POWER_CONFIG_DEFAULT_DCDCENHV 0
+#endif
+
+// </e>
+
+// <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator
+//==========================================================
+#ifndef NRFX_PPI_ENABLED
+#define NRFX_PPI_ENABLED 1
+#endif
+// <e> NRFX_PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PPI_CONFIG_LOG_ENABLED
+#define NRFX_PPI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PPI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PPI_CONFIG_LOG_LEVEL
+#define NRFX_PPI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PPI_CONFIG_INFO_COLOR
+#define NRFX_PPI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PPI_CONFIG_DEBUG_COLOR
+#define NRFX_PPI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing module
+//==========================================================
+#ifndef NRFX_PRS_ENABLED
+#define NRFX_PRS_ENABLED 1
+#endif
+// <q> NRFX_PRS_BOX_0_ENABLED - Enables box 0 in the module.
+
+
+#ifndef NRFX_PRS_BOX_0_ENABLED
+#define NRFX_PRS_BOX_0_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_1_ENABLED - Enables box 1 in the module.
+
+
+#ifndef NRFX_PRS_BOX_1_ENABLED
+#define NRFX_PRS_BOX_1_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_2_ENABLED - Enables box 2 in the module.
+
+
+#ifndef NRFX_PRS_BOX_2_ENABLED
+#define NRFX_PRS_BOX_2_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_3_ENABLED - Enables box 3 in the module.
+
+
+#ifndef NRFX_PRS_BOX_3_ENABLED
+#define NRFX_PRS_BOX_3_ENABLED 1
+#endif
+
+// <q> NRFX_PRS_BOX_4_ENABLED - Enables box 4 in the module.
+
+
+#ifndef NRFX_PRS_BOX_4_ENABLED
+#define NRFX_PRS_BOX_4_ENABLED 1
+#endif
+
+// <e> NRFX_PRS_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PRS_CONFIG_LOG_ENABLED
+#define NRFX_PRS_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PRS_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PRS_CONFIG_LOG_LEVEL
+#define NRFX_PRS_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PRS_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PRS_CONFIG_INFO_COLOR
+#define NRFX_PRS_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PRS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PRS_CONFIG_DEBUG_COLOR
+#define NRFX_PRS_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver
+//==========================================================
+#ifndef NRFX_PWM_ENABLED
+#define NRFX_PWM_ENABLED 1
+#endif
+// <q> NRFX_PWM0_ENABLED - Enable PWM0 instance
+
+
+#ifndef NRFX_PWM0_ENABLED
+#define NRFX_PWM0_ENABLED 1
+#endif
+
+// <q> NRFX_PWM1_ENABLED - Enable PWM1 instance
+
+
+#ifndef NRFX_PWM1_ENABLED
+#define NRFX_PWM1_ENABLED 1
+#endif
+
+// <q> NRFX_PWM2_ENABLED - Enable PWM2 instance
+
+
+#ifndef NRFX_PWM2_ENABLED
+#define NRFX_PWM2_ENABLED 1
+#endif
+
+// <q> NRFX_PWM3_ENABLED - Enable PWM3 instance
+
+
+#ifndef NRFX_PWM3_ENABLED
+#define NRFX_PWM3_ENABLED 1
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31>
+
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN
+#define NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN 31
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31>
+
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN
+#define NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN 31
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31>
+
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN
+#define NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN 31
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31>
+
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN
+#define NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN 31
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock
+
+// <0=> 16 MHz
+// <1=> 8 MHz
+// <2=> 4 MHz
+// <3=> 2 MHz
+// <4=> 1 MHz
+// <5=> 500 kHz
+// <6=> 250 kHz
+// <7=> 125 kHz
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK
+#define NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK 4
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode
+
+// <0=> Up
+// <1=> Up and Down
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE
+#define NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE 0
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE - Top value
+#ifndef NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE
+#define NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE 1000
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode
+
+// <0=> Common
+// <1=> Grouped
+// <2=> Individual
+// <3=> Waveform
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE
+#define NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE 0
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_STEP_MODE - Step mode
+
+// <0=> Auto
+// <1=> Triggered
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_STEP_MODE
+#define NRFX_PWM_DEFAULT_CONFIG_STEP_MODE 0
+#endif
+
+// <o> NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_PWM_CONFIG_LOG_ENABLED
+#define NRFX_PWM_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_PWM_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_PWM_CONFIG_LOG_LEVEL
+#define NRFX_PWM_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PWM_CONFIG_INFO_COLOR
+#define NRFX_PWM_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_PWM_CONFIG_DEBUG_COLOR
+#define NRFX_PWM_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
+//==========================================================
+#ifndef NRFX_QDEC_ENABLED
+#define NRFX_QDEC_ENABLED 1
+#endif
+// <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
+
+// <0=> 10 Samples
+// <1=> 40 Samples
+// <2=> 80 Samples
+// <3=> 120 Samples
+// <4=> 160 Samples
+// <5=> 200 Samples
+// <6=> 240 Samples
+// <7=> 280 Samples
+
+#ifndef NRFX_QDEC_CONFIG_REPORTPER
+#define NRFX_QDEC_CONFIG_REPORTPER 0
+#endif
+
+// <o> NRFX_QDEC_CONFIG_SAMPLEPER - Sample period
+
+// <0=> 128 us
+// <1=> 256 us
+// <2=> 512 us
+// <3=> 1024 us
+// <4=> 2048 us
+// <5=> 4096 us
+// <6=> 8192 us
+// <7=> 16384 us
+
+#ifndef NRFX_QDEC_CONFIG_SAMPLEPER
+#define NRFX_QDEC_CONFIG_SAMPLEPER 7
+#endif
+
+// <o> NRFX_QDEC_CONFIG_PIO_A - A pin <0-31>
+
+
+#ifndef NRFX_QDEC_CONFIG_PIO_A
+#define NRFX_QDEC_CONFIG_PIO_A 31
+#endif
+
+// <o> NRFX_QDEC_CONFIG_PIO_B - B pin <0-31>
+
+
+#ifndef NRFX_QDEC_CONFIG_PIO_B
+#define NRFX_QDEC_CONFIG_PIO_B 31
+#endif
+
+// <o> NRFX_QDEC_CONFIG_PIO_LED - LED pin <0-31>
+
+
+#ifndef NRFX_QDEC_CONFIG_PIO_LED
+#define NRFX_QDEC_CONFIG_PIO_LED 31
+#endif
+
+// <o> NRFX_QDEC_CONFIG_LEDPRE - LED pre
+#ifndef NRFX_QDEC_CONFIG_LEDPRE
+#define NRFX_QDEC_CONFIG_LEDPRE 511
+#endif
+
+// <o> NRFX_QDEC_CONFIG_LEDPOL - LED polarity
+
+// <0=> Active low
+// <1=> Active high
+
+#ifndef NRFX_QDEC_CONFIG_LEDPOL
+#define NRFX_QDEC_CONFIG_LEDPOL 1
+#endif
+
+// <q> NRFX_QDEC_CONFIG_DBFEN - Debouncing enable
+
+
+#ifndef NRFX_QDEC_CONFIG_DBFEN
+#define NRFX_QDEC_CONFIG_DBFEN 0
+#endif
+
+// <q> NRFX_QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable
+
+
+#ifndef NRFX_QDEC_CONFIG_SAMPLE_INTEN
+#define NRFX_QDEC_CONFIG_SAMPLE_INTEN 0
+#endif
+
+// <o> NRFX_QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_QDEC_CONFIG_IRQ_PRIORITY
+#define NRFX_QDEC_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_QDEC_CONFIG_LOG_ENABLED
+#define NRFX_QDEC_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_QDEC_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_QDEC_CONFIG_LOG_LEVEL
+#define NRFX_QDEC_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_QDEC_CONFIG_INFO_COLOR
+#define NRFX_QDEC_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_QDEC_CONFIG_DEBUG_COLOR
+#define NRFX_QDEC_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_QSPI_ENABLED - nrfx_qspi - QSPI peripheral driver
+//==========================================================
+#ifndef NRFX_QSPI_ENABLED
+#define NRFX_QSPI_ENABLED 1
+#endif
+// <o> NRFX_QSPI_CONFIG_SCK_DELAY - tSHSL, tWHSL and tSHWL in number of 16 MHz periods (62.5 ns). <0-255>
+
+
+#ifndef NRFX_QSPI_CONFIG_SCK_DELAY
+#define NRFX_QSPI_CONFIG_SCK_DELAY 1
+#endif
+
+// <o> NRFX_QSPI_CONFIG_XIP_OFFSET - Address offset in the external memory for Execute in Place operation.
+#ifndef NRFX_QSPI_CONFIG_XIP_OFFSET
+#define NRFX_QSPI_CONFIG_XIP_OFFSET 0
+#endif
+
+// <o> NRFX_QSPI_CONFIG_READOC - Number of data lines and opcode used for reading.
+
+// <0=> FastRead
+// <1=> Read2O
+// <2=> Read2IO
+// <3=> Read4O
+// <4=> Read4IO
+
+#ifndef NRFX_QSPI_CONFIG_READOC
+#define NRFX_QSPI_CONFIG_READOC 0
+#endif
+
+// <o> NRFX_QSPI_CONFIG_WRITEOC - Number of data lines and opcode used for writing.
+
+// <0=> PP
+// <1=> PP2O
+// <2=> PP4O
+// <3=> PP4IO
+
+#ifndef NRFX_QSPI_CONFIG_WRITEOC
+#define NRFX_QSPI_CONFIG_WRITEOC 0
+#endif
+
+// <o> NRFX_QSPI_CONFIG_ADDRMODE - Addressing mode.
+
+// <0=> 24bit
+// <1=> 32bit
+
+#ifndef NRFX_QSPI_CONFIG_ADDRMODE
+#define NRFX_QSPI_CONFIG_ADDRMODE 0
+#endif
+
+// <o> NRFX_QSPI_CONFIG_MODE - SPI mode.
+
+// <0=> Mode 0
+// <1=> Mode 1
+
+#ifndef NRFX_QSPI_CONFIG_MODE
+#define NRFX_QSPI_CONFIG_MODE 0
+#endif
+
+// <o> NRFX_QSPI_CONFIG_FREQUENCY - Frequency divider.
+
+// <0=> 32MHz/1
+// <1=> 32MHz/2
+// <2=> 32MHz/3
+// <3=> 32MHz/4
+// <4=> 32MHz/5
+// <5=> 32MHz/6
+// <6=> 32MHz/7
+// <7=> 32MHz/8
+// <8=> 32MHz/9
+// <9=> 32MHz/10
+// <10=> 32MHz/11
+// <11=> 32MHz/12
+// <12=> 32MHz/13
+// <13=> 32MHz/14
+// <14=> 32MHz/15
+// <15=> 32MHz/16
+
+#ifndef NRFX_QSPI_CONFIG_FREQUENCY
+#define NRFX_QSPI_CONFIG_FREQUENCY 15
+#endif
+
+// <s> NRFX_QSPI_PIN_SCK - SCK pin value.
+#ifndef NRFX_QSPI_PIN_SCK
+#define NRFX_QSPI_PIN_SCK NRF_QSPI_PIN_NOT_CONNECTED
+#endif
+
+// <s> NRFX_QSPI_PIN_CSN - CSN pin value.
+#ifndef NRFX_QSPI_PIN_CSN
+#define NRFX_QSPI_PIN_CSN NRF_QSPI_PIN_NOT_CONNECTED
+#endif
+
+// <s> NRFX_QSPI_PIN_IO0 - IO0 pin value.
+#ifndef NRFX_QSPI_PIN_IO0
+#define NRFX_QSPI_PIN_IO0 NRF_QSPI_PIN_NOT_CONNECTED
+#endif
+
+// <s> NRFX_QSPI_PIN_IO1 - IO1 pin value.
+#ifndef NRFX_QSPI_PIN_IO1
+#define NRFX_QSPI_PIN_IO1 NRF_QSPI_PIN_NOT_CONNECTED
+#endif
+
+// <s> NRFX_QSPI_PIN_IO2 - IO2 pin value.
+#ifndef NRFX_QSPI_PIN_IO2
+#define NRFX_QSPI_PIN_IO2 NRF_QSPI_PIN_NOT_CONNECTED
+#endif
+
+// <s> NRFX_QSPI_PIN_IO3 - IO3 pin value.
+#ifndef NRFX_QSPI_PIN_IO3
+#define NRFX_QSPI_PIN_IO3 NRF_QSPI_PIN_NOT_CONNECTED
+#endif
+
+// <o> NRFX_QSPI_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_QSPI_CONFIG_IRQ_PRIORITY
+#define NRFX_QSPI_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// </e>
+
+// <e> NRFX_RNG_ENABLED - nrfx_rng - RNG peripheral driver
+//==========================================================
+#ifndef NRFX_RNG_ENABLED
+#define NRFX_RNG_ENABLED 1
+#endif
+// <q> NRFX_RNG_CONFIG_ERROR_CORRECTION - Error correction
+
+
+#ifndef NRFX_RNG_CONFIG_ERROR_CORRECTION
+#define NRFX_RNG_CONFIG_ERROR_CORRECTION 1
+#endif
+
+// <o> NRFX_RNG_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_RNG_CONFIG_IRQ_PRIORITY
+#define NRFX_RNG_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_RNG_CONFIG_LOG_ENABLED
+#define NRFX_RNG_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_RNG_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_RNG_CONFIG_LOG_LEVEL
+#define NRFX_RNG_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RNG_CONFIG_INFO_COLOR
+#define NRFX_RNG_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RNG_CONFIG_DEBUG_COLOR
+#define NRFX_RNG_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver
+//==========================================================
+#ifndef NRFX_RTC_ENABLED
+#define NRFX_RTC_ENABLED 1
+#endif
+// <q> NRFX_RTC0_ENABLED - Enable RTC0 instance
+
+
+#ifndef NRFX_RTC0_ENABLED
+#define NRFX_RTC0_ENABLED 1
+#endif
+
+// <q> NRFX_RTC1_ENABLED - Enable RTC1 instance
+
+
+#ifndef NRFX_RTC1_ENABLED
+#define NRFX_RTC1_ENABLED 1
+#endif
+
+// <q> NRFX_RTC2_ENABLED - Enable RTC2 instance
+
+
+#ifndef NRFX_RTC2_ENABLED
+#define NRFX_RTC2_ENABLED 1
+#endif
+
+// <o> NRFX_RTC_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt
+#ifndef NRFX_RTC_MAXIMUM_LATENCY_US
+#define NRFX_RTC_MAXIMUM_LATENCY_US 2000
+#endif
+
+// <o> NRFX_RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768>
+
+
+#ifndef NRFX_RTC_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_RTC_DEFAULT_CONFIG_FREQUENCY 32768
+#endif
+
+// <q> NRFX_RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering
+
+
+#ifndef NRFX_RTC_DEFAULT_CONFIG_RELIABLE
+#define NRFX_RTC_DEFAULT_CONFIG_RELIABLE 0
+#endif
+
+// <o> NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_RTC_CONFIG_LOG_ENABLED
+#define NRFX_RTC_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_RTC_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_RTC_CONFIG_LOG_LEVEL
+#define NRFX_RTC_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RTC_CONFIG_INFO_COLOR
+#define NRFX_RTC_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_RTC_CONFIG_DEBUG_COLOR
+#define NRFX_RTC_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver
+//==========================================================
+#ifndef NRFX_SAADC_ENABLED
+#define NRFX_SAADC_ENABLED 1
+#endif
+// <o> NRFX_SAADC_CONFIG_RESOLUTION - Resolution
+
+// <0=> 8 bit
+// <1=> 10 bit
+// <2=> 12 bit
+// <3=> 14 bit
+
+#ifndef NRFX_SAADC_CONFIG_RESOLUTION
+#define NRFX_SAADC_CONFIG_RESOLUTION 1
+#endif
+
+// <o> NRFX_SAADC_CONFIG_OVERSAMPLE - Sample period
+
+// <0=> Disabled
+// <1=> 2x
+// <2=> 4x
+// <3=> 8x
+// <4=> 16x
+// <5=> 32x
+// <6=> 64x
+// <7=> 128x
+// <8=> 256x
+
+#ifndef NRFX_SAADC_CONFIG_OVERSAMPLE
+#define NRFX_SAADC_CONFIG_OVERSAMPLE 0
+#endif
+
+// <q> NRFX_SAADC_CONFIG_LP_MODE - Enabling low power mode
+
+
+#ifndef NRFX_SAADC_CONFIG_LP_MODE
+#define NRFX_SAADC_CONFIG_LP_MODE 0
+#endif
+
+// <o> NRFX_SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_SAADC_CONFIG_IRQ_PRIORITY
+#define NRFX_SAADC_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SAADC_CONFIG_LOG_ENABLED
+#define NRFX_SAADC_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SAADC_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SAADC_CONFIG_LOG_LEVEL
+#define NRFX_SAADC_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SAADC_CONFIG_INFO_COLOR
+#define NRFX_SAADC_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SAADC_CONFIG_DEBUG_COLOR
+#define NRFX_SAADC_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver
+//==========================================================
+#ifndef NRFX_SPIM_ENABLED
+#define NRFX_SPIM_ENABLED 1
+#endif
+// <q> NRFX_SPIM0_ENABLED - Enable SPIM0 instance
+
+
+#ifndef NRFX_SPIM0_ENABLED
+#define NRFX_SPIM0_ENABLED 1
+#endif
+
+// <q> NRFX_SPIM1_ENABLED - Enable SPIM1 instance
+
+
+#ifndef NRFX_SPIM1_ENABLED
+#define NRFX_SPIM1_ENABLED 1
+#endif
+
+// <q> NRFX_SPIM2_ENABLED - Enable SPIM2 instance
+
+
+#ifndef NRFX_SPIM2_ENABLED
+#define NRFX_SPIM2_ENABLED 1
+#endif
+
+// <q> NRFX_SPIM3_ENABLED - Enable SPIM3 instance
+
+
+#ifndef NRFX_SPIM3_ENABLED
+#define NRFX_SPIM3_ENABLED 1
+#endif
+
+// <q> NRFX_SPIM_EXTENDED_ENABLED - Enable extended SPIM features
+
+
+#ifndef NRFX_SPIM_EXTENDED_ENABLED
+#define NRFX_SPIM_EXTENDED_ENABLED 0
+#endif
+
+// <o> NRFX_SPIM_MISO_PULL_CFG - MISO pin pull configuration.
+
+// <0=> NRF_GPIO_PIN_NOPULL
+// <1=> NRF_GPIO_PIN_PULLDOWN
+// <3=> NRF_GPIO_PIN_PULLUP
+
+#ifndef NRFX_SPIM_MISO_PULL_CFG
+#define NRFX_SPIM_MISO_PULL_CFG 1
+#endif
+
+// <o> NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SPIM_CONFIG_LOG_ENABLED
+#define NRFX_SPIM_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SPIM_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SPIM_CONFIG_LOG_LEVEL
+#define NRFX_SPIM_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIM_CONFIG_INFO_COLOR
+#define NRFX_SPIM_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SPIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIM_CONFIG_DEBUG_COLOR
+#define NRFX_SPIM_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// <q> NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED - Enables nRF52840 anomaly 198 workaround for SPIM3.
+
+
+// <i> See more in the Errata document located at
+// <i> https://infocenter.nordicsemi.com/
+
+#ifndef NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED
+#define NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED 0
+#endif
+
+// </e>
+
+// <e> NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver
+//==========================================================
+#ifndef NRFX_SPIS_ENABLED
+#define NRFX_SPIS_ENABLED 1
+#endif
+// <q> NRFX_SPIS0_ENABLED - Enable SPIS0 instance
+
+
+#ifndef NRFX_SPIS0_ENABLED
+#define NRFX_SPIS0_ENABLED 1
+#endif
+
+// <q> NRFX_SPIS1_ENABLED - Enable SPIS1 instance
+
+
+#ifndef NRFX_SPIS1_ENABLED
+#define NRFX_SPIS1_ENABLED 1
+#endif
+
+// <q> NRFX_SPIS2_ENABLED - Enable SPIS2 instance
+
+
+#ifndef NRFX_SPIS2_ENABLED
+#define NRFX_SPIS2_ENABLED 1
+#endif
+
+// <o> NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <o> NRFX_SPIS_DEFAULT_DEF - SPIS default DEF character <0-255>
+
+
+#ifndef NRFX_SPIS_DEFAULT_DEF
+#define NRFX_SPIS_DEFAULT_DEF 255
+#endif
+
+// <o> NRFX_SPIS_DEFAULT_ORC - SPIS default ORC character <0-255>
+
+
+#ifndef NRFX_SPIS_DEFAULT_ORC
+#define NRFX_SPIS_DEFAULT_ORC 255
+#endif
+
+// <e> NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SPIS_CONFIG_LOG_ENABLED
+#define NRFX_SPIS_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SPIS_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SPIS_CONFIG_LOG_LEVEL
+#define NRFX_SPIS_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIS_CONFIG_INFO_COLOR
+#define NRFX_SPIS_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR
+#define NRFX_SPIS_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SPI_ENABLED - nrfx_spi - SPI peripheral driver
+//==========================================================
+#ifndef NRFX_SPI_ENABLED
+#define NRFX_SPI_ENABLED 1
+#endif
+// <q> NRFX_SPI0_ENABLED - Enable SPI0 instance
+
+
+#ifndef NRFX_SPI0_ENABLED
+#define NRFX_SPI0_ENABLED 1
+#endif
+
+// <q> NRFX_SPI1_ENABLED - Enable SPI1 instance
+
+
+#ifndef NRFX_SPI1_ENABLED
+#define NRFX_SPI1_ENABLED 1
+#endif
+
+// <q> NRFX_SPI2_ENABLED - Enable SPI2 instance
+
+
+#ifndef NRFX_SPI2_ENABLED
+#define NRFX_SPI2_ENABLED 1
+#endif
+
+// <o> NRFX_SPI_MISO_PULL_CFG - MISO pin pull configuration.
+
+// <0=> NRF_GPIO_PIN_NOPULL
+// <1=> NRF_GPIO_PIN_PULLDOWN
+// <3=> NRF_GPIO_PIN_PULLUP
+
+#ifndef NRFX_SPI_MISO_PULL_CFG
+#define NRFX_SPI_MISO_PULL_CFG 1
+#endif
+
+// <o> NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SPI_CONFIG_LOG_ENABLED
+#define NRFX_SPI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SPI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SPI_CONFIG_LOG_LEVEL
+#define NRFX_SPI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPI_CONFIG_INFO_COLOR
+#define NRFX_SPI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SPI_CONFIG_DEBUG_COLOR
+#define NRFX_SPI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_SWI_ENABLED - nrfx_swi - SWI/EGU peripheral allocator
+//==========================================================
+#ifndef NRFX_SWI_ENABLED
+#define NRFX_SWI_ENABLED 1
+#endif
+// <q> NRFX_EGU_ENABLED - Enable EGU support
+
+
+#ifndef NRFX_EGU_ENABLED
+#define NRFX_EGU_ENABLED 0
+#endif
+
+// <q> NRFX_SWI0_DISABLED - Exclude SWI0 from being utilized by the driver
+
+
+#ifndef NRFX_SWI0_DISABLED
+#define NRFX_SWI0_DISABLED 0
+#endif
+
+// <q> NRFX_SWI1_DISABLED - Exclude SWI1 from being utilized by the driver
+
+
+#ifndef NRFX_SWI1_DISABLED
+#define NRFX_SWI1_DISABLED 0
+#endif
+
+// <q> NRFX_SWI2_DISABLED - Exclude SWI2 from being utilized by the driver
+
+
+#ifndef NRFX_SWI2_DISABLED
+#define NRFX_SWI2_DISABLED 0
+#endif
+
+// <q> NRFX_SWI3_DISABLED - Exclude SWI3 from being utilized by the driver
+
+
+#ifndef NRFX_SWI3_DISABLED
+#define NRFX_SWI3_DISABLED 0
+#endif
+
+// <q> NRFX_SWI4_DISABLED - Exclude SWI4 from being utilized by the driver
+
+
+#ifndef NRFX_SWI4_DISABLED
+#define NRFX_SWI4_DISABLED 0
+#endif
+
+// <q> NRFX_SWI5_DISABLED - Exclude SWI5 from being utilized by the driver
+
+
+#ifndef NRFX_SWI5_DISABLED
+#define NRFX_SWI5_DISABLED 0
+#endif
+
+// <e> NRFX_SWI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_SWI_CONFIG_LOG_ENABLED
+#define NRFX_SWI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_SWI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_SWI_CONFIG_LOG_LEVEL
+#define NRFX_SWI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_SWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SWI_CONFIG_INFO_COLOR
+#define NRFX_SWI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_SWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_SWI_CONFIG_DEBUG_COLOR
+#define NRFX_SWI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <q> NRFX_SYSTICK_ENABLED - nrfx_systick - ARM(R) SysTick driver
+
+
+#ifndef NRFX_SYSTICK_ENABLED
+#define NRFX_SYSTICK_ENABLED 1
+#endif
+
+// <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
+//==========================================================
+#ifndef NRFX_TIMER_ENABLED
+#define NRFX_TIMER_ENABLED 1
+#endif
+// <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance
+
+
+#ifndef NRFX_TIMER0_ENABLED
+#define NRFX_TIMER0_ENABLED 1
+#endif
+
+// <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance
+
+
+#ifndef NRFX_TIMER1_ENABLED
+#define NRFX_TIMER1_ENABLED 1
+#endif
+
+// <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance
+
+
+#ifndef NRFX_TIMER2_ENABLED
+#define NRFX_TIMER2_ENABLED 1
+#endif
+
+// <q> NRFX_TIMER3_ENABLED - Enable TIMER3 instance
+
+
+#ifndef NRFX_TIMER3_ENABLED
+#define NRFX_TIMER3_ENABLED 1
+#endif
+
+// <q> NRFX_TIMER4_ENABLED - Enable TIMER4 instance
+
+
+#ifndef NRFX_TIMER4_ENABLED
+#define NRFX_TIMER4_ENABLED 1
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
+
+// <0=> 16 MHz
+// <1=> 8 MHz
+// <2=> 4 MHz
+// <3=> 2 MHz
+// <4=> 1 MHz
+// <5=> 500 kHz
+// <6=> 250 kHz
+// <7=> 125 kHz
+// <8=> 62.5 kHz
+// <9=> 31.25 kHz
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 0
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
+
+// <0=> Timer
+// <1=> Counter
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_MODE
+#define NRFX_TIMER_DEFAULT_CONFIG_MODE 0
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
+
+// <0=> 16 bit
+// <1=> 8 bit
+// <2=> 24 bit
+// <3=> 32 bit
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH
+#define NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
+#endif
+
+// <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TIMER_CONFIG_LOG_ENABLED
+#define NRFX_TIMER_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TIMER_CONFIG_LOG_LEVEL
+#define NRFX_TIMER_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TIMER_CONFIG_INFO_COLOR
+#define NRFX_TIMER_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR
+#define NRFX_TIMER_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver
+//==========================================================
+#ifndef NRFX_TWIM_ENABLED
+#define NRFX_TWIM_ENABLED 1
+#endif
+// <q> NRFX_TWIM0_ENABLED - Enable TWIM0 instance
+
+
+#ifndef NRFX_TWIM0_ENABLED
+#define NRFX_TWIM0_ENABLED 1
+#endif
+
+// <q> NRFX_TWIM1_ENABLED - Enable TWIM1 instance
+
+
+#ifndef NRFX_TWIM1_ENABLED
+#define NRFX_TWIM1_ENABLED 1
+#endif
+
+// <o> NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY - Frequency
+
+// <26738688=> 100k
+// <67108864=> 250k
+// <104857600=> 400k
+
+#ifndef NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688
+#endif
+
+// <q> NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
+
+
+#ifndef NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT
+#define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
+#endif
+
+// <o> NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TWIM_CONFIG_LOG_ENABLED
+#define NRFX_TWIM_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TWIM_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TWIM_CONFIG_LOG_LEVEL
+#define NRFX_TWIM_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TWIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWIM_CONFIG_INFO_COLOR
+#define NRFX_TWIM_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TWIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR
+#define NRFX_TWIM_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver
+//==========================================================
+#ifndef NRFX_TWIS_ENABLED
+#define NRFX_TWIS_ENABLED 1
+#endif
+// <q> NRFX_TWIS0_ENABLED - Enable TWIS0 instance
+
+
+#ifndef NRFX_TWIS0_ENABLED
+#define NRFX_TWIS0_ENABLED 1
+#endif
+
+// <q> NRFX_TWIS1_ENABLED - Enable TWIS1 instance
+
+
+#ifndef NRFX_TWIS1_ENABLED
+#define NRFX_TWIS1_ENABLED 1
+#endif
+
+// <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once
+
+
+// <i> Optimization flag. Registers used by TWIS are shared by other peripherals. Normally, during initialization driver tries to clear all registers to known state before doing the initialization itself. This gives initialization safe procedure, no matter when it would be called. If you activate TWIS only once and do never uninitialize it - set this flag to 1 what gives more optimal code.
+
+#ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY
+#define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
+#endif
+
+// <q> NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode
+
+
+// <i> Synchronous mode would be used in specific situations. And it uses some additional code and data memory to safely process state machine by polling it in status functions. If this functionality is not required it may be disabled to free some resources.
+
+#ifndef NRFX_TWIS_NO_SYNC_MODE
+#define NRFX_TWIS_NO_SYNC_MODE 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR0 - Address0
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR0
+#define NRFX_TWIS_DEFAULT_CONFIG_ADDR0 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR1 - Address1
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR1
+#define NRFX_TWIS_DEFAULT_CONFIG_ADDR1 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration
+
+// <0=> Disabled
+// <1=> Pull down
+// <3=> Pull up
+
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL
+#define NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration
+
+// <0=> Disabled
+// <1=> Pull down
+// <3=> Pull up
+
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL
+#define NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL 0
+#endif
+
+// <o> NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TWIS_CONFIG_LOG_ENABLED
+#define NRFX_TWIS_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TWIS_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TWIS_CONFIG_LOG_LEVEL
+#define NRFX_TWIS_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWIS_CONFIG_INFO_COLOR
+#define NRFX_TWIS_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWIS_CONFIG_DEBUG_COLOR
+#define NRFX_TWIS_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_TWI_ENABLED - nrfx_twi - TWI peripheral driver
+//==========================================================
+#ifndef NRFX_TWI_ENABLED
+#define NRFX_TWI_ENABLED 1
+#endif
+// <q> NRFX_TWI0_ENABLED - Enable TWI0 instance
+
+
+#ifndef NRFX_TWI0_ENABLED
+#define NRFX_TWI0_ENABLED 1
+#endif
+
+// <q> NRFX_TWI1_ENABLED - Enable TWI1 instance
+
+
+#ifndef NRFX_TWI1_ENABLED
+#define NRFX_TWI1_ENABLED 1
+#endif
+
+// <o> NRFX_TWI_DEFAULT_CONFIG_FREQUENCY - Frequency
+
+// <26738688=> 100k
+// <67108864=> 250k
+// <104857600=> 400k
+
+#ifndef NRFX_TWI_DEFAULT_CONFIG_FREQUENCY
+#define NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 26738688
+#endif
+
+// <q> NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
+
+
+#ifndef NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
+#define NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
+#endif
+
+// <o> NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_TWI_CONFIG_LOG_ENABLED
+#define NRFX_TWI_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_TWI_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_TWI_CONFIG_LOG_LEVEL
+#define NRFX_TWI_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWI_CONFIG_INFO_COLOR
+#define NRFX_TWI_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_TWI_CONFIG_DEBUG_COLOR
+#define NRFX_TWI_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver
+//==========================================================
+#ifndef NRFX_UARTE_ENABLED
+#define NRFX_UARTE_ENABLED 1
+#endif
+// <o> NRFX_UARTE0_ENABLED - Enable UARTE0 instance
+#ifndef NRFX_UARTE0_ENABLED
+#define NRFX_UARTE0_ENABLED 1
+#endif
+
+// <o> NRFX_UARTE1_ENABLED - Enable UARTE1 instance
+#ifndef NRFX_UARTE1_ENABLED
+#define NRFX_UARTE1_ENABLED 1
+#endif
+
+// <o> NRFX_UARTE_DEFAULT_CONFIG_HWFC - Hardware Flow Control
+
+// <0=> Disabled
+// <1=> Enabled
+
+#ifndef NRFX_UARTE_DEFAULT_CONFIG_HWFC
+#define NRFX_UARTE_DEFAULT_CONFIG_HWFC 0
+#endif
+
+// <o> NRFX_UARTE_DEFAULT_CONFIG_PARITY - Parity
+
+// <0=> Excluded
+// <14=> Included
+
+#ifndef NRFX_UARTE_DEFAULT_CONFIG_PARITY
+#define NRFX_UARTE_DEFAULT_CONFIG_PARITY 0
+#endif
+
+// <o> NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
+
+// <323584=> 1200 baud
+// <643072=> 2400 baud
+// <1290240=> 4800 baud
+// <2576384=> 9600 baud
+// <3862528=> 14400 baud
+// <5152768=> 19200 baud
+// <7716864=> 28800 baud
+// <8388608=> 31250 baud
+// <10289152=> 38400 baud
+// <15007744=> 56000 baud
+// <15400960=> 57600 baud
+// <20615168=> 76800 baud
+// <30801920=> 115200 baud
+// <61865984=> 230400 baud
+// <67108864=> 250000 baud
+// <121634816=> 460800 baud
+// <251658240=> 921600 baud
+// <268435456=> 1000000 baud
+
+#ifndef NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE
+#define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 30801920
+#endif
+
+// <o> NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_UARTE_CONFIG_LOG_ENABLED
+#define NRFX_UARTE_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_UARTE_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_UARTE_CONFIG_LOG_LEVEL
+#define NRFX_UARTE_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_UARTE_CONFIG_INFO_COLOR
+#define NRFX_UARTE_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR
+#define NRFX_UARTE_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver
+//==========================================================
+#ifndef NRFX_UART_ENABLED
+#define NRFX_UART_ENABLED 1
+#endif
+// <o> NRFX_UART0_ENABLED - Enable UART0 instance
+#ifndef NRFX_UART0_ENABLED
+#define NRFX_UART0_ENABLED 1
+#endif
+
+// <o> NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
+
+// <0=> Disabled
+// <1=> Enabled
+
+#ifndef NRFX_UART_DEFAULT_CONFIG_HWFC
+#define NRFX_UART_DEFAULT_CONFIG_HWFC 0
+#endif
+
+// <o> NRFX_UART_DEFAULT_CONFIG_PARITY - Parity
+
+// <0=> Excluded
+// <14=> Included
+
+#ifndef NRFX_UART_DEFAULT_CONFIG_PARITY
+#define NRFX_UART_DEFAULT_CONFIG_PARITY 0
+#endif
+
+// <o> NRFX_UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
+
+// <323584=> 1200 baud
+// <643072=> 2400 baud
+// <1290240=> 4800 baud
+// <2576384=> 9600 baud
+// <3866624=> 14400 baud
+// <5152768=> 19200 baud
+// <7729152=> 28800 baud
+// <8388608=> 31250 baud
+// <10309632=> 38400 baud
+// <15007744=> 56000 baud
+// <15462400=> 57600 baud
+// <20615168=> 76800 baud
+// <30924800=> 115200 baud
+// <61845504=> 230400 baud
+// <67108864=> 250000 baud
+// <123695104=> 460800 baud
+// <247386112=> 921600 baud
+// <268435456=> 1000000 baud
+
+#ifndef NRFX_UART_DEFAULT_CONFIG_BAUDRATE
+#define NRFX_UART_DEFAULT_CONFIG_BAUDRATE 30924800
+#endif
+
+// <o> NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY
+#define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_UART_CONFIG_LOG_ENABLED
+#define NRFX_UART_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_UART_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_UART_CONFIG_LOG_LEVEL
+#define NRFX_UART_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_UART_CONFIG_INFO_COLOR
+#define NRFX_UART_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_UART_CONFIG_DEBUG_COLOR
+#define NRFX_UART_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// <e> NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver
+//==========================================================
+#ifndef NRFX_WDT_ENABLED
+#define NRFX_WDT_ENABLED 1
+#endif
+// <o> NRFX_WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode
+
+// <1=> Run in SLEEP, Pause in HALT
+// <8=> Pause in SLEEP, Run in HALT
+// <9=> Run in SLEEP and HALT
+// <0=> Pause in SLEEP and HALT
+
+#ifndef NRFX_WDT_CONFIG_BEHAVIOUR
+#define NRFX_WDT_CONFIG_BEHAVIOUR 1
+#endif
+
+// <o> NRFX_WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295>
+
+
+#ifndef NRFX_WDT_CONFIG_RELOAD_VALUE
+#define NRFX_WDT_CONFIG_RELOAD_VALUE 2000
+#endif
+
+// <o> NRFX_WDT_CONFIG_IRQ_PRIORITY - Interrupt priority
+
+// <0=> 0 (highest)
+// <1=> 1
+// <2=> 2
+// <3=> 3
+// <4=> 4
+// <5=> 5
+// <6=> 6
+// <7=> 7
+
+#ifndef NRFX_WDT_CONFIG_IRQ_PRIORITY
+#define NRFX_WDT_CONFIG_IRQ_PRIORITY 7
+#endif
+
+// <e> NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
+//==========================================================
+#ifndef NRFX_WDT_CONFIG_LOG_ENABLED
+#define NRFX_WDT_CONFIG_LOG_ENABLED 0
+#endif
+// <o> NRFX_WDT_CONFIG_LOG_LEVEL - Default Severity level
+
+// <0=> Off
+// <1=> Error
+// <2=> Warning
+// <3=> Info
+// <4=> Debug
+
+#ifndef NRFX_WDT_CONFIG_LOG_LEVEL
+#define NRFX_WDT_CONFIG_LOG_LEVEL 3
+#endif
+
+// <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_WDT_CONFIG_INFO_COLOR
+#define NRFX_WDT_CONFIG_INFO_COLOR 0
+#endif
+
+// <o> NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
+
+// <0=> Default
+// <1=> Black
+// <2=> Red
+// <3=> Green
+// <4=> Yellow
+// <5=> Blue
+// <6=> Magenta
+// <7=> Cyan
+// <8=> White
+
+#ifndef NRFX_WDT_CONFIG_DEBUG_COLOR
+#define NRFX_WDT_CONFIG_DEBUG_COLOR 0
+#endif
+
+// </e>
+
+// </e>
+
+// </h>
+
+#endif // NRFX_CONFIG_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nrfx_glue.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nrfx_glue.h
new file mode 100644
index 0000000..e29e50a
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nrfx_glue.h
@@ -0,0 +1,204 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_GLUE_H__
+#define NRFX_GLUE_H__
+
+// THIS IS A TEMPLATE FILE.
+// It should be copied to a suitable location within the host environment into
+// which nrfx is integrated, and the following macros should be provided with
+// appropriate implementations.
+// And this comment should be removed from the customized file.
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_glue nrfx_glue.h
+ * @{
+ * @ingroup nrfx
+ *
+ * @brief This file contains macros that should be implemented according to
+ * the needs of the host environment into which @em nrfx is integrated.
+ */
+
+// Uncomment this line to use the standard MDK way of binding IRQ handlers
+// at linking time.
+//#include <soc/nrfx_irqs.h>
+
+//------------------------------------------------------------------------------
+
+/**
+ * @brief Macro for placing a runtime assertion.
+ *
+ * @param expression Expression to evaluate.
+ */
+#define NRFX_ASSERT(expression)
+
+/**
+ * @brief Macro for placing a compile time assertion.
+ *
+ * @param expression Expression to evaluate.
+ */
+#define NRFX_STATIC_ASSERT(expression)
+
+//------------------------------------------------------------------------------
+
+/**
+ * @brief Macro for setting the priority of a specific IRQ.
+ *
+ * @param irq_number IRQ number.
+ * @param priority Priority to set.
+ */
+#define NRFX_IRQ_PRIORITY_SET(irq_number, priority)
+
+/**
+ * @brief Macro for enabling a specific IRQ.
+ *
+ * @param irq_number IRQ number.
+ */
+#define NRFX_IRQ_ENABLE(irq_number)
+
+/**
+ * @brief Macro for checking if a specific IRQ is enabled.
+ *
+ * @param irq_number IRQ number.
+ *
+ * @retval true If the IRQ is enabled.
+ * @retval false Otherwise.
+ */
+#define NRFX_IRQ_IS_ENABLED(irq_number)
+
+/**
+ * @brief Macro for disabling a specific IRQ.
+ *
+ * @param irq_number IRQ number.
+ */
+#define NRFX_IRQ_DISABLE(irq_number)
+
+/**
+ * @brief Macro for setting a specific IRQ as pending.
+ *
+ * @param irq_number IRQ number.
+ */
+#define NRFX_IRQ_PENDING_SET(irq_number)
+
+/**
+ * @brief Macro for clearing the pending status of a specific IRQ.
+ *
+ * @param irq_number IRQ number.
+ */
+#define NRFX_IRQ_PENDING_CLEAR(irq_number)
+
+/**
+ * @brief Macro for checking the pending status of a specific IRQ.
+ *
+ * @retval true If the IRQ is pending.
+ * @retval false Otherwise.
+ */
+#define NRFX_IRQ_IS_PENDING(irq_number)
+
+/**
+ * @brief Macro for entering into a critical section.
+ */
+#define NRFX_CRITICAL_SECTION_ENTER()
+
+/**
+ * @brief Macro for exiting from a critical section.
+ */
+#define NRFX_CRITICAL_SECTION_EXIT()
+
+//------------------------------------------------------------------------------
+
+/**
+ * @brief When set to a non-zero value, this macro specifies that
+ * @ref nrfx_coredep_delay_us uses a precise DWT-based solution.
+ * A compilation error is generated if the DWT unit is not present
+ * in the SoC used.
+ */
+#define NRFX_DELAY_DWT_BASED 0
+
+/**
+ * @brief Macro for delaying the code execution for at least the specified time.
+ *
+ * @param us_time Number of microseconds to wait.
+ */
+#define NRFX_DELAY_US(us_time)
+
+//------------------------------------------------------------------------------
+
+/**
+ * @brief When set to a non-zero value, this macro specifies that the
+ * @ref nrfx_error_codes and the @ref nrfx_err_t type itself are defined
+ * in a customized way and the default definitions from @c <nrfx_error.h>
+ * should not be used.
+ */
+#define NRFX_CUSTOM_ERROR_CODES 0
+
+//------------------------------------------------------------------------------
+
+/**
+ * @brief Bitmask defining PPI channels reserved to be used outside of nrfx.
+ */
+#define NRFX_PPI_CHANNELS_USED 0
+
+/**
+ * @brief Bitmask defining PPI groups reserved to be used outside of nrfx.
+ */
+#define NRFX_PPI_GROUPS_USED 0
+
+/**
+ * @brief Bitmask defining SWI instances reserved to be used outside of nrfx.
+ */
+#define NRFX_SWI_USED 0
+
+/**
+ * @brief Bitmask defining TIMER instances reserved to be used outside of nrfx.
+ */
+#define NRFX_TIMERS_USED 0
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_GLUE_H__
diff --git a/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nrfx_log.h b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nrfx_log.h
new file mode 100644
index 0000000..bceab07
--- /dev/null
+++ b/thirdparty/nRF5_SDK_15.0.0_a53641a/modules/nrfx/templates/nrfx_log.h
@@ -0,0 +1,144 @@
+/**
+ * Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
+ *
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, except as embedded into a Nordic
+ * Semiconductor ASA integrated circuit in a product or a software update for
+ * such product, must reproduce the above copyright notice, this list of
+ * conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
+ * contributors may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * 4. This software, with or without modification, must only be used with a
+ * Nordic Semiconductor ASA integrated circuit.
+ *
+ * 5. Any software provided in binary form under this license must not be reverse
+ * engineered, decompiled, modified and/or disassembled.
+ *
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
+ * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+#ifndef NRFX_LOG_H__
+#define NRFX_LOG_H__
+
+// THIS IS A TEMPLATE FILE.
+// It should be copied to a suitable location within the host environment into
+// which nrfx is integrated, and the following macros should be provided with
+// appropriate implementations.
+// And this comment should be removed from the customized file.
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @defgroup nrfx_log nrfx_log.h
+ * @{
+ * @ingroup nrfx
+ *
+ * @brief This file contains macros that should be implemented according to
+ * the needs of the host environment into which @em nrfx is integrated.
+ */
+
+/**
+ * @brief Macro for logging a message with the severity level ERROR.
+ *
+ * @param format printf-style format string, optionally followed by arguments
+ * to be formatted and inserted in the resulting string.
+ */
+#define NRFX_LOG_ERROR(format, ...)
+
+/**
+ * @brief Macro for logging a message with the severity level WARNING.
+ *
+ * @param format printf-style format string, optionally followed by arguments
+ * to be formatted and inserted in the resulting string.
+ */
+#define NRFX_LOG_WARNING(format, ...)
+
+/**
+ * @brief Macro for logging a message with the severity level INFO.
+ *
+ * @param format printf-style format string, optionally followed by arguments
+ * to be formatted and inserted in the resulting string.
+ */
+#define NRFX_LOG_INFO(format, ...)
+
+/**
+ * @brief Macro for logging a message with the severity level DEBUG.
+ *
+ * @param format printf-style format string, optionally followed by arguments
+ * to be formatted and inserted in the resulting string.
+ */
+#define NRFX_LOG_DEBUG(format, ...)
+
+
+/**
+ * @brief Macro for logging a memory dump with the severity level ERROR.
+ *
+ * @param[in] p_memory Pointer to the memory region to be dumped.
+ * @param[in] length Length of the memory region in bytes.
+ */
+#define NRFX_LOG_HEXDUMP_ERROR(p_memory, length)
+
+/**
+ * @brief Macro for logging a memory dump with the severity level WARNING.
+ *
+ * @param[in] p_memory Pointer to the memory region to be dumped.
+ * @param[in] length Length of the memory region in bytes.
+ */
+#define NRFX_LOG_HEXDUMP_WARNING(p_memory, length)
+
+/**
+ * @brief Macro for logging a memory dump with the severity level INFO.
+ *
+ * @param[in] p_memory Pointer to the memory region to be dumped.
+ * @param[in] length Length of the memory region in bytes.
+ */
+#define NRFX_LOG_HEXDUMP_INFO(p_memory, length)
+
+/**
+ * @brief Macro for logging a memory dump with the severity level DEBUG.
+ *
+ * @param[in] p_memory Pointer to the memory region to be dumped.
+ * @param[in] length Length of the memory region in bytes.
+ */
+#define NRFX_LOG_HEXDUMP_DEBUG(p_memory, length)
+
+
+/**
+ * @brief Macro for getting the textual representation of a given error code.
+ *
+ * @param[in] error_code Error code.
+ *
+ * @return String containing the textual representation of the error code.
+ */
+#define NRFX_LOG_ERROR_STRING_GET(error_code)
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // NRFX_LOG_H__